@xatlas/rainbow-core 1.2.5 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):"function"===typeof define&&define.amd?define(["monaco-editor","@antv/g6","vuex","vue-amap","vue-router","qs",,"lodash/fp/template","axios","vuex/dist/logger"],e):"object"===typeof exports?exports["core"]=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):t["core"]=e(t["monaco-editor"],t["@antv/g6"],t["vuex"],t["vue-amap"],t["vue-router"],t["qs"],t["Vue"],t["lodash/fp/template"],t["axios"],t["vuex/dist/logger"])})("undefined"!==typeof self?self:this,(function(t,e,n,r,o,i,a,s,l,u){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1aba")}({"019f":function(t,e,n){!function(e,r){t.exports=r(n("336c"))}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=587)}([,,,function(e,n){e.exports=t},,,,function(t,e,n){var r;try{r={cloneDeep:n(472),constant:n(103),defaults:n(471),each:n(218),filter:n(215),find:n(470),flatten:n(188),forEach:n(217),forIn:n(466),has:n(204),isUndefined:n(203),last:n(465),map:n(202),mapValues:n(464),max:n(463),merge:n(461),min:n(455),minBy:n(454),now:n(253),pick:n(453),range:n(448),reduce:n(200),sortBy:n(445),uniqueId:n(440),values:n(195),zipObject:n(439)}}catch(t){}r||(r=window._),t.exports=r},,,,function(t,e){var n=Array.isArray;t.exports=n},,,,function(t,e,n){"use strict";var r=n(7),o=n(22).Graph;function i(t,e,n,o){var i;do{i=r.uniqueId(o)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,a=e.x-o,s=e.y-i,l=t.width/2,u=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},,function(t,e,n){var r;try{r={clone:n(582),constant:n(103),each:n(218),filter:n(215),has:n(204),isArray:n(11),isEmpty:n(508),isFunction:n(57),isUndefined:n(203),keys:n(33),map:n(202),reduce:n(200),size:n(505),transform:n(499),union:n(498),values:n(195)}}catch(t){}r||(r=window._),t.exports=r},,function(t,e,n){var r=n(117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},,function(t,e,n){var r;try{r=n(584)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},,,,,function(t,e,n){var r=n(528),o=n(518),i=n(36),a=n(11),s=n(511);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(57),o=n(109);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},,,,function(t,e,n){var r=n(232),o=n(107),i=n(29);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(38),o=n(250),i=n(249),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?o(t):i(t)}},,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(571),o=n(568);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(20).Symbol;t.exports=r},function(t,e,n){var r=n(34),o=n(23),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},function(t,e,n){var r=n(543),o=n(113),i=n(542),a=n(223),s=n(541),l=n(34),u=n(234),c=u(r),f=u(o),p=u(i),h=u(a),d=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=m},function(t,e,n){var r=n(232),o=n(548),i=n(29);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){(function(t){var r=n(20),o=n(552),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;t.exports=l}).call(this,n(110)(t))},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,,,,,,function(t,e,n){var r=n(39),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,n){var r=n(551),o=n(75),i=n(108),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(553),o=n(23),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},function(t,e,n){var r=n(78),o=n(77);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var u=e[s],c=i?i(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?o(n,u,c):r(n,u,c)}return n}},function(t,e,n){var r=n(34),o=n(16),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==a||e==s||e==i||e==l}},,,,,,,,,,function(t,e,n){"use strict";var r=n(7);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(o){var i=t.node(o);if(r.has(e,o))return i.rank;e[o]=!0;var a=r.min(r.map(t.outEdges(o),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),i.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,n){var r=n(43),o=n(29),i=n(76),a=n(16);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?o(n)&&i(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(36),o=n(199),i=n(198);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(11),o=n(98),i=n(516),a=n(208);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(102),o=n(530)(r);t.exports=o},function(t,e,n){var r=n(231)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(233);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(77),o=n(43),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(559);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(37)(Object,"create");t.exports=r},function(t,e,n){var r=n(43);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(581),o=n(580),i=n(579),a=n(578),s=n(577);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(82),o=n(576),i=n(575),a=n(574),s=n(573),l=n(572);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,t.exports=u},,,,,,,,,,,,,function(t,e,n){var r=n(39);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=e(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},function(t,e,n){var r=n(105),o=n(497);t.exports=function t(e,n,i,a,s){var l=-1,u=e.length;for(i||(i=o),s||(s=[]);++l<u;){var c=e[l];n>0&&i(c)?n>1?t(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(t,e,n){var r=n(11),o=n(39),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(71),o=n(53);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(531)();t.exports=r},function(t,e,n){var r=n(101),o=n(33);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(222);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(228),o=n(227),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=s},function(t,e,n){var r=n(74),o=n(550),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){(function(t){var r=n(117),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(110)(t))},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(567),o=n(560),i=n(558),a=n(557),s=n(556);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(37)(n(20),"Map");t.exports=r},function(t,e,n){"use strict";var r=n(18);t.exports=s;var o="\0",i="\0",a="";function s(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(t,e){t[e]?t[e]++:t[e]=1}function u(t,e){--t[e]||delete t[e]}function c(t,e,n,i){var s=""+e,l=""+n;if(!t&&s>l){var u=s;s=l,l=u}return s+a+l+a+(r.isUndefined(i)?o:i)}function f(t,e){return c(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,o=this;return r.each(t,(function(t){n.length>1?o.setNode(t,e):o.setNode(t)})),this},s.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children[i][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var o={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var i=n.parent(r);return void 0===i||e.hasNode(i)?(o[r]=i,i):i in o?o[i]:t(i)}(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,o=arguments;return r.reduce(t,(function(t,r){return o.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},s.prototype.setEdge=function(){var t,e,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=c(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(t,e,n);var u=function(t,e,n,r){var o=""+e,i=""+n;if(!t&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}(this._isDirected,t,e,n);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[s]=u,l(this._preds[e],t),l(this._sucs[t],e),this._in[e][s]=u,this._out[t][s]=u,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var o=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],u(this._preds[e],t),u(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var o=r.values(n);return e?r.filter(o,(function(t){return t.v===e})):o}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var o=r.values(n);return e?r.filter(o,(function(t){return t.w===e})):o}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},,,function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(252))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(22).Graph,i=n(67).slack;function a(t,e){return r.forEach(t.nodes(),(function n(o){r.forEach(e.nodeEdges(o),(function(r){var a=r.v,s=o===a?r.w:a;t.hasNode(s)||i(e,r)||(t.setNode(s,{}),t.setEdge(o,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return i(e,n)}))}function l(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new o({directed:!1}),u=t.nodes()[0],c=t.nodeCount();for(r.setNode(u,{});a(r,t)<c;)e=s(r,t),n=r.hasNode(e.v)?i(t,e):-i(t,e),l(r,t,n);return r}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e){t.exports=function(t,e){if("__proto__"!=e)return t[e]}},function(t,e,n){var r=n(77),o=n(43);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(97);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(251),o=1/0,i=17976931348623157e292;t.exports=function(t){return t?(t=r(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){t(e,n,o,i,a,s)})),o&&s.push(n))}(t,e,"post"===n,a,o,i)})),i}},function(t,e,n){var r=n(18);function o(t){var e={},n={},o=[];if(r.each(t.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],o.push(s))})),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},function(t,e,n){var r=n(18);t.exports=function(t){var e=0,n=[],o={},i=[];return t.nodes().forEach((function(a){r.has(o,a)||function a(s){var l=o[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(o,t)?o[t].onStack&&(l.lowlink=Math.min(l.lowlink,o[t].index)):(a(t),l.lowlink=Math.min(l.lowlink,o[t].lowlink))})),l.lowlink===l.index){var u,c=[];do{u=n.pop(),o[u].onStack=!1,c.push(u)}while(s!==u);i.push(c)}}(a)})),i}},function(t,e,n){var r=n(18);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},o.prototype.has=function(t){return r.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var o=this._arr,i=o.length;return n[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},o.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,o=t;n<e.length&&(o=e[n].priority<e[o].priority?n:o,r<e.length&&(o=e[r].priority<e[o].priority?r:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,o=n[t],i=n[e];n[t]=i,n[e]=o,r[i.key]=t,r[o.key]=e}},function(t,e,n){var r=n(18),o=n(193);t.exports=function(t,e,n,r){return function(t,e,n,r){var i,a,s={},l=new o,u=function(t){var e=t.v!==i?t.v:t.w,r=s[e],o=n(t),u=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);u<r.distance&&(r.distance=u,r.predecessor=i,l.decrease(e,u))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},l.add(t,n)}));l.size()>0&&(i=l.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(u);return s}(t,String(e),n||i,r||function(e){return t.outEdges(e)})};var i=r.constant(1)},function(t,e,n){var r=n(485),o=n(33);t.exports=function(t){return null==t?[]:r(t,o(t))}},function(t,e,n){var r=n(29),o=n(23);t.exports=function(t){return o(t)&&r(t)}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,n){var r=n(495),o=n(494)(r);t.exports=o},function(t,e,n){var r=n(496),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),l=Array(s);++a<s;)l[a]=i[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=i[a];return u[e]=n(l),r(t,this,u)}}},function(t,e,n){var r=n(507),o=n(72),i=n(28),a=n(506),s=n(11);t.exports=function(t,e,n){var l=s(t)?r:a,u=arguments.length<3;return l(t,i(e,4),n,u,o)}},function(t,e,n){var r=n(72),o=n(29);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},function(t,e,n){var r=n(70),o=n(28),i=n(201),a=n(11);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(509),o=n(206);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(71),o=n(55),i=n(11),a=n(76),s=n(109),l=n(53);t.exports=function(t,e,n){for(var u=-1,c=(e=r(e,t)).length,f=!1;++u<c;){var p=l(e[u]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++u!=c?f:!!(c=null==t?0:t.length)&&s(c)&&a(p,c)&&(i(t)||o(t))}},function(t,e,n){var r=n(512),o=n(206);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e,n){var r=n(513);t.exports=function(t){return null==t?"":r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var r=n(16);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(112),o=n(525),i=n(524);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,n){var r=n(212),o=n(523),i=n(211),a=1,s=2;t.exports=function(t,e,n,l,u,c){var f=n&a,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=c.get(t);if(d&&c.get(e))return d==e;var m=-1,v=!0,y=n&s?new r:void 0;for(c.set(t,e),c.set(e,t);++m<p;){var g=t[m],b=e[m];if(l)var w=f?l(b,g,m,e,t,c):l(g,b,m,t,e,c);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(g===t||u(g,t,n,l,c)))return y.push(e)}))){v=!1;break}}else if(g!==b&&!u(g,b,n,l,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},function(t,e,n){var r=n(526),o=n(23);t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},function(t,e,n){var r=n(228),o=n(529),i=n(28),a=n(11);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){var r=n(36);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(111),o=n(72),i=n(216),a=n(11);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},function(t,e,n){t.exports=n(217)},function(t,e,n){var r=n(16),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(219),o=n(73),i=n(74);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(104);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(20).Uint8Array;t.exports=r},function(t,e,n){var r=n(37)(n(20),"Set");t.exports=r},function(t,e,n){var r=n(105),o=n(11);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e,n){var r=n(224),o=n(106),i=n(33);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(105),o=n(73),i=n(106),a=n(227),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e){t.exports=function(){return[]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){(function(t){var r=n(20),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(110)(t))},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(554),o=n(55),i=n(11),a=n(42),s=n(76),l=n(54),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),c=!n&&o(t),f=!n&&!c&&a(t),p=!n&&!c&&!f&&l(t),h=n||c||f||p,d=h?r(t.length,String):[],m=d.length;for(var v in t)!e&&!u.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||d.push(v);return d}},function(t,e,n){var r=n(37),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(83),o=n(111),i=n(78),a=n(555),s=n(549),l=n(230),u=n(229),c=n(546),f=n(545),p=n(225),h=n(544),d=n(40),m=n(540),v=n(539),y=n(220),g=n(11),b=n(42),w=n(535),_=n(16),x=n(533),O=n(33),k=1,E=2,j=4,S="[object Arguments]",P="[object Function]",A="[object GeneratorFunction]",N="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[N]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[P]=C["[object WeakMap]"]=!1,t.exports=function t(e,n,T,L,M,q){var I,D=n&k,R=n&E,$=n&j;if(T&&(I=M?T(e,L,M,q):T(e)),void 0!==I)return I;if(!_(e))return e;var B=g(e);if(B){if(I=m(e),!D)return u(e,I)}else{var V=d(e),F=V==P||V==A;if(b(e))return l(e,D);if(V==N||V==S||F&&!M){if(I=R||F?{}:y(e),!D)return R?f(e,s(I,e)):c(e,a(I,e))}else{if(!C[V])return M?e:{};I=v(e,V,D)}}q||(q=new r);var U=q.get(e);if(U)return U;if(q.set(e,I),x(e))return e.forEach((function(r){I.add(t(r,n,T,r,e,q))})),I;if(w(e))return e.forEach((function(r,o){I.set(o,t(r,n,T,o,e,q))})),I;var K=$?R?h:p:R?keysIn:O,z=B?void 0:K(e);return o(z||e,(function(r,o){z&&(r=e[o=r]),i(I,o,t(r,n,T,o,e,q))})),I}},,,,,,,,,,,,,,function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(38),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e,n){var r=n(16),o=n(39),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=l.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?i:+t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(20);t.exports=function(){return r.Date.now()}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports="0.8.4"},function(t,e,n){var r=n(7),o=n(15),i=n(22).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var o="layer"+e;n.setNode(o,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},function(t,e,n){"use strict";var r=n(7),o=n(22).Graph,i=n(15);function a(t,e){var n={};return r.reduce(e,(function(e,o){var i=0,a=0,s=e.length,u=r.last(o);return r.forEach(o,(function(e,c){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),p=f?t.node(f).order:s;(f||e===u)&&(r.forEach(o.slice(a,c+1),(function(e){r.forEach(t.predecessors(e),(function(r){var o=t.node(r),a=o.order;!(a<i||p<a)||o.dummy&&t.node(e).dummy||l(n,r,e)}))})),a=c+1,i=p)})),o})),n}function s(t,e){var n={};function o(e,o,i,a,s){var u;r.forEach(r.range(o,i),(function(o){u=e[o],t.node(u).dummy&&r.forEach(t.predecessors(u),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&l(n,e,u)}))}))}return r.reduce(e,(function(e,n){var i,a=-1,s=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(i=t.node(u[0]).order,o(n,s,l,a,i),s=l,a=i)}o(n,s,n.length,i,e.length)})),n})),n}function l(t,e,n){if(e>n){var r=e;e=n,n=r}var o=t[e];o||(t[e]=o={}),o[n]=!0}function u(t,e,n){if(e>n){var o=e;e=n,n=o}return r.has(t[e],n)}function c(t,e,n,o){var i={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){i[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var l=o(t);if(l.length)for(var c=((l=r.sortBy(l,(function(t){return s[t]}))).length-1)/2,f=Math.floor(c),p=Math.ceil(c);f<=p;++f){var h=l[f];a[t]===t&&e<s[h]&&!u(n,t,h)&&(a[h]=t,a[t]=i[t]=i[h],e=s[h])}}))})),{root:i,align:a}}function f(t,e,n,i,a){var s={},l=function(t,e,n,i){var a=new o,s=t.graph(),l=function(t,e,n){return function(o,i,a){var s,l=o.node(i),u=o.node(a),c=0;if(c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(c+=n?s:-s),s=0,c+=(l.dummy?e:t)/2,c+=(u.dummy?e:t)/2,c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2}return s&&(c+=n?s:-s),s=0,c}}(s.nodesep,s.edgesep,i);return r.forEach(e,(function(e){var o;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),o){var i=n[o],s=a.edge(i,r);a.setEdge(i,r,Math.max(l(t,e,o),s||0))}o=e}))})),a}(t,e,n,a),u=a?"borderLeft":"borderRight";function c(t,e){for(var n=l.nodes(),r=n.pop(),o={};r;)o[r]?t(r):(o[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return c((function(t){s[t]=l.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+l.edge(e))}),0)}),l.predecessors.bind(l)),c((function(e){var n=l.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-l.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(s[e]=Math.max(s[e],n))}),l.successors.bind(l)),r.forEach(i,(function(t){s[t]=s[n[t]]})),s}function p(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var i=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+i,n),o=Math.min(e-i,o)})),n-o}))}function h(t,e){var n=r.values(e),o=r.min(n),i=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,l=n+a,u=t[l];if(u!==e){var c=r.values(u);(s="l"===a?o-r.min(c):i-r.max(c))&&(t[l]=r.mapValues(u,(function(t){return t+s})))}}))}))}function d(t,e){return r.mapValues(t.ul,(function(n,o){if(e)return t[e.toLowerCase()][o];var i=r.sortBy(r.map(t,o));return(i[1]+i[2])/2}))}t.exports={positionX:function(t){var e,n=i.buildLayerMatrix(t),o=r.merge(a(t,n),s(t,n)),l={};r.forEach(["u","d"],(function(i){e="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===i?t.predecessors:t.successors).bind(t),s=c(t,e,o,a),u=f(t,e,s.root,s.align,"r"===n);"r"===n&&(u=r.mapValues(u,(function(t){return-t}))),l[i+n]=u}))}));var u=p(t,l);return h(l,u),d(l,t.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:f,alignCoordinates:h,findSmallestWidthAlignment:p,balance:d}},function(t,e,n){"use strict";var r=n(7),o=n(15),i=n(417).positionX;t.exports=function(t){(function(t){var e=o.buildLayerMatrix(t),n=t.graph().ranksep,i=0;r.forEach(e,(function(e){var o=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=i+o/2})),i+=o+n}))})(t=o.asNonCompoundGraph(t)),r.forEach(i(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){var o,i={};r.forEach(n,(function(n){for(var r,a,s=t.parent(n);s;){if((r=t.parent(s))?(a=i[r],i[r]=s):(a=o,o=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}},function(t,e,n){var r=n(7),o=n(22).Graph;t.exports=function(t,e,n){var i=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(o){var s=t.node(o),l=t.parent(o);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(o),a.setParent(o,l||i),r.forEach(t[n](o),(function(e){var n=e.v===o?e.w:e.v,i=a.edge(n,o),s=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&a.setNode(o,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},function(t,e,n){var r=n(7),o=n(15);function i(t,e,n){for(var o;e.length&&(o=r.last(e)).i<=n;)e.pop(),t.push(o.vs),n++;return n}t.exports=function(t,e){var n=o.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,s=r.sortBy(n.rhs,(function(t){return-t.i})),l=[],u=0,c=0,f=0;a.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!e)),f=i(l,s,f),r.forEach(a,(function(t){f+=t.vs.length,l.push(t.vs),u+=t.barycenter*t.weight,c+=t.weight,f=i(l,s,f)}));var p={vs:r.flatten(l,!0)};return c&&(p.barycenter=u/c,p.weight=c),p}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var o=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],o=n[t.w];r.isUndefined(e)||r.isUndefined(o)||(o.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function o(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i=t.pop();e.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var r=n(7);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var o=r.reduce(n,(function(e,n){var r=t.edge(n),o=t.node(n.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}return{v:e}}))}},function(t,e,n){var r=n(7),o=n(423),i=n(422),a=n(421);t.exports=function t(e,n,s,l){var u=e.children(n),c=e.node(n),f=c?c.borderLeft:void 0,p=c?c.borderRight:void 0,h={};f&&(u=r.filter(u,(function(t){return t!==f&&t!==p})));var d=o(e,u);r.forEach(d,(function(n){if(e.children(n.v).length){var o=t(e,n.v,s,l);h[n.v]=o,r.has(o,"barycenter")&&function(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(n,o)}}));var m=i(d,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(m,h);var v=a(m,l);if(f&&(v.vs=r.flatten([f,v.vs,p],!0),e.predecessors(f).length)){var y=e.node(e.predecessors(f)[0]),g=e.node(e.predecessors(p)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+g.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,n){"use strict";var r=n(7);function o(t,e,n){for(var o=r.zipObject(n,r.map(n,(function(t,e){return e}))),i=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:o[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(new Array(s),(function(){return 0})),u=0;return r.forEach(i.forEach((function(t){var e=t.pos+a;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=o(t,e[r-1],e[r]);return n}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),o=r.max(r.map(n,(function(e){return t.node(e).rank}))),i=r.map(r.range(o+1),(function(){return[]})),a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(o){if(!r.has(e,o)){e[o]=!0;var a=t.node(o);i[a.rank].push(o),r.forEach(t.successors(o),n)}})),i}},function(t,e,n){"use strict";var r=n(7),o=n(426),i=n(425),a=n(424),s=n(420),l=n(419),u=n(22).Graph,c=n(15);function f(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function p(t,e){var n=new u;r.forEach(t,(function(t){var o=t.graph().root,i=a(t,o,n,e);r.forEach(i.vs,(function(e,n){t.node(e).order=n})),l(t,n,i.vs)}))}function h(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=c.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),a=f(t,r.range(e-1,-1,-1),"outEdges"),s=o(t);h(t,s);for(var l,u=Number.POSITIVE_INFINITY,d=0,m=0;m<4;++d,++m){p(d%2?n:a,d%4>=2),s=c.buildLayerMatrix(t);var v=i(t,s);v<u&&(m=0,l=r.cloneDeep(s),u=v)}h(t,l)}},function(t,e,n){"use strict";var r=n(7);function o(t){r.forEach(t.nodes(),(function(e){i(t.node(e))})),r.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),o(t))}}},function(t,e,n){var r=n(7),o=n(15);function i(t,e,n,r,i,a){var s={width:0,height:0,rank:a,borderType:e},l=i[e][a-1],u=o.addDummyNode(t,"border",s,n);i[e][a]=u,t.setParent(u,r),l&&t.setEdge(l,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var o=t.children(n),a=t.node(n);if(o.length&&r.forEach(o,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)i(t,"borderLeft","_bl",n,a,s),i(t,"borderRight","_br",n,a,s)}}))}},function(t,e,n){var r=n(7),o=n(15);t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),(function(n){!function n(o,i){var a=t.children(o);a&&a.length&&r.forEach(a,(function(t){n(t,i+1)})),e[o]=i}(n,1)})),e}(t),i=r.max(r.values(n))-1,a=2*i+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var s=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(l){!function t(e,n,i,a,s,l,u){var c=e.children(u);if(c.length){var f=o.addBorderNode(e,"_bt"),p=o.addBorderNode(e,"_bb"),h=e.node(u);e.setParent(f,u),h.borderTop=f,e.setParent(p,u),h.borderBottom=p,r.forEach(c,(function(r){t(e,n,i,a,s,l,r);var o=e.node(r),c=o.borderTop?o.borderTop:r,h=o.borderBottom?o.borderBottom:r,d=o.borderTop?a:2*a,m=c!==h?1:s-l[u]+1;e.setEdge(f,c,{weight:d,minlen:m,nestingEdge:!0}),e.setEdge(h,p,{weight:d,minlen:m,nestingEdge:!0})})),e.parent(u)||e.setEdge(n,f,{weight:0,minlen:s+l[u]})}else u!==n&&e.setEdge(n,u,{weight:0,minlen:i})}(t,e,a,s,i,n,l)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}}},function(t,e,n){var r=n(7);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function o(i){var a=n;r.forEach(t.children(i),o),e[i]={low:a,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),o=r.edgeObj,i=function(t,e,n,r){var o,i,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);o=n;do{o=t.parent(o),a.push(o)}while(o&&(e[o].low>l||u>e[o].lim));for(i=o,o=r;(o=t.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(t,e,o.v,o.w),a=i.path,s=i.lca,l=0,u=a[l],c=!0;n!==o.w;){if(r=t.node(n),c){for(;(u=a[l])!==s&&t.node(u).maxRank<r.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&t.node(u=a[l+1]).minRank<=r.rank;)l++;u=a[l]}t.setParent(n,u),n=t.successors(n)[0]}}))}},function(t,e,n){"use strict";var r=n(7),o=n(184),i=n(67).slack,a=n(67).longestPath,s=n(22).alg.preorder,l=n(22).alg.postorder,u=n(15).simplify;function c(t){t=u(t),a(t);var e,n=o(t);for(h(n),f(n,t);e=d(n);)v(n,t,e,m(n,t,e))}function f(t,e){var n=l(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=p(t,e,n)}(t,e,n)}))}function p(t,e,n){var o=t.node(n).parent,i=!0,a=e.edge(n,o),s=0;return a||(i=!1,a=e.edge(o,n)),s=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a=r.v===n,l=a?r.w:r.v;if(l!==o){var u=a===i,c=e.edge(r).weight;if(s+=u?c:-c,function(t,e,n){return t.hasEdge(e,n)}(t,n,l)){var f=t.edge(n,l).cutvalue;s+=u?-f:f}}})),s}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,o,i,a){var s=o,l=e.node(i);return n[i]=!0,r.forEach(e.neighbors(i),(function(a){r.has(n,a)||(o=t(e,n,o,a,i))})),l.low=s,l.lim=o++,a?l.parent=a:delete l.parent,o}(t,{},1,e)}function d(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var o=n.v,a=n.w;e.hasEdge(o,a)||(o=n.w,a=n.v);var s=t.node(o),l=t.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var f=r.filter(e.edges(),(function(e){return c===y(t,t.node(e.v),u)&&c!==y(t,t.node(e.w),u)}));return r.minBy(f,(function(t){return i(e,t)}))}function v(t,e,n,o){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(o.v,o.w,{}),h(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),o=s(t,n);o=o.slice(1),r.forEach(o,(function(n){var r=t.node(n).parent,o=e.edge(n,r),i=!1;o||(o=e.edge(r,n),i=!0),e.node(n).rank=e.node(r).rank+(i?o.minlen:-o.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=c,c.initLowLimValues=h,c.initCutValues=f,c.calcCutValue=p,c.leaveEdge=d,c.enterEdge=m,c.exchangeEdges=v},function(t,e,n){"use strict";var r=n(67).longestPath,o=n(184),i=n(432);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":s(t);break;case"tight-tree":!function(t){r(t),o(t)}(t);break;case"longest-path":a(t);break;default:s(t)}};var a=r;function s(t){i(t)}},function(t,e,n){"use strict";var r=n(7),o=n(15);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,i,a=e.v,s=t.node(a).rank,l=e.w,u=t.node(l).rank,c=e.name,f=t.edge(e),p=f.labelRank;if(u!==s+1){for(t.removeEdge(e),i=0,++s;s<u;++i,++s)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:e,rank:s},n=o.addDummyNode(t,"edge",r,"_d"),s===p&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},c),0===i&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,l,{weight:f.weight},c)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),o=r.edgeLabel;for(t.setEdge(r.edgeObj,o);r.dummy;)n=t.successors(e)[0],t.removeNode(e),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),e=n,r=t.node(e)}))}}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function o(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,o)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){var r=n(7),o=n(22).Graph,i=n(435);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new o,a=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,o=e(t),i=r+o;n.setEdge(t.v,t.w,i),s=Math.max(s,n.node(t.v).out+=o),a=Math.max(a,n.node(t.w).in+=o)}));var u=r.range(s+a+3).map((function(){return new i})),c=a+1;return r.forEach(n.nodes(),(function(t){l(u,c,n.node(t))})),{graph:n,buckets:u,zeroIdx:c}}(t,e||a),u=function(t,e,n){for(var r,o=[],i=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)s(t,e,n,r);for(;r=i.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(r=e[l].dequeue()){o=o.concat(s(t,e,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,o,i){var a=i?[]:void 0;return r.forEach(t.inEdges(o.v),(function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,l(e,n,s)})),r.forEach(t.outEdges(o.v),(function(r){var o=t.edge(r),i=r.w,a=t.node(i);a.in-=o,l(e,n,a)})),t.removeNode(o.v),a}function l(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e,n){"use strict";var r=n(7),o=n(436);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?o(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},o={};return r.forEach(t.nodes(),(function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):i(t.w)})),delete n[a])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},function(t,e){t.exports=function(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var s=r<i?e[r]:void 0;n(a,t[r],s)}return a}},function(t,e,n){var r=n(78),o=n(438);t.exports=function(t,e){return o(t||[],e||[],r)}},function(t,e,n){var r=n(208),o=0;t.exports=function(t){var e=++o;return r(t)+e}},function(t,e,n){var r=n(39);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),s=void 0!==e,l=null===e,u=e==e,c=r(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||o&&s&&u||!n&&u||!i)return 1;if(!o&&!a&&!c&&t<e||c&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}},function(t,e,n){var r=n(441);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,l=n.length;++o<s;){var u=r(i[o],a[o]);if(u)return o>=l?u:u*("desc"==n[o]?-1:1)}return t.index-e.index}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(70),o=n(28),i=n(201),a=n(443),s=n(75),l=n(442),u=n(36);t.exports=function(t,e,n){var c=-1;e=r(e.length?e:[u],s(o));var f=i(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++c,value:t}}));return a(f,(function(t,e){return l(t,e,n)}))}},function(t,e,n){var r=n(97),o=n(444),i=n(69),a=n(68),s=i((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])}));t.exports=s},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,o,i){for(var a=-1,s=r(n((e-t)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=t,t+=o;return l}},function(t,e,n){var r=n(446),o=n(68),i=n(189);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},function(t,e,n){var r=n(447)();t.exports=r},function(t,e,n){var r=n(188),o=n(199),i=n(198);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,e,n){var r=n(78),o=n(71),i=n(76),a=n(16),s=n(53);t.exports=function(t,e,n,l){if(!a(t))return t;for(var u=-1,c=(e=o(e,t)).length,f=c-1,p=t;null!=p&&++u<c;){var h=s(e[u]),d=n;if(u!=f){var m=p[h];void 0===(d=l?l(m,h,p):void 0)&&(d=a(m)?m:i(e[u+1])?[]:{})}r(p,h,d),p=p[h]}return t}},function(t,e,n){var r=n(99),o=n(450),i=n(71);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var u=e[a],c=r(t,u);n(c,u)&&o(l,i(u,t),c)}return l}},function(t,e,n){var r=n(451),o=n(207);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},function(t,e,n){var r=n(452),o=n(449)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},function(t,e,n){var r=n(96),o=n(28),i=n(185);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},function(t,e,n){var r=n(96),o=n(185),i=n(36);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},function(t,e,n){var r=n(69),o=n(68);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,a)}return e}))}},function(t,e,n){var r=n(56),o=n(41);t.exports=function(t){return r(t,o(t))}},function(t,e,n){var r=n(34),o=n(73),i=n(23),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!i(t)||r(t)!=a)return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(t,e,n){var r=n(187),o=n(230),i=n(221),a=n(229),s=n(220),l=n(55),u=n(11),c=n(196),f=n(42),p=n(57),h=n(16),d=n(458),m=n(54),v=n(186),y=n(457);t.exports=function(t,e,n,g,b,w,_){var x=v(t,n),O=v(e,n),k=_.get(O);if(k)r(t,n,k);else{var E=w?w(x,O,n+"",t,e,_):void 0,j=void 0===E;if(j){var S=u(O),P=!S&&f(O),A=!S&&!P&&m(O);E=O,S||P||A?u(x)?E=x:c(x)?E=a(x):P?(j=!1,E=o(O,!0)):A?(j=!1,E=i(O,!0)):E=[]:d(O)||l(O)?(E=x,l(x)?E=y(x):h(x)&&!p(x)||(E=s(O))):j=!1}j&&(_.set(O,E),b(E,O,g,w,_),_.delete(O)),r(t,n,E)}}},function(t,e,n){var r=n(83),o=n(187),i=n(101),a=n(459),s=n(16),l=n(41),u=n(186);t.exports=function t(e,n,c,f,p){e!==n&&i(n,(function(i,l){if(s(i))p||(p=new r),a(e,n,l,c,t,f,p);else{var h=f?f(u(e,l),i,l+"",e,n,p):void 0;void 0===h&&(h=i),o(e,l,h)}}),l)}},function(t,e,n){var r=n(460),o=n(456)((function(t,e,n){r(t,e,n)}));t.exports=o},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(96),o=n(462),i=n(36);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},function(t,e,n){var r=n(77),o=n(102),i=n(28);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(101),o=n(216),i=n(41);t.exports=function(t,e){return null==t?t:r(t,o(e),i)}},function(t,e,n){var r=n(189);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(197),o=n(28),i=n(467),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(t,o(e,3),l)}},function(t,e,n){var r=n(28),o=n(29),i=n(33);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!o(e)){var l=r(n,3);e=i(e),n=function(t){return l(s[t],t,s)}}var u=t(e,n,a);return u>-1?s[l?e[u]:u]:void 0}}},function(t,e,n){var r=n(469)(n(468));t.exports=r},function(t,e,n){var r=n(69),o=n(43),i=n(68),a=n(41),s=Object.prototype,l=s.hasOwnProperty,u=r((function(t,e){t=Object(t);var n=-1,r=e.length,u=r>2?e[2]:void 0;for(u&&i(e[0],e[1],u)&&(r=1);++n<r;)for(var c=e[n],f=a(c),p=-1,h=f.length;++p<h;){var d=f[p],m=t[d];(void 0===m||o(m,s[d])&&!l.call(t,d))&&(t[d]=c[d])}return t}));t.exports=u},function(t,e,n){var r=n(235),o=1,i=4;t.exports=function(t){return r(t,o|i)}},function(t,e,n){"use strict";var r=n(7),o=n(437),i=n(434),a=n(433),s=n(15).normalizeRanks,l=n(431),u=n(15).removeEmptyRanks,c=n(430),f=n(429),p=n(428),h=n(427),d=n(418),m=n(15),v=n(22).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?m.time:m.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=j(t.graph());return e.setGraph(r.merge({},g,E(n,y),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var o=j(t.node(n));e.setNode(n,r.defaults(E(o,w),_)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var o=j(t.edge(n));e.setEdge(n,r.merge({},O,E(o,x),r.pick(o,k)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){o.run(t)})),e(" nestingGraph.run",(function(){c.run(t)})),e(" rank",(function(){a(m.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),o=t.node(e.w),i={rank:(o.rank-r.rank)/2+r.rank,e:e};m.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){c.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var o=t.node(n);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=r.max(e,o.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){l(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){h(t)})),e(" insertSelfEdges",(function(){!function(t){var e=m.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,o){var i=t.node(e);i.order=o+n,r.forEach(i.selfEdges,(function(e){m.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++n,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){p.adjust(t)})),e(" position",(function(){d(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),o=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){p.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,l=a.marginy||0;function u(t){var r=t.x,a=t.y,s=t.width,l=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,a-l/2),i=Math.max(i,a+l/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=s,o-=l,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=o})),r.forEach(t.edges(),(function(n){var i=t.edge(n);r.forEach(i.points,(function(t){t.x-=e,t.y-=o})),r.has(i,"x")&&(i.x-=e),r.has(i,"y")&&(i.y-=o)})),a.width=n-e+s,a.height=i-o+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(m.intersectRect(i,n)),o.points.push(m.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){o.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),o=e.node(n);r&&(r.x=o.x,r.y=o.y,e.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(t.edges(),(function(n){var o=t.edge(n),i=e.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],O={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function E(t,e){return r.mapValues(r.pick(t,e),Number)}function j(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var r=n(18),o=n(114),i=n(193);t.exports=function(t,e){var n,a=new o,s={},l=new i;function u(t){var r=t.v===n?t.w:t.v,o=l.priority(r);if(void 0!==o){var i=e(t);i<o&&(s[r]=n,l.decrease(r,i))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){l.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),l.decrease(t.nodes()[0],0);for(var c=!1;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(u)}return a}},function(t,e,n){var r=n(190);t.exports=function(t,e){return r(t,e,"pre")}},function(t,e,n){var r=n(190);t.exports=function(t,e){return r(t,e,"post")}},function(t,e,n){var r=n(191);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){return function(t,e,n){var r={},o=t.nodes();return o.forEach((function(t){r[t]={},r[t][t]={distance:0},o.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var o=n.v===t?n.w:n.v,i=e(n);r[t][o]={distance:i,predecessor:t}}))})),o.forEach((function(t){var e=r[t];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[t],o=e[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)}))}))})),r}(t,e||o,n||function(e){return t.outEdges(e)})};var o=r.constant(1)},function(t,e,n){var r=n(18),o=n(192);t.exports=function(t){return r.filter(o(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var r=n(194),o=n(18);t.exports=function(t,e,n){return o.transform(t.nodes(),(function(o,i){o[i]=r(t,i,e,n)}),{})}},function(t,e,n){var r=n(18);t.exports=function(t){var e,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,e.push(o),r.each(t.successors(o),i),r.each(t.predecessors(o),i))}return r.each(t.nodes(),(function(t){e=[],i(t),e.length&&o.push(e)})),o}},function(t,e,n){t.exports={components:n(481),dijkstra:n(194),dijkstraAll:n(480),findCycles:n(479),floydWarshall:n(478),isAcyclic:n(477),postorder:n(476),preorder:n(475),prim:n(474),tarjan:n(192),topsort:n(191)}},function(t,e,n){var r=n(18),o=n(114);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return r.map(t.nodes(),(function(e){var n=t.node(e),o=t.parent(e),i={v:e};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}))}(t),edges:function(t){return r.map(t.edges(),(function(e){var n=t.edge(e),o={v:e.v,w:e.w};return r.isUndefined(e.name)||(o.name=e.name),r.isUndefined(n)||(o.value=n),o}))}(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new o(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e){t.exports="2.1.7"},function(t,e,n){var r=n(70);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(223),o=n(486),i=n(100),a=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=a},function(t,e){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e,n){var r=n(197),o=n(490),i=n(489);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e,n){var r=n(491);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(212),o=n(492),i=n(488),a=n(211),s=n(487),l=n(100),u=200;t.exports=function(t,e,n){var c=-1,f=o,p=t.length,h=!0,d=[],m=d;if(n)h=!1,f=i;else if(p>=u){var v=e?null:s(t);if(v)return l(v);h=!1,f=a,m=new r}else m=e?[]:d;t:for(;++c<p;){var y=t[c],g=e?e(y):y;if(y=n||0!==y?y:0,h&&g==g){for(var b=m.length;b--;)if(m[b]===g)continue t;e&&m.push(g),d.push(y)}else f(m,g,n)||(m!==d&&m.push(g),d.push(y))}return d}},function(t,e){var n=800,r=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(103),o=n(233),i=n(36),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(38),o=n(55),i=n(11),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(97),o=n(69),i=n(493),a=n(196),s=o((function(t){return i(r(t,1,a,!0))}));t.exports=s},function(t,e,n){var r=n(111),o=n(219),i=n(102),a=n(28),s=n(73),l=n(11),u=n(42),c=n(57),f=n(16),p=n(54);t.exports=function(t,e,n){var h=l(t),d=h||u(t)||p(t);if(e=a(e,4),null==n){var m=t&&t.constructor;n=d?h?new m:[]:f(t)&&c(m)?o(s(t)):{}}return(d?r:i)(t,(function(t,r,o){return e(n,t,r,o)})),n}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",u="[\\ufe0e\\ufe0f]?"+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*",c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+u,"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(205)("length");t.exports=r},function(t,e,n){var r=n(502),o=n(501),i=n(500);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var r=n(34),o=n(11),i=n(23),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&r(t)==a}},function(t,e,n){var r=n(107),o=n(40),i=n(29),a=n(504),s=n(503),l="[object Map]",u="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?s(t):t.length;var e=o(t);return e==l||e==u?t.size:r(t).length}},function(t,e){t.exports=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}},function(t,e){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var r=n(107),o=n(40),i=n(55),a=n(11),s=n(29),l=n(42),u=n(74),c=n(54),f="[object Map]",p="[object Set]",h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||c(t)||i(t)))return!t.length;var e=o(t);if(e==f||e==p)return!t.size;if(u(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e,n){var r=n(99);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(205),o=n(510),i=n(98),a=n(53);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(38),o=n(70),i=n(11),a=n(39),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},function(t,e,n){var r=n(112),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(514),o=500;t.exports=function(t){var e=r(t,(function(t){return n.size===o&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n(515)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=i},function(t,e,n){var r=n(99);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){var r=n(214),o=n(517),i=n(207),a=n(98),s=n(210),l=n(209),u=n(53),c=1,f=2;t.exports=function(t,e){return a(t)&&s(e)?l(u(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,c|f)}}},function(t,e,n){var r=n(210),o=n(33);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(225),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,s,l){var u=n&o,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var p=f;p--;){var h=c[p];if(!(u?h in e:i.call(e,h)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var m=!0;l.set(t,e),l.set(e,t);for(var v=u;++p<f;){var y=t[h=c[p]],g=e[h];if(a)var b=u?a(g,y,h,e,t,l):a(y,g,h,t,e,l);if(!(void 0===b?y===g||s(y,g,n,a,l):b)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(m=!1)}return l.delete(t),l.delete(e),m}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e,n){var r=n(38),o=n(222),i=n(43),a=n(213),s=n(521),l=n(100),u=1,c=2,f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Map]",m="[object Number]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",x=r?r.prototype:void 0,O=x?x.valueOf:void 0;t.exports=function(t,e,n,r,x,k,E){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!k(new o(t),new o(e)));case f:case p:case m:return i(+t,+e);case h:return t.name==e.name&&t.message==e.message;case v:case g:return t==e+"";case d:var j=s;case y:var S=r&u;if(j||(j=l),t.size!=e.size&&!S)return!1;var P=E.get(t);if(P)return P==e;r|=c,E.set(t,e);var A=a(j(t),j(e),r,x,k,E);return E.delete(t),A;case b:if(O)return O.call(t)==O.call(e)}return!1}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e,n){var r=n(83),o=n(213),i=n(522),a=n(520),s=n(40),l=n(11),u=n(42),c=n(54),f=1,p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,y,g){var b=l(t),w=l(e),_=b?h:s(t),x=w?h:s(e),O=(_=_==p?d:_)==d,k=(x=x==p?d:x)==d,E=_==x;if(E&&u(t)){if(!u(e))return!1;b=!0,O=!1}if(E&&!O)return g||(g=new r),b||c(t)?o(t,e,n,v,y,g):i(t,e,_,n,v,y,g);if(!(n&f)){var j=O&&m.call(t,"__wrapped__"),S=k&&m.call(e,"__wrapped__");if(j||S){var P=j?t.value():t,A=S?e.value():e;return g||(g=new r),y(P,A,n,v,g)}}return!!E&&(g||(g=new r),a(t,e,n,v,y,g))}},function(t,e,n){var r=n(83),o=n(214),i=1,a=2;t.exports=function(t,e,n,s){var l=n.length,u=l,c=!s;if(null==t)return!u;for(t=Object(t);l--;){var f=n[l];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++l<u;){var p=(f=n[l])[0],h=t[p],d=f[1];if(c&&f[2]){if(void 0===h&&!(p in t))return!1}else{var m=new r;if(s)var v=s(h,d,p,t,e,m);if(!(void 0===v?o(d,h,i|a,s,m):v))return!1}}return!0}},function(t,e,n){var r=n(527),o=n(519),i=n(209);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(72);t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},function(t,e,n){var r=n(29);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++o];if(!1===n(i[l],l,i))break}return e}}},function(t,e,n){var r=n(40),o=n(23),i="[object Set]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(532),o=n(75),i=n(108),a=i&&i.isSet,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(40),o=n(23),i="[object Map]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(534),o=n(75),i=n(108),a=i&&i.isMap,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(38),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(104);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e,n){var r=n(104),o=n(538),i=n(537),a=n(536),s=n(221),l="[object Boolean]",u="[object Date]",c="[object Map]",f="[object Number]",p="[object RegExp]",h="[object Set]",d="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",k="[object Uint8ClampedArray]",E="[object Uint16Array]",j="[object Uint32Array]";t.exports=function(t,e,n){var S=t.constructor;switch(e){case v:return r(t);case l:case u:return new S(+t);case y:return o(t,n);case g:case b:case w:case _:case x:case O:case k:case E:case j:return s(t,n);case c:return new S;case f:case d:return new S(t);case p:return i(t);case h:return new S;case m:return a(t)}}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(37)(n(20),"WeakMap");t.exports=r},function(t,e,n){var r=n(37)(n(20),"Promise");t.exports=r},function(t,e,n){var r=n(37)(n(20),"DataView");t.exports=r},function(t,e,n){var r=n(224),o=n(226),i=n(41);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(56),o=n(226);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(56),o=n(106);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(16),o=n(74),i=n(547),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e,n){var r=n(56),o=n(41);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(231)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(34),o=n(109),i=n(23),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(34),o=n(23),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(56),o=n(33);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(79);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(79);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(79);t.exports=function(t){return r(this,t).get(t)}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(79);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,n){var r=n(80),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e,n){var r=n(80),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(80),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(80);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(565),o=n(564),i=n(563),a=n(562),s=n(561);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(566),o=n(82),i=n(113);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(20)["__core-js_shared__"];t.exports=r},function(t,e,n){var r=n(569),o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(57),o=n(570),i=n(16),a=n(234),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:s).test(a(t))}},function(t,e,n){var r=n(82),o=n(113),i=n(112),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e,n){var r=n(82);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e,n){var r=n(81);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(81);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(81);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(81),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(235),o=4;t.exports=function(t){return r(t,o)}},function(t,e,n){t.exports={Graph:n(114),version:n(484)}},function(t,e,n){var r=n(583);t.exports={Graph:r.Graph,json:n(483),alg:n(482),version:r.version}},function(t,e,n){t.exports={graphlib:n(22),layout:n(473),debug:n(416),util:{time:n(15).time,notime:n(15).notime},version:n(415)}},function(t,e,n){var r=n(3),o=n(585),i=r.Util,a=function(){function t(t){i.mix(this,{rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,useEdgeControlPoint:!0,ranker:"network-simplex",callback:null},t)}var e=t.prototype;return e.getValue=function(t){var e=this[t];return i.isFunction(e)?e():e},e.execute=function(){var t=this.nodes,e=this.edges,n={},r=new o.graphlib.Graph,i=this.useEdgeControlPoint;r.setGraph({rankdir:this.getValue("rankdir"),align:this.getValue("align"),nodesep:this.getValue("nodesep"),edgesep:this.getValue("edgesep"),ranksep:this.getValue("ranksep"),marginx:this.getValue("marginx"),marginy:this.getValue("marginy"),acyclicer:this.getValue("acyclicer"),ranker:this.getValue("ranker")}),r.setDefaultEdgeLabel((function(){return{}})),t.forEach((function(t){r.setNode(t.id,{width:t.width,height:t.height}),n[t.id]=t})),e.forEach((function(t){r.setEdge(t.source,t.target)})),o.layout(r),r.nodes().forEach((function(t){var e=r.node(t);n[t].x=e.x,n[t].y=e.y})),r.edges().forEach((function(t,n){var o=r.edge(t);i&&(e[n].controlPoints=o.points.slice(1,o.points.length-1))}))},t}();t.exports=a},function(t,e,n){var r=n(3),o=n(586);r.Layouts.Dagre=o;var i=function(){function t(t){this.options=t}return t.prototype.init=function(){var t=this,e=this.graph;e.on("beforeinit",(function(){var n=new o(t.options);e.set("layout",n)}))},t}();r.Plugins["layout.dagre"]=i,t.exports=i}])}))},1418:function(t,e,n){"use strict";n("f6c7")},"15a5":function(t,e){
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):"function"===typeof define&&define.amd?define(["monaco-editor","@antv/g6","vuex","vue-amap","vue-router","qs",,"lodash/fp/template","axios","vuex/dist/logger"],e):"object"===typeof exports?exports["core"]=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):t["core"]=e(t["monaco-editor"],t["@antv/g6"],t["vuex"],t["vue-amap"],t["vue-router"],t["qs"],t["Vue"],t["lodash/fp/template"],t["axios"],t["vuex/dist/logger"])})("undefined"!==typeof self?self:this,(function(t,e,n,r,o,i,a,s,l,u){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1aba")}({"019f":function(t,e,n){!function(e,r){t.exports=r(n("336c"))}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=587)}([,,,function(e,n){e.exports=t},,,,function(t,e,n){var r;try{r={cloneDeep:n(472),constant:n(103),defaults:n(471),each:n(218),filter:n(215),find:n(470),flatten:n(188),forEach:n(217),forIn:n(466),has:n(204),isUndefined:n(203),last:n(465),map:n(202),mapValues:n(464),max:n(463),merge:n(461),min:n(455),minBy:n(454),now:n(253),pick:n(453),range:n(448),reduce:n(200),sortBy:n(445),uniqueId:n(440),values:n(195),zipObject:n(439)}}catch(t){}r||(r=window._),t.exports=r},,,,function(t,e){var n=Array.isArray;t.exports=n},,,,function(t,e,n){"use strict";var r=n(7),o=n(22).Graph;function i(t,e,n,o){var i;do{i=r.uniqueId(o)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,a=e.x-o,s=e.y-i,l=t.width/2,u=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},,function(t,e,n){var r;try{r={clone:n(582),constant:n(103),each:n(218),filter:n(215),has:n(204),isArray:n(11),isEmpty:n(508),isFunction:n(57),isUndefined:n(203),keys:n(33),map:n(202),reduce:n(200),size:n(505),transform:n(499),union:n(498),values:n(195)}}catch(t){}r||(r=window._),t.exports=r},,function(t,e,n){var r=n(117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},,function(t,e,n){var r;try{r=n(584)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},,,,,function(t,e,n){var r=n(528),o=n(518),i=n(36),a=n(11),s=n(511);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(57),o=n(109);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},,,,function(t,e,n){var r=n(232),o=n(107),i=n(29);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(38),o=n(250),i=n(249),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:l&&l in Object(t)?o(t):i(t)}},,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(571),o=n(568);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(20).Symbol;t.exports=r},function(t,e,n){var r=n(34),o=n(23),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},function(t,e,n){var r=n(543),o=n(113),i=n(542),a=n(223),s=n(541),l=n(34),u=n(234),c=u(r),f=u(o),p=u(i),h=u(a),d=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=m},function(t,e,n){var r=n(232),o=n(548),i=n(29);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){(function(t){var r=n(20),o=n(552),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;t.exports=l}).call(this,n(110)(t))},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,,,,,,function(t,e,n){var r=n(39),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,n){var r=n(551),o=n(75),i=n(108),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(553),o=n(23),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},function(t,e,n){var r=n(78),o=n(77);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var u=e[s],c=i?i(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?o(n,u,c):r(n,u,c)}return n}},function(t,e,n){var r=n(34),o=n(16),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==a||e==s||e==i||e==l}},,,,,,,,,,function(t,e,n){"use strict";var r=n(7);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(o){var i=t.node(o);if(r.has(e,o))return i.rank;e[o]=!0;var a=r.min(r.map(t.outEdges(o),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),i.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,n){var r=n(43),o=n(29),i=n(76),a=n(16);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?o(n)&&i(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(36),o=n(199),i=n(198);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(11),o=n(98),i=n(516),a=n(208);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(102),o=n(530)(r);t.exports=o},function(t,e,n){var r=n(231)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(233);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(77),o=n(43),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(559);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(37)(Object,"create");t.exports=r},function(t,e,n){var r=n(43);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(581),o=n(580),i=n(579),a=n(578),s=n(577);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(82),o=n(576),i=n(575),a=n(574),s=n(573),l=n(572);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,t.exports=u},,,,,,,,,,,,,function(t,e,n){var r=n(39);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=e(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},function(t,e,n){var r=n(105),o=n(497);t.exports=function t(e,n,i,a,s){var l=-1,u=e.length;for(i||(i=o),s||(s=[]);++l<u;){var c=e[l];n>0&&i(c)?n>1?t(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(t,e,n){var r=n(11),o=n(39),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(71),o=n(53);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(531)();t.exports=r},function(t,e,n){var r=n(101),o=n(33);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(222);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(228),o=n(227),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=s},function(t,e,n){var r=n(74),o=n(550),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){(function(t){var r=n(117),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(110)(t))},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(567),o=n(560),i=n(558),a=n(557),s=n(556);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(37)(n(20),"Map");t.exports=r},function(t,e,n){"use strict";var r=n(18);t.exports=s;var o="\0",i="\0",a="";function s(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(t,e){t[e]?t[e]++:t[e]=1}function u(t,e){--t[e]||delete t[e]}function c(t,e,n,i){var s=""+e,l=""+n;if(!t&&s>l){var u=s;s=l,l=u}return s+a+l+a+(r.isUndefined(i)?o:i)}function f(t,e){return c(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,o=this;return r.each(t,(function(t){n.length>1?o.setNode(t,e):o.setNode(t)})),this},s.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children[i][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var o={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var i=n.parent(r);return void 0===i||e.hasNode(i)?(o[r]=i,i):i in o?o[i]:t(i)}(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,o=arguments;return r.reduce(t,(function(t,r){return o.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},s.prototype.setEdge=function(){var t,e,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=c(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(t,e,n);var u=function(t,e,n,r){var o=""+e,i=""+n;if(!t&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}(this._isDirected,t,e,n);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[s]=u,l(this._preds[e],t),l(this._sucs[t],e),this._in[e][s]=u,this._out[t][s]=u,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var o=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):c(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],u(this._preds[e],t),u(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var o=r.values(n);return e?r.filter(o,(function(t){return t.v===e})):o}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var o=r.values(n);return e?r.filter(o,(function(t){return t.w===e})):o}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},,,function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(252))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(22).Graph,i=n(67).slack;function a(t,e){return r.forEach(t.nodes(),(function n(o){r.forEach(e.nodeEdges(o),(function(r){var a=r.v,s=o===a?r.w:a;t.hasNode(s)||i(e,r)||(t.setNode(s,{}),t.setEdge(o,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return i(e,n)}))}function l(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new o({directed:!1}),u=t.nodes()[0],c=t.nodeCount();for(r.setNode(u,{});a(r,t)<c;)e=s(r,t),n=r.hasNode(e.v)?i(t,e):-i(t,e),l(r,t,n);return r}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e){t.exports=function(t,e){if("__proto__"!=e)return t[e]}},function(t,e,n){var r=n(77),o=n(43);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(97);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(251),o=1/0,i=17976931348623157e292;t.exports=function(t){return t?(t=r(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){t(e,n,o,i,a,s)})),o&&s.push(n))}(t,e,"post"===n,a,o,i)})),i}},function(t,e,n){var r=n(18);function o(t){var e={},n={},o=[];if(r.each(t.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],o.push(s))})),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},function(t,e,n){var r=n(18);t.exports=function(t){var e=0,n=[],o={},i=[];return t.nodes().forEach((function(a){r.has(o,a)||function a(s){var l=o[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(o,t)?o[t].onStack&&(l.lowlink=Math.min(l.lowlink,o[t].index)):(a(t),l.lowlink=Math.min(l.lowlink,o[t].lowlink))})),l.lowlink===l.index){var u,c=[];do{u=n.pop(),o[u].onStack=!1,c.push(u)}while(s!==u);i.push(c)}}(a)})),i}},function(t,e,n){var r=n(18);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},o.prototype.has=function(t){return r.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var o=this._arr,i=o.length;return n[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},o.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,o=t;n<e.length&&(o=e[n].priority<e[o].priority?n:o,r<e.length&&(o=e[r].priority<e[o].priority?r:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,o=n[t],i=n[e];n[t]=i,n[e]=o,r[i.key]=t,r[o.key]=e}},function(t,e,n){var r=n(18),o=n(193);t.exports=function(t,e,n,r){return function(t,e,n,r){var i,a,s={},l=new o,u=function(t){var e=t.v!==i?t.v:t.w,r=s[e],o=n(t),u=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);u<r.distance&&(r.distance=u,r.predecessor=i,l.decrease(e,u))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},l.add(t,n)}));l.size()>0&&(i=l.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(u);return s}(t,String(e),n||i,r||function(e){return t.outEdges(e)})};var i=r.constant(1)},function(t,e,n){var r=n(485),o=n(33);t.exports=function(t){return null==t?[]:r(t,o(t))}},function(t,e,n){var r=n(29),o=n(23);t.exports=function(t){return o(t)&&r(t)}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,n){var r=n(495),o=n(494)(r);t.exports=o},function(t,e,n){var r=n(496),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),l=Array(s);++a<s;)l[a]=i[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=i[a];return u[e]=n(l),r(t,this,u)}}},function(t,e,n){var r=n(507),o=n(72),i=n(28),a=n(506),s=n(11);t.exports=function(t,e,n){var l=s(t)?r:a,u=arguments.length<3;return l(t,i(e,4),n,u,o)}},function(t,e,n){var r=n(72),o=n(29);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},function(t,e,n){var r=n(70),o=n(28),i=n(201),a=n(11);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(509),o=n(206);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(71),o=n(55),i=n(11),a=n(76),s=n(109),l=n(53);t.exports=function(t,e,n){for(var u=-1,c=(e=r(e,t)).length,f=!1;++u<c;){var p=l(e[u]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++u!=c?f:!!(c=null==t?0:t.length)&&s(c)&&a(p,c)&&(i(t)||o(t))}},function(t,e,n){var r=n(512),o=n(206);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e,n){var r=n(513);t.exports=function(t){return null==t?"":r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var r=n(16);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(112),o=n(525),i=n(524);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,n){var r=n(212),o=n(523),i=n(211),a=1,s=2;t.exports=function(t,e,n,l,u,c){var f=n&a,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=c.get(t);if(d&&c.get(e))return d==e;var m=-1,v=!0,y=n&s?new r:void 0;for(c.set(t,e),c.set(e,t);++m<p;){var g=t[m],b=e[m];if(l)var w=f?l(b,g,m,e,t,c):l(g,b,m,t,e,c);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(g===t||u(g,t,n,l,c)))return y.push(e)}))){v=!1;break}}else if(g!==b&&!u(g,b,n,l,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},function(t,e,n){var r=n(526),o=n(23);t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},function(t,e,n){var r=n(228),o=n(529),i=n(28),a=n(11);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){var r=n(36);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(111),o=n(72),i=n(216),a=n(11);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},function(t,e,n){t.exports=n(217)},function(t,e,n){var r=n(16),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(219),o=n(73),i=n(74);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(104);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(20).Uint8Array;t.exports=r},function(t,e,n){var r=n(37)(n(20),"Set");t.exports=r},function(t,e,n){var r=n(105),o=n(11);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e,n){var r=n(224),o=n(106),i=n(33);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(105),o=n(73),i=n(106),a=n(227),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e){t.exports=function(){return[]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){(function(t){var r=n(20),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(110)(t))},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(554),o=n(55),i=n(11),a=n(42),s=n(76),l=n(54),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),c=!n&&o(t),f=!n&&!c&&a(t),p=!n&&!c&&!f&&l(t),h=n||c||f||p,d=h?r(t.length,String):[],m=d.length;for(var v in t)!e&&!u.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||d.push(v);return d}},function(t,e,n){var r=n(37),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(83),o=n(111),i=n(78),a=n(555),s=n(549),l=n(230),u=n(229),c=n(546),f=n(545),p=n(225),h=n(544),d=n(40),m=n(540),v=n(539),y=n(220),g=n(11),b=n(42),w=n(535),_=n(16),x=n(533),k=n(33),O=1,E=2,j=4,S="[object Arguments]",P="[object Function]",A="[object GeneratorFunction]",N="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[N]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[P]=C["[object WeakMap]"]=!1,t.exports=function t(e,n,T,L,M,q){var I,D=n&O,R=n&E,$=n&j;if(T&&(I=M?T(e,L,M,q):T(e)),void 0!==I)return I;if(!_(e))return e;var B=g(e);if(B){if(I=m(e),!D)return u(e,I)}else{var V=d(e),F=V==P||V==A;if(b(e))return l(e,D);if(V==N||V==S||F&&!M){if(I=R||F?{}:y(e),!D)return R?f(e,s(I,e)):c(e,a(I,e))}else{if(!C[V])return M?e:{};I=v(e,V,D)}}q||(q=new r);var U=q.get(e);if(U)return U;if(q.set(e,I),x(e))return e.forEach((function(r){I.add(t(r,n,T,r,e,q))})),I;if(w(e))return e.forEach((function(r,o){I.set(o,t(r,n,T,o,e,q))})),I;var K=$?R?h:p:R?keysIn:k,z=B?void 0:K(e);return o(z||e,(function(r,o){z&&(r=e[o=r]),i(I,o,t(r,n,T,o,e,q))})),I}},,,,,,,,,,,,,,function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(38),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e,n){var r=n(16),o=n(39),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=l.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?i:+t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(20);t.exports=function(){return r.Date.now()}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports="0.8.4"},function(t,e,n){var r=n(7),o=n(15),i=n(22).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var o="layer"+e;n.setNode(o,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},function(t,e,n){"use strict";var r=n(7),o=n(22).Graph,i=n(15);function a(t,e){var n={};return r.reduce(e,(function(e,o){var i=0,a=0,s=e.length,u=r.last(o);return r.forEach(o,(function(e,c){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),p=f?t.node(f).order:s;(f||e===u)&&(r.forEach(o.slice(a,c+1),(function(e){r.forEach(t.predecessors(e),(function(r){var o=t.node(r),a=o.order;!(a<i||p<a)||o.dummy&&t.node(e).dummy||l(n,r,e)}))})),a=c+1,i=p)})),o})),n}function s(t,e){var n={};function o(e,o,i,a,s){var u;r.forEach(r.range(o,i),(function(o){u=e[o],t.node(u).dummy&&r.forEach(t.predecessors(u),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&l(n,e,u)}))}))}return r.reduce(e,(function(e,n){var i,a=-1,s=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(i=t.node(u[0]).order,o(n,s,l,a,i),s=l,a=i)}o(n,s,n.length,i,e.length)})),n})),n}function l(t,e,n){if(e>n){var r=e;e=n,n=r}var o=t[e];o||(t[e]=o={}),o[n]=!0}function u(t,e,n){if(e>n){var o=e;e=n,n=o}return r.has(t[e],n)}function c(t,e,n,o){var i={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){i[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var l=o(t);if(l.length)for(var c=((l=r.sortBy(l,(function(t){return s[t]}))).length-1)/2,f=Math.floor(c),p=Math.ceil(c);f<=p;++f){var h=l[f];a[t]===t&&e<s[h]&&!u(n,t,h)&&(a[h]=t,a[t]=i[t]=i[h],e=s[h])}}))})),{root:i,align:a}}function f(t,e,n,i,a){var s={},l=function(t,e,n,i){var a=new o,s=t.graph(),l=function(t,e,n){return function(o,i,a){var s,l=o.node(i),u=o.node(a),c=0;if(c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(c+=n?s:-s),s=0,c+=(l.dummy?e:t)/2,c+=(u.dummy?e:t)/2,c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2}return s&&(c+=n?s:-s),s=0,c}}(s.nodesep,s.edgesep,i);return r.forEach(e,(function(e){var o;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),o){var i=n[o],s=a.edge(i,r);a.setEdge(i,r,Math.max(l(t,e,o),s||0))}o=e}))})),a}(t,e,n,a),u=a?"borderLeft":"borderRight";function c(t,e){for(var n=l.nodes(),r=n.pop(),o={};r;)o[r]?t(r):(o[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return c((function(t){s[t]=l.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+l.edge(e))}),0)}),l.predecessors.bind(l)),c((function(e){var n=l.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-l.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(s[e]=Math.max(s[e],n))}),l.successors.bind(l)),r.forEach(i,(function(t){s[t]=s[n[t]]})),s}function p(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var i=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+i,n),o=Math.min(e-i,o)})),n-o}))}function h(t,e){var n=r.values(e),o=r.min(n),i=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,l=n+a,u=t[l];if(u!==e){var c=r.values(u);(s="l"===a?o-r.min(c):i-r.max(c))&&(t[l]=r.mapValues(u,(function(t){return t+s})))}}))}))}function d(t,e){return r.mapValues(t.ul,(function(n,o){if(e)return t[e.toLowerCase()][o];var i=r.sortBy(r.map(t,o));return(i[1]+i[2])/2}))}t.exports={positionX:function(t){var e,n=i.buildLayerMatrix(t),o=r.merge(a(t,n),s(t,n)),l={};r.forEach(["u","d"],(function(i){e="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===i?t.predecessors:t.successors).bind(t),s=c(t,e,o,a),u=f(t,e,s.root,s.align,"r"===n);"r"===n&&(u=r.mapValues(u,(function(t){return-t}))),l[i+n]=u}))}));var u=p(t,l);return h(l,u),d(l,t.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:f,alignCoordinates:h,findSmallestWidthAlignment:p,balance:d}},function(t,e,n){"use strict";var r=n(7),o=n(15),i=n(417).positionX;t.exports=function(t){(function(t){var e=o.buildLayerMatrix(t),n=t.graph().ranksep,i=0;r.forEach(e,(function(e){var o=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=i+o/2})),i+=o+n}))})(t=o.asNonCompoundGraph(t)),r.forEach(i(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){var o,i={};r.forEach(n,(function(n){for(var r,a,s=t.parent(n);s;){if((r=t.parent(s))?(a=i[r],i[r]=s):(a=o,o=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}},function(t,e,n){var r=n(7),o=n(22).Graph;t.exports=function(t,e,n){var i=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(o){var s=t.node(o),l=t.parent(o);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(o),a.setParent(o,l||i),r.forEach(t[n](o),(function(e){var n=e.v===o?e.w:e.v,i=a.edge(n,o),s=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&a.setNode(o,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},function(t,e,n){var r=n(7),o=n(15);function i(t,e,n){for(var o;e.length&&(o=r.last(e)).i<=n;)e.pop(),t.push(o.vs),n++;return n}t.exports=function(t,e){var n=o.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,s=r.sortBy(n.rhs,(function(t){return-t.i})),l=[],u=0,c=0,f=0;a.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!e)),f=i(l,s,f),r.forEach(a,(function(t){f+=t.vs.length,l.push(t.vs),u+=t.barycenter*t.weight,c+=t.weight,f=i(l,s,f)}));var p={vs:r.flatten(l,!0)};return c&&(p.barycenter=u/c,p.weight=c),p}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var o=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],o=n[t.w];r.isUndefined(e)||r.isUndefined(o)||(o.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function o(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i=t.pop();e.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var r=n(7);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var o=r.reduce(n,(function(e,n){var r=t.edge(n),o=t.node(n.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}return{v:e}}))}},function(t,e,n){var r=n(7),o=n(423),i=n(422),a=n(421);t.exports=function t(e,n,s,l){var u=e.children(n),c=e.node(n),f=c?c.borderLeft:void 0,p=c?c.borderRight:void 0,h={};f&&(u=r.filter(u,(function(t){return t!==f&&t!==p})));var d=o(e,u);r.forEach(d,(function(n){if(e.children(n.v).length){var o=t(e,n.v,s,l);h[n.v]=o,r.has(o,"barycenter")&&function(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(n,o)}}));var m=i(d,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(m,h);var v=a(m,l);if(f&&(v.vs=r.flatten([f,v.vs,p],!0),e.predecessors(f).length)){var y=e.node(e.predecessors(f)[0]),g=e.node(e.predecessors(p)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+g.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,n){"use strict";var r=n(7);function o(t,e,n){for(var o=r.zipObject(n,r.map(n,(function(t,e){return e}))),i=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:o[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(new Array(s),(function(){return 0})),u=0;return r.forEach(i.forEach((function(t){var e=t.pos+a;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=o(t,e[r-1],e[r]);return n}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),o=r.max(r.map(n,(function(e){return t.node(e).rank}))),i=r.map(r.range(o+1),(function(){return[]})),a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(o){if(!r.has(e,o)){e[o]=!0;var a=t.node(o);i[a.rank].push(o),r.forEach(t.successors(o),n)}})),i}},function(t,e,n){"use strict";var r=n(7),o=n(426),i=n(425),a=n(424),s=n(420),l=n(419),u=n(22).Graph,c=n(15);function f(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function p(t,e){var n=new u;r.forEach(t,(function(t){var o=t.graph().root,i=a(t,o,n,e);r.forEach(i.vs,(function(e,n){t.node(e).order=n})),l(t,n,i.vs)}))}function h(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=c.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),a=f(t,r.range(e-1,-1,-1),"outEdges"),s=o(t);h(t,s);for(var l,u=Number.POSITIVE_INFINITY,d=0,m=0;m<4;++d,++m){p(d%2?n:a,d%4>=2),s=c.buildLayerMatrix(t);var v=i(t,s);v<u&&(m=0,l=r.cloneDeep(s),u=v)}h(t,l)}},function(t,e,n){"use strict";var r=n(7);function o(t){r.forEach(t.nodes(),(function(e){i(t.node(e))})),r.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),o(t))}}},function(t,e,n){var r=n(7),o=n(15);function i(t,e,n,r,i,a){var s={width:0,height:0,rank:a,borderType:e},l=i[e][a-1],u=o.addDummyNode(t,"border",s,n);i[e][a]=u,t.setParent(u,r),l&&t.setEdge(l,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var o=t.children(n),a=t.node(n);if(o.length&&r.forEach(o,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)i(t,"borderLeft","_bl",n,a,s),i(t,"borderRight","_br",n,a,s)}}))}},function(t,e,n){var r=n(7),o=n(15);t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),(function(n){!function n(o,i){var a=t.children(o);a&&a.length&&r.forEach(a,(function(t){n(t,i+1)})),e[o]=i}(n,1)})),e}(t),i=r.max(r.values(n))-1,a=2*i+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var s=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(l){!function t(e,n,i,a,s,l,u){var c=e.children(u);if(c.length){var f=o.addBorderNode(e,"_bt"),p=o.addBorderNode(e,"_bb"),h=e.node(u);e.setParent(f,u),h.borderTop=f,e.setParent(p,u),h.borderBottom=p,r.forEach(c,(function(r){t(e,n,i,a,s,l,r);var o=e.node(r),c=o.borderTop?o.borderTop:r,h=o.borderBottom?o.borderBottom:r,d=o.borderTop?a:2*a,m=c!==h?1:s-l[u]+1;e.setEdge(f,c,{weight:d,minlen:m,nestingEdge:!0}),e.setEdge(h,p,{weight:d,minlen:m,nestingEdge:!0})})),e.parent(u)||e.setEdge(n,f,{weight:0,minlen:s+l[u]})}else u!==n&&e.setEdge(n,u,{weight:0,minlen:i})}(t,e,a,s,i,n,l)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}}},function(t,e,n){var r=n(7);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function o(i){var a=n;r.forEach(t.children(i),o),e[i]={low:a,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),o=r.edgeObj,i=function(t,e,n,r){var o,i,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);o=n;do{o=t.parent(o),a.push(o)}while(o&&(e[o].low>l||u>e[o].lim));for(i=o,o=r;(o=t.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(t,e,o.v,o.w),a=i.path,s=i.lca,l=0,u=a[l],c=!0;n!==o.w;){if(r=t.node(n),c){for(;(u=a[l])!==s&&t.node(u).maxRank<r.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&t.node(u=a[l+1]).minRank<=r.rank;)l++;u=a[l]}t.setParent(n,u),n=t.successors(n)[0]}}))}},function(t,e,n){"use strict";var r=n(7),o=n(184),i=n(67).slack,a=n(67).longestPath,s=n(22).alg.preorder,l=n(22).alg.postorder,u=n(15).simplify;function c(t){t=u(t),a(t);var e,n=o(t);for(h(n),f(n,t);e=d(n);)v(n,t,e,m(n,t,e))}function f(t,e){var n=l(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=p(t,e,n)}(t,e,n)}))}function p(t,e,n){var o=t.node(n).parent,i=!0,a=e.edge(n,o),s=0;return a||(i=!1,a=e.edge(o,n)),s=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a=r.v===n,l=a?r.w:r.v;if(l!==o){var u=a===i,c=e.edge(r).weight;if(s+=u?c:-c,function(t,e,n){return t.hasEdge(e,n)}(t,n,l)){var f=t.edge(n,l).cutvalue;s+=u?-f:f}}})),s}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,o,i,a){var s=o,l=e.node(i);return n[i]=!0,r.forEach(e.neighbors(i),(function(a){r.has(n,a)||(o=t(e,n,o,a,i))})),l.low=s,l.lim=o++,a?l.parent=a:delete l.parent,o}(t,{},1,e)}function d(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var o=n.v,a=n.w;e.hasEdge(o,a)||(o=n.w,a=n.v);var s=t.node(o),l=t.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var f=r.filter(e.edges(),(function(e){return c===y(t,t.node(e.v),u)&&c!==y(t,t.node(e.w),u)}));return r.minBy(f,(function(t){return i(e,t)}))}function v(t,e,n,o){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(o.v,o.w,{}),h(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),o=s(t,n);o=o.slice(1),r.forEach(o,(function(n){var r=t.node(n).parent,o=e.edge(n,r),i=!1;o||(o=e.edge(r,n),i=!0),e.node(n).rank=e.node(r).rank+(i?o.minlen:-o.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=c,c.initLowLimValues=h,c.initCutValues=f,c.calcCutValue=p,c.leaveEdge=d,c.enterEdge=m,c.exchangeEdges=v},function(t,e,n){"use strict";var r=n(67).longestPath,o=n(184),i=n(432);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":s(t);break;case"tight-tree":!function(t){r(t),o(t)}(t);break;case"longest-path":a(t);break;default:s(t)}};var a=r;function s(t){i(t)}},function(t,e,n){"use strict";var r=n(7),o=n(15);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,i,a=e.v,s=t.node(a).rank,l=e.w,u=t.node(l).rank,c=e.name,f=t.edge(e),p=f.labelRank;if(u!==s+1){for(t.removeEdge(e),i=0,++s;s<u;++i,++s)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:e,rank:s},n=o.addDummyNode(t,"edge",r,"_d"),s===p&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},c),0===i&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,l,{weight:f.weight},c)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),o=r.edgeLabel;for(t.setEdge(r.edgeObj,o);r.dummy;)n=t.successors(e)[0],t.removeNode(e),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),e=n,r=t.node(e)}))}}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function o(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,o)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){var r=n(7),o=n(22).Graph,i=n(435);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new o,a=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,o=e(t),i=r+o;n.setEdge(t.v,t.w,i),s=Math.max(s,n.node(t.v).out+=o),a=Math.max(a,n.node(t.w).in+=o)}));var u=r.range(s+a+3).map((function(){return new i})),c=a+1;return r.forEach(n.nodes(),(function(t){l(u,c,n.node(t))})),{graph:n,buckets:u,zeroIdx:c}}(t,e||a),u=function(t,e,n){for(var r,o=[],i=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)s(t,e,n,r);for(;r=i.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(r=e[l].dequeue()){o=o.concat(s(t,e,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,o,i){var a=i?[]:void 0;return r.forEach(t.inEdges(o.v),(function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,l(e,n,s)})),r.forEach(t.outEdges(o.v),(function(r){var o=t.edge(r),i=r.w,a=t.node(i);a.in-=o,l(e,n,a)})),t.removeNode(o.v),a}function l(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e,n){"use strict";var r=n(7),o=n(436);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?o(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},o={};return r.forEach(t.nodes(),(function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):i(t.w)})),delete n[a])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},function(t,e){t.exports=function(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var s=r<i?e[r]:void 0;n(a,t[r],s)}return a}},function(t,e,n){var r=n(78),o=n(438);t.exports=function(t,e){return o(t||[],e||[],r)}},function(t,e,n){var r=n(208),o=0;t.exports=function(t){var e=++o;return r(t)+e}},function(t,e,n){var r=n(39);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),s=void 0!==e,l=null===e,u=e==e,c=r(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||o&&s&&u||!n&&u||!i)return 1;if(!o&&!a&&!c&&t<e||c&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}},function(t,e,n){var r=n(441);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,l=n.length;++o<s;){var u=r(i[o],a[o]);if(u)return o>=l?u:u*("desc"==n[o]?-1:1)}return t.index-e.index}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(70),o=n(28),i=n(201),a=n(443),s=n(75),l=n(442),u=n(36);t.exports=function(t,e,n){var c=-1;e=r(e.length?e:[u],s(o));var f=i(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++c,value:t}}));return a(f,(function(t,e){return l(t,e,n)}))}},function(t,e,n){var r=n(97),o=n(444),i=n(69),a=n(68),s=i((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])}));t.exports=s},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,o,i){for(var a=-1,s=r(n((e-t)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=t,t+=o;return l}},function(t,e,n){var r=n(446),o=n(68),i=n(189);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},function(t,e,n){var r=n(447)();t.exports=r},function(t,e,n){var r=n(188),o=n(199),i=n(198);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,e,n){var r=n(78),o=n(71),i=n(76),a=n(16),s=n(53);t.exports=function(t,e,n,l){if(!a(t))return t;for(var u=-1,c=(e=o(e,t)).length,f=c-1,p=t;null!=p&&++u<c;){var h=s(e[u]),d=n;if(u!=f){var m=p[h];void 0===(d=l?l(m,h,p):void 0)&&(d=a(m)?m:i(e[u+1])?[]:{})}r(p,h,d),p=p[h]}return t}},function(t,e,n){var r=n(99),o=n(450),i=n(71);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var u=e[a],c=r(t,u);n(c,u)&&o(l,i(u,t),c)}return l}},function(t,e,n){var r=n(451),o=n(207);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},function(t,e,n){var r=n(452),o=n(449)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},function(t,e,n){var r=n(96),o=n(28),i=n(185);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},function(t,e,n){var r=n(96),o=n(185),i=n(36);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},function(t,e,n){var r=n(69),o=n(68);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,a)}return e}))}},function(t,e,n){var r=n(56),o=n(41);t.exports=function(t){return r(t,o(t))}},function(t,e,n){var r=n(34),o=n(73),i=n(23),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!i(t)||r(t)!=a)return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(t,e,n){var r=n(187),o=n(230),i=n(221),a=n(229),s=n(220),l=n(55),u=n(11),c=n(196),f=n(42),p=n(57),h=n(16),d=n(458),m=n(54),v=n(186),y=n(457);t.exports=function(t,e,n,g,b,w,_){var x=v(t,n),k=v(e,n),O=_.get(k);if(O)r(t,n,O);else{var E=w?w(x,k,n+"",t,e,_):void 0,j=void 0===E;if(j){var S=u(k),P=!S&&f(k),A=!S&&!P&&m(k);E=k,S||P||A?u(x)?E=x:c(x)?E=a(x):P?(j=!1,E=o(k,!0)):A?(j=!1,E=i(k,!0)):E=[]:d(k)||l(k)?(E=x,l(x)?E=y(x):h(x)&&!p(x)||(E=s(k))):j=!1}j&&(_.set(k,E),b(E,k,g,w,_),_.delete(k)),r(t,n,E)}}},function(t,e,n){var r=n(83),o=n(187),i=n(101),a=n(459),s=n(16),l=n(41),u=n(186);t.exports=function t(e,n,c,f,p){e!==n&&i(n,(function(i,l){if(s(i))p||(p=new r),a(e,n,l,c,t,f,p);else{var h=f?f(u(e,l),i,l+"",e,n,p):void 0;void 0===h&&(h=i),o(e,l,h)}}),l)}},function(t,e,n){var r=n(460),o=n(456)((function(t,e,n){r(t,e,n)}));t.exports=o},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(96),o=n(462),i=n(36);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},function(t,e,n){var r=n(77),o=n(102),i=n(28);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(101),o=n(216),i=n(41);t.exports=function(t,e){return null==t?t:r(t,o(e),i)}},function(t,e,n){var r=n(189);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(197),o=n(28),i=n(467),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(t,o(e,3),l)}},function(t,e,n){var r=n(28),o=n(29),i=n(33);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!o(e)){var l=r(n,3);e=i(e),n=function(t){return l(s[t],t,s)}}var u=t(e,n,a);return u>-1?s[l?e[u]:u]:void 0}}},function(t,e,n){var r=n(469)(n(468));t.exports=r},function(t,e,n){var r=n(69),o=n(43),i=n(68),a=n(41),s=Object.prototype,l=s.hasOwnProperty,u=r((function(t,e){t=Object(t);var n=-1,r=e.length,u=r>2?e[2]:void 0;for(u&&i(e[0],e[1],u)&&(r=1);++n<r;)for(var c=e[n],f=a(c),p=-1,h=f.length;++p<h;){var d=f[p],m=t[d];(void 0===m||o(m,s[d])&&!l.call(t,d))&&(t[d]=c[d])}return t}));t.exports=u},function(t,e,n){var r=n(235),o=1,i=4;t.exports=function(t){return r(t,o|i)}},function(t,e,n){"use strict";var r=n(7),o=n(437),i=n(434),a=n(433),s=n(15).normalizeRanks,l=n(431),u=n(15).removeEmptyRanks,c=n(430),f=n(429),p=n(428),h=n(427),d=n(418),m=n(15),v=n(22).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?m.time:m.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=j(t.graph());return e.setGraph(r.merge({},g,E(n,y),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var o=j(t.node(n));e.setNode(n,r.defaults(E(o,w),_)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var o=j(t.edge(n));e.setEdge(n,r.merge({},k,E(o,x),r.pick(o,O)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){o.run(t)})),e(" nestingGraph.run",(function(){c.run(t)})),e(" rank",(function(){a(m.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),o=t.node(e.w),i={rank:(o.rank-r.rank)/2+r.rank,e:e};m.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){c.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var o=t.node(n);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=r.max(e,o.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){l(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){h(t)})),e(" insertSelfEdges",(function(){!function(t){var e=m.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,o){var i=t.node(e);i.order=o+n,r.forEach(i.selfEdges,(function(e){m.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++n,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){p.adjust(t)})),e(" position",(function(){d(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),o=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){p.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,l=a.marginy||0;function u(t){var r=t.x,a=t.y,s=t.width,l=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,a-l/2),i=Math.max(i,a+l/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=s,o-=l,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=o})),r.forEach(t.edges(),(function(n){var i=t.edge(n);r.forEach(i.points,(function(t){t.x-=e,t.y-=o})),r.has(i,"x")&&(i.x-=e),r.has(i,"y")&&(i.y-=o)})),a.width=n-e+s,a.height=i-o+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(m.intersectRect(i,n)),o.points.push(m.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){o.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),o=e.node(n);r&&(r.x=o.x,r.y=o.y,e.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(t.edges(),(function(n){var o=t.edge(n),i=e.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},O=["labelpos"];function E(t,e){return r.mapValues(r.pick(t,e),Number)}function j(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var r=n(18),o=n(114),i=n(193);t.exports=function(t,e){var n,a=new o,s={},l=new i;function u(t){var r=t.v===n?t.w:t.v,o=l.priority(r);if(void 0!==o){var i=e(t);i<o&&(s[r]=n,l.decrease(r,i))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){l.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),l.decrease(t.nodes()[0],0);for(var c=!1;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(u)}return a}},function(t,e,n){var r=n(190);t.exports=function(t,e){return r(t,e,"pre")}},function(t,e,n){var r=n(190);t.exports=function(t,e){return r(t,e,"post")}},function(t,e,n){var r=n(191);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){return function(t,e,n){var r={},o=t.nodes();return o.forEach((function(t){r[t]={},r[t][t]={distance:0},o.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var o=n.v===t?n.w:n.v,i=e(n);r[t][o]={distance:i,predecessor:t}}))})),o.forEach((function(t){var e=r[t];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[t],o=e[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)}))}))})),r}(t,e||o,n||function(e){return t.outEdges(e)})};var o=r.constant(1)},function(t,e,n){var r=n(18),o=n(192);t.exports=function(t){return r.filter(o(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var r=n(194),o=n(18);t.exports=function(t,e,n){return o.transform(t.nodes(),(function(o,i){o[i]=r(t,i,e,n)}),{})}},function(t,e,n){var r=n(18);t.exports=function(t){var e,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,e.push(o),r.each(t.successors(o),i),r.each(t.predecessors(o),i))}return r.each(t.nodes(),(function(t){e=[],i(t),e.length&&o.push(e)})),o}},function(t,e,n){t.exports={components:n(481),dijkstra:n(194),dijkstraAll:n(480),findCycles:n(479),floydWarshall:n(478),isAcyclic:n(477),postorder:n(476),preorder:n(475),prim:n(474),tarjan:n(192),topsort:n(191)}},function(t,e,n){var r=n(18),o=n(114);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return r.map(t.nodes(),(function(e){var n=t.node(e),o=t.parent(e),i={v:e};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}))}(t),edges:function(t){return r.map(t.edges(),(function(e){var n=t.edge(e),o={v:e.v,w:e.w};return r.isUndefined(e.name)||(o.name=e.name),r.isUndefined(n)||(o.value=n),o}))}(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new o(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e){t.exports="2.1.7"},function(t,e,n){var r=n(70);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(223),o=n(486),i=n(100),a=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=a},function(t,e){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e,n){var r=n(197),o=n(490),i=n(489);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e,n){var r=n(491);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(212),o=n(492),i=n(488),a=n(211),s=n(487),l=n(100),u=200;t.exports=function(t,e,n){var c=-1,f=o,p=t.length,h=!0,d=[],m=d;if(n)h=!1,f=i;else if(p>=u){var v=e?null:s(t);if(v)return l(v);h=!1,f=a,m=new r}else m=e?[]:d;t:for(;++c<p;){var y=t[c],g=e?e(y):y;if(y=n||0!==y?y:0,h&&g==g){for(var b=m.length;b--;)if(m[b]===g)continue t;e&&m.push(g),d.push(y)}else f(m,g,n)||(m!==d&&m.push(g),d.push(y))}return d}},function(t,e){var n=800,r=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(103),o=n(233),i=n(36),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(38),o=n(55),i=n(11),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(97),o=n(69),i=n(493),a=n(196),s=o((function(t){return i(r(t,1,a,!0))}));t.exports=s},function(t,e,n){var r=n(111),o=n(219),i=n(102),a=n(28),s=n(73),l=n(11),u=n(42),c=n(57),f=n(16),p=n(54);t.exports=function(t,e,n){var h=l(t),d=h||u(t)||p(t);if(e=a(e,4),null==n){var m=t&&t.constructor;n=d?h?new m:[]:f(t)&&c(m)?o(s(t)):{}}return(d?r:i)(t,(function(t,r,o){return e(n,t,r,o)})),n}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",u="[\\ufe0e\\ufe0f]?"+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*",c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+u,"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(205)("length");t.exports=r},function(t,e,n){var r=n(502),o=n(501),i=n(500);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var r=n(34),o=n(11),i=n(23),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&r(t)==a}},function(t,e,n){var r=n(107),o=n(40),i=n(29),a=n(504),s=n(503),l="[object Map]",u="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?s(t):t.length;var e=o(t);return e==l||e==u?t.size:r(t).length}},function(t,e){t.exports=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}},function(t,e){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var r=n(107),o=n(40),i=n(55),a=n(11),s=n(29),l=n(42),u=n(74),c=n(54),f="[object Map]",p="[object Set]",h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||c(t)||i(t)))return!t.length;var e=o(t);if(e==f||e==p)return!t.size;if(u(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e,n){var r=n(99);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(205),o=n(510),i=n(98),a=n(53);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(38),o=n(70),i=n(11),a=n(39),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},function(t,e,n){var r=n(112),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(514),o=500;t.exports=function(t){var e=r(t,(function(t){return n.size===o&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n(515)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=i},function(t,e,n){var r=n(99);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){var r=n(214),o=n(517),i=n(207),a=n(98),s=n(210),l=n(209),u=n(53),c=1,f=2;t.exports=function(t,e){return a(t)&&s(e)?l(u(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,c|f)}}},function(t,e,n){var r=n(210),o=n(33);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(225),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,s,l){var u=n&o,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var p=f;p--;){var h=c[p];if(!(u?h in e:i.call(e,h)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var m=!0;l.set(t,e),l.set(e,t);for(var v=u;++p<f;){var y=t[h=c[p]],g=e[h];if(a)var b=u?a(g,y,h,e,t,l):a(y,g,h,t,e,l);if(!(void 0===b?y===g||s(y,g,n,a,l):b)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(m=!1)}return l.delete(t),l.delete(e),m}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e,n){var r=n(38),o=n(222),i=n(43),a=n(213),s=n(521),l=n(100),u=1,c=2,f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Map]",m="[object Number]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",x=r?r.prototype:void 0,k=x?x.valueOf:void 0;t.exports=function(t,e,n,r,x,O,E){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!O(new o(t),new o(e)));case f:case p:case m:return i(+t,+e);case h:return t.name==e.name&&t.message==e.message;case v:case g:return t==e+"";case d:var j=s;case y:var S=r&u;if(j||(j=l),t.size!=e.size&&!S)return!1;var P=E.get(t);if(P)return P==e;r|=c,E.set(t,e);var A=a(j(t),j(e),r,x,O,E);return E.delete(t),A;case b:if(k)return k.call(t)==k.call(e)}return!1}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e,n){var r=n(83),o=n(213),i=n(522),a=n(520),s=n(40),l=n(11),u=n(42),c=n(54),f=1,p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,y,g){var b=l(t),w=l(e),_=b?h:s(t),x=w?h:s(e),k=(_=_==p?d:_)==d,O=(x=x==p?d:x)==d,E=_==x;if(E&&u(t)){if(!u(e))return!1;b=!0,k=!1}if(E&&!k)return g||(g=new r),b||c(t)?o(t,e,n,v,y,g):i(t,e,_,n,v,y,g);if(!(n&f)){var j=k&&m.call(t,"__wrapped__"),S=O&&m.call(e,"__wrapped__");if(j||S){var P=j?t.value():t,A=S?e.value():e;return g||(g=new r),y(P,A,n,v,g)}}return!!E&&(g||(g=new r),a(t,e,n,v,y,g))}},function(t,e,n){var r=n(83),o=n(214),i=1,a=2;t.exports=function(t,e,n,s){var l=n.length,u=l,c=!s;if(null==t)return!u;for(t=Object(t);l--;){var f=n[l];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++l<u;){var p=(f=n[l])[0],h=t[p],d=f[1];if(c&&f[2]){if(void 0===h&&!(p in t))return!1}else{var m=new r;if(s)var v=s(h,d,p,t,e,m);if(!(void 0===v?o(d,h,i|a,s,m):v))return!1}}return!0}},function(t,e,n){var r=n(527),o=n(519),i=n(209);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(72);t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},function(t,e,n){var r=n(29);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++o];if(!1===n(i[l],l,i))break}return e}}},function(t,e,n){var r=n(40),o=n(23),i="[object Set]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(532),o=n(75),i=n(108),a=i&&i.isSet,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(40),o=n(23),i="[object Map]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(534),o=n(75),i=n(108),a=i&&i.isMap,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(38),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(104);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e,n){var r=n(104),o=n(538),i=n(537),a=n(536),s=n(221),l="[object Boolean]",u="[object Date]",c="[object Map]",f="[object Number]",p="[object RegExp]",h="[object Set]",d="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",x="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",E="[object Uint16Array]",j="[object Uint32Array]";t.exports=function(t,e,n){var S=t.constructor;switch(e){case v:return r(t);case l:case u:return new S(+t);case y:return o(t,n);case g:case b:case w:case _:case x:case k:case O:case E:case j:return s(t,n);case c:return new S;case f:case d:return new S(t);case p:return i(t);case h:return new S;case m:return a(t)}}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(37)(n(20),"WeakMap");t.exports=r},function(t,e,n){var r=n(37)(n(20),"Promise");t.exports=r},function(t,e,n){var r=n(37)(n(20),"DataView");t.exports=r},function(t,e,n){var r=n(224),o=n(226),i=n(41);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(56),o=n(226);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(56),o=n(106);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(16),o=n(74),i=n(547),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e,n){var r=n(56),o=n(41);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(231)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(34),o=n(109),i=n(23),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(34),o=n(23),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(56),o=n(33);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(79);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(79);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(79);t.exports=function(t){return r(this,t).get(t)}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(79);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,n){var r=n(80),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e,n){var r=n(80),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(80),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(80);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(565),o=n(564),i=n(563),a=n(562),s=n(561);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(566),o=n(82),i=n(113);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(20)["__core-js_shared__"];t.exports=r},function(t,e,n){var r=n(569),o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(57),o=n(570),i=n(16),a=n(234),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:s).test(a(t))}},function(t,e,n){var r=n(82),o=n(113),i=n(112),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e,n){var r=n(82);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e,n){var r=n(81);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(81);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(81);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(81),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(235),o=4;t.exports=function(t){return r(t,o)}},function(t,e,n){t.exports={Graph:n(114),version:n(484)}},function(t,e,n){var r=n(583);t.exports={Graph:r.Graph,json:n(483),alg:n(482),version:r.version}},function(t,e,n){t.exports={graphlib:n(22),layout:n(473),debug:n(416),util:{time:n(15).time,notime:n(15).notime},version:n(415)}},function(t,e,n){var r=n(3),o=n(585),i=r.Util,a=function(){function t(t){i.mix(this,{rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,useEdgeControlPoint:!0,ranker:"network-simplex",callback:null},t)}var e=t.prototype;return e.getValue=function(t){var e=this[t];return i.isFunction(e)?e():e},e.execute=function(){var t=this.nodes,e=this.edges,n={},r=new o.graphlib.Graph,i=this.useEdgeControlPoint;r.setGraph({rankdir:this.getValue("rankdir"),align:this.getValue("align"),nodesep:this.getValue("nodesep"),edgesep:this.getValue("edgesep"),ranksep:this.getValue("ranksep"),marginx:this.getValue("marginx"),marginy:this.getValue("marginy"),acyclicer:this.getValue("acyclicer"),ranker:this.getValue("ranker")}),r.setDefaultEdgeLabel((function(){return{}})),t.forEach((function(t){r.setNode(t.id,{width:t.width,height:t.height}),n[t.id]=t})),e.forEach((function(t){r.setEdge(t.source,t.target)})),o.layout(r),r.nodes().forEach((function(t){var e=r.node(t);n[t].x=e.x,n[t].y=e.y})),r.edges().forEach((function(t,n){var o=r.edge(t);i&&(e[n].controlPoints=o.points.slice(1,o.points.length-1))}))},t}();t.exports=a},function(t,e,n){var r=n(3),o=n(586);r.Layouts.Dagre=o;var i=function(){function t(t){this.options=t}return t.prototype.init=function(){var t=this,e=this.graph;e.on("beforeinit",(function(){var n=new o(t.options);e.set("layout",n)}))},t}();r.Plugins["layout.dagre"]=i,t.exports=i}])}))},1418:function(t,e,n){"use strict";n("f6c7")},"15a5":function(t,e){
2
2
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
3
- e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,p=n?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+t[e+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=p,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+f>=1?p/l:p*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*l-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[n+h]=255&a,h+=d,a/=256,u-=8);t[n+h-d]|=128*m}},"1aba":function(t,e,n){"use strict";if(n.r(e),n.d(e,"App",(function(){return hu})),n.d(e,"createStore",(function(){return Eu})),n.d(e,"create",(function(){return St})),n.d(e,"template",(function(){return Wt})),n.d(e,"WebRouters",(function(){return Pu})),n.d(e,"WebViews",(function(){return Ol})),n.d(e,"Descriptions",(function(){return $o})),n.d(e,"Frame",(function(){return zo})),n.d(e,"Clipboard",(function(){return Mu})),n.d(e,"Collection",(function(){return Ju})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("dc36");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.$store.state.loading}},[n("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},s=[],l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-view")},u=[],c=n("36d8"),f=n.n(c),p=n("5880"),h=n.n(p),d=n("cebe"),m=n.n(d);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){b(i,r,o,a,s,"next",t)}function s(t){b(i,r,o,a,s,"throw",t)}a(void 0)}))}}var _=m.a.create({timeout:6e5,withCredentials:!0}),x={axios:m.a,instance:_,install:function(t){t.prototype.$api=x},setDefaults:function(t){Object.keys(t).forEach((function(e){_.defaults[e]=t[e]}))},request:function(t,e,n,r){return w(f.a.mark((function o(){var i;return f.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,_.request(y(y({},r),{},{method:t,url:e,data:n}));case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},get:function(t){var e=arguments;return w(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,o=e.length>2&&void 0!==e[2]?e[2]:null,n.next=4,x.request("get",t,o,r);case 4:return i=n.sent,n.abrupt("return",i);case 6:case"end":return n.stop()}}),n)})))()},post:function(t,e){var n=arguments;return w(f.a.mark((function r(){var o,i;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=n.length>2&&void 0!==n[2]?n[2]:null,r.next=3,x.request("post",t,e,o);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()},put:function(t,e){var n=arguments;return w(f.a.mark((function r(){var o,i;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=n.length>2&&void 0!==n[2]?n[2]:null,r.next=3,x.request("put",t,e,o);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()},delete:function(t,e){var n=arguments;return w(f.a.mark((function r(){var o,i;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=n.length>2&&void 0!==n[2]?n[2]:null,r.next=3,x.request("delete",t,e,o);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()}},O=x,k=n("796d"),E=n.n(k),j=n("8bbf"),S=n.n(j);function P(t){return P="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function L(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){T(i,r,o,a,s,"next",t)}function s(t){T(i,r,o,a,s,"throw",t)}a(void 0)}))}}function M(t,e){return $(t)||R(t,e)||I(t,e)||q()}function q(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(t,e){if(t){if("string"===typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),e&&i.length===e)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function $(t){if(Array.isArray(t))return t}var B=function t(e,n,r){for(var o=0;o<e.length;o++){if(e[o][r]===n)return[e,o];if(e[o]._childList){var i=t(e[o]._childList,n,r);if(i)return i}}return null};function V(t,e,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=e.slice(2),a={namespaced:!0,state:function(){return{namespace:i,data:{rows:[],count:0,size:10},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(t,e){t.schema=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setData:function(t,e){var n=e.rows,r=e.count,o=e.size;t.data.rows=n,t.data.count=r,t.data.size=o},appendData:function(t,e){var n=e.rows||[];t.data.rows=t.data.rows.concat(n)},saveData:function(t,e){var n=e.rows,r=e.idName,o=e.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(e){var n=B(t.data.rows,e[r],r);if(n){n[0][n[1]]._childList&&(e._childList=n[0][n[1]]._childList);var i=n,a=M(i,2),s=a[0],l=a[1];o&&e[o]!==s[l][o]?(s.splice(l,1),n=null):S.a.set(s,l,e)}if(!n&&e[r]&&o&&e[o]){var u=B(t.data.rows,e[o],r);if(u){var c=u[0][u[1]];c._childList?c._childList.unshift(e):S.a.set(c,"_childList",[e])}else t.data.rows.unshift(e)}else!n&&e[r]&&t.data.rows.unshift(e)}))},removeData:function(t,e){var n=e.rows,r=e.idName;e.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(e){var n=B(t.data.rows,e[r],r);if(n){var o=M(n,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(t,e){var n=e.rows,r=e.key;t.wordbooks[r]?t.wordbooks[r]=n:S.a.set(t.wordbooks,r,n)},replaceNamespace:function(t,e){t.namespace=e.reduce((function(t,e){return t.replace(":id",e)}),i)},createSubViewStore:function(e,r){function o(e,r){e.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(e){var i="".concat(r,"/:id/").concat(e.name);t.hasModule(i)||(V(t,i,n,e.name,!1,e.subView),e.subView&&o(e.subView,i))}))}o(r,"v-".concat(i))}},actions:{loadSchema:function(t,e){return L(f.a.mark((function e(){var n,r,o,a,s,l,u,c;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,t.state.namespace,n("setLoading",!0),e.prev=2,e.next=5,O.get("/schemas/".concat(i.replace(/\/:id/g,"")));case 5:r=e.sent,o=r.data,a=r.status,n("createSubViewStore",o),n("setSchema",o),n("setStatus",{status:a}),e.next=20;break;case 13:if(e.prev=13,e.t0=e["catch"](2),e.t0.response){e.next=17;break}return e.abrupt("return",n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 17:s=e.t0.response,l=s.status,u=s.data,c=u&&u.content||"系统错误请与管理员联系。",n("setStatus",{status:l,message:c});case 20:return e.prev=20,n("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,13,20,23]])})))()},loadData:function(t){var e=arguments;return L(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g,b,w,_,x,k,j,S,P,A,N,C;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},l=s.url,u=void 0===l?a:l,c=s.method,p=void 0===c?"get":c,h=s.data,d=void 0===h?null:h,m=s.key,v=s.query,y=s.options,g=s.mute,b=void 0!==g&&g,!b&&r("setLoading",!0),n.prev=4,n.next=7,O[p]("/api/".concat(u).concat(m?"/".concat(m):"","?").concat(E.a.stringify(v)),d,y);case 7:return w=n.sent,_=w.data,x=_.collection,k=_.model,j=_.count,S=_.pagination,P=w.status,A=i.idName,N=i.parentIdName,C=i.nodeName,k?r("saveData",{rows:k,idName:A,parentIdName:N,nodeName:C}):r("setData",{rows:x||[],count:j,size:S&&S.size}),r("setStatus",{status:P,message:""}),n.abrupt("return",x||k);case 20:return n.prev=20,n.t0=n["catch"](4),n.abrupt("return",o("handleError",n.t0,b));case 23:return n.prev=23,!b&&r("setLoading",!1),n.finish(23);case 26:case"end":return n.stop()}}),n,null,[[4,20,23,26]])})))()},loadWordBook:function(t){var e=arguments;return L(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=t.state.namespace,a=e.length>1&&void 0!==e[1]?e[1]:{},s=a.url,l=void 0===s?i:s,u=a.method,c=void 0===u?"get":u,p=a.data,h=void 0===p?null:p,d=a.key,m=a.query,v=a.options,n.prev=3,n.next=6,O[c.toLowerCase()]("/api/".concat(l).concat(d?"/".concat(d):"","?").concat(E.a.stringify(m)),h,v);case 6:return y=n.sent,g=y.data,g.collection&&d&&r("setWordBook",{rows:g.collection,key:d}),n.abrupt("return",g);case 12:return n.prev=12,n.t0=n["catch"](3),n.abrupt("return",o("handleError",n.t0));case 15:case"end":return n.stop()}}),n,null,[[3,12]])})))()},saveData:function(t){var e=arguments;return L(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g,b,w,_,x,k,j,S,P,A,N,C,T,L;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},l=s.url,u=void 0===l?a:l,c=s.type,p=void 0===c?"save":c,h=s.method,d=void 0===h?"post":h,m=s.data,v=void 0===m?null:m,y=s.key,g=s.query,b=s.options,w=s.mute,_=void 0!==w&&w,r("setCommitting",!0),n.prev=4,n.next=7,O[d.toLowerCase()]("/api/".concat(u).concat(y?"/".concat(y):"","?").concat(E.a.stringify(g)),v,b);case 7:return x=n.sent,k=x.data,j=k.data,S=k.content,P=x.status,A=x.statusText,N=i.idName,C=i.parentIdName,T=i.nodeName,j&&(L="remove"===p?"removeData":"saveData",r(L,{rows:j.data||j,idName:N,parentIdName:C,nodeName:T})),r("setStatus",{status:P,message:_?"":S||A}),n.abrupt("return",j);case 19:return n.prev=19,n.t0=n["catch"](4),n.abrupt("return",o("handleError",n.t0));case 22:return n.prev=22,r("setCommitting",!1),n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[4,19,22,25]])})))()},executeData:function(t,e){return L(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.dispatch,o=e.method,i=void 0===o?"post":o,n.next=4,r("saveData",N({type:"execute",method:i},e));case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},removeData:function(t,e){return L(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.dispatch,o=e.method,i=void 0===o?"delete":o,n.next=4,r("saveData",N({type:"remove",method:i},e));case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},handleError:function(t,e,n){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:!n&&"网络请求错误,请检查您的网络连接。"});var o=e.response,i=o.status,a=o.data,s=n?null:a&&a.content||"系统错误请与管理员联系。";return r("setStatus",{status:i,message:s}),e},resetStatus:function(t){var e=t.commit;e("setStatus",{status:0,message:""})}},getters:{schema:function(t,e,i){return o||(i[n].views.find((function(t){return t.key===r}))||t.schema)},model:function(t,e){return e.schema?e.schema.model:null},idName:function(t,e){return e.model?e.model.idName:null},parentIdName:function(t,e){return e.model?e.model.parentIdName:null},nodeName:function(t,e){return e.model?e.model.nodeName:null},titleName:function(t,e){var n=e.model.attrs.find((function(t){return"title"===t.display}));return n?n.name:null},titleSchema:function(t,e){var n=e.model.attrs.find((function(t){return"title"===t.display}));return n||null},config:function(t,e){return function(t){var n;return e.schema&&e.schema.configs&&(n=e.schema.configs.find((function(e){return e.key===t}))),n?n.value:null}},wordbook:function(t){return function(e){return t.wordbooks[e]||[]}},find:function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=t.data;if(!n)return r;"object"!==P(n)&&(n=C({},e.idName,n));var o=Object.keys(n);return r.filter((function(t){return o.every((function(e){return t[e]===n[e]}))}))}},findOne:function(t,e,n){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=r||e.idName||"id",i=B(t.data.rows,n,o);return i?i[0][i[1]]:null}},findAll:function(t){var e=t.data.rows;return e},apiURL:function(t,e,n){var r=t.namespace,o=n.baseURL;return"".concat(o,"/api/").concat(r)},apiBaseURL:function(t,e,n){var r=n.baseURL;return r}}};t.registerModule(e,a)}function F(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){F(i,r,o,a,s,"next",t)}function s(t){F(i,r,o,a,s,"throw",t)}a(void 0)}))}}var K=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={namespaced:!0,state:function(){return{namespace:e.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:n}},mutations:{setSchema:function(t,e){t.schema=e},setViews:function(t,e){t.views=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},createViewStore:function(r,o){function i(r,o){r.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(r){var a="".concat(o,"/:id/").concat(r.name);t.hasModule(a)||(V(t,a,e,r.name,n,r.subView),r.subView&&i(r.subView,a))}))}o.map((function(r){var o="v-".concat(e.slice(2)).concat(n?"":"-".concat(r.key));t.hasModule(o)||(V(t,o,e,r.key,n),i(r,o))}))},setViewData:function(t,e){}},actions:{loadSchema:function(t,e){return U(f.a.mark((function e(){var r,o,i,a,s,l,u,c,p,h;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,o=t.state.namespace,r("setLoading",!0),e.prev=2,e.next=5,O.get("/schemas/".concat(o));case 5:i=e.sent,a=i.data,s=i.status,l=i.statusText,r("createViewStore",n?[a]:a.views),r("setViews",n?[a]:a.views),delete a.views,r("setSchema",a),r("setStatus",{status:s,message:a.message||l}),e.next=23;break;case 16:if(e.prev=16,e.t0=e["catch"](2),e.t0.response){e.next=20;break}return e.abrupt("return",r("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 20:u=e.t0.response,c=u.status,p=u.data,h=p&&p.content||"系统错误请与管理员联系。",r("setStatus",{status:c,message:h});case 23:return e.prev=23,r("setLoading",!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[2,16,23,26]])})))()}},getters:{schema:function(t){return t.schema},views:function(t){return t.views},config:function(t){return function(e){return t.configs.find((function(t){return t.key===e}))}}}};t.registerModule(e,r)};function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G=["loading","schema","status","message","single"],W=["loadSchema"],Z=["views"],J=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(p["createNamespacedHelpers"])(t),r=n.mapState,o=n.mapActions,i=n.mapGetters;return{data:function(){return{storeNamespace:t}},computed:Y(Y({},r(G)),i(Z)),methods:Y({},o(W)),beforeCreate:function(){this.$store.hasModule(t)||K(this.$store,t,e)},created:function(){!this.schema&&this.loadSchema()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},X=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[J("p-".concat(e),n)]}}},Q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.loading,delay:50}},[n("layout-page-"+t.layout,{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(e){return{key:e,fn:function(){return[n("views",{key:"slot-"+e,attrs:{views:t.slotViews(e),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},tt=[];function et(t){return it(t)||ot(t)||rt(t)||nt()}function nt(){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 rt(t,e){if(t){if("string"===typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function ot(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function it(t){if(Array.isArray(t))return at(t)}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var st={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(et(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-row",t._l(t.views,(function(e){return n("a-col",{key:e.key,attrs:{span:e.span||24}},[n("layout-view-"+(e.layout||t.viewLayout),{tag:"component",attrs:{view:e}},[n("ViewBox",t._b({attrs:{view:e}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},ut=[],ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("keep-alive",[n(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},ft=[];function pt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ht(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){pt(i,r,o,a,s,"next",t)}function s(t){pt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function dt(t){return gt(t)||yt(t)||vt(t)||mt()}function mt(){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 vt(t,e){if(t){if("string"===typeof t)return bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(t,e):void 0}}function yt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function gt(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){xt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ot=["loading","committing","data","status","message"],kt=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Et=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],jt=function(t){var e=Object(p["createNamespacedHelpers"])(t),n=e.mapState,r=e.mapActions,o=e.mapGetters,i=e.mapMutations;return{data:function(){return{storeNamespace:t}},computed:_t(_t(_t({},n(Ot)),o(Et)),{},{configs:function(){var t=this.schema,e=t.configs,n=void 0===e?[]:e,r=t.resConfigs,o=void 0===r?[]:r,i=[].concat(dt(n),dt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(n){}return[t.key,e]})))},defaults:function(){var t=this.schema,e=t.params,n=void 0===e?[]:e,r=t.resParams,o=void 0===r?[]:r,i=[].concat(dt(n),dt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(n){}return[t.key,e]})))}}),methods:_t(_t({},i(["replaceNamespace"])),r(kt)),created:function(){var t=this;return ht(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.parentIds&&t.replaceNamespace(t.parentIds),t.delay||t.id||t.schema&&t.load();case 2:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},St=function(t){return function(e){return{extends:t,mixins:[jt("".concat(e))]}}},Pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.schema||t.actioning}},[t.schema?n("div",[t.actionViewVisible&&"block"===t.actionViewMode?t._e():n(t.layout,{tag:"component",scopedSlots:t._u([t.configs["list.header"]?{key:"header",fn:function(){return[n(t.configs["list.header"],{tag:"component"})]},proxy:!0}:null,t.configs["list.footer"]?{key:"footer",fn:function(){return[n(t.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,t.configs["list.sider"]?{key:"sider",fn:function(){return[n(t.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[t.data.size?n("PaginationSize",{attrs:{total:t.data.count,current:Number(t.query.$limit),pageSize:t.data.size,"show-total":function(e,n){return e?"当前页面 "+n[0]+"-"+n[1]+" 项,选定 "+t.selections.length+" 项,共 "+e+" 项":null}},on:{change:t.handlePaginationPageChange}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-none",fn:function(){return[n("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[n("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0},t.filters.length?{key:"filters",fn:function(){return[n("FilterForm",{attrs:{columns:t.filters},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null,t.treeFilters.length?{key:"tree-filters",fn:function(){return[n("FilterForm",{attrs:{columns:t.treeFilters,layout:"vertical"},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null],null,!0)},[n("list-"+(t.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:t.idName,loading:t.loading,rowSelection:t.rowSelection,columns:t.columns,dataSource:t.dataSource,item:t.configs["list.item"],childrenColumnName:"_childList",rowClassName:t.listSeparateColor},on:{profile:function(e){return t.handleModelProfile(e)},"row-action":t.handleRowAction}})],1),t.actionViewVisible?n("Popup",{attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,width:t.configs["profile.popup.width"]},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?n("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult},on:{commit:t.commitActionView,profile:t.handleModelProfile,close:t.closeActionView}}):t._e(),t.action.params&&t.action.params.autofill?n("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[n("a-col",[n("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),n("a-col",[n("a-space",[n("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),n("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1):t._e()])},At=[],Nt={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},Ct={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var t=this.configs.hide;return t?Array.isArray(t)?t:t.split(","):[]}},methods:{}};function Tt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Lt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Tt(i,r,o,a,s,"next",t)}function s(t){Tt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Mt(t){return Rt(t)||Dt(t)||It(t)||qt()}function qt(){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 It(t,e){if(t){if("string"===typeof t)return $t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(t,e):void 0}}function Dt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Rt(t){if(Array.isArray(t))return $t(t)}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ut={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},unwatchQuery:null}},computed:{columns:function(){var t=this,e=this.$createElement,n=this.idName,r=this.hide,o=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!r.includes(t.name)&&t.name!==n&&"model"!==t.metaType&&"link"!==t.type})).map((function(n){var r=Object.fromEntries(n.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:n.name,key:n.name,title:n.alias,align:["Integer","Number"].includes(n.metaType)?"right":"left",schema:n,width:r["list.width"],ellipsis:"true"===r["list.ellipsis"],customRender:function(r,o){return e("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(e){return t.handleCellChange(e,n.name,o)}},attrs:{value:r,row:o,schema:n,editable:t.actionRowEditing,idName:t.idName}})}}}));return this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&o.push({title:"操作",key:"_action",customRender:function(n,r){return{children:t.rowActions(r).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(){return t.handleRowAction(n,r)}}},[n.name])]}))}},actions:function(e){return t.rowActions(e)}}),o},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var n=t.model.attrs.find((function(t){return t.name===e.name}));return Vt(Vt({},n),e)})):[]},treeFilters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&["tree-select"].includes(e.control)})).map((function(e){var n=t.model.attrs.find((function(t){return t.name===e.name}));return Vt(Vt({},n),e)})):[]},filterValues:function(){var t=[].concat(Mt(this.filters),Mt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return Vt(Vt({},Object.fromEntries(t)),this.defaults)},dataSource:function(){return this.findAll},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n-1]}},created:function(){var t=this;return Lt(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=3;break}return e.next=3,t.loadSchema();case 3:t.query=Vt(Vt(Vt(Vt({},t.query),t.params.filters),t.filterValues),t.$route.query);case 4:case"end":return e.stop()}}),e)})))()},activated:function(){this.parentIds||"page"!==this.mode||E.a.stringify(this.query)!==E.a.stringify(this.$route.query)&&this.$router.push({query:this.query}),this.unwatchQuery=this.$watch("query",{handler:function(t,e){this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query})},deep:!0})},deactivated:function(){this.unwatchQuery&&this.unwatchQuery()},methods:{load:function(){var t=arguments,e=this;return Lt(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({query:e.query,mute:r});case 3:return o=n.sent,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()},handleNext:function(){this.actionModel=Vt({},this.next)},handlePrevious:function(){this.actionModel=Vt({},this.previous)},handleModelProfile:function(t){var e={name:this.titleName?String(this.formatter(t,t[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=e,this.actionModel=Vt({},t),this.actionParams={$parent:this.params.$parent},this.handleProfile(e)},handleProfile:function(t){var e=this.actionModel;this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(e[this.idName]))},handleFilterChange:function(t,e){this.query[t]?this.query[t]=e:this.$set(this.query,t,e)},listSeparateColor:function(t,e){var n=this.configs["list.separateKey"]||null,r=this.configs["list.separateValue"]||null;return n&&r&&t[n]===r?"list-separate-color":""}}},Kt={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1}}},methods:{handlePaginationPageChange:function(t){this.query.$limit=t,this.clearSelection&&this.clearSelection()}}},zt={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var t=this;return!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(e){return e[t.idName]})),onChange:this.handleSelectionChange,type:"single"===this.pickerMode?"radio":"checkbox"}}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){this.selections=[]},handleSelectionChange:function(t){var e=this.idName,n=this.dataSource,r=function t(n,r){for(var o=0;o<n.length;o++){if(n[o][e]===r)return n[o];if(n[o]._childList){var i=t(n[o]._childList,r);if(i)return i}}return null};this.selections=t.map((function(t){return r(n,t)})),this.$emit("selected",this.selections)}}};function Yt(t){return Yt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function Ht(t,e){return Object.keys(t).every((function(n){var r=t[n],o=n.split(".").reduce((function(t,e){return t&&t[e]||void 0}),e);if(o){if(Array.isArray(r))return r.includes(o);if("object"!==Yt(r)||1!==Object.keys(r).length)return"object"===Yt(r)&&Object.keys(r).length>1?Ht(r,e):r===o;if(r["!"]&&Array.isArray(r["!"]))return!r["!"].includes(o);if(r["!"])return r!==o;if(r[">"])return o>r[">"];if(r[">="])return o>=r[">="];if(r["<"])return o<r["<"];if(r["<="])return o<=r["<="]}}))}var Gt=n("9f89");function Wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return Gt(t,{reInterpolate:n})(e)}function Zt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Jt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Zt(i,r,o,a,s,"next",t)}function s(t){Zt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Xt=function(t){window.open("".concat(t,"/api/download?_time='").concat((new Date).getTime()),"_blank")},Qt={methods:{handleFile:function(t){var e=this;return Jt(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[r]){n.next=5;break}return n.abrupt("return");case 5:return o.append(r,e.actionModel[r][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),n.next=9,e.saveData({key:t.key,data:o});case 9:case"end":return n.stop()}}),n)})))()},handleFilesUpload:function(t){var e=this;return Jt(f.a.mark((function t(){return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="upload-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleDownload:function(t){var e=this;return Jt(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 2:Xt(e.apiBaseURL);case 3:case"end":return n.stop()}}),n)})))()},handleExport:function(t){var e=arguments,n=this;return Jt(f.a.mark((function r(){var o;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=e.length>1&&void 0!==e[1]&&e[1],r.next=3,n.executeData({key:t.key,data:n.selections.length?o?n.selections[0]:n.selections:n.actionModel||{}});case 3:Xt(n.apiBaseURL);case 4:case"end":return r.stop()}}),r)})))()},handleExportFilter:function(t){var e=this;return Jt(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 2:Xt(e.apiBaseURL);case 3:case"end":return n.stop()}}),n)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function re(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function oe(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){re(i,r,o,a,s,"next",t)}function s(t){re(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ie=n("9f89"),ae=/\${([\s\S]+?)}/g,se={methods:{handleViewPicker:function(t){var e=this;return oe(f.a.mark((function t(){return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="picker-view-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleTreeSelect:function(t){var e=this;return oe(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,u=r.valuesName,e.actioning=!0,c=ee(ee({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(ie(o,{reInterpolate:ae})(c));case 5:return p=n.sent,n.next=8,e.$api.get(ie(i,{reInterpolate:ae})(c));case 8:h=n.sent,e.actioning=!1,e.actionParams=ee(ee({},e.actionParams),{},{treeData:p.data&&p.data.collection,data:h.data&&h.data.collection,keyName:a,titleName:s,valueName:l,valuesName:u}),e.actionViewWidget="picker-tree-form",e.showActionView();case 13:case"end":return n.stop()}}),n)})))()},handleTransferSelect:function(t){var e=this;return oe(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,u=r.valuesName,c=r.selected,e.actioning=!0,p=ee(ee({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(ie(o,{reInterpolate:ae})(p));case 5:return h=n.sent,n.next=8,e.$api.get(ie(i,{reInterpolate:ae})(p));case 8:d=n.sent,e.actioning=!1,e.actionParams=ee(ee({},e.actionParams),{},{treeData:h.data&&h.data.collection,data:d.data&&d.data.collection,keyName:a,titleName:s,valueName:l,valuesName:u,selected:c}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return n.stop()}}),n)})))()},handleAlgorithm:function(){var t=this;return oe(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.actionViewWidget="algorithm-form",t.actionViewMode="fullscreen",t.showActionView();case 3:case"end":return e.stop()}}),e)})))()}}};function le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ue(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?le(Object(n),!0).forEach((function(e){pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ce(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function fe(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ce(i,r,o,a,s,"next",t)}function s(t){ce(i,r,o,a,s,"throw",t)}a(void 0)}))}}function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var he={mixins:[Qt,se],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=pe({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var n=fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.removeData({key:t.key,method:t.method||"delete",data:e.profile?[e.profile[e.idName]]:e.selections.length?e.selections.map((function(t){return t[e.idName]})):[e.actionModel[e.idName]]});case 2:e.selections=[],e.id?e.handleBack():e.findAll.length||e.load&&e.load();case 4:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:case"end":return n.stop()}}),n)})))()},handleBulkEdit:function(){this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return fe(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editions.length?t.editions.length&&t.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){t.closeActionView()}}):t.closeActionView();case 1:case"end":return e.stop()}}),e)})))()},handleSaveEdit:function(){var t=arguments,e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,n.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return n.stop()}}),n)})))()},handleOne:function(t){var e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.handleBulk(t,1);case 1:case"end":return n.stop()}}),n)})))()},handleBulk:function(t){var e=arguments,n=this;return fe(f.a.mark((function r(){var o,i,a;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=n.selections.length,!(o&&i>o)){r.next=4;break}return r.abrupt("return",n.$message.error("所选数据不允许超过 ".concat(o," 条")));case 4:a=i>1?" ".concat(i," 条"):"",n.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){n.saveData({method:t.method||"post",key:t.key,data:n.selections.length?n.selections:[n.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""})}});case 6:case"end":return r.stop()}}),r)})))()},handleEver:function(t){var e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 1:case"end":return n.stop()}}),n)})))()},handleRouter:function(t){var e=this;return fe(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Wt(r,ue({$parent:e.params.$parent},e.actionModel)),e.$router.push(r);case 3:case"end":return n.stop()}}),n)})))()},handleLink:function(t){var e=this;return fe(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Wt(r,ue({$parent:e.params.$parent},e.actionModel)),window.open(r,"_blank");case 3:case"end":return n.stop()}}),n)})))()},handleRefresh:function(){this.load&&this.load()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=ue({},this.actionModel));var e=this.schema.id,n=t.target.checked,r=JSON.parse(localStorage.getItem("form_".concat(e)));if(r)for(var o in r)n?this.$set(this.actionModel,o,r[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function de(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ye(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ge(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ye(i,r,o,a,s,"next",t)}function s(t){ye(i,r,o,a,s,"throw",t)}a(void 0)}))}}var be={methods:{handleFlowReport:function(t){var e=this;return ge(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,n.next=4,e.saveData({key:t.key,data:me({},r)});case 4:if(o=n.sent,o.data){n.next=7;break}return n.abrupt("return");case 7:e.actionConfirmMode=!1,e.actionModel=me(me({},r),{},{confirm:1,todo_actors:[]}),e.actionViewWidget="workflow-report",i=t.params&&t.params.rowSelectionType?t.params.rowSelectionType:null,e.actionParams.flow=i?me(me({},o),{},{rowSelectionType:i}):o,e.actionViewVisible=!0;case 13:case"end":return n.stop()}}),n)})))()},handleFlowCheck:function(t){var e=this;return ge(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,n.next=4,e.saveData({key:t.key,data:me({},r)});case 4:if(o=n.sent,o.data){n.next=7;break}return n.abrupt("return");case 7:e.actionConfirmMode=!1,e.actionViewWidget="workflow-report",e.actionModel=me(me({},r),{},{data:me({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return n.stop()}}),n)})))()},handleFlowQuery:function(t){var e=this;return ge(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,e.actioning=!0,n.next=5,e.saveData({key:t.key,data:me({},r)});case 5:if(o=n.sent,e.actioning=!1,o.data){n.next=9;break}return n.abrupt("return");case 9:e.actionConfirmMode=!1,e.actionViewWidget="workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 13:case"end":return n.stop()}}),n)})))()}}};function we(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function _e(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){we(i,r,o,a,s,"next",t)}function s(t){we(i,r,o,a,s,"throw",t)}a(void 0)}))}}var xe={methods:{commit:function(){return _e(f.a.mark((function t(){return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function Oe(t){return Oe="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function ke(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ee(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ke(i,r,o,a,s,"next",t)}function s(t){ke(i,r,o,a,s,"throw",t)}a(void 0)}))}}function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ae={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ne={mixins:[he,be,xe],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[]}},computed:{actions:function(){var t=this,e=this.model.actions?this.model.actions.filter((function(e){return("none"===e.selected&&!t.selections.length&&!t.profile||"single"===e.selected&&(1===t.selections.length||t.profile&&"profile"!==e.action)||"somewhat"===e.selected&&(t.selections.length||t.profile)||"mulpitle"===e.selected&&t.selections.length>1||!e.selected)&&t.showAction(e)&&!t.actionRowEditing})):[];return e},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]},settingActions:function(){var t=[{key:"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1"},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1"}];return this.actionRowEditing?this.editions.length?t:t.filter((function(t){return["cancelEdit"].includes(t.action)})):[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(t){return["single","somewhat"].includes(t.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(t){var e=this;return this.inlineActions.filter((function(n){return e.showAction(n,t)}))},showAction:function(t,e){var n=t.params&&!!t.params.show,r=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!r)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],s=n;return a.length?s=a.every((function(t){return Ht(r,Se(Se({},t),{},{$parent:i}))})):i&&(s=Ht(r,{$parent:i})),n?s:!s},handleRowAction:function(t,e){return this.selections=[e],this.handleAction(t,e)},handleAction:function(t,e,n){return this.action=t,e||(e=this.profile||this.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(this.actionViewMode=t.display),this.actionModel=Se(Se(Se({},e),n),this.defaults),this.actionParams=Se(Se({},t.params),{},{$parent:this.params.$parent}),"page"===t.display?this.routeAction(t):this.dispatchAction(t),this},handleCellChange:function(t,e,n){var r=this.idName,o=this.editions.find((function(t){return t[r]===n[r]}));o||(o=Se({},n),this.editions.push(o)),o[e]=t},trigger:function(t){var e=this.actions.find((function(e){return e.key===t}));return this.dispatchAction(e),this},dispatchAction:function(t){var e={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(t.action&&e[t.action])this[e[t.action]](t);else if(t.action){var n=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(n)](t)}else this[e[t.method]](t)}catch(r){this.$message.error("前端事件异常【".concat(t.name,"】"))}return this},routeAction:function(t){return this.$router.push({path:t.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(t){var e=this;return Ee(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g,b,w,_,x,O;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.selections,o=e.actionModel,i=e.idName,a=e.editions,s=e.action,l=s.key,u=s.method,c=s.params,c=void 0===c?{}:c,p=c.commit,p=void 0===p?{}:p,h=p.type,d=p.redirectProfile,m=c.autofill,v=e.schema,r.length>1?(delete t[i],t=r.map((function(e){return Se(Se({},e),t)}))):o&&!a.length&&(t=Se(Se({},o),t)),y=Object.keys(t).every((function(e){return!(t[e]instanceof File)&&!(t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File})))})),g={},b=Object.keys(t).find((function(e){return t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File}))}))?"1":"0","1"===b&&(g.multiple=b),y||(t=e.transformData(t)),n.next=13,e.saveData({data:t,key:l,method:u,query:g,type:h});case 13:if(w=n.sent,w){if(m){for(O in _=Se({},w),x=e.filterColumns().map((function(t){return t.name})),_)x.includes(O)||delete _[O];localStorage.setItem("form_".concat(v.id),JSON.stringify(_))}e.actionCommitResult.data=function(){return{data:w}},d&&e.handleModelProfile&&e.handleModelProfile(w)}case 15:case"end":return n.stop()}}),n)})))()},filterColumns:function(){var t=this.action,e=this.params,n=this.model,r=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!r.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Ae[o].includes(t.access)&&!r.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var n in t)if("object"!==Oe(t[n])||t[n]instanceof File)e.append("".concat(n),t[n]);else for(var r in t[n])Array.isArray(t[n])?e.append("".concat(n),t[n][r]instanceof File||"object"!==Oe(t[n][r])?t[n][r]:JSON.stringify(t[n][r])):e.append("".concat(n,".").concat(r),t[n][r]instanceof File||"object"!==Oe(t[n][r])?t[n][r]:JSON.stringify(t[n][r]));return e},closeActionView:function(t){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.actionViewkMode=null,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(t){t>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(t){var e=this.action&&this.action.configs,n=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),n?this.actionCommitResult.template=n.value:this.actionConfirmMode||this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(t){return t()})),this.unwatchs=[]}},Ce=function(t,e){var n=t,r=e.list.split(",").map((function(t){return t.split(":")}));return n=r.find((function(e){return String(e[0])===String(t)})),n=n?n[1]?n[1]:n[0]:"-",n},Te=function(t,e){var n=t,r=e.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=e.typeObject.model.idName;function i(t,e){for(var n=null,r=0;r<e.length;r++)if(String(e[r][o])===String(t)?n=e[r]:e[r]._childList&&(n=i(t,e[r]._childList)),n)return n;return n}return n=i(t,e.typeObject.data.collection),n=n?n[r?r.name:e.typeObject.model.idName]:t?"-":"",n},Le=function(t,e,n){var r;switch(e.dataType){case"year":r="YYYY";break;case"month":r="YYYY-MM";break;case"date":r="YYYY-MM-DD";break;case"datetime":r="YYYY-MM-DD HH:mm";break;default:r="YYYY-MM-DD HH:mm";break}return n(t).format(r)},Me={methods:{formatter:function(t,e,n){var r=e;n.list&&(r=["checkbox","multiple"].includes(n.control)?e&&e.split(",").map((function(t){return Ce(t,n)})).join(","):Ce(e,n)),"wordbook"===n.dataType&&n.typeObject&&(r=["checkbox","multiple"].includes(n.control)?e.split(",").map((function(t){return Te(t,n)})).join(","):Te(e,n));var o=["year","month","date","datetime","time"];return o.includes(n.dataType)&&(e||0===e)&&(r=Le(e,n,this.moment)),r}}},qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-table",t._b({attrs:{pagination:!1,size:"middle"}},"a-table",t.$attrs,!1))},Ie=[];function De(t,e,n,r,o,i,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):o&&(l=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}var Re={},$e=De(Re,qe,Ie,!1,null,null,null),Be=$e.exports,Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-list",t._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:t._u([{key:"renderItem",fn:function(e){var r=e.item;return[n("a-list-item",[n(t.component,{tag:"component",attrs:{item:r}})],1)]}}])},"a-list",t.$attrs,!1))},Fe=[],Ue={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Ke=Ue,ze=De(Ke,Ve,Fe,!1,null,null,null),Ye=ze.exports,He={ListTable:Be,ListNormal:Ye},Ge=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{attrs:{layout:t.layout}},t._l(t.columns,(function(e,r){return n("Item",{key:r+"-"+e.name,attrs:{formModel:t.actionModel,prop:e.name,schema:e,params:t.params,labelType:!1},on:{change:function(n){return t.handleItemChange(n,e)},fill:function(n){return t.handleItemFill(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[col.name]"}})})),1)},We=[];function Ze(t){return tn(t)||Qe(t)||Xe(t)||Je()}function Je(){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 Xe(t,e){if(t){if("string"===typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}function Qe(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function tn(t){if(Array.isArray(t))return en(t)}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function rn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){nn(i,r,o,a,s,"next",t)}function s(t){nn(i,r,o,a,s,"throw",t)}a(void 0)}))}}function on(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function an(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?on(Object(n),!0).forEach((function(e){sn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ln={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:an({},this.values)||{},hasFile:!1}},created:function(){if(this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},computed:{defaultValues:function(){var t=this.columns?this.columns.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},rules:function(){var t={};return this.columns.forEach((function(e){var n,r=["date","time","month","week","range","tree-suggest"].includes(e.control);(t[e.name]=[],e.required&&t[e.name].push({required:!0,message:"".concat(e.alias,"不能为空"),trigger:r?"change":"blur"}),e.maxLength&&e.minLength)&&(n=e.maxLength&&e.minLength?"长度在 ".concat(e.minLength," 到 ").concat(e.maxLength," 个字符"):e.maxLength?"长度不多于 ".concat(e.maxLength," 个字符"):"长度不少于 ".concat(e.minLength," 个字符"),t[e.name].push({min:e.minLength,max:e.maxLength,message:n,trigger:"blur"}))})),t},configs:function(){return Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(t,e){this.actionModel[t]?this.actionModel[t]=e:this.$set(this.actionModel,t,e)},handleItemChange:function(t,e){var n=e.name;this.setModel(n,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return rn(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$refs.form){e.next=3;break}return e.next=3,t.$refs.form.validate();case 3:t.handleCommit();case 4:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return rn(f.a.mark((function e(){var n,r,o,i;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?n=t.actionModel:(r=t.params,r=void 0===r?{}:r,o=r.valuesName,i=o?[].concat(Ze(t.columns),[{name:o}]):t.columns,n=Object.fromEntries(i.map((function(e){var n=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,n]})))),t.$emit("commit",n);case 2:case"end":return e.stop()}}),e)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(t){this.$emit("change",t)},deep:!0},values:{handler:function(t){for(var e in t)this.setModel(e,t[e])},deep:!0}}},un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showModel?n("a-form-model-item",{ref:"item",attrs:{label:t.label,help:t.help,extra:t.extra,"validate-status":t.validateStatus,colon:!1,"has-feedback":!1,prop:t.prop,rules:t.rules}},[["select","chosen"].includes(t.schema.control)?n("a-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{value:t.value,allowClear:"",showSearch:"chosen"===t.schema.control,optionFilterProp:"children",filterOption:t.filterOption,disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e)}}},t._l(t.options,(function(e,r){return n("a-select-option",{key:r,attrs:{title:e.label,value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1):["multiple"].includes(t.schema.control)?n("a-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{mode:"multiple",allowClear:"",defaultValue:t.value&&t.value.split(","),disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e.join(","))}}},t._l(t.options,(function(e,r){return n("a-select-option",{key:r,attrs:{title:e.label,value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1):"Boolean"===t.schema.metaType?n("a-switch",{attrs:{disabled:t.readonly,defaultChecked:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"daterange"===t.schema.control?n("a-range-picker",{attrs:{disabled:t.readonly,valueFormat:"YYYY-MM-DD",placeholder:["开始"+t.placeholder,"结束"+t.placeholder],defaultValue:t.value?t.value.split(",").map((function(e){return t.moment(Number(e)||e)})):null,allowClear:""},on:{change:function(e,n){t.$emit("change",n.join(","))}}}):["date","datetime"].includes(t.schema.control)||"date"===t.schema.dataType?n("a-date-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,format:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",valueFormat:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",defaultValue:t.value?t.moment(Number(t.value)||t.value):null,showTime:"datetime"===t.schema.control&&{format:"HH:mm"},allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):["birthday"].includes(t.schema.control)?n("a-date-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,format:"YYYY-MM-DD HH:mm",valueFormat:"YYYY-MM-DD HH:mm",defaultValue:t.value?t.moment(t.value):null,showTime:{format:"HH:mm"},allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):["month"].includes(t.schema.control)||"month"===t.schema.dataType?n("a-month-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value):null,allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):["week"].includes(t.schema.control)||"week"===t.schema.dataType?n("a-week-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value,"YYYY-w"):null,format:"YYYY-w",allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):"multiple"===t.schema.control?n("a-checkbox-group",{attrs:{options:t.options,defaultValue:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"radio"===t.schema.control?n("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[t._l(t.options,(function(e){return n("a-radio",{key:e.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(e.value):e.value}},[t._v(" "+t._s(e.label)+" ")])})),n("a-radio",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],key:"_empty",attrs:{value:""}},[t._v(" "+t._s("filter"===t.type?"全部":"清空")+" ")])],2):"button-group"===t.schema.control?n("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[n("a-radio-button",{key:"_empty",attrs:{value:""}},[t._v(" "+t._s("filter"===t.type?"全部":"清空")+" ")]),t._l(t.options,(function(e){return n("a-radio-button",{key:e.value,attrs:{disabled:t.readonly,value:e.value}},[t._v(" "+t._s(e.label)+" ")])}))],2):"file"===t.schema.control?[t.value&&!t.reUpload?n("span",[n("a",{attrs:{href:t.view.apiURL+"/"+t.formModel[t.view.idName]+"?_file="+t.schema.name+"&_mode=inline",target:"_blank"}},[t._v(" 下载查看 ")]),t.readonly?t._e():n("span",[t._v(" - "),n("a",{attrs:{href:"javascript:void(0);"},on:{click:t.handleReupload}},[t._v(" 重新上传 ")])])]):n("a-input",{attrs:{type:"file",accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*",disabled:t.readonly},on:{change:function(e){return t.handleFilesChange(e,t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}})]:"files"===t.schema.control?n("div",[n("a-upload",{attrs:{beforeUpload:t.beforeFilesUpload,multiple:"",showUploadList:!1,accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*"}},[n("a-button",{on:{click:function(e){return t.setFileSize(t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}},[n("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.defaultFileList,(function(e,r){return n("div",{key:r,staticClass:"form-file-upload"},[n("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[n("a-col",[t._v(t._s(e.file_name||e.name))]),n("a-col",[n("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(r)}}})],1)],1)],1)}))],2):"image"===t.schema.control?n("a-upload",{staticClass:"avatar-uploader",attrs:{accept:"image/*","list-type":"picture-card","default-file-list":t.defaultFileList,"before-upload":t.beforeUpload,remove:function(){return t.$emit("change",null)}}},[t.formModel[t.schema.name]?t._e():n("div",[n("a-icon",{attrs:{type:"plus"}}),n("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]):"view-select"!==t.schema.control||t.readonly?"textarea"===t.schema.control?n("a-textarea",{attrs:{placeholder:t.placeholder,defaultValue:t.value,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:1,maxRows:10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):"csv-json"===t.schema.control?n("span",[n("a-textarea",{attrs:{defaultValue:t.value,placeholder:t.placeholder,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:1,maxRows:10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}})],1):"tree-suggest"===t.schema.control?n("a-tree-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",value:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"tree-select"===t.schema.control?n("div",[t._e(),n("a-tree",{attrs:{replaceFields:{title:"label"},treeData:t.async?t.asyncTreeData:t.treeData,selectedKeys:[t.defaultValue],loadData:t.async&&t.handleAsyncLoadData||null,defaultExpandedKeys:[t.treeData[0]&&t.treeData[0].key]},on:{select:t.handleTreeSelect}})],1):"password"===t.schema.control?n("a-input-password",{tag:"component",attrs:{name:t.schema.name,placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"editor"===t.schema.control?n("Editor",{attrs:{placeholder:t.placeholder,disabled:t.readonly},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"verify"===t.schema.control?n("VerificationCode",{attrs:{placeholder:t.placeholder,url:t.schema.params.url,time:t.schema.params.time,phone:t.formModel[t.schema.params.phoneName]},on:{change:function(e){return t.$emit("change",e)}}}):"map-marker"===t.schema.control?n("MapMarker",{attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)},map:t.handleMapComplete},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"map-polygon"===t.schema.control?n("MapPolygon",{attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"transfer"===t.schema.control?n("Transfer",{attrs:{placeholder:t.placeholder,treeUrl:t.schema.params.control.url,titleName:t.schema.params.control.displayValue,keyName:t.schema.params.control.realValue},on:{submit:t.handlePickerComplete,selected:t.handlePickerSelected},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):n("a-"+t.type,{ref:"aInput",tag:"component",attrs:{defaultValue:t.value,name:t.schema.name,placeholder:t.placeholder,disabled:t.readonly,allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):n("a-input",{attrs:{placeholder:t.placeholder,"read-only":"",value:t.valueLabel,allowClear:""}},[n("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){return t.handlePickerShow(t.schema)}},slot:"addonAfter"})],1),t.pickerViewShow?n("Popup",{attrs:{visible:t.pickerViewShow,title:t.schema.alias,type:"modal",okButtonProps:{props:{icon:"check"}},cancelButtonProps:{props:{icon:"close"}}},on:{ok:t.handlePickerComplete,close:t.handlePickerClose,cancel:t.handlePickerClose}},[t.pickerViewShow?n("Picker",t._b({ref:"picker",attrs:{viewKey:t.schema.name,params:{filters:t.pickerFilter},mode:"picker"},on:{selected:t.handlePickerSelected}},"Picker",t.pickerViewOptions,!1)):t._e()],1):t._e()],2):t._e()},cn=[];function fn(t){return mn(t)||dn(t)||hn(t)||pn()}function pn(){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 hn(t,e){if(t){if("string"===typeof t)return vn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(t,e):void 0}}function dn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function mn(t){if(Array.isArray(t))return vn(t)}function vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function gn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){yn(i,r,o,a,s,"next",t)}function s(t){yn(i,r,o,a,s,"throw",t)}a(void 0)}))}}function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){_n(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xn={props:{schema:{type:Object},formModel:{type:Object},type:{type:String,enum:["cell","divider","computed","text","number","checkbox","radio","switch","textarea","rate","select","slider","upload","cascader","transfer","color","search","date","time","month","week","range","signature","view","tree","box","html","markdown","code","location","mentions","face","photos","files","conditions","flow","array","matrix","table","sheet","nested"],default:"input"},prop:{type:String},labelType:{type:[String,Boolean],default:!0},value:{type:[String,Boolean,Array,Number,Object,FileList,File]},params:{type:[Object],default:function(){return{}}},required:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},inject:["view"],data:function(){return{pickerViewOptions:{},pickerViewShow:!1,filterRules:[],showRules:[],hideRules:[],requireRules:[],swiftRules:[],showModel:!0,requireModel:this.required,reUpload:!1,selections:[],valueLabel:null,defaultFileList:[],defaultValue:this.formModel[this.schema.name]||"",defaultFileSize:null,asyncTreeData:[]}},computed:{placeholder:function(){return this.schema.alias||this.schema.name},label:function(){return!1===this.labelType?null:this.schema.alias||this.schema.name},help:function(){return""},extra:function(){return""},readonly:function(){return!!this.schema.params&&this.schema.params.readonly},validateStatus:function(){return null},options:function(){var t=this;if(this.schema.list){var e,n=this.swiftRules[0];return n&&this.formModel[n.key]&&(e=n.value.find((function(e){return e.value===t.formModel[n.key]}))),this.schema.list.split(",").filter((function(t){return!e||e.items.includes(t.split(":")[0])})).map((function(t){var e=t.split(":");return{label:e[1]?e[1]:e[0],value:e[0]}}))}if("wordbook"===this.schema.dataType&&this.schema.typeObject){var r=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=this.schema.typeObject.model.idName;r=r.name||o;var i=this.filterRules.length?this.schema.typeObject.data.collection.filter((function(e){return t.filterRules.every((function(n){return e[n.value]===t.formModel[n.key]}))})):this.schema.typeObject.data.collection;return i.map((function(t){return{label:t[r],value:t[o]}}))}return this.schema.params&&this.schema.params.control&&this.schema.params.control.options?this.formModel[this.schema.params.control.options].split(",").map((function(t){var e=t.split(":");return{label:"".concat(e[0]," (").concat(e[1],")"),value:e[1]}})):[]},treeData:function(){if("wordbook"===this.schema.dataType&&this.schema.typeObject){var t=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),e=this.schema.typeObject.model.idName;t=t.name||e;var n=function n(r){return r.map((function(r){return{label:r[t],value:r[e],key:r[e],children:r._childList?n(r._childList):null}}))},r=this.schema.typeObject.data,o=r.node,i=r.collection,a=this.async&&o?[{label:o[t],value:o[e],key:o[e],children:n(i)}]:n(i);return a}return[]},rules:function(){var t=["date","time","month","week","range"].includes(this.schema.control),e={required:!0,message:"".concat(this.schema.alias,"不能为空"),trigger:t?"change":"blur"};return this.requireModel?[e]:null},configs:function(){return this.schema.configs&&this.schema.configs.length&&Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]})))},pickerFilter:function(){var t=this.schema.params,e=t&&t.control&&t.control.filters,n={};if(!e)return null;for(var r in e){var o=e[r].split(".").reduce((function(t,e){return t&&t[e]||void 0}),wn(wn({},this.params),this.formModel));n[r]=void 0===o?e[r]:o}return n},async:function(){var t=this.schema,e=t.dataType,n=t.typeObject;return"wordbook"===e&&n&&n.model.sync||!1}},created:function(){this.init()},methods:{init:function(){var t=this.schema,e=t.control,n=t.metaType;this.watch(),"view-select"===e&&this.initPicker(),"Boolean"!==n&&"switch"!==e||this.initSwitch(),["image","file","files"].includes(e)&&this.initFile(),this.configs&&this.configs.required&&(this.requireModel=!0),this.async&&this.treeData&&(this.asyncTreeData=this.treeData)},initPicker:function(){var t=this.schema,e=t.params;e=void 0===e?{}:e;var n=e.control;n=void 0===n?{}:n;var r=n.displayValue,o=n.labelValue,i=t.name,a=o||r||i;this.valueLabel=this.formModel[a]},initSwitch:function(){void 0===this.formModel[this.schema.name]&&this.$emit("change",!1)},initFile:function(){var t=this.view,e=this.schema.name,n=this.formModel,r=n[e],o="".concat(t.apiURL,"/").concat(n[t.idName],"?_file=").concat(e,"&_mode=inline");if(r)try{var i=JSON.parse(r);Array.isArray(i)&&(this.defaultFileList=i)}catch(a){this.defaultFileList=[{uid:0,url:o,name:r}]}},initDate:function(){},reset:function(){},watch:function(){var t=this,e=this.schema.params;e=void 0===e?{}:e;var n=e.control;n=void 0===n?{}:n;var r=n.events;if(r){var o=function(e){var n=e.split(":"),o=r[e].split(";");o.forEach((function(e){var r=e.split("|");"filter"===r[0]?t.filterRules.push({key:n[1],value:r[1]}):"show"===r[0]?t.showRules.push({key:n[1],value:r[1]}):"hide"===r[0]?t.hideRules.push({key:n[1],value:r[1]}):"require"===r[0]?t.requireRules.push({key:n[1],value:r[1]}):"swift"===r[0]&&t.swiftRules.push({key:n[1],value:r[1].split("/").map((function(t){var e=t.split(":");return{value:e[0],items:e[1].split(",")}}))})}))};for(var i in r)o(i)}this.showRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.show(e.key,e.value.split(","))})),t.show(e.key,e.value.split(","))})),this.hideRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.hide(e.key,e.value.split(","))})),t.hide(e.key,e.value.split(","))})),this.requireRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.require(e.key,e.value.split(","))})),t.require(e.key,e.value.split(","))})),this.filterRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){if(t.schema.required&&t.options.length){var e=t.options.find((function(e){return e.value===t.value}));t.$emit("change",e&&t.value||t.options[0].value)}else t.$emit("change","")}))})),this.swiftRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(e){t.schema.required&&t.options.length&&e?t.$emit("change",t.options[0].value):t.$emit("change","")}))}))},require:function(t,e){var n=this.params.$parent;e.includes(wn(wn({},n),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var n=this.params.$parent;e.includes(wn(wn({},n),this.formModel)[t])?(this.showModel=!0,this.$emit("change",this.defaultValue)):"filter"!==this.type&&(this.showModel=!1,this.$emit("change",""))},hide:function(t,e){var n=this.params.$parent;e.includes(wn(wn({},n),this.formModel)[t])?(this.showModel=!1,this.$emit("change","")):"filter"!==this.type&&(this.showModel=!0,this.$emit("change",this.defaultValue))},fill:function(){},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},expression:function(){},handlePickerShow:function(){var t=this.schema.params;t=void 0===t?{}:t;var e=t.control;e=void 0===e?{}:e;var n=e.multiple;this.pickerViewOptions={schema:this.schema,filters:this.pickerFilter,pickerMode:n?"multiple":"single"},this.pickerViewShow=!0},handlePickerSelected:function(t){this.selections=t},handlePickerClose:function(){this.pickerViewShow=!1,this.selections=[]},handlePickerComplete:function(){var t=this.schema,e=t.control,n=t.params;n=void 0===n?{}:n;var r=n.control;r=void 0===r?{}:r;var o=r.displayValue,i=r.realValue,a=r.multiple,s=r.fills,l=this.$refs.picker&&this.$refs.picker.$refs.view,u=i||l.idName,c=o||l.titleName||l.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(s){var f=this.selections[0],p=Object.keys(s).map((function(t){return{name:t,value:f[s[t]]}}));this.$emit("fill",p)}this.$emit("change",a?this.selections.map((function(t){return t[u]})).join(","):this.selections[0][u]),this.valueLabel=a?this.selections.map((function(t){return t[c]})).join(","):this.selections[0][c],this.$refs.item&&this.$refs.item.clearValidate(),this.handlePickerClose()},handleMapComplete:function(t){var e=this.schema.params;e=void 0===e?{}:e;var n=e.control;n=void 0===n?{}:n;var r=n.fills;if(r){var o=Object.keys(r).map((function(e){return{name:e,value:t[r[e]]}}));this.$emit("fill",o)}},handleChange:function(){},handleReupload:function(){this.reUpload=!0},handleAsyncLoadData:function(t){var e=this;return gn(f.a.mark((function n(){var r,o,i,a,s,l,u;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.schema.typeObject.model,o=r.attrs,i=r.idName,a=e.view.apiURL,s=o.find((function(t){return"title"===t.display})),s=s.name||i,n.next=6,e.$api.get("".concat(a,"/").concat(e.schema.name,"?_node=").concat(t.eventKey),{baseURL:""});case 6:return l=n.sent,u=l.data.collection,t.dataRef.children=u.map((function(t){return{label:t[s],value:t[i],key:t[i]}})),e.asyncTreeData=fn(e.asyncTreeData),n.abrupt("return",new Promise((function(t){return t()})));case 11:case"end":return n.stop()}}),n)})))()},handleFilesChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.$el.getElementsByTagName("input")[0],r=n.files[0].size,o=e?this.unitConversion(e):0;e&&r>o?(this.$message.error("上传文件大小不能超过".concat(e)),this.reUpload=!1):this.$emit("change",n.files[0])},transformList:function(){},clearValidate:function(){},beforeUpload:function(t){return this.$emit("change",t),this.$refs.item.clearValidate(),!1},handleRemove:function(t){this.defaultFileList.splice(t,1),this.$emit("change",this.defaultFileList)},beforeFilesUpload:function(t){var e=t.size,n=t.name,r=this.defaultFileSize?this.unitConversion(this.defaultFileSize):0;return this.defaultFileSize&&e>r?this.$message.error("上传 ".concat(n," 文件大小不能超过").concat(this.defaultFileSize),5):this.defaultFileList.push(t),this.$emit("change",this.defaultFileList),this.$refs.item.clearValidate(),!1},setFileSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.defaultFileSize=t},unitConversion:function(t){var e=0;return e=-1!==t.indexOf("KB")?1024*Number(t.split("KB")[0]):-1!==t.indexOf("MB")?1024*Number(t.split("MB")[0])*1024:Number(t),e},handleTreeSelect:function(t){this.schema.required&&!t.length||(this.defaultValue=t[0],this.$emit("change",t[0]))}}},On=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("quill-editor",{ref:"quillEditor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})},kn=[],En=(n("690b"),n("521b"),n("55ab"),n("37eb")),jn={model:{prop:"value",event:"change"},props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean}},components:{quillEditor:En["quillEditor"]},data:function(){return{content:this.value,editorOption:{placeholder:this.disabled?"当前为不可编辑状态":this.placeholder}}},mounted:function(){this.disabled&&this.$refs.quillEditor.quill.enable(!1)},methods:{onEditorChange:function(t){t.editor;var e=t.html;t.text;this.content=e,this.$emit("change",this.content)}}},Sn=jn,Pn=(n("1418"),De(Sn,On,kn,!1,null,null,null)),An=Pn.exports,Nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-input-group",{attrs:{compact:""}},[n("a-input",{staticStyle:{width:"60%"},attrs:{placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}),n("a-button",{staticStyle:{width:"40%"},attrs:{disabled:t.disabled},on:{click:t.getVerification}},[t._v(" "+t._s(t.text)+" ")])],1)},Cn=[];function Tn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ln(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Tn(i,r,o,a,s,"next",t)}function s(t){Tn(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Mn={mixins:[ln],props:{phone:{type:String,default:""},url:{type:String},time:{type:String,default:"60"},placeholder:{type:String}},data:function(){return{disabled:!1,timer:this.time}},computed:{text:function(){return this.disabled?"".concat(this.timer,"秒后重新获取"):"获取短信验证码"}},methods:{getVerification:function(){var t=this;return Ln(f.a.mark((function e(){var n,r,o,i,a;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.phone){e.next=3;break}return t.$message.error("手机号码不能为空"),e.abrupt("return");case 3:return t.disabled=!0,n=setInterval((function(){t.timer--,t.timer<=0&&t.reset(n)}),1e3),e.prev=5,e.next=8,t.$api.post(t.url,{phone:t.phone});case 8:r=e.sent,o=r.data,i=r.status,200===i&&t.$message.success(o.content),e.next=22;break;case 14:if(e.prev=14,e.t0=e["catch"](5),e.t0.response){e.next=19;break}return t.$message.error("网络请求错误,请检查您的网络连接。"),e.abrupt("return");case 19:a=e.t0.response.data,t.$message.error(a.content),t.reset(n);case 22:case"end":return e.stop()}}),e,null,[[5,14]])})))()},reset:function(t){this.disabled=!1,this.timer=this.time,clearInterval(t)}}},qn=Mn,In=De(qn,Nn,Cn,!1,null,null,null),Dn=In.exports,Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markerVal,callback:function(e){t.markerVal=e},expression:"markerVal"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),n("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",Object.assign({},t.fullscreenOptions),!1),[n("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),n("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-marker"+t._uid,center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}},t._l(t.markers,(function(t){return n("el-amap-marker",{key:t.id,attrs:{position:t.path,title:t.title}})})),1)],1)],1)},$n=[],Bn=n("5aeb"),Vn={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,markerVal:this.value,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,amapManager:null,markers:[],mouseTool:null,geocoder:null,geolocation:null,plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0},position:{lng:0,lat:0,name:""}}},mounted:function(){this.amapManager=new Bn["AMapManager"]},methods:{handleChange:function(t){var e=t.target.value;this.markerVal=e,this.markerVal||this.initDefault(),this.$emit("change",this.markerVal)},initMap:function(){var t=this;Bn["lazyAMapApiLoaderInstance"]&&Bn["lazyAMapApiLoaderInstance"].load().then((function(){t.markerVal&&t.initMarkers(),AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawMarker()})),t.geocoder=new AMap.Geocoder}))},drawMarker:function(){var t=this;this.mouseTool.marker({visible:!1}),this.mouseTool.on("draw",(function(e){var n=e.obj.w.position,r=n.lng,o=n.lat;t.position.lat=o,t.position.lng=r,t.getAddress(r,o),t.markers.length&&(t.markers=[]),t.markers.push({id:t._uid,path:[r,o],title:"[".concat(r,",").concat(o,"]")})}))},initMarkers:function(){var t=this.markerVal.split("/");this.zoom=t.length&&t[1]?t[1]:18;var e=t.length&&t[0]&&t[0].split(",");e.length&&(this.center=[Number(e[0]),Number(e[1])],this.markers=[{id:this._uid,path:[Number(e[0]),Number(e[1])],title:"[".concat(Number(e[0]),",").concat(Number(e[1]),"]")}])},showModal:function(){this.visible=!0,this.markerVal&&this.initMarkers()},submit:function(t){if(this.markers.length){var e=this.markers[0]&&this.markers[0].path[0],n=this.markers[0]&&this.markers[0].path[1],r="".concat(e,", ").concat(n,"/").concat(this.zoom);this.markerVal=r,this.$emit("change",this.markerVal);var o=Object.assign({zoom:this.zoom},this.position);this.$emit("map",o)}else this.initDefault();this.visible=!1},cancel:function(){this.markers.length&&!this.markerVal&&this.initDefault(),this.visible=!1},initDefault:function(){this.markers=[],this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(this.markers=[],t&&t.length){var e=t[0],n=e.lat,r=e.lng;this.position.lat=n,this.position.lng=r,this.getAddress(r,n),this.center=[r,n],this.markers.push({id:this._uid,path:[r,n],title:"[".concat(r,",").concat(n,"]")})}},getAddress:function(t,e){var n=this;this.geocoder.getAddress([t,e],(function(t,e){"complete"===t&&e.regeocode?n.position.name=e.regeocode.formattedAddress:n.$message.error("根据经纬度查询地址失败")}))}}},Fn=Vn,Un=(n("5b37"),De(Fn,Rn,$n,!1,null,"09b502b8",null)),Kn=Un.exports,zn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markers,callback:function(e){t.markers=e},expression:"markers"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),n("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",Object.assign({},t.fullscreenOptions),!1),[n("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),n("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-polygon"+t._uid,center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}})],1)],1)},Yn=[];function Hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hn(Object(n),!0).forEach((function(e){Wn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zn={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,markers:this.value,polygonInstance:null,polygons:null,amapManager:null,mouseTool:null,polygonOption:{fillColor:"#2B6CDD",fillOpacity:.5,strokeColor:"#2B6CDD",strokeWeight:1},plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0}}},mounted:function(){this.amapManager=new Bn["AMapManager"]},methods:{initMap:function(){var t=this;Bn["lazyAMapApiLoaderInstance"].load().then((function(){AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawPolygon()}))}))},handleChange:function(t){var e=t.target.value;this.markers=e,this.markers||this.initDefault(),this.$emit("change",this.markers)},drawPolygon:function(){var t=this;this.mouseTool.polygon(),this.mouseTool.on("draw",(function(e){var n=e.obj.w.path,r=n.map((function(t){return[t.lng,t.lat]}));t.initPolygon(r),t.mouseTool.close(!0)}))},initPolygon:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];setTimeout((function(){t.mapInstance&&(t.polygonInstance&&t.mapInstance.remove(t.polygonInstance),t.polygonEditor&&t.polygonEditor.close(),t.polygonInstance=new AMap.Polygon(Gn({map:t.mapInstance,path:e},t.polygonOption)),t.polygons=e,t.polygonEditor=new AMap.PolyEditor(t.mapInstance,t.polygonInstance),t.polygonEditor.open(),t.polygonEditor.on("adjust",(function(e){var n=e.target.w.path;t.polygons=n})),t.polygonEditor.on("end",(function(e){e.type,e.target;t.drawPolygon()})))}),500)},showModal:function(){if(this.visible=!0,this.markers){var t=this.markers.split("/"),e=t.length&&t[0];this.zoom=t.length&&t[1]?t[1]:18;var n=JSON.parse(e);this.center=n[0]?[Number(n[0][0]),Number(n[0][1])]:[98.5868,24.434008],this.initPolygon(n)}},submit:function(t){if(this.polygons){var e=this.polygons.map((function(t){return[t.lng,t.lat]}));this.markers=JSON.stringify(e)+"/".concat(this.zoom),this.polygonEditor&&this.polygonEditor.close()}else this.initDefault();this.$emit("change",this.markers),this.visible=!1},cancel:function(){this.markers||this.initDefault(),this.polygonEditor&&this.polygonEditor.close(),this.visible=!1},initDefault:function(){this.polygonInstance&&this.mapInstance&&this.mapInstance.remove(this.polygonInstance),this.polygonEditor&&this.polygonEditor.close(),this.polygons=null,this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(t&&t.length){var e=t[0],n=e.lat,r=e.lng;this.center=[r,n]}}}},Jn=Zn,Xn=(n("8a89"),De(Jn,zn,Yn,!1,null,"03415b3c",null)),Qn=Xn.exports,tr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{attrs:{placeholder:t.placeholder,"read-only":""},model:{value:t.checkedValues,callback:function(e){t.checkedValues=e},expression:"checkedValues"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){t.visible=!0}},slot:"addonAfter"})],1),n("a-modal",{attrs:{title:t.placeholder},on:{ok:t.handleSubmit,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(e){var r=e.props,o=r.direction,i=r.selectedKeys,a=e.on.itemSelect;return["left"===o?n("a-spin",{attrs:{spinning:t.leftLoding}},[n("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:i.concat(t.checkedKeys),treeData:t.filterTreeNodes},on:{check:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)},select:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)}}})],1):t._e()]}}])})],1)],1)},er=[];function nr(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function rr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){nr(i,r,o,a,s,"next",t)}function s(t){nr(i,r,o,a,s,"throw",t)}a(void 0)}))}}var or=n("9f89"),ir=/\${([\s\S]+?)}/g,ar={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:"请选择数据"},treeUrl:{type:String,default:""},value:{type:String,default:""},titleName:{type:String,default:""},keyName:{type:String,default:""},selected:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,dataSource:[],checkedKeys:[],treeData:[],inputValue:"",leftLoding:!1,checkedValues:""}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,n=this.keyName,r=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[n],children:a,disabled:r.includes(i[n])||o&&!Ht(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},flattenTreeData:function(){var t=this,e=[];return this.treeData.forEach((function(n){e.push(n),n.children&&t.flatten(n.children)})),e}},created:function(){this.load()},methods:{load:function(){var t=this;return rr(f.a.mark((function e(){var n,r;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.treeUrl,r=null,!n){e.next=6;break}return e.next=5,t.$api.get(or(n,{reInterpolate:ir})());case 5:r=e.sent;case 6:r&&r.data&&(t.treeData=r.data.collection,t.treeNodes&&t.flatten(JSON.parse(JSON.stringify(t.treeNodes)))),t.value&&(t.checkedKeys=t.value.split(","),t.setCheckValues());case 8:case"end":return e.stop()}}),e)})))()},getSelections:function(){var t=this;return this.flattenTreeData.filter((function(e){return t.checkedKeys.includes(e[t.keyName])}))},setCheckValues:function(){var t=this;this.checkedValues=this.treeNodes&&this.treeNodes.filter((function(e){return t.checkedKeys.includes(e.key)})).map((function(t){return t.title})).join(",")},onChange:function(t){this.checkedKeys=t,this.$emit("selected",this.getSelections())},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,n,r){var o=e.node.eventKey;r(o,!this.isChecked(n,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){this.setCheckValues(),this.$emit("submit",this.getSelections()),this.visible=!1},handleCancel:function(){this.$emit("selected",this.getSelections()),this.value?(this.checkedKeys=this.value.split(","),this.setCheckValues()):this.checkedKeys=[],this.visible=!1},handleSearch:function(t,e){var n=this,r=null;"left"===t&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=e,n.leftLoding=!1}),1e3))}}},sr=ar,lr=(n("56bc"),De(sr,tr,er,!1,null,"23fdc296",null)),ur=lr.exports,cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout-view-blank",{tag:"component"},[n("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(e){return n("a-tag",{key:e[t.idName],attrs:{closable:""},on:{close:function(n){return t.handleRemove(e)}}},[t._v(" "+t._s(e[t.titleName||t.idName])+" ")])})):t._e(),n("keep-alive",[t.loading?t._e():n(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},fr=[],pr={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"}}};function hr(t){return yr(t)||vr(t)||mr(t)||dr()}function dr(){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 mr(t,e){if(t){if("string"===typeof t)return gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(t,e):void 0}}function vr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yr(t){if(Array.isArray(t))return gr(t)}function gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function br(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function wr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){br(i,r,o,a,s,"next",t)}function s(t){br(i,r,o,a,s,"throw",t)}a(void 0)}))}}function _r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_r(Object(n),!0).forEach((function(e){Or(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kr={mixins:[pr],components:xr({},Ol),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:St(Ol.ModelList)("".concat(this.storeNamespace))}}},methods:{create:St,initView:function(){var t=this;return wr(f.a.mark((function e(){var n,r,o;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.schema.configs.find((function(t){return"picker.view"===t.key})),r=n?n.value:"",o="p-".concat(r),t.$store.hasModule(o)){e.next=7;break}return K(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=r,t.viewKey=r,t.storeNamespace="v-".concat(r),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode?Array.from(new Set([].concat(hr(this.selections),hr(t)))):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,n=this.selections,r=n.find((function(n){return n[e]===t[e]}));n.splice(r,1),this.$emit("selected",n)}}},Er=kr,jr=De(Er,cr,fr,!1,null,null,null),Sr=jr.exports,Pr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",Object.assign({},t.options,t.$attrs),!1),t.$listeners),[t._t("default")],2)},Ar=[],Nr={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0}},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},Cr=Nr,Tr=De(Cr,Pr,Ar,!1,null,null,null),Lr=Tr.exports,Mr={mixins:[xn],components:{Editor:An,Picker:Sr,Popup:Lr,VerificationCode:Dn,MapMarker:Kn,MapPolygon:Qn,Transfer:ur},watch:{value:function(t,e){var n=this.$refs.aInput;n&&(n.setValue(t),this.$refs.item.clearValidate())}}},qr=Mr,Ir=(n("bb5f"),De(qr,un,cn,!1,null,null,null)),Dr=Ir.exports,Rr={mixins:[ln],components:{Item:Dr},props:{columns:{type:Array},layout:{type:String,default:"inline"}}},$r=Rr,Br=De($r,Ge,We,!1,null,null,null),Vr=Br.exports,Fr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(e,r){return n("a-button-group",{key:"group-"+r,staticStyle:{"margin-right":"16px"}},t._l(e.actions,(function(e){return n("a-button",{key:e.id,attrs:{type:e.primary?"primary":"default",icon:e.icon,disabled:e.disabled},on:{click:function(n){return t.handleClick(e,n)}}},[t._v(" "+t._s(e.name)+" "),"file"===e.action?n("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):t._e()])})),1)})),1)},Ur=[];function Kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zr={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({actions:[e]}):t[r].actions.push(e)})),t}},methods:{handleClick:function(t,e){var n=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),n[0]&&void 0===n[0].click()||e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var n=t.list?t.list:"file";this.$emit("action",t,null,Kr({},n,e))}}},Yr=zr,Hr=De(Yr,Fr,Ur,!1,null,null,null),Gr=Hr.exports,Wr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.createView,t._g(t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.action.key||t.action.method.toLowerCase(),delay:!0,action:t.action}},"component",t.$attrs,!1),t.$listeners))},Zr=[],Jr={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:St(Ol["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Xr=Jr,Qr=De(Xr,Wr,Zr,!1,null,null,null),to=Qr.exports,eo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-pagination",t._g(t._b({attrs:{"show-quick-jumper":""}},"a-pagination",t.$attrs,!1),t.$listeners))},no=[],ro={},oo=De(ro,eo,no,!1,null,null,null),io=oo.exports,ao=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.editable&&["write","updateonly"].includes(t.schema.access)?n("Item",{attrs:{formModel:t.editRow,prop:t.schema.name,schema:t.schema,params:{},labelType:!1},on:{change:function(e){return t.$emit("change",e)},fill:function(e){return t.$emit("fill",e)}},model:{value:t.editValue,callback:function(e){t.editValue=e},expression:"editValue"}}):t.component?n(t.component,t._b({tag:"component",attrs:{text:t.text}},"component",t.$props,!1)):t.script?n("span",{domProps:{innerHTML:t._s(t.text)}}):"title"===t.schema.display?n("a",{on:{click:function(e){return t.$emit("profile")}}},[t._v(" "+t._s(t.text)+" ")]):n("span",[t._v(t._s(t.text))])],1)},so=[];function lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function uo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lo(Object(n),!0).forEach((function(e){co(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function co(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fo={mixins:[Me],components:{Item:Dr},props:["editable","value","row","schema","mode","viewURL","idName","vid"],data:function(){return{component:null,script:null,editValue:this.value,editRow:uo({},this.row)}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)}},created:function(){var t=this;if(this.schema&&this.schema.format){var e=this.schema.format.slice(0,8);"function"===e?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid"],data:function(){return{model:{}}},methods:{profile:function(){t.$emit("profile")}},template:this.schema.format}}},watch:{value:function(t,e){t!==e&&(this.editValue=t)}}},po=fo,ho=De(po,ao,so,!1,null,null,null),mo=ho.exports;function vo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vo(Object(n),!0).forEach((function(e){go(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function go(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bo={mixins:[Nt,Ct,zt,Ne,Me,Ut,Kt],components:yo(yo(yo({},He),Ol),{},{FilterForm:Vr,ActionGroup:Gr,ActionView:to,PaginationSize:io,Popup:Lr,Cell:mo})},wo=bo,_o=(n("6ea4"),De(wo,Pt,At,!1,null,null,null)),xo=_o.exports,Oo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.actioning}},[n(t.layout,{tag:"component",scopedSlots:t._u([{key:"actions-none",fn:function(){return[n("ActionGroup",{attrs:{actions:t.backActions},on:{action:t.handleAction}}),n("ActionGroup",{attrs:{actions:t.navActions},on:{action:t.handleAction}})]},proxy:!0},t.actions.length?{key:"actions-single",fn:function(){return[n("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[n("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0}],null,!0)},[n("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.profile}},[t.profile?n("profile-"+(t.configs["profile.widget"]||"normal"),{tag:"component",attrs:{groups:t.groups,columns:t.columns,subviews:t.subviews,loading:t.loading,profile:t.profile,column:t.parentIds?1:2},scopedSlots:t._u([{key:"cell",fn:function(e){var r=e.value,o=e.column;return[n("Cell",{attrs:{row:t.profile,schema:o,value:r}})]}},{key:"action",fn:function(){return[n("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}],null,!1,1366521354)}):t._e()],1),t.actionViewVisible?n("Popup",{attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?n("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult},on:{commit:t.commitActionView}}):t._e(),t.action.params&&t.action.params.autofill?n("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[n("a-col",[n("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),n("a-col",[n("a-space",[n("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),n("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1)],1)},ko=[];function Eo(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function jo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Eo(i,r,o,a,s,"next",t)}function s(t){Eo(i,r,o,a,s,"throw",t)}a(void 0)}))}}var So={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var t=this.model.attrs.filter((function(t){return!["all"].includes(t.hidden)&&"model"!==t.metaType&&"link"!==t.type}));return t},subviews:function(){var t=this;return this.model.attrs.filter((function(e){var n=e.params;n=void 0===n?{}:n;var r=n.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!r||Ht(r,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({name:e.group,columns:[e]}):t[r].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,n=this.profileId,r=this.routeId,o=this.findAll;return t?t[e]:n||r||o[0]&&o[0][e]},profile:function(){var t=this.values||this.findOne(this.id)||null;return this.params.$parent&&(t.$parent=this.params.$parent),t},next:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e+1]},previous:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(t){this.parentIds||"page"!==this.mode?this.$emit("profile",t):this.$router.replace({params:{id:t[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var t=arguments,e=this;return jo(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({key:e.id,mute:r});case 3:return o=n.sent,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var t=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(e){t.routeId=e}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}},Po=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(e,r){return n("Descriptions",{key:"g-"+r,staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[e.name?n("div",{attrs:{slot:"title"},slot:"title"},[n("strong",[t._v(t._s(e.name))])]):t._e(),t._l(e.columns,(function(e){return n("DescriptionsItem",{key:e.name,attrs:{span:e.column?e.column/12:1,label:e.alias||e.name,tooltip:e.legend}},[t._t("cell",null,{value:t.profile[e.name],column:e})],2)}))],2)})),1),t.tabs.length?n("a-card",{attrs:{size:"small",type:"inner"}},[n("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(e,r){return n("a-tab-pane",{key:String(r),attrs:{tab:e.tab}},["link"===e.type?n("Frame",{attrs:{url:t.templateURL(e.value,t.profile)}}):n("keep-alive",[n(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:(t.parentIds||[]).concat([t.id]),pageKey:t.pageKey,viewKey:e.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Ao=[],No={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},Co=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},To=[],Lo={},Mo=Lo,qo=De(Mo,Co,To,!1,null,null,null),Io=qo.exports;function Do(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ro=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=[],o=e,i=t.filter((function(t){var e=t.componentOptions||{Ctor:{}},n=e.Ctor.options;return!!n&&n.DESCRIPTIONS_ITEM}));return i.forEach((function(t,a){var s=t.componentOptions.propsData.span||1;if(a===i.length-1)return r.push(t),void n.push(r);s<o?(o-=s,r.push(t)):(r.push(t),n.push(r),o=e,r=[])})),n},$o={DescriptionsItem:No,components:{Row:Io},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(t){var e,n=this.title,r=this.bordered,o=this.size,i=this.colon,a=this.layout,s=this.inline,l=this.column,u=this.$slots,c=this.profile,f=Ro(u.default,l);return t("div",{class:(e={"ant-descriptions":!0},Do(e,"ant-descriptions-".concat(o),!0),Do(e,"ant-descriptions-bordered",!!r),Do(e,"ant-descriptions-profile",!!c),e)},[n&&t("div",{class:"ant-descriptions-title"},[n]),!n&&u.title&&t("div",{class:"ant-descriptions-title"},[u.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[f.map((function(e){return"vertical"===a?[t(Io,[" ",e.map((function(e){var n=e.componentOptions.propsData,r=n.span,o=n.label,i=n.align,a=n.tooltip;return t("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:r}},a?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[a])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),t(Io,[" ",e.map((function(e){var n=e.componentOptions.propsData,r=n.span,o=n.align;return t("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:r}},[e])}))," "])]:t(Io,[" ",e.map((function(e){var n=e.componentOptions.propsData,o=n.label,a=n.span,l=n.align,u=n.tooltip;return r||!s?[t("th",{class:"ant-descriptions-item-label"},u?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":l,"white-space":"pre-wrap"},attrs:{colSpan:a?2*a-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:a},style:{"text-align":l}},u?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])]:[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])])])},renderError:function(){}},Bo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.loading,delay:50}},[n("iframe",{style:{height:t.height},attrs:{frameborder:"0",src:""+t.url,width:"100%"},on:{load:t.handleLoad}})])},Vo=[],Fo={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},Uo=Fo,Ko=De(Uo,Bo,Vo,!1,null,null,null),zo=Ko.exports;function Yo(t){return Zo(t)||Wo(t)||Go(t)||Ho()}function Ho(){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 Go(t,e){if(t){if("string"===typeof t)return Jo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jo(t,e):void 0}}function Wo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Zo(t){if(Array.isArray(t))return Jo(t)}function Jo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xo(Object(n),!0).forEach((function(e){ti(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ti(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ei,ni,ri=$o.DescriptionsItem,oi={components:Qo({Descriptions:$o,DescriptionsItem:ri,Frame:zo},Ol),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Yo(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Yo(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return Wt(t,e)}},computed:{tabs:function(){return this.views.map((function(t,e){return Qo(Qo({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:St(Ol.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))}},watch:{profile:function(){this.views=Yo(this.subviews),this.id=this.view.id}}},ii=oi,ai=De(ii,Po,Ao,!1,null,null,null),si=ai.exports,li={},ui=De(li,ei,ni,!1,null,null,null),ci=ui.exports,fi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-row",[n("a-col",{attrs:{span:3}},[n("a-anchor",{attrs:{affix:t.affix,getContainer:t.getContainer,offsetTop:t.view.configs["profile.tile.offsetTop"]&&Number(t.view.configs["profile.tile.offsetTop"])||0},on:{change:t.handleChange,click:t.handleClick}},[t._l(t.groups,(function(t,e){return n("a-anchor-link",{key:"anchor-g-"+e,attrs:{href:"#profile-tile-group-"+e,title:t.name}})})),t._l(t.tabs,(function(t,e){return n("a-anchor-link",{key:"anchor-t-"+e,attrs:{href:"#profile-tile-tab-"+e,title:t.tab}})}))],2)],1),n("a-col",{attrs:{span:21}},[n("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(e,r){return n("a-card",{key:"g-"+r,staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-"+r,title:e.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),n("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},t._l(e.columns,(function(e){return n("DescriptionsItem",{key:e.name,attrs:{span:e.column?e.column/12:1,label:e.alias||e.name,tooltip:e.legend}},[t._t("cell",null,{value:t.profile[e.name],column:e})],2)})),1)],1)})),1),t._l(t.tabs,(function(e,r){return n("a-card",{key:String(r),staticClass:"gs-card",attrs:{tab:e.tab,size:"small",id:"profile-tile-tab-"+r,title:e.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===e.type?n("Frame",{attrs:{url:t.templateURL(e.value,t.profile)}}):n("keep-alive",[n(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:(t.parentIds||[]).concat([t.id]),pageKey:t.pageKey,viewKey:e.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},pi=[];function hi(t){return yi(t)||vi(t)||mi(t)||di()}function di(){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 mi(t,e){if(t){if("string"===typeof t)return gi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gi(t,e):void 0}}function vi(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yi(t){if(Array.isArray(t))return gi(t)}function gi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bi(Object(n),!0).forEach((function(e){_i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xi=$o.DescriptionsItem,Oi={components:wi({Descriptions:$o,DescriptionsItem:xi,Frame:zo},Ol),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:hi(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&hi(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0}},methods:{handleChange:function(t){},templateURL:function(t,e){return Wt(t,e)},handleClick:function(t,e){t.preventDefault()},getContainer:function(){var t=this.container&&this.container.$refs.container;return t&&t.$el||t||window}},computed:{tabs:function(){return this.views.map((function(t,e){return wi(wi({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:St(Ol.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))}},watch:{profile:function(){this.views=hi(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},ki=Oi,Ei=De(ki,fi,pi,!1,null,null,null),ji=Ei.exports,Si={ProfileNormal:si,ProfilePortal:ci,ProfileTile:ji};function Pi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ai(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pi(Object(n),!0).forEach((function(e){Ni(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ni(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ci={mixins:[Nt,Ct,zt,Ne,Me,So],components:Ai({ActionGroup:Gr,ActionView:to,Popup:Lr,Cell:mo},Si)},Ti=Ci,Li=De(Ti,Oo,ko,!1,null,null,null),Mi=Li.exports,qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout-view-blank",{tag:"component"},[t.commitResult.template&&t.commitResult.data?n("a-result",{attrs:{status:"success",title:t.message}},[n(t.commitResult,{tag:"component"})],1):n(t.widget,t._g(t._b({tag:"component",attrs:{action:t.action,columns:t.columns,params:t.params}},"component",t.$attrs,!1),t.$listeners))],1)},Ii=[],Di={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ri={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},computed:{columns:function(){var t=this.action,e=this.params,n=this.model,r=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!o.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Di[r].includes(t.access)&&!o.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},rules:function(){}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},$i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{ref:"form",attrs:{rules:t.rules,model:t.actionModel}},[n("a-row",{attrs:{gutter:24}},t._l(t.columns,(function(e){return n("a-col",{key:e.name,staticStyle:{"min-height":"0"},attrs:{span:e.column||12}},[n("Item",{attrs:{formModel:t.actionModel,prop:e.name,schema:e,params:t.params},on:{change:function(n){return t.handleItemChange(n,e)},fill:function(n){return t.handleItemFill(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[col.name]"}})],1)})),1)],1)},Bi=[],Vi={mixins:[ln],components:{Item:Dr}},Fi=Vi,Ui=De(Fi,$i,Bi,!1,null,null,null),Ki=Ui.exports,zi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-upload",{attrs:{multiple:"",beforeUpload:t.beforeUpload,showUploadList:!1}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.fileList,(function(e,r){return n("div",{key:r,staticClass:"form-file-upload"},[n("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[n("a-col",["uploading"===e.status?n("a-icon",{attrs:{type:"loading"}}):"done"===e.status?n("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(e.file.name)+" ")],1),n("a-col",[e.status?t._e():n("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(r)}}})],1)],1)],1)}))],2)},Yi=[];function Hi(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Gi(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Hi(i,r,o,a,s,"next",t)}function s(t){Hi(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Wi={mixins:[ln],data:function(){return{fileList:[]}},methods:{handleRemove:function(t){var e=this.fileList.slice();e.splice(t,1),this.fileList=e},beforeUpload:function(t){return this.fileList.push({file:t,status:""}),!1},handleSubmit:function(){var t=this;return Gi(f.a.mark((function e(){var n;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(n&&n.length>1)){e.next=5;break}return e.abrupt("return",t.$message.error("请选择一条文件进行上传"));case 5:t.handleCommit();case 6:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Gi(f.a.mark((function e(){var n,r,o,i,a,s,l,u,c,p,h,d;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:d=function(){return d=Gi(f.a.mark((function t(e){var n,d,m;return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",n=o.key,d=o.method,m=new FormData,m.append("file",e.file),a&&m.append("data[".concat(i,"]"),a[i]),t.next=7,r({data:m,key:n,method:d,mute:!0});case 7:p++,e.status="done",p>=c.length?(s(),l(),u.success("上传完成")):h(c[p]);case 10:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)},h=function(t){return d.apply(this,arguments)},n=t.view.view,r=n.saveData,o=n.action,i=n.idName,a=n.actionModel,s=n.closeActionView,l=n.load,u=n.$message,c=t.fileList,p=0,h(c[p]);case 6:case"end":return e.stop()}}),e)})))()}}},Zi=Wi,Ji=De(Zi,zi,Yi,!1,null,null,null),Xi=Ji.exports,Qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Picker",t._g(t._b({attrs:{viewKey:t.action.key||t.action.method.toLowerCase(),schema:t.action,params:{filters:t.pickerFilter},pickerMode:t.pickerMode},on:{selected:t.handleViewPickerSelected}},"Picker",t.$attrs,!1),t.$listeners))},ta=[];function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(n),!0).forEach((function(e){ra(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ra(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oa={mixins:[ln],components:{Picker:Sr},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,n={};if(!e)return null;for(var r in e){var o=e[r].split(".").reduce((function(t,e){return t&&t[e]||void 0}),na(na({},this.params),this.actionModel));n[r]=void 0===o?e[r]:o}return n},pickerMode:function(){var t=this.action.params;t=void 0===t?{}:t;var e=t.multiple;return e?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(t){var e=this.configs["picker.view.value"],n=e;this.actionModel=t.map((function(t){return ra({},n,t[e])}))}}},ia=oa,aa=De(ia,Qi,ta,!1,null,null,null),sa=aa.exports,la=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(e){return n("a-step",{key:e.title,attrs:{title:e.title}},["核心解读"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):t._e()],1)})),1),Object.keys(t.algorithmList).length&&t.current<t.steps.length-1?n("div",{staticClass:"algorithm-preview"},[n("strong",[t._v("算法集合预览:")]),t._v(t._s(t.algorithmList)+" ")]):t._e(),n("a-spin",{attrs:{spinning:t.loading}},[0===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),1===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),2===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),3===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),4===t.current?n("div",{staticClass:"steps-content"},[n("AlgorithmForm",{attrs:{algorithmList:t.algorithmList},on:{close:function(e){return t.$emit("close")}}})],1):t._e()]),n("div",{staticClass:"steps-action"},[t.current>0?n("a-button",{staticStyle:{"margin-right":"8px"},on:{click:t.prev}},[t._v(" 上一步 ")]):t._e(),t.current<t.steps.length-1?n("a-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v(" 下一步 ")]):t._e()],1)],1)},ua=[];function ca(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function fa(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ca(i,r,o,a,s,"next",t)}function s(t){ca(i,r,o,a,s,"throw",t)}a(void 0)}))}}var pa={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var n=e.key,r=e.rows;t.data[n]?t.data[n]=r:S.a.set(t.data,n,r)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r}},actions:{loadData:function(t){var e=arguments;return fa(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,s=void 0===a?"get":a,l=i.key,u=i.query,r("setLoading",!0),n.prev=4,n.next=7,O[s](u?"/api/".concat(l?"".concat(l):"","?").concat(E.a.stringify(u)):"/api/".concat(l?"".concat(l):""));case 7:c=n.sent,c.data&&l&&r("setData",{rows:c.data,key:l}),n.next=14;break;case 11:n.prev=11,n.t0=n["catch"](4),o("handleError",n.t0);case 14:return n.prev=14,r("setLoading",!1),n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return fa(f.a.mark((function e(){var n,r,o,i;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setLoading",!0),e.prev=2,e.next=5,O.get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&n("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),r("handleError",e.t0);case 13:return e.prev=13,n("setLoading",!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))()},getResult:function(t){var e=arguments;return fa(f.a.mark((function n(){var r,o,i,a,s,l;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,s=i.params,r("setLoading",!0),n.prev=4,n.next=7,O.post(a,s,{});case 7:if(l=n.sent,!l||!l.data){n.next=10;break}return n.abrupt("return",l.data);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](4),o("handleError",n.t0);case 15:return n.prev=15,r("setLoading",!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[4,12,15,18]])})))()},handleError:function(t,e){var n=t.commit;if(!e.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=e.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";n("setStatus",{status:o,message:a})}}};function ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function da(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ha(Object(n),!0).forEach((function(e){ma(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ma(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}for(var va=Object(p["createNamespacedHelpers"])("m-algorithm"),ya=va.mapState,ga=va.mapActions,ba=["loading","data","message"],wa=["loadData","loadDistrict","getResult"],_a={computed:da({},ya(ba)),methods:da({},ga(wa)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",pa)}},xa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"algorithm-checkbox"},[n("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},t._l(t.data,(function(e){return n("a-col",{key:e.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":e.checked},attrs:{span:6}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:20}},[n("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:e.checked},on:{change:function(n){return t.onCheckChange(n,e)}}},[n("a-tooltip",[n("template",{slot:"title"},[t._v(" "+t._s(e.name)+" ")]),t._v(" "+t._s(e.name)+" ")],2)],1)],1),n("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(n){return t.showDrawer(e.read_id)}}},[e.checked?n("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):t._e()],1)],1)],1)})),1),n("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:t.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(e){t.visible=!1}}},[n("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("解读详情")]),n("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[n("DescriptionsItem",{attrs:{label:"编码"}},[t._v(t._s(t.algorithmDetail.code))]),n("DescriptionsItem",{attrs:{label:"名称"}},[t._v(t._s(t.algorithmDetail.name))]),n("DescriptionsItem",{attrs:{label:"解读分类"}},[t._v(t._s(t.algorithmDetail.classify))]),n("DescriptionsItem",{attrs:{label:"算法类别"}},[t._v(t._s(t.algorithmDetail.type))]),n("DescriptionsItem",{attrs:{label:"作者"}},[t._v(t._s(t.algorithmDetail.author))]),n("DescriptionsItem",{attrs:{label:"标签"}},[t._v(t._s(t.algorithmDetail.core_basis))]),n("DescriptionsItem",{attrs:{label:"解读维度"}},[t._v(t._s(t.algorithmDetail.latitude))]),n("DescriptionsItem",{attrs:{label:"解读赋值"}},[t._v(t._s(t.algorithmDetail.app_product))])],1),n("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("参数配置")]),n("a-tabs",{attrs:{type:"editable-card"},on:{edit:t.onEdit},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(e,r){return n("a-tab-pane",{key:e.key,attrs:{tab:e.title+"_"+(r+1),closable:0!==r}},[n("AlgorithmParams",{attrs:{algorithmParams:e.algorithmParams,algorithmParamsKey:e.key},on:{submit:t.submitForm}})],1)})),1),n("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[n("a-button",{style:{marginRight:"8px"},on:{click:function(e){t.visible=!1}}},[t._v(" 取消 ")]),n("a-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitParams(t.copyPaneParams)}}},[t._v(" 确定 ")])],1)],1)],1)},Oa=[],ka=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{ref:"dynamicValidateForm",attrs:{model:t.dynamicValidateForm}},[t._l(t.dynamicValidateForm.algorithms,(function(e,r){return n("a-form-model-item",{key:e.key,attrs:{prop:"algorithms."+r+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[n("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(e){return t.submitForm("dynamicValidateForm")}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"domain.value"}}),n("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===t.dynamicValidateForm.algorithms.length},on:{click:function(n){return t.removeDomain(e)}}})],1)})),n("a-form-model-item",[n("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:t.addDomain}},[n("a-icon",{attrs:{type:"plus"}}),t._v(" 增加 ")],1)],1),n("a-form-model-item",[n("a-button",{on:{click:function(e){return t.resetForm("dynamicValidateForm")}}},[t._v(" 重置 ")])],1)],2)},Ea=[],ja={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.setParams()}))},setParams:function(){var t=this.dynamicValidateForm.algorithms.map((function(t){return t.value})),e={key:this.algorithmParamsKey,algorithmParams:t};this.$emit("submit",e)},resetForm:function(t){this.$refs[t].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(t){var e=this.dynamicValidateForm.algorithms.indexOf(t);-1!==e&&this.dynamicValidateForm.algorithms.splice(e,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(t){this.dynamicValidateForm.algorithms=t}}},Sa=ja,Pa=De(Sa,ka,Ea,!1,null,null,null),Aa=Pa.exports,Na=$o.DescriptionsItem,Ca={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:$o,DescriptionsItem:Na,AlgorithmParams:Aa},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var t=this;return this.data.find((function(e){return e.read_id===t.algorithmId}))||{}}},methods:{onCheckChange:function(t,e){if(e.checked=t.target.checked,e.checked)this.checkedList.push(e);else{var n=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(n,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var n=this.checkedList.find((function(e){return e.read_id===t})).values;if(n.length)this.panes=n.map((function(t,n){var r={key:"".concat(e.algorithmId).concat(n),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return r}));else{var r={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(r),this.panes=[r]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(t){var e=t.key;this.paneParams[e]?this.paneParams[e]=t.algorithmParams:this.$set(this.paneParams,e,t.algorithmParams),this.setParams()},setParams:function(){for(var t in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===t.indexOf(this.algorithmId)&&delete this.copyPaneParams[t]},submitParams:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var n=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(n.values=Object.values(e)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(t,e){this[e](t)},add:function(){var t=this.panes,e=t.length?t.length:0,n="".concat(this.algorithmId).concat(e),r={title:"参数",algorithmParams:[],key:n};this.submitForm(r),this.panes.push(r),this.panes=t,this.activeKey=n},remove:function(t){delete this.paneParams[t],this.setParams();var e,n=this.activeKey;this.panes.forEach((function(n,r){n.key===t&&(e=r-1)}));var r=this.panes.filter((function(e){return e.key!==t}));r.length&&n===t&&(n=e>=0?r[e].key:r[0].key),this.panes=r,this.activeKey=n}},watch:{}},Ta=Ca,La=(n("d28d"),De(Ta,xa,Oa,!1,null,null,null)),Ma=La.exports,qa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-row",{attrs:{type:"flex"}},[n("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[n("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[t._v(" 可 "),n("a",{on:{click:function(e){t.pickerVisible=!0}}},[t._v(" 选择系统中现有命例 ")]),t._v(" ,快速填充命例信息。 ")]),n("a-form-model",{ref:"profileForm",attrs:{layout:t.formLayout,model:t.profile,rules:t.profileRules}},[n("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:t.profile.nick_name,callback:function(e){t.$set(t.profile,"nick_name",e)},expression:"profile.nick_name"}})],1),n("a-form-model-item",{attrs:{label:"性别","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.gender,callback:function(e){t.$set(t.profile,"gender",e)},expression:"profile.gender"}},[n("a-radio",{attrs:{value:"male"}},[t._v("男")]),n("a-radio",{attrs:{value:"female"}},[t._v("女")])],1)],1),n("a-form-model-item",{attrs:{label:"公历","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{on:{change:t.handleLunarChange},model:{value:t.profile.is_lunar,callback:function(e){t.$set(t.profile,"is_lunar",e)},expression:"profile.is_lunar"}},[n("a-radio",{attrs:{value:!1}},[t._v("公历")]),n("a-radio",{attrs:{value:!0}},[t._v("农历")])],1)],1),t.hasDaylight?n("a-form-model-item",{attrs:{label:"夏令时","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.is_day_light,callback:function(e){t.$set(t.profile,"is_day_light",e)},expression:"profile.is_day_light"}},[n("a-radio",{attrs:{value:!0}},[t._v("是")]),n("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),n("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:t.profile.birthday,callback:function(e){t.$set(t.profile,"birthday",e)},expression:"profile.birthday"}}),n("DateTimePicker",{attrs:{slot:"content",isLunar:t.profile.is_lunar},on:{change:t.handleDateTimeChange},slot:"content"})],1)],1),t.hasLeap?n("a-form-model-item",{attrs:{label:"是否为闰月","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.is_leap,callback:function(e){t.$set(t.profile,"is_leap",e)},expression:"profile.is_leap"}},[n("a-radio",{attrs:{value:!0}},[t._v("是")]),n("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),n("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.is_twins,callback:function(e){t.$set(t.profile,"is_twins",e)},expression:"profile.is_twins"}},[n("a-radio",{attrs:{value:!0}},[t._v("是")]),n("a-radio",{attrs:{value:!1}},[t._v("否")])],1),t.profile.is_twins?n("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:t.profile.birth_num,callback:function(e){t.$set(t.profile,"birth_num",e)},expression:"profile.birth_num"}}):t._e()],1),n("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-cascader",{attrs:{options:t.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:t.handleDistrictChange},model:{value:t.profile.place,callback:function(e){t.$set(t.profile,"place",e)},expression:"profile.place"}})],1),n("a-form-model-item",{attrs:{label:"算法","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[t._v(" "+t._s(t.profile.code)+" ")]),n("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:t.profile.productCode,callback:function(e){t.$set(t.profile,"productCode",e)},expression:"profile.productCode"}})],1),n("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:t.profile.productName,callback:function(e){t.$set(t.profile,"productName",e)},expression:"profile.productName"}})],1),t.showMore?t._e():n("p",{staticStyle:{"text-align":"center"}},[n("a-button",{attrs:{type:"link"},on:{click:function(e){t.showMore=!0}}},[t._v("更多设置")])],1),t.showMore?[n("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:t.profile.first_name,callback:function(e){t.$set(t.profile,"first_name",e)},expression:"profile.first_name"}})],1),n("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:t.profile.last_name,callback:function(e){t.$set(t.profile,"last_name",e)},expression:"profile.last_name"}})],1),n("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.beginTimeVisible,callback:function(e){t.beginTimeVisible=e},expression:"beginTimeVisible"}},[n("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:t.profile.begin_input_time,callback:function(e){t.$set(t.profile,"begin_input_time",e)},expression:"profile.begin_input_time"}}),n("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.begin_input_time=e}},slot:"content"})],1)],1),n("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.endTimeVisible,callback:function(e){t.endTimeVisible=e},expression:"endTimeVisible"}},[n("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:t.profile.end_input_time,callback:function(e){t.$set(t.profile,"end_input_time",e)},expression:"profile.end_input_time"}}),n("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.end_input_time=e}},slot:"content"})],1)],1),n("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:t.profile.yicuojin,callback:function(e){t.$set(t.profile,"yicuojin",e)},expression:"profile.yicuojin"}})],1),n("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:t.profile.wenwanggua,callback:function(e){t.$set(t.profile,"wenwanggua",e)},expression:"profile.wenwanggua"}})],1),n("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(e){return t.profile.wenwanggualeixing=e}}},t._l(t.wenwangguaType,(function(e){return n("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(e)+" ")])})),1)],1),n("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:t.profile.daliurenzhanshi,callback:function(e){t.$set(t.profile,"daliurenzhanshi",e)},expression:"profile.daliurenzhanshi"}})],1),n("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.nowTimeVisible,callback:function(e){t.nowTimeVisible=e},expression:"nowTimeVisible"}},[n("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:t.profile.now_time,callback:function(e){t.$set(t.profile,"now_time",e)},expression:"profile.now_time"}}),n("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.now_time=e}},slot:"content"})],1)],1),n("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:t.profile.test_result,callback:function(e){t.$set(t.profile,"test_result",e)},expression:"profile.test_result"}})],1),n("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:t.profile.disc_result,callback:function(e){t.$set(t.profile,"disc_result",e)},expression:"profile.disc_result"}})],1)]:t._e()],2),n("div",{staticStyle:{"text-align":"center"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("0")}}},[t._v("立即测算")])],1)],1),n("a-col",{attrs:{span:12}},[t.codeValue?n("CodeEditor",{attrs:{width:"100%",value:t.codeValue}}):n("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[n("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),n("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:t.confirm},model:{value:t.pickerVisible,callback:function(e){t.pickerVisible=e},expression:"pickerVisible"}},[n("ProfileSelect",{on:{select:t.handleProfileSelect}})],1),n("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(e){return t.submit("1")}}},[t._v(" 发布产品 ")])],1)},Ia=[],Da={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),n=t&&t.filter((function(t){return"2"===t.level})),r=t&&t.filter((function(t){return"3"===t.level}));return e.map((function(t){return{value:t.district_id,label:t.district_name,children:n.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,children:r.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,time_zone:t.time_zone}}))}}))}}))||[]}}},Ra=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:t.width,height:t.height}})},$a=[],Ba=n("2364"),Va=null,Fa={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(t){Va&&Va.dispose();var e=Ba["Uri"].parse("json://grid/settings.json");Va=Ba["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},Ua=Fa,Ka=De(Ua,Ra,$a,!1,null,null,null),za=Ka.exports,Ya=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[n("a-col",[n("ul",t._l(t.years,(function(e,r){return n("li",{key:r,class:{active:t.value.yearIndex===r},on:{click:function(e){return t.change("year",r)}}},[t._v(" "+t._s(e)+"年 ")])})),0)]),n("a-col",[n("ul",t._l(t.months,(function(e,r){return n("li",{key:e,class:{active:t.value.monthIndex===r},on:{click:function(e){return t.change("month",r)}}},[t._v(" "+t._s(e)+"月 ")])})),0)]),n("a-col",[n("ul",t._l(t.days,(function(e,r){return n("li",{key:e,class:{active:t.value.dayIndex===r},on:{click:function(e){return t.change("day",r)}}},[t._v(" "+t._s(e)+"日 ")])})),0)]),n("a-col",[n("ul",t._l(t.hours,(function(e,r){return n("li",{key:e,class:{active:t.value.hourIndex===r},on:{click:function(e){return t.change("hour",r)}}},[t._v(" "+t._s(e)+"时 ")])})),0)]),n("a-col",[n("ul",t._l(t.minutes,(function(e,r){return n("li",{key:e,class:{active:t.value.minuteIndex===r},on:{click:function(e){return t.change("minute",r)}}},[t._v(" "+t._s(e)+"分 ")])})),0)])],1)},Ha=[],Ga=[],Wa=[],Za=[],Ja=[],Xa=1901;Xa<=2030;Xa++)Ga.push("".concat(Xa));for(var Qa=1;Qa<=12;Qa++)Wa.push(Qa<10?"0".concat(Qa):"".concat(Qa));for(var ts=0;ts<=23;ts++)Za.push(ts<10?"0".concat(ts):"".concat(ts));for(var es=0;es<=59;es++)Ja.push(es<10?"0".concat(es):"".concat(es));var ns={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Ga,year:"1901",months:Wa,month:"01",day:"01",hours:Za,hour:"00",minutes:Ja,minute:"00"}},computed:{days:function(){var t=[];if(this.isLunar)for(var e=1;e<=30;e++)t.push(e<10?"0".concat(e):"".concat(e));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var n=1;n<=31;n++)t.push(n<10?"0".concat(n):"".concat(n));else if(["04","06","09","11"].includes(this.month))for(var r=1;r<=30;r++)t.push(r<10?"0".concat(r):"".concat(r));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)t.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)t.push(i<10?"0".concat(i):"".concat(i));return t},value:function(){var t=this.years.indexOf(this.year),e=this.months.indexOf(this.month),n=this.days.indexOf(this.day),r=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:n,hourIndex:r,minuteIndex:o}}},created:function(){},methods:{change:function(t,e){"year"===t?this.year=this.years[e]:"month"===t?this.month=this.months[e]:"day"===t?this.day=this.days[e]:"hour"===t?this.hour=this.hours[e]:"minute"===t&&(this.minute=this.minutes[e]);var n="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",n)}}},rs=ns,os=(n("427d"),De(rs,Ya,Ha,!1,null,null,null)),is=os.exports,as=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:t.handleNameChange},model:{value:t.nickName,callback:function(e){t.nickName=e},expression:"nickName"}}),n("a-table",{attrs:{columns:t.columns,loading:t.loading,"data-source":t.userCase(),rowSelection:t.rowSelection,pagination:{current:t.getPagination?parseInt(t.getPagination.current):1,total:t.getPagination?parseFloat(t.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:t.handleChange},scopedSlots:t._u([{key:"gender",fn:function(e){return n("span",{},[t._v(" "+t._s("female"===e?"女":"男")+" ")])}}])})],1)},ss=[],ls=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],us={mixins:[_a],data:function(){return{columns:ls,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(t){this.$emit("select",t)},handleChange:function(t){this.currentPage=t.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(t){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},cs=us,fs=De(cs,as,ss,!1,null,null,null),ps=fs.exports;function hs(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ds(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){hs(i,r,o,a,s,"next",t)}function s(t){hs(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ms=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],vs={mixins:[_a,Da],props:["algorithmList"],components:{CodeEditor:za,DateTimePicker:is,ProfileSelect:ps},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:ms,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(t){var e=this;return ds(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var n=ds(f.a.mark((function n(r){var o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=n.sent,!o||!o.data||"0"!==t){n.next=7;break}return e.codeValue=[JSON.parse(o.data)],n.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),n.next=11;break;case 10:return n.abrupt("return",!1);case 11:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},handleDistrictChange:function(t,e){e&&e.length?(this.profile.province=e[0].label,this.profile.city=e[1].label,this.profile.district=e[2].label,this.profile.time_zone=e[e.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(t){this.profile.birthday=t,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(t){return new Date(t).getTime()},bindHasLunar:function(t){var e=t?t.substring(4,0):"",n=t?t.substring(5,7):"",r=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(n===r&&"00"!==r?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(t){if(""!==t){var e=t.replace(/-/g,"/"),n=this.timeStamp(e),r=[];r=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],r.length&&(n>=r[0].start&&n<=r[0].end||n>=r[1].start&&n<=r[1].end||n>=r[2].start&&n<=r[2].end||n>=r[3].start&&n<=r[3].end||n>=r[4].start&&n<=r[4].end||n>=r[5].start&&n<=r[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(t){var e=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&e[t-1900]},handleProfileSelect:function(t){this.systemProfile={},this.systemProfile=t},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(t,e,n){var r=this.$store.state["m-algorithm"].district,o=r.find((function(e){return e.district_name===t}))?r.find((function(e){return e.district_name===t})).district_id:"",i=r.find((function(t){return t.district_name===e}))?r.find((function(t){return t.district_name===e})).district_id:"",a=r.find((function(t){return t.district_name===n}))?r.find((function(t){return t.district_name===n})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},ys=vs,gs=De(ys,qa,Ia,!1,null,null,null),bs=gs.exports;function ws(t){return ks(t)||Os(t)||xs(t)||_s()}function _s(){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 xs(t,e){if(t){if("string"===typeof t)return Es(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Es(t,e):void 0}}function Os(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ks(t){if(Array.isArray(t))return Es(t)}function Es(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function js(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?js(Object(n),!0).forEach((function(e){Ps(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ps(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var As={mixins:[_a],components:{CheckboxGroup:Ma,AlgorithmForm:bs},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var t=this,e=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,n=e&&e.filter((function(e){return""!==t.search.nameKeyword||""!==t.search.codeKeyword?e.classify===t.type&&-1!==e.name.indexOf(t.search.nameKeyword)&&-1!==e.code.indexOf(t.search.codeKeyword):e.classify===t.type})).map((function(e){var n=Ss(Ss({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===n.read_id&&(t.$set(n,"values",e.values),t.$set(n,"checked",e.checked))})),n})),r=ws(new Set(n&&n.map((function(t){return t.classify})))),o=r&&r.map((function(t){var e=n.filter((function(e){return e.classify===t})),r=ws(new Set(e.map((function(t){return t.type})))),o=r.map((function(t){return{name:t,children:e.filter((function(e){return e.type===t}))}}));return{name:t,children:o}}));return o||[]},algorithmCount:function(){var t=this.defaultCheckedList,e=t.filter((function(t){return"核心解读"===t.classify})).length||0,n=t.filter((function(t){return"描述解读"===t.classify})).length||0,r=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:n,paipanDataCount:r,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],n=[];return t.forEach((function(r){var o=r.code;n=r.values.length>1?r.values.map((function(t,e){var n=e+1,r=1===n?o:n<10?"".concat(o,"_0").concat(n):"".concat(o,"_").concat(n);return[r,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(ws(e),ws(n))})),Object.fromEntries(e)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(t,e,n,r){var o=this;t.forEach((function(t){var e=o.defaultCheckedList.findIndex((function(e){return e.read_id===t.read_id}));-1===e?o.defaultCheckedList=[].concat(ws(o.defaultCheckedList),[t]):o.defaultCheckedList[e]=t}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(t){var e=t.map((function(t){return t.read_id})),n=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return n.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},Ns=As,Cs=(n("69be"),De(Ns,la,ua,!1,null,null,null)),Ts=Cs.exports,Ls=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(e){var r=e.props,o=r.direction,i=r.selectedKeys,a=e.on.itemSelect;return["left"===o?n("a-spin",{attrs:{spinning:t.leftLoding}},[n("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:i.concat(t.checkedKeys),treeData:t.filterTreeNodes},on:{check:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)},select:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)}}})],1):t._e()]}}])})],1)},Ms=[];function qs(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Is(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){qs(i,r,o,a,s,"next",t)}function s(t){qs(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ds(Object(n),!0).forEach((function(e){$s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bs={mixins:[ln],data:function(){var t=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(e){return e[t.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,n=this.keyName,r=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[n],children:a,disabled:r.includes(i[n])||o&&!Ht(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=Rs(Rs({},this.actionModel),{},$s({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(t){this.checkedKeys=t,this.actionModel=Rs(Rs({},this.actionModel),{},$s({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,n,r){var o=e.node.eventKey;r(o,!this.isChecked(n,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){var t=this;return Is(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()},handleSearch:function(t,e){var n=this,r=null;"left"===t&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=e,n.leftLoding=!1}),1e3))}}},Vs=Bs,Fs=(n("ce11"),De(Vs,Ls,Ms,!1,null,"86cc329c",null)),Us=Fs.exports,Ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-tree",{attrs:{checkable:"",autoExpandParent:t.autoExpandParent,defaultCheckedKeys:t.checkedKeys,treeData:t.treeNodes,checkStrictly:""},on:{check:t.handleCheck}})},zs=[];function Ys(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Hs(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Ys(i,r,o,a,s,"next",t)}function s(t){Ys(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ws(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gs(Object(n),!0).forEach((function(e){Zs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Js={mixins:[ln],data:function(){var t=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(e){return e[t.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,n=this.keyName,r=function t(r){return r.map((function(r){var o;return r._childList&&(o=t(r._childList)),{title:r[e],key:r[n],children:o}}))};return r(t)}},created:function(){this.checkedKeys&&(this.actionModel=Ws(Ws({},this.actionModel),{},Zs({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t){this.actionModel=Ws(Ws({},this.actionModel),{},Zs({},this.valuesName,t.checked))},handleSubmit:function(){var t=this;return Hs(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},Xs=Js,Qs=De(Xs,Ks,zs,!1,null,null,null),tl=Qs.exports,el=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:t.actionModel,rules:t.rules}},[n("a-tabs",{attrs:{"tab-position":"top"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.actionModel.confirm?n("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t.actionModel.flow_action_name?n("a-card",{attrs:{size:"small"}},[n("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[n("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:t.actionModel.flow_action_name,callback:function(e){t.$set(t.actionModel,"flow_action_name",e)},expression:"actionModel.flow_action_name"}},[n("a-radio-button",{attrs:{value:"submit"}},[t._v("审批通过")]),t.allowBack?n("a-radio-button",{attrs:{value:"back"}},[t._v("审批退回")]):t._e()],1)],1),t._l(t.attrs,(function(e){return n("Item",{key:e.name,attrs:{formModel:t.actionModel,prop:e.name,schema:e,required:e.required,params:{}},on:{change:function(n){return t.handleItemChange(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[attr.name]"}})})),n("a-form-model-item",{attrs:{label:"审批意见",prop:"deal_note",size:"small"}},[n("a-textarea",{attrs:{placeholder:"请输入审批或退回意见","auto-size":{minRows:4,maxRows:6}},model:{value:t.actionModel.deal_note,callback:function(e){t.$set(t.actionModel,"deal_note",e)},expression:"actionModel.deal_note"}})],1),"back"===t.actionModel.flow_action_name&&t.backs&&t.backs.length?n("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[n("a-select",t._l(t.backs,(function(e){return n("a-select-option",{key:e.step_id,attrs:{value:e.step_id},model:{value:t.actionModel.back_step,callback:function(e){t.$set(t.actionModel,"back_step",e)},expression:"actionModel.back_step"}},[t._v(" "+t._s(e.step_name)+" ")])})),1)],1):t._e(),t.allowOver?n("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[n("a-switch",{model:{value:t.actionModel.is_over,callback:function(e){t.$set(t.actionModel,"is_over",e)},expression:"actionModel.is_over"}})],1):t._e()],2):t._e(),t.actionModel.flow_action_name?t._e():n("a-card",t._l(t.attrs,(function(e){return n("Item",{key:e.name,attrs:{formModel:t.actionModel,prop:e.name,schema:e,params:{}},on:{change:function(n){return t.handleItemChange(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[attr.name]"}})})),1),t.todos.length&&"back"!==t.actionModel.flow_action_name&&t.todos[0].todo_actors.length?t._l(t.todos,(function(e,r){return n("a-card",{key:e.todo_id,staticStyle:{"margin-top":"15px"},attrs:{size:"small",title:"后续步骤"}},[n("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-large"},[n("div",{staticClass:"ant-table-content"},[n("div",{staticClass:"ant-table-body"},[n("table",[n("thead",{staticClass:"ant-table-thead"},[n("tr",[n("th",{key:"no"},[n("span",[t._v("序号")])]),n("th",{key:"template_name"},[n("span",[t._v("下一步步骤名称")])]),n("th",{key:"template_desc"},[n("span",[t._v("下一步审批者")])])])]),n("tbody",{staticClass:"ant-table-tbody"},[n("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[n("td",[t._v(t._s(r+1))]),n("td",[n("span",[t._v(t._s(e.current_step.step_name))])]),n("td",[n("a-table",{attrs:{dataSource:e.todo_actors.map((function(t){return t.operator})),rowKey:"actor_id",rowSelection:t.rowSelection,pagination:!1}},[n("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),n("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):t._e()],2):t._e(),n("a-tab-pane",{key:t.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[n("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[n("a-list",{attrs:{itemLayout:"horizontal",dataSource:t.logs},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("a-list-item",{},[n("a-list-item-meta",[n("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(e.step_name)+" - "+t._s(e.operator.actor_name)+" - "+t._s(e.operator.actor_org_name)+" ")]),n("a-avatar",{attrs:{slot:"avatar",src:t.$store.state.app.icon},slot:"avatar"}),n("div",{attrs:{slot:"description"},slot:"description"},[n("div",[t._v(" "+t._s(e.deal_desc)+" ")]),e.deal_note?n("div",[t._v(" 审批意见:"+t._s(e.deal_note)+" ")]):t._e(),n("div",[n("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(e.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),n("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[n("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[n("a-timeline",t._l(t.steps,(function(e,r){return n("a-timeline-item",{key:e.step_id,attrs:{color:t.stepIndex>r?"blue":t.stepIndex===r?"green":"#999"}},[n("span",[t._v(t._s(r+1))]),t._v(". "+t._s(e.step_name)+" "),t.stepIndex>r?n("span",[t._v(" ("+t._s(t.logs[r+t.dealIndex+1]?t.logs[r+t.dealIndex+1].operator.actor_name:"")+") ")]):t._e(),t.stepIndex===r?n("span",[t._v(" "+t._s(t.operatorName)+" ")]):t._e()])})),1)],1)],1),n("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[n("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[n("div",{ref:"graph"})])],1)],1)],1)},nl=[],rl=n("336c"),ol=n.n(rl);function il(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function al(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){il(i,r,o,a,s,"next",t)}function s(t){il(i,r,o,a,s,"throw",t)}a(void 0)}))}}function sl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sl(Object(n),!0).forEach((function(e){ul(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ul(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}ol.a.track(!1);var cl=n("019f"),fl={mixins:[ln],components:{Item:Dr},data:function(){return{actionModel:ll(ll({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1"}},created:function(){var t=this;this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(t){return t.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(e){if(e.next_default_actor&&e.todo_actors){var n=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=n.filter((function(t){return e.next_default_actor===t})),t.actionModel.todo_actors=t.rowSelection.selectedRowKeys}}))},mounted:function(){var t=this;setTimeout((function(){t.renderGraph()}),50)},methods:{handleSelectionChange:function(t){this.rowSelection.selectedRowKeys=t,this.actionModel.todo_actors=t},handleCommit:function(){var t=this;return al(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.todos[0].todo_actors.length||t.actionModel.todo_actors.length||"back"===t.actionModel.flow_action_name){e.next=3;break}return t.$message.error("请选择下一步审批者"),e.abrupt("return");case 3:t.$emit("commit",t.actionModel);case 4:case"end":return e.stop()}}),e)})))()},handleItemChange:function(t,e){var n=this;return al(f.a.mark((function r(){var o,i,a;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.name,!(t instanceof FileList)){r.next=14;break}if(!t[0]){r.next=11;break}return i=new FormData,i.append(o,t[0]),r.next=7,n.$api.post("/upload",i);case 7:a=r.sent,t=a.data.data[o],r.next=12;break;case 11:t=null;case 12:r.next=15;break;case 14:t instanceof Date&&(t=n.moment(t).format("YYYY-MM-DD"));case 15:n.$set(n.actionModel.data,o,t);case 16:case"end":return r.stop()}}),r)})))()},renderGraph:function(){var t=this;ol.a.registerNode("rect",{getPath:function(t){var e=150,n=40;return ol.a.Util.getRectPath(-e/2,-n/2,e,n,10)}});var e={nodes:this.steps.map((function(t,e){return{id:t.step_id,name:t.step_name,stepIndex:e}})),edges:this.steps.slice(1).map((function(e){var n=t.steps.find((function(t){return t.step_id===e.before_step_id}))||t.steps.find((function(t){return t.after_step_id===e.step_id}));return{source:n&&n.step_id,target:e.step_id}}))},n=new ol.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new cl({ranksep:30})],defaultIntersectBox:"rect"});n.node({shape:"rect",label:function(t){return t.name},style:function(e){return{stroke:t.stepIndex>e.stepIndex?"#0285cd":t.stepIndex===e.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),n.edge({style:{endArrow:!0}}),n.read(e)}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var t=this,e=this.steps.findIndex((function(e){return t.lastStepID===e.step_id}));return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?e:e-1},dealIndex:function(){var t=this.logs.map((function(t){return t.deal_status})),e=t.lastIndexOf("withdraw"),n=t.lastIndexOf("back");return e>n?e:n},steps:function(){return this.caseSteps.filter((function(t){return Number(t.valid)}))},attrs:function(){var t=this,e=this.formItems.map((function(t){return t.attr_name}));return this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var n=t.formItems.find((function(t){return t.attr_name===e.name}));return ll(ll({},e),n)}))},operatorName:function(){var t=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?t=this.todos[0].todo_actors.filter((function(t){return"close"!==t.status})).map((function(t){return t.operator_name})):this.logs&&0===this.logs.length&&(t=[this.$store.state.user.name]):t=[this.$store.state.user.name],t.length>0?"(".concat(t.join("、"),")"):""}}},pl=fl,hl=(n("632f"),De(pl,el,nl,!1,null,null,null)),dl=hl.exports,ml={NormalForm:Ki,UploadForm:Xi,PickerViewForm:sa,AlgorithmForm:Ts,PickerTransferForm:Us,PickerTreeForm:tl,WorkflowReport:dl};function vl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vl(Object(n),!0).forEach((function(e){gl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bl={mixins:[Nt,Ct,Ri],components:yl({},ml)},wl=bl,_l=De(wl,qi,Ii,!1,null,null,null),xl=_l.exports,Ol={ModelList:xo,ModelProfile:Mi,ModelForm:xl},kl={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:St(Ol["Model".concat(this.modelViewType)])(this.namespace)}}}},El=kl,jl=De(El,ct,ft,!1,null,null,null),Sl=jl.exports,Pl={components:{ViewBox:Sl},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},Al=Pl,Nl=De(Al,lt,ut,!1,null,null,null),Cl=Nl.exports,Tl={mixins:[st],components:{Views:Cl}},Ll=Tl,Ml=De(Ll,Q,tt,!1,null,null,null),ql=Ml.exports,Il=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout-page-"+t.layout,{tag:"component"},[n("Frame",{attrs:{url:""+t.url}})],1)},Dl=[],Rl={mixins:[st],components:{Frame:zo},props:{url:String},data:function(){return{loading:!0}}},$l=Rl,Bl=De($l,Il,Dl,!1,null,null,null),Vl=Bl.exports,Fl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("keep-alive",[n("router-view")],1)},Ul=[],Kl={},zl=De(Kl,Fl,Ul,!1,null,null,null),Yl=zl.exports;function Hl(t){return Jl(t)||Zl(t)||Wl(t)||Gl()}function Gl(){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 Wl(t,e){if(t){if("string"===typeof t)return Xl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(t,e):void 0}}function Zl(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Jl(t){if(Array.isArray(t))return Xl(t)}function Xl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ql(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ql(Object(n),!0).forEach((function(e){eu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nu(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ru(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){nu(i,r,o,a,s,"next",t)}function s(t){nu(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ou=X(ql),iu=["catalog-tab","catalog"],au={data:function(){return{messageTimer:0}},created:function(){var t=this;return ru(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:tu(tu({},Object(p["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(Hl(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.$theme.layouts.router.Tabs;return t.filter((function(t){return"link"!==t.type})).map((function(t){var o,i="".concat(n,"/").concat(t.key),a=t.key,s={},l=null;switch(t.type){case"catalog-tab":o=r,s.resources=t.childs,s.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],s.pageKey=t.url;break;case"iframe":o=Vl,s.pageKey=t.url,s.url=t.url;break;case"view":o=Yl,s.pageKey=t.url;break;default:o=Yl;break}return"view"===t.type&&"standard"===t.viewType&&(l=[{path:"",component:{extends:ou(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:ou(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!l&&t.childs&&(l=e.resToRoute(t.childs,t,"".concat(n,"/").concat(a))),{name:l?null:t.url,path:a,redirect:iu.includes(t.type)&&t.childs&&t.childs.length?"".concat(n,"/").concat(a,"/").concat(t.childs[0].key):null,children:l,component:o,props:s,meta:{name:"list"===t.type?null:t.name}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return ru(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},su=au,lu=De(su,l,u,!1,null,null,null),uu=lu.exports,cu={components:{Router:uu},created:function(){}},fu=cu,pu=De(fu,a,s,!1,null,null,null),hu=pu.exports;n("e39e");function du(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function mu(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){du(i,r,o,a,s,"next",t)}function s(t){du(i,r,o,a,s,"throw",t)}a(void 0)}))}}function vu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vu(Object(n),!0).forEach((function(e){gu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bu=window.Rainbow,wu=bu.app,_u=wu.csrfToken,xu=wu.baseURL,Ou=!1,ku={};function Eu(t){O.setDefaults({baseURL:xu!==["/","{app.appKey}"].join("$")?xu:t,headers:ku}),S.a.use(O),S.a.use(h.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:yu({},bu.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:O.instance.defaults.baseURL}};return new h.a.Store({state:e(),strict:Ou,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=yu(yu({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var n=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==n&&t.messages.splice(n,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e.key}));-1!==n?t.historys[n]=e:t.historys.push(e)},removeHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e}));return-1!==n&&t.historys.splice(n,1),n}},actions:{loadResources:function(t){return mu(f.a.mark((function e(){var n,r,o,i,a,s,l;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setLoading",!0),e.prev=2,e.next=5,O.get("/api");case 5:o=e.sent,i=o.data,a=i.resources,s=i.user,l=i.app,n("setResources",a),n("setApp",l),n("setUser",s),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return mu(f.a.mark((function e(){var n,r,o;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,e.prev=1,e.next=4,O.get("/api/sys-msg?status=unread");case 4:r=e.sent,o=r.data.collection,n("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return mu(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,O.post("/api/sys-msg/read",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},emptyMessages:function(t,e){return mu(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,O.post("/api/sys-msg/reads",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},signin:function(t){var e=arguments;return mu(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},r("setCommitting",!0),n.prev=3,n.next=6,O.post("/api/signin",i.data,{});case 6:return a=n.sent,s=a.data,l=s.data,u=s.content,c=a.status,r("clear"),r("setStatus",{status:c,message:u}),n.abrupt("return",l);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return mu(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},r("setCommitting",!0),n.prev=3,n.next=6,O.post("/api/sms",i.data,{});case 6:return a=n.sent,s=a.data,l=s.data,u=s.content,c=a.status,r("clear"),r("setStatus",{status:c,message:u}),n.abrupt("return",l);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},signout:function(t,e){return mu(f.a.mark((function e(){var n,r,o,i,a,s,l;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setCommitting",!0),e.prev=2,e.next=5,O.post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,s=i.content,l=o.status,n("clear"),n("setStatus",{status:l,message:s}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return mu(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},r("setCommitting",!0),n.prev=3,n.next=6,O.post("/api/change-password",i.data,{});case 6:return a=n.sent,s=a.data,l=s.data,u=s.content,c=a.status,r("clear"),r("setStatus",{status:c,message:u}),n.abrupt("return",l);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},handleError:function(t,e){var n=t.commit;if(!e.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=e.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";return n("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}_u&&"${app.csrfToken}"!==_u&&(ku["x-csrf-token"]=_u);var ju=n("6389"),Su=n.n(ju);S.a.use(Su.a);var Pu=new Su.a,Au=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},Nu=[],Cu={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},Tu=Cu,Lu=De(Tu,Au,Nu,!1,null,null,null),Mu=Lu.exports,qu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},Iu=[];function Du(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ru(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Du(Object(n),!0).forEach((function(e){Vu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $u(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Bu(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){$u(i,r,o,a,s,"next",t)}function s(t){$u(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Vu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fu(t,e){return Hu(t)||Yu(t,e)||Ku(t,e)||Uu()}function Uu(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ku(t,e){if(t){if("string"===typeof t)return zu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(t,e):void 0}}function zu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yu(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),e&&i.length===e)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function Hu(t){if(Array.isArray(t))return t}var Gu={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,n=e?t.filter((function(t){return Object.keys(e).every((function(n){var r=e[n];return r&&!Array.isArray(r)&&(r=[r]),null===r||r.includes(t[n])}))})):t;return this.transform?n.map(this.transform):n},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),n=Fu(e,2),r=n[0],o=n[1];return o?Vu({},r,o):r}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Bu(f.a.mark((function e(){var n,r,o,i,a,s,l,u,c,p,h,d,m,v,y;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,s=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,l=s?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(l,"/").concat(n,"?").concat(E.a.stringify(Ru(Ru({},r),{},{_size:i,$limit:a}))));case 10:u=e.sent,c=u.data,p=c.collection,h=c.count,d=c.model,m=c.data,v=u.status,t.collection=p||m,t.model=d,t.count=h,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(y=e.t0.response.status,t.status=y):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Bu(f.a.mark((function e(){var n,r,o,i;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(n));case 4:r=e.sent,o=r.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Bu(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},Wu=Gu,Zu=De(Wu,qu,Iu,!1,null,null,null),Ju=Zu.exports;n("517c")},2364:function(e,n){e.exports=t},2964:function(t,e,n){},"2a55":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=p,e.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function p(t){var e,n,r=u(t),a=r[0],s=r[1],l=new i(f(t,a,s)),c=0,p=s>0?a-4:a;for(n=0;n<p;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(h(r));return o.join("")}function m(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,l=n-o;s<l;s+=a)i.push(d(t,s,s+a>l?l:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"336c":function(t,n){t.exports=e},"36d8":function(t,e,n){t.exports=n("c1c3")},"37eb":function(t,e,n){!function(e,r){t.exports=r(n("788a"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n.n(r),i=n(6),a=n(5),s=a(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=n(0),i=r(o),a=n(1),s=r(a),l=window.Quill||i.default,u=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},c={Quill:l,quillEditor:s.default,install:u};e.default=c,e.Quill=l,e.quillEditor=s.default,e.install=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(3),s=r(a),l=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new l(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,n,r){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,r,o,i){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o),i?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=u):r&&(u=r),u){var f=c.functional,p=f?c.render:c.beforeCreate;f?(c._injectStyles=u,c.render=function(t,e){return u.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,u):[u]}return{esModule:a,exports:s,options:c}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},o=[],i={render:r,staticRenderFns:o};e.a=i}])}))},"427d":function(t,e,n){"use strict";n("8915")},"517c":function(t,e,n){},"521b":function(t,e,n){},"55ab":function(t,e,n){},"56bc":function(t,e,n){"use strict";n("2964")},5880:function(t,e){t.exports=n},"5aeb":function(t,e){t.exports=r},"5b37":function(t,e,n){"use strict";n("d224")},"632f":function(t,e,n){"use strict";n("cbe4")},6389:function(t,e){t.exports=o},"690b":function(t,e,n){},"69be":function(t,e,n){"use strict";n("aada")},"6ea4":function(t,e,n){"use strict";n("ab21")},"788a":function(t,e,n){(function(e){
3
+ e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,p=n?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+t[e+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=p,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+f>=1?p/l:p*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*l-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[n+h]=255&a,h+=d,a/=256,u-=8);t[n+h-d]|=128*m}},"1aba":function(t,e,n){"use strict";if(n.r(e),n.d(e,"App",(function(){return hu})),n.d(e,"createStore",(function(){return Eu})),n.d(e,"create",(function(){return St})),n.d(e,"template",(function(){return Wt})),n.d(e,"WebRouters",(function(){return Pu})),n.d(e,"WebViews",(function(){return kl})),n.d(e,"Descriptions",(function(){return $o})),n.d(e,"Frame",(function(){return zo})),n.d(e,"Clipboard",(function(){return Mu})),n.d(e,"Collection",(function(){return Ju})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("dc36");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.$store.state.loading}},[n("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},s=[],l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-view")},u=[],c=n("36d8"),f=n.n(c),p=n("5880"),h=n.n(p),d=n("cebe"),m=n.n(d);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){b(i,r,o,a,s,"next",t)}function s(t){b(i,r,o,a,s,"throw",t)}a(void 0)}))}}var _=m.a.create({timeout:6e5,withCredentials:!0}),x={axios:m.a,instance:_,install:function(t){t.prototype.$api=x},setDefaults:function(t){Object.keys(t).forEach((function(e){_.defaults[e]=t[e]}))},request:function(t,e,n,r){return w(f.a.mark((function o(){var i;return f.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,_.request(y(y({},r),{},{method:t,url:e,data:n}));case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},get:function(t){var e=arguments;return w(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,o=e.length>2&&void 0!==e[2]?e[2]:null,n.next=4,x.request("get",t,o,r);case 4:return i=n.sent,n.abrupt("return",i);case 6:case"end":return n.stop()}}),n)})))()},post:function(t,e){var n=arguments;return w(f.a.mark((function r(){var o,i;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=n.length>2&&void 0!==n[2]?n[2]:null,r.next=3,x.request("post",t,e,o);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()},put:function(t,e){var n=arguments;return w(f.a.mark((function r(){var o,i;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=n.length>2&&void 0!==n[2]?n[2]:null,r.next=3,x.request("put",t,e,o);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()},delete:function(t,e){var n=arguments;return w(f.a.mark((function r(){var o,i;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=n.length>2&&void 0!==n[2]?n[2]:null,r.next=3,x.request("delete",t,e,o);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()}},k=x,O=n("796d"),E=n.n(O),j=n("8bbf"),S=n.n(j);function P(t){return P="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function L(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){T(i,r,o,a,s,"next",t)}function s(t){T(i,r,o,a,s,"throw",t)}a(void 0)}))}}function M(t,e){return $(t)||R(t,e)||I(t,e)||q()}function q(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(t,e){if(t){if("string"===typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),e&&i.length===e)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function $(t){if(Array.isArray(t))return t}var B=function t(e,n,r){for(var o=0;o<e.length;o++){if(e[o][r]===n)return[e,o];if(e[o]._childList){var i=t(e[o]._childList,n,r);if(i)return i}}return null};function V(t,e,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=e.slice(2),a={namespaced:!0,state:function(){return{namespace:i,data:{rows:[],count:0,size:10},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(t,e){t.schema=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setData:function(t,e){var n=e.rows,r=e.count,o=e.size;t.data.rows=n,t.data.count=r,t.data.size=o},appendData:function(t,e){var n=e.rows||[];t.data.rows=t.data.rows.concat(n)},saveData:function(t,e){var n=e.rows,r=e.idName,o=e.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(e){var n=B(t.data.rows,e[r],r);if(n){n[0][n[1]]._childList&&(e._childList=n[0][n[1]]._childList);var i=n,a=M(i,2),s=a[0],l=a[1];o&&e[o]!==s[l][o]?(s.splice(l,1),n=null):S.a.set(s,l,e)}if(!n&&e[r]&&o&&e[o]){var u=B(t.data.rows,e[o],r);if(u){var c=u[0][u[1]];c._childList?c._childList.unshift(e):S.a.set(c,"_childList",[e])}else t.data.rows.unshift(e)}else!n&&e[r]&&t.data.rows.unshift(e)}))},removeData:function(t,e){var n=e.rows,r=e.idName;e.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(e){var n=B(t.data.rows,e[r],r);if(n){var o=M(n,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(t,e){var n=e.rows,r=e.key;t.wordbooks[r]?t.wordbooks[r]=n:S.a.set(t.wordbooks,r,n)},replaceNamespace:function(t,e){t.namespace=e.reduce((function(t,e){return t.replace(":id",e)}),i)},createSubViewStore:function(e,r){function o(e,r){e.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(e){var i="".concat(r,"/:id/").concat(e.name);t.hasModule(i)||(V(t,i,n,e.name,!1,e.subView),e.subView&&o(e.subView,i))}))}o(r,"v-".concat(i))}},actions:{loadSchema:function(t,e){return L(f.a.mark((function e(){var n,r,o,a,s,l,u,c;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,t.state.namespace,n("setLoading",!0),e.prev=2,e.next=5,k.get("/schemas/".concat(i.replace(/\/:id/g,"")));case 5:r=e.sent,o=r.data,a=r.status,n("createSubViewStore",o),n("setSchema",o),n("setStatus",{status:a}),e.next=20;break;case 13:if(e.prev=13,e.t0=e["catch"](2),e.t0.response){e.next=17;break}return e.abrupt("return",n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 17:s=e.t0.response,l=s.status,u=s.data,c=u&&u.content||"系统错误请与管理员联系。",n("setStatus",{status:l,message:c});case 20:return e.prev=20,n("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,13,20,23]])})))()},loadData:function(t){var e=arguments;return L(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g,b,w,_,x,O,j,S,P,A,N,C;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},l=s.url,u=void 0===l?a:l,c=s.method,p=void 0===c?"get":c,h=s.data,d=void 0===h?null:h,m=s.key,v=s.query,y=s.options,g=s.mute,b=void 0!==g&&g,!b&&r("setLoading",!0),n.prev=4,n.next=7,k[p]("/api/".concat(u).concat(m?"/".concat(m):"","?").concat(E.a.stringify(v)),d,y);case 7:return w=n.sent,_=w.data,x=_.collection,O=_.model,j=_.count,S=_.pagination,P=w.status,A=i.idName,N=i.parentIdName,C=i.nodeName,O?r("saveData",{rows:O,idName:A,parentIdName:N,nodeName:C}):r("setData",{rows:x||[],count:j,size:S&&S.size}),r("setStatus",{status:P,message:""}),n.abrupt("return",x||O);case 20:return n.prev=20,n.t0=n["catch"](4),n.abrupt("return",o("handleError",n.t0,b));case 23:return n.prev=23,!b&&r("setLoading",!1),n.finish(23);case 26:case"end":return n.stop()}}),n,null,[[4,20,23,26]])})))()},loadWordBook:function(t){var e=arguments;return L(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=t.state.namespace,a=e.length>1&&void 0!==e[1]?e[1]:{},s=a.url,l=void 0===s?i:s,u=a.method,c=void 0===u?"get":u,p=a.data,h=void 0===p?null:p,d=a.key,m=a.query,v=a.options,n.prev=3,n.next=6,k[c.toLowerCase()]("/api/".concat(l).concat(d?"/".concat(d):"","?").concat(E.a.stringify(m)),h,v);case 6:return y=n.sent,g=y.data,g.collection&&d&&r("setWordBook",{rows:g.collection,key:d}),n.abrupt("return",g);case 12:return n.prev=12,n.t0=n["catch"](3),n.abrupt("return",o("handleError",n.t0));case 15:case"end":return n.stop()}}),n,null,[[3,12]])})))()},saveData:function(t){var e=arguments;return L(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g,b,w,_,x,O,j,S,P,A,N,C,T,L;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,s=e.length>1&&void 0!==e[1]?e[1]:{},l=s.url,u=void 0===l?a:l,c=s.type,p=void 0===c?"save":c,h=s.method,d=void 0===h?"post":h,m=s.data,v=void 0===m?null:m,y=s.key,g=s.query,b=s.options,w=s.mute,_=void 0!==w&&w,r("setCommitting",!0),n.prev=4,n.next=7,k[d.toLowerCase()]("/api/".concat(u).concat(y?"/".concat(y):"","?").concat(E.a.stringify(g)),v,b);case 7:return x=n.sent,O=x.data,j=O.data,S=O.content,P=x.status,A=x.statusText,N=i.idName,C=i.parentIdName,T=i.nodeName,j&&(L="remove"===p?"removeData":"saveData",r(L,{rows:j.data||j,idName:N,parentIdName:C,nodeName:T})),r("setStatus",{status:P,message:_?"":S||A}),n.abrupt("return",j);case 19:return n.prev=19,n.t0=n["catch"](4),n.abrupt("return",o("handleError",n.t0));case 22:return n.prev=22,r("setCommitting",!1),n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[4,19,22,25]])})))()},executeData:function(t,e){return L(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.dispatch,o=e.method,i=void 0===o?"post":o,n.next=4,r("saveData",N({type:"execute",method:i},e));case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},removeData:function(t,e){return L(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.dispatch,o=e.method,i=void 0===o?"delete":o,n.next=4,r("saveData",N({type:"remove",method:i},e));case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},handleError:function(t,e,n){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:!n&&"网络请求错误,请检查您的网络连接。"});var o=e.response,i=o.status,a=o.data,s=n?null:a&&a.content||"系统错误请与管理员联系。";return r("setStatus",{status:i,message:s}),e},resetStatus:function(t){var e=t.commit;e("setStatus",{status:0,message:""})}},getters:{schema:function(t,e,i){return o||(i[n].views.find((function(t){return t.key===r}))||t.schema)},model:function(t,e){return e.schema?e.schema.model:null},idName:function(t,e){return e.model?e.model.idName:null},parentIdName:function(t,e){return e.model?e.model.parentIdName:null},nodeName:function(t,e){return e.model?e.model.nodeName:null},titleName:function(t,e){var n=e.model.attrs.find((function(t){return"title"===t.display}));return n?n.name:null},titleSchema:function(t,e){var n=e.model.attrs.find((function(t){return"title"===t.display}));return n||null},config:function(t,e){return function(t){var n;return e.schema&&e.schema.configs&&(n=e.schema.configs.find((function(e){return e.key===t}))),n?n.value:null}},wordbook:function(t){return function(e){return t.wordbooks[e]||[]}},find:function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=t.data;if(!n)return r;"object"!==P(n)&&(n=C({},e.idName,n));var o=Object.keys(n);return r.filter((function(t){return o.every((function(e){return t[e]===n[e]}))}))}},findOne:function(t,e,n){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=r||e.idName||"id",i=B(t.data.rows,n,o);return i?i[0][i[1]]:null}},findAll:function(t){var e=t.data.rows;return e},apiURL:function(t,e,n){var r=t.namespace,o=n.baseURL;return"".concat(o,"/api/").concat(r)},apiBaseURL:function(t,e,n){var r=n.baseURL;return r}}};t.registerModule(e,a)}function F(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){F(i,r,o,a,s,"next",t)}function s(t){F(i,r,o,a,s,"throw",t)}a(void 0)}))}}var K=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={namespaced:!0,state:function(){return{namespace:e.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:n}},mutations:{setSchema:function(t,e){t.schema=e},setViews:function(t,e){t.views=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},createViewStore:function(r,o){function i(r,o){r.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(r){var a="".concat(o,"/:id/").concat(r.name);t.hasModule(a)||(V(t,a,e,r.name,n,r.subView),r.subView&&i(r.subView,a))}))}o.map((function(r){var o="v-".concat(e.slice(2)).concat(n?"":"-".concat(r.key));t.hasModule(o)||(V(t,o,e,r.key,n),i(r,o))}))},setViewData:function(t,e){}},actions:{loadSchema:function(t,e){return U(f.a.mark((function e(){var r,o,i,a,s,l,u,c,p,h;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,o=t.state.namespace,r("setLoading",!0),e.prev=2,e.next=5,k.get("/schemas/".concat(o));case 5:i=e.sent,a=i.data,s=i.status,l=i.statusText,r("createViewStore",n?[a]:a.views),r("setViews",n?[a]:a.views),delete a.views,r("setSchema",a),r("setStatus",{status:s,message:a.message||l}),e.next=23;break;case 16:if(e.prev=16,e.t0=e["catch"](2),e.t0.response){e.next=20;break}return e.abrupt("return",r("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 20:u=e.t0.response,c=u.status,p=u.data,h=p&&p.content||"系统错误请与管理员联系。",r("setStatus",{status:c,message:h});case 23:return e.prev=23,r("setLoading",!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[2,16,23,26]])})))()}},getters:{schema:function(t){return t.schema},views:function(t){return t.views},config:function(t){return function(e){return t.configs.find((function(t){return t.key===e}))}}}};t.registerModule(e,r)};function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G=["loading","schema","status","message","single"],W=["loadSchema"],Z=["views"],J=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(p["createNamespacedHelpers"])(t),r=n.mapState,o=n.mapActions,i=n.mapGetters;return{data:function(){return{storeNamespace:t}},computed:Y(Y({},r(G)),i(Z)),methods:Y({},o(W)),beforeCreate:function(){this.$store.hasModule(t)||K(this.$store,t,e)},created:function(){!this.schema&&this.loadSchema()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},X=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[J("p-".concat(e),n)]}}},Q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.loading,delay:50}},[n("layout-page-"+t.layout,{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(e){return{key:e,fn:function(){return[n("views",{key:"slot-"+e,attrs:{views:t.slotViews(e),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},tt=[];function et(t){return it(t)||ot(t)||rt(t)||nt()}function nt(){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 rt(t,e){if(t){if("string"===typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function ot(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function it(t){if(Array.isArray(t))return at(t)}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var st={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(et(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-row",t._l(t.views,(function(e){return n("a-col",{key:e.key,attrs:{span:e.span||24}},[n("layout-view-"+(e.layout||t.viewLayout),{tag:"component",attrs:{view:e}},[n("ViewBox",t._b({attrs:{view:e}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},ut=[],ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("keep-alive",[n(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},ft=[];function pt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ht(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){pt(i,r,o,a,s,"next",t)}function s(t){pt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function dt(t){return gt(t)||yt(t)||vt(t)||mt()}function mt(){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 vt(t,e){if(t){if("string"===typeof t)return bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(t,e):void 0}}function yt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function gt(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){xt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kt=["loading","committing","data","status","message"],Ot=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Et=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],jt=function(t){var e=Object(p["createNamespacedHelpers"])(t),n=e.mapState,r=e.mapActions,o=e.mapGetters,i=e.mapMutations;return{data:function(){return{storeNamespace:t}},computed:_t(_t(_t({},n(kt)),o(Et)),{},{configs:function(){var t=this.schema,e=t.configs,n=void 0===e?[]:e,r=t.resConfigs,o=void 0===r?[]:r,i=[].concat(dt(n),dt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(n){}return[t.key,e]})))},defaults:function(){var t=this.schema,e=t.params,n=void 0===e?[]:e,r=t.resParams,o=void 0===r?[]:r,i=[].concat(dt(n),dt(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(n){}return[t.key,e]})))}}),methods:_t(_t({},i(["replaceNamespace"])),r(Ot)),created:function(){var t=this;return ht(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.parentIds&&t.replaceNamespace(t.parentIds),t.delay||t.id||t.schema&&t.load();case 2:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},St=function(t){return function(e){return{extends:t,mixins:[jt("".concat(e))]}}},Pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.schema||t.actioning}},[t.schema?n("div",[t.actionViewVisible&&"block"===t.actionViewMode?t._e():n(t.layout,{tag:"component",scopedSlots:t._u([t.configs["list.header"]?{key:"header",fn:function(){return[n(t.configs["list.header"],{tag:"component"})]},proxy:!0}:null,t.configs["list.footer"]?{key:"footer",fn:function(){return[n(t.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,t.configs["list.sider"]?{key:"sider",fn:function(){return[n(t.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[t.data.size?n("PaginationSize",{attrs:{total:t.data.count,current:Number(t.query.$limit),pageSize:t.data.size,"show-total":function(e,n){return e?"当前页面 "+n[0]+"-"+n[1]+" 项,选定 "+t.selections.length+" 项,共 "+e+" 项":null}},on:{change:t.handlePaginationPageChange}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-none",fn:function(){return[n("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[n("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0},t.filters.length?{key:"filters",fn:function(){return[n("FilterForm",{attrs:{columns:t.filters},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null,t.treeFilters.length?{key:"tree-filters",fn:function(){return[n("FilterForm",{attrs:{columns:t.treeFilters,layout:"vertical"},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null],null,!0)},[n("list-"+(t.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:t.idName,loading:t.loading,rowSelection:t.rowSelection,columns:t.columns,dataSource:t.dataSource,item:t.configs["list.item"],childrenColumnName:"_childList",rowClassName:t.listSeparateColor},on:{profile:function(e){return t.handleModelProfile(e)},"row-action":t.handleRowAction}})],1),t.actionViewVisible?n("Popup",{attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,width:t.configs["profile.popup.width"]},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?n("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult},on:{commit:t.commitActionView,profile:t.handleModelProfile,close:t.closeActionView}}):t._e(),t.action.params&&t.action.params.autofill?n("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[n("a-col",[n("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),n("a-col",[n("a-space",[n("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),n("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1):t._e()])},At=[],Nt={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},Ct={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var t=this.configs.hide;return t?Array.isArray(t)?t:t.split(","):[]}},methods:{}};function Tt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Lt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Tt(i,r,o,a,s,"next",t)}function s(t){Tt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Mt(t){return Rt(t)||Dt(t)||It(t)||qt()}function qt(){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 It(t,e){if(t){if("string"===typeof t)return $t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(t,e):void 0}}function Dt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Rt(t){if(Array.isArray(t))return $t(t)}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ut={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},unwatchQuery:null}},computed:{columns:function(){var t=this,e=this.$createElement,n=this.idName,r=this.hide,o=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!r.includes(t.name)&&t.name!==n&&"model"!==t.metaType&&"link"!==t.type})).map((function(n){var r=Object.fromEntries(n.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:n.name,key:n.name,title:n.alias,align:["Integer","Number"].includes(n.metaType)?"right":"left",schema:n,width:r["list.width"],ellipsis:"true"===r["list.ellipsis"],customRender:function(r,o){return e("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(e){return t.handleCellChange(e,n.name,o)}},attrs:{value:r,row:o,schema:n,editable:t.actionRowEditing,idName:t.idName}})}}}));return this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&o.push({title:"操作",key:"_action",customRender:function(n,r){return{children:t.rowActions(r).map((function(n,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(){return t.handleRowAction(n,r)}}},[n.name])]}))}},actions:function(e){return t.rowActions(e)}}),o},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var n=t.model.attrs.find((function(t){return t.name===e.name}));return Vt(Vt({},n),e)})):[]},treeFilters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&["tree-select"].includes(e.control)})).map((function(e){var n=t.model.attrs.find((function(t){return t.name===e.name}));return Vt(Vt({},n),e)})):[]},filterValues:function(){var t=[].concat(Mt(this.filters),Mt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return Vt(Vt({},Object.fromEntries(t)),this.defaults)},dataSource:function(){return this.findAll},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[t.idName]===e}));return this.findAll[n-1]}},created:function(){var t=this;return Lt(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=3;break}return e.next=3,t.loadSchema();case 3:t.query=Vt(Vt(Vt(Vt({},t.query),t.params.filters),t.filterValues),t.$route.query);case 4:case"end":return e.stop()}}),e)})))()},activated:function(){this.parentIds||"page"!==this.mode||E.a.stringify(this.query)!==E.a.stringify(this.$route.query)&&this.$router.push({query:this.query}),this.unwatchQuery=this.$watch("query",{handler:function(t,e){this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query})},deep:!0})},deactivated:function(){this.unwatchQuery&&this.unwatchQuery()},methods:{load:function(){var t=arguments,e=this;return Lt(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({query:e.query,mute:r});case 3:return o=n.sent,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()},handleNext:function(){this.actionModel=Vt({},this.next)},handlePrevious:function(){this.actionModel=Vt({},this.previous)},handleModelProfile:function(t){var e={name:this.titleName?String(this.formatter(t,t[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=e,this.actionModel=Vt({},t),this.actionParams={$parent:this.params.$parent},this.handleProfile(e)},handleProfile:function(t){var e=this.actionModel;this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(e[this.idName]))},handleFilterChange:function(t,e){this.query[t]?this.query[t]=e:this.$set(this.query,t,e)},listSeparateColor:function(t,e){var n=this.configs["list.separateKey"]||null,r=this.configs["list.separateValue"]||null;return n&&r&&t[n]===r?"list-separate-color":""}}},Kt={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1}}},methods:{handlePaginationPageChange:function(t){this.query.$limit=t,this.clearSelection&&this.clearSelection()}}},zt={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var t=this;return!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(e){return e[t.idName]})),onChange:this.handleSelectionChange,type:"single"===this.pickerMode?"radio":"checkbox"}}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){this.selections=[]},handleSelectionChange:function(t){var e=this.idName,n=this.dataSource,r=function t(n,r){for(var o=0;o<n.length;o++){if(n[o][e]===r)return n[o];if(n[o]._childList){var i=t(n[o]._childList,r);if(i)return i}}return null};this.selections=t.map((function(t){return r(n,t)})),this.$emit("selected",this.selections)}}};function Yt(t){return Yt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function Ht(t,e){return Object.keys(t).every((function(n){var r=t[n],o=n.split(".").reduce((function(t,e){return t&&t[e]||void 0}),e);if(o){if(Array.isArray(r))return r.includes(o);if("object"!==Yt(r)||1!==Object.keys(r).length)return"object"===Yt(r)&&Object.keys(r).length>1?Ht(r,e):r===o;if(r["!"]&&Array.isArray(r["!"]))return!r["!"].includes(o);if(r["!"])return r!==o;if(r[">"])return o>r[">"];if(r[">="])return o>=r[">="];if(r["<"])return o<r["<"];if(r["<="])return o<=r["<="]}}))}var Gt=n("9f89");function Wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return Gt(t,{reInterpolate:n})(e)}function Zt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Jt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Zt(i,r,o,a,s,"next",t)}function s(t){Zt(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Xt=function(t){window.open("".concat(t,"/api/download?_time='").concat((new Date).getTime()),"_blank")},Qt={methods:{handleFile:function(t){var e=this;return Jt(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[r]){n.next=5;break}return n.abrupt("return");case 5:return o.append(r,e.actionModel[r][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),n.next=9,e.saveData({key:t.key,data:o});case 9:case"end":return n.stop()}}),n)})))()},handleFilesUpload:function(t){var e=this;return Jt(f.a.mark((function t(){return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="upload-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleDownload:function(t){var e=this;return Jt(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 2:Xt(e.apiBaseURL);case 3:case"end":return n.stop()}}),n)})))()},handleExport:function(t){var e=arguments,n=this;return Jt(f.a.mark((function r(){var o;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=e.length>1&&void 0!==e[1]&&e[1],r.next=3,n.executeData({key:t.key,data:n.selections.length?o?n.selections[0]:n.selections:n.actionModel||{}});case 3:Xt(n.apiBaseURL);case 4:case"end":return r.stop()}}),r)})))()},handleExportFilter:function(t){var e=this;return Jt(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 2:Xt(e.apiBaseURL);case 3:case"end":return n.stop()}}),n)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function re(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function oe(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){re(i,r,o,a,s,"next",t)}function s(t){re(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ie=n("9f89"),ae=/\${([\s\S]+?)}/g,se={methods:{handleViewPicker:function(t){var e=this;return oe(f.a.mark((function t(){return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="picker-view-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleTreeSelect:function(t){var e=this;return oe(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,u=r.valuesName,e.actioning=!0,c=ee(ee({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(ie(o,{reInterpolate:ae})(c));case 5:return p=n.sent,n.next=8,e.$api.get(ie(i,{reInterpolate:ae})(c));case 8:h=n.sent,e.actioning=!1,e.actionParams=ee(ee({},e.actionParams),{},{treeData:p.data&&p.data.collection,data:h.data&&h.data.collection,keyName:a,titleName:s,valueName:l,valuesName:u}),e.actionViewWidget="picker-tree-form",e.showActionView();case 13:case"end":return n.stop()}}),n)})))()},handleTransferSelect:function(t){var e=this;return oe(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,u=r.valuesName,c=r.selected,e.actioning=!0,p=ee(ee({},e.actionModel),{},{$parent:e.actionParams.$parent}),n.next=5,e.$api.get(ie(o,{reInterpolate:ae})(p));case 5:return h=n.sent,n.next=8,e.$api.get(ie(i,{reInterpolate:ae})(p));case 8:d=n.sent,e.actioning=!1,e.actionParams=ee(ee({},e.actionParams),{},{treeData:h.data&&h.data.collection,data:d.data&&d.data.collection,keyName:a,titleName:s,valueName:l,valuesName:u,selected:c}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return n.stop()}}),n)})))()},handleAlgorithm:function(){var t=this;return oe(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.actionViewWidget="algorithm-form",t.actionViewMode="fullscreen",t.showActionView();case 3:case"end":return e.stop()}}),e)})))()}}};function le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ue(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?le(Object(n),!0).forEach((function(e){pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ce(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function fe(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ce(i,r,o,a,s,"next",t)}function s(t){ce(i,r,o,a,s,"throw",t)}a(void 0)}))}}function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var he={mixins:[Qt,se],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=pe({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var n=fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.removeData({key:t.key,method:t.method||"delete",data:e.profile?[e.profile[e.idName]]:e.selections.length?e.selections.map((function(t){return t[e.idName]})):[e.actionModel[e.idName]]});case 2:e.selections=[],e.id?e.handleBack():e.findAll.length||e.load&&e.load();case 4:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:case"end":return n.stop()}}),n)})))()},handleBulkEdit:function(){this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return fe(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editions.length?t.editions.length&&t.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){t.closeActionView()}}):t.closeActionView();case 1:case"end":return e.stop()}}),e)})))()},handleSaveEdit:function(){var t=arguments,e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,n.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return n.stop()}}),n)})))()},handleOne:function(t){var e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.handleBulk(t,1);case 1:case"end":return n.stop()}}),n)})))()},handleBulk:function(t){var e=arguments,n=this;return fe(f.a.mark((function r(){var o,i,a;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=n.selections.length,!(o&&i>o)){r.next=4;break}return r.abrupt("return",n.$message.error("所选数据不允许超过 ".concat(o," 条")));case 4:a=i>1?" ".concat(i," 条"):"",n.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){n.saveData({method:t.method||"post",key:t.key,data:n.selections.length?n.selections:[n.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""})}});case 6:case"end":return r.stop()}}),r)})))()},handleEver:function(t){var e=this;return fe(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 1:case"end":return n.stop()}}),n)})))()},handleRouter:function(t){var e=this;return fe(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Wt(r,ue({$parent:e.params.$parent},e.actionModel)),e.$router.push(r);case 3:case"end":return n.stop()}}),n)})))()},handleLink:function(t){var e=this;return fe(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.legend,r=Wt(r,ue({$parent:e.params.$parent},e.actionModel)),window.open(r,"_blank");case 3:case"end":return n.stop()}}),n)})))()},handleRefresh:function(){this.load&&this.load()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=ue({},this.actionModel));var e=this.schema.id,n=t.target.checked,r=JSON.parse(localStorage.getItem("form_".concat(e)));if(r)for(var o in r)n?this.$set(this.actionModel,o,r[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function de(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ye(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ge(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ye(i,r,o,a,s,"next",t)}function s(t){ye(i,r,o,a,s,"throw",t)}a(void 0)}))}}var be={methods:{handleFlowReport:function(t){var e=this;return ge(f.a.mark((function n(){var r,o,i;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,n.next=4,e.saveData({key:t.key,data:me({},r)});case 4:if(o=n.sent,o.data){n.next=7;break}return n.abrupt("return");case 7:e.actionConfirmMode=!1,e.actionModel=me(me({},r),{},{confirm:1,todo_actors:[]}),e.actionViewWidget="workflow-report",i=t.params&&t.params.rowSelectionType?t.params.rowSelectionType:null,e.actionParams.flow=i?me(me({},o),{},{rowSelectionType:i}):o,e.actionViewVisible=!0;case 13:case"end":return n.stop()}}),n)})))()},handleFlowCheck:function(t){var e=this;return ge(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,n.next=4,e.saveData({key:t.key,data:me({},r)});case 4:if(o=n.sent,o.data){n.next=7;break}return n.abrupt("return");case 7:e.actionConfirmMode=!1,e.actionViewWidget="workflow-report",e.actionModel=me(me({},r),{},{data:me({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return n.stop()}}),n)})))()},handleFlowReassign:function(t){var e=this;return ge(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,n.next=4,e.saveData({key:t.key,data:me({},r)});case 4:if(o=n.sent,o.data){n.next=7;break}return n.abrupt("return");case 7:e.actionConfirmMode=!1,e.actionViewWidget="workflow-report",e.actionModel=me(me({},r),{},{data:me({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return n.stop()}}),n)})))()},handleFlowQuery:function(t){var e=this;return ge(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.actionModel,e.actionConfirmMode=!0,e.actioning=!0,n.next=5,e.saveData({key:t.key,data:me({},r)});case 5:if(o=n.sent,e.actioning=!1,o.data){n.next=9;break}return n.abrupt("return");case 9:e.actionConfirmMode=!1,e.actionViewWidget="workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 13:case"end":return n.stop()}}),n)})))()}}};function we(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function _e(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){we(i,r,o,a,s,"next",t)}function s(t){we(i,r,o,a,s,"throw",t)}a(void 0)}))}}var xe={methods:{commit:function(){return _e(f.a.mark((function t(){return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function ke(t){return ke="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(t)}function Oe(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ee(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Oe(i,r,o,a,s,"next",t)}function s(t){Oe(i,r,o,a,s,"throw",t)}a(void 0)}))}}function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ae={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ne={mixins:[he,be,xe],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[]}},computed:{actions:function(){var t=this,e=this.model.actions?this.model.actions.filter((function(e){return("none"===e.selected&&!t.selections.length&&!t.profile||"single"===e.selected&&(1===t.selections.length||t.profile&&"profile"!==e.action)||"somewhat"===e.selected&&(t.selections.length||t.profile)||"mulpitle"===e.selected&&t.selections.length>1||!e.selected)&&t.showAction(e)&&!t.actionRowEditing})):[];return e},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]},settingActions:function(){var t=[{key:"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1"},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1"}];return this.actionRowEditing?this.editions.length?t:t.filter((function(t){return["cancelEdit"].includes(t.action)})):[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(t){return["single","somewhat"].includes(t.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(t){var e=this;return this.inlineActions.filter((function(n){return e.showAction(n,t)}))},showAction:function(t,e){var n=t.params&&!!t.params.show,r=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!r)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],s=n;return a.length?s=a.every((function(t){return Ht(r,Se(Se({},t),{},{$parent:i}))})):i&&(s=Ht(r,{$parent:i})),n?s:!s},handleRowAction:function(t,e){return this.selections=[e],this.handleAction(t,e)},handleAction:function(t,e,n){return this.action=t,e||(e=this.profile||this.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(this.actionViewMode=t.display),this.actionModel=Se(Se(Se({},e),n),this.defaults),this.actionParams=Se(Se({},t.params),{},{$parent:this.params.$parent}),"page"===t.display?this.routeAction(t):this.dispatchAction(t),this},handleCellChange:function(t,e,n){var r=this.idName,o=this.editions.find((function(t){return t[r]===n[r]}));o||(o=Se({},n),this.editions.push(o)),o[e]=t},trigger:function(t){var e=this.actions.find((function(e){return e.key===t}));return this.dispatchAction(e),this},dispatchAction:function(t){var e={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(t.action&&e[t.action])this[e[t.action]](t);else if(t.action){var n=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(n)](t)}else this[e[t.method]](t)}catch(r){this.$message.error("前端事件异常【".concat(t.name,"】"))}return this},routeAction:function(t){return this.$router.push({path:t.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(t){var e=this;return Ee(f.a.mark((function n(){var r,o,i,a,s,l,u,c,p,h,d,m,v,y,g,b,w,_,x,k;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.selections,o=e.actionModel,i=e.idName,a=e.editions,s=e.action,l=s.key,u=s.method,c=s.params,c=void 0===c?{}:c,p=c.commit,p=void 0===p?{}:p,h=p.type,d=p.redirectProfile,m=c.autofill,v=e.schema,r.length>1?(delete t[i],t=r.map((function(e){return Se(Se({},e),t)}))):o&&!a.length&&(t=Se(Se({},o),t)),y=Object.keys(t).every((function(e){return!(t[e]instanceof File)&&!(t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File})))})),g={},b=Object.keys(t).find((function(e){return t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File}))}))?"1":"0","1"===b&&(g.multiple=b),y||(t=e.transformData(t)),n.next=13,e.saveData({data:t,key:l,method:u,query:g,type:h});case 13:if(w=n.sent,w){if(m){for(k in _=Se({},w),x=e.filterColumns().map((function(t){return t.name})),_)x.includes(k)||delete _[k];localStorage.setItem("form_".concat(v.id),JSON.stringify(_))}e.actionCommitResult.data=function(){return{data:w}},d&&e.handleModelProfile&&e.handleModelProfile(w)}case 15:case"end":return n.stop()}}),n)})))()},filterColumns:function(){var t=this.action,e=this.params,n=this.model,r=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!r.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Ae[o].includes(t.access)&&!r.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var n in t)if("object"!==ke(t[n])||t[n]instanceof File)e.append("".concat(n),t[n]);else for(var r in t[n])Array.isArray(t[n])?e.append("".concat(n),t[n][r]instanceof File||"object"!==ke(t[n][r])?t[n][r]:JSON.stringify(t[n][r])):e.append("".concat(n,".").concat(r),t[n][r]instanceof File||"object"!==ke(t[n][r])?t[n][r]:JSON.stringify(t[n][r]));return e},closeActionView:function(t){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.actionViewkMode=null,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(t){t>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(t){var e=this.action&&this.action.configs,n=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),n?this.actionCommitResult.template=n.value:this.actionConfirmMode||this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(t){return t()})),this.unwatchs=[]}},Ce=function(t,e){var n=t,r=e.list.split(",").map((function(t){return t.split(":")}));return n=r.find((function(e){return String(e[0])===String(t)})),n=n?n[1]?n[1]:n[0]:"-",n},Te=function(t,e){var n=t,r=e.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=e.typeObject.model.idName;function i(t,e){for(var n=null,r=0;r<e.length;r++)if(String(e[r][o])===String(t)?n=e[r]:e[r]._childList&&(n=i(t,e[r]._childList)),n)return n;return n}return n=i(t,e.typeObject.data.collection),n=n?n[r?r.name:e.typeObject.model.idName]:t?"-":"",n},Le=function(t,e,n){var r;switch(e.dataType){case"year":r="YYYY";break;case"month":r="YYYY-MM";break;case"date":r="YYYY-MM-DD";break;case"datetime":r="YYYY-MM-DD HH:mm";break;default:r="YYYY-MM-DD HH:mm";break}return n(t).format(r)},Me={methods:{formatter:function(t,e,n){var r=e;n.list&&(r=["checkbox","multiple"].includes(n.control)?e&&e.split(",").map((function(t){return Ce(t,n)})).join(","):Ce(e,n)),"wordbook"===n.dataType&&n.typeObject&&(r=["checkbox","multiple"].includes(n.control)?e.split(",").map((function(t){return Te(t,n)})).join(","):Te(e,n));var o=["year","month","date","datetime","time"];return o.includes(n.dataType)&&(e||0===e)&&(r=Le(e,n,this.moment)),r}}},qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-table",t._b({attrs:{pagination:!1,size:"middle"}},"a-table",t.$attrs,!1))},Ie=[];function De(t,e,n,r,o,i,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):o&&(l=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}var Re={},$e=De(Re,qe,Ie,!1,null,null,null),Be=$e.exports,Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-list",t._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:t._u([{key:"renderItem",fn:function(e){var r=e.item;return[n("a-list-item",[n(t.component,{tag:"component",attrs:{item:r}})],1)]}}])},"a-list",t.$attrs,!1))},Fe=[],Ue={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Ke=Ue,ze=De(Ke,Ve,Fe,!1,null,null,null),Ye=ze.exports,He={ListTable:Be,ListNormal:Ye},Ge=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{attrs:{layout:t.layout}},t._l(t.columns,(function(e,r){return n("Item",{key:r+"-"+e.name,attrs:{formModel:t.actionModel,prop:e.name,schema:e,params:t.params,labelType:!1},on:{change:function(n){return t.handleItemChange(n,e)},fill:function(n){return t.handleItemFill(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[col.name]"}})})),1)},We=[];function Ze(t){return tn(t)||Qe(t)||Xe(t)||Je()}function Je(){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 Xe(t,e){if(t){if("string"===typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}function Qe(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function tn(t){if(Array.isArray(t))return en(t)}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function rn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){nn(i,r,o,a,s,"next",t)}function s(t){nn(i,r,o,a,s,"throw",t)}a(void 0)}))}}function on(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function an(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?on(Object(n),!0).forEach((function(e){sn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ln={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:an({},this.values)||{},hasFile:!1}},created:function(){if(this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},computed:{defaultValues:function(){var t=this.columns?this.columns.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},rules:function(){var t={};return this.columns.forEach((function(e){var n,r=["date","time","month","week","range","tree-suggest"].includes(e.control);(t[e.name]=[],e.required&&t[e.name].push({required:!0,message:"".concat(e.alias,"不能为空"),trigger:r?"change":"blur"}),e.maxLength&&e.minLength)&&(n=e.maxLength&&e.minLength?"长度在 ".concat(e.minLength," 到 ").concat(e.maxLength," 个字符"):e.maxLength?"长度不多于 ".concat(e.maxLength," 个字符"):"长度不少于 ".concat(e.minLength," 个字符"),t[e.name].push({min:e.minLength,max:e.maxLength,message:n,trigger:"blur"}))})),t},configs:function(){return Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(t,e){this.actionModel[t]?this.actionModel[t]=e:this.$set(this.actionModel,t,e)},handleItemChange:function(t,e){var n=e.name;this.setModel(n,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return rn(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$refs.form){e.next=3;break}return e.next=3,t.$refs.form.validate();case 3:t.handleCommit();case 4:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return rn(f.a.mark((function e(){var n,r,o,i;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?n=t.actionModel:(r=t.params,r=void 0===r?{}:r,o=r.valuesName,i=o?[].concat(Ze(t.columns),[{name:o}]):t.columns,n=Object.fromEntries(i.map((function(e){var n=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,n]})))),t.$emit("commit",n);case 2:case"end":return e.stop()}}),e)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(t){this.$emit("change",t)},deep:!0},values:{handler:function(t){for(var e in t)this.setModel(e,t[e])},deep:!0}}},un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showModel?n("a-form-model-item",{ref:"item",attrs:{label:t.label,help:t.help,extra:t.extra,"validate-status":t.validateStatus,colon:!1,"has-feedback":!1,prop:t.prop,rules:t.rules}},[["select","chosen"].includes(t.schema.control)?n("a-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{value:t.value,allowClear:"",showSearch:"chosen"===t.schema.control,optionFilterProp:"children",filterOption:t.filterOption,disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e)}}},t._l(t.options,(function(e,r){return n("a-select-option",{key:r,attrs:{title:e.label,value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1):["multiple"].includes(t.schema.control)?n("a-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{mode:"multiple",allowClear:"",defaultValue:t.value&&t.value.split(","),disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e.join(","))}}},t._l(t.options,(function(e,r){return n("a-select-option",{key:r,attrs:{title:e.label,value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1):"Boolean"===t.schema.metaType?n("a-switch",{attrs:{disabled:t.readonly,defaultChecked:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"daterange"===t.schema.control?n("a-range-picker",{attrs:{disabled:t.readonly,valueFormat:"YYYY-MM-DD",placeholder:["开始"+t.placeholder,"结束"+t.placeholder],defaultValue:t.value?t.value.split(",").map((function(e){return t.moment(Number(e)||e)})):null,allowClear:""},on:{change:function(e,n){t.$emit("change",n.join(","))}}}):["date","datetime"].includes(t.schema.control)||"date"===t.schema.dataType?n("a-date-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,format:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",valueFormat:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",defaultValue:t.value?t.moment(Number(t.value)||t.value):null,showTime:"datetime"===t.schema.control&&{format:"HH:mm"},allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):["birthday"].includes(t.schema.control)?n("a-date-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,format:"YYYY-MM-DD HH:mm",valueFormat:"YYYY-MM-DD HH:mm",defaultValue:t.value?t.moment(t.value):null,showTime:{format:"HH:mm"},allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):["month"].includes(t.schema.control)||"month"===t.schema.dataType?n("a-month-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value):null,allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):["week"].includes(t.schema.control)||"week"===t.schema.dataType?n("a-week-picker",{staticStyle:{width:"100%","min-width":"190px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value,"YYYY-w"):null,format:"YYYY-w",allowClear:"",placeholder:t.placeholder},on:{change:function(e,n){t.$emit("change",n)}}}):"multiple"===t.schema.control?n("a-checkbox-group",{attrs:{options:t.options,defaultValue:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"radio"===t.schema.control?n("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[t._l(t.options,(function(e){return n("a-radio",{key:e.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(e.value):e.value}},[t._v(" "+t._s(e.label)+" ")])})),n("a-radio",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],key:"_empty",attrs:{value:""}},[t._v(" "+t._s("filter"===t.type?"全部":"清空")+" ")])],2):"button-group"===t.schema.control?n("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[n("a-radio-button",{key:"_empty",attrs:{value:""}},[t._v(" "+t._s("filter"===t.type?"全部":"清空")+" ")]),t._l(t.options,(function(e){return n("a-radio-button",{key:e.value,attrs:{disabled:t.readonly,value:e.value}},[t._v(" "+t._s(e.label)+" ")])}))],2):"file"===t.schema.control?[t.value&&!t.reUpload?n("span",[n("a",{attrs:{href:t.view.apiURL+"/"+t.formModel[t.view.idName]+"?_file="+t.schema.name+"&_mode=inline",target:"_blank"}},[t._v(" 下载查看 ")]),t.readonly?t._e():n("span",[t._v(" - "),n("a",{attrs:{href:"javascript:void(0);"},on:{click:t.handleReupload}},[t._v(" 重新上传 ")])])]):n("a-input",{attrs:{type:"file",accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*",disabled:t.readonly},on:{change:function(e){return t.handleFilesChange(e,t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}})]:"files"===t.schema.control?n("div",[n("a-upload",{attrs:{beforeUpload:t.beforeFilesUpload,multiple:"",showUploadList:!1,accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*"}},[n("a-button",{on:{click:function(e){return t.setFileSize(t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}},[n("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.defaultFileList,(function(e,r){return n("div",{key:r,staticClass:"form-file-upload"},[n("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[n("a-col",[t._v(t._s(e.file_name||e.name))]),n("a-col",[n("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(r)}}})],1)],1)],1)}))],2):"image"===t.schema.control?n("a-upload",{staticClass:"avatar-uploader",attrs:{accept:"image/*","list-type":"picture-card","default-file-list":t.defaultFileList,"before-upload":t.beforeUpload,remove:function(){return t.$emit("change",null)}}},[t.formModel[t.schema.name]?t._e():n("div",[n("a-icon",{attrs:{type:"plus"}}),n("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]):"view-select"!==t.schema.control||t.readonly?"textarea"===t.schema.control?n("a-textarea",{attrs:{placeholder:t.placeholder,defaultValue:t.value,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:1,maxRows:10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):"csv-json"===t.schema.control?n("span",[n("a-textarea",{attrs:{defaultValue:t.value,placeholder:t.placeholder,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:1,maxRows:10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}})],1):"tree-suggest"===t.schema.control?n("a-tree-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",value:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"tree-suggests"===t.schema.control?n("a-tree-select",{staticStyle:{width:"100%","min-width":"190px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",multiple:"",value:t.value?t.value.split(","):void 0},on:{change:function(e){return t.$emit("change",e?e.join(","):void 0)}}}):"tree-select"===t.schema.control?n("div",[t._e(),n("a-tree",{attrs:{replaceFields:{title:"label"},treeData:t.async?t.asyncTreeData:t.treeData,selectedKeys:[t.defaultValue],loadData:t.async&&t.handleAsyncLoadData||null,defaultExpandedKeys:[t.treeData[0]&&t.treeData[0].key]},on:{select:t.handleTreeSelect}})],1):"password"===t.schema.control?n("a-input-password",{tag:"component",attrs:{name:t.schema.name,placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"editor"===t.schema.control?n("Editor",{attrs:{placeholder:t.placeholder,disabled:t.readonly},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"verify"===t.schema.control?n("VerificationCode",{attrs:{placeholder:t.placeholder,url:t.schema.params.url,time:t.schema.params.time,phone:t.formModel[t.schema.params.phoneName]},on:{change:function(e){return t.$emit("change",e)}}}):"map-marker"===t.schema.control?n("MapMarker",{attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)},map:t.handleMapComplete},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"map-polygon"===t.schema.control?n("MapPolygon",{attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"transfer"===t.schema.control?n("Transfer",{attrs:{placeholder:t.placeholder,treeUrl:t.schema.params.control.url,titleName:t.schema.params.control.displayValue,keyName:t.schema.params.control.realValue},on:{submit:t.handlePickerComplete,selected:t.handlePickerSelected},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):n("a-"+t.type,{ref:"aInput",tag:"component",attrs:{defaultValue:t.value,name:t.schema.name,placeholder:t.placeholder,disabled:t.readonly,allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):n("a-input",{attrs:{placeholder:t.placeholder,"read-only":"",value:t.valueLabel,allowClear:""}},[n("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){return t.handlePickerShow(t.schema)}},slot:"addonAfter"})],1),t.pickerViewShow?n("Popup",{attrs:{visible:t.pickerViewShow,title:t.schema.alias,type:"modal",okButtonProps:{props:{icon:"check"}},cancelButtonProps:{props:{icon:"close"}}},on:{ok:t.handlePickerComplete,close:t.handlePickerClose,cancel:t.handlePickerClose}},[t.pickerViewShow?n("Picker",t._b({ref:"picker",attrs:{viewKey:t.schema.name,params:{filters:t.pickerFilter},mode:"picker"},on:{selected:t.handlePickerSelected}},"Picker",t.pickerViewOptions,!1)):t._e()],1):t._e()],2):t._e()},cn=[];function fn(t){return mn(t)||dn(t)||hn(t)||pn()}function pn(){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 hn(t,e){if(t){if("string"===typeof t)return vn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(t,e):void 0}}function dn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function mn(t){if(Array.isArray(t))return vn(t)}function vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function gn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){yn(i,r,o,a,s,"next",t)}function s(t){yn(i,r,o,a,s,"throw",t)}a(void 0)}))}}function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){_n(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xn={props:{schema:{type:Object},formModel:{type:Object},type:{type:String,enum:["cell","divider","computed","text","number","checkbox","radio","switch","textarea","rate","select","slider","upload","cascader","transfer","color","search","date","time","month","week","range","signature","view","tree","box","html","markdown","code","location","mentions","face","photos","files","conditions","flow","array","matrix","table","sheet","nested"],default:"input"},prop:{type:String},labelType:{type:[String,Boolean],default:!0},value:{type:[String,Boolean,Array,Number,Object,FileList,File]},params:{type:[Object],default:function(){return{}}},required:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},inject:["view"],data:function(){return{pickerViewOptions:{},pickerViewShow:!1,filterRules:[],showRules:[],hideRules:[],requireRules:[],swiftRules:[],showModel:!0,requireModel:this.required,reUpload:!1,selections:[],valueLabel:null,defaultFileList:[],defaultValue:this.formModel[this.schema.name]||"",defaultFileSize:null,asyncTreeData:[]}},computed:{placeholder:function(){return this.schema.alias||this.schema.name},label:function(){return!1===this.labelType?null:this.schema.alias||this.schema.name},help:function(){return""},extra:function(){return""},readonly:function(){return!!this.schema.params&&this.schema.params.readonly},validateStatus:function(){return null},options:function(){var t=this;if(this.schema.list){var e,n=this.swiftRules[0];return n&&this.formModel[n.key]&&(e=n.value.find((function(e){return e.value===t.formModel[n.key]}))),this.schema.list.split(",").filter((function(t){return!e||e.items.includes(t.split(":")[0])})).map((function(t){var e=t.split(":");return{label:e[1]?e[1]:e[0],value:e[0]}}))}if("wordbook"===this.schema.dataType&&this.schema.typeObject){var r=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=this.schema.typeObject.model.idName;r=r.name||o;var i=this.filterRules.length?this.schema.typeObject.data.collection.filter((function(e){return t.filterRules.every((function(n){return e[n.value]===t.formModel[n.key]}))})):this.schema.typeObject.data.collection;return i.map((function(t){return{label:t[r],value:t[o]}}))}return this.schema.params&&this.schema.params.control&&this.schema.params.control.options?this.formModel[this.schema.params.control.options].split(",").map((function(t){var e=t.split(":");return{label:"".concat(e[0]," (").concat(e[1],")"),value:e[1]}})):[]},treeData:function(){var t=this;if("wordbook"===this.schema.dataType&&this.schema.typeObject){var e=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),n=this.schema.typeObject.model.idName;e=e.name||n;var r=function r(o){return o.map((function(o){return{label:o[e],value:o[n],key:o[n],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!o._childList,children:o._childList?r(o._childList):null}}))},o=this.schema.typeObject.data,i=o.node,a=o.collection,s=this.async&&i?[{label:i[e],value:i[n],key:i[n],children:r(a)}]:r(a);return s}return[]},rules:function(){var t=["date","time","month","week","range"].includes(this.schema.control),e={required:!0,message:"".concat(this.schema.alias,"不能为空"),trigger:t?"change":"blur"};return this.requireModel?[e]:null},configs:function(){return this.schema.configs&&this.schema.configs.length&&Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]})))},pickerFilter:function(){var t=this.schema.params,e=t&&t.control&&t.control.filters,n={};if(!e)return null;for(var r in e){var o=e[r].split(".").reduce((function(t,e){return t&&t[e]||void 0}),wn(wn({},this.params),this.formModel));n[r]=void 0===o?e[r]:o}return n},async:function(){var t=this.schema,e=t.dataType,n=t.typeObject;return"wordbook"===e&&n&&n.model.sync||!1}},created:function(){this.init()},methods:{init:function(){var t=this.schema,e=t.control,n=t.metaType;this.watch(),"view-select"===e&&this.initPicker(),"Boolean"!==n&&"switch"!==e||this.initSwitch(),["image","file","files"].includes(e)&&this.initFile(),this.configs&&this.configs.required&&(this.requireModel=!0),this.async&&this.treeData&&(this.asyncTreeData=this.treeData)},initPicker:function(){var t=this.schema,e=t.params;e=void 0===e?{}:e;var n=e.control;n=void 0===n?{}:n;var r=n.displayValue,o=n.labelValue,i=t.name,a=o||r||i;this.valueLabel=this.formModel[a]},initSwitch:function(){void 0===this.formModel[this.schema.name]&&this.$emit("change",!1)},initFile:function(){var t=this.view,e=this.schema.name,n=this.formModel,r=n[e],o="".concat(t.apiURL,"/").concat(n[t.idName],"?_file=").concat(e,"&_mode=inline");if(r)try{var i=JSON.parse(r);Array.isArray(i)&&(this.defaultFileList=i)}catch(a){this.defaultFileList=[{uid:0,url:o,name:r}]}},initDate:function(){},reset:function(){},watch:function(){var t=this,e=this.schema.params;e=void 0===e?{}:e;var n=e.control;n=void 0===n?{}:n;var r=n.events;if(r){var o=function(e){var n=e.split(":"),o=r[e].split(";");o.forEach((function(e){var r=e.split("|");"filter"===r[0]?t.filterRules.push({key:n[1],value:r[1]}):"show"===r[0]?t.showRules.push({key:n[1],value:r[1]}):"hide"===r[0]?t.hideRules.push({key:n[1],value:r[1]}):"require"===r[0]?t.requireRules.push({key:n[1],value:r[1]}):"swift"===r[0]&&t.swiftRules.push({key:n[1],value:r[1].split("/").map((function(t){var e=t.split(":");return{value:e[0],items:e[1].split(",")}}))})}))};for(var i in r)o(i)}this.showRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.show(e.key,e.value.split(","))})),t.show(e.key,e.value.split(","))})),this.hideRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.hide(e.key,e.value.split(","))})),t.hide(e.key,e.value.split(","))})),this.requireRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.require(e.key,e.value.split(","))})),t.require(e.key,e.value.split(","))})),this.filterRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){if(t.schema.required&&t.options.length){var e=t.options.find((function(e){return e.value===t.value}));t.$emit("change",e&&t.value||t.options[0].value)}else t.$emit("change","")}))})),this.swiftRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(e){t.schema.required&&t.options.length&&e?t.$emit("change",t.options[0].value):t.$emit("change","")}))}))},require:function(t,e){var n=this.params.$parent;e.includes(wn(wn({},n),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var n=this.params.$parent;e.includes(wn(wn({},n),this.formModel)[t])?(this.showModel=!0,this.$emit("change",this.defaultValue)):"filter"!==this.type&&(this.showModel=!1,this.$emit("change",""))},hide:function(t,e){var n=this.params.$parent;e.includes(wn(wn({},n),this.formModel)[t])?(this.showModel=!1,this.$emit("change","")):"filter"!==this.type&&(this.showModel=!0,this.$emit("change",this.defaultValue))},fill:function(){},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},expression:function(){},handlePickerShow:function(){var t=this.schema.params;t=void 0===t?{}:t;var e=t.control;e=void 0===e?{}:e;var n=e.multiple;this.pickerViewOptions={schema:this.schema,filters:this.pickerFilter,pickerMode:n?"multiple":"single"},this.pickerViewShow=!0},handlePickerSelected:function(t){this.selections=t},handlePickerClose:function(){this.pickerViewShow=!1,this.selections=[]},handlePickerComplete:function(){var t=this.schema,e=t.control,n=t.params;n=void 0===n?{}:n;var r=n.control;r=void 0===r?{}:r;var o=r.displayValue,i=r.realValue,a=r.multiple,s=r.fills,l=this.$refs.picker&&this.$refs.picker.$refs.view,u=i||l.idName,c=o||l.titleName||l.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(s){var f=this.selections[0],p=Object.keys(s).map((function(t){return{name:t,value:f[s[t]]}}));this.$emit("fill",p)}this.$emit("change",a?this.selections.map((function(t){return t[u]})).join(","):this.selections[0][u]),this.valueLabel=a?this.selections.map((function(t){return t[c]})).join(","):this.selections[0][c],this.$refs.item&&this.$refs.item.clearValidate(),this.handlePickerClose()},handleMapComplete:function(t){var e=this.schema.params;e=void 0===e?{}:e;var n=e.control;n=void 0===n?{}:n;var r=n.fills;if(r){var o=Object.keys(r).map((function(e){return{name:e,value:t[r[e]]}}));this.$emit("fill",o)}},handleChange:function(){},handleReupload:function(){this.reUpload=!0},handleAsyncLoadData:function(t){var e=this;return gn(f.a.mark((function n(){var r,o,i,a,s,l,u;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.schema.typeObject.model,o=r.attrs,i=r.idName,a=e.view.apiURL,s=o.find((function(t){return"title"===t.display})),s=s.name||i,n.next=6,e.$api.get("".concat(a,"/").concat(e.schema.name,"?_node=").concat(t.eventKey),{baseURL:""});case 6:return l=n.sent,u=l.data.collection,t.dataRef.children=u.map((function(t){return{label:t[s],value:t[i],key:t[i]}})),e.asyncTreeData=fn(e.asyncTreeData),n.abrupt("return",new Promise((function(t){return t()})));case 11:case"end":return n.stop()}}),n)})))()},handleFilesChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.$el.getElementsByTagName("input")[0],r=n.files[0].size,o=e?this.unitConversion(e):0;e&&r>o?(this.$message.error("上传文件大小不能超过".concat(e)),this.reUpload=!1):this.$emit("change",n.files[0])},transformList:function(){},clearValidate:function(){},beforeUpload:function(t){return this.$emit("change",t),this.$refs.item.clearValidate(),!1},handleRemove:function(t){this.defaultFileList.splice(t,1),this.$emit("change",this.defaultFileList)},beforeFilesUpload:function(t){var e=t.size,n=t.name,r=this.defaultFileSize?this.unitConversion(this.defaultFileSize):0;return this.defaultFileSize&&e>r?this.$message.error("上传 ".concat(n," 文件大小不能超过").concat(this.defaultFileSize),5):this.defaultFileList.push(t),this.$emit("change",this.defaultFileList),this.$refs.item.clearValidate(),!1},setFileSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.defaultFileSize=t},unitConversion:function(t){var e=0;return e=-1!==t.indexOf("KB")?1024*Number(t.split("KB")[0]):-1!==t.indexOf("MB")?1024*Number(t.split("MB")[0])*1024:Number(t),e},handleTreeSelect:function(t){this.schema.required&&!t.length||(this.defaultValue=t[0],this.$emit("change",t[0]))}}},kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("quill-editor",{ref:"quillEditor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})},On=[],En=(n("690b"),n("521b"),n("55ab"),n("37eb")),jn={model:{prop:"value",event:"change"},props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean}},components:{quillEditor:En["quillEditor"]},data:function(){return{content:this.value,editorOption:{placeholder:this.disabled?"当前为不可编辑状态":this.placeholder}}},mounted:function(){this.disabled&&this.$refs.quillEditor.quill.enable(!1)},methods:{onEditorChange:function(t){t.editor;var e=t.html;t.text;this.content=e,this.$emit("change",this.content)}}},Sn=jn,Pn=(n("1418"),De(Sn,kn,On,!1,null,null,null)),An=Pn.exports,Nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-input-group",{attrs:{compact:""}},[n("a-input",{staticStyle:{width:"60%"},attrs:{placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}),n("a-button",{staticStyle:{width:"40%"},attrs:{disabled:t.disabled},on:{click:t.getVerification}},[t._v(" "+t._s(t.text)+" ")])],1)},Cn=[];function Tn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ln(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Tn(i,r,o,a,s,"next",t)}function s(t){Tn(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Mn={mixins:[ln],props:{phone:{type:String,default:""},url:{type:String},time:{type:String,default:"60"},placeholder:{type:String}},data:function(){return{disabled:!1,timer:this.time}},computed:{text:function(){return this.disabled?"".concat(this.timer,"秒后重新获取"):"获取短信验证码"}},methods:{getVerification:function(){var t=this;return Ln(f.a.mark((function e(){var n,r,o,i,a;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.phone){e.next=3;break}return t.$message.error("手机号码不能为空"),e.abrupt("return");case 3:return t.disabled=!0,n=setInterval((function(){t.timer--,t.timer<=0&&t.reset(n)}),1e3),e.prev=5,e.next=8,t.$api.post(t.url,{phone:t.phone});case 8:r=e.sent,o=r.data,i=r.status,200===i&&t.$message.success(o.content),e.next=22;break;case 14:if(e.prev=14,e.t0=e["catch"](5),e.t0.response){e.next=19;break}return t.$message.error("网络请求错误,请检查您的网络连接。"),e.abrupt("return");case 19:a=e.t0.response.data,t.$message.error(a.content),t.reset(n);case 22:case"end":return e.stop()}}),e,null,[[5,14]])})))()},reset:function(t){this.disabled=!1,this.timer=this.time,clearInterval(t)}}},qn=Mn,In=De(qn,Nn,Cn,!1,null,null,null),Dn=In.exports,Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markerVal,callback:function(e){t.markerVal=e},expression:"markerVal"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),n("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",Object.assign({},t.fullscreenOptions),!1),[n("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),n("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-marker"+t._uid,center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}},t._l(t.markers,(function(t){return n("el-amap-marker",{key:t.id,attrs:{position:t.path,title:t.title}})})),1)],1)],1)},$n=[],Bn=n("5aeb"),Vn={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,markerVal:this.value,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,amapManager:null,markers:[],mouseTool:null,geocoder:null,geolocation:null,plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0},position:{lng:0,lat:0,name:""}}},mounted:function(){this.amapManager=new Bn["AMapManager"]},methods:{handleChange:function(t){var e=t.target.value;this.markerVal=e,this.markerVal||this.initDefault(),this.$emit("change",this.markerVal)},initMap:function(){var t=this;Bn["lazyAMapApiLoaderInstance"]&&Bn["lazyAMapApiLoaderInstance"].load().then((function(){t.markerVal&&t.initMarkers(),AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawMarker()})),t.geocoder=new AMap.Geocoder}))},drawMarker:function(){var t=this;this.mouseTool.marker({visible:!1}),this.mouseTool.on("draw",(function(e){var n=e.obj.w.position,r=n.lng,o=n.lat;t.position.lat=o,t.position.lng=r,t.getAddress(r,o),t.markers.length&&(t.markers=[]),t.markers.push({id:t._uid,path:[r,o],title:"[".concat(r,",").concat(o,"]")})}))},initMarkers:function(){var t=this.markerVal.split("/");this.zoom=t.length&&t[1]?t[1]:18;var e=t.length&&t[0]&&t[0].split(",");e.length&&(this.center=[Number(e[0]),Number(e[1])],this.markers=[{id:this._uid,path:[Number(e[0]),Number(e[1])],title:"[".concat(Number(e[0]),",").concat(Number(e[1]),"]")}])},showModal:function(){this.visible=!0,this.markerVal&&this.initMarkers()},submit:function(t){if(this.markers.length){var e=this.markers[0]&&this.markers[0].path[0],n=this.markers[0]&&this.markers[0].path[1],r="".concat(e,", ").concat(n,"/").concat(this.zoom);this.markerVal=r,this.$emit("change",this.markerVal);var o=Object.assign({zoom:this.zoom},this.position);this.$emit("map",o)}else this.initDefault();this.visible=!1},cancel:function(){this.markers.length&&!this.markerVal&&this.initDefault(),this.visible=!1},initDefault:function(){this.markers=[],this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(this.markers=[],t&&t.length){var e=t[0],n=e.lat,r=e.lng;this.position.lat=n,this.position.lng=r,this.getAddress(r,n),this.center=[r,n],this.markers.push({id:this._uid,path:[r,n],title:"[".concat(r,",").concat(n,"]")})}},getAddress:function(t,e){var n=this;this.geocoder.getAddress([t,e],(function(t,e){"complete"===t&&e.regeocode?n.position.name=e.regeocode.formattedAddress:n.$message.error("根据经纬度查询地址失败")}))}}},Fn=Vn,Un=(n("5b37"),De(Fn,Rn,$n,!1,null,"09b502b8",null)),Kn=Un.exports,zn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markers,callback:function(e){t.markers=e},expression:"markers"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),n("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",Object.assign({},t.fullscreenOptions),!1),[n("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),n("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-polygon"+t._uid,center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}})],1)],1)},Yn=[];function Hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hn(Object(n),!0).forEach((function(e){Wn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zn={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,markers:this.value,polygonInstance:null,polygons:null,amapManager:null,mouseTool:null,polygonOption:{fillColor:"#2B6CDD",fillOpacity:.5,strokeColor:"#2B6CDD",strokeWeight:1},plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0}}},mounted:function(){this.amapManager=new Bn["AMapManager"]},methods:{initMap:function(){var t=this;Bn["lazyAMapApiLoaderInstance"].load().then((function(){AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawPolygon()}))}))},handleChange:function(t){var e=t.target.value;this.markers=e,this.markers||this.initDefault(),this.$emit("change",this.markers)},drawPolygon:function(){var t=this;this.mouseTool.polygon(),this.mouseTool.on("draw",(function(e){var n=e.obj.w.path,r=n.map((function(t){return[t.lng,t.lat]}));t.initPolygon(r),t.mouseTool.close(!0)}))},initPolygon:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];setTimeout((function(){t.mapInstance&&(t.polygonInstance&&t.mapInstance.remove(t.polygonInstance),t.polygonEditor&&t.polygonEditor.close(),t.polygonInstance=new AMap.Polygon(Gn({map:t.mapInstance,path:e},t.polygonOption)),t.polygons=e,t.polygonEditor=new AMap.PolyEditor(t.mapInstance,t.polygonInstance),t.polygonEditor.open(),t.polygonEditor.on("adjust",(function(e){var n=e.target.w.path;t.polygons=n})),t.polygonEditor.on("end",(function(e){e.type,e.target;t.drawPolygon()})))}),500)},showModal:function(){if(this.visible=!0,this.markers){var t=this.markers.split("/"),e=t.length&&t[0];this.zoom=t.length&&t[1]?t[1]:18;var n=JSON.parse(e);this.center=n[0]?[Number(n[0][0]),Number(n[0][1])]:[98.5868,24.434008],this.initPolygon(n)}},submit:function(t){if(this.polygons){var e=this.polygons.map((function(t){return[t.lng,t.lat]}));this.markers=JSON.stringify(e)+"/".concat(this.zoom),this.polygonEditor&&this.polygonEditor.close()}else this.initDefault();this.$emit("change",this.markers),this.visible=!1},cancel:function(){this.markers||this.initDefault(),this.polygonEditor&&this.polygonEditor.close(),this.visible=!1},initDefault:function(){this.polygonInstance&&this.mapInstance&&this.mapInstance.remove(this.polygonInstance),this.polygonEditor&&this.polygonEditor.close(),this.polygons=null,this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(t&&t.length){var e=t[0],n=e.lat,r=e.lng;this.center=[r,n]}}}},Jn=Zn,Xn=(n("8a89"),De(Jn,zn,Yn,!1,null,"03415b3c",null)),Qn=Xn.exports,tr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{attrs:{placeholder:t.placeholder,"read-only":""},model:{value:t.checkedValues,callback:function(e){t.checkedValues=e},expression:"checkedValues"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){t.visible=!0}},slot:"addonAfter"})],1),n("a-modal",{attrs:{title:t.placeholder},on:{ok:t.handleSubmit,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(e){var r=e.props,o=r.direction,i=r.selectedKeys,a=e.on.itemSelect;return["left"===o?n("a-spin",{attrs:{spinning:t.leftLoding}},[n("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:i.concat(t.checkedKeys),treeData:t.filterTreeNodes},on:{check:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)},select:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)}}})],1):t._e()]}}])})],1)],1)},er=[];function nr(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function rr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){nr(i,r,o,a,s,"next",t)}function s(t){nr(i,r,o,a,s,"throw",t)}a(void 0)}))}}var or=n("9f89"),ir=/\${([\s\S]+?)}/g,ar={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:"请选择数据"},treeUrl:{type:String,default:""},value:{type:String,default:""},titleName:{type:String,default:""},keyName:{type:String,default:""},selected:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,dataSource:[],checkedKeys:[],treeData:[],inputValue:"",leftLoding:!1,checkedValues:""}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,n=this.keyName,r=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[n],children:a,disabled:r.includes(i[n])||o&&!Ht(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},flattenTreeData:function(){var t=this,e=[];return this.treeData.forEach((function(n){e.push(n),n.children&&t.flatten(n.children)})),e}},created:function(){this.load()},methods:{load:function(){var t=this;return rr(f.a.mark((function e(){var n,r;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.treeUrl,r=null,!n){e.next=6;break}return e.next=5,t.$api.get(or(n,{reInterpolate:ir})());case 5:r=e.sent;case 6:r&&r.data&&(t.treeData=r.data.collection,t.treeNodes&&t.flatten(JSON.parse(JSON.stringify(t.treeNodes)))),t.value&&(t.checkedKeys=t.value.split(","),t.setCheckValues());case 8:case"end":return e.stop()}}),e)})))()},getSelections:function(){var t=this;return this.flattenTreeData.filter((function(e){return t.checkedKeys.includes(e[t.keyName])}))},setCheckValues:function(){var t=this;this.checkedValues=this.treeNodes&&this.treeNodes.filter((function(e){return t.checkedKeys.includes(e.key)})).map((function(t){return t.title})).join(",")},onChange:function(t){this.checkedKeys=t,this.$emit("selected",this.getSelections())},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,n,r){var o=e.node.eventKey;r(o,!this.isChecked(n,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){this.setCheckValues(),this.$emit("submit",this.getSelections()),this.visible=!1},handleCancel:function(){this.$emit("selected",this.getSelections()),this.value?(this.checkedKeys=this.value.split(","),this.setCheckValues()):this.checkedKeys=[],this.visible=!1},handleSearch:function(t,e){var n=this,r=null;"left"===t&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=e,n.leftLoding=!1}),1e3))}}},sr=ar,lr=(n("56bc"),De(sr,tr,er,!1,null,"23fdc296",null)),ur=lr.exports,cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout-view-blank",{tag:"component"},[n("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(e){return n("a-tag",{key:e[t.idName],attrs:{closable:""},on:{close:function(n){return t.handleRemove(e)}}},[t._v(" "+t._s(e[t.titleName||t.idName])+" ")])})):t._e(),n("keep-alive",[t.loading?t._e():n(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},fr=[],pr={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"}}};function hr(t){return yr(t)||vr(t)||mr(t)||dr()}function dr(){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 mr(t,e){if(t){if("string"===typeof t)return gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(t,e):void 0}}function vr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yr(t){if(Array.isArray(t))return gr(t)}function gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function br(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function wr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){br(i,r,o,a,s,"next",t)}function s(t){br(i,r,o,a,s,"throw",t)}a(void 0)}))}}function _r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_r(Object(n),!0).forEach((function(e){kr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Or={mixins:[pr],components:xr({},kl),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:St(kl.ModelList)("".concat(this.storeNamespace))}}},methods:{create:St,initView:function(){var t=this;return wr(f.a.mark((function e(){var n,r,o;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.schema.configs.find((function(t){return"picker.view"===t.key})),r=n?n.value:"",o="p-".concat(r),t.$store.hasModule(o)){e.next=7;break}return K(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=r,t.viewKey=r,t.storeNamespace="v-".concat(r),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode?Array.from(new Set([].concat(hr(this.selections),hr(t)))):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,n=this.selections,r=n.find((function(n){return n[e]===t[e]}));n.splice(r,1),this.$emit("selected",n)}}},Er=Or,jr=De(Er,cr,fr,!1,null,null,null),Sr=jr.exports,Pr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",Object.assign({},t.options,t.$attrs),!1),t.$listeners),[t._t("default")],2)},Ar=[],Nr={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0}},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},Cr=Nr,Tr=De(Cr,Pr,Ar,!1,null,null,null),Lr=Tr.exports,Mr={mixins:[xn],components:{Editor:An,Picker:Sr,Popup:Lr,VerificationCode:Dn,MapMarker:Kn,MapPolygon:Qn,Transfer:ur},watch:{value:function(t,e){var n=this.$refs.aInput;n&&(n.setValue(t),this.$refs.item.clearValidate())}}},qr=Mr,Ir=(n("bb5f"),De(qr,un,cn,!1,null,null,null)),Dr=Ir.exports,Rr={mixins:[ln],components:{Item:Dr},props:{columns:{type:Array},layout:{type:String,default:"inline"}}},$r=Rr,Br=De($r,Ge,We,!1,null,null,null),Vr=Br.exports,Fr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(e,r){return n("a-button-group",{key:"group-"+r,staticStyle:{"margin-right":"16px"}},t._l(e.actions,(function(e){return n("a-button",{key:e.id,attrs:{type:e.primary?"primary":"default",icon:e.icon,disabled:e.disabled},on:{click:function(n){return t.handleClick(e,n)}}},[t._v(" "+t._s(e.name)+" "),"file"===e.action?n("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):t._e()])})),1)})),1)},Ur=[];function Kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zr={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({actions:[e]}):t[r].actions.push(e)})),t}},methods:{handleClick:function(t,e){var n=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),n[0]&&void 0===n[0].click()||e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var n=t.list?t.list:"file";this.$emit("action",t,null,Kr({},n,e))}}},Yr=zr,Hr=De(Yr,Fr,Ur,!1,null,null,null),Gr=Hr.exports,Wr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.createView,t._g(t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.action.key||t.action.method.toLowerCase(),delay:!0,action:t.action}},"component",t.$attrs,!1),t.$listeners))},Zr=[],Jr={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:St(kl["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Xr=Jr,Qr=De(Xr,Wr,Zr,!1,null,null,null),to=Qr.exports,eo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-pagination",t._g(t._b({attrs:{"show-quick-jumper":""}},"a-pagination",t.$attrs,!1),t.$listeners))},no=[],ro={},oo=De(ro,eo,no,!1,null,null,null),io=oo.exports,ao=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.editable&&["write","updateonly"].includes(t.schema.access)?n("Item",{attrs:{formModel:t.editRow,prop:t.schema.name,schema:t.schema,params:{},labelType:!1},on:{change:function(e){return t.$emit("change",e)},fill:function(e){return t.$emit("fill",e)}},model:{value:t.editValue,callback:function(e){t.editValue=e},expression:"editValue"}}):t.component?n(t.component,t._b({tag:"component",attrs:{text:t.text}},"component",t.$props,!1)):t.script?n("span",{domProps:{innerHTML:t._s(t.text)}}):"title"===t.schema.display?n("a",{on:{click:function(e){return t.$emit("profile")}}},[t._v(" "+t._s(t.text)+" ")]):n("span",[t._v(t._s(t.text))])],1)},so=[];function lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function uo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lo(Object(n),!0).forEach((function(e){co(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function co(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fo={mixins:[Me],components:{Item:Dr},props:["editable","value","row","schema","mode","viewURL","idName","vid"],data:function(){return{component:null,script:null,editValue:this.value,editRow:uo({},this.row)}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)}},created:function(){var t=this;if(this.schema&&this.schema.format){var e=this.schema.format.slice(0,8);"function"===e?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid"],data:function(){return{model:{}}},methods:{profile:function(){t.$emit("profile")}},template:this.schema.format}}},watch:{value:function(t,e){t!==e&&(this.editValue=t)}}},po=fo,ho=De(po,ao,so,!1,null,null,null),mo=ho.exports;function vo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vo(Object(n),!0).forEach((function(e){go(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function go(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bo={mixins:[Nt,Ct,zt,Ne,Me,Ut,Kt],components:yo(yo(yo({},He),kl),{},{FilterForm:Vr,ActionGroup:Gr,ActionView:to,PaginationSize:io,Popup:Lr,Cell:mo})},wo=bo,_o=(n("6ea4"),De(wo,Pt,At,!1,null,null,null)),xo=_o.exports,ko=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.actioning}},[n(t.layout,{tag:"component",scopedSlots:t._u([{key:"actions-none",fn:function(){return[n("ActionGroup",{attrs:{actions:t.backActions},on:{action:t.handleAction}}),n("ActionGroup",{attrs:{actions:t.navActions},on:{action:t.handleAction}})]},proxy:!0},t.actions.length?{key:"actions-single",fn:function(){return[n("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[n("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0}],null,!0)},[n("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.profile}},[t.profile?n("profile-"+(t.configs["profile.widget"]||"normal"),{tag:"component",attrs:{groups:t.groups,columns:t.columns,subviews:t.subviews,loading:t.loading,profile:t.profile,column:t.parentIds?1:2},scopedSlots:t._u([{key:"cell",fn:function(e){var r=e.value,o=e.column;return[n("Cell",{attrs:{row:t.profile,schema:o,value:r}})]}},{key:"action",fn:function(){return[n("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}],null,!1,1366521354)}):t._e()],1),t.actionViewVisible?n("Popup",{attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?n("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult},on:{commit:t.commitActionView}}):t._e(),t.action.params&&t.action.params.autofill?n("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[n("a-col",[n("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),n("a-col",[n("a-space",[n("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),n("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1)],1)},Oo=[];function Eo(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function jo(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Eo(i,r,o,a,s,"next",t)}function s(t){Eo(i,r,o,a,s,"throw",t)}a(void 0)}))}}var So={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var t=this.model.attrs.filter((function(t){return!["all"].includes(t.hidden)&&"model"!==t.metaType&&"link"!==t.type}));return t},subviews:function(){var t=this;return this.model.attrs.filter((function(e){var n=e.params;n=void 0===n?{}:n;var r=n.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!r||Ht(r,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,n){var r=t.length-1;e.group||!n?t.push({name:e.group,columns:[e]}):t[r].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,n=this.profileId,r=this.routeId,o=this.findAll;return t?t[e]:n||r||o[0]&&o[0][e]},profile:function(){var t=this.values||this.findOne(this.id)||null;return this.params.$parent&&(t.$parent=this.params.$parent),t},next:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e+1]},previous:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(t){this.parentIds||"page"!==this.mode?this.$emit("profile",t):this.$router.replace({params:{id:t[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var t=arguments,e=this;return jo(f.a.mark((function n(){var r,o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]&&t[0],n.next=3,e.loadData({key:e.id,mute:r});case 3:return o=n.sent,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var t=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(e){t.routeId=e}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}},Po=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(e,r){return n("Descriptions",{key:"g-"+r,staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[e.name?n("div",{attrs:{slot:"title"},slot:"title"},[n("strong",[t._v(t._s(e.name))])]):t._e(),t._l(e.columns,(function(e){return n("DescriptionsItem",{key:e.name,attrs:{span:e.column?e.column/12:1,label:e.alias||e.name,tooltip:e.legend}},[t._t("cell",null,{value:t.profile[e.name],column:e})],2)}))],2)})),1),t.tabs.length?n("a-card",{attrs:{size:"small",type:"inner"}},[n("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(e,r){return n("a-tab-pane",{key:String(r),attrs:{tab:e.tab}},["link"===e.type?n("Frame",{attrs:{url:t.templateURL(e.value,t.profile)}}):n("keep-alive",[n(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:(t.parentIds||[]).concat([t.id]),pageKey:t.pageKey,viewKey:e.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Ao=[],No={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},Co=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},To=[],Lo={},Mo=Lo,qo=De(Mo,Co,To,!1,null,null,null),Io=qo.exports;function Do(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ro=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=[],o=e,i=t.filter((function(t){var e=t.componentOptions||{Ctor:{}},n=e.Ctor.options;return!!n&&n.DESCRIPTIONS_ITEM}));return i.forEach((function(t,a){var s=t.componentOptions.propsData.span||1;if(a===i.length-1)return r.push(t),void n.push(r);s<o?(o-=s,r.push(t)):(r.push(t),n.push(r),o=e,r=[])})),n},$o={DescriptionsItem:No,components:{Row:Io},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(t){var e,n=this.title,r=this.bordered,o=this.size,i=this.colon,a=this.layout,s=this.inline,l=this.column,u=this.$slots,c=this.profile,f=Ro(u.default,l);return t("div",{class:(e={"ant-descriptions":!0},Do(e,"ant-descriptions-".concat(o),!0),Do(e,"ant-descriptions-bordered",!!r),Do(e,"ant-descriptions-profile",!!c),e)},[n&&t("div",{class:"ant-descriptions-title"},[n]),!n&&u.title&&t("div",{class:"ant-descriptions-title"},[u.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[f.map((function(e){return"vertical"===a?[t(Io,[" ",e.map((function(e){var n=e.componentOptions.propsData,r=n.span,o=n.label,i=n.align,a=n.tooltip;return t("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:r}},a?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[a])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),t(Io,[" ",e.map((function(e){var n=e.componentOptions.propsData,r=n.span,o=n.align;return t("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:r}},[e])}))," "])]:t(Io,[" ",e.map((function(e){var n=e.componentOptions.propsData,o=n.label,a=n.span,l=n.align,u=n.tooltip;return r||!s?[t("th",{class:"ant-descriptions-item-label"},u?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":l,"white-space":"pre-wrap"},attrs:{colSpan:a?2*a-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:a},style:{"text-align":l}},u?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])]:[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])])])},renderError:function(){}},Bo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-spin",{attrs:{spinning:t.loading,delay:50}},[n("iframe",{style:{height:t.height},attrs:{frameborder:"0",src:""+t.url,width:"100%"},on:{load:t.handleLoad}})])},Vo=[],Fo={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},Uo=Fo,Ko=De(Uo,Bo,Vo,!1,null,null,null),zo=Ko.exports;function Yo(t){return Zo(t)||Wo(t)||Go(t)||Ho()}function Ho(){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 Go(t,e){if(t){if("string"===typeof t)return Jo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jo(t,e):void 0}}function Wo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Zo(t){if(Array.isArray(t))return Jo(t)}function Jo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xo(Object(n),!0).forEach((function(e){ti(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ti(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ei,ni,ri=$o.DescriptionsItem,oi={components:Qo({Descriptions:$o,DescriptionsItem:ri,Frame:zo},kl),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Yo(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Yo(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return Wt(t,e)}},computed:{tabs:function(){return this.views.map((function(t,e){return Qo(Qo({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:St(kl.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))}},watch:{profile:function(){this.views=Yo(this.subviews),this.id=this.view.id}}},ii=oi,ai=De(ii,Po,Ao,!1,null,null,null),si=ai.exports,li={},ui=De(li,ei,ni,!1,null,null,null),ci=ui.exports,fi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-row",[n("a-col",{attrs:{span:3}},[n("a-anchor",{attrs:{affix:t.affix,getContainer:t.getContainer,offsetTop:t.view.configs["profile.tile.offsetTop"]&&Number(t.view.configs["profile.tile.offsetTop"])||0},on:{change:t.handleChange,click:t.handleClick}},[t._l(t.groups,(function(t,e){return n("a-anchor-link",{key:"anchor-g-"+e,attrs:{href:"#profile-tile-group-"+e,title:t.name}})})),t._l(t.tabs,(function(t,e){return n("a-anchor-link",{key:"anchor-t-"+e,attrs:{href:"#profile-tile-tab-"+e,title:t.tab}})}))],2)],1),n("a-col",{attrs:{span:21}},[n("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(e,r){return n("a-card",{key:"g-"+r,staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-"+r,title:e.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),n("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},t._l(e.columns,(function(e){return n("DescriptionsItem",{key:e.name,attrs:{span:e.column?e.column/12:1,label:e.alias||e.name,tooltip:e.legend}},[t._t("cell",null,{value:t.profile[e.name],column:e})],2)})),1)],1)})),1),t._l(t.tabs,(function(e,r){return n("a-card",{key:String(r),staticClass:"gs-card",attrs:{tab:e.tab,size:"small",id:"profile-tile-tab-"+r,title:e.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===e.type?n("Frame",{attrs:{url:t.templateURL(e.value,t.profile)}}):n("keep-alive",[n(t.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:(t.parentIds||[]).concat([t.id]),pageKey:t.pageKey,viewKey:e.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},pi=[];function hi(t){return yi(t)||vi(t)||mi(t)||di()}function di(){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 mi(t,e){if(t){if("string"===typeof t)return gi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gi(t,e):void 0}}function vi(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yi(t){if(Array.isArray(t))return gi(t)}function gi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bi(Object(n),!0).forEach((function(e){_i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xi=$o.DescriptionsItem,ki={components:wi({Descriptions:$o,DescriptionsItem:xi,Frame:zo},kl),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:hi(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&hi(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0}},methods:{handleChange:function(t){},templateURL:function(t,e){return Wt(t,e)},handleClick:function(t,e){t.preventDefault()},getContainer:function(){var t=this.container&&this.container.$refs.container;return t&&t.$el||t||window}},computed:{tabs:function(){return this.views.map((function(t,e){return wi(wi({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:St(kl.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))}},watch:{profile:function(){this.views=hi(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Oi=ki,Ei=De(Oi,fi,pi,!1,null,null,null),ji=Ei.exports,Si={ProfileNormal:si,ProfilePortal:ci,ProfileTile:ji};function Pi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ai(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pi(Object(n),!0).forEach((function(e){Ni(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ni(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ci={mixins:[Nt,Ct,zt,Ne,Me,So],components:Ai({ActionGroup:Gr,ActionView:to,Popup:Lr,Cell:mo},Si)},Ti=Ci,Li=De(Ti,ko,Oo,!1,null,null,null),Mi=Li.exports,qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout-view-blank",{tag:"component"},[t.commitResult.template&&t.commitResult.data?n("a-result",{attrs:{status:"success",title:t.message}},[n(t.commitResult,{tag:"component"})],1):n(t.widget,t._g(t._b({tag:"component",attrs:{action:t.action,columns:t.columns,params:t.params}},"component",t.$attrs,!1),t.$listeners))],1)},Ii=[],Di={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ri={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},computed:{columns:function(){var t=this.action,e=this.params,n=this.model,r=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:n.attrs?n.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!o.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Di[r].includes(t.access)&&!o.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},rules:function(){}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},$i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{ref:"form",attrs:{rules:t.rules,model:t.actionModel}},[n("a-row",{attrs:{gutter:24}},t._l(t.columns,(function(e){return n("a-col",{key:e.name,staticStyle:{"min-height":"0"},attrs:{span:e.column||12}},[n("Item",{attrs:{formModel:t.actionModel,prop:e.name,schema:e,params:t.params},on:{change:function(n){return t.handleItemChange(n,e)},fill:function(n){return t.handleItemFill(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[col.name]"}})],1)})),1)],1)},Bi=[],Vi={mixins:[ln],components:{Item:Dr}},Fi=Vi,Ui=De(Fi,$i,Bi,!1,null,null,null),Ki=Ui.exports,zi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-upload",{attrs:{multiple:"",beforeUpload:t.beforeUpload,showUploadList:!1}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.fileList,(function(e,r){return n("div",{key:r,staticClass:"form-file-upload"},[n("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[n("a-col",["uploading"===e.status?n("a-icon",{attrs:{type:"loading"}}):"done"===e.status?n("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(e.file.name)+" ")],1),n("a-col",[e.status?t._e():n("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(r)}}})],1)],1)],1)}))],2)},Yi=[];function Hi(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Gi(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Hi(i,r,o,a,s,"next",t)}function s(t){Hi(i,r,o,a,s,"throw",t)}a(void 0)}))}}var Wi={mixins:[ln],data:function(){return{fileList:[]}},methods:{handleRemove:function(t){var e=this.fileList.slice();e.splice(t,1),this.fileList=e},beforeUpload:function(t){return this.fileList.push({file:t,status:""}),!1},handleSubmit:function(){var t=this;return Gi(f.a.mark((function e(){var n;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(n&&n.length>1)){e.next=5;break}return e.abrupt("return",t.$message.error("请选择一条文件进行上传"));case 5:t.handleCommit();case 6:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Gi(f.a.mark((function e(){var n,r,o,i,a,s,l,u,c,p,h,d;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:d=function(){return d=Gi(f.a.mark((function t(e){var n,d,m;return f.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",n=o.key,d=o.method,m=new FormData,m.append("file",e.file),a&&m.append("data[".concat(i,"]"),a[i]),t.next=7,r({data:m,key:n,method:d,mute:!0});case 7:p++,e.status="done",p>=c.length?(s(),l(),u.success("上传完成")):h(c[p]);case 10:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)},h=function(t){return d.apply(this,arguments)},n=t.view.view,r=n.saveData,o=n.action,i=n.idName,a=n.actionModel,s=n.closeActionView,l=n.load,u=n.$message,c=t.fileList,p=0,h(c[p]);case 6:case"end":return e.stop()}}),e)})))()}}},Zi=Wi,Ji=De(Zi,zi,Yi,!1,null,null,null),Xi=Ji.exports,Qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Picker",t._g(t._b({attrs:{viewKey:t.action.key||t.action.method.toLowerCase(),schema:t.action,params:{filters:t.pickerFilter},pickerMode:t.pickerMode},on:{selected:t.handleViewPickerSelected}},"Picker",t.$attrs,!1),t.$listeners))},ta=[];function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(n),!0).forEach((function(e){ra(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ra(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oa={mixins:[ln],components:{Picker:Sr},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,n={};if(!e)return null;for(var r in e){var o=e[r].split(".").reduce((function(t,e){return t&&t[e]||void 0}),na(na({},this.params),this.actionModel));n[r]=void 0===o?e[r]:o}return n},pickerMode:function(){var t=this.action.params;t=void 0===t?{}:t;var e=t.multiple;return e?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(t){var e=this.configs["picker.view.value"],n=e;this.actionModel=t.map((function(t){return ra({},n,t[e])}))}}},ia=oa,aa=De(ia,Qi,ta,!1,null,null,null),sa=aa.exports,la=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(e){return n("a-step",{key:e.title,attrs:{title:e.title}},["核心解读"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===e.title?n("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):t._e()],1)})),1),Object.keys(t.algorithmList).length&&t.current<t.steps.length-1?n("div",{staticClass:"algorithm-preview"},[n("strong",[t._v("算法集合预览:")]),t._v(t._s(t.algorithmList)+" ")]):t._e(),n("a-spin",{attrs:{spinning:t.loading}},[0===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),1===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),2===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),3===t.current?n("div",{staticClass:"steps-content"},[n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),n("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[n("a-tabs",{attrs:{defaultActiveKey:t.algorithmData[0].children[0].name+"0","tab-position":"left"}},t._l(t.algorithmData[0].children,(function(e,r){return n("a-tab-pane",{key:e.name+r.toString()},[n("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(e.name)+" "),n("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(e.children)}})],1),n("CheckboxGroup",{attrs:{title:e.name,data:e.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(n){return t.handleChange(n,t.steps[t.current].title,e.name,r)}}})],1)})),1)]:n("a-empty")],2):t._e(),4===t.current?n("div",{staticClass:"steps-content"},[n("AlgorithmForm",{attrs:{algorithmList:t.algorithmList},on:{close:function(e){return t.$emit("close")}}})],1):t._e()]),n("div",{staticClass:"steps-action"},[t.current>0?n("a-button",{staticStyle:{"margin-right":"8px"},on:{click:t.prev}},[t._v(" 上一步 ")]):t._e(),t.current<t.steps.length-1?n("a-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v(" 下一步 ")]):t._e()],1)],1)},ua=[];function ca(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function fa(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ca(i,r,o,a,s,"next",t)}function s(t){ca(i,r,o,a,s,"throw",t)}a(void 0)}))}}var pa={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var n=e.key,r=e.rows;t.data[n]?t.data[n]=r:S.a.set(t.data,n,r)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r}},actions:{loadData:function(t){var e=arguments;return fa(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,s=void 0===a?"get":a,l=i.key,u=i.query,r("setLoading",!0),n.prev=4,n.next=7,k[s](u?"/api/".concat(l?"".concat(l):"","?").concat(E.a.stringify(u)):"/api/".concat(l?"".concat(l):""));case 7:c=n.sent,c.data&&l&&r("setData",{rows:c.data,key:l}),n.next=14;break;case 11:n.prev=11,n.t0=n["catch"](4),o("handleError",n.t0);case 14:return n.prev=14,r("setLoading",!1),n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return fa(f.a.mark((function e(){var n,r,o,i;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setLoading",!0),e.prev=2,e.next=5,k.get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&n("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),r("handleError",e.t0);case 13:return e.prev=13,n("setLoading",!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))()},getResult:function(t){var e=arguments;return fa(f.a.mark((function n(){var r,o,i,a,s,l;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,s=i.params,r("setLoading",!0),n.prev=4,n.next=7,k.post(a,s,{});case 7:if(l=n.sent,!l||!l.data){n.next=10;break}return n.abrupt("return",l.data);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](4),o("handleError",n.t0);case 15:return n.prev=15,r("setLoading",!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[4,12,15,18]])})))()},handleError:function(t,e){var n=t.commit;if(!e.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=e.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";n("setStatus",{status:o,message:a})}}};function ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function da(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ha(Object(n),!0).forEach((function(e){ma(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ma(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}for(var va=Object(p["createNamespacedHelpers"])("m-algorithm"),ya=va.mapState,ga=va.mapActions,ba=["loading","data","message"],wa=["loadData","loadDistrict","getResult"],_a={computed:da({},ya(ba)),methods:da({},ga(wa)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",pa)}},xa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"algorithm-checkbox"},[n("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},t._l(t.data,(function(e){return n("a-col",{key:e.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":e.checked},attrs:{span:6}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:20}},[n("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:e.checked},on:{change:function(n){return t.onCheckChange(n,e)}}},[n("a-tooltip",[n("template",{slot:"title"},[t._v(" "+t._s(e.name)+" ")]),t._v(" "+t._s(e.name)+" ")],2)],1)],1),n("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(n){return t.showDrawer(e.read_id)}}},[e.checked?n("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):t._e()],1)],1)],1)})),1),n("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:t.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(e){t.visible=!1}}},[n("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("解读详情")]),n("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[n("DescriptionsItem",{attrs:{label:"编码"}},[t._v(t._s(t.algorithmDetail.code))]),n("DescriptionsItem",{attrs:{label:"名称"}},[t._v(t._s(t.algorithmDetail.name))]),n("DescriptionsItem",{attrs:{label:"解读分类"}},[t._v(t._s(t.algorithmDetail.classify))]),n("DescriptionsItem",{attrs:{label:"算法类别"}},[t._v(t._s(t.algorithmDetail.type))]),n("DescriptionsItem",{attrs:{label:"作者"}},[t._v(t._s(t.algorithmDetail.author))]),n("DescriptionsItem",{attrs:{label:"标签"}},[t._v(t._s(t.algorithmDetail.core_basis))]),n("DescriptionsItem",{attrs:{label:"解读维度"}},[t._v(t._s(t.algorithmDetail.latitude))]),n("DescriptionsItem",{attrs:{label:"解读赋值"}},[t._v(t._s(t.algorithmDetail.app_product))])],1),n("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("参数配置")]),n("a-tabs",{attrs:{type:"editable-card"},on:{edit:t.onEdit},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(e,r){return n("a-tab-pane",{key:e.key,attrs:{tab:e.title+"_"+(r+1),closable:0!==r}},[n("AlgorithmParams",{attrs:{algorithmParams:e.algorithmParams,algorithmParamsKey:e.key},on:{submit:t.submitForm}})],1)})),1),n("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[n("a-button",{style:{marginRight:"8px"},on:{click:function(e){t.visible=!1}}},[t._v(" 取消 ")]),n("a-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitParams(t.copyPaneParams)}}},[t._v(" 确定 ")])],1)],1)],1)},ka=[],Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{ref:"dynamicValidateForm",attrs:{model:t.dynamicValidateForm}},[t._l(t.dynamicValidateForm.algorithms,(function(e,r){return n("a-form-model-item",{key:e.key,attrs:{prop:"algorithms."+r+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[n("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(e){return t.submitForm("dynamicValidateForm")}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"domain.value"}}),n("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===t.dynamicValidateForm.algorithms.length},on:{click:function(n){return t.removeDomain(e)}}})],1)})),n("a-form-model-item",[n("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:t.addDomain}},[n("a-icon",{attrs:{type:"plus"}}),t._v(" 增加 ")],1)],1),n("a-form-model-item",[n("a-button",{on:{click:function(e){return t.resetForm("dynamicValidateForm")}}},[t._v(" 重置 ")])],1)],2)},Ea=[],ja={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.setParams()}))},setParams:function(){var t=this.dynamicValidateForm.algorithms.map((function(t){return t.value})),e={key:this.algorithmParamsKey,algorithmParams:t};this.$emit("submit",e)},resetForm:function(t){this.$refs[t].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(t){var e=this.dynamicValidateForm.algorithms.indexOf(t);-1!==e&&this.dynamicValidateForm.algorithms.splice(e,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(t){this.dynamicValidateForm.algorithms=t}}},Sa=ja,Pa=De(Sa,Oa,Ea,!1,null,null,null),Aa=Pa.exports,Na=$o.DescriptionsItem,Ca={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:$o,DescriptionsItem:Na,AlgorithmParams:Aa},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var t=this;return this.data.find((function(e){return e.read_id===t.algorithmId}))||{}}},methods:{onCheckChange:function(t,e){if(e.checked=t.target.checked,e.checked)this.checkedList.push(e);else{var n=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(n,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var n=this.checkedList.find((function(e){return e.read_id===t})).values;if(n.length)this.panes=n.map((function(t,n){var r={key:"".concat(e.algorithmId).concat(n),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return r}));else{var r={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(r),this.panes=[r]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(t){var e=t.key;this.paneParams[e]?this.paneParams[e]=t.algorithmParams:this.$set(this.paneParams,e,t.algorithmParams),this.setParams()},setParams:function(){for(var t in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===t.indexOf(this.algorithmId)&&delete this.copyPaneParams[t]},submitParams:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var n=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(n.values=Object.values(e)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(t,e){this[e](t)},add:function(){var t=this.panes,e=t.length?t.length:0,n="".concat(this.algorithmId).concat(e),r={title:"参数",algorithmParams:[],key:n};this.submitForm(r),this.panes.push(r),this.panes=t,this.activeKey=n},remove:function(t){delete this.paneParams[t],this.setParams();var e,n=this.activeKey;this.panes.forEach((function(n,r){n.key===t&&(e=r-1)}));var r=this.panes.filter((function(e){return e.key!==t}));r.length&&n===t&&(n=e>=0?r[e].key:r[0].key),this.panes=r,this.activeKey=n}},watch:{}},Ta=Ca,La=(n("d28d"),De(Ta,xa,ka,!1,null,null,null)),Ma=La.exports,qa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-row",{attrs:{type:"flex"}},[n("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[n("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[t._v(" 可 "),n("a",{on:{click:function(e){t.pickerVisible=!0}}},[t._v(" 选择系统中现有命例 ")]),t._v(" ,快速填充命例信息。 ")]),n("a-form-model",{ref:"profileForm",attrs:{layout:t.formLayout,model:t.profile,rules:t.profileRules}},[n("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:t.profile.nick_name,callback:function(e){t.$set(t.profile,"nick_name",e)},expression:"profile.nick_name"}})],1),n("a-form-model-item",{attrs:{label:"性别","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.gender,callback:function(e){t.$set(t.profile,"gender",e)},expression:"profile.gender"}},[n("a-radio",{attrs:{value:"male"}},[t._v("男")]),n("a-radio",{attrs:{value:"female"}},[t._v("女")])],1)],1),n("a-form-model-item",{attrs:{label:"公历","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{on:{change:t.handleLunarChange},model:{value:t.profile.is_lunar,callback:function(e){t.$set(t.profile,"is_lunar",e)},expression:"profile.is_lunar"}},[n("a-radio",{attrs:{value:!1}},[t._v("公历")]),n("a-radio",{attrs:{value:!0}},[t._v("农历")])],1)],1),t.hasDaylight?n("a-form-model-item",{attrs:{label:"夏令时","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.is_day_light,callback:function(e){t.$set(t.profile,"is_day_light",e)},expression:"profile.is_day_light"}},[n("a-radio",{attrs:{value:!0}},[t._v("是")]),n("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),n("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:t.profile.birthday,callback:function(e){t.$set(t.profile,"birthday",e)},expression:"profile.birthday"}}),n("DateTimePicker",{attrs:{slot:"content",isLunar:t.profile.is_lunar},on:{change:t.handleDateTimeChange},slot:"content"})],1)],1),t.hasLeap?n("a-form-model-item",{attrs:{label:"是否为闰月","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.is_leap,callback:function(e){t.$set(t.profile,"is_leap",e)},expression:"profile.is_leap"}},[n("a-radio",{attrs:{value:!0}},[t._v("是")]),n("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),n("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-radio-group",{model:{value:t.profile.is_twins,callback:function(e){t.$set(t.profile,"is_twins",e)},expression:"profile.is_twins"}},[n("a-radio",{attrs:{value:!0}},[t._v("是")]),n("a-radio",{attrs:{value:!1}},[t._v("否")])],1),t.profile.is_twins?n("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:t.profile.birth_num,callback:function(e){t.$set(t.profile,"birth_num",e)},expression:"profile.birth_num"}}):t._e()],1),n("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-cascader",{attrs:{options:t.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:t.handleDistrictChange},model:{value:t.profile.place,callback:function(e){t.$set(t.profile,"place",e)},expression:"profile.place"}})],1),n("a-form-model-item",{attrs:{label:"算法","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[t._v(" "+t._s(t.profile.code)+" ")]),n("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:t.profile.productCode,callback:function(e){t.$set(t.profile,"productCode",e)},expression:"profile.productCode"}})],1),n("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:t.profile.productName,callback:function(e){t.$set(t.profile,"productName",e)},expression:"profile.productName"}})],1),t.showMore?t._e():n("p",{staticStyle:{"text-align":"center"}},[n("a-button",{attrs:{type:"link"},on:{click:function(e){t.showMore=!0}}},[t._v("更多设置")])],1),t.showMore?[n("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:t.profile.first_name,callback:function(e){t.$set(t.profile,"first_name",e)},expression:"profile.first_name"}})],1),n("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:t.profile.last_name,callback:function(e){t.$set(t.profile,"last_name",e)},expression:"profile.last_name"}})],1),n("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.beginTimeVisible,callback:function(e){t.beginTimeVisible=e},expression:"beginTimeVisible"}},[n("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:t.profile.begin_input_time,callback:function(e){t.$set(t.profile,"begin_input_time",e)},expression:"profile.begin_input_time"}}),n("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.begin_input_time=e}},slot:"content"})],1)],1),n("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.endTimeVisible,callback:function(e){t.endTimeVisible=e},expression:"endTimeVisible"}},[n("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:t.profile.end_input_time,callback:function(e){t.$set(t.profile,"end_input_time",e)},expression:"profile.end_input_time"}}),n("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.end_input_time=e}},slot:"content"})],1)],1),n("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:t.profile.yicuojin,callback:function(e){t.$set(t.profile,"yicuojin",e)},expression:"profile.yicuojin"}})],1),n("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:t.profile.wenwanggua,callback:function(e){t.$set(t.profile,"wenwanggua",e)},expression:"profile.wenwanggua"}})],1),n("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(e){return t.profile.wenwanggualeixing=e}}},t._l(t.wenwangguaType,(function(e){return n("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(e)+" ")])})),1)],1),n("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:t.profile.daliurenzhanshi,callback:function(e){t.$set(t.profile,"daliurenzhanshi",e)},expression:"profile.daliurenzhanshi"}})],1),n("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.nowTimeVisible,callback:function(e){t.nowTimeVisible=e},expression:"nowTimeVisible"}},[n("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:t.profile.now_time,callback:function(e){t.$set(t.profile,"now_time",e)},expression:"profile.now_time"}}),n("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.now_time=e}},slot:"content"})],1)],1),n("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:t.profile.test_result,callback:function(e){t.$set(t.profile,"test_result",e)},expression:"profile.test_result"}})],1),n("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[n("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:t.profile.disc_result,callback:function(e){t.$set(t.profile,"disc_result",e)},expression:"profile.disc_result"}})],1)]:t._e()],2),n("div",{staticStyle:{"text-align":"center"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("0")}}},[t._v("立即测算")])],1)],1),n("a-col",{attrs:{span:12}},[t.codeValue?n("CodeEditor",{attrs:{width:"100%",value:t.codeValue}}):n("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[n("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),n("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:t.confirm},model:{value:t.pickerVisible,callback:function(e){t.pickerVisible=e},expression:"pickerVisible"}},[n("ProfileSelect",{on:{select:t.handleProfileSelect}})],1),n("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(e){return t.submit("1")}}},[t._v(" 发布产品 ")])],1)},Ia=[],Da={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),n=t&&t.filter((function(t){return"2"===t.level})),r=t&&t.filter((function(t){return"3"===t.level}));return e.map((function(t){return{value:t.district_id,label:t.district_name,children:n.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,children:r.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,time_zone:t.time_zone}}))}}))}}))||[]}}},Ra=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:t.width,height:t.height}})},$a=[],Ba=n("2364"),Va=null,Fa={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(t){Va&&Va.dispose();var e=Ba["Uri"].parse("json://grid/settings.json");Va=Ba["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},Ua=Fa,Ka=De(Ua,Ra,$a,!1,null,null,null),za=Ka.exports,Ya=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[n("a-col",[n("ul",t._l(t.years,(function(e,r){return n("li",{key:r,class:{active:t.value.yearIndex===r},on:{click:function(e){return t.change("year",r)}}},[t._v(" "+t._s(e)+"年 ")])})),0)]),n("a-col",[n("ul",t._l(t.months,(function(e,r){return n("li",{key:e,class:{active:t.value.monthIndex===r},on:{click:function(e){return t.change("month",r)}}},[t._v(" "+t._s(e)+"月 ")])})),0)]),n("a-col",[n("ul",t._l(t.days,(function(e,r){return n("li",{key:e,class:{active:t.value.dayIndex===r},on:{click:function(e){return t.change("day",r)}}},[t._v(" "+t._s(e)+"日 ")])})),0)]),n("a-col",[n("ul",t._l(t.hours,(function(e,r){return n("li",{key:e,class:{active:t.value.hourIndex===r},on:{click:function(e){return t.change("hour",r)}}},[t._v(" "+t._s(e)+"时 ")])})),0)]),n("a-col",[n("ul",t._l(t.minutes,(function(e,r){return n("li",{key:e,class:{active:t.value.minuteIndex===r},on:{click:function(e){return t.change("minute",r)}}},[t._v(" "+t._s(e)+"分 ")])})),0)])],1)},Ha=[],Ga=[],Wa=[],Za=[],Ja=[],Xa=1901;Xa<=2030;Xa++)Ga.push("".concat(Xa));for(var Qa=1;Qa<=12;Qa++)Wa.push(Qa<10?"0".concat(Qa):"".concat(Qa));for(var ts=0;ts<=23;ts++)Za.push(ts<10?"0".concat(ts):"".concat(ts));for(var es=0;es<=59;es++)Ja.push(es<10?"0".concat(es):"".concat(es));var ns={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Ga,year:"1901",months:Wa,month:"01",day:"01",hours:Za,hour:"00",minutes:Ja,minute:"00"}},computed:{days:function(){var t=[];if(this.isLunar)for(var e=1;e<=30;e++)t.push(e<10?"0".concat(e):"".concat(e));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var n=1;n<=31;n++)t.push(n<10?"0".concat(n):"".concat(n));else if(["04","06","09","11"].includes(this.month))for(var r=1;r<=30;r++)t.push(r<10?"0".concat(r):"".concat(r));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)t.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)t.push(i<10?"0".concat(i):"".concat(i));return t},value:function(){var t=this.years.indexOf(this.year),e=this.months.indexOf(this.month),n=this.days.indexOf(this.day),r=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:n,hourIndex:r,minuteIndex:o}}},created:function(){},methods:{change:function(t,e){"year"===t?this.year=this.years[e]:"month"===t?this.month=this.months[e]:"day"===t?this.day=this.days[e]:"hour"===t?this.hour=this.hours[e]:"minute"===t&&(this.minute=this.minutes[e]);var n="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",n)}}},rs=ns,os=(n("427d"),De(rs,Ya,Ha,!1,null,null,null)),is=os.exports,as=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:t.handleNameChange},model:{value:t.nickName,callback:function(e){t.nickName=e},expression:"nickName"}}),n("a-table",{attrs:{columns:t.columns,loading:t.loading,"data-source":t.userCase(),rowSelection:t.rowSelection,pagination:{current:t.getPagination?parseInt(t.getPagination.current):1,total:t.getPagination?parseFloat(t.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:t.handleChange},scopedSlots:t._u([{key:"gender",fn:function(e){return n("span",{},[t._v(" "+t._s("female"===e?"女":"男")+" ")])}}])})],1)},ss=[],ls=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],us={mixins:[_a],data:function(){return{columns:ls,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(t){this.$emit("select",t)},handleChange:function(t){this.currentPage=t.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(t){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},cs=us,fs=De(cs,as,ss,!1,null,null,null),ps=fs.exports;function hs(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ds(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){hs(i,r,o,a,s,"next",t)}function s(t){hs(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ms=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],vs={mixins:[_a,Da],props:["algorithmList"],components:{CodeEditor:za,DateTimePicker:is,ProfileSelect:ps},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:ms,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(t){var e=this;return ds(f.a.mark((function n(){return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var n=ds(f.a.mark((function n(r){var o;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=n.sent,!o||!o.data||"0"!==t){n.next=7;break}return e.codeValue=[JSON.parse(o.data)],n.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),n.next=11;break;case 10:return n.abrupt("return",!1);case 11:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},handleDistrictChange:function(t,e){e&&e.length?(this.profile.province=e[0].label,this.profile.city=e[1].label,this.profile.district=e[2].label,this.profile.time_zone=e[e.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(t){this.profile.birthday=t,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(t){return new Date(t).getTime()},bindHasLunar:function(t){var e=t?t.substring(4,0):"",n=t?t.substring(5,7):"",r=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(n===r&&"00"!==r?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(t){if(""!==t){var e=t.replace(/-/g,"/"),n=this.timeStamp(e),r=[];r=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],r.length&&(n>=r[0].start&&n<=r[0].end||n>=r[1].start&&n<=r[1].end||n>=r[2].start&&n<=r[2].end||n>=r[3].start&&n<=r[3].end||n>=r[4].start&&n<=r[4].end||n>=r[5].start&&n<=r[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(t){var e=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&e[t-1900]},handleProfileSelect:function(t){this.systemProfile={},this.systemProfile=t},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(t,e,n){var r=this.$store.state["m-algorithm"].district,o=r.find((function(e){return e.district_name===t}))?r.find((function(e){return e.district_name===t})).district_id:"",i=r.find((function(t){return t.district_name===e}))?r.find((function(t){return t.district_name===e})).district_id:"",a=r.find((function(t){return t.district_name===n}))?r.find((function(t){return t.district_name===n})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},ys=vs,gs=De(ys,qa,Ia,!1,null,null,null),bs=gs.exports;function ws(t){return Os(t)||ks(t)||xs(t)||_s()}function _s(){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 xs(t,e){if(t){if("string"===typeof t)return Es(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Es(t,e):void 0}}function ks(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Os(t){if(Array.isArray(t))return Es(t)}function Es(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function js(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?js(Object(n),!0).forEach((function(e){Ps(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ps(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var As={mixins:[_a],components:{CheckboxGroup:Ma,AlgorithmForm:bs},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var t=this,e=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,n=e&&e.filter((function(e){return""!==t.search.nameKeyword||""!==t.search.codeKeyword?e.classify===t.type&&-1!==e.name.indexOf(t.search.nameKeyword)&&-1!==e.code.indexOf(t.search.codeKeyword):e.classify===t.type})).map((function(e){var n=Ss(Ss({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===n.read_id&&(t.$set(n,"values",e.values),t.$set(n,"checked",e.checked))})),n})),r=ws(new Set(n&&n.map((function(t){return t.classify})))),o=r&&r.map((function(t){var e=n.filter((function(e){return e.classify===t})),r=ws(new Set(e.map((function(t){return t.type})))),o=r.map((function(t){return{name:t,children:e.filter((function(e){return e.type===t}))}}));return{name:t,children:o}}));return o||[]},algorithmCount:function(){var t=this.defaultCheckedList,e=t.filter((function(t){return"核心解读"===t.classify})).length||0,n=t.filter((function(t){return"描述解读"===t.classify})).length||0,r=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:n,paipanDataCount:r,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],n=[];return t.forEach((function(r){var o=r.code;n=r.values.length>1?r.values.map((function(t,e){var n=e+1,r=1===n?o:n<10?"".concat(o,"_0").concat(n):"".concat(o,"_").concat(n);return[r,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(ws(e),ws(n))})),Object.fromEntries(e)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(t,e,n,r){var o=this;t.forEach((function(t){var e=o.defaultCheckedList.findIndex((function(e){return e.read_id===t.read_id}));-1===e?o.defaultCheckedList=[].concat(ws(o.defaultCheckedList),[t]):o.defaultCheckedList[e]=t}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(t){var e=t.map((function(t){return t.read_id})),n=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return n.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},Ns=As,Cs=(n("69be"),De(Ns,la,ua,!1,null,null,null)),Ts=Cs.exports,Ls=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(e){var r=e.props,o=r.direction,i=r.selectedKeys,a=e.on.itemSelect;return["left"===o?n("a-spin",{attrs:{spinning:t.leftLoding}},[n("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:i.concat(t.checkedKeys),treeData:t.filterTreeNodes},on:{check:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)},select:function(e,n){t.onChecked(e,n,i.concat(t.checkedKeys),a)}}})],1):t._e()]}}])})],1)},Ms=[];function qs(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Is(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){qs(i,r,o,a,s,"next",t)}function s(t){qs(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ds(Object(n),!0).forEach((function(e){$s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bs={mixins:[ln],data:function(){var t=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(e){return e[t.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,n=this.keyName,r=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[n],children:a,disabled:r.includes(i[n])||o&&!Ht(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=Rs(Rs({},this.actionModel),{},$s({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(t){this.checkedKeys=t,this.actionModel=Rs(Rs({},this.actionModel),{},$s({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,n,r){var o=e.node.eventKey;r(o,!this.isChecked(n,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){var t=this;return Is(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()},handleSearch:function(t,e){var n=this,r=null;"left"===t&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=e,n.leftLoding=!1}),1e3))}}},Vs=Bs,Fs=(n("ce11"),De(Vs,Ls,Ms,!1,null,"86cc329c",null)),Us=Fs.exports,Ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-tree",{attrs:{checkable:"",autoExpandParent:t.autoExpandParent,defaultCheckedKeys:t.checkedKeys,treeData:t.treeNodes,checkStrictly:""},on:{check:t.handleCheck}})},zs=[];function Ys(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Hs(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Ys(i,r,o,a,s,"next",t)}function s(t){Ys(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ws(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gs(Object(n),!0).forEach((function(e){Zs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Js={mixins:[ln],data:function(){var t=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(e){return e[t.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,n=this.keyName,r=function t(r){return r.map((function(r){var o;return r._childList&&(o=t(r._childList)),{title:r[e],key:r[n],children:o}}))};return r(t)}},created:function(){this.checkedKeys&&(this.actionModel=Ws(Ws({},this.actionModel),{},Zs({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t){this.actionModel=Ws(Ws({},this.actionModel),{},Zs({},this.valuesName,t.checked))},handleSubmit:function(){var t=this;return Hs(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},Xs=Js,Qs=De(Xs,Ks,zs,!1,null,null,null),tl=Qs.exports,el=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:t.actionModel,rules:t.rules}},[n("a-tabs",{attrs:{"tab-position":"top"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.actionModel.confirm?n("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t.actionModel.flow_action_name?n("a-card",{attrs:{size:"small"}},[n("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[n("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:t.actionModel.flow_action_name,callback:function(e){t.$set(t.actionModel,"flow_action_name",e)},expression:"actionModel.flow_action_name"}},[n("a-radio-button",{attrs:{value:"submit"}},[t._v("审批通过")]),t.allowBack?n("a-radio-button",{attrs:{value:"back"}},[t._v("审批退回")]):t._e()],1)],1),t._l(t.attrs,(function(e){return n("Item",{key:e.name,attrs:{formModel:t.actionModel,prop:e.name,schema:e,required:e.required,params:{}},on:{change:function(n){return t.handleItemChange(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[attr.name]"}})})),n("a-form-model-item",{attrs:{label:"审批意见",prop:"deal_note",size:"small"}},[n("a-textarea",{attrs:{placeholder:"请输入审批或退回意见","auto-size":{minRows:4,maxRows:6}},model:{value:t.actionModel.deal_note,callback:function(e){t.$set(t.actionModel,"deal_note",e)},expression:"actionModel.deal_note"}})],1),"back"===t.actionModel.flow_action_name&&t.backs&&t.backs.length?n("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[n("a-select",t._l(t.backs,(function(e){return n("a-select-option",{key:e.step_id,attrs:{value:e.step_id},model:{value:t.actionModel.back_step,callback:function(e){t.$set(t.actionModel,"back_step",e)},expression:"actionModel.back_step"}},[t._v(" "+t._s(e.step_name)+" ")])})),1)],1):t._e(),t.allowOver?n("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[n("a-switch",{model:{value:t.actionModel.is_over,callback:function(e){t.$set(t.actionModel,"is_over",e)},expression:"actionModel.is_over"}})],1):t._e()],2):t._e(),t.actionModel.flow_action_name?t._e():n("a-card",t._l(t.attrs,(function(e){return n("Item",{key:e.name,attrs:{formModel:t.actionModel,prop:e.name,schema:e,params:{}},on:{change:function(n){return t.handleItemChange(n,e)}},model:{value:t.actionModel[e.name],callback:function(n){t.$set(t.actionModel,e.name,n)},expression:"actionModel[attr.name]"}})})),1),t.todos.length&&"back"!==t.actionModel.flow_action_name&&t.todos[0].todo_actors.length?t._l(t.todos,(function(e,r){return n("a-card",{key:e.todo_id,staticStyle:{"margin-top":"15px"},attrs:{size:"small",title:"后续步骤"}},[n("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-large"},[n("div",{staticClass:"ant-table-content"},[n("div",{staticClass:"ant-table-body"},[n("table",[n("thead",{staticClass:"ant-table-thead"},[n("tr",[n("th",{key:"no"},[n("span",[t._v("序号")])]),n("th",{key:"template_name"},[n("span",[t._v("下一步步骤名称")])]),n("th",{key:"template_desc"},[n("span",[t._v("下一步审批者")])])])]),n("tbody",{staticClass:"ant-table-tbody"},[n("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[n("td",[t._v(t._s(r+1))]),n("td",[n("span",[t._v(t._s(e.current_step.step_name))])]),n("td",[n("a-table",{attrs:{dataSource:e.todo_actors.map((function(t){return t.operator})),rowKey:"actor_id",rowSelection:t.rowSelection,pagination:!1}},[n("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),n("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):t._e()],2):t._e(),n("a-tab-pane",{key:t.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[n("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[n("a-list",{attrs:{itemLayout:"horizontal",dataSource:t.logs},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("a-list-item",{},[n("a-list-item-meta",[n("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(e.step_name)+" - "+t._s(e.operator.actor_name)+" - "+t._s(e.operator.actor_org_name)+" ")]),n("a-avatar",{attrs:{slot:"avatar",src:t.$store.state.app.icon},slot:"avatar"}),n("div",{attrs:{slot:"description"},slot:"description"},[n("div",[t._v(" "+t._s(e.deal_desc)+" ")]),e.deal_note?n("div",[t._v(" 审批意见:"+t._s(e.deal_note)+" ")]):t._e(),n("div",[n("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(e.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),n("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[n("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[n("a-timeline",t._l(t.steps,(function(e,r){return n("a-timeline-item",{key:e.step_id,attrs:{color:t.stepIndex>r?"blue":t.stepIndex===r?"green":"#999"}},[n("span",[t._v(t._s(r+1))]),t._v(". "+t._s(e.step_name)+" "),t.stepIndex>r?n("span",[t._v(" ("+t._s(t.logs[r+t.dealIndex+1]?t.logs[r+t.dealIndex+1].operator.actor_name:"")+") ")]):t._e(),t.stepIndex===r?n("span",[t._v(" "+t._s(t.operatorName)+" ")]):t._e()])})),1)],1)],1),n("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[n("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[n("div",{ref:"graph"})])],1)],1)],1)},nl=[],rl=n("336c"),ol=n.n(rl);function il(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function al(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){il(i,r,o,a,s,"next",t)}function s(t){il(i,r,o,a,s,"throw",t)}a(void 0)}))}}function sl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sl(Object(n),!0).forEach((function(e){ul(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ul(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}ol.a.track(!1);var cl=n("019f"),fl={mixins:[ln],components:{Item:Dr},data:function(){return{actionModel:ll(ll({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1"}},created:function(){var t=this;this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(t){return t.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(e){if(e.next_default_actor&&e.todo_actors){var n=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=n.filter((function(t){return e.next_default_actor===t})),t.actionModel.todo_actors=t.rowSelection.selectedRowKeys}}))},mounted:function(){var t=this;setTimeout((function(){t.renderGraph()}),50)},methods:{handleSelectionChange:function(t){this.rowSelection.selectedRowKeys=t,this.actionModel.todo_actors=t},handleCommit:function(){var t=this;return al(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.todos[0].todo_actors.length||t.actionModel.todo_actors.length||"back"===t.actionModel.flow_action_name){e.next=3;break}return t.$message.error("请选择下一步审批者"),e.abrupt("return");case 3:t.$emit("commit",t.actionModel);case 4:case"end":return e.stop()}}),e)})))()},handleItemChange:function(t,e){var n=this;return al(f.a.mark((function r(){var o,i,a;return f.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.name,!(t instanceof FileList)){r.next=14;break}if(!t[0]){r.next=11;break}return i=new FormData,i.append(o,t[0]),r.next=7,n.$api.post("/upload",i);case 7:a=r.sent,t=a.data.data[o],r.next=12;break;case 11:t=null;case 12:r.next=15;break;case 14:t instanceof Date&&(t=n.moment(t).format("YYYY-MM-DD"));case 15:n.$set(n.actionModel.data,o,t);case 16:case"end":return r.stop()}}),r)})))()},renderGraph:function(){var t=this;ol.a.registerNode("rect",{getPath:function(t){var e=150,n=40;return ol.a.Util.getRectPath(-e/2,-n/2,e,n,10)}});var e={nodes:this.steps.map((function(t,e){return{id:t.step_id,name:t.step_name,stepIndex:e}})),edges:this.steps.slice(1).map((function(e){var n=t.steps.find((function(t){return t.step_id===e.before_step_id}))||t.steps.find((function(t){return t.after_step_id===e.step_id}));return{source:n&&n.step_id,target:e.step_id}}))},n=new ol.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new cl({ranksep:30})],defaultIntersectBox:"rect"});n.node({shape:"rect",label:function(t){return t.name},style:function(e){return{stroke:t.stepIndex>e.stepIndex?"#0285cd":t.stepIndex===e.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),n.edge({style:{endArrow:!0}}),n.read(e)}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var t=this,e=this.steps.findIndex((function(e){return t.lastStepID===e.step_id}));return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?e:e-1},dealIndex:function(){var t=this.logs.map((function(t){return t.deal_status})),e=t.lastIndexOf("withdraw"),n=t.lastIndexOf("back");return e>n?e:n},steps:function(){return this.caseSteps.filter((function(t){return Number(t.valid)}))},attrs:function(){var t=this,e=this.formItems.map((function(t){return t.attr_name}));return this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var n=t.formItems.find((function(t){return t.attr_name===e.name}));return ll(ll({},e),n)}))},operatorName:function(){var t=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?t=this.todos[0].todo_actors.filter((function(t){return"close"!==t.status})).map((function(t){return t.operator_name})):this.logs&&0===this.logs.length&&(t=[this.$store.state.user.name]):t=[this.$store.state.user.name],t.length>0?"(".concat(t.join("、"),")"):""}}},pl=fl,hl=(n("632f"),De(pl,el,nl,!1,null,null,null)),dl=hl.exports,ml={NormalForm:Ki,UploadForm:Xi,PickerViewForm:sa,AlgorithmForm:Ts,PickerTransferForm:Us,PickerTreeForm:tl,WorkflowReport:dl};function vl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vl(Object(n),!0).forEach((function(e){gl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bl={mixins:[Nt,Ct,Ri],components:yl({},ml)},wl=bl,_l=De(wl,qi,Ii,!1,null,null,null),xl=_l.exports,kl={ModelList:xo,ModelProfile:Mi,ModelForm:xl},Ol={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:St(kl["Model".concat(this.modelViewType)])(this.namespace)}}}},El=Ol,jl=De(El,ct,ft,!1,null,null,null),Sl=jl.exports,Pl={components:{ViewBox:Sl},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},Al=Pl,Nl=De(Al,lt,ut,!1,null,null,null),Cl=Nl.exports,Tl={mixins:[st],components:{Views:Cl}},Ll=Tl,Ml=De(Ll,Q,tt,!1,null,null,null),ql=Ml.exports,Il=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout-page-"+t.layout,{tag:"component"},[n("Frame",{attrs:{url:""+t.url}})],1)},Dl=[],Rl={mixins:[st],components:{Frame:zo},props:{url:String},data:function(){return{loading:!0}}},$l=Rl,Bl=De($l,Il,Dl,!1,null,null,null),Vl=Bl.exports,Fl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("keep-alive",[n("router-view")],1)},Ul=[],Kl={},zl=De(Kl,Fl,Ul,!1,null,null,null),Yl=zl.exports;function Hl(t){return Jl(t)||Zl(t)||Wl(t)||Gl()}function Gl(){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 Wl(t,e){if(t){if("string"===typeof t)return Xl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(t,e):void 0}}function Zl(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Jl(t){if(Array.isArray(t))return Xl(t)}function Xl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ql(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ql(Object(n),!0).forEach((function(e){eu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nu(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function ru(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){nu(i,r,o,a,s,"next",t)}function s(t){nu(i,r,o,a,s,"throw",t)}a(void 0)}))}}var ou=X(ql),iu=["catalog-tab","catalog"],au={data:function(){return{messageTimer:0}},created:function(){var t=this;return ru(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:tu(tu({},Object(p["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(Hl(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.$theme.layouts.router.Tabs;return t.filter((function(t){return"link"!==t.type})).map((function(t){var o,i="".concat(n,"/").concat(t.key),a=t.key,s={},l=null;switch(t.type){case"catalog-tab":o=r,s.resources=t.childs,s.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],s.pageKey=t.url;break;case"iframe":o=Vl,s.pageKey=t.url,s.url=t.url;break;case"view":o=Yl,s.pageKey=t.url;break;default:o=Yl;break}return"view"===t.type&&"standard"===t.viewType&&(l=[{path:"",component:{extends:ou(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:ou(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!l&&t.childs&&(l=e.resToRoute(t.childs,t,"".concat(n,"/").concat(a))),{name:l?null:t.url,path:a,redirect:iu.includes(t.type)&&t.childs&&t.childs.length?"".concat(n,"/").concat(a,"/").concat(t.childs[0].key):null,children:l,component:o,props:s,meta:{name:"list"===t.type?null:t.name}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return ru(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},su=au,lu=De(su,l,u,!1,null,null,null),uu=lu.exports,cu={components:{Router:uu},created:function(){}},fu=cu,pu=De(fu,a,s,!1,null,null,null),hu=pu.exports;n("e39e");function du(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function mu(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){du(i,r,o,a,s,"next",t)}function s(t){du(i,r,o,a,s,"throw",t)}a(void 0)}))}}function vu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vu(Object(n),!0).forEach((function(e){gu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bu=window.Rainbow,wu=bu.app,_u=wu.csrfToken,xu=wu.baseURL,ku=!1,Ou={};function Eu(t){k.setDefaults({baseURL:xu!==["/","{app.appKey}"].join("$")?xu:t,headers:Ou}),S.a.use(k),S.a.use(h.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:yu({},bu.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:k.instance.defaults.baseURL}};return new h.a.Store({state:e(),strict:ku,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=yu(yu({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var n=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==n&&t.messages.splice(n,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var n=e.status,r=e.message;t.status=n,t.message=r},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e.key}));-1!==n?t.historys[n]=e:t.historys.push(e)},removeHistorys:function(t,e){var n=t.historys.findIndex((function(t){return t.key===e}));return-1!==n&&t.historys.splice(n,1),n}},actions:{loadResources:function(t){return mu(f.a.mark((function e(){var n,r,o,i,a,s,l;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setLoading",!0),e.prev=2,e.next=5,k.get("/api");case 5:o=e.sent,i=o.data,a=i.resources,s=i.user,l=i.app,n("setResources",a),n("setApp",l),n("setUser",s),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return mu(f.a.mark((function e(){var n,r,o;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,e.prev=1,e.next=4,k.get("/api/sys-msg?status=unread");case 4:r=e.sent,o=r.data.collection,n("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return mu(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,k.post("/api/sys-msg/read",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},emptyMessages:function(t,e){return mu(f.a.mark((function n(){var r;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,n.next=3,k.post("/api/sys-msg/reads",e);case 3:r("readMessages",e);case 4:case"end":return n.stop()}}),n)})))()},signin:function(t){var e=arguments;return mu(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},r("setCommitting",!0),n.prev=3,n.next=6,k.post("/api/signin",i.data,{});case 6:return a=n.sent,s=a.data,l=s.data,u=s.content,c=a.status,r("clear"),r("setStatus",{status:c,message:u}),n.abrupt("return",l);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return mu(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},r("setCommitting",!0),n.prev=3,n.next=6,k.post("/api/sms",i.data,{});case 6:return a=n.sent,s=a.data,l=s.data,u=s.content,c=a.status,r("clear"),r("setStatus",{status:c,message:u}),n.abrupt("return",l);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},signout:function(t,e){return mu(f.a.mark((function e(){var n,r,o,i,a,s,l;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,n("setCommitting",!0),e.prev=2,e.next=5,k.post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,s=i.content,l=o.status,n("clear"),n("setStatus",{status:l,message:s}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),r("handleError",e.t0);case 18:return e.prev=18,n("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return mu(f.a.mark((function n(){var r,o,i,a,s,l,u,c;return f.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},r("setCommitting",!0),n.prev=3,n.next=6,k.post("/api/change-password",i.data,{});case 6:return a=n.sent,s=a.data,l=s.data,u=s.content,c=a.status,r("clear"),r("setStatus",{status:c,message:u}),n.abrupt("return",l);case 16:n.prev=16,n.t0=n["catch"](3),o("handleError",n.t0);case 19:return n.prev=19,r("setCommitting",!1),n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[3,16,19,22]])})))()},handleError:function(t,e){var n=t.commit;if(!e.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=e.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";return n("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}_u&&"${app.csrfToken}"!==_u&&(Ou["x-csrf-token"]=_u);var ju=n("6389"),Su=n.n(ju);S.a.use(Su.a);var Pu=new Su.a,Au=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},Nu=[],Cu={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},Tu=Cu,Lu=De(Tu,Au,Nu,!1,null,null,null),Mu=Lu.exports,qu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},Iu=[];function Du(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ru(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Du(Object(n),!0).forEach((function(e){Vu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $u(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,o)}function Bu(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){$u(i,r,o,a,s,"next",t)}function s(t){$u(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Vu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fu(t,e){return Hu(t)||Yu(t,e)||Ku(t,e)||Uu()}function Uu(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ku(t,e){if(t){if("string"===typeof t)return zu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(t,e):void 0}}function zu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yu(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),e&&i.length===e)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function Hu(t){if(Array.isArray(t))return t}var Gu={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,n=e?t.filter((function(t){return Object.keys(e).every((function(n){var r=e[n];return r&&!Array.isArray(r)&&(r=[r]),null===r||r.includes(t[n])}))})):t;return this.transform?n.map(this.transform):n},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),n=Fu(e,2),r=n[0],o=n[1];return o?Vu({},r,o):r}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Bu(f.a.mark((function e(){var n,r,o,i,a,s,l,u,c,p,h,d,m,v,y;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,s=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,l=s?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(l,"/").concat(n,"?").concat(E.a.stringify(Ru(Ru({},r),{},{_size:i,$limit:a}))));case 10:u=e.sent,c=u.data,p=c.collection,h=c.count,d=c.model,m=c.data,v=u.status,t.collection=p||m,t.model=d,t.count=h,t.status=v,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(y=e.t0.response.status,t.status=y):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Bu(f.a.mark((function e(){var n,r,o,i;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(n));case 4:r=e.sent,o=r.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Bu(f.a.mark((function e(){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},Wu=Gu,Zu=De(Wu,qu,Iu,!1,null,null,null),Ju=Zu.exports;n("517c")},2364:function(e,n){e.exports=t},2964:function(t,e,n){},"2a55":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=p,e.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function p(t){var e,n,r=u(t),a=r[0],s=r[1],l=new i(f(t,a,s)),c=0,p=s>0?a-4:a;for(n=0;n<p;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(h(r));return o.join("")}function m(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,l=n-o;s<l;s+=a)i.push(d(t,s,s+a>l?l:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"336c":function(t,n){t.exports=e},"36d8":function(t,e,n){t.exports=n("c1c3")},"37eb":function(t,e,n){!function(e,r){t.exports=r(n("788a"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n.n(r),i=n(6),a=n(5),s=a(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=n(0),i=r(o),a=n(1),s=r(a),l=window.Quill||i.default,u=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},c={Quill:l,quillEditor:s.default,install:u};e.default=c,e.Quill=l,e.quillEditor=s.default,e.install=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(3),s=r(a),l=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new l(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,n,r){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,n,r,o,i){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o),i?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=u):r&&(u=r),u){var f=c.functional,p=f?c.render:c.beforeCreate;f?(c._injectStyles=u,c.render=function(t,e){return u.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,u):[u]}return{esModule:a,exports:s,options:c}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),n("div",{ref:"editor"})],2)},o=[],i={render:r,staticRenderFns:o};e.a=i}])}))},"427d":function(t,e,n){"use strict";n("8915")},"517c":function(t,e,n){},"521b":function(t,e,n){},"55ab":function(t,e,n){},"56bc":function(t,e,n){"use strict";n("2964")},5880:function(t,e){t.exports=n},"5aeb":function(t,e){t.exports=r},"5b37":function(t,e,n){"use strict";n("d224")},"632f":function(t,e,n){"use strict";n("cbe4")},6389:function(t,e){t.exports=o},"690b":function(t,e,n){},"69be":function(t,e,n){"use strict";n("aada")},"6ea4":function(t,e,n){"use strict";n("ab21")},"788a":function(t,e,n){(function(e){
4
4
  /*!
5
5
  * Quill Editor v1.3.7
6
6
  * https://quilljs.com/
7
7
  * Copyright (c) 2014, Jason Chen
8
8
  * Copyright (c) 2013, salesforce.com
9
9
  */
10
- (function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),f=n(12),p=n(32),h=n(33),d=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:p.default,Style:h.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=o;var i,a={},s={},l={},u={};function c(t,e){var n=p(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:r.create(e);return new r(i,e)}function f(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?f(t.parentNode,n):null}function p(t,e){var n;if(void 0===e&&(e=i.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?n=u["block"]:t&i.LEVEL&i.INLINE&&(n=u["inline"]);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=s[r[o]],n)break;n=n||l[t.tagName]}return null==n?null:e&i.LEVEL&n.scope&&e&i.TYPE&n.scope?n:null}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return h(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=l[t]&&null!=n.className||(l[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=c,e.find=f,e.query=p,e.register=h},function(t,e,n){var r=n(51),o=n(11),i=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){var o=t(r)?e:n;o.push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],r=a.iterator(this.ops),o=0;while(o<e&&r.hasNext()){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=a.length(i)}return new l(n)},l.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],i=n.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){var s=i.retain;while("insert"===e.peekType()&&e.peekLength()<=s)s-=e.peekLength(),r.push(e.next());i.retain-s>0&&n.next(i.retain-s)}var u=new l(r);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),p=n.next(c);if("number"===typeof p.retain){var h={};"number"===typeof f.retain?h.retain=c:h.insert=f.insert;var d=a.attributes.compose(f.attributes,p.attributes,"number"===typeof f.retain);if(d&&(h.attributes=d),u.push(h),!n.hasNext()&&o(u.ops[u.ops.length-1],h)){var m=new l(e.rest());return u.concat(m).chop()}}else"number"===typeof p["delete"]&&"number"===typeof f.retain&&u.push(p)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),i=new l,u=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),l=f.next(n);o(s.insert,l.insert)?i.retain(n,a.attributes.diff(s.attributes,l.attributes)):i.push(l)["delete"](n);break}e-=n}})),i.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),r=new l,o=0;while(n.hasNext()){if("insert"!==n.peekType())return;var i=n.peek(),s=a.length(i)-n.peekLength(),u="string"===typeof i.insert?i.insert.indexOf(e,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new l}}r.length()>0&&t(r,{},o)},l.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),r=a.iterator(t.ops),o=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),s=n.next(i),u=r.next(i);if(s["delete"])continue;u["delete"]?o.push(u):o.retain(i,a.attributes.transform(s.attributes,u.attributes,e))}else o.retain(a.length(n.next()));return o.chop()},l.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=t){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,o=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},l=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"===typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p<h;++p)if(e=arguments[p],null!=e)for(n in e)r=u(f,n),o=u(e,n),f!==o&&(d&&o&&(s(o)||(i=a(o)))?(i?(i=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(f,{name:n,newValue:t(d,c,o)})):"undefined"!==typeof o&&l(f,{name:n,newValue:o}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(3),a=y(i),s=n(2),l=y(s),u=n(0),c=y(u),f=n(16),p=y(f),h=n(6),d=y(h),m=n(7),v=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=1,x=function(t){function e(){return g(this,e),b(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return w(e,t),r(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=c.default.query(t,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"===typeof n&&n.endsWith("\n")){var i=c.default.create(O.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(c.default.Embed);x.scope=c.default.Scope.BLOCK_BLOT;var O=function(t){function e(t){g(this,e);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return w(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),k(e))}),new l.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;i.reduce((function(t,e){return s=s.split(t,!0),s.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof p.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-_)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(c.default.Block);function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:k(t.parent,e))}O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[d.default,c.default.Embed,v.default],e.bubbleFormats=k,e.BlockEmbed=x,e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=n(2),s=k(a),l=n(14),u=k(l),c=n(8),f=k(c),p=n(9),h=k(p),d=n(0),m=k(d),v=n(15),y=k(v),g=n(3),b=k(g),w=n(10),_=k(w),x=n(34),O=k(x);function k(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var S=(0,_.default)("quill"),P=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j(this,t),this.options=A(e,r),this.container=this.options.container,null==this.container)return S.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;N.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),_.default.level(t)}},{key:"find",value:function(t){return t.__quill||m.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&S.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var o=t.attrName||t.blotName;"string"===typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||S.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?m.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=C(t,e,n),a=o(i,4);return t=a[0],e=a[1],n=a[3],N.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return N.call(this,(function(){var r=n.getSelection(!0),o=new s.default;if(null==r)return o;if(m.default.query(t,m.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,E({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,E({},t,e))}return n.setSelection(r,f.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(t,e,n,r,i){var a=this,s=void 0,l=C(t,e,n,r,i),u=o(l,4);return t=u[0],e=u[1],s=u[2],i=u[3],N.call(this,(function(){return a.editor.formatLine(t,e,s)}),i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var a=this,s=void 0,l=C(t,e,n,r,i),u=o(l,4);return t=u[0],e=u[1],s=u[2],i=u[3],N.call(this,(function(){return a.editor.formatText(t,e,s)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return N.call(this,(function(){return o.editor.insertEmbed(e,n,r)}),i,e)}},{key:"insertText",value:function(t,e,n,r,i){var a=this,s=void 0,l=C(t,0,n,r,i),u=o(l,4);return t=u[0],s=u[2],i=u[3],N.call(this,(function(){return a.editor.insertText(t,e,s)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=C(t,e,n),a=o(i,4);return t=a[0],e=a[1],n=a[3],N.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){t=new s.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1));var a=r.compose(o);return a}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=C(e,n,r),a=o(i,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new v.Range(e,n),r),r!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function A(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==P.DEFAULTS.theme){if(e.theme=P.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=O.default;var n=(0,b.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce((function(t,e){var n=P.import("modules/"+e);return null==n?S.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},P.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function N(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===f.default.sources.USER)return new s.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=T(o,a,e):0!==r&&(o=T(o,n,r,e)),this.setSelection(o,f.default.sources.SILENT)),a.length()>0){var l,u,c=[f.default.events.TEXT_CHANGE,a,i,e];if((l=this.emitter).emit.apply(l,[f.default.events.EDITOR_CHANGE].concat(c)),e!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function C(t,e,n,o,i){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(i=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(i=o,o=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,i=o):"string"===typeof n&&(null!=o?a[n]=o:i=n),i=i||f.default.sources.API,[t,e,a,i]}function T(t,e,n,r){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof s.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==f.default.sources.USER)})),u=o(l,2);i=u[0],a=u[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===f.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=o(c,2);i=p[0],a=p[1]}return new v.Range(i,a-i)}P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=f.default.events,P.sources=f.default.sources,P.version="1.3.7",P.imports={delta:s.default,parchment:m.default,"core/module":h.default,"core/theme":O.default},e.expandConfig=A,e.overload=C,e.default=P},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(7),a=u(i),s=n(0),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return c(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),r(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(t,n);i&&a.wrap(r,i)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(l.default.Inline);h.allowedChildren=[h,l.default.Embed,a.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default.Text);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(54),a=u(i),s=n(10),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=(0,l.default)("quill:events"),d=["selectionchange","mousedown","mouseup","click"];d.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var m=function(t){function e(){c(this,e);var t=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return p(e,t),r(e,[{key:"emit",value:function(){h.log.apply(h,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(a.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},e.default=m},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(e=console)[t].apply(e,i)}}function a(t){return r.reduce((function(e,n){return e[n]=i.bind(console,n,t),e}),{})}i.level=a.level=function(t){o=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:u(t,e,n))};function s(t){return null===t||void 0===t}function l(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function u(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var f=o(t),p=o(e)}catch(h){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),u=f.length-1;u>=0;u--)if(f[u]!=p[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(2),s=v(a),l=n(0),u=v(l),c=n(4),f=v(c),p=n(6),h=v(p),d=n(7),m=v(d);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=function(t){function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),e}(h.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new s.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var o=this.descendant(m.default,this.length()-1),a=r(o,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var a=this.newlineIndex(t,!0)+1,s=i-a+1,l=this.isolate(a,s),c=l.next;l.format(r,o),c instanceof e&&c.formatAt(0,t-a+n-s,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(m.default,t),i=r(o,2),a=i[0],s=i[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(f.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=w,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(2),s=j(a),l=n(20),u=j(l),c=n(0),f=j(c),p=n(13),h=j(p),d=n(24),m=j(d),v=n(4),y=j(v),g=n(16),b=j(g),w=n(21),_=j(w),x=n(11),O=j(x),k=n(3),E=j(k);function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var A=/^[ -~]*$/,N=function(){function t(e){P(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),t=T(t),t.reduce((function(t,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),t>=i&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var p=e.scroll.line(t),h=o(p,2),d=h[0],m=h[1],g=(0,E.default)({},(0,v.bubbleFormats)(d));if(d instanceof y.default){var b=d.descendant(f.default.Leaf,m),w=o(b,1),_=w[0];g=(0,E.default)(g,(0,v.bubbleFormats)(_))}l=u.default.attributes.diff(g,l)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}i+=s}return Object.keys(l).forEach((function(n){e.scroll.formatAt(t,s,n,l[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),a=e;i.forEach((function(e){var i=e.length();if(e instanceof h.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,o,r[o])}else e.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,_.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new s.default).retain(t).retain(e,(0,_.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1),i=e[0];i instanceof y.default?n.push(i):i instanceof f.default.Leaf&&r.push(i)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(f.default.Leaf,t,e));var i=[n,r].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=C((0,v.bubbleFormats)(n),e)}return e}));return E.default.apply(E.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(S({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e.length,o,r[o])})),this.update((new s.default).retain(t).insert(e,(0,_.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===y.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=o(r,2),a=i[0],l=i[1],u=0,c=new s.default;null!=a&&(u=a instanceof h.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(t,e+u),p=f.diff((new s.default).insert(n).concat(c)),d=(new s.default).retain(t).concat(p);return this.applyDelta(d)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(A)&&f.default.find(e[0].target)){var o=f.default.find(e[0].target),i=(0,v.bubbleFormats)(o),a=o.offset(this.scroll),l=e[0].oldValue.replace(m.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(o.value()),p=(new s.default).retain(a).concat(u.diff(c,n));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new s.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,O.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function C(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}function T(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,_.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,_.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new s.default)}e.default=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),a=m(i),s=n(21),l=m(s),u=n(11),c=m(u),f=n(8),p=m(f),h=n(10),d=m(h);function m(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=(0,d.default)("quill:selection"),b=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this.index=e,this.length=n},w=function(){function t(e,n){var r=this;y(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,p.default.sources.USER),1)})),this.emitter.on(p.default.events.EDITOR_CHANGE,(function(t,e){t===p.default.events.TEXT_CHANGE&&e.length()>0&&r.update(p.default.sources.SILENT)})),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(p.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(o,i,a,s)}})),this.update(p.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(p.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,i=this.scroll.leaf(t),a=r(i,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);o=c[0],l=c[1];var f=document.createRange();if(e>0){f.setStart(o,l);var p=this.scroll.leaf(t+e),h=r(p,2);if(s=h[0],l=h[1],null==s)return null;var d=s.position(l,!0),m=r(d,2);return o=m[0],l=m[1],f.setEnd(o,l),f.getBoundingClientRect()}var v="left",y=void 0;return o instanceof Text?(l<o.data.length?(f.setStart(o,l),f.setEnd(o,l+1)):(f.setStart(o,l-1),f.setEnd(o,l),v="right"),y=f.getBoundingClientRect()):(y=s.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return g.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],i=n[1],s=a.default.find(o,!0),l=s.offset(e.scroll);return 0===i?l:s instanceof a.default.Container?l+s.length():l+s.index(o,i)})),i=Math.min(Math.max.apply(Math,v(o)),this.scroll.length()-1),s=Math.min.apply(Math,[i].concat(v(o)));return new b(s,i-s)}},{key:"normalizeNative",value:function(t){if(!_(this.root,t.startContainer)||!t.collapsed&&!_(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var a=void 0,s=e.scroll.leaf(t),l=r(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),p=r(f,2);a=p[0],c=p[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),a=r(i,1),s=a[0],l=s;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var f=t.getBoundingClientRect();n.top<f.top?t.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(t.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),i.removeAllRanges(),i.addRange(s)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof e&&(n=e,e=!1),g.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,v(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.sources.USER,e=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],a=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[p.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];if((s=this.emitter).emit.apply(s,[p.default.events.EDITOR_CHANGE].concat(f)),t!==p.default.sources.SILENT)(u=this.emitter).emit.apply(u,f)}}}]),t}();function _(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"insertInto",value:function(t,n){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),i=n(30),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=a})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],a=[[this,t]];return o instanceof e?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,o){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],o=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=l(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(i.default);function l(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),i=n(31),a=n(17),s=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){var r=n(11),o=n(3),i={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=o(!0,{},e);for(var i in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return r(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=i.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"===typeof e.retain?o.retain=t:"string"===typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=i},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,o;try{n=Map}catch(f){n=function(){}}try{r=Set}catch(f){r=function(){}}try{o=Promise}catch(f){o=function(){}}function i(a,s,l,u,f){"object"===typeof s&&(l=s.depth,u=s.prototype,f=s.includeNonEnumerable,s=s.circular);var p=[],h=[],d="undefined"!=typeof e;function m(a,l){if(null===a)return null;if(0===l)return a;var v,y;if("object"!=typeof a)return a;if(t(a,n))v=new n;else if(t(a,r))v=new r;else if(t(a,o))v=new o((function(t,e){a.then((function(e){t(m(e,l-1))}),(function(t){e(m(t,l-1))}))}));else if(i.__isArray(a))v=[];else if(i.__isRegExp(a))v=new RegExp(a.source,c(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(i.__isDate(a))v=new Date(a.getTime());else{if(d&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof u?(y=Object.getPrototypeOf(a),v=Object.create(y)):(v=Object.create(u),y=u)}if(s){var g=p.indexOf(a);if(-1!=g)return h[g];p.push(a),h.push(v)}for(var b in t(a,n)&&a.forEach((function(t,e){var n=m(e,l-1),r=m(t,l-1);v.set(n,r)})),t(a,r)&&a.forEach((function(t){var e=m(t,l-1);v.add(e)})),a){var w;y&&(w=Object.getOwnPropertyDescriptor(y,b)),w&&null==w.set||(v[b]=m(a[b],l-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var x=_[b],O=Object.getOwnPropertyDescriptor(a,x);(!O||O.enumerable||f)&&(v[x]=m(a[x],l-1),O.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(a);for(b=0;b<k.length;b++){var E=k[b];O=Object.getOwnPropertyDescriptor(a,E);O&&O.enumerable||(v[E]=m(a[E],l-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),m(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){return"object"===typeof t&&"[object Date]"===a(t)}function l(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function c(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=a,i.__isDate=s,i.__isArray=l,i.__isRegExp=u,i.__getRegExpFlags=c,i}();"object"===typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),s=g(a),l=n(8),u=g(l),c=n(4),f=g(c),p=n(16),h=g(p),d=n(13),m=g(d),v=n(25),y=g(v);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function x(t){return t instanceof f.default||t instanceof c.BlockEmbed}var O=function(t){function e(t,n){b(this,e);var r=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return _(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var o=this.line(t),a=r(o,2),s=a[0],l=a[1],u=this.line(t+n),f=r(u,1),p=f[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&s!==p&&l>0){if(s instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(s instanceof m.default){var d=s.newlineIndex(s.length(),!0);if(d>-1&&(s=s.split(d+1),s===p))return void this.optimize()}else if(p instanceof m.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var y=p.children.head instanceof h.default?null:p.children.head;s.moveChildren(p,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var o=s.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(t),t=r}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(x,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,(function(e,n,r){x(e)?o.push(e):e instanceof s.default.Container&&(o=o.concat(t(e,n,i))),i-=r})),o};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[f.default,c.BlockEmbed,y.default],e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(21),s=k(a),l=n(11),u=k(l),c=n(3),f=k(c),p=n(2),h=k(p),d=n(20),m=k(d),v=n(0),y=k(v),g=n(5),b=k(g),w=n(10),_=k(w),x=n(9),O=k(x);function k(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function P(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var A=(0,_.default)("quill:keyboard"),N=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(t){function e(t,n){j(this,e);var r=S(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},I),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},L),r.addBinding({key:e.keys.DELETE},{collapsed:!0},M)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},L),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},q),r.addBinding({key:e.keys.DELETE},{collapsed:!1},q),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},L),r.listen(),r}return P(e,t),i(e,null,[{key:"match",value:function(t,e){return e=$(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$(t);if(null==r||null==r.key)return A.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,f.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var l=t.quill.getLine(s.index),c=o(l,2),f=c[0],p=c[1],h=t.quill.getLeaf(s.index),d=o(h,2),m=d[0],v=d[1],g=0===s.length?[m,v]:t.quill.getLeaf(s.index+s.length),b=o(g,2),w=b[0],_=b[1],x=m instanceof y.default.Text?m.value().slice(0,v):"",O=w instanceof y.default.Text?w.value().slice(_):"",k={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:t.quill.getFormat(s),offset:p,prefix:x,suffix:O},E=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==k.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,u.default)(e.format[t],k.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix))&&(!(null!=e.suffix&&!e.suffix.test(k.suffix))&&!0!==e.handler.call(t,s,k))}));E&&n.preventDefault()}}}}))}}]),e}(O.default);function T(t,e){var n,r=t===C.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},E(n,r,/^$/),E(n,"handler",(function(n){var r=n.index;t===C.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r),a=o(i,1),s=a[0];return!(s instanceof y.default.Embed)||(t===C.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function L(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=o(n,1),i=r[0],a={};if(0===e.offset){var s=this.quill.getLine(t.index-1),l=o(s,1),u=l[0];if(null!=u&&u.length()>1){var c=i.formats(),f=this.quill.getFormat(t.index-1,1);a=m.default.attributes.diff(c,f)||{}}}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-p,p,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-p,p,a,b.default.sources.USER),this.quill.focus()}}function M(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(t.index),s=o(a,1),l=s[0];if(e.offset>=l.length()-1){var u=this.quill.getLine(t.index+1),c=o(u,1),f=c[0];if(f){var p=l.formats(),h=this.quill.getFormat(t.index,1);r=m.default.attributes.diff(p,h)||{},i=f.length()}}this.quill.deleteText(t.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,b.default.sources.USER)}}function q(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=m.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function I(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],b.default.sources.USER))}))}function D(t){return{key:C.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=y.default.query("code-block"),r=e.index,i=e.length,a=this.quill.scroll.descendant(n,r),s=o(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,p=l.newlineIndex(c+u+i),h=l.domNode.textContent.slice(f,p).split("\n");u=0,h.forEach((function(e,o){t?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,i,b.default.sources.SILENT)}}}}function R(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],b.default.sources.USER)}}}function $(t){if("string"===typeof t||"number"===typeof t)return $({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=C.keys[t.key.toUpperCase()])t.key=C.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[N]=t.shortKey,delete t.shortKey),t}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new h.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],a=(0,f.default)({},r.formats(),{list:"checked"}),s=(new h.default).retain(t.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),i=r[0],a=r[1],s=(new h.default).retain(t.index).insert("\n",e.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=o(r,2),a=i[0],s=i[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new h.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,b.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],a=(new h.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":T(C.keys.LEFT,!1),"embed left shift":T(C.keys.LEFT,!0),"embed right":T(C.keys.RIGHT,!1),"embed right shift":T(C.keys.RIGHT,!0)}},e.default=C,e.SHORTKEY=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(0),s=c(a),l=n(7),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,n){f(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return h(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);var r=this,i=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,a=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];o=l[0],i=l[1],a=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof u.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,a].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),p=r(f,2);return i=p[0],a=p[1],{startNode:o,startOffset:i,endNode:o,endOffset:a}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=s(r),i=n(4),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),e}(o.default.Container);f.allowedChildren=[a.default,i.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),p=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new f("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=f,e.ColorClass=p,e.ColorStyle=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(6),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return p(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function p(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(23),a=u(i),s=n(107),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=0;function p(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var h=function(){function t(e){var n=this;c(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),p(this.label,"aria-expanded"),p(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=A(r),i=n(5),a=A(i),s=n(4),l=A(s),u=n(16),c=A(u),f=n(25),p=A(f),h=n(24),d=A(h),m=n(35),v=A(m),y=n(6),g=A(y),b=n(22),w=A(b),_=n(7),x=A(_),O=n(55),k=A(O),E=n(42),j=A(E),S=n(23),P=A(S);function A(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":p.default,"blots/cursor":d.default,"blots/embed":v.default,"blots/inline":g.default,"blots/scroll":w.default,"blots/text":x.default,"modules/clipboard":k.default,"modules/history":j.default,"modules/keyboard":P.default}),o.default.register(l.default,c.default,d.default,g.default,w.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),s=i.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12);function i(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=i(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=i(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12);function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,n){o(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=u(i),s=n(7),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h="\ufeff",d=function(t){function e(t){c(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return p(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(a.default.Embed);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),l=new o.default.Attributor.Class("align","ql-align",a),u=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=l,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),o=a(r),i=n(26);function a(t){return t&&t.__esModule?t:{default:t}}var s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),l=new o.default.Attributor.Class("direction","ql-direction",a),u=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=l,e.DirectionStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new a.default.Attributor.Class("font","ql-font",f),h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),d=new h("font","font-family",f);e.FontStyle=d,e.FontClass=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),i=c(o),a=n(5),s=c(a),l=n(9),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,n){f(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,o){t!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==s.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return h(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],s.default.sources.USER),this.ignoreChange=!1;var r=v(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function m(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return m(t)&&(n-=1),n}d.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=d,e.getLastChangeIndex=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(3),a=O(i),s=n(2),l=O(s),u=n(8),c=O(u),f=n(23),p=O(f),h=n(34),d=O(h),m=n(59),v=O(m),y=n(60),g=O(y),b=n(28),w=O(b),_=n(61),x=O(_);function O(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function j(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var S=[!1,"center","right","justify"],P=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],A=[!1,"serif","monospace"],N=["1","2","3",!1],C=["small",!1,"large","huge"],T=function(t){function e(t,n){k(this,e);var r=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),o=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,o),r}return j(e,t),r(e,[{key:"addModule",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n]["rtl"];else if("string"===typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&q(t,S),new g.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&q(t,P,"background"===n?"#ffffff":"#000000"),new v.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?q(t,A):t.classList.contains("ql-header")?q(t,N):t.classList.contains("ql-size")&&q(t,C)),new w.default(t)}));var r=function(){n.pickers.forEach((function(t){t.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),e}(d.default);T.DEFAULTS=(0,a.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),t.quill.setSelection(r.index+1,c.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var L=function(t){function e(t,n){k(this,e);var r=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return j(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){p.default.match(e,"enter")?(t.save(),e.preventDefault()):p.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=M(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(x.default);function M(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function q(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=L,e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,r=this.iterator();while(n=r()){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){var e,n=this.iterator();while(e=n())t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0)){var r,o=this.find(t),i=o[0],a=o[1],s=t-a,l=this.iterator(i);while((r=l())&&s<t+e){var u=r.length();t>s?n(r,t-s,Math.min(e,s+u-t)):n(r,0,Math.min(u,t+e-s)),s+=u}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,r=this.iterator();while(n=r())e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var l=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&l(t.parent))},u=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},c=e,f=0;c.length>0;f+=1){if(f>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(l(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=i.find(t,!1);l(e,!1),e instanceof o.default&&e.children.forEach((function(t){l(t,!1)}))}))):"attributes"===t.type&&l(e.prev)),l(e))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)})),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||i.query(r,i.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&a(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=i.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),a=i.create(n,r);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,r=1,o=0;function i(t,e,n){if(t==e)return t?[[o,t]]:[];(n<0||t.length<n)&&(n=null);var r=u(t,e),i=t.substring(0,r);t=t.substring(r),e=e.substring(r),r=c(t,e);var s=t.substring(t.length-r);t=t.substring(0,t.length-r),e=e.substring(0,e.length-r);var l=a(t,e);return i&&l.unshift([o,i]),s&&l.push([o,s]),p(l),null!=n&&(l=m(l,n)),l=v(l),l}function a(t,e){var a;if(!t)return[[r,e]];if(!e)return[[n,t]];var l=t.length>e.length?t:e,u=t.length>e.length?e:t,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[o,u],[r,l.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[r,e]];var p=f(t,e);if(p){var h=p[0],d=p[1],m=p[2],v=p[3],y=p[4],g=i(h,m),b=i(d,v);return g.concat([[o,y]],b)}return s(t,e)}function s(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),p=0;p<u;p++)c[p]=-1,f[p]=-1;c[s+1]=0,f[s+1]=0;for(var h=o-i,d=h%2!=0,m=0,v=0,y=0,g=0,b=0;b<a;b++){for(var w=-b+m;w<=b-v;w+=2){var _=s+w;S=w==-b||w!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1;var x=S-w;while(S<o&&x<i&&t.charAt(S)==e.charAt(x))S++,x++;if(c[_]=S,S>o)v+=2;else if(x>i)m+=2;else if(d){var O=s+h-w;if(O>=0&&O<u&&-1!=f[O]){var k=o-f[O];if(S>=k)return l(t,e,S,x)}}}for(var E=-b+y;E<=b-g;E+=2){O=s+E;k=E==-b||E!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1;var j=k-E;while(k<o&&j<i&&t.charAt(o-k-1)==e.charAt(i-j-1))k++,j++;if(f[O]=k,k>o)g+=2;else if(j>i)y+=2;else if(!d){_=s+h-E;if(_>=0&&_<u&&-1!=c[_]){var S=c[_];x=s+S-_;if(k=o-k,S>=k)return l(t,e,S,x)}}}}return[[n,t],[r,e]]}function l(t,e,n,r){var o=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),u=i(o,a),c=i(s,l);return u.concat(c)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,r=Math.min(t.length,e.length),o=r,i=0;while(n<o)t.substring(i,o)==e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function c(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var n=0,r=Math.min(t.length,e.length),o=r,i=0;while(n<o)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function f(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function o(t,e,n){var r,o,i,a,s=t.substring(n,n+Math.floor(t.length/4)),l=-1,f="";while(-1!=(l=e.indexOf(s,l+1))){var p=u(t.substring(n),e.substring(l)),h=c(t.substring(0,n),e.substring(0,l));f.length<h+p&&(f=e.substring(l-h,l)+e.substring(l,l+p),r=t.substring(0,n-h),o=t.substring(n+p),i=e.substring(0,l-h),a=e.substring(l+p))}return 2*f.length>=t.length?[r,o,i,a,f]:null}var i,a,s,l,f,p=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;i=h?p&&p[4].length>h[4].length?p:h:p,t.length>e.length?(a=i[0],s=i[1],l=i[2],f=i[3]):(l=i[0],f=i[1],a=i[2],s=i[3]);var d=i[4];return[a,s,l,f,d]}function p(t){t.push([o,""]);var e,i=0,a=0,s=0,l="",f="";while(i<t.length)switch(t[i][0]){case r:s++,f+=t[i][1],i++;break;case n:a++,l+=t[i][1],i++;break;case o:a+s>1?(0!==a&&0!==s&&(e=u(f,l),0!==e&&(i-a-s>0&&t[i-a-s-1][0]==o?t[i-a-s-1][1]+=f.substring(0,e):(t.splice(0,0,[o,f.substring(0,e)]),i++),f=f.substring(e),l=l.substring(e)),e=c(f,l),0!==e&&(t[i][1]=f.substring(f.length-e)+t[i][1],f=f.substring(0,f.length-e),l=l.substring(0,l.length-e))),0===a?t.splice(i-s,a+s,[r,f]):0===s?t.splice(i-a,a+s,[n,l]):t.splice(i-a-s,a+s,[n,l],[r,f]),i=i-a-s+(a?1:0)+(s?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,s=0,a=0,l="",f="";break}""===t[t.length-1][1]&&t.pop();var h=!1;i=1;while(i<t.length-1)t[i-1][0]==o&&t[i+1][0]==o&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),h=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),h=!0)),i++;h&&p(t)}var h=i;function d(t,e){if(0===e)return[o,t];for(var r=0,i=0;i<t.length;i++){var a=t[i];if(a[0]===n||a[0]===o){var s=r+a[1].length;if(e===s)return[i+1,t];if(e<s){t=t.slice();var l=e-r,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return t.splice(i,1,u,c),[i+1,t]}r=s}}throw new Error("cursor_pos is out of bounds!")}function m(t,e){var n=d(t,e),r=n[1],i=n[0],a=r[i],s=r[i+1];if(null==a)return t;if(a[0]!==o)return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(i,2,s,a),y(r,i,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(i,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(i+2,0,[s[0],l]),y(r,i,3)}return t}function v(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s<t.length;s+=1)t[s-2][0]===o&&a(t[s-2][1])&&t[s-1][0]===n&&i(t[s-1][1])&&t[s][0]===r&&i(t[s][1])&&(e=!0,t[s-1][1]=t[s-2][1].slice(-1)+t[s-1][1],t[s][1]=t[s-2][1].slice(-1)+t[s][1],t[s-2][1]=t[s-2][1].slice(0,-1));if(!e)return t;var l=[];for(s=0;s<t.length;s+=1)t[s][1].length>0&&l.push(t[s]);return l}function y(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}h.INSERT=r,h.DELETE=n,h.EQUAL=o,t.exports=h},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"===typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=n?r:o,e.supported=r,e.unsupported=o},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)n.call(t,e)&&o.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t,e){var n=r?r+t:t,o=this._events[n];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,s=new Array(a);i<a;i++)s[i]=o[i].fn;return s},a.prototype.emit=function(t,e,n,o,i,a){var s=r?r+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,o),!0;case 5:return c.fn.call(c.context,e,n,o,i),!0;case 6:return c.fn.call(c.context,e,n,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,o);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(t,e,n){var o=new i(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(t,e,n){var o=new i(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,i){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==e||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=j(a),l=n(2),u=j(l),c=n(0),f=j(c),p=n(5),h=j(p),d=n(10),m=j(d),v=n(9),y=j(v),g=n(36),b=n(37),w=n(13),_=j(w),x=n(26),O=n(38),k=n(39),E=n(40);function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function N(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var C=(0,m.default)("quill:clipboard"),T="__ql-matcher",L=[[Node.TEXT_NODE,J],[Node.TEXT_NODE,G],["br",z],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,Z],["li",H],["b",F.bind(F,"bold")],["i",F.bind(F,"italic")],["style",Y]],M=[g.AlignAttribute,O.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),q=[g.AlignStyle,b.BackgroundStyle,x.ColorStyle,O.DirectionStyle,k.FontStyle,E.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),I=function(t){function e(t,n){P(this,e);var r=A(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],L.concat(r.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],a=e[1];(n.matchVisual||a!==W)&&r.addMatcher(i,a)})),r}return N(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[_.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,S({},_.default.blotName,e[_.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],s=i[1],l=V(this.container,a,s);return $(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),C.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,h.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,h.default.sources.USER),e.quill.setSelection(r.length()-n.length,h.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],s=i[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[T]=t[T]||[],t[T].push(s)}));break}})),[e,n]}}]),e}(y.default);function D(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return D(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,s.default)({},S({},e,n),r.attributes))}),new u.default)}function R(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function $(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!==typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function B(t){if(0===t.childNodes.length)return!1;var e=R(t);return["block","list-item"].indexOf(e.display)>-1}function V(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,o){var i=V(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[T]||[]).reduce((function(t,e){return e(o,t)}),i)),r.concat(i)}),new u.default):new u.default}function F(t,e,n){return D(n,t,!0)}function U(t,e){var n=f.default.Attributor.Attribute.keys(t),r=f.default.Attributor.Class.keys(t),o=f.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach((function(e){var n=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=M[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),n=q[e],null==n||n.attrName!==e&&n.keyName!==e||(n=q[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=D(e,i)),e}function K(t,e){var n=f.default.query(t);if(null==n)return e;if(n.prototype instanceof f.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new u.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=D(e,n.blotName,n.formats(t)));return e}function z(t,e){return $(e,"\n")||e.insert("\n"),e}function Y(){return new u.default}function H(t,e){var n=f.default.query(t);if(null==n||"list-item"!==n.blotName||!$(e,"\n"))return e;var r=-1,o=t.parentNode;while(!o.classList.contains("ql-clipboard"))"list"===(f.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:r}))}function G(t,e){return $(e,"\n")||(B(t)||e.length()>0&&t.nextSibling&&B(t.nextSibling))&&e.insert("\n"),e}function W(t,e){if(B(t)&&null!=t.nextElementSibling&&!$(e,"\n\n")){var n=t.offsetHeight+parseFloat(R(t).marginTop)+parseFloat(R(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function Z(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===R(t).fontStyle&&(n.italic=!0),r.fontWeight&&(R(t).fontWeight.startsWith("bold")||parseInt(R(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=D(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function J(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!R(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&B(t.parentNode)||null!=t.previousSibling&&B(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&B(t.parentNode)||null!=t.nextSibling&&B(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}I.DEFAULTS={matchers:[],matchVisual:!0},e.default=I,e.matchAttributor=U,e.matchBlot=K,e.matchNewline=G,e.matchSpacing=W,e.matchText=J},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(6),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(2),a=m(i),s=n(0),l=m(s),u=n(5),c=m(u),f=n(10),p=m(f),h=n(9),d=m(h);function m(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=(0,p.default)("quill:toolbar"),_=function(t){function e(t,n){y(this,e);var o,i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");O(a,i.options.container),t.container.parentNode.insertBefore(a,t.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e){t===c.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=r(t,1),n=e[0];i.update(n)})),i):(o=w.error("Container required for toolbar",i.options),g(i,o))}return b(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void w.warn("ignoring attaching to disabled format",n,t);if(null==l.default.query(n))return void w.warn("ignoring attaching to nonexistent format",n,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];i=!s.hasAttribute("selected")&&(s.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),f=r(u,1),p=f[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(l.default.query(n).prototype instanceof l.default.Embed){if(i=prompt("Enter "+n),!i)return;e.quill.updateContents((new a.default).retain(p.index).delete(p.length).insert(v({},n,i)),c.default.sources.USER)}else e.quill.format(n,i,c.default.sources.USER);e.update(p)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[i])s=a.querySelector("option[selected]");else if(!Array.isArray(e[i])){var l=e[i];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[i]===a.getAttribute("value")||null!=e[i]&&e[i].toString()===a.getAttribute("value")||null==e[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[i])}))}}]),e}(d.default);function x(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function O(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)x(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?k(n,e,r):x(n,e,r)}})),t.appendChild(n)}))}function k(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=l.default.query(e,l.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,c.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",c.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",t,c.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,c.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,c.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",t,c.default.sources.USER)}}},e.default=_,e.addControls=O},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(28),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,n){l(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return c(e,t),r(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(28),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,n){l(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(e,t),r(e,[{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,n){var r=this;o(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=y(a),l=n(8),u=y(l),c=n(43),f=y(c),p=n(27),h=y(p),d=n(15),m=n(41),v=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(t){function e(t,n){g(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return w(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default),this.tooltip=new O(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers["link"].call(t,!n.format.link)}))}}]),e}(f.default);x.DEFAULTS=(0,s.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var O=function(t){function e(t,n){g(this,e);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return w(e,t),i(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,n,o){if(null!=e){if(0===e.length&&o===u.default.sources.USER){var i=t.quill.scroll.descendant(h.default,e.index),a=r(i,2),s=a[0],l=a[1];if(null!=s){t.linkRange=new d.Range(e.index-l,s.length());var c=h.default.formats(s.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(c.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),o=nt(r),i=n(36),a=n(38),s=n(64),l=n(65),u=nt(l),c=n(66),f=nt(c),p=n(67),h=nt(p),d=n(37),m=n(26),v=n(39),y=n(40),g=n(56),b=nt(g),w=n(68),_=nt(w),x=n(27),O=nt(x),k=n(69),E=nt(k),j=n(70),S=nt(j),P=n(71),A=nt(P),N=n(72),C=nt(N),T=n(73),L=nt(T),M=n(13),q=nt(M),I=n(74),D=nt(I),R=n(75),$=nt(R),B=n(57),V=nt(B),F=n(41),U=nt(F),K=n(28),z=nt(K),Y=n(59),H=nt(Y),G=n(60),W=nt(G),Z=n(61),J=nt(Z),X=n(108),Q=nt(X),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}o.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":u.default,"formats/code-block":q.default,"formats/header":f.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":M.Code,"formats/italic":_.default,"formats/link":O.default,"formats/script":E.default,"formats/strike":S.default,"formats/underline":A.default,"formats/image":C.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":D.default,"modules/syntax":$.default,"modules/toolbar":V.default,"themes/bubble":Q.default,"themes/snow":et.default,"ui/icons":U.default,"ui/picker":z.default,"ui/icon-picker":W.default,"ui/color-picker":H.default,"ui/tooltip":J.default},!0),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),p=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4),i=a(o);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),r(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(i.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=f(i),s=n(4),l=f(s),u=n(25),c=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return h(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return m(e,t),r(e,[{key:"format",value:function(t,n){t!==y.blotName||n?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(l.default);v.blotName="list-item",v.tagName="LI";var y=function(t){function e(t){h(this,e);var n=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=a.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return m(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);y.blotName="list",y.scope=a.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[v],e.ListItem=v,e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(6),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=l(i),s=n(27);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=["alt","height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){p.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return p.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(4),a=n(27),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=["height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){p.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return p.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(i.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(35),a=f(i),s=n(5),l=f(s),u=n(9),c=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return p(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,null,[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var v=function(t){function e(){p(this,e);var t=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return d(e,t),r(e,null,[{key:"register",value:function(){l.default.register(m,!0)}}]),e}(c.default);e.FormulaBlot=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=h(i),s=n(5),l=h(s),u=n(9),c=h(u),f=n(13),p=h(f);function h(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return d(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(p.default);y.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,n){d(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return v(e,t),r(e,null,[{key:"register",value:function(){l.default.register(g,!0),l.default.register(y,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=y,e.CodeToken=g,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(3),a=d(i),s=n(8),l=d(s),u=n(43),c=d(u),f=n(15),p=n(41),h=d(p);function d(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,n){m(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return y(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default)}}]),e}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,n){m(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,o){if(t===l.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=r.quill.getBounds(new f.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return y(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);w.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=w,e.default=b},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("ce44").Buffer)},"796d":function(t,e){t.exports=i},8915:function(t,e,n){},"8a89":function(t,e,n){"use strict";n("adc4")},"8aa1":function(t,e,n){},"8bbf":function(t,e){t.exports=a},"8e53":function(t,e,n){},"91a8":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"9f89":function(t,e){t.exports=s},a426:function(t,e,n){},a42b:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},aada:function(t,e,n){},ab21:function(t,e,n){},adc4:function(t,e,n){},bb5f:function(t,e,n){"use strict";n("8aa1")},c1c3:function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=E(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",m={};function v(){}function y(){}function g(){}var b={};l(b,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(N([])));_&&_!==n&&r.call(_,i)&&(b=_);var x=g.prototype=v.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;function i(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function E(t,e,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return C()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(t,e,n);if("normal"===l.type){if(r=n.done?d:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,n.method="throw",n.arg=l.arg)}}}function j(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var n=t[i];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){while(++o<t.length)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return y.prototype=g,l(x,"constructor",g),l(g,"constructor",y),y.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(k.prototype),l(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=N,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("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 o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},cbe4:function(t,e,n){},ce11:function(t,e,n){"use strict";n("8e53")},ce44:function(t,e,n){"use strict";(function(t){
10
+ (function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),f=n(12),p=n(32),h=n(33),d=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:p.default,Style:h.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=o;var i,a={},s={},l={},u={};function c(t,e){var n=p(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:r.create(e);return new r(i,e)}function f(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?f(t.parentNode,n):null}function p(t,e){var n;if(void 0===e&&(e=i.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?n=u["block"]:t&i.LEVEL&i.INLINE&&(n=u["inline"]);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=s[r[o]],n)break;n=n||l[t.tagName]}return null==n?null:e&i.LEVEL&n.scope&&e&i.TYPE&n.scope?n:null}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return h(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=l[t]&&null!=n.className||(l[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=c,e.find=f,e.query=p,e.register=h},function(t,e,n){var r=n(51),o=n(11),i=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){var o=t(r)?e:n;o.push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],r=a.iterator(this.ops),o=0;while(o<e&&r.hasNext()){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=a.length(i)}return new l(n)},l.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],i=n.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){var s=i.retain;while("insert"===e.peekType()&&e.peekLength()<=s)s-=e.peekLength(),r.push(e.next());i.retain-s>0&&n.next(i.retain-s)}var u=new l(r);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),p=n.next(c);if("number"===typeof p.retain){var h={};"number"===typeof f.retain?h.retain=c:h.insert=f.insert;var d=a.attributes.compose(f.attributes,p.attributes,"number"===typeof f.retain);if(d&&(h.attributes=d),u.push(h),!n.hasNext()&&o(u.ops[u.ops.length-1],h)){var m=new l(e.rest());return u.concat(m).chop()}}else"number"===typeof p["delete"]&&"number"===typeof f.retain&&u.push(p)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),i=new l,u=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),l=f.next(n);o(s.insert,l.insert)?i.retain(n,a.attributes.diff(s.attributes,l.attributes)):i.push(l)["delete"](n);break}e-=n}})),i.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),r=new l,o=0;while(n.hasNext()){if("insert"!==n.peekType())return;var i=n.peek(),s=a.length(i)-n.peekLength(),u="string"===typeof i.insert?i.insert.indexOf(e,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new l}}r.length()>0&&t(r,{},o)},l.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),r=a.iterator(t.ops),o=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),s=n.next(i),u=r.next(i);if(s["delete"])continue;u["delete"]?o.push(u):o.retain(i,a.attributes.transform(s.attributes,u.attributes,e))}else o.retain(a.length(n.next()));return o.chop()},l.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=t){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,o=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},l=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"===typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p<h;++p)if(e=arguments[p],null!=e)for(n in e)r=u(f,n),o=u(e,n),f!==o&&(d&&o&&(s(o)||(i=a(o)))?(i?(i=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(f,{name:n,newValue:t(d,c,o)})):"undefined"!==typeof o&&l(f,{name:n,newValue:o}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(3),a=y(i),s=n(2),l=y(s),u=n(0),c=y(u),f=n(16),p=y(f),h=n(6),d=y(h),m=n(7),v=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=1,x=function(t){function e(){return g(this,e),b(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return w(e,t),r(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=c.default.query(t,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"===typeof n&&n.endsWith("\n")){var i=c.default.create(k.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(c.default.Embed);x.scope=c.default.Scope.BLOCK_BLOT;var k=function(t){function e(t){g(this,e);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return w(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),O(e))}),new l.default).insert("\n",O(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;i.reduce((function(t,e){return s=s.split(t,!0),s.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof p.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-_)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(c.default.Block);function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:O(t.parent,e))}k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[d.default,c.default.Embed,v.default],e.bubbleFormats=O,e.BlockEmbed=x,e.default=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=n(2),s=O(a),l=n(14),u=O(l),c=n(8),f=O(c),p=n(9),h=O(p),d=n(0),m=O(d),v=n(15),y=O(v),g=n(3),b=O(g),w=n(10),_=O(w),x=n(34),k=O(x);function O(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var S=(0,_.default)("quill"),P=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j(this,t),this.options=A(e,r),this.container=this.options.container,null==this.container)return S.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;N.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),_.default.level(t)}},{key:"find",value:function(t){return t.__quill||m.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&S.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var o=t.attrName||t.blotName;"string"===typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||S.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?m.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=C(t,e,n),a=o(i,4);return t=a[0],e=a[1],n=a[3],N.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return N.call(this,(function(){var r=n.getSelection(!0),o=new s.default;if(null==r)return o;if(m.default.query(t,m.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,E({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,E({},t,e))}return n.setSelection(r,f.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(t,e,n,r,i){var a=this,s=void 0,l=C(t,e,n,r,i),u=o(l,4);return t=u[0],e=u[1],s=u[2],i=u[3],N.call(this,(function(){return a.editor.formatLine(t,e,s)}),i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var a=this,s=void 0,l=C(t,e,n,r,i),u=o(l,4);return t=u[0],e=u[1],s=u[2],i=u[3],N.call(this,(function(){return a.editor.formatText(t,e,s)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return N.call(this,(function(){return o.editor.insertEmbed(e,n,r)}),i,e)}},{key:"insertText",value:function(t,e,n,r,i){var a=this,s=void 0,l=C(t,0,n,r,i),u=o(l,4);return t=u[0],s=u[2],i=u[3],N.call(this,(function(){return a.editor.insertText(t,e,s)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=C(t,e,n),a=o(i,4);return t=a[0],e=a[1],n=a[3],N.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){t=new s.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1));var a=r.compose(o);return a}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=C(e,n,r),a=o(i,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new v.Range(e,n),r),r!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function A(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==P.DEFAULTS.theme){if(e.theme=P.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=k.default;var n=(0,b.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce((function(t,e){var n=P.import("modules/"+e);return null==n?S.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},P.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function N(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===f.default.sources.USER)return new s.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=T(o,a,e):0!==r&&(o=T(o,n,r,e)),this.setSelection(o,f.default.sources.SILENT)),a.length()>0){var l,u,c=[f.default.events.TEXT_CHANGE,a,i,e];if((l=this.emitter).emit.apply(l,[f.default.events.EDITOR_CHANGE].concat(c)),e!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function C(t,e,n,o,i){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(i=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(i=o,o=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,i=o):"string"===typeof n&&(null!=o?a[n]=o:i=n),i=i||f.default.sources.API,[t,e,a,i]}function T(t,e,n,r){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof s.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==f.default.sources.USER)})),u=o(l,2);i=u[0],a=u[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===f.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=o(c,2);i=p[0],a=p[1]}return new v.Range(i,a-i)}P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=f.default.events,P.sources=f.default.sources,P.version="1.3.7",P.imports={delta:s.default,parchment:m.default,"core/module":h.default,"core/theme":k.default},e.expandConfig=A,e.overload=C,e.default=P},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(7),a=u(i),s=n(0),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return c(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),r(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(t,n);i&&a.wrap(r,i)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(l.default.Inline);h.allowedChildren=[h,l.default.Embed,a.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default.Text);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(54),a=u(i),s=n(10),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=(0,l.default)("quill:events"),d=["selectionchange","mousedown","mouseup","click"];d.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var m=function(t){function e(){c(this,e);var t=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return p(e,t),r(e,[{key:"emit",value:function(){h.log.apply(h,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(a.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},e.default=m},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(e=console)[t].apply(e,i)}}function a(t){return r.reduce((function(e,n){return e[n]=i.bind(console,n,t),e}),{})}i.level=a.level=function(t){o=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:u(t,e,n))};function s(t){return null===t||void 0===t}function l(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function u(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var f=o(t),p=o(e)}catch(h){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),u=f.length-1;u>=0;u--)if(f[u]!=p[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(2),s=v(a),l=n(0),u=v(l),c=n(4),f=v(c),p=n(6),h=v(p),d=n(7),m=v(d);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=function(t){function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),e}(h.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return y(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new s.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var o=this.descendant(m.default,this.length()-1),a=r(o,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var a=this.newlineIndex(t,!0)+1,s=i-a+1,l=this.isolate(a,s),c=l.next;l.format(r,o),c instanceof e&&c.formatAt(0,t-a+n-s,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(m.default,t),i=r(o,2),a=i[0],s=i[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(f.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=w,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(2),s=j(a),l=n(20),u=j(l),c=n(0),f=j(c),p=n(13),h=j(p),d=n(24),m=j(d),v=n(4),y=j(v),g=n(16),b=j(g),w=n(21),_=j(w),x=n(11),k=j(x),O=n(3),E=j(O);function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var A=/^[ -~]*$/,N=function(){function t(e){P(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),t=T(t),t.reduce((function(t,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),t>=i&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var p=e.scroll.line(t),h=o(p,2),d=h[0],m=h[1],g=(0,E.default)({},(0,v.bubbleFormats)(d));if(d instanceof y.default){var b=d.descendant(f.default.Leaf,m),w=o(b,1),_=w[0];g=(0,E.default)(g,(0,v.bubbleFormats)(_))}l=u.default.attributes.diff(g,l)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}i+=s}return Object.keys(l).forEach((function(n){e.scroll.formatAt(t,s,n,l[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),a=e;i.forEach((function(e){var i=e.length();if(e instanceof h.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,o,r[o])}else e.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,_.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new s.default).retain(t).retain(e,(0,_.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1),i=e[0];i instanceof y.default?n.push(i):i instanceof f.default.Leaf&&r.push(i)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(f.default.Leaf,t,e));var i=[n,r].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=C((0,v.bubbleFormats)(n),e)}return e}));return E.default.apply(E.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(S({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e.length,o,r[o])})),this.update((new s.default).retain(t).insert(e,(0,_.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===y.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=o(r,2),a=i[0],l=i[1],u=0,c=new s.default;null!=a&&(u=a instanceof h.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(t,e+u),p=f.diff((new s.default).insert(n).concat(c)),d=(new s.default).retain(t).concat(p);return this.applyDelta(d)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(A)&&f.default.find(e[0].target)){var o=f.default.find(e[0].target),i=(0,v.bubbleFormats)(o),a=o.offset(this.scroll),l=e[0].oldValue.replace(m.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(o.value()),p=(new s.default).retain(a).concat(u.diff(c,n));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new s.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,k.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function C(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}function T(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,_.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,_.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new s.default)}e.default=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),a=m(i),s=n(21),l=m(s),u=n(11),c=m(u),f=n(8),p=m(f),h=n(10),d=m(h);function m(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=(0,d.default)("quill:selection"),b=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this.index=e,this.length=n},w=function(){function t(e,n){var r=this;y(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,p.default.sources.USER),1)})),this.emitter.on(p.default.events.EDITOR_CHANGE,(function(t,e){t===p.default.events.TEXT_CHANGE&&e.length()>0&&r.update(p.default.sources.SILENT)})),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(p.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(o,i,a,s)}})),this.update(p.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(p.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,i=this.scroll.leaf(t),a=r(i,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);o=c[0],l=c[1];var f=document.createRange();if(e>0){f.setStart(o,l);var p=this.scroll.leaf(t+e),h=r(p,2);if(s=h[0],l=h[1],null==s)return null;var d=s.position(l,!0),m=r(d,2);return o=m[0],l=m[1],f.setEnd(o,l),f.getBoundingClientRect()}var v="left",y=void 0;return o instanceof Text?(l<o.data.length?(f.setStart(o,l),f.setEnd(o,l+1)):(f.setStart(o,l-1),f.setEnd(o,l),v="right"),y=f.getBoundingClientRect()):(y=s.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return g.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],i=n[1],s=a.default.find(o,!0),l=s.offset(e.scroll);return 0===i?l:s instanceof a.default.Container?l+s.length():l+s.index(o,i)})),i=Math.min(Math.max.apply(Math,v(o)),this.scroll.length()-1),s=Math.min.apply(Math,[i].concat(v(o)));return new b(s,i-s)}},{key:"normalizeNative",value:function(t){if(!_(this.root,t.startContainer)||!t.collapsed&&!_(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var a=void 0,s=e.scroll.leaf(t),l=r(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),p=r(f,2);a=p[0],c=p[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),a=r(i,1),s=a[0],l=s;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var f=t.getBoundingClientRect();n.top<f.top?t.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(t.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),i.removeAllRanges(),i.addRange(s)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof e&&(n=e,e=!1),g.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,v(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.sources.USER,e=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],a=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[p.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];if((s=this.emitter).emit.apply(s,[p.default.events.EDITOR_CHANGE].concat(f)),t!==p.default.sources.SILENT)(u=this.emitter).emit.apply(u,f)}}}]),t}();function _(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"insertInto",value:function(t,n){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),i=n(30),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=a})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],a=[[this,t]];return o instanceof e?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,o){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],o=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=l(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(i.default);function l(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),i=n(31),a=n(17),s=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){var r=n(11),o=n(3),i={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=o(!0,{},e);for(var i in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return r(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=i.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"===typeof e.retain?o.retain=t:"string"===typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=i},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,o;try{n=Map}catch(f){n=function(){}}try{r=Set}catch(f){r=function(){}}try{o=Promise}catch(f){o=function(){}}function i(a,s,l,u,f){"object"===typeof s&&(l=s.depth,u=s.prototype,f=s.includeNonEnumerable,s=s.circular);var p=[],h=[],d="undefined"!=typeof e;function m(a,l){if(null===a)return null;if(0===l)return a;var v,y;if("object"!=typeof a)return a;if(t(a,n))v=new n;else if(t(a,r))v=new r;else if(t(a,o))v=new o((function(t,e){a.then((function(e){t(m(e,l-1))}),(function(t){e(m(t,l-1))}))}));else if(i.__isArray(a))v=[];else if(i.__isRegExp(a))v=new RegExp(a.source,c(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(i.__isDate(a))v=new Date(a.getTime());else{if(d&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof u?(y=Object.getPrototypeOf(a),v=Object.create(y)):(v=Object.create(u),y=u)}if(s){var g=p.indexOf(a);if(-1!=g)return h[g];p.push(a),h.push(v)}for(var b in t(a,n)&&a.forEach((function(t,e){var n=m(e,l-1),r=m(t,l-1);v.set(n,r)})),t(a,r)&&a.forEach((function(t){var e=m(t,l-1);v.add(e)})),a){var w;y&&(w=Object.getOwnPropertyDescriptor(y,b)),w&&null==w.set||(v[b]=m(a[b],l-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var x=_[b],k=Object.getOwnPropertyDescriptor(a,x);(!k||k.enumerable||f)&&(v[x]=m(a[x],l-1),k.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(f){var O=Object.getOwnPropertyNames(a);for(b=0;b<O.length;b++){var E=O[b];k=Object.getOwnPropertyDescriptor(a,E);k&&k.enumerable||(v[E]=m(a[E],l-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),m(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){return"object"===typeof t&&"[object Date]"===a(t)}function l(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function c(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=a,i.__isDate=s,i.__isArray=l,i.__isRegExp=u,i.__getRegExpFlags=c,i}();"object"===typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),s=g(a),l=n(8),u=g(l),c=n(4),f=g(c),p=n(16),h=g(p),d=n(13),m=g(d),v=n(25),y=g(v);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function x(t){return t instanceof f.default||t instanceof c.BlockEmbed}var k=function(t){function e(t,n){b(this,e);var r=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return _(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var o=this.line(t),a=r(o,2),s=a[0],l=a[1],u=this.line(t+n),f=r(u,1),p=f[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&s!==p&&l>0){if(s instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(s instanceof m.default){var d=s.newlineIndex(s.length(),!0);if(d>-1&&(s=s.split(d+1),s===p))return void this.optimize()}else if(p instanceof m.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var y=p.children.head instanceof h.default?null:p.children.head;s.moveChildren(p,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var o=s.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(t),t=r}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(x,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,(function(e,n,r){x(e)?o.push(e):e instanceof s.default.Container&&(o=o.concat(t(e,n,i))),i-=r})),o};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[f.default,c.BlockEmbed,y.default],e.default=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(21),s=O(a),l=n(11),u=O(l),c=n(3),f=O(c),p=n(2),h=O(p),d=n(20),m=O(d),v=n(0),y=O(v),g=n(5),b=O(g),w=n(10),_=O(w),x=n(9),k=O(x);function O(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function P(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var A=(0,_.default)("quill:keyboard"),N=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(t){function e(t,n){j(this,e);var r=S(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},I),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},L),r.addBinding({key:e.keys.DELETE},{collapsed:!0},M)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},L),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},q),r.addBinding({key:e.keys.DELETE},{collapsed:!1},q),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},L),r.listen(),r}return P(e,t),i(e,null,[{key:"match",value:function(t,e){return e=$(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$(t);if(null==r||null==r.key)return A.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,f.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var l=t.quill.getLine(s.index),c=o(l,2),f=c[0],p=c[1],h=t.quill.getLeaf(s.index),d=o(h,2),m=d[0],v=d[1],g=0===s.length?[m,v]:t.quill.getLeaf(s.index+s.length),b=o(g,2),w=b[0],_=b[1],x=m instanceof y.default.Text?m.value().slice(0,v):"",k=w instanceof y.default.Text?w.value().slice(_):"",O={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:t.quill.getFormat(s),offset:p,prefix:x,suffix:k},E=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==O.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,u.default)(e.format[t],O.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(O.prefix))&&(!(null!=e.suffix&&!e.suffix.test(O.suffix))&&!0!==e.handler.call(t,s,O))}));E&&n.preventDefault()}}}}))}}]),e}(k.default);function T(t,e){var n,r=t===C.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},E(n,r,/^$/),E(n,"handler",(function(n){var r=n.index;t===C.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r),a=o(i,1),s=a[0];return!(s instanceof y.default.Embed)||(t===C.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function L(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=o(n,1),i=r[0],a={};if(0===e.offset){var s=this.quill.getLine(t.index-1),l=o(s,1),u=l[0];if(null!=u&&u.length()>1){var c=i.formats(),f=this.quill.getFormat(t.index-1,1);a=m.default.attributes.diff(c,f)||{}}}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-p,p,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-p,p,a,b.default.sources.USER),this.quill.focus()}}function M(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(t.index),s=o(a,1),l=s[0];if(e.offset>=l.length()-1){var u=this.quill.getLine(t.index+1),c=o(u,1),f=c[0];if(f){var p=l.formats(),h=this.quill.getFormat(t.index,1);r=m.default.attributes.diff(p,h)||{},i=f.length()}}this.quill.deleteText(t.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,b.default.sources.USER)}}function q(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=m.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function I(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],b.default.sources.USER))}))}function D(t){return{key:C.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=y.default.query("code-block"),r=e.index,i=e.length,a=this.quill.scroll.descendant(n,r),s=o(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,p=l.newlineIndex(c+u+i),h=l.domNode.textContent.slice(f,p).split("\n");u=0,h.forEach((function(e,o){t?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,i,b.default.sources.SILENT)}}}}function R(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],b.default.sources.USER)}}}function $(t){if("string"===typeof t||"number"===typeof t)return $({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=C.keys[t.key.toUpperCase()])t.key=C.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[N]=t.shortKey,delete t.shortKey),t}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new h.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],a=(0,f.default)({},r.formats(),{list:"checked"}),s=(new h.default).retain(t.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),i=r[0],a=r[1],s=(new h.default).retain(t.index).insert("\n",e.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=o(r,2),a=i[0],s=i[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new h.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,b.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],a=(new h.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":T(C.keys.LEFT,!1),"embed left shift":T(C.keys.LEFT,!0),"embed right":T(C.keys.RIGHT,!1),"embed right shift":T(C.keys.RIGHT,!0)}},e.default=C,e.SHORTKEY=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(0),s=c(a),l=n(7),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,n){f(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return h(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);var r=this,i=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,a=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];o=l[0],i=l[1],a=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof u.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,a].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),p=r(f,2);return i=p[0],a=p[1],{startNode:o,startOffset:i,endNode:o,endOffset:a}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=s(r),i=n(4),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),e}(o.default.Container);f.allowedChildren=[a.default,i.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),p=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new f("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=f,e.ColorClass=p,e.ColorStyle=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(6),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return p(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function p(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(23),a=u(i),s=n(107),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=0;function p(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var h=function(){function t(e){var n=this;c(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),p(this.label,"aria-expanded"),p(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=A(r),i=n(5),a=A(i),s=n(4),l=A(s),u=n(16),c=A(u),f=n(25),p=A(f),h=n(24),d=A(h),m=n(35),v=A(m),y=n(6),g=A(y),b=n(22),w=A(b),_=n(7),x=A(_),k=n(55),O=A(k),E=n(42),j=A(E),S=n(23),P=A(S);function A(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":p.default,"blots/cursor":d.default,"blots/embed":v.default,"blots/inline":g.default,"blots/scroll":w.default,"blots/text":x.default,"modules/clipboard":O.default,"modules/history":j.default,"modules/keyboard":P.default}),o.default.register(l.default,c.default,d.default,g.default,w.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),s=i.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12);function i(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=i(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=i(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12);function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,n){o(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=u(i),s=n(7),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h="\ufeff",d=function(t){function e(t){c(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return p(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(a.default.Embed);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),l=new o.default.Attributor.Class("align","ql-align",a),u=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=l,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),o=a(r),i=n(26);function a(t){return t&&t.__esModule?t:{default:t}}var s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),l=new o.default.Attributor.Class("direction","ql-direction",a),u=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=l,e.DirectionStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new a.default.Attributor.Class("font","ql-font",f),h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),d=new h("font","font-family",f);e.FontStyle=d,e.FontClass=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),i=c(o),a=n(5),s=c(a),l=n(9),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,n){f(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,o){t!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==s.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return h(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],s.default.sources.USER),this.ignoreChange=!1;var r=v(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function m(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return m(t)&&(n-=1),n}d.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=d,e.getLastChangeIndex=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(3),a=k(i),s=n(2),l=k(s),u=n(8),c=k(u),f=n(23),p=k(f),h=n(34),d=k(h),m=n(59),v=k(m),y=n(60),g=k(y),b=n(28),w=k(b),_=n(61),x=k(_);function k(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function j(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var S=[!1,"center","right","justify"],P=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],A=[!1,"serif","monospace"],N=["1","2","3",!1],C=["small",!1,"large","huge"],T=function(t){function e(t,n){O(this,e);var r=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),o=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,o),r}return j(e,t),r(e,[{key:"addModule",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n]["rtl"];else if("string"===typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&q(t,S),new g.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&q(t,P,"background"===n?"#ffffff":"#000000"),new v.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?q(t,A):t.classList.contains("ql-header")?q(t,N):t.classList.contains("ql-size")&&q(t,C)),new w.default(t)}));var r=function(){n.pickers.forEach((function(t){t.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),e}(d.default);T.DEFAULTS=(0,a.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),t.quill.setSelection(r.index+1,c.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var L=function(t){function e(t,n){O(this,e);var r=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return j(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){p.default.match(e,"enter")?(t.save(),e.preventDefault()):p.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=M(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(x.default);function M(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function q(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=L,e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,r=this.iterator();while(n=r()){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){var e,n=this.iterator();while(e=n())t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0)){var r,o=this.find(t),i=o[0],a=o[1],s=t-a,l=this.iterator(i);while((r=l())&&s<t+e){var u=r.length();t>s?n(r,t-s,Math.min(e,s+u-t)):n(r,0,Math.min(u,t+e-s)),s+=u}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,r=this.iterator();while(n=r())e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var l=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&l(t.parent))},u=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(n))},c=e,f=0;c.length>0;f+=1){if(f>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(l(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=i.find(t,!1);l(e,!1),e instanceof o.default&&e.children.forEach((function(t){l(t,!1)}))}))):"attributes"===t.type&&l(e.prev)),l(e))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)})),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||i.query(r,i.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&a(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=i.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),a=i.create(n,r);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,r=1,o=0;function i(t,e,n){if(t==e)return t?[[o,t]]:[];(n<0||t.length<n)&&(n=null);var r=u(t,e),i=t.substring(0,r);t=t.substring(r),e=e.substring(r),r=c(t,e);var s=t.substring(t.length-r);t=t.substring(0,t.length-r),e=e.substring(0,e.length-r);var l=a(t,e);return i&&l.unshift([o,i]),s&&l.push([o,s]),p(l),null!=n&&(l=m(l,n)),l=v(l),l}function a(t,e){var a;if(!t)return[[r,e]];if(!e)return[[n,t]];var l=t.length>e.length?t:e,u=t.length>e.length?e:t,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[o,u],[r,l.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[r,e]];var p=f(t,e);if(p){var h=p[0],d=p[1],m=p[2],v=p[3],y=p[4],g=i(h,m),b=i(d,v);return g.concat([[o,y]],b)}return s(t,e)}function s(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),p=0;p<u;p++)c[p]=-1,f[p]=-1;c[s+1]=0,f[s+1]=0;for(var h=o-i,d=h%2!=0,m=0,v=0,y=0,g=0,b=0;b<a;b++){for(var w=-b+m;w<=b-v;w+=2){var _=s+w;S=w==-b||w!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1;var x=S-w;while(S<o&&x<i&&t.charAt(S)==e.charAt(x))S++,x++;if(c[_]=S,S>o)v+=2;else if(x>i)m+=2;else if(d){var k=s+h-w;if(k>=0&&k<u&&-1!=f[k]){var O=o-f[k];if(S>=O)return l(t,e,S,x)}}}for(var E=-b+y;E<=b-g;E+=2){k=s+E;O=E==-b||E!=b&&f[k-1]<f[k+1]?f[k+1]:f[k-1]+1;var j=O-E;while(O<o&&j<i&&t.charAt(o-O-1)==e.charAt(i-j-1))O++,j++;if(f[k]=O,O>o)g+=2;else if(j>i)y+=2;else if(!d){_=s+h-E;if(_>=0&&_<u&&-1!=c[_]){var S=c[_];x=s+S-_;if(O=o-O,S>=O)return l(t,e,S,x)}}}}return[[n,t],[r,e]]}function l(t,e,n,r){var o=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),u=i(o,a),c=i(s,l);return u.concat(c)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,r=Math.min(t.length,e.length),o=r,i=0;while(n<o)t.substring(i,o)==e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function c(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var n=0,r=Math.min(t.length,e.length),o=r,i=0;while(n<o)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function f(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function o(t,e,n){var r,o,i,a,s=t.substring(n,n+Math.floor(t.length/4)),l=-1,f="";while(-1!=(l=e.indexOf(s,l+1))){var p=u(t.substring(n),e.substring(l)),h=c(t.substring(0,n),e.substring(0,l));f.length<h+p&&(f=e.substring(l-h,l)+e.substring(l,l+p),r=t.substring(0,n-h),o=t.substring(n+p),i=e.substring(0,l-h),a=e.substring(l+p))}return 2*f.length>=t.length?[r,o,i,a,f]:null}var i,a,s,l,f,p=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;i=h?p&&p[4].length>h[4].length?p:h:p,t.length>e.length?(a=i[0],s=i[1],l=i[2],f=i[3]):(l=i[0],f=i[1],a=i[2],s=i[3]);var d=i[4];return[a,s,l,f,d]}function p(t){t.push([o,""]);var e,i=0,a=0,s=0,l="",f="";while(i<t.length)switch(t[i][0]){case r:s++,f+=t[i][1],i++;break;case n:a++,l+=t[i][1],i++;break;case o:a+s>1?(0!==a&&0!==s&&(e=u(f,l),0!==e&&(i-a-s>0&&t[i-a-s-1][0]==o?t[i-a-s-1][1]+=f.substring(0,e):(t.splice(0,0,[o,f.substring(0,e)]),i++),f=f.substring(e),l=l.substring(e)),e=c(f,l),0!==e&&(t[i][1]=f.substring(f.length-e)+t[i][1],f=f.substring(0,f.length-e),l=l.substring(0,l.length-e))),0===a?t.splice(i-s,a+s,[r,f]):0===s?t.splice(i-a,a+s,[n,l]):t.splice(i-a-s,a+s,[n,l],[r,f]),i=i-a-s+(a?1:0)+(s?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,s=0,a=0,l="",f="";break}""===t[t.length-1][1]&&t.pop();var h=!1;i=1;while(i<t.length-1)t[i-1][0]==o&&t[i+1][0]==o&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),h=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),h=!0)),i++;h&&p(t)}var h=i;function d(t,e){if(0===e)return[o,t];for(var r=0,i=0;i<t.length;i++){var a=t[i];if(a[0]===n||a[0]===o){var s=r+a[1].length;if(e===s)return[i+1,t];if(e<s){t=t.slice();var l=e-r,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return t.splice(i,1,u,c),[i+1,t]}r=s}}throw new Error("cursor_pos is out of bounds!")}function m(t,e){var n=d(t,e),r=n[1],i=n[0],a=r[i],s=r[i+1];if(null==a)return t;if(a[0]!==o)return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(i,2,s,a),y(r,i,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(i,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(i+2,0,[s[0],l]),y(r,i,3)}return t}function v(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s<t.length;s+=1)t[s-2][0]===o&&a(t[s-2][1])&&t[s-1][0]===n&&i(t[s-1][1])&&t[s][0]===r&&i(t[s][1])&&(e=!0,t[s-1][1]=t[s-2][1].slice(-1)+t[s-1][1],t[s][1]=t[s-2][1].slice(-1)+t[s][1],t[s-2][1]=t[s-2][1].slice(0,-1));if(!e)return t;var l=[];for(s=0;s<t.length;s+=1)t[s][1].length>0&&l.push(t[s]);return l}function y(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}h.INSERT=r,h.DELETE=n,h.EQUAL=o,t.exports=h},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"===typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=n?r:o,e.supported=r,e.unsupported=o},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)n.call(t,e)&&o.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t,e){var n=r?r+t:t,o=this._events[n];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,s=new Array(a);i<a;i++)s[i]=o[i].fn;return s},a.prototype.emit=function(t,e,n,o,i,a){var s=r?r+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,o),!0;case 5:return c.fn.call(c.context,e,n,o,i),!0;case 6:return c.fn.call(c.context,e,n,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,o);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(t,e,n){var o=new i(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(t,e,n){var o=new i(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,i){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==e||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=j(a),l=n(2),u=j(l),c=n(0),f=j(c),p=n(5),h=j(p),d=n(10),m=j(d),v=n(9),y=j(v),g=n(36),b=n(37),w=n(13),_=j(w),x=n(26),k=n(38),O=n(39),E=n(40);function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function N(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var C=(0,m.default)("quill:clipboard"),T="__ql-matcher",L=[[Node.TEXT_NODE,J],[Node.TEXT_NODE,G],["br",z],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,Z],["li",H],["b",F.bind(F,"bold")],["i",F.bind(F,"italic")],["style",Y]],M=[g.AlignAttribute,k.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),q=[g.AlignStyle,b.BackgroundStyle,x.ColorStyle,k.DirectionStyle,O.FontStyle,E.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),I=function(t){function e(t,n){P(this,e);var r=A(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],L.concat(r.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],a=e[1];(n.matchVisual||a!==W)&&r.addMatcher(i,a)})),r}return N(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[_.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,S({},_.default.blotName,e[_.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],s=i[1],l=V(this.container,a,s);return $(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),C.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,h.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,h.default.sources.USER),e.quill.setSelection(r.length()-n.length,h.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],s=i[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[T]=t[T]||[],t[T].push(s)}));break}})),[e,n]}}]),e}(y.default);function D(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return D(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,s.default)({},S({},e,n),r.attributes))}),new u.default)}function R(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function $(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!==typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function B(t){if(0===t.childNodes.length)return!1;var e=R(t);return["block","list-item"].indexOf(e.display)>-1}function V(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,o){var i=V(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[T]||[]).reduce((function(t,e){return e(o,t)}),i)),r.concat(i)}),new u.default):new u.default}function F(t,e,n){return D(n,t,!0)}function U(t,e){var n=f.default.Attributor.Attribute.keys(t),r=f.default.Attributor.Class.keys(t),o=f.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach((function(e){var n=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=M[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),n=q[e],null==n||n.attrName!==e&&n.keyName!==e||(n=q[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=D(e,i)),e}function K(t,e){var n=f.default.query(t);if(null==n)return e;if(n.prototype instanceof f.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new u.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=D(e,n.blotName,n.formats(t)));return e}function z(t,e){return $(e,"\n")||e.insert("\n"),e}function Y(){return new u.default}function H(t,e){var n=f.default.query(t);if(null==n||"list-item"!==n.blotName||!$(e,"\n"))return e;var r=-1,o=t.parentNode;while(!o.classList.contains("ql-clipboard"))"list"===(f.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:r}))}function G(t,e){return $(e,"\n")||(B(t)||e.length()>0&&t.nextSibling&&B(t.nextSibling))&&e.insert("\n"),e}function W(t,e){if(B(t)&&null!=t.nextElementSibling&&!$(e,"\n\n")){var n=t.offsetHeight+parseFloat(R(t).marginTop)+parseFloat(R(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function Z(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===R(t).fontStyle&&(n.italic=!0),r.fontWeight&&(R(t).fontWeight.startsWith("bold")||parseInt(R(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=D(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function J(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!R(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&B(t.parentNode)||null!=t.previousSibling&&B(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&B(t.parentNode)||null!=t.nextSibling&&B(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}I.DEFAULTS={matchers:[],matchVisual:!0},e.default=I,e.matchAttributor=U,e.matchBlot=K,e.matchNewline=G,e.matchSpacing=W,e.matchText=J},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(6),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(2),a=m(i),s=n(0),l=m(s),u=n(5),c=m(u),f=n(10),p=m(f),h=n(9),d=m(h);function m(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=(0,p.default)("quill:toolbar"),_=function(t){function e(t,n){y(this,e);var o,i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");k(a,i.options.container),t.container.parentNode.insertBefore(a,t.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e){t===c.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=r(t,1),n=e[0];i.update(n)})),i):(o=w.error("Container required for toolbar",i.options),g(i,o))}return b(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void w.warn("ignoring attaching to disabled format",n,t);if(null==l.default.query(n))return void w.warn("ignoring attaching to nonexistent format",n,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];i=!s.hasAttribute("selected")&&(s.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),f=r(u,1),p=f[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(l.default.query(n).prototype instanceof l.default.Embed){if(i=prompt("Enter "+n),!i)return;e.quill.updateContents((new a.default).retain(p.index).delete(p.length).insert(v({},n,i)),c.default.sources.USER)}else e.quill.format(n,i,c.default.sources.USER);e.update(p)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[i])s=a.querySelector("option[selected]");else if(!Array.isArray(e[i])){var l=e[i];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[i]===a.getAttribute("value")||null!=e[i]&&e[i].toString()===a.getAttribute("value")||null==e[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[i])}))}}]),e}(d.default);function x(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function k(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)x(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?O(n,e,r):x(n,e,r)}})),t.appendChild(n)}))}function O(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=l.default.query(e,l.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,c.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",c.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",t,c.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,c.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,c.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",t,c.default.sources.USER)}}},e.default=_,e.addControls=k},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(28),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,n){l(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return c(e,t),r(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(28),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,n){l(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(e,t),r(e,[{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,n){var r=this;o(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=y(a),l=n(8),u=y(l),c=n(43),f=y(c),p=n(27),h=y(p),d=n(15),m=n(41),v=y(m);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(t){function e(t,n){g(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return w(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default),this.tooltip=new k(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers["link"].call(t,!n.format.link)}))}}]),e}(f.default);x.DEFAULTS=(0,s.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var k=function(t){function e(t,n){g(this,e);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return w(e,t),i(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,n,o){if(null!=e){if(0===e.length&&o===u.default.sources.USER){var i=t.quill.scroll.descendant(h.default,e.index),a=r(i,2),s=a[0],l=a[1];if(null!=s){t.linkRange=new d.Range(e.index-l,s.length());var c=h.default.formats(s.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(c.BaseTooltip);k.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),o=nt(r),i=n(36),a=n(38),s=n(64),l=n(65),u=nt(l),c=n(66),f=nt(c),p=n(67),h=nt(p),d=n(37),m=n(26),v=n(39),y=n(40),g=n(56),b=nt(g),w=n(68),_=nt(w),x=n(27),k=nt(x),O=n(69),E=nt(O),j=n(70),S=nt(j),P=n(71),A=nt(P),N=n(72),C=nt(N),T=n(73),L=nt(T),M=n(13),q=nt(M),I=n(74),D=nt(I),R=n(75),$=nt(R),B=n(57),V=nt(B),F=n(41),U=nt(F),K=n(28),z=nt(K),Y=n(59),H=nt(Y),G=n(60),W=nt(G),Z=n(61),J=nt(Z),X=n(108),Q=nt(X),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}o.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":u.default,"formats/code-block":q.default,"formats/header":f.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":M.Code,"formats/italic":_.default,"formats/link":k.default,"formats/script":E.default,"formats/strike":S.default,"formats/underline":A.default,"formats/image":C.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":D.default,"modules/syntax":$.default,"modules/toolbar":V.default,"themes/bubble":Q.default,"themes/snow":et.default,"ui/icons":U.default,"ui/picker":z.default,"ui/icon-picker":W.default,"ui/color-picker":H.default,"ui/tooltip":J.default},!0),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),p=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4),i=a(o);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),r(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(i.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=f(i),s=n(4),l=f(s),u=n(25),c=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return h(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return m(e,t),r(e,[{key:"format",value:function(t,n){t!==y.blotName||n?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(l.default);v.blotName="list-item",v.tagName="LI";var y=function(t){function e(t){h(this,e);var n=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=a.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return m(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);y.blotName="list",y.scope=a.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[v],e.ListItem=v,e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(6),a=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=l(i),s=n(27);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=["alt","height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){p.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return p.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(4),a=n(27),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=["height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){p.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return p.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(i.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(35),a=f(i),s=n(5),l=f(s),u=n(9),c=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return p(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,null,[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var v=function(t){function e(){p(this,e);var t=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return d(e,t),r(e,null,[{key:"register",value:function(){l.default.register(m,!0)}}]),e}(c.default);e.FormulaBlot=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=n(0),a=h(i),s=n(5),l=h(s),u=n(9),c=h(u),f=n(13),p=h(f);function h(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return d(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(p.default);y.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,n){d(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return v(e,t),r(e,null,[{key:"register",value:function(){l.default.register(g,!0),l.default.register(y,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=y,e.CodeToken=g,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(3),a=d(i),s=n(8),l=d(s),u=n(43),c=d(u),f=n(15),p=n(41),h=d(p);function d(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,n){m(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return y(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default)}}]),e}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,n){m(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,o){if(t===l.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=r.quill.getBounds(new f.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return y(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);w.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=w,e.default=b},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("ce44").Buffer)},"796d":function(t,e){t.exports=i},8915:function(t,e,n){},"8a89":function(t,e,n){"use strict";n("adc4")},"8aa1":function(t,e,n){},"8bbf":function(t,e){t.exports=a},"8e53":function(t,e,n){},"91a8":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"9f89":function(t,e){t.exports=s},a426:function(t,e,n){},a42b:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},aada:function(t,e,n){},ab21:function(t,e,n){},adc4:function(t,e,n){},bb5f:function(t,e,n){"use strict";n("8aa1")},c1c3:function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=E(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",m={};function v(){}function y(){}function g(){}var b={};l(b,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(N([])));_&&_!==n&&r.call(_,i)&&(b=_);var x=g.prototype=v.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;function i(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function E(t,e,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return C()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(t,e,n);if("normal"===l.type){if(r=n.done?d:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,n.method="throw",n.arg=l.arg)}}}function j(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var n=t[i];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){while(++o<t.length)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return y.prototype=g,l(x,"constructor",g),l(g,"constructor",y),y.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},k(O.prototype),l(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=N,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("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 o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},cbe4:function(t,e,n){},ce11:function(t,e,n){"use strict";n("8e53")},ce44:function(t,e,n){"use strict";(function(t){
11
11
  /*!
12
12
  * The buffer module from node.js, for the browser.
13
13
  *
14
14
  * @author Feross Aboukhadijeh <http://feross.org>
15
15
  * @license MIT
16
16
  */
17
- var r=n("2a55"),o=n("15a5"),i=n("91a8");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,n,r):"string"===typeof e?d(t,e,n):y(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,e,n,r){return f(e),e<=0?l(t,e):void 0!==n?"string"===typeof r?l(t,e).fill(n,r):l(t,e).fill(n):l(t,e)}function h(t,e){if(f(e),t=l(t,e<0?0:0|g(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,n);t=l(t,r);var o=t.write(e,n);return o!==r&&(t=t.slice(0,o)),t}function m(t,e){var n=e.length<0?0:0|g(e.length);t=l(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function v(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=m(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|g(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):m(t,e);if("Buffer"===e.type&&i(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function w(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return Z(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return q(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function x(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function O(t,e,n,r,o){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:k(t,e,n,r,o);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):k(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function k(t,e,n,r,o){var i,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(t,i)===u(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,p=0;p<l;p++)if(u(t,i+p)!==u(e,p)){f=!1;break}if(f)return i}return-1}function E(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function j(t,e,n,r){return tt(Z(e,t.length-n),t,n,r)}function S(t,e,n,r){return tt(J(e),t,n,r)}function P(t,e,n,r){return S(t,e,n,r)}function A(t,e,n,r){return tt(Q(e),t,n,r)}function N(t,e,n,r){return tt(X(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);var r=[],o=e;while(o<n){var i,a,s,l,u=t[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:i=t[o+1],128===(192&i)&&(l=(31&u)<<6|63&i,l>127&&(c=l));break;case 3:i=t[o+1],a=t[o+2],128===(192&i)&&128===(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return M(r)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return p(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var i=o-r,a=n-e,s=Math.min(i,a),l=this.slice(r,o),c=t.slice(e,n),f=0;f<s;++f)if(l[f]!==c[f]){i=l[f],a=c[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return O(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return O(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return j(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return P(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function M(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=L));return n}function q(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function D(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=W(t[i]);return o}function R(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function $(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function F(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function U(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(t,e,n,r,i){return i||U(t,e,n,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,n,r,23,4),n+4}function z(t,e,n,r,i){return i||U(t,e,n,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var o=e-t;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=this[t],o=1,i=0;while(++i<e&&(o*=256))r+=this[t+i]*o;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=this[t+--e],o=1;while(e>0&&(o*=256))r+=this[t+--e]*o;return r},u.prototype.readUInt8=function(t,e){return e||$(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||$(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||$(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=this[t],o=1,i=0;while(++i<e&&(o*=256))r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=e,o=1,i=this[t+--r];while(r>0&&(o*=256))i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||$(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||$(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||$(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||$(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||$(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||$(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;B(this,t,e,n,o,0)}var i=1,a=0;this[e]=255&t;while(++a<n&&(i*=256))this[e+a]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;B(this,t,e,n,o,0)}var i=n-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=0,a=1,s=0;this[e]=255&t;while(++i<n&&(a*=256))t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=n-1,a=1,s=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return K(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return K(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return z(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return z(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=u.isBuffer(t)?t:Z(new u(t,r).toString()),s=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function H(t){if(t=G(t).replace(Y,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function X(t,e){for(var n,r,o,i=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function Q(t){return r.toByteArray(H(t))}function tt(t,e,n,r){for(var o=0;o<r;++o){if(o+n>=e.length||o>=t.length)break;e[o+n]=t[o]}return o}function et(t){return t!==t}}).call(this,n("a42b"))},cebe:function(t,e){t.exports=l},d224:function(t,e,n){},d28d:function(t,e,n){"use strict";n("a426")},dc36:function(t,e,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(h.stack)||a.exec(h.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<f.length;p++){if("interactive"===f[p].readyState)return f[p];if(f[p].src===l)return f[p];if(l===c&&f[p].innerHTML&&f[p].innerHTML.trim()===o)return f[p]}return null}}return t}))},e39e:function(t,e){t.exports=u},f6c7:function(t,e,n){}})}));
17
+ var r=n("2a55"),o=n("15a5"),i=n("91a8");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,n,r):"string"===typeof e?d(t,e,n):y(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,e,n,r){return f(e),e<=0?l(t,e):void 0!==n?"string"===typeof r?l(t,e).fill(n,r):l(t,e).fill(n):l(t,e)}function h(t,e){if(f(e),t=l(t,e<0?0:0|g(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,n);t=l(t,r);var o=t.write(e,n);return o!==r&&(t=t.slice(0,o)),t}function m(t,e){var n=e.length<0?0:0|g(e.length);t=l(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function v(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=m(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|g(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):m(t,e);if("Buffer"===e.type&&i(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function w(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return Z(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return q(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function x(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function k(t,e,n,r,o){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,o);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,o){var i,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(t,i)===u(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,p=0;p<l;p++)if(u(t,i+p)!==u(e,p)){f=!1;break}if(f)return i}return-1}function E(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function j(t,e,n,r){return tt(Z(e,t.length-n),t,n,r)}function S(t,e,n,r){return tt(J(e),t,n,r)}function P(t,e,n,r){return S(t,e,n,r)}function A(t,e,n,r){return tt(Q(e),t,n,r)}function N(t,e,n,r){return tt(X(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);var r=[],o=e;while(o<n){var i,a,s,l,u=t[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:i=t[o+1],128===(192&i)&&(l=(31&u)<<6|63&i,l>127&&(c=l));break;case 3:i=t[o+1],a=t[o+2],128===(192&i)&&128===(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return M(r)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return p(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var i=o-r,a=n-e,s=Math.min(i,a),l=this.slice(r,o),c=t.slice(e,n),f=0;f<s;++f)if(l[f]!==c[f]){i=l[f],a=c[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return k(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return k(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return j(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return P(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function M(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=L));return n}function q(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function D(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=W(t[i]);return o}function R(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function $(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function F(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function U(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(t,e,n,r,i){return i||U(t,e,n,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,n,r,23,4),n+4}function z(t,e,n,r,i){return i||U(t,e,n,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var o=e-t;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=this[t],o=1,i=0;while(++i<e&&(o*=256))r+=this[t+i]*o;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=this[t+--e],o=1;while(e>0&&(o*=256))r+=this[t+--e]*o;return r},u.prototype.readUInt8=function(t,e){return e||$(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||$(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||$(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=this[t],o=1,i=0;while(++i<e&&(o*=256))r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||$(t,e,this.length);var r=e,o=1,i=this[t+--r];while(r>0&&(o*=256))i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||$(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||$(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||$(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||$(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||$(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||$(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;B(this,t,e,n,o,0)}var i=1,a=0;this[e]=255&t;while(++a<n&&(i*=256))this[e+a]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;B(this,t,e,n,o,0)}var i=n-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=0,a=1,s=0;this[e]=255&t;while(++i<n&&(a*=256))t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=n-1,a=1,s=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return K(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return K(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return z(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return z(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=u.isBuffer(t)?t:Z(new u(t,r).toString()),s=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function H(t){if(t=G(t).replace(Y,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function X(t,e){for(var n,r,o,i=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function Q(t){return r.toByteArray(H(t))}function tt(t,e,n,r){for(var o=0;o<r;++o){if(o+n>=e.length||o>=t.length)break;e[o+n]=t[o]}return o}function et(t){return t!==t}}).call(this,n("a42b"))},cebe:function(t,e){t.exports=l},d224:function(t,e,n){},d28d:function(t,e,n){"use strict";n("a426")},dc36:function(t,e,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(h.stack)||a.exec(h.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<f.length;p++){if("interactive"===f[p].readyState)return f[p];if(f[p].src===l)return f[p];if(l===c&&f[p].innerHTML&&f[p].innerHTML.trim()===o)return f[p]}return null}}return t}))},e39e:function(t,e){t.exports=u},f6c7:function(t,e,n){}})}));
18
18
  //# sourceMappingURL=core.umd.min.js.map