text: /*! chatux v1.1.0 Copyright (c) 2019 Tom Misawa, riversun.org@gmail.com, https://github.com/riversun */
  !function(t,e){
    if("object"==typeof exports&&"object"==typeof module)module.exports=e();
    else if("function"==typeof define&&define.amd)define([],e);
    else{var n=e();
      for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}
    }
  
      (window,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,{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="/js/",n(n.s=82)}([function(t,e,n){var r=n(19)("wks"),o=n(18),i=n(1).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(7),o=n(28);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(1),o=n(2),i=n(8),a=n(18)("src"),s=n(49),l=(""+s).split("toString");n(9).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4),o=n(47),i=n(48),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),l=null,c=0,u=[],d=n(75);function f(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(b(r.parts[a],e))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(b(r.parts[a],e));i[r.id]={id:r.id,refs:1,parts:s}}}}function p(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function h(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(t.insertAt.before,n);n.insertBefore(e,o)}}function m(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),h(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function b(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=c++;n=l||(l=v(e)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),h(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=p(t,e);return f(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}t&&f(p(t,e),e);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var y,x=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e,n){
  /*! jsframe v1.5.14 Copyright (c) 2019 Tom Misawa */
  window,t.exports=function(){return n={},t.m=e=[function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r,o,i,a={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=(i={},function(t,e){if("function"==typeof t)return t();if(void 0===i[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}i[t]=n}return i[t]}),c=null,u=0,d=[],f=n(6);function p(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=a[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(y(r.parts[i],e))}else{var s=[];for(i=0;i<r.parts.length;i++)s.push(y(r.parts[i],e));a[r.id]={id:r.id,refs:1,parts:s}}}}function h(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function m(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),d.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(t.insertAt.before,n);n.insertBefore(e,o)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=d.indexOf(t);0<=e&&d.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=n.nc;r&&(t.attrs.nonce=r)}return b(e,t.attrs),m(t,e),e}function b(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function y(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=u++;n=c=c||g(e),r=C.bind(null,n,a,!1),o=C.bind(null,n,a,!0)}else o=t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),m(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),r=function(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),function(){v(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var i=n[o];(s=a[i.id]).refs--,r.push(s)}for(t&&p(h(t,e),e),o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete a[s.id]}}}};var x,w=(x=[],function(t,e){return x[t]=e,x.filter(Boolean).join("\n")});function C(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e,n){var r=n(8);function o(){this.fps=30,this.durationMillis=200,this.targetFrame=null,this._crrAlpha=1,this._toAlpha=1,this._crrWidth=0,this._crrHeight=0,this._toWidth=0,this._toHeight=0,this._toX=0,this._toY=0,this.pinnedAnimationEnabled=!1,this._pinX=0,this._pinY=0,this._pinAnchor=null}o.prototype.set=function(t){var e=this;e.targetFrame=t,e.fromWidth(t.getWidth()),e.fromHeight(t.getHeight()),e.toWidth(t.getWidth()),e.toHeight(t.getHeight());var n=t.getPosition();return e.fromPosition(n.x,n.y,n.anchor),e},o.prototype.get=function(){return this.targetFrame},o.prototype.setDuration=function(t){return this.durationMillis=t,this},o.prototype.setFPS=function(t){return this.fps=t,this},o.prototype.fromPosition=function(t,e,n){var r=this;return r.pinnedAnimationEnabled=!0,r._pinX=t,r._pinY=e,r.toPosition(t,e),n&&(r._pinAnchor=n),r},o.prototype.fromWidth=function(t){return this._crrWidth=t,this},o.prototype.fromHeight=function(t){return this._crrHeight=t,this},o.prototype.toWidth=function(t){return this._toWidth=t,this},o.prototype.toHeight=function(t){return this._toHeight=t,this},o.prototype.fromAlpha=function(t){return this._crrAlpha=t,this},o.prototype.toAlpha=function(t){return this._toAlpha=t,this},o.prototype.toPosition=function(t,e){return this._toX=t,this._toY=e,this},o.prototype.toX=function(t){return this._toX=t,this},o.prototype.toY=function(t){return this._toY=t,this},o.prototype.start=function(t,e){var n=this,o=n._crrWidth,i=n._crrHeight,a=n._pinX,s=n._pinY,l=n._crrAlpha;return new Promise(function(c,u){var d=parseInt(n.fps*(n.durationMillis/1e3));0==d&&(d=1);var f=(n._toWidth-o)/d,p=(n._toHeight-i)/d,h=(n._toX-a)/d,m=(n._toY-s)/d,v=(n._toAlpha-l)/d,g=n.durationMillis/d,b=0;function y(){var t=new r;t.setIntervalMillis(g),t.setCallback(function(t){if(b==d){var r=n._toWidth,u=n._toHeight,g=a+h*b,y=s+m*b,x=n._toAlpha;n.pinnedAnimationEnabled&&n.targetFrame._setPositionInternally(g,y,n._pinAnchor,r,u),n.targetFrame.htmlElement.style&&(n.targetFrame.htmlElement.style.opacity=x),n.targetFrame.setSize(r,u,!0),n._crrWidth=r,n._crrHeight=u,n._pinX=g,n._pinY=y}if(b==d+1)return t.stopTimer(),void c(n);r=o+f*b,u=i+p*b,g=a+h*b,y=s+m*b,x=l+v*b,n.pinnedAnimationEnabled&&n.targetFrame._setPositionInternally(g,y,n._pinAnchor,r,u),n.targetFrame.htmlElement.style&&(n.targetFrame.htmlElement.style.opacity=x),n.targetFrame.setSize(r,u,!0),0!=b||n.targetFrame.parentCanvas.getWindow(n.targetFrame.id)&&n.targetFrame.show({requestFocus:e}),b++}),t.startTimer()}if(t){var x=new r;x.setIntervalMillis(t),x.setCallback(function(t){t.stopTimer(),y()}),x.startTimer()}else y()})},t.exports=o},function(t,e){CALIGN={LEFT_TOP:"LEFT_TOP",HCENTER_TOP:"CENTER_TOP",RIGHT_TOP:"RIGHT_TOP",LEFT_VCENTER:"LEFT_CENTER",HCENTER_VCENTER:"CENTER_CENTER"},CALIGN.CENTER=CALIGN.HCENTER_VCENTER,CALIGN.RIGHT_VCENTER="RIGHT_CENTER",CALIGN.LEFT_BOTTOM="LEFT_BOTTOM",CALIGN.HCENTER_BOTTOM="CENTER_BOTTOM",CALIGN.RIGHT_BOTTOM="RIGHT_BOTTOM",t.exports=CALIGN},function(t,e,n){var r=n(5);"string"==typeof r&&(r=[[t.i,r,""]]),n(1)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".jsframe-titlebar-default {\r\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\r\n    background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\r\n    background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\r\n    background: linear-gradient(top, #f5f5f5, #f8f7f2);\r\n    border-top-left-radius: 6px;\r\n    border-top-right-radius: 6px;\r\n}\r\n\r\n.jsframe-titlebar-focused {\r\n    /* (c)2015 Johannes Jakob\r\n       Made with <3 in Germany */\r\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\r\n    background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\r\n    background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\r\n    background: linear-gradient(top, #ebebeb, #d5d5d5);\r\n    border-top-left-radius: 6px;\r\n    border-top-right-radius: 6px;\r\n}\r\n\r\n.jsframe-modal-window-background {\r\n    background: rgba(0, 0, 0, 0.6);\r\n    height: 100%;\r\n    widdth: 100%\r\n}",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,n){"use strict";var r=n(2),o=n(3);function i(t){this.windowMode="default",this.styleDisplay="flex",this.horizontalAlign="left",this.verticalAlign="top",this.keyListener=null,this.minimizeButton=null,this.maximizeButton=null,this.demaximizeButton=null,this.deminimizeButton=null,t.styleDisplay&&(this.styleDisplay=t.styleDisplay),t.minimizeButton&&(this.minimizeButton=t.minimizeButton),t.deminimizeButton&&(this.deminimizeButton=t.deminimizeButton),t.maximizeButton&&(this.maximizeButton=t.maximizeButton),t.demaximizeButton&&(this.demaximizeButton=t.demaximizeButton),t.hideButton&&(this.hideButton=t.hideButton),t.horizontalAlign&&(this.horizontalAlign=t.horizontalAlign),t.verticalAlign&&(this.verticalAlign=t.verticalAlign),this.animationEnabled=!1,this.animationDuration=100,this.frame=t.frame,this.hideFrameBorder=!0,this.hideTitleBar=!0,this.restoreKey=null,this.restoreDuration=null,this.restoreCallback=null,this.statsStore={},t.animation&&(this.animationEnabled=t.animation),t.animationDuration&&(this.animationDuration=t.animationDuration),this.resizeListener=this.handleOnResize.bind(this),this.eventListeners={}}i.prototype.on=function(t,e){this.eventListeners[t]=e},i.prototype.doMaximize=function(t){var e=this,n=e.frame;window.addEventListener("resize",e.resizeListener),e.saveCurrentWindowStats("maximize_mode"),e.hideTitleBar=!!t&&t.hideTitleBar,e.hideTitleBar?n.hideAllVisibleFrameComponents():(e.maximizeButton&&n.hideFrameComponent(e.maximizeButton),e.demaximizeButton&&n.showFrameComponent(e.demaximizeButton,e.styleDisplay)),n.setMovable(!1),n.setResizable(!1),t&&t.restoreKey&&(e.restoreKey=t.restoreKey),t&&t.restoreDuration&&(e.restoreDuration=t.restoreDuration),t&&t.restoreCallback&&(e.restoreCallback=t.restoreCallback),e.renderMaximizedMode({animation:e.animationEnabled,callback:t&&t.callback?t.callback:null,duration:t&&t.duration?t.duration:null})},i.prototype.renderMaximizedMode=function(t){var e=this,n=e.frame,r=e.loadWindowStats("maximize_mode"),o=0,i=0,a=0,s=0;function l(){n.setPosition(o,i),e.hideFrameBorder&&(n.frameBorderWidthDefault=0,n.frameBorderWidthFocused=0,n.htmlElement.style.borderWidth="0px"),n.setSize(a,s,!0),e.hideTitleBar&&(e.restoreKey&&(e.keyListener=function(t){t.key===e.restoreKey&&e.doDemaximize({duration:e.restoreDuration?e.restoreDuration:null,callback:e.restoreCallback?e.restoreCallback:null})}),window.addEventListener("keydown",e.keyListener),n.iframe&&n.iframe.contentWindow.addEventListener("keydown",e.keyListener)),e.windowMode="maximized",t&&t.callback&&t.callback(e.frame,{eventType:"maximized"}),e.eventListeners.maximized&&e.eventListeners.maximized(e.frame,{eventType:"maximized"})}e.hideTitleBar&&(o=0,i=-r.titleBarHeight),s=e.hideFrameBorder?(a=window.innerWidth,window.innerHeight+(e.hideTitleBar?r.titleBarHeight:0)):(a=window.innerWidth-2*r.frameBorderWidthDefault,window.innerHeight-2*r.frameBorderWidthDefault+(e.hideTitleBar?r.titleBarHeight:0)),"right"==e.horizontalAlign&&(o=-a),"bottom"==e.verticalAlign&&(i=-s),t&&t.animation?e.animateFrame({frame:n,from:r,to:{left:o,top:i,width:a,height:s},duration:t.duration?t.duration:e.animationDuration,callback:l}):l()},i.prototype.doDemaximize=function(t){var e=this,n=e.frame;e.hasWindowStats("maximize_mode")&&(e.hideTitleBar||(e.maximizeButton&&n.showFrameComponent(e.maximizeButton,e.styleDisplay),e.demaximizeButton&&n.hideFrameComponent(e.demaximizeButton)),e.restoreWindow({restorePosition:!0,restoreMode:"maximize_mode",animation:e.animationEnabled,callback:t&&t.callback?t.callback:null,forceShowFrameComponents:e.animationEnabled&&e.hideTitleBar,duration:t&&t.duration?t.duration:null,eventType:"demaximized"}))},i.prototype.handleOnResize=function(){this.renderMaximizedMode()},i.prototype.doMinimize=function(t){var e=this.frame;this.saveCurrentWindowStats("minimize_mode"),e.setResizable(!1),this.renderMinimizedMode({animation:this.animationEnabled,callback:t&&t.callback?t.callback:null,duration:t&&t.duration?t.duration:null})},i.prototype.renderMinimizedMode=function(t){var e=this,n=e.frame,r=e.loadWindowStats("minimize_mode"),o=e.getCurrentWindowStats(),i=e.getCurrentWindowStats();function a(){n.setSize(i.width,i.height,!0),e.windowMode="minimized",e.minimizeButton&&n.hideFrameComponent(e.minimizeButton),e.deminimizeButton&&n.showFrameComponent(e.deminimizeButton,e.styleDisplay),t.callback&&t.callback(e.frame,{eventType:"minimized"}),e.eventListeners.minimized&&e.eventListeners.minimized(e.frame,{eventType:"minimized"})}i.height=r.titleBarHeight,t&&t.animation?e.animateFrame({toAlpha:1,duration:t.duration?t.duration:e.animationDuration,frame:n,from:o,to:i,callback:a}):a()},i.prototype.doDeminimize=function(t){var e=this,n=e.frame;e.hasWindowStats("minimize_mode")&&(e.minimizeButton&&n.showFrameComponent(e.minimizeButton,e.styleDisplay),e.deminimizeButton&&n.hideFrameComponent(e.deminimizeButton),e.restoreWindow({restorePosition:!1,restoreMode:"minimize_mode",animation:e.animationEnabled,duration:t&&t.duration?t.duration:null,callback:t&&t.callback?t.callback:null,eventType:"deminimized"}))},i.prototype.doHide=function(t){var e=this.frame;this.saveCurrentWindowStats("hide_mode"),e.setResizable(!1),this.renderHideMode({silent:t.silent,animation:this.animationEnabled,duration:t&&t.duration?t.duration:null,callback:t&&t.callback?t.callback:null,align:t&&t.align?t.align:null,offset:t.offset})},i.prototype.renderHideMode=function(t){var e=this,n=e.frame,r=e.loadWindowStats("hide_mode"),i=e.getCurrentWindowStats(),a={x:0,y:0};t.offset&&(a=t.offset);var s=0,l=0,c=t&&t.align?t.align:"LEFT_TOP";function u(){n.setSize(d.width,d.height,!0),e.windowMode="hid",t&&t.callback&&t.callback(e.frame,{eventType:"hid"}),e.eventListeners.hid&&e.eventListeners.hid(e.frame,{eventType:"hid"})}c&&o.LEFT_TOP!=c?o.HCENTER_TOP==c?(s=i.left+i.width/2,l=i.top):o.RIGHT_TOP==c?(s=i.left+i.width,l=i.top):o.LEFT_VCENTER==c?(s=i.left,l=i.top+i.height/2):o.HCENTER_VCENTER==c?(s=i.left+i.width/2,l=i.top+i.height/2):o.RIGHT_VCENTER==c?(s=i.left+i.width,l=i.top+i.height/2):o.LEFT_BOTTOM==c?(s=i.left,l=i.top+i.height):o.HCENTER_BOTTOM==c?(s=i.left+i.width/2,l=i.top+i.height):o.RIGHT_BOTTOM==c?(s=i.left+i.width,l=i.top+i.height):"ABSOLUTE"==c&&(s=a.x,l=a.y):(s=i.left,l=i.top);var d={left:s,top:l,width:0,height:r.titleBarHeight};n.hideAllVisibleFrameComponents(),t&&t.animation?e.animateFrame({fromAlpha:t.silent?0:1,toAlpha:0,duration:t.duration?t.duration:e.animationDuration,frame:n,from:i,to:d,callback:u}):u()},i.prototype.doDehide=function(t){this.frame,this.hasWindowStats("hide_mode")&&this.restoreWindow({duration:t&&t.duration?t.duration:null,restorePosition:!0,restoreMode:"hide_mode",animation:this.animationEnabled,forceShowFrameComponents:!0,callback:t&&t.callback?t.callback:null,eventType:"dehided"})},i.prototype.loadWindowStats=function(t){return this.statsStore[t]},i.prototype.saveCurrentWindowStats=function(t){this.statsStore[t]=this.getCurrentWindowStats()},i.prototype.clearWindowStats=function(t){this.statsStore[t]=null},i.prototype.hasWindowStats=function(t){return this.statsStore[t]},i.prototype.getCurrentWindowStats=function(){var t=this.frame,e=parseInt(t.titleBar.style.height,10),n=t.frameBorderWidthDefault,r=t.frameBorderWidthFocused;return{left:t.getLeft(),top:t.getTop(),width:t.getWidth(),height:t.getHeight(),titleBarHeight:e,frameBorderWidthDefault:n,frameBorderWidthFocused:r,resizable:t.resizable,movable:t.movable}},i.prototype.restoreWindow=function(t){var e=this,n=e.frame,r=e.loadWindowStats(t.restoreMode),o=e.getCurrentWindowStats();function i(){t&&0==t.restorePosition&&(r.left=o.left,r.top=o.top),n.setPosition(r.left,r.top),n.setSize(r.width,r.height,!0),n.setResizable(r.resizable),n.setMovable(r.movable),e.clearWindowStats(t.restoreMode),e.keyListener&&(window.removeEventListener("keydown",e.keyListener),n.iframe&&n.iframe.contentWindow.removeEventListener("keydown",e.keyListener),e.keyListener=null),e.windowMode="default",t&&t.forceShowFrameComponents&&n.showAllVisibleFrameComponents(),n.show();var i="restored";t&&t.eventType&&(i=t.eventType),t&&t.callback&&t.callback(e.frame,{eventType:i}),e.eventListeners[i]&&e.eventListeners[i](e.frame,{eventType:i})}n.frameBorderWidthDefault=r.frameBorderWidthDefault,n.frameBorderWidthFocused=r.frameBorderWidthFocused,n.htmlElement.style.borderWidth=n.frameBorderWidthFocused,t&&t.animation?e.animateFrame({duration:t.duration?t.duration:e.animationDuration,frame:n,from:o,to:r,callback:i}):i(),window.removeEventListener("resize",e.resizeListener)},i.prototype.animateFrame=function(t){var e=isNaN(t.fromAlpha)?1:t.fromAlpha,n=t.from,o=t.to;(new r).set(t.frame).setDuration(t.duration?t.duration:this.animationDuration).fromPosition(n.left,n.top,"LEFT_TOP").toPosition(o.left,o.top,"LEFT_TOP").fromWidth(n.width).fromHeight(n.height).toWidth(o.width).toHeight(o.height).fromAlpha(e).toAlpha(0==t.toAlpha?0:1).start(0,!1).then(function(e){t.callback()})},i.prototype.setupDefaultEvents=function(t){var e=this;e.maximizeButton&&e.frame.on(e.maximizeButton,"click",function(e,n){e.control.doMaximize({hideTitleBar:!0===t.maximizeWithoutTitleBar,duration:100,restoreKey:t.restoreKey?t.restoreKey:"Escape",restoreDuration:100,callback:function(t,e){},restoreCallback:function(t,e){jsFrame.showToast({text:t.getName()+" "+e.eventType})}})}),e.demaximizeButton&&e.frame.on(e.demaximizeButton,"click",function(t,e){t.control.doDemaximize({})}),e.minimizeButton&&e.frame.on(e.minimizeButton,"click",function(t,e){t.control.doMinimize({})}),e.deminimizeButton&&e.frame.on(e.deminimizeButton,"click",function(t,e){t.control.doDeminimize({})}),e.hideButton&&e.frame.on(e.hideButton,"click",function(t,e){t.control.doHide({align:"CENTER_BOTTOM"})})},t.exports=i},function(t,e){var n=(r.prototype.setCallback=function(t){return this._timerMethod=t,this},r.prototype.setIntervalMillis=function(t){return this._timerInterval=t,this},r.prototype.stopTimer=function(){return this._isRunning=!1,this},r.prototype.startTimer=function(){var t=this;return 0<t._timerInterval&&(t._timerId=setTimeout(t._internalCallback,t._timerInterval),t._isRunning=!0),t},r);function r(){var t=this;t._timerId=null,t._isRunning=!1,t._timerInterval=0,t._internalCallback=function(){t._timerMethod&&t._timerMethod(t),t._isRunning&&(clearTimeout(t._timerId),t._timerId=setTimeout(t._internalCallback,t._timerInterval))},t._timerMethod=null}t.exports=n},function(t,e,n){n(10),t.exports.getStyle=function(t){return t.showTitleBar=!0,t.showCloseButton=!0,t.titleBarCaptionFontSize="11px",t.titleBarCaptionFontWeight="normal",t.titleBarCaptionLeftMargin=null,t.titleBarCaptionColorDefault="#4d494d",t.titleBarCaptionColorFocused="#4d494d",t.titleBarHeight="26px",t.titleBarColorDefault="#f4f4f4",t.titleBarColorFocused="#f4f4f4",t.titleBarBorderBottomDefault="1px solid #b1aeb1",t.titleBarBorderBottomFocused=t.titleBarBorderBottomDefault,t.frameBorderRadius="6px",t.frameBorderWidthDefault="1px",t.frameBorderWidthFocused="1px",t.frameBorderColorDefault="#acacac",t.frameBorderColorFocused="#acacac",t.frameBorderStyle="solid",t.frameBoxShadow="0px 0px 20px rgba(0, 0, 0, 0.3)",t.frameBackgroundColor="transparent",t.frameComponents=new Array,t.getTitleBarStyle=function(){return t.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-yosemite-focused",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-yosemite-default",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}},t.onInitialize=function(){var e=t.getPartsBuilder(),n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYEACyhKiU0AYWYyJARX4QDFOBRiAEWokTJc0lH4KpbcQNIEBzZEPQJgkN7Cg8begKwAIMAC1EQhm4CX95QAAAABJRU5ErkJggg==",r="margin:0px;padding:0px;width:6px;height:6px",o=document.createElement("img");o.src=n,o.setAttribute("style",r);var i=document.createElement("img");i.src=n,i.setAttribute("style",r);var a=document.createElement("img");a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpi/P//PwM+wMRAABBUwKIiKTYFSPvgkN9C0ARG2jsSIMAAWWAH8lrycVkAAAAASUVORK5CYII=",a.setAttribute("style",r);var s=document.createElement("img");s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFdJREFUeNpi/P//PwNeAFKgLCF6AIjnwMRAbJAYSI4FKnYHiJOBgjA1yUA8F24Ckq7/UDwHJsfEQACwwHSjGIuwLgXmBhWQ5N0Xr1OgGmBiDIyEvAkQYAB60iRIRtfWzQAAAABJRU5ErkJggg==",s.setAttribute("style",r);var l=document.createElement("img");l.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=",l.setAttribute("style","margin:0px;padding:0px;width:6px;height:6px");var c=e.buildTextButtonAppearance();c.size=8,c.borderRadius=4,c.borderWidth=1,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="#d0d0d0",c.backgroundColorFocused="#fc615c",c.backgroundColorHovered=c.backgroundColorFocused,c.backgroundColorPressed=c.backgroundColorDefault,c.imageDefault=l,c.imageHovered=s,c.imagePressed=s,c.imageFocused=l;var u=e.buildButton(c),d=8,f=-18,p="LEFT_TOP";t.addFrameComponent("closeButton",u,d,f,p);var h=e.buildTextButtonAppearance();h.size=8,h.borderRadius=4,h.borderWidth=1,h.borderColorDefault="#c6c6c6",h.borderColorFocused="#fdbe40",h.borderColorHovered=h.borderColorFocused,h.borderColorPressed="#e1a12d",h.borderStyleDefault="solid",h.borderStyleFocused=h.borderStyleDefault,h.borderStyleHovered=h.borderStyleDefault,h.borderStylePressed=h.borderStyleDefault,h.backgroundColorDefault="#d0d0d0",h.backgroundColorFocused="#fdbe40",h.backgroundColorHovered=h.backgroundColorFocused,h.backgroundColorPressed=h.backgroundColorDefault,h.imageDefault=l,h.imageHovered=a,h.imagePressed=a,h.imageFocused=l;var m=e.buildButton(h),v=e.buildButton(h);v.style.display="none",d=24,f=-18,p="LEFT_TOP",t.addFrameComponent("minimizeButton",m,d,f,p),t.addFrameComponent("deminimizeButton",v,d,f,p);var g=e.buildTextButtonAppearance();g.size=8,g.borderRadius=4,g.borderWidth=1,g.borderColorDefault="#c6c6c6",g.borderColorFocused="#34ca49",g.borderColorHovered=g.borderColorFocused,g.borderColorPressed="#00af38",g.borderStyleDefault="solid",g.borderStyleFocused=g.borderStyleDefault,g.borderStyleHovered=g.borderStyleDefault,g.borderStylePressed=g.borderStyleDefault,g.backgroundColorDefault="#d0d0d0",g.backgroundColorFocused="#34ca49",g.backgroundColorHovered=g.backgroundColorFocused,g.backgroundColorPressed=g.backgroundColorDefault,g.caption=null,g.imageDefault=l,g.imageHovered=o,g.imagePressed=o,g.imageFocused=l;var b=e.buildButton(g),y=e.buildButton(g);y.style.display="none",d=40,f=-18,p="LEFT_TOP",t.addFrameComponent("zoomButton",b,d,f,p),t.addFrameComponent("dezoomButton",y,d,f,p)},t}},function(t,e,n){var r=n(11);"string"==typeof r&&(r=[[t.i,r,""]]),n(1)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"/**\r\n * JSFrame Examples\r\n *\r\n * Copyright 2007-2017 Tom Misawa, riversun.org@gmail.com\r\n * Copyright 2007-2017 web2driver.com*/\r\n\r\n.jsframe-preset-style-yosemite-default {\r\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\r\n    background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\r\n    background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\r\n    background: linear-gradient(top, #f5f5f5, #f8f7f2);\r\n    border-top-left-radius: 6px;\r\n    border-top-right-radius: 6px;\r\n}\r\n\r\n.jsframe-preset-style-yosemite-focused {\r\n    /* (c)2015 Johannes Jakob\r\n       Made with <3 in Germany */\r\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\r\n    background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\r\n    background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\r\n    background: linear-gradient(top, #ebebeb, #d5d5d5);\r\n    border-top-left-radius: 6px;\r\n    border-top-right-radius: 6px;\r\n}\r\n",""])},function(t,e,n){n(13),t.exports.getStyle=function(t){return t.showTitleBar=!0,t.showCloseButton=!0,t.titleBarCaptionFontSize="12px",t.titleBarCaptionFontWeight="normal",t.titleBarCaptionLeftMargin="10px",t.titleBarCaptionColorDefault="#9b9a9b",t.titleBarCaptionColorFocused="#4d494d",t.titleBarHeight="30px",t.titleBarColorDefault="white",t.titleBarColorFocused="white",t.titleBarBorderBottomDefault="solid 1px #aaaaaa",t.titleBarBorderBottomFocused="solid 1px #1883d7",t.frameBorderRadius="0px",t.frameBorderWidthDefault="1px",t.frameBorderWidthFocused="1px",t.frameBorderColorDefault="#aaaaaa",t.frameBorderColorFocused="#1883d7",t.frameBorderStyle="solid",t.frameBoxShadow=null,t.frameBackgroundColor="transparent",t.frameComponents=new Array,t.frameHeightAdjust=0,t.getTitleBarStyle=function(){return t.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-redstone-focused",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-redstone-default",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}},t.onInitialize=function(){var e=t.getPartsBuilder(),n=e.buildTextButtonAppearance();n.width=45,n.height=28,n.borderRadius=0,n.borderWidth=0,n.borderColorDefault="#c6c6c6",n.borderColorFocused="#fc615c",n.borderColorHovered=n.borderColorFocused,n.borderColorPressed="#e64842",n.borderStyleDefault="solid",n.borderStyleFocused=n.borderStyleDefault,n.borderStyleHovered=n.borderStyleDefault,n.borderStylePressed=n.borderStyleDefault,n.backgroundColorDefault="white",n.backgroundColorFocused="white",n.backgroundColorHovered="#e81123",n.backgroundColorPressed="#f1707a",n.caption="╳",n.captionColorDefault="#9b9a9b",n.captionColorFocused="black",n.captionColorHovered="white",n.captionColorPressed="white",n.captionShiftYpx=1,n.captionFontRatio=.6;var r=e.buildTextButton(n),o=0,i=-parseInt(t.titleBarHeight),a="RIGHT_TOP";t.addFrameComponent("closeButton",r,o,i,a);var s=e.buildTextButtonAppearance();s.width=45,s.height=28,s.borderRadius=0,s.borderWidth=0,s.borderColorDefault="#c6c6c6",s.borderColorFocused="#fc615c",s.borderColorHovered=s.borderColorFocused,s.borderColorPressed="#e64842",s.borderStyleDefault="solid",s.borderStyleFocused=s.borderStyleDefault,s.borderStyleHovered=s.borderStyleDefault,s.borderStylePressed=s.borderStyleDefault,s.backgroundColorDefault="white",s.backgroundColorFocused="white",s.backgroundColorHovered="#e5e5e5",s.backgroundColorPressed="#cccccc",s.caption="☐",s.captionColorDefault="#9b9a9b",s.captionColorFocused="black",s.captionColorHovered="black",s.captionColorPressed="black",s.captionShiftYpx=1,s.captionFontRatio=.55;var l=e.buildTextButton(s);o=-46,i=-parseInt(t.titleBarHeight),a="RIGHT_TOP",t.addFrameComponent("maximizeButton",l,o,i,a);var c=e.buildTextButtonAppearance();c.width=45,c.height=28,c.borderRadius=0,c.borderWidth=0,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="white",c.backgroundColorFocused="white",c.backgroundColorHovered="#e5e5e5",c.backgroundColorPressed="#cccccc",c.caption="＿",c.captionColorDefault="#9b9a9b",c.captionColorFocused="black",c.captionColorHovered="black",c.captionColorPressed="black",c.captionShiftYpx=-2,c.captionFontRatio=.3;var u=e.buildTextButton(c);o=-92,i=-parseInt(t.titleBarHeight),a="RIGHT_TOP",t.addFrameComponent("minimizeButton",u,o,i,a);var d=e.buildTextButtonAppearance();d.width=45,d.height=28,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="white",d.backgroundColorFocused="white",d.backgroundColorHovered="#e5e5e5",d.backgroundColorPressed="#cccccc",d.caption="▣",d.captionColorDefault="#9b9a9b",d.captionColorFocused="black",d.captionColorHovered="black",d.captionColorPressed="black",d.captionShiftYpx=1,d.captionFontRatio=.6;var f=e.buildTextButton(d);o=-92,i=-parseInt(t.titleBarHeight),a="RIGHT_TOP",f.style.display="none",t.addFrameComponent("deminimizeButton",f,o,i,a);var p=e.buildTextButtonAppearance();p.width=45,p.height=28,p.borderRadius=0,p.borderWidth=0,p.borderColorDefault="#c6c6c6",p.borderColorFocused="#fc615c",p.borderColorHovered=p.borderColorFocused,p.borderColorPressed="#e64842",p.borderStyleDefault="solid",p.borderStyleFocused=p.borderStyleDefault,p.borderStyleHovered=p.borderStyleDefault,p.borderStylePressed=p.borderStyleDefault,p.backgroundColorDefault="white",p.backgroundColorFocused="white",p.backgroundColorHovered="#e5e5e5",p.backgroundColorPressed="#cccccc",p.caption="❏",p.captionColorDefault="#9b9a9b",p.captionColorFocused="black",p.captionColorHovered="black",p.captionColorPressed="black",p.captionShiftYpx=1,p.captionFontRatio=.55;var h=e.buildTextButton(p);o=-46,i=-parseInt(t.titleBarHeight),a="RIGHT_TOP",h.style.display="none",t.addFrameComponent("restoreButton",h,o,i,a)},t}},function(t,e,n){var r=n(14);"string"==typeof r&&(r=[[t.i,r,""]]),n(1)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".jsframe-preset-style-redstone-default {\r\n    background: white;\r\n    border-top-left-radius: 0px;\r\n    border-top-right-radius: 0px;\r\n}\r\n\r\n.jsframe-preset-style-redstone-focused {\r\n    background: white;\r\n    border-top-left-radius: 0px;\r\n    border-top-right-radius: 0px;\r\n}\r\n",""])},function(t,e,n){n(16),t.exports.getStyle=function(t){return t.showTitleBar=!1,t.showCloseButton=!0,t.titleBarCaptionFontSize="12px",t.titleBarCaptionFontWeight="normal",t.titleBarCaptionLeftMargin="10px",t.titleBarCaptionColorDefault="#4d494d",t.titleBarCaptionColorFocused="#4d494d",t.titleBarHeight="5px",t.titleBarColorDefault="white",t.titleBarColorFocused="white",t.titleBarBorderBottomDefault=null,t.titleBarBorderBottomFocused=null,t.frameBorderRadius="6px",t.frameBorderWidthDefault="1px",t.frameBorderWidthFocused="1px",t.frameBorderColorDefault="#aaaaaa",t.frameBorderColorFocused="#aaaaaa",t.frameBorderStyle="solid",t.frameBoxShadow="2px 2px 5px  rgba(0, 0, 0, 0.5)",t.frameBackgroundColor="white",t.frameComponents=new Array,t.frameHeightAdjust=2,t.getTitleBarStyle=function(){return t.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-popup-focused",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-popup-default",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}},t.onInitialize=function(){var e=t.getPartsBuilder(),n=e.buildTextButtonAppearance();n.width=20,n.height=20,n.borderRadius=10,n.borderWidth=1,n.borderColorDefault="#cccccc",n.borderColorFocused="#cccccc",n.borderColorHovered="#dddddd",n.borderColorPressed="#eeeeee",n.borderStyleDefault="solid",n.borderStyleFocused=n.borderStyleDefault,n.borderStyleHovered=n.borderStyleDefault,n.borderStylePressed=n.borderStyleDefault,n.backgroundColorDefault="white",n.backgroundColorFocused="white",n.backgroundColorHovered="#eeeeee",n.backgroundColorPressed="#dddddd",n.backgroundBoxShadow="2px 2px 5px  rgba(0, 0, 0, 0.5)",n.caption="✖",n.captionColorDefault="black",n.captionColorFocused="black",n.captionColorHovered="white",n.captionColorPressed="white",n.captionShiftYpx=1,n.captionFontRatio=.6;var r=e.buildTextButton(n),o=-6-parseInt(t.titleBarHeight);t.addFrameComponent("closeButton",r,10,o,"RIGHT_TOP")},t}},function(t,e,n){var r=n(17);"string"==typeof r&&(r=[[t.i,r,""]]),n(1)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".jsframe-preset-style-popup-default {\r\n    background: white;\r\n    border-top-left-radius: 0px;\r\n    border-top-right-radius: 0px;\r\n}\r\n\r\n.jsframe-preset-style-popup-focused {\r\n    background: white;\r\n    border-top-left-radius: 0px;\r\n    border-top-right-radius: 0px;\r\n}\r\n",""])},function(t,e){t.exports.getStyle=function(t){return t.showTitleBar=!1,t.showCloseButton=!0,t.titleBarCaptionFontSize="0px",t.titleBarCaptionFontWeight="normal",t.titleBarCaptionLeftMargin="0px",t.titleBarCaptionColorDefault="transparent",t.titleBarCaptionColorFocused="transparent",t.titleBarHeight="0px",t.titleBarColorDefault="transparent",t.titleBarColorFocused="transparent",t.titleBarBorderBottomDefault=null,t.titleBarBorderBottomFocused=null,t.frameBorderRadius="10px",t.frameBorderWidthDefault="0px",t.frameBorderWidthFocused="0px",t.frameBorderColorDefault="transparent",t.frameBorderColorFocused="transparent",t.frameBorderStyle="solid",t.frameBoxShadow="2px 2px 15px  rgba(0, 0, 0, 0.5)",t.frameBackgroundColor="transparent",t.frameComponents=[],t.frameHeightAdjust=2,t.captionClor="darkgray",t.pullUpDisabled=!1,t.getTitleBarStyle=function(){return t.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},t.onInitialize=function(){var e=t.getPartsBuilder(),n=e.buildTextButtonAppearance();n.width=20,n.height=20,n.borderRadius=10,n.borderWidth=0,n.borderColorDefault="#cccccc",n.borderColorFocused="#cccccc",n.borderColorHovered="#dddddd",n.borderColorPressed="#eeeeee",n.borderStyleDefault="solid",n.borderStyleFocused=n.borderStyleDefault,n.borderStyleHovered=n.borderStyleDefault,n.borderStylePressed=n.borderStyleDefault,n.backgroundColorDefault="transparent",n.backgroundColorFocused="transparent",n.backgroundColorHovered="transparent",n.backgroundColorPressed="transparent",n.backgroundBoxShadow=null,n.caption="✖",n.captionColorDefault=t.captionClor,n.captionColorFocused=t.captionClor,n.captionColorHovered=t.captionClor,n.captionColorPressed=t.captionClor,n.captionShiftYpx=1,n.captionFontRatio=.6;var r=e.buildTextButton(n);t.addFrameComponent("closeButton",r,-6,3,"RIGHT_TOP")},t}},function(t,e,n){n(20);var r=n(22);function o(t,e,n){var r,o=t.getPartsBuilder(),a=0;for(var s in r=n?e.titleBar.buttonsOnLeft:e.titleBar.buttons){var l=r[s],c=o.buildTextButtonAppearance();c.fa=l.fa,c.width=e.titleBar.buttonWidth,c.height=e.titleBar.buttonHeight,c.borderRadius=0,c.borderWidth=0,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="transparent",c.backgroundColorFocused="transparent",c.backgroundColorHovered="transparent",c.backgroundColorPressed="transparent";var u=i(e.titleBar.buttonColor);c.captionColorDefault=e.titleBar.buttonColor,c.captionColorFocused=e.titleBar.buttonColor,c.captionColorHovered=u.hovered,c.captionColorPressed=u.pressed,c.captionShiftYpx=0,c.captionFontRatio=1;var d=o.buildTextButton(c);l.visible?d.style.display="flex":(n?a-=e.titleBar.buttonWidth:a+=e.titleBar.buttonWidth,d.style.display="none");var f,p,h=parseInt(t.titleBarHeight),m=a,v=-h+(h-c.height)/2;f=n?"LEFT_TOP":"RIGHT_TOP",l.childMenuHTML&&((p=document.createElement("div")).id=l.name+"_child_menu",p.innerHTML=l.childMenuHTML,p.style.position="absolute",p.style.width=(l.childMenuWidth?l.childMenuWidth:200)+"px",p.style.top=parseInt(d.style.top,10)+parseInt(d.style.height,10)/2+h/2+"px",p.style.left=d.style.left,p.style.display="none",d.appendChild(p)),t.addFrameComponent(l.name,d,m,v,f,{childMenu:p}),a+=n?e.titleBar.buttonWidth:-e.titleBar.buttonWidth}}function i(t){var e=document.createElement("canvas");e.height=1,e.width=1;var n=e.getContext("2d");n.fillStyle=t,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],s=r[3]/255,l=.85*s;return{src:"rgb("+o+","+i+","+a+","+l+")",hovered:"rgb("+o+","+i+","+a+","+l+")",pressed:"rgb("+o+","+i+","+a+","+.75*s+")"}}t.exports.getStyle=function(t,e){var n={border:{color:"transparent",width:0,radius:6},control:{maximizeWithoutTitleBar:!1,restoreKey:"Escape"},titleBar:{color:"white",background:"black",leftMargin:20,height:30,fontSize:12,buttonWidth:36,buttonHeight:16,buttonColor:"white",
  buttons:[{fa:"fas fa-times",name:"closeButton",visible:!0},{fa:"far fa-window-maximize",name:"maximizeButton",visible:!0},{fa:"far fa-window-restore",name:"restoreButton",visible:!1},{fa:"far fa-window-minimize",name:"minimizeButton",visible:!0},{fa:"fas fa-caret-up",name:"deminimizeButton",visible:!1}],buttonsOnLeft:[]}},i=n;return e&&r.objectAssign(n,e),t.showTitleBar=!0,t.showCloseButton=!0,t.titleBarCaptionFontSize=i.titleBar.fontSize+"px",t.titleBarCaptionFontWeight="normal",t.titleBarCaptionLeftMargin=i.titleBar.leftMargin+"px",t.titleBarCaptionColorDefault=i.titleBar.color,t.titleBarCaptionColorFocused=i.titleBar.color,t.titleBarCaptionTextShadow=null,t.titleBarCaptionTextAlign="left",t.titleBarHeight=i.titleBar.height+"px",t.titleBarColorDefault=i.titleBar.background,t.titleBarColorFocused=i.titleBar.background,t.titleBarBorderBottomDefault="solid 0px #aaaaaa",t.titleBarBorderBottomFocused="solid 0px #1883d7",t.frameBorderRadius=i.border.radius+"px",t.frameBorderWidthDefault=i.border.width+"px",t.frameBorderWidthFocused=i.border.width+"px",t.frameBorderColorDefault=i.border.color,t.frameBorderColorFocused=i.border.color,t.frameBorderStyle="solid",t.frameBoxShadow=i.border.shadow,t.frameBackgroundColor="transparent",t.frameComponents=new Array,t.frameHeightAdjust=0,t.getTitleBarStyle=function(){return t.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},t.onInitialize=function(){o(t,i,!1),o(t,i,!0)},t}},function(t,e,n){var r=n(21);"string"==typeof r&&(r=[[t.i,r,""]]),n(1)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,".jsframe-preset-style-material-default {\r\n    background: black;\r\n    border-top-left-radius: 6px;\r\n    border-top-right-radius: 6px;\r\n}\r\n\r\n.jsframe-preset-style-material-focused {\r\n    background: black;\r\n    border-top-left-radius: 36px;\r\n    border-top-right-radius: 36px;\r\n}\r\n",""])},function(t,e){var n="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};function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return t&&"object"===(void 0===t?"undefined":n(t))&&!Array.isArray(t)}t.exports.objectAssign=function t(e){for(var n=arguments.length,i=Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];if(!i.length)return e;var s=i.shift();if(o(e)&&o(s))for(var l in s)o(s[l])?(e[l]||Object.assign(e,r({},l,{})),t(e[l],s[l])):Object.assign(e,r({},l,s[l]));return t.apply(void 0,[e].concat(i))}},function(t,e,n){"use strict";n.r(e),n(4);var r=n(7),o=n(3),i=n(2),a={yosemite:n(9),redstone:n(12),popup:n(15),toast:n(18),material:n(19)},s={};function l(){var t=this;this.showTitleBar=!0,this.showCloseButton=!0,this.titleBarCaption="",this.titleBarCaptionFontSize="12px",this.titleBarCaptionFontWeight="bold",this.titleBarHeight="24px",this.useIframe=!1,this.useFrame=!0,this.setUseIFrame=function(e){return t.useIframe=e,t.useFrame=!e,t},this.titleBarCaptionLeftMargin="5px",this.titleBarColorDefault="lightgray",this.titleBarColorFocused="#d3e1ee",this.titleBarCaptionColorDefault="",this.titleBarCaptionColorFocused="",this.titleBarCaptionTextShadow="0 1px 0 rgba(255,255,255,.7)",this.titleBarCaptionTextAlign="center",this.titleBarBorderBottomDefault="1px solid rgba(0,0,0,0.2)",this.titleBarBorderBottomFocused=null,this.frameBorderRadius="6px",this.frameBorderWidthDefault="1px",this.frameBorderWidthFocused=this.frameBorderWidthDefault,this.frameBorderColorDefault="rgba(1, 1, 1, 0.2)",this.frameBorderColorFocused=this.frameBorderColorDefault,this.frameBorderStyle="solid",this.frameBoxShadow="2px 3px 16px rgba(0,0,0,.6)",this.frameBackgroundColor="transparent",this._partsBuilder=null,this.frameComponents=[],this.frameHeightAdjust=1,this.getFrameInnerBorderRadius=function(t,e){if(t)return e?parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthFocused,10)+"px":parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthDefault,10)+"px"},this.onInitialize=function(){if(t.showCloseButton){var e=t.getPartsBuilder(),n=e.buildTextButtonAppearance();n.size=14,n.captionShiftYpx=0,n.captionFontRatio=1,n.borderRadius=2,n.backgroundColorPressed="transparent",n.backgroundColorDefault="transparent",n.caption="✖",n.captionColorDefault="gray",n.captionColorFocused="gray",n.captionColorHovered="silver",n.captionColorPressed="black",n.borderWidth=0,n.borderColorDefault="#aaaaaa",n.borderStyle="solid";var r=e.buildTextButton(n);t.addFrameComponent("closeButton",r,-10,-18,"RIGHT_TOP")}},this.onTitleBarStyleInitialize=function(){}}function c(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n,(t.prototype.constructor=t).superConstructor=e,t.superClass=e.prototype}function u(t,e,n,r,o,i,a,l){var c=this;c.movable=!0,c.id=t,c.property={},c.extra={},c.parentCanvas=null,c.htmlElement=null,c.pullUpDisabled=!1,l&&(c.pullUpDisabled=l.pullUpDisabled),c.htmlElement=document.createElement(s.CBEAN.HTML_ELEMENT),c.htmlElement.id=s.CBEAN.HTML_ELEMENT_ID_PREFIX+t,c.htmlElement.style.position="absolute",c.htmlElement.style.left=parseInt(e,10)+"px",c.htmlElement.style.top=parseInt(n,10)+"px",c.htmlElement.style.width=parseInt(r,10)+"px",c.htmlElement.style.height=parseInt(o,10)+"px",null!==i&&(c.htmlElement.style.zIndex=i),c.htmlElement.style.borderColor="#000000",c.htmlElement.style.fontSize="1px",(c.htmlElement.parent=c).htmlElement.onmousedown=c.onmouseDown,c.htmlElement.typeName=s.CBEAN.TYPE_NAME,c.htmlElement.usage="nothing",c.htmlElement.isRangeLimited=!1,c.htmlElement.argX=1,c.htmlElement.argY=1,c.externalAreaClickedListener=null}function d(t,e,n,r,o,i){var a=this;a.currentObject=null,a.onTopObject=null,a.offsetX=0,a.offsetY=0,a.mouseDownSource=null,a.id=e,a.canvasElement=null,a.parentElement=t,a.beanList=new Array,a.beanIdName={},a.beanNameId={},a.eventData=new function(){this.x=0,this.y=0,this.screenX=0,this.screenY=0,this.deltaX=0,this.deltaY=0,this.isMoved=!1,this.targetTypeName=null,this.targetUsage=null,this.targetObject=null},a.baseZIndex=0,a.setBaseZIndex=function(t){a.baseZIndex=t},a.getBaseZIndex=function(){return a.baseZIndex},a.canvasElement=document.createElement(s.CANVAS.HTML_ELEMENT),a.canvasElement.style.zIndex=2e3,a.canvasElement.id=a.id,a.canvasElement.style.boxSizing="border-box",a.canvasElement.style.position="absolute",a.canvasElement.style.left=parseInt(n)+"px",a.canvasElement.style.top=parseInt(r)+"px",a.canvasElement.style.width=parseInt(o)+s.CANVAS.WIDTH_ADJUST_20180722+"px",a.canvasElement.style.height=parseInt(i)+s.CANVAS.HEIGHT_ADJUST_20180722+"px",a.canvasElement.style.backgroundColor="transparent",a.canvasElement.style.borderStyle="none",a.canvasElement.style.margin="0px",a.canvasElement.style.borderWidth="0px",a.canvasElement.style.borderColor="transparent",a.parentElement.appendChild(a.canvasElement)}function f(t,e,n,r,i,a,l,c){var u=this;f.superConstructor.call(this,t,e,n,r,i,a,l,c),u.anchor=o.LEFT_TOP,u.showTitleBar=c.showTitleBar,u.canvasNetHeight=null,u.canvasNetWidth=null,u.frameHeightAdjust=c.frameHeightAdjust,u.frameComponentMap={},u.canvas=null,u.myCanvasId=null,u.floatingButton=null,u.titleBarClassNameDefault="jsframe-titlebar-default",u.titleBarClassNameFocused="jsframe-titlebar-focused",u.titleBarHeight=c.titleBarHeight,u.titleBarCaption=c.titleBarCaption,u.titleBarCaptionLeftMargin=c.titleBarCaptionLeftMargin,u.titleBarCaptionFontSize=c.titleBarCaptionFontSize,u.titleBarCaptionFontWeight=c.titleBarCaptionFontWeight,u.titleBarBorderBottomDefault=c.titleBarBorderBottomDefault,u.titleBarBorderBottomFocused=c.titleBarBorderBottomFocused,u.titleBarCaptionTextShadow=c.titleBarCaptionTextShadow,u.titleBarCaptionTextAlign=c.titleBarCaptionTextAlign,u.titleAdjustWidth=2,u.windowId=t,u.exBorderWidth=0,u.myCanvasId=t+"_canvas";var p=document.createElement("img");if(p.src="",p.style.position="absolute",p.style.left="2px",p.style.top="2px",p.style.width="16px",p.style.height="16px",p.style.visibility="hidden",u.titleBar=document.createElement("div"),u.titleBar.className="jsframetitlebar",u.showTitleBar){if(u.titleBar.id=t+"_title",u.titleBar.style.position="absolute",u.titleBar.style.boxSizing="border-box",u.titleBar.style.top="0px",u.titleBar.style.left="0px",u.titleBar.style.width=r-u.titleAdjustWidth+s.CANVAS.WIDTH_ADJUST_20180722+"px",u.titleBar.style.userSelect="none",u.titleBarHeight){var h=0;u.titleBarBorderBottomDefault&&(h=0),u.titleBar.style.height=parseInt(u.titleBarHeight,10)+0+"px"}u.titleBar.style.backgroundColor=u.titleBarColorDefault,u.titleBar.style.zIndex=0,u.titleBar.style.color=u.titleBarCaptionColorDefault,u.titleBar.style.fontSize=u.titleBarCaptionFontSize,u.titleBar.style.fontWeight=u.titleBarCaptionFontWeight,u.titleBar.style.textShadow=u.titleBarCaptionTextShadow,u.titleBar.style.textAlign=u.titleBarCaptionTextAlign,u.titleBar.style.lineHeight=u.titleBar.style.height,u.titleBar.style.borderBottom=u.titleBarBorderBottomDefault,u.titleBar.style.overflow="hidden";var v=document.createTextNode(""),g=document.createElement("span");g.id=u.id+"_titleBarText",null!=u.titleBarCaptionLeftMargin?(g.style.position="absolute",g.style.left=parseInt(u.titleBarCaptionLeftMargin,10)+"px"):(g.style.position="absolute",g.style.left="0px",g.style.right="0px"),g.style.top="0px",g.appendChild(v),u.titleBar.appendChild(g)}u.htmlElement.appendChild(u.titleBar);var b=parseInt(u.titleBarHeight,10)-h,y=parseInt(u.titleAdjustWidth,10);u.showTitleBar||(h=y=b=0),u.canvasNetWidth=r-y,u.canvasNetHeight=i-b-y-1-h+u.frameHeightAdjust,u.htmlElement.style.cursor="move",u.canvas=new d(u.htmlElement,u.myCanvasId,0,b,r-y,i-b-y),u.canvas.canvasElement.style.backgroundColor=s.CFRAME.CANVAS_ELEMENT_BGCOLOR,u.canvas.canvasElement.style.cursor="default",u.canvas.canvasElement.onmousedown=u.canvasMouseDown,u.canvas.canvasElement.parentCFrame=u;var x=parseInt(u.canvas.canvasElement.style.width,10),w=parseInt(u.canvas.canvasElement.style.height,10),C=new m(u.myCanvasId+"_RD",x-16+16,w-16+16,16,16,0,"RD");C.htmlElement.style.cursor="se-resize",C.htmlElement.argX=0,C.htmlElement.argY=0;var _=new m(u.myCanvasId+"_DD",0,w-16+16,x-16+16,16,0,"DD");_.htmlElement.style.cursor="n-resize",_.htmlElement.argX=0,_.htmlElement.argY=0;var E=new m(u.myCanvasId+"_RR",x-16+16,0,16,w-16+16,0,"RR");for(var B in E.htmlElement.style.cursor="w-resize",E.htmlElement.argY=0,E.htmlElement.argX=0,u.canvas.addBean(C),u.canvas.addBean(_),u.canvas.addBean(E),u.removeMarkers=function(){u.canvas.removeBean(C.id),u.canvas.removeBean(_.id),u.canvas.removeBean(E.id),u.htmlElement.style.cursor="default"},u.removeMarkers2=function(){u.canvas.removeBean(C.id),u.canvas.removeBean(_.id),u.canvas.removeBean(E.id)},u.enableMarkers=function(t){t?(C.htmlElement.style.display="flex",_.htmlElement.style.display="flex",E.htmlElement.style.display="flex",C.htmlElement.style.cursor="se-resize",_.htmlElement.style.cursor="n-resize",E.htmlElement.style.cursor="w-resize"):(C.htmlElement.style.display="none",_.htmlElement.style.display="none",E.htmlElement.style.display="none")},c.frameComponents){var T=c.frameComponents[B];T.setFrame(u),"closeButton"==T.id&&(T.htmlElement.onclick=u.close),u.addFrameComponent(T)}u.htmlElement.style.backgroundColor="transparent",u.htmlElement.oncontextmenu=this.contextMenu,u.caribValue=0,u.htmlElement.style.borderWidth=u.exBorderWidth+"px",u.htmlElement.style.width=parseInt(u.htmlElement.style.width,10)-0+"px",u.htmlElement.style.height=parseInt(u.htmlElement.style.height,10)-0+1+"px",u.htmlElement.typeName="cwindow",u.htmlElement.overflow="auto",u.htmlElement.style.boxSizing="content-box",c.frameBorderStyle&&(u.htmlElement.style.borderStyle=c.frameBorderStyle),c.frameBoxShadow&&(u.htmlElement.style.boxShadow=c.frameBoxShadow),0<parseInt(c.frameBorderWidthDefault,10)&&(u.htmlElement.style.borderWidth=c.frameBorderWidthDefault,u.htmlElement.style.borderColor=c.frameBorderColorDefault),0<parseInt(c.frameBorderRadius,10)&&(u.htmlElement.style.borderRadius=c.frameBorderRadius),u.onCloseFrameListener=null}function p(t,e,n,r,o,i){var a=e,s=n,l=r,c=o,u=i.zindex,d=this;this.jsFrame=null,this.control=null,this.minFrameWidth=128,this.minWindowHeight=32,this.overrayTransparentScreenEnabled=!1,this.overrayTransparentScreenOnResize=!0,this.titleBarColorFocused=i.titleBarColorFocused,this.titleBarColorDefault=i.titleBarColorDefault,this.titleBarCaptionColorDefault=i.titleBarCaptionColorDefault,this.titleBarCaptionColorFocused=i.titleBarCaptionColorFocused,p.superConstructor.call(d,t,a,s,l,c,u,null,i),d.frameBorderColorDefault=i.frameBorderColorDefault,d.frameBorderColorFocused=i.frameBorderColorFocused,d.frameBorderWidthDefault=i.frameBorderWidthDefault,d.frameBorderWidthFocused=i.frameBorderWidthFocused,d.iframe=null,d.ifDelta=0,d.resizable=!0,d.onMouseMoveOnIframe=null,d.onMouseUpOnIframe=null,d._hasFocus=!1,d._hasFocusTime=0,d.htmlElement.typeName="cifwindow";var f="riversun_"+t;d.dframe=document.createElement("div"),d.iframe=document.createElement("iframe"),d.iframe.name=f,d.iframe.id=f,d.iframe.frameBorder="0",d.iframe.zIndex=-1,d.iframe.allowTransparency="true",d.iframe.width=d.canvasNetWidth-d.ifDelta+0,d.iframe.height=d.canvasNetHeight-d.ifDelta+0,d.showTitleBar=i.showTitleBar,d.getFrameInnerBorderRadius=i.getFrameInnerBorderRadius,d.frameBorderRadius=i.frameBorderRadius,d.adjustFrameBorderRadius(),d.useIframe=!1,d.canvas.canvasElement.appendChild(d.iframe),d.canvas.canvasElement.appendChild(d.dframe),this.setUseIframe=function(t){d.useIframe=t,d.iframe.style.visibility="hidden",d.iframe.style.position="absolute",d.iframe.style.left="0px",d.iframe.style.top="0px",d.iframe.style.width="100%",d.iframe.style.height="100%",d.dframe.style.visibility="hidden",d.dframe.style.position="absolute",d.dframe.style.left="0px",d.dframe.style.boxSizing="content-box",d.dframe.style.top="0px",d.dframe.style.width="100%",d.dframe.style.height="100%",d.dframe.style.backgroundColor="white",t?(d.iframe.style.visibility="visible",d.dframe.style.visibility="hidden"):(d.iframe.style.visibility="hidden",d.dframe.style.visibility="visible")},d.setUseIframe(i.useIframe),(d.overrayTransparentScreenEnabled||d.overrayTransparentScreenOnResize)&&(d.transparence=document.createElement("span"),d.transparence.style.position="absolute",d.transparence.style.left="0px",d.transparence.style.top="0px",d.transparence.style.width="0px",d.transparence.style.height="0px",d.transparence.style.zIndex=4,d.transparence.style.borderWidth="0px",d.transparence.style.borderColor="#ff00ee",d.transparence.style.borderStyle="none",d.transparence.style.cursor="default",d.transparence.style.pointerEvents="none",d.canvas.canvasElement.style.backgroundColor=i.frameBackgroundColor,d.canvas.canvasElement.appendChild(d.transparence))}function h(t,e,n,r,o,i){h.superConstructor.call(this,t,e,n,r,o,i);var a=this;document.body.addEventListener("click",function(t){for(var e in a.beanList)a.beanList[e].onBodyClicked(t)})}function m(t,e,n,r,o,i,a){var s=this;m.superConstructor.call(this,t,e,n,r,o,i,a),s.htmlElement.typeName="cmarkerwindow",s.htmlElement.usage=a,s.htmlElement.isRangeLimited=!1,s.htmlElement.style.borderStyle="none",s.htmlElement.style.zIndex=1}function v(t){var e=this,n=null,r=!0;if(t&&0==t.fixed&&(r=!1),t&&t.parentElement&&(n=t.parentElement),e.hAlign="left",e.vAlign="top",t&&t.horizontalAlign&&(e.hAlign=t.horizontalAlign),t&&t.verticalAlign&&(e.vAlign=t.verticalAlign),!n&&r){var o=document.createElement("div");o.id="jsFrame_fixed_"+e.generateUUID(),o.setAttribute("style","position:fixed;"+e.hAlign+":0px;"+e.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(o),n=o}else n=document.body;document.onmouseup=function(t){e.windowManager.windowMouseUp(t)},document.onmousemove=function(t){e.windowManager.windowMouseMove(t),t.pageX,t.pageY},e.windowManager=new h(n,"windowManager_"+e.generateUUID(),0,0,0,0),e.domPartsBuilder=null}function g(t,e,n,r,i,a){var s=this;s.id=t,s.x=n,s.y=r,s.frame=null,s._focusTakingCallabck=null,s._focusReleasingCallabck=null,s.frameComponentAlign=i||o.LEFT_TOP,s.htmlElement=e,s.htmlElement.style.zIndex=50,a&&a.childMenu&&(s.childMenu=a.childMenu)}function b(){}function y(){this.size=14,this.width=null,this.height=null,this.borderRadius=2,this.borderWidth=0,this.borderColorDefault="#aaaaaa",this.borderColorFocused=this.borderColorDefault,this.borderColorHovered=null,this.borderColorPressed=this.borderColorDefault,this.borderStyleDefault="solid",this.borderStyleFocused=this.borderStyleDefault,this.borderStyleHovered=null,this.borderStylePressed=this.borderStyleDefault,this.backgroundBoxShadow=null,this.backgroundColorDefault="transparent",this.backgroundColorFocused=this.backgroundColorDefault,this.backgroundColorHovered=null,this.backgroundColorPressed=this.backgroundColorDefault,this.caption=null,this.captionColorDefault="white",this.captionColorFocused=this.captionColorDefault,this.captionColorHovered=null,this.captionColorPressed=this.captionColorDefault,this.captionShiftYpx=0,this.captionFontRatio=1}l.prototype.getPartsBuilder=function(){return null===this._partsBuilder&&(this._partsBuilder=new b),this._partsBuilder},l.prototype.initialize=function(){this.onInitialize()},l.prototype.addFrameComponent=function(t,e,n,r,o,i){var a=new g(t,e,n,r,o,i);return e._onTakeFocus&&e._onReleaseFocus&&a.setFocusCallback(e._onTakeFocus,e._onReleaseFocus),this.frameComponents.push(a),a},s.CBEAN={},s.CBEAN.HTML_ELEMENT="span",s.CBEAN.HTML_ELEMENT_ID_PREFIX="htmlElement_",s.CBEAN.TYPE_NAME="bean",u.prototype.setMovable=function(t){var e=this;return t?(e.htmlElement.argX=1,e.htmlElement.argY=1):(e.htmlElement.argX=0,e.htmlElement.argY=0),e.movable=t,e},u.prototype.setParentCanvas=function(t){this.parentCanvas=t,this.htmlElement.parentCanvas=this.parentCanvas},u.prototype.setOnExternalAreaClickedListener=function(t){this.externalAreaClickedListener=t},u.prototype.onBodyClicked=function(t){var e=this,n=t.pageX,r=t.pageY,o=parseInt(e.htmlElement.style.left),i=parseInt(e.htmlElement.style.top),a=parseInt(e.htmlElement.style.width),s=parseInt(e.htmlElement.style.height);o<n&&n<o+a&&i<r&&r<i+s||e.externalAreaClickedListener&&e.externalAreaClickedListener()},u.prototype.onmouseDown=function(t){var e=this,n=e.parent;if(0==t.button){if(n.pullUpDisabled)return!1;(e.parentCanvas.currentObject=e).parentCanvas.pullUp(n.id)}else if(2==t.button)return!1;return e.parentCanvas.currentObject&&(e.parentCanvas.offsetX=t.pageX-parseInt(e.parentCanvas.currentObject.style.left,10),e.parentCanvas.offsetY=t.pageY-parseInt(e.parentCanvas.currentObject.style.top,10)),!1},s.CANVAS={},s.CANVAS.HTML_ELEMENT="div",s.CANVAS.WIDTH_ADJUST_20180722=2,s.CANVAS.HEIGHT_ADJUST_20180722=3,d.prototype.mouseMove=function(t){var e=this;if(e.currentObject){e.eventData.targetTypeName=e.currentObject.typeName,e.eventData.targetUsage=e.currentObject.usage,e.eventData.targetObject=e.currentObject;var n=t.pageX-e.offsetX,r=t.pageY-e.offsetY,o=(t.pageX,t.pageY,e.currentObject.style.left),i=e.currentObject.style.top,a=parseInt(n,10),s=parseInt(r,10),l=a+parseInt(e.currentObject.style.width,10),c=s+parseInt(e.currentObject.style.height,10),u=parseInt(e.canvasElement.style.width,10),d=parseInt(e.canvasElement.style.height,10),f=0,p=0;return 1==e.currentObject.isRangeLimited&&(a<=0||u<l||s<=0||d<c)?p=f=0:(f=parseInt(n,10)-parseInt(o,10),p=parseInt(r,10)-parseInt(i,10),e.currentObject.style.left=parseInt(e.currentObject.style.left)+f*e.currentObject.argX+"px",e.currentObject.style.top=parseInt(e.currentObject.style.top)+p*e.currentObject.argY+"px"),e.eventData.deltaX=f,e.eventData.deltaY=p,e.eventData}return null},d.prototype.mouseUp=function(t){this.currentObject=null,this.mouseDownSource=null},d.prototype.pullUp=function(t){var e=[],n=this.beanList;for(var r in n)e.push(n[r]);var o=n[t];this.pullUpSort(o,e,this.baseZIndex),this.onTopObject=o},d.prototype.pullUpSort=function(t,e,n){for(var r in t.htmlElement.style.zIndex=e.length+n,e.sort(function(t,e){return-parseInt(t.htmlElement.style.zIndex,10)+parseInt(e.htmlElement.style.zIndex,10)}),e)e[r].htmlElement.style.zIndex=e.length-1-r+n},d.prototype.removeBean=function(t){var e=this.beanList,n=e[t];this.canvasElement.removeChild(n.htmlElement),delete e[t]},d.prototype.addBean=function(t){var e=this,n=e.beanList,r=e.beanIdName,o=e.beanNameId;(n[t.id]=t).property.name&&(o[t.property.name]=t.id,r[t.id]=t.property.name);var i=0;for(var a in n)i++;t.htmlElement.style.zIndex=i+e.baseZIndex,t.setParentCanvas(e),this.canvasElement.appendChild(t.htmlElement)},s.CFRAME={},s.CFRAME.CANVAS_ELEMENT_BGCOLOR="transparent",s.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX="window__modal_window_background_",c(f,u),f.prototype.setTitleBarClassName=function(t,e){return t&&(this.titleBarClassNameDefault=t,this.titleBarClassNameFocused=t),e&&(this.titleBarClassNameFocused=e),this},f.prototype.addFrameComponent=function(t){return this.frameComponentMap[t.id]=t,this.canvas.canvasElement.appendChild(t.htmlElement),this},f.prototype.getFrameComponentElement=function(t){return this.frameComponentMap[t]?this.frameComponentMap[t].htmlElement:null},f.prototype.removeFrameComponentById=function(t){var e=this.frameComponentMap[t];this.canvas.canvasElement.removeChild(e.htmlElement),delete this.frameComponentMap[t]},f.prototype.showFrameComponent=function(t,e){var n=this.getFrameComponentElement(t);return n&&(n.style.display=e||"flex"),this},f.prototype.hideFrameComponent=function(t){var e=this.getFrameComponentElement(t);return e&&(e.style.display="none"),this},f.prototype.hideAllVisibleFrameComponents=function(){var t=this.frameComponentMap;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e].htmlElement;"none"===n.style.display&&(n._alreadyNone=!0),n.style.display="none"}},f.prototype.showAllVisibleFrameComponents=function(){var t=this.frameComponentMap;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e].htmlElement;n._alreadyNone?n._alreadyNone=null:n.style.display="flex"}},f.prototype.hideFrameComponentChildMenus=function(){var t=this.frameComponentMap;for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];n.childMenu&&(n.childMenu.style.display="none")}},f.prototype.setTitle=function(t){var e=this;if(e.title=t,e.showTitleBar){var n=document.createTextNode(t);e.titleBar.firstChild.replaceChild(n,e.titleBar.firstChild.firstChild)}return e},f.prototype.resize=function(t,e,n,r){var o=this,i=parseInt(o.htmlElement.style.left,10),a=parseInt(o.htmlElement.style.top,10),s=parseInt(o.htmlElement.style.width,10),l=parseInt(o.htmlElement.style.height,10);o.htmlElement.style.left=parseInt(i+t,10)+"px",o.htmlElement.style.top=parseInt(a+e,10)+"px",o.htmlElement.style.width=parseInt(s+n,10)+"px",o.htmlElement.style.height=parseInt(l+r,10)+"px";var c=parseInt(o.canvas.canvasElement.style.width,10),u=parseInt(o.canvas.canvasElement.style.height,10);for(var d in o.canvas.canvasElement.style.width=c+n+"px",o.canvas.canvasElement.style.height=u+r+"px",o.showTitleBar&&(o.titleBar.style.width=c+n+"px"),o.canvas.beanList){var f=o.canvas.beanList[d];"cmarkerwindow"==f.htmlElement.typeName&&("RD"==f.htmlElement.usage?(f.htmlElement.style.left=parseInt(f.htmlElement.style.left,10)+n+"px",f.htmlElement.style.top=parseInt(f.htmlElement.style.top,10)+r+"px"):"DD"==f.htmlElement.usage?(f.htmlElement.style.width=parseInt(f.htmlElement.style.width,10)+n+"px",f.htmlElement.style.top=parseInt(f.htmlElement.style.top,10)+r+"px"):"RR"==f.htmlElement.usage&&(f.htmlElement.style.left=parseInt(f.htmlElement.style.left,10)+n+"px",f.htmlElement.style.height=parseInt(f.htmlElement.style.height,10)+r+"px"))}},f.prototype.canvasMouseDown=function(t){null==this.parentCFrame.parentCanvas.mouseDownSource&&(this.parentCFrame.parentCanvas.mouseDownSource="childcanvas")},f.prototype.mouseUp=function(t){this.canvas.mouseUp(t)},f.prototype.close=function(t){var e=this.parentObject.parentCanvas,n=this.parentObject,r=n.id;n.closeInternally(t,e,r)},f.prototype.closeFrame=function(t){var e=this.parentCanvas;this.closeInternally(t,e,this.windowId)},f.prototype.closeInternally=function(t,e,n){var r=this;e.removeBean(n),r.modalBackgroundWindowId&&(e.removeBean(r.modalBackgroundWindowId),r.modalBackgroundWindowId=null),r.onCloseFrameListener&&r.onCloseFrameListener(r)},f.prototype.setOnCloseFrameListener=function(t){this.onCloseFrameListener=t},f.prototype.contextMenu=function(){return!1},f.prototype.setTitleBarTextColor=function(t){this.titleBar.style.color=t},f.prototype.setPosition=function(t,e,n){var r=this.getWidth(),o=this.getHeight();return this._setPositionInternally(t,e,n,r,o),this},f.prototype._setPositionInternally=function(t,e,n,r,i){var a=this;n&&(a.anchor=n),n&&o.LEFT_TOP!=n?o.HCENTER_TOP==n?(a.htmlElement.style.left=-r/2+t+"px",a.htmlElement.style.top=e+"px"):o.RIGHT_TOP==n?(a.htmlElement.style.left=-r+t+"px",a.htmlElement.style.top=e+"px"):o.LEFT_VCENTER==n?(a.htmlElement.style.left=t+"px",a.htmlElement.style.top=-i/2+e+"px"):o.HCENTER_VCENTER==n?(a.htmlElement.style.left=-r/2+t+"px",a.htmlElement.style.top=-i/2+e+"px"):o.RIGHT_VCENTER==n?(a.htmlElement.style.left=-r+t+"px",a.htmlElement.style.top=-i/2+e+"px"):o.LEFT_BOTTOM==n?(a.htmlElement.style.left=t+"px",a.htmlElement.style.top=-i+e+"px"):o.HCENTER_BOTTOM==n?(a.htmlElement.style.left=-r/2+t+"px",a.htmlElement.style.top=-i+e+"px"):o.RIGHT_BOTTOM==n&&(a.htmlElement.style.left=-r+t+"px",a.htmlElement.style.top=-i+e+"px"):(a.htmlElement.style.left=t+"px",a.htmlElement.style.top=e+"px")},f.prototype.getPosition=function(){var t,e,n=this,r=n.getWidth(),i=n.getHeight(),a=n.anchor;return a&&o.LEFT_TOP!=a?o.HCENTER_TOP==a?(t=parseInt(n.htmlElement.style.left,10)+r/2,e=parseInt(n.htmlElement.style.top,10)):o.RIGHT_TOP==a?(t=parseInt(n.htmlElement.style.left,10)+r,e=parseInt(n.htmlElement.style.top,10)):o.LEFT_VCENTER==a?(t=parseInt(n.htmlElement.style.left,10),e=parseInt(n.htmlElement.style.top,10)+i/2):o.HCENTER_VCENTER==a?(t=parseInt(n.htmlElement.style.left,10)+r/2,e=parseInt(n.htmlElement.style.top,10)+i/2):o.RIGHT_VCENTER==a?(t=parseInt(n.htmlElement.style.left,10)+r,e=parseInt(n.htmlElement.style.top,10)+i/2):o.LEFT_BOTTOM==a?(t=parseInt(n.htmlElement.style.left,10),e=parseInt(n.htmlElement.style.top,10)+i):o.HCENTER_BOTTOM==a?(t=parseInt(n.htmlElement.style.left,10)+r/2,e=parseInt(n.htmlElement.style.top,10)+i):o.RIGHT_BOTTOM==a&&(t=parseInt(n.htmlElement.style.left,10)+r,e=parseInt(n.htmlElement.style.top,10)+i):(t=parseInt(n.htmlElement.style.left,10),e=parseInt(n.htmlElement.style.top,10)),{x:t,y:e,anchor:a}},f.prototype.getLeft=function(){return parseInt(this.htmlElement.style.left,10)},f.prototype.getTop=function(){return parseInt(this.htmlElement.style.top,10)},f.prototype.getWidth=function(){return parseInt(this.htmlElement.style.width,10)},f.prototype.getHeight=function(){return parseInt(this.htmlElement.style.height,10)},f.prototype.getSize=function(){return{width:this.getWidth(),height:this.getHeight()}},f.prototype.setSize=function(t,e,n){var r=!0;return n&&(r=!1),this.resize(0,0,t-this.getWidth(),e-this.getHeight(),r),this},f.prototype.getWindowId=function(){return this.windowId},f.prototype.getName=function(){return this.property.name},f.prototype.setName=function(t){this.property.name=t},c(p,f),p.prototype.getFrameView=function(){return this.dframe},p.prototype.setHTML=function(t){this.dframe.innerHTML=t},p.prototype.$=function(t){return this.useIframe?this.iframe.contentWindow.document.querySelector(t):this.dframe.querySelector(t)},p.prototype.on=function(t,e,n){var r=this,o=r.getFrameComponentElement(t);o&&(o["on"+e]=function(o){var i=document.getElementById(t+"_child_menu");i&&"click"===e&&("flex"==i.style.display?i.style.display="none":i.style.display="flex"),n(r,o,{type:"frameComponent",id:t,eventType:e,child:i})});var i=r.$(t);i&&i.addEventListener(e,function(o){n(r,o,{type:"dom",id:t,eventType:e})})},p.prototype.adjustFrameBorderRadius=function(){var t=this;if(0<parseInt(t.frameBorderRadius,10)){var e=t.getFrameInnerBorderRadius(t,t._hasFocus);t.showTitleBar?(t.canvas.canvasElement.style.borderBottomRightRadius=e,t.canvas.canvasElement.style.borderBottomLeftRadius=e,t.iframe.style.borderBottomRightRadius=e,t.iframe.style.borderBottomLeftRadius=e,t.titleBar.style.borderTopLeftRadius=e,t.titleBar.style.borderTopRightRadius=e):(t.canvas.canvasElement.style.borderRadius=e,t.iframe.style.borderRadius=e),t.dframe&&(t.dframe.style.borderBottomRightRadius=e,t.dframe.style.borderBottomLeftRadius=e)}},p.prototype.handleReleasingFocus=function(t){var e=this;for(var n in e._hasFocus=!1,e.titleBar.style.backgroundColor=e.titleBarColorDefault,e.titleBar.style.color=e.titleBarCaptionColorDefault,e.frameBorderColorDefault&&(e.htmlElement.style.borderColor=e.frameBorderColorDefault),e.frameBorderWidthDefault&&(e.htmlElement.style.borderWidth=e.frameBorderWidthDefault,e.adjustFrameBorderRadius()),"cifwindow"==e.htmlElement.typeName&&e.overrayTransparentScreenEnabled&&(e.transparence.style.width=parseInt(e.iframe.width,10)+"px",e.transparence.style.height=parseInt(e.iframe.height,10)+"px"),e.frameComponentMap)e.frameComponentMap[n].handleReleasingFocus();return e.titleBarBorderBottomDefault&&(e.titleBar.style.borderBottom=e.titleBarBorderBottomDefault),e.titleBar.className=e.titleBarClassNameDefault,e},p.prototype.handleTakingFocus=function(t){var e=this;for(var n in e._hasFocus=!0,e._hasFocus=Date.now(),e.overrayTransparentScreenEnabled&&(e.transparence.style.width="0px",e.transparence.style.height="0px"),e.titleBar.style.backgroundColor=e.titleBarColorFocused,e.titleBar.style.color=e.titleBarCaptionColorFocused,e.frameBorderColorFocused&&(e.htmlElement.style.borderColor=e.frameBorderColorFocused),e.frameBorderWidthFocused&&(e.htmlElement.style.borderWidth=e.frameBorderWidthFocused,e.adjustFrameBorderRadius()),e.titleBarBorderBottomFocused&&(e.titleBar.style.borderBottom=e.titleBarBorderBottomFocused),e.frameComponentMap)e.frameComponentMap[n].handleTakingFocus();return e.titleBar.className=e.titleBarClassNameFocused,e},f.prototype.show=function(t){return this.htmlElement.style.display="flex",t&&0==t.requestFocus||this.requestFocus(),this},f.prototype.showModal=function(t){var e=this,n=new l;n.showTitleBar=!0,n.showCloseButton=!1,n.frameBorderRadius="0px",n.frameBorderStyle="none",n.frameBorderWidthDefault="0px",n.frameBorderWidthFocused="0px",n.frameBoxShadow=null,n.frameBackgroundColor="transparent",n.frameComponents=[],n.frameHeightAdjust=0,n.titleBarHeight="0px",n.titleBarBorderBottomFocused=null,n.titleBarCaptionLeftMargin="0px",n.onInitialize=function(){},n.pullUpDisabled=!0;var r=e.parentCanvas,o=s.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX+e.id,i=new p(o,0,0,1,1,n);i.setSize(window.innerWidth,window.innerHeight,!0),i.setResizable(!1),window.addEventListener("resize",function(){i.setSize(window.innerWidth,window.innerHeight,!0)}),e.modalBackgroundWindowId=o,i.hide(),r.addWindow(i),i.setTitle("").getFrameView().innerHTML='<div class="jsframe-modal-window-background"></div>',i.getFrameView().style.backgroundColor="rgba(0,0,0,0.0)",i.show(),e.show(),t&&e.setOnCloseFrameListener(t)},p.prototype.hide=function(){return this.htmlElement.style.display="none",this},p.prototype.onmouseDown=function(t){document.body.ondrag=function(){return!1},this.decorator=f.prototype.onmouseDown,this.decorator(t);var e=this.parent,n=this.parentCanvas;for(var r in n.beanList){var o=n.beanList[r];r==e.getWindowId()||o.handleReleasingFocus()}e.handleTakingFocus()},p.prototype.mouseUp=function(t){var e=this;(e.overrayTransparentScreenEnabled||e.overrayTransparentScreenOnResize)&&(e.parentCanvas.onTopObject==e?(e.transparence.style.width="0px",e.transparence.style.height="0px"):e.overrayTransparentScreenEnabled&&(e.transparence.style.width=parseInt(e.iframe.width)+"px",e.transparence.style.height=parseInt(e.iframe.height)+"px")),e.decorator=f.prototype.mouseUp,e.decorator(t),document.body.ondrag=null,document.body.onselectstart=null,e.transparence.style.pointerEvents="none"},p.prototype.setMinFrameSize=function(t,e){this.minFrameWidth=t,this.minWindowHeight=e},p.prototype.resize=function(t,e,n,r,o){var i=this;if(!i.resizable&&o)return null;var a=parseInt(i.htmlElement.style.left,10),s=parseInt(i.htmlElement.style.top,10),l=parseInt(i.htmlElement.style.width,10),c=parseInt(i.htmlElement.style.height,10);o&&l+n<i.minFrameWidth&n<0&&(i.htmlElement.style.width=l+"px",n=0),o&&c+r<i.minWindowHeight&r<0&&(i.htmlElement.style.height=c+"px",r=0),i.htmlElement.style.left=a+t+"px",i.htmlElement.style.top=s+e+"px",i.htmlElement.style.width=l+n+"px",i.htmlElement.style.height=c+r+"px";var u=parseInt(i.canvas.canvasElement.style.width,10),d=parseInt(i.canvas.canvasElement.style.height,10);for(var f in i.canvas.canvasElement.style.width=u+n+"px",i.canvas.canvasElement.style.height=d+r+"px",i.titleBar.style.width=u-i.ifDelta+n+0+"px",i.iframe.width=u-i.ifDelta+n+0+"px",i.iframe.height=d-i.ifDelta+r+i.frameHeightAdjust+"px",(i.overrayTransparentScreenEnabled||i.overrayTransparentScreenOnResize)&&(i.transparence.style.width=parseInt(i.iframe.width)+"px",i.transparence.style.height=parseInt(i.iframe.height)+"px"),i.frameComponentMap)i.frameComponentMap[f].updateAlign();for(var p in i.canvas.beanList){var h=i.canvas.beanList[p];"cmarkerwindow"==h.htmlElement.typeName&&("RD"==h.htmlElement.usage?(h.htmlElement.style.left=parseInt(h.htmlElement.style.left)+n+"px",h.htmlElement.style.top=parseInt(h.htmlElement.style.top)+r+"px"):"DD"==h.htmlElement.usage?(h.htmlElement.style.width=parseInt(h.htmlElement.style.width)+n+"px",h.htmlElement.style.top=parseInt(h.htmlElement.style.top)+r+"px"):"RR"==h.htmlElement.usage&&(h.htmlElement.style.left=parseInt(h.htmlElement.style.left)+n+"px",h.htmlElement.style.height=parseInt(h.htmlElement.style.height)+r+"px"))}},p.prototype.resizeDirect=function(t,e,n){var r=this;if(!r.resizable&&n)return null;for(var o in r.htmlElement.style.width=t+"px",r.htmlElement.style.height=e+"px",parseInt(r.canvas.canvasElement.style.width),parseInt(r.canvas.canvasElement.style.height),r.canvas.canvasElement.style.width=t+"px",r.canvas.canvasElement.style.height=e-r.titleBar.style.height+"px",r.titleBar.style.width=t-r.ifDelta+"px",r.iframe.width=t-r.ifDelta+"px",r.iframe.height=e-r.ifDelta+r.frameHeightAdjust+"px",(r.overrayTransparentScreenEnabled||r.overrayTransparentScreenOnResize)&&(r.transparence.style.width=parseInt(r.iframe.width)+"px",r.transparence.style.height=parseInt(r.iframe.height)+"px"),r.frameComponentMap)r.frameComponentMap[o].updateAlign();for(var i in r.canvas.beanList){var a=r.canvas.beanList[i];"cmarkerwindow"==a.htmlElement.typeName&&("RD"==a.htmlElement.usage?(a.htmlElement.style.left=t+"px",a.htmlElement.style.top=e+"px"):"DD"==a.htmlElement.usage?(a.htmlElement.style.width=t+"px",a.htmlElement.style.top=e+"px"):"RR"==a.htmlElement.usage&&(a.htmlElement.style.left=t+"px",a.htmlElement.style.height=e+"px"))}},p.prototype.requestFocus=function(){var t=this.parentCanvas.beanList;for(var e in t){var n=t[e];e==this.getWindowId()?n.handleTakingFocus():n.handleReleasingFocus()}this.parentCanvas.pullUp(this.id)},p.prototype.setUrl=function(t){var e=this;return new Promise(function(n,r){t?e.setUseIframe(!0):(e.setUseIframe(!1),n()),e.iframe.src=t,e.iframe.onload=function(){e.iframe.contentWindow.document.onmousemove=function(t){var n=e.getLeft(),r=e.getTop(),o=document.createEvent("MouseEvents");o.initMouseEvent("mousemove",!0,!1,window,t.detail,t.screenX,t.screenY,t.pageX+n,t.pageY+r,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,null),e.parentCanvas.windowMouseMove(o),e.onMouseMoveOnIframe&&e.onMouseMoveOnIframe(o)},e.iframe.contentWindow.document.onmouseup=function(t){var n=e.getLeft(),r=e.getTop(),o=document.createEvent("MouseEvents");o.initMouseEvent("mouseup",!0,!1,window,t.detail,t.screenX,t.screenY,t.pageX+n,t.pageY+r,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,null),e.parentCanvas.windowMouseUp(o),e.onMouseUpOnIframe&&e.onMouseUpOnIframe(o)},n(e,e.iframe.contentWindow.document)}})},p.prototype.getIfDocument=function(){return this.iframe.contentWindow.document},p.prototype.setScrolling=function(t){this.iframe.scrolling=t},p.prototype.getScrolling=function(t){return this.iframe.scrolling},p.prototype.setResizable=function(t){return this.resizable=t,this.enableMarkers(t),this},p.prototype.setControl=function(t){t&&((t.frame=this).control=this.jsFrame.createWindowEventHelper(t),this.control.setupDefaultEvents(t))},c(h,d),h.prototype.getWindow=function(t){return this.beanList[t]},h.prototype.addWindow=function(t){var e=t.getWindowId(),n=t.getName();this.beanIdName[e]=n,this.beanNameId[n]=e,this.addBean(t)},h.prototype.containsWindowName=function(t){if(this.beanNameId[t])return!0},h.prototype.getWindowByName=function(t){var e=this.beanNameId[t];return e?this.getWindow(e):null},h.prototype.windowMouseMove=function(t){if(null==this.currentObject)return null;var e=!1,n=this.beanList;for(var r in n){var o=n[r],i=o.canvas.mouseMove(t);if(e|=null!=i,null!=i&&"cmarkerwindow"==i.targetTypeName){var a=i.targetObject;o.transparence.style.pointerEvents="auto","RD"==a.usage?o.resize(0,0,i.deltaX,i.deltaY,!0):"DD"==a.usage?o.resize(0,0,0,i.deltaY,!0):"RR"==a.usage&&o.resize(0,0,i.deltaX,0,!0)}}e||"childcanvas"==this.mouseDownSource||this.mouseMove(t)},h.prototype.windowMouseUp=function(t){this.mouseUp(t);var e=this.beanList;for(var n in e)e[n].mouseUp(t)},h.prototype.removeBean=function(t){var e=this,n=e.beanList,r=n[t];if(null!=r){var o=r._hasFocus;e.canvasElement.removeChild(r.htmlElement),delete n[t];var i=e.beanIdName[t];i&&(delete e.beanIdName[t],delete e.beanNameId[i]);var a=0,s=null;if(o){for(var t in n){var l=n[t];a<=l._hasFocusTime&&!l.pullUpDisabled&&(a=l._hasFocusTime,s=l)}s&&s.requestFocus()}r.parentCanvas=null}},c(m,u),v.prototype.getDomPartsBuilder=function(){return this.domPartsBuilder||(this.domPartsBuilder=new b),this.domPartsBuilder},v.prototype.create=function(t){var e={};e.name=t.name;var n=t.title,r=t.left,o=t.top,i=t.width,a=t.height,s=t.appearance,l=t.appearanceName,c=t.appearanceParam,u=t.style,d=t.minWidth,f=t.minHeight,p=t.html,h=t.resizable,m=t.movable,v=t.url,g=t.urlLoaded;l&&(s=this.createPresetStyle(l,{appearanceParam:c}));var b=this.createFrame(r,o,i,a,s,e);if(n&&b.setTitle(n),p&&b.setHTML(p),v){var y=b.setUrl(v);g&&y.then(g)}if(0==h&&b.setResizable(!1),0==m&&b.setMovable(!1),d&&f&&(b.minFrameWidth=d),f&&(b.minWindowHeight=f),u){var x=b.getFrameView();for(var w in u)u.hasOwnProperty(w)&&(x.style[w]=u[w])}return b},v.prototype.createFrame=function(t,e,n,r,o,i){(o=o||this.createFrameAppearance()).initialize(),t=t||0;var a=new p("window_"+this.generateUUID(),t,e=e||0,n=n||128,r=r||128,o);if(a.jsFrame=this,i&&i.name&&a.setName(i.name),a.hide(),this.windowManager.addWindow(a),o.getTitleBarStyle){var s=o.getTitleBarStyle();s&&a.setTitleBarClassName(s.titleBarClassNameDefault,s.titleBarClassNameFocused)}return a},v.prototype.containsWindowName=function(t){return this.windowManager.containsWindowName(t)},v.prototype.getWindowByName=function(t){return this.windowManager.getWindowByName(t)},v.prototype.generateUUID=function(){var t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})},v.prototype.createFrameAppearance=function(){return new l},v.prototype.createAnimator=function(){return new i},v.prototype.createWindowEventHelper=function(t){return(t=t||{}).verticalAlign=this.vAlign,t.horizontalAlign=this.hAlign,new r(t)},v.prototype.createPresetStyle=function(t,e){var n=this.createFrameAppearance();if(e&&e.focusedFrameOnly&&(n.focusedFrameOnly=e.focusedFrameOnly),a[t]){var r=a[t],o=null;return e&&e.appearanceParam&&(o=e.appearanceParam),r.getStyle(n,o)}return n},v.prototype.showToast=function(t){if(t){var e=this,n=60,r=260,o=1e3,i=window.innerHeight-10-n/2,a=window.innerHeight-20-n/2,s="",l=!1,c={borderRadius:"10px",background:"rgba(0,0,0,0.8)"};t.style&&(c=t.style),t.height&&(n=t.height),t.width&&(r=t.width),t.duration&&(o=t.duration),t.align&&("top"==t.align?(i=10+n/2,a=20+n/2):"center"==t.align&&(i=window.innerHeight/2,a=window.innerHeight/2)),t.html&&(s=t.html),t.text&&(s=t.text),l=1==t.closeButton;var u=e.createPresetStyle("toast");c.borderRadius&&(u.frameBorderRadius=c.borderRadius),t.closeButtonColor&&(u.captionClor=t.closeButtonColor);var d=e.create({name:"toast_"+e.generateUUID(),width:r,height:n,movable:!1,resizable:!1,appearance:u,style:c,html:'<div id="my_element" style="box-sizing:border-box;display: flex;justify-content: center;align-items: center;padding:10px;font-size:16px;color:darkgray;height:'+n+'px">'+s+"</div>"});l||d.hideFrameComponent("closeButton");var f=window.innerWidth/2;"right"==e.hAlign&&(f=-f),"bottom"==e.vAlign&&(i-=window.innerHeight,a-=window.innerHeight),e.createAnimator().set(d).setDuration(300).fromPosition(f,i,"CENTER_CENTER").toPosition(f,a,"CENTER_CENTER").toAlpha(1).fromAlpha(0).start(0,!1).then(function(t){return t.setDuration(300).fromPosition(f,a,"CENTER_CENTER").toPosition(f,i,"CENTER_CENTER").fromAlpha(1).toAlpha(.5).start(o,!1)}).then(function(t){t.get().closeFrame()})}},g.prototype.setFocusCallback=function(t,e){this._focusTakingCallabck=t,this._focusReleasingCallabck=e},g.prototype.setFrame=function(t){this.frame=t,this.htmlElement.parentObject=t,this.updateAlign()},g.prototype.updateAlign=function(){var t=this,e=t.frameComponentAlign,n=t.frame,r=t.htmlElement.style;r.userSelect="none";var i=t.x,a=t.y,s=n.getWidth(),l=n.getHeight(),c=r.width,u=r.height;o.LEFT_TOP==e?(r.left=i+"px",r.top=a+"px"):o.HCENTER_TOP==e?(r.left=parseInt(s)/2-parseInt(c)/2+i+"px",r.top=a+"px"):o.RIGHT_TOP==e?(r.left=parseInt(s)-parseInt(c)+i+"px",r.top=a+"px"):o.LEFT_VCENTER==e?(r.left=i+"px",r.top=parseInt(l)/2-parseInt(u)/2+a+"px"):o.HCENTER_VCENTER==e?(r.left=parseInt(s)/2-parseInt(c)/2+i+"px",r.top=parseInt(l)/2-parseInt(u)/2+a+"px"):o.RIGHT_VCENTER==e?(r.left=parseInt(s)-parseInt(c)+i+"px",r.top=parseInt(l)/2-parseInt(u)/2+a+"px"):o.LEFT_BOTTOM==e?(r.left=i+"px",r.top=parseInt(l)-parseInt(u)+a+"px"):o.HCENTER_BOTTOM==e?(r.left=parseInt(s)/2-parseInt(c)/2+i+"px",r.top=parseInt(l)-parseInt(u)+a+"px"):o.RIGHT_BOTTOM==e&&(r.left=parseInt(s)-parseInt(c)+i+"px",r.top=parseInt(l)-parseInt(u)+a+"px")},g.prototype.handleTakingFocus=function(){this._focusTakingCallabck&&this._focusTakingCallabck()},g.prototype.handleReleasingFocus=function(){this._focusReleasingCallabck&&this._focusReleasingCallabck()},b.prototype.buildTextButtonAppearance=function(){return new y},b.prototype.buildButton=function(t){return this.buildTextButton(t)},b.prototype.buildTextButton=function(t){var e=t.size,n=e,r=e;null!=t.width&&(n=t.width),null!=t.height&&(r=t.height);var o=document.createElement("div"),i=t.borderWidth,a=t.borderRadius,s=t.borderColorDefault,l=t.borderColorFocused,c=t.borderColorHovered,u=t.borderColorPressed,d=t.borderStyleDefault,f=t.borderStyleFocused,p=t.borderStyleHovered,h=t.borderStylePressed,m=t.backgroundColorDefault,v=t.backgroundColorFocused,g=t.backgroundColorHovered,b=t.backgroundColorPressed,y=t.backgroundBoxShadow,x=t.fa,w=t.caption,C=t.imageDefault,_=t.imageFocused,E=t.imageHovered,B=t.imagePressed;C&&(C.style.pointerEvents="none"),_&&(_.style.pointerEvents="none"),E&&(E.style.pointerEvents="none"),B&&(B.style.pointerEvents="none");var T=t.captionColorDefault,k=t.captionColorFocused,A=t.captionColorHovered,S=t.captionColorPressed,F=t.captionShiftYpx,O=t.captionFontRatio;if(o._hasFrameFocus=!1,o._isMouseDown=!1,o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.width=n+"px",o.style.height=r+"px",o.style.cursor="pointer",o.style.margin="0px",o.style.padding="0px",o.style.boxSizing="content-box",o.style.fontFamily="sans-serif",o.onmousedown=function(t){o._isMouseDown=!0,o._handleFocusDrawing("onmousedown")},o.onmouseout=function(t){o._isMouseDown=!1,o._handleFocusDrawing("onmouseout")},o.onmouseover=function(t){o._handleHoverDrawing()},o.onmouseup=function(t){o._isMouseDown=!1,o._handleFocusDrawing("onmouseup")},o._onTakeFocus=function(){o._hasFrameFocus=!0,o._handleFocusDrawing("_onTakeFocus")},o._onReleaseFocus=function(){o._hasFrameFocus=!1,o._handleFocusDrawing("_onReleaseFocus")},o._handleFocusDrawing=function(t){o._hasFrameFocus?o._isMouseDown?(o.style.borderColor=u,o.style.borderStyle=h,o.style.backgroundColor=b,o.style.color=S,B&&(o.innerHTML="",o.appendChild(B))):(o.style.borderColor=l,o.style.borderStyle=f,o.style.backgroundColor=v,o.style.color=k,_&&(o.innerHTML="",o.appendChild(_))):o._isMouseDown?(o.style.borderColor=u,o.style.borderStyle=h,o.style.backgroundColor=b,o.style.color=S,B&&(o.innerHTML="",o.appendChild(B))):(o.style.borderColor=s,o.style.borderStyle=d,o.style.backgroundColor=m,o.style.color=T,C&&(o.innerHTML="",o.appendChild(C)))},o._handleHoverDrawing=function(){o._hasFrameFocus,c&&(o.style.borderColor=c),p&&(o.style.borderStyle=p),g&&(o.style.backgroundColor=g),A&&(o.style.color=A),E&&(o.innerHTML="",o.appendChild(E))},o.style.textAlign="center",o.style.fontSize=r*O+"px",o.style.lineHeight=r+"px",o.style.borderWidth="1px",null!=i&&(o.style.borderWidth=i+"px"),null!=y&&(o.style.boxShadow=y),o.style.borderRadius=a+parseInt(o.style.borderWidth)+"px",C)o.innerHTML="",o.appendChild(C);else if(w)(I=document.createElement("span")).style.width="100%",I.style.marginTop=F+"px",I.style.display="inline-block",I.style.textAlign="center",I.style.fontFamily="sans-serif",I.appendChild(document.createTextNode(w)),o.appendChild(I);else if(x){var I;(I=document.createElement("span")).style.width="100%",I.style.marginTop=F+"px",I.style.display="inline-block",I.style.textAlign="center",I.style.fontFamily="sans-serif",I.innerHTML='<i class="'+x+'"></i>',o.appendChild(I)}return o._handleFocusDrawing(),o},Object.freeze(s),n.d(e,"JSFrame",function(){return v})}],t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=23);function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e,n}()},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(9),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(29)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(10);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(9),i=n(2),a=n(5),s=n(55),l=function(t,e,n){var c,u,d,f,p=t&l.F,h=t&l.G,m=t&l.S,v=t&l.P,g=t&l.B,b=h?r:m?r[e]||(r[e]={}):(r[e]||{}).prototype,y=h?o:o[e]||(o[e]={}),x=y.prototype||(y.prototype={});for(c in h&&(n=e),n)d=((u=!p&&b&&void 0!==b[c])?b:n)[c],f=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,t&l.U),y[c]!=d&&i(y,c,f),v&&x[c]!=d&&(x[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){t.exports={}},function(t,e,n){var r=n(60),o=n(10);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(65),o=n(36);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(19)("keys"),o=n(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){"use strict";(function(t,r){function o(t){return(o="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})(t)}function i(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)}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"b",function(){return Pe}),n.d(e,"a",function(){return Le});var u=function(){},d={},f={},p=null,h={mark:u,measure:u};try{"undefined"!=typeof window&&(d=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&(p=MutationObserver),"undefined"!=typeof performance&&(h=performance)}catch(t){}var m=(d.navigator||{}).userAgent,v=void 0===m?"":m,g=d,b=f,y=p,x=h,w=(g.document,!!b.documentElement&&!!b.head&&"function"==typeof b.addEventListener&&"function"==typeof b.createElement),C=~v.indexOf("MSIE")||~v.indexOf("Trident/"),_=16,E="fa",B="svg-inline--fa",T="data-fa-i2svg",k="data-fa-pseudo-element",A="data-fa-pseudo-element-pending",S="data-prefix",F="data-icon",O="fontawesome-i2svg",I="async",M=["HTML","HEAD","STYLE","SCRIPT"],D=function(){try{return!0}catch(t){return!1}}(),R={fas:"solid",far:"regular",fal:"light",fab:"brands",fa:"solid"},P={solid:"fas",regular:"far",light:"fal",brands:"fab"},N="fa-layers-text",L=/Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/,j={900:"fas",400:"far",normal:"far",300:"fal"},z=[1,2,3,4,5,6,7,8,9,10],H=z.concat([11,12,13,14,15,16,17,18,19,20]),W=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],$=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(z.map(function(t){return"".concat(t,"x")})).concat(H.map(function(t){return"w-".concat(t)})),U=g.FontAwesomeConfig||{};if(b&&"function"==typeof b.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=l(t,2),n=e[0],r=e[1],o=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=b.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(n));null!=o&&(U[r]=o)})}var V=s({},{familyPrefix:E,replacementClass:B,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},U);V.autoReplaceSvg||(V.observeMutations=!1);var Y=s({},V);g.FontAwesomeConfig=Y;var G=g||{};G.___FONT_AWESOME___||(G.___FONT_AWESOME___={}),G.___FONT_AWESOME___.styles||(G.___FONT_AWESOME___.styles={}),G.___FONT_AWESOME___.hooks||(G.___FONT_AWESOME___.hooks={}),G.___FONT_AWESOME___.shims||(G.___FONT_AWESOME___.shims=[]);var X=G.___FONT_AWESOME___,J=[],q=!1;function K(t){w&&(q?setTimeout(t,0):J.push(t))}w&&((q=(b.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(b.readyState))||b.addEventListener("DOMContentLoaded",function t(){b.removeEventListener("DOMContentLoaded",t),q=1,J.map(function(t){return t()})}));var Z,Q="pending",tt="settled",et="fulfilled",nt="rejected",rt=function(){},ot=void 0!==t&&void 0!==t.process&&"function"==typeof t.process.emit,it=void 0===r?setTimeout:r,at=[];function st(){for(var t=0;t<at.length;t++)at[t][0](at[t][1]);at=[],Z=!1}function lt(t,e){at.push([t,e]),Z||(Z=!0,it(st,0))}function ct(t){var e=t.owner,n=e._state,r=e._data,o=t[n],i=t.then;if("function"==typeof o){n=et;try{r=o(r)}catch(t){pt(i,t)}}ut(i,r)||(n===et&&dt(i,r),n===nt&&pt(i,r))}function ut(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===o(e))){var r=e.then;if("function"==typeof r)return r.call(e,function(r){n||(n=!0,e===r?ft(t,r):dt(t,r))},function(e){n||(n=!0,pt(t,e))}),!0}}catch(e){return n||pt(t,e),!0}return!1}function dt(t,e){t!==e&&ut(t,e)||ft(t,e)}function ft(t,e){t._state===Q&&(t._state=tt,t._data=e,lt(mt,t))}function pt(t,e){t._state===Q&&(t._state=tt,t._data=e,lt(vt,t))}function ht(t){t._then=t._then.forEach(ct)}function mt(t){t._state=et,ht(t)}function vt(e){e._state=nt,ht(e),!e._handled&&ot&&t.process.emit("unhandledRejection",e._data,e)}function gt(e){t.process.emit("rejectionHandled",e)}function bt(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof bt==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function n(t){pt(e,t)}try{t(function(t){dt(e,t)},n)}catch(t){n(t)}}(t,this)}bt.prototype={constructor:bt,_state:Q,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(rt),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===nt&&ot&&lt(gt,this)),this._state===et||this._state===nt?lt(ct,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},bt.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new bt(function(e,n){var r=[],o=0;function i(t){return o++,function(n){r[t]=n,--o||e(r)}}for(var a,s=0;s<t.length;s++)(a=t[s])&&"function"==typeof a.then?a.then(i(s),n):r[s]=a;o||e(r)})},bt.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new bt(function(e,n){for(var r,o=0;o<t.length;o++)(r=t[o])&&"function"==typeof r.then?r.then(e,n):e(r)})},bt.resolve=function(t){return t&&"object"===o(t)&&t.constructor===bt?t:new bt(function(e){e(t)})},bt.reject=function(t){return new bt(function(e,n){n(t)})};var yt="function"==typeof Promise?Promise:bt,xt=_,wt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ct(t){if(t&&w){var e=b.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=b.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return b.head.insertBefore(e,r),t}}var _t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Et(){for(var t=12,e="";t-- >0;)e+=_t[62*Math.random()|0];return e}function Bt(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Tt(t){return t.classList?Bt(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(t){return t})}function kt(t,e){var n,r=e.split("-"),o=r[0],i=r.slice(1).join("-");return o!==t||""===i||(n=i,~$.indexOf(n))?null:i}function At(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function St(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function Ft(t){return t.size!==wt.size||t.x!==wt.x||t.y!==wt.y||t.rotate!==wt.rotate||t.flipX||t.flipY}function Ot(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*e.x,", ").concat(32*e.y,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var It={x:0,y:0,width:"100%",height:"100%"};function Mt(t){var e=t.icons,n=e.main,r=e.mask,o=t.prefix,i=t.iconName,a=t.transform,l=t.symbol,c=t.title,u=t.extra,d=t.watchable,f=void 0!==d&&d,p=r.found?r:n,h=p.width,m=p.height,v="fa-w-".concat(Math.ceil(h/m*16)),g=[Y.replacementClass,i?"".concat(Y.familyPrefix,"-").concat(i):"",v].filter(function(t){return-1===u.classes.indexOf(t)}).concat(u.classes).join(" "),b={children:[],attributes:s({},u.attributes,{"data-prefix":o,"data-icon":i,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(m)})};f&&(b.attributes[T]=""),c&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(Et())},children:[c]});var y=s({},b,{prefix:o,iconName:i,main:n,mask:r,transform:a,symbol:l,styles:u.styles}),x=r.found&&n.found?function(t){var e=t.children,n=t.attributes,r=t.main,o=t.mask,i=t.transform,a=r.width,l=r.icon,c=o.width,u=o.icon,d=Ot({transform:i,containerWidth:c,iconWidth:a}),f={tag:"rect",attributes:s({},It,{fill:"white"})},p={tag:"g",attributes:s({},d.inner),children:[{tag:"path",attributes:s({},l.attributes,d.path,{fill:"black"})}]},h={tag:"g",attributes:s({},d.outer),children:[p]},m="mask-".concat(Et()),v="clip-".concat(Et()),g={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:[u]},{tag:"mask",attributes:s({},It,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,h]}]};return e.push(g,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(m,")")},It)}),{children:e,attributes:n}}(y):function(t){var e=t.children,n=t.attributes,r=t.main,o=t.transform,i=St(t.styles);if(i.length>0&&(n.style=i),Ft(o)){var a=Ot({transform:o,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(y),w=x.children,C=x.attributes;return y.children=w,y.attributes=C,l?function(t){var e=t.prefix,n=t.iconName,r=t.children,o=t.attributes,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===i?"".concat(e,"-").concat(Y.familyPrefix,"-").concat(n):i}),children:r}]}]}(y):function(t){var e=t.children,n=t.main,r=t.mask,o=t.attributes,i=t.styles,a=t.transform;if(Ft(a)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};o.style=St(s({},i,{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}(y)}function Dt(t){var e=t.content,n=t.width,r=t.height,o=t.transform,i=t.title,a=t.extra,l=t.watchable,c=void 0!==l&&l,u=s({},a.attributes,i?{title:i}:{},{class:a.classes.join(" ")});c&&(u[T]="");var d=s({},a.styles);Ft(o)&&(d.transform=function(t){var e=t.transform,n=t.width,r=void 0===n?_:n,o=t.height,i=void 0===o?_:o,a=t.startCentered,s=void 0!==a&&a,l="";return l+=s&&C?"translate(".concat(e.x/xt-r/2,"em, ").concat(e.y/xt-i/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/xt,"em), calc(-50% + ").concat(e.y/xt,"em)) "):"translate(".concat(e.x/xt,"em, ").concat(e.y/xt,"em) "),l+="scale(".concat(e.size/xt*(e.flipX?-1:1),", ").concat(e.size/xt*(e.flipY?-1:1),") "),l+="rotate(".concat(e.rotate,"deg) ")}({transform:o,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var f=St(d);f.length>0&&(u.style=f);var p=[];return p.push({tag:"span",attributes:u,children:[e]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function Rt(t){var e=t.content,n=t.title,r=t.extra,o=s({},r.attributes,n?{title:n}:{},{class:r.classes.join(" ")}),i=St(r.styles);i.length>0&&(o.style=i);var a=[];return a.push({tag:"span",attributes:o,children:[e]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var Pt=function(){},Nt=Y.measurePerformance&&x&&x.mark&&x.measure?x:{mark:Pt,measure:Pt},Lt=function(t){Nt.mark("".concat('FA "5.9.0"'," ").concat(t," ends")),Nt.measure("".concat('FA "5.9.0"'," ").concat(t),"".concat('FA "5.9.0"'," ").concat(t," begins"),"".concat('FA "5.9.0"'," ").concat(t," ends"))},jt={begin:function(t){return Nt.mark("".concat('FA "5.9.0"'," ").concat(t," begins")),function(){return Lt(t)}},end:Lt},zt=function(t,e,n,r){var o,i,a,s=Object.keys(t),l=s.length,c=void 0!==r?function(t,e){return function(n,r,o,i){return t.call(e,n,r,o,i)}}(e,r):e;for(void 0===n?(o=1,a=t[s[0]]):(o=0,a=n);o<l;o++)a=c(a,t[i=s[o]],i,t);return a};function Ht(t){for(var e="",n=0;n<t.length;n++){e+=("000"+t.charCodeAt(n).toString(16)).slice(-4)}return e}function Wt(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=Object.keys(e).reduce(function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{});"function"!=typeof X.hooks.addPack||r?X.styles[t]=s({},X.styles[t]||{},o):X.hooks.addPack(t,o),"fas"===t&&Wt("fa",e)}var $t=X.styles,Ut=X.shims,Vt={},Yt={},Gt={},Xt=function(){var t=function(t){return zt($t,function(e,n,r){return e[r]=zt(n,t,{}),e},{})};Vt=t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),Yt=t(function(t,e,n){var r=e[2];return t[n]=n,r.forEach(function(e){t[e]=n}),t});var e="far"in $t;Gt=zt(Ut,function(t,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||e||(o="fas"),t[r]={prefix:o,iconName:i},t},{})};function Jt(t,e){return(Vt[t]||{})[e]}Xt();var qt=X.styles,Kt=function(){return{prefix:null,iconName:null,rest:[]}};function Zt(t){return t.reduce(function(t,e){var n=kt(Y.familyPrefix,e);if(qt[e])t.prefix=e;else if(Y.autoFetchSvg&&["fas","far","fal","fab","fa"].indexOf(e)>-1)t.prefix=e;else if(n){var r="fa"===t.prefix?Gt[n]||{prefix:null,iconName:null}:{};t.iconName=r.iconName||n,t.prefix=r.prefix||t.prefix}else e!==Y.replacementClass&&0!==e.indexOf("fa-w-")&&t.rest.push(e);return t},Kt())}function Qt(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function te(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,o=t.children,i=void 0===o?[]:o;return"string"==typeof t?At(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(At(t[n]),'" ')},"").trim()}(r),">").concat(i.map(te).join(""),"</").concat(e,">")}var ee=function(){};function ne(t){return"string"==typeof(t.getAttribute?t.getAttribute(T):null)}var re={replace:function(t){var e=t[0],n=t[1].map(function(t){return te(t)}).join("\n");if(e.parentNode&&e.outerHTML)e.outerHTML=n+(Y.keepOriginalSource&&"svg"!==e.tagName.toLowerCase()?"\x3c!-- ".concat(e.outerHTML," --\x3e"):"");else if(e.parentNode){var r=document.createElement("span");e.parentNode.replaceChild(r,e),r.outerHTML=n}},nest:function(t){var e=t[0],n=t[1];if(~Tt(e).indexOf(Y.replacementClass))return re.replace(t);var r=new RegExp("".concat(Y.familyPrefix,"-.*"));delete n[0].attributes.style;var o=n[0].attributes.class.split(" ").reduce(function(t,e){return e===Y.replacementClass||e.match(r)?t.toSvg.push(e):t.toNode.push(e),t},{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" ");var i=n.map(function(t){return te(t)}).join("\n");e.setAttribute("class",o.toNode.join(" ")),e.setAttribute(T,""),e.innerHTML=i}};function oe(t){t()}function ie(t,e){var n="function"==typeof e?e:ee;if(0===t.length)n();else{var r=oe;Y.mutateApproach===I&&(r=g.requestAnimationFrame||oe),r(function(){var e=!0===Y.autoReplaceSvg?re.replace:re[Y.autoReplaceSvg]||re.replace,r=jt.begin("mutate");t.map(e),r(),n()})}}var ae=!1;function se(){ae=!1}var le=null;function ce(t){if(y&&Y.observeMutations){var e=t.treeCallback,n=t.nodeCallback,r=t.pseudoElementsCallback,o=t.observeMutationsRoot,i=void 0===o?b:o;le=new y(function(t){ae||Bt(t).forEach(function(t){if("childList"===t.type&&t.addedNodes.length>0&&!ne(t.addedNodes[0])&&(Y.searchPseudoElements&&r(t.target),e(t.target)),"attributes"===t.type&&t.target.parentNode&&Y.searchPseudoElements&&r(t.target.parentNode),"attributes"===t.type&&ne(t.target)&&~W.indexOf(t.attributeName))if("class"===t.attributeName){var o=Zt(Tt(t.target)),i=o.prefix,a=o.iconName;i&&t.target.setAttribute("data-prefix",i),a&&t.target.setAttribute("data-icon",a)}else n(t.target)})}),w&&le.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ue(t){var e,n,r=t.getAttribute("data-prefix"),o=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",a=Zt(Tt(t));return r&&o&&(a.prefix=r,a.iconName=o),a.prefix&&i.length>1?a.iconName=(e=a.prefix,n=t.innerText,(Yt[e]||{})[n]):a.prefix&&1===i.length&&(a.iconName=Jt(a.prefix,Ht(t.innerText))),a}var de=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return t.flipX=!0,t;if(r&&"v"===o)return t.flipY=!0,t;if(o=parseFloat(o),isNaN(o))return t;switch(r){case"grow":t.size=t.size+o;break;case"shrink":t.size=t.size-o;break;case"left":t.x=t.x-o;break;case"right":t.x=t.x+o;break;case"up":t.y=t.y-o;break;case"down":t.y=t.y+o;break;case"rotate":t.rotate=t.rotate+o}return t},e):e};function fe(t){var e=ue(t),n=e.iconName,r=e.prefix,o=e.rest,i=function(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce(function(t,e){var n=e.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(t[r]=o.join(":").trim()),t},{})),n}(t),a=function(t){return de(t.getAttribute("data-fa-transform"))}(t),s=function(t){var e=t.getAttribute("data-fa-symbol");return null!==e&&(""===e||e)}(t),l=function(t){var e=Bt(t.attributes).reduce(function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t},{}),n=t.getAttribute("title");return Y.autoA11y&&(n?e["aria-labelledby"]="".concat(Y.replacementClass,"-title-").concat(Et()):(e["aria-hidden"]="true",e.focusable="false")),e}(t),c=function(t){var e=t.getAttribute("data-fa-mask");return e?Zt(e.split(" ").map(function(t){return t.trim()})):Kt()}(t);return{iconName:n,title:t.getAttribute("title"),prefix:r,transform:a,symbol:s,mask:c,extra:{classes:o,styles:i,attributes:l}}}function pe(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}pe.prototype=Object.create(Error.prototype),pe.prototype.constructor=pe;var he={fill:"currentColor"},me={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ve={tag:"path",attributes:s({},he,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},ge=s({},me,{attributeName:"opacity"}),be={tag:"g",children:[ve,{tag:"circle",attributes:s({},he,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:s({},me,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:s({},ge,{values:"1;0;1;1;0;1;"})}]},{tag:"path",attributes:s({},he,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:s({},ge,{values:"1;0;0;0;0;1;"})}]},{tag:"path",attributes:s({},he,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:s({},ge,{values:"0;0;1;1;0;0;"})}]}]},ye=X.styles;function xe(t,e){return new yt(function(n,r){var o={found:!1,width:512,height:512,icon:be};if(t&&e&&ye[e]&&ye[e][t]){var i=ye[e][t];return n(o={found:!0,width:i[0],height:i[1],icon:{tag:"path",attributes:{fill:"currentColor",d:i.slice(4)[0]}}})}t&&e&&!Y.showMissingIcons?r(new pe("Icon is missing for prefix ".concat(e," with icon name ").concat(t))):n(o)})}var we=X.styles;function Ce(t){var e=fe(t);return~e.extra.classes.indexOf(N)?function(t,e){var n=e.title,r=e.transform,o=e.extra,i=null,a=null;if(C){var s=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();i=l.width/s,a=l.height/s}return Y.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),yt.resolve([t,Dt({content:t.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}(t,e):function(t,e){var n=e.iconName,r=e.title,o=e.prefix,i=e.transform,a=e.symbol,s=e.mask,c=e.extra;return new yt(function(e,u){yt.all([xe(n,o),xe(s.iconName,s.prefix)]).then(function(s){var u=l(s,2),d=u[0],f=u[1];e([t,Mt({icons:{main:d,mask:f},prefix:o,iconName:n,transform:i,symbol:a,mask:f,title:r,extra:c,watchable:!0})])})})}(t,e)}function _e(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(w){var n=b.documentElement.classList,r=function(t){return n.add("".concat(O,"-").concat(t))},o=function(t){return n.remove("".concat(O,"-").concat(t))},i=Y.autoFetchSvg?Object.keys(R):Object.keys(we),a=[".".concat(N,":not([").concat(T,"])")].concat(i.map(function(t){return".".concat(t,":not([").concat(T,"])")})).join(", ");if(0!==a.length){var s=[];try{s=Bt(t.querySelectorAll(a))}catch(t){}if(s.length>0){r("pending"),o("complete");var l=jt.begin("onTree"),c=s.reduce(function(t,e){try{var n=Ce(e);n&&t.push(n)}catch(t){D||t instanceof pe&&console.error(t)}return t},[]);return new yt(function(t,n){yt.all(c).then(function(n){ie(n,function(){r("active"),r("complete"),o("pending"),"function"==typeof e&&e(),l(),t()})}).catch(function(){l(),n()})})}}}}function Ee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ce(t).then(function(t){t&&ie([t],e)})}function Be(t,e){var n="".concat(A).concat(e.replace(":","-"));return new yt(function(r,o){if(null!==t.getAttribute(n))return r();var i=Bt(t.children).filter(function(t){return t.getAttribute(k)===e})[0],a=g.getComputedStyle(t,e),l=a.getPropertyValue("font-family").match(L),c=a.getPropertyValue("font-weight");if(i&&!l)return t.removeChild(i),r();if(l){var u=a.getPropertyValue("content"),d=~["Light","Regular","Solid","Brands"].indexOf(l[1])?P[l[1].toLowerCase()]:j[c],f=Ht(3===u.length?u.substr(1,1):u),p=Jt(d,f),h=p;if(!p||i&&i.getAttribute(S)===d&&i.getAttribute(F)===h)r();else{t.setAttribute(n,h),i&&t.removeChild(i);var m={iconName:null,title:null,prefix:null,transform:wt,symbol:!1,mask:null,extra:{classes:[],styles:{},attributes:{}}},v=m.extra;v.attributes[k]=e,xe(p,d).then(function(o){var i=Mt(s({},m,{icons:{main:o,mask:Kt()},prefix:d,iconName:h,extra:v,watchable:!0})),a=b.createElement("svg");":before"===e?t.insertBefore(a,t.firstChild):t.appendChild(a),a.outerHTML=i.map(function(t){return te(t)}).join("\n"),t.removeAttribute(n),r()}).catch(o)}}else r()})}function Te(t){return yt.all([Be(t,":before"),Be(t,":after")])}function ke(t){return!(t.parentNode===document.head||~M.indexOf(t.tagName.toUpperCase())||t.getAttribute(k)||t.parentNode&&"svg"===t.parentNode.tagName)}function Ae(t){if(w)return new yt(function(e,n){var r=Bt(t.querySelectorAll("*")).filter(ke).map(Te),o=jt.begin("searchPseudoElements");ae=!0,yt.all(r).then(function(){o(),se(),e()}).catch(function(){o(),se(),n()})})}var Se='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}';function Fe(){var t=E,e=B,n=Y.familyPrefix,r=Y.replacementClass,o=Se;if(n!==t||r!==e){var i=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");o=o.replace(i,".".concat(n,"-")).replace(a,".".concat(r))}return o}function Oe(t){return{found:!0,width:t[0],height:t[1],icon:{tag:"path",attributes:{fill:"currentColor",d:t.slice(4)[0]}}}}function Ie(){Y.autoAddCss&&!Ne&&(Ct(Fe()),Ne=!0)}function Me(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return te(t)})}}),Object.defineProperty(t,"node",{get:function(){if(w){var e=b.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function De(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return Qt(Pe.definitions,n,r)||Qt(X.styles,n,r)}var Re,Pe=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e,n,r;return e=t,(n=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(e){t.definitions[e]=s({},t.definitions[e]||{},o[e]),Wt(e,o[e]),Xt()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(e){var r=n[e],o=r.prefix,i=r.iconName,a=r.icon;t[o]||(t[o]={}),t[o][i]=a}),t}}])&&i(e.prototype,n),r&&i(e,r),t}()),Ne=!1,Le={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w){Ie();var e=t.node,n=void 0===e?b:e,r=t.callback,o=void 0===r?function(){}:r;return Y.searchPseudoElements&&Ae(n),_e(n,o)}return yt.reject("Operation requires a DOM of some kind.")},css:Fe,insertCss:function(){Ne||(Ct(Fe()),Ne=!0)},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=t.observeMutationsRoot;!1===Y.autoReplaceSvg&&(Y.autoReplaceSvg=!0),Y.observeMutations=!0,K(function(){He({autoReplaceSvgRoot:e}),ce({treeCallback:_e,nodeCallback:Ee,pseudoElementsCallback:Ae,observeMutationsRoot:n})})}},je=(Re=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?wt:n,o=e.symbol,i=void 0!==o&&o,a=e.mask,l=void 0===a?null:a,c=e.title,u=void 0===c?null:c,d=e.classes,f=void 0===d?[]:d,p=e.attributes,h=void 0===p?{}:p,m=e.styles,v=void 0===m?{}:m;if(t){var g=t.prefix,b=t.iconName,y=t.icon;return Me(s({type:"icon"},t),function(){return Ie(),Y.autoA11y&&(u?h["aria-labelledby"]="".concat(Y.replacementClass,"-title-").concat(Et()):(h["aria-hidden"]="true",h.focusable="false")),Mt({icons:{main:Oe(y),mask:l?Oe(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:b,transform:s({},wt,r),symbol:i,title:u,extra:{attributes:h,styles:v,classes:f}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:De(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:De(r||{})),Re(n,s({},e,{mask:r}))}),ze={noAuto:function(){Y.autoReplaceSvg=!1,Y.observeMutations=!1,le&&le.disconnect()},config:Y,dom:Le,library:Pe,parse:{transform:function(t){return de(t)}},findIconDefinition:De,icon:je,text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?wt:n,o=e.title,i=void 0===o?null:o,a=e.classes,l=void 0===a?[]:a,u=e.attributes,d=void 0===u?{}:u,f=e.styles,p=void 0===f?{}:f;return Me({type:"text",content:t},function(){return Ie(),Dt({content:t,transform:s({},wt,r),title:i,extra:{attributes:d,styles:p,classes:["".concat(Y.familyPrefix,"-layers-text")].concat(c(l))}})})},counter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,r=void 0===n?null:n,o=e.classes,i=void 0===o?[]:o,a=e.attributes,s=void 0===a?{}:a,l=e.styles,u=void 0===l?{}:l;return Me({type:"counter",content:t},function(){return Ie(),Rt({content:t.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(Y.familyPrefix,"-layers-counter")].concat(c(i))}})})},layer:function(t){return Me({type:"layer"},function(){Ie();var e=[];return t(function(t){Array.isArray(t)?t.map(function(t){e=e.concat(t.abstract)}):e=e.concat(t.abstract)}),[{tag:"span",attributes:{class:"".concat(Y.familyPrefix,"-layers")},children:e}]})},toHtml:te},He=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=void 0===e?b:e;(Object.keys(X.styles).length>0||Y.autoFetchSvg)&&w&&Y.autoReplaceSvg&&ze.dom.i2svg({node:n})}}).call(this,n(15),n(42).setImmediate)},function(t,e,n){var r=n(16),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e,n){"use strict";var r=n(4),o=n(20),i=n(31),a=n(11),s=n(50),l=n(52),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(53)("replace",2,function(t,e,n,h){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=h(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var v=d.global;if(v){var g=d.unicode;d.lastIndex=0}for(var b=[];;){var y=l(d,f);if(null===y)break;if(b.push(y),!v)break;""===String(y[0])&&(d.lastIndex=s(f,i(d.lastIndex),g))}for(var x,w="",C=0,_=0;_<b.length;_++){y=b[_];for(var E=String(y[0]),B=c(u(a(y.index),f.length),0),T=[],k=1;k<y.length;k++)T.push(void 0===(x=y[k])?x:String(x));var A=y.groups;if(p){var S=[E].concat(T,B,f);void 0!==A&&S.push(A);var F=String(e.apply(void 0,S))}else F=m(E,f,B,T,A,e);B>=C&&(w+=f.slice(C,B)+F,C=B+E.length)}return w+f.slice(C)}];function m(t,e,r,i,a,s){var l=r+t.length,c=i.length,u=p;return void 0!==a&&(a=o(a),u=f),n.call(s,u,function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):n}s=i[u-1]}return void 0===s?"":s})}})},function(t,e,n){var r=n(11),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(33),o=n(0)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r,o,i=n(17),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(e=l.lastIndex),r=a.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=l},function(t,e,n){"use strict";var r=n(58),o=n(59),i=n(22),a=n(23);t.exports=n(61)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(7).f,o=n(8),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=[],o="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z";e.definition={prefix:"fas",iconName:"times",icon:[352,512,r,"f00d",o]},e.faTimes=e.definition,e.prefix="fas",e.iconName="times",e.width=352,e.height=512,e.ligatures=r,e.unicode="f00d",e.svgPathData=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=[],o="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z";e.definition={prefix:"fas",iconName:"comment-alt",icon:[512,512,r,"f27a",o]},e.faCommentAlt=e.definition,e.prefix="fas",e.iconName="comment-alt",e.width=512,e.height=512,e.ligatures=r,e.unicode="f27a",e.svgPathData=o},function(t,e,n){
  /*!
   * Vue.js v2.0.5
   * (c) 2014-2016 Evan You
   * Released under the MIT License.
   */
  t.exports=function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function e(t){var e=parseFloat(t,10);return e||0===e?e:t}function n(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function r(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function o(t,e){return Ie.call(t,e)}function i(t){return"string"==typeof t||"number"==typeof t}function a(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function s(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function l(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function c(t,e){for(var n in e)t[n]=e[n];return t}function u(t){return null!==t&&"object"==typeof t}function d(t){return Le.call(t)===je}function f(t){for(var e={},n=0;n<t.length;n++)t[n]&&c(e,t[n]);return e}function p(){}function h(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function m(t,e){return t==e||!(!u(t)||!u(e))&&JSON.stringify(t)===JSON.stringify(e)}function v(t,e){for(var n=0;n<t.length;n++)if(m(t[n],e))return n;return-1}function g(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function b(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function y(t){if(!We.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function x(t){return/native code/.test(t.toString())}function w(){for(an=!0,nn.sort(function(t,e){return t.id-e.id}),sn=0;sn<nn.length;sn++){var t=nn[sn],e=t.id;rn[e]=null,t.run()}Ke&&He.devtools&&Ke.emit("flush"),nn.length=0,rn={},on=an=!1}function C(t){un.clear(),function t(e,n){var r,o,i=Array.isArray(e);if((i||u(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(i)for(r=e.length;r--;)t(e[r],n);else for(o=Object.keys(e),r=o.length;r--;)t(e[o[r]],n)}}(t,un)}function _(t,e){t.__proto__=e}function E(t,e,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];b(t,i,e[i])}}function B(t){var e;if(u(t))return o(t,"__ob__")&&t.__ob__ instanceof mn?e=t.__ob__:hn.shouldConvert&&!He._isServer&&(Array.isArray(t)||d(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new mn(t)),e}function T(t,e,n,r){var o=new tn,i=Object.getOwnPropertyDescriptor(t,e);if(!i||!1!==i.configurable){var a=i&&i.get,s=i&&i.set,l=B(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return tn.target&&(o.depend(),l&&l.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,r=0,o=e.length;r<o;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e)),e},set:function(e){var r=a?a.call(t):n;e!==r&&(s?s.call(t,e):n=e,l=B(e),o.notify())}})}}function k(t,e,n){if(Array.isArray(t))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(!o(t,e)){var r=t.__ob__;return t._isVue||r&&r.vmCount?void 0:r?(T(r.value,e,n),r.dep.notify(),n):void(t[e]=n)}t[e]=n}function A(t,e){var n=t.__ob__;t._isVue||n&&n.vmCount||o(t,e)&&(delete t[e],n&&n.dep.notify())}function S(t){t._watchers=[],function(t){var e=t.$options.props;if(e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),o=!t.$parent;hn.shouldConvert=o;for(var i=function(o){var i=r[o];T(t,i,rt(i,e,n,t))},a=0;a<r.length;a++)i(a);hn.shouldConvert=!0}}(t),function(t){var e=t.$options.data;d(e=t._data="function"==typeof e?e.call(t):e||{})||(e={});for(var n=Object.keys(e),r=t.$options.props,i=n.length;i--;)r&&o(r,n[i])||I(t,n[i]);B(e),e.__ob__&&e.__ob__.vmCount++}(t),function(t){var e=t.$options.computed;if(e)for(var n in e){var r=e[n];"function"==typeof r?(vn.get=F(r,t),vn.set=p):(vn.get=r.get?!1!==r.cache?F(r.get,t):s(r.get,t):p,vn.set=r.set?s(r.set,t):p),Object.defineProperty(t,n,vn)}}(t),function(t){var e=t.$options.methods;if(e)for(var n in e)t[n]=null==e[n]?p:s(e[n],t)}(t),function(t){var e=t.$options.watch;if(e)for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)O(t,n,r[o]);else O(t,n,r)}}(t)}function F(t,e){var n=new cn(e,t,p,{lazy:!0});return function(){return n.dirty&&n.evaluate(),tn.target&&n.depend(),n.value}}function O(t,e,n){var r;d(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function I(t,e){g(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}function M(t){var e=new gn(t.tag,t.data,t.children,t.text,t.elm,t.ns,t.context,t.componentOptions);return e.isStatic=t.isStatic,e.key=t.key,e.isCloned=!0,e}function D(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=M(t[n]);return e}function R(t,e,n,r){r+=e;var o=t.__injected||(t.__injected={});if(!o[r]){o[r]=!0;var i=t[e];t[e]=i?function(){i.apply(this,arguments),n.apply(this,arguments)}:n}}function P(t,e,n,r,o){var i,a,s,l,c,u;for(i in t)if(a=t[i],s=e[i],a)if(s){if(a!==s)if(Array.isArray(s)){s.length=a.length;for(var d=0;d<s.length;d++)s[d]=a[d];t[i]=s}else s.fn=a,t[i]=s}else u="!"===i.charAt(0),c=u?i.slice(1):i,Array.isArray(a)?n(c,a.invoker=N(a),u):(a.invoker||(l=a,(a=t[i]={}).fn=l,a.invoker=L(a)),n(c,a.invoker,u));for(i in e)t[i]||(c="!"===i.charAt(0)?i.slice(1):i,r(c,e[i].invoker))}function N(t){return function(e){for(var n=arguments,r=1===arguments.length,o=0;o<t.length;o++)r?t[o](e):t[o].apply(null,n)}}function L(t){return function(e){var n=1===arguments.length;n?t.fn(e):t.fn.apply(null,arguments)}}function j(t,e,n){if(i(t))return[z(t)];if(Array.isArray(t)){for(var r=[],o=0,a=t.length;o<a;o++){var s=t[o],l=r[r.length-1];Array.isArray(s)?r.push.apply(r,j(s,e,(n||"")+"_"+o)):i(s)?l&&l.text?l.text+=String(s):""!==s&&r.push(z(s)):s instanceof gn&&(s.text&&l&&l.text?l.text+=s.text:(e&&H(s,e),s.tag&&null==s.key&&null!=n&&(s.key="__vlist"+n+"_"+o+"__"),r.push(s)))}return r}}function z(t){return new gn(void 0,void 0,void 0,String(t))}function H(t,e){if(t.tag&&!t.ns&&(t.ns=e,t.children))for(var n=0,r=t.children.length;n<r;n++)H(t.children[n],e)}function W(t){return t&&t.filter(function(t){return t&&t.componentOptions})[0]}function $(t,e){var n=t.$options[e];if(n)for(var r=0,o=n.length;r<o;r++)n[r].call(t);t.$emit("hook:"+e)}function U(t,e,n,r,o){if(t&&(u(t)&&(t=K.extend(t)),"function"==typeof t)){if(q(t),!t.cid)if(t.resolved)t=t.resolved;else if(!(t=function(t,e){if(!t.requested){t.requested=!0;var n=t.pendingCallbacks=[e],r=!0,o=function(e){if(u(e)&&(e=K.extend(e)),t.resolved=e,!r)for(var o=0,i=n.length;o<i;o++)n[o](e)},i=function(t){},a=t(o,i);return a&&"function"==typeof a.then&&!t.resolved&&a.then(o,i),r=!1,t.resolved}t.pendingCallbacks.push(e)}(t,function(){n.$forceUpdate()})))return;var i=function(t,e){var n=e.options.props;if(n){var r={},o=t.attrs,i=t.props,a=t.domProps;if(o||i||a)for(var s in n){var l=Ne(s);Y(r,i,s,l,!0)||Y(r,o,s,l)||Y(r,a,s,l)}return r}}(e=e||{},t);if(t.options.functional)return V(t,i,e,n,r);var a=e.on;e.on=e.nativeOn,t.options.abstract&&(e={}),function(t){t.hook||(t.hook={});for(var e=0;e<wn.length;e++){var n=wn[e],r=t.hook[n],o=xn[n];t.hook[n]=r?G(o,r):o}}(e);var s=t.options.name||o,l=new gn("vue-component-"+t.cid+(s?"-"+s:""),e,void 0,void 0,void 0,void 0,n,{Ctor:t,propsData:i,listeners:a,tag:o,children:r});return l}}function V(t,e,n,r,o){var i={},a=t.options.props;if(a)for(var l in a)i[l]=rt(l,a,e);var c=t.options.render.call(null,s(X,{_self:Object.create(r)}),{props:i,data:n,parent:r,children:j(o),slots:function(){return J(o,r)}});return c instanceof gn&&(c.functionalContext=r,n.slot&&((c.data||(c.data={})).slot=n.slot)),c}function Y(t,e,n,r,i){if(e){if(o(e,n))return t[n]=e[n],i||delete e[n],!0;if(o(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function G(t,e){return function(n,r){t(n,r),e(n,r)}}function X(t,e,n){return e&&(Array.isArray(e)||"object"!=typeof e)&&(n=e,e=void 0),function(t,e,n,r){if(!n||!n.__ob__){if(!e)return bn();if("string"==typeof e){var o,i=He.getTagNamespace(e);if(He.isReservedTag(e))return new gn(e,n,j(r,i),void 0,void 0,i,t);if(o=nt(t.$options,"components",e))return U(o,n,t,r,e);var a="foreignObject"===e?"xhtml":i;return new gn(e,n,j(r,a),void 0,void 0,i,t)}return U(e,n,t,r)}}(this._self,t,e,n)}function J(t,e){var n={};if(!t)return n;for(var r,o,i=j(t)||[],a=[],s=0,l=i.length;s<l;s++)if(((o=i[s]).context===e||o.functionalContext===e)&&o.data&&(r=o.data.slot)){var c=n[r]||(n[r]=[]);"template"===o.tag?c.push.apply(c,o.children):c.push(o)}else a.push(o);return a.length&&(1!==a.length||" "!==a[0].text&&!a[0].isComment)&&(n.default=a),n}function q(t){var e=t.options;if(t.super){var n=t.super.options,r=t.superOptions,o=t.extendOptions;n!==r&&(t.superOptions=n,o.render=e.render,o.staticRenderFns=e.staticRenderFns,(e=t.options=et(n,o)).name&&(e.components[e.name]=t))}return e}function K(t){this._init(t)}function Z(t,e){var n,r,i;for(n in e)r=t[n],i=e[n],o(t,n)?u(r)&&u(i)&&Z(r,i):k(t,n,i);return t}function Q(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function tt(t,e){var n=Object.create(t||null);return e?c(n,e):n}function et(t,e,n){function r(r){var o=En[r]||Bn;u[r]=o(t[r],e[r],n,r)}(function(t){var e=t.props;if(e){var n,r,o,i={};if(Array.isArray(e))for(n=e.length;n--;)"string"==typeof(r=e[n])&&(o=De(r),i[o]={type:null});else if(d(e))for(var a in e)r=e[a],o=De(a),i[o]=d(r)?r:{type:r};t.props=i}})(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e);var i=e.extends;if(i&&(t=et(t,"function"==typeof i?i.options:i,n)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++){var l=e.mixins[a];l.prototype instanceof K&&(l=l.options),t=et(t,l,n)}var c,u={};for(c in t)r(c);for(c in e)o(t,c)||r(c);return u}function nt(t,e,n,r){if("string"==typeof n){var o=t[e],i=o[n]||o[De(n)]||o[Re(De(n))];return i}}function rt(t,e,n,r){var i=e[t],a=!o(n,t),s=n[t];if(function(t){if(!Array.isArray(t))return"Boolean"===ot(t);for(var e=0,n=t.length;e<n;e++)if("Boolean"===ot(t[e]))return!0;return!1}(i.type)&&(a&&!o(i,"default")?s=!1:""!==s&&s!==Ne(t)||(s=!0)),void 0===s){s=function(t,e,n){if(o(e,"default")){var r=e.default;return u(r),t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t[n]?t[n]:"function"==typeof r&&e.type!==Function?r.call(t):r}}(r,i,t);var l=hn.shouldConvert;hn.shouldConvert=!0,B(s),hn.shouldConvert=l}return s}function ot(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e&&e[1]}function it(t){for(var e=t.data,n=t,r=t;r.child;)(r=r.child._vnode).data&&(e=at(r.data,e));for(;n=n.parent;)n.data&&(e=at(e,n.data));return function(t){var e=t.class,n=t.staticClass;return n||e?st(n,lt(e)):""}(e)}function at(t,e){return{staticClass:st(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function st(t,e){return t?e?t+" "+e:t:e||""}function lt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,o=t.length;r<o;r++)t[r]&&(n=lt(t[r]))&&(e+=n+" ");return e.slice(0,-1)}if(u(t)){for(var i in t)t[i]&&(e+=i+" ");return e.slice(0,-1)}return e}function ct(t){return Hn(t)?"svg":"math"===t?"math":void 0}function ut(t){return"string"!=typeof t||(t=document.querySelector(t))?t:document.createElement("div")}function dt(t,e){var n=t.data.ref;if(n){var o=t.context,i=t.child||t.elm,a=o.$refs;e?Array.isArray(a[n])?r(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].push(i):a[n]=[i]:a[n]=i}}function ft(t){return null==t}function pt(t){return null!=t}function ht(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function mt(t,e,n){var r,o,i={};for(r=e;r<=n;++r)pt(o=t[r].key)&&(i[o]=r);return i}function vt(t,e){if(t.data.directives||e.data.directives){var n,r,o,i=t===Yn,a=gt(t.data.directives,t.context),s=gt(e.data.directives,e.context),l=[],c=[];for(n in s)r=a[n],o=s[n],r?(o.oldValue=r.value,yt(o,"update",e,t),o.def&&o.def.componentUpdated&&c.push(o)):(yt(o,"bind",e,t),o.def&&o.def.inserted&&l.push(o));if(l.length){var u=function(){l.forEach(function(n){yt(n,"inserted",e,t)})};i?R(e.data.hook||(e.data.hook={}),"insert",u,"dir-insert"):u()}if(c.length&&R(e.data.hook||(e.data.hook={}),"postpatch",function(){c.forEach(function(n){yt(n,"componentUpdated",e,t)})},"dir-postpatch"),!i)for(n in a)s[n]||yt(a[n],"unbind",t)}}function gt(t,e){var n,r,o=Object.create(null);if(!t)return o;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=Jn),o[bt(r)]=r,r.def=nt(e.$options,"directives",r.name);return o}function bt(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function yt(t,e,n,r){var o=t.def&&t.def[e];o&&o(n.elm,t,n,r)}function xt(t,e){if(t.data.attrs||e.data.attrs){var n,r,o=e.elm,i=t.data.attrs||{},a=e.data.attrs||{};for(n in a.__ob__&&(a=e.data.attrs=c({},a)),a)r=a[n],i[n]!==r&&wt(o,n,r);for(n in i)null==a[n]&&(Mn(n)?o.removeAttributeNS(In,Dn(n)):Fn(n)||o.removeAttribute(n))}}function wt(t,e,n){On(e)?Rn(n)?t.removeAttribute(e):t.setAttribute(e,e):Fn(e)?t.setAttribute(e,Rn(n)||"false"===n?"false":"true"):Mn(e)?Rn(n)?t.removeAttributeNS(In,Dn(e)):t.setAttributeNS(In,e,n):Rn(n)?t.removeAttribute(e):t.setAttribute(e,n)}function Ct(t,e){var n=e.elm,r=e.data,o=t.data;if(r.staticClass||r.class||o&&(o.staticClass||o.class)){var i=it(e),a=n._transitionClasses;a&&(i=st(i,lt(a))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}}function _t(t,e){if(t.data.on||e.data.on){var n=e.data.on||{},r=t.data.on||{},o=e.elm._v_add||(e.elm._v_add=function(t,n,r){e.elm.addEventListener(t,n,r)}),i=e.elm._v_remove||(e.elm._v_remove=function(t,n){e.elm.removeEventListener(t,n)});P(n,r,o,i,e.context)}}function Et(t,e){if(t.data.domProps||e.data.domProps){var n,r,o=e.elm,i=t.data.domProps||{},a=e.data.domProps||{};for(n in a.__ob__&&(a=e.data.domProps=c({},a)),i)null==a[n]&&(o[n]="");for(n in a)if("textContent"!==n&&"innerHTML"!==n||!e.children||(e.children.length=0),r=a[n],"value"===n){o._value=r;var s=null==r?"":String(r);o.value===s||o.composing||(o.value=s)}else o[n]=r}}function Bt(t,e){if(t.data&&t.data.style||e.data.style){var n,r,o=e.elm,i=t.data.style||{},a=e.data.style||{};if("string"==typeof a)return void(o.style.cssText=a);var s=a.__ob__;for(r in Array.isArray(a)&&(a=e.data.style=f(a)),s&&(a=e.data.style=c({},a)),i)null==a[r]&&nr(o,r,"");for(r in a)(n=a[r])!==i[r]&&nr(o,r,null==n?"":n)}}function Tt(t){pr(function(){pr(t)})}function kt(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),function(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}(t,e)}function At(t,e){t._transitionClasses&&r(t._transitionClasses,e),function(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}(t,e)}function St(t,e,n){var r=Ft(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===sr?ur:fr,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout(function(){l<a&&c()},i+1),t.addEventListener(s,u)}function Ft(t,e){var n,r=window.getComputedStyle(t),o=r[cr+"Delay"].split(", "),i=r[cr+"Duration"].split(", "),a=Ot(o,i),s=r[dr+"Delay"].split(", "),l=r[dr+"Duration"].split(", "),c=Ot(s,l),u=0,d=0;e===sr?a>0&&(n=sr,u=a,d=i.length):e===lr?c>0&&(n=lr,u=c,d=l.length):(u=Math.max(a,c),d=(n=u>0?a>c?sr:lr:null)?n===sr?i.length:l.length:0);var f=n===sr&&hr.test(r[cr+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:f}}function Ot(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return It(e)+It(t[n])}))}function It(t){return 1e3*Number(t.slice(0,-1))}function Mt(t){var e=t.elm;e._leaveCb&&(e._leaveCb.cancelled=!0,e._leaveCb());var n=Rt(t.data.transition);if(n&&!e._enterCb&&1===e.nodeType){var r=n.css,o=n.type,i=n.enterClass,a=n.enterActiveClass,s=n.appearClass,l=n.appearActiveClass,c=n.beforeEnter,u=n.enter,d=n.afterEnter,f=n.enterCancelled,p=n.beforeAppear,h=n.appear,m=n.afterAppear,v=n.appearCancelled,g=yn.$vnode,b=g&&g.parent?g.parent.context:yn,y=!b._isMounted||!t.isRootInsert;if(!y||h||""===h){var x=y?s:i,w=y?l:a,C=y&&p||c,_=y&&"function"==typeof h?h:u,E=y&&m||d,B=y&&v||f,T=!1!==r&&!Ge,k=_&&(_._length||_.length)>1,A=e._enterCb=Pt(function(){T&&At(e,w),A.cancelled?(T&&At(e,x),B&&B(e)):E&&E(e),e._enterCb=null});t.data.show||R(t.data.hook||(t.data.hook={}),"insert",function(){var n=e.parentNode,r=n&&n._pending&&n._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),_&&_(e,A)},"transition-insert"),C&&C(e),T&&(kt(e,x),kt(e,w),Tt(function(){At(e,x),A.cancelled||k||St(e,o,A)})),t.data.show&&_&&_(e,A),T||k||A()}}}function Dt(t,e){function n(){v.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),c&&c(r),h&&(kt(r,s),kt(r,l),Tt(function(){At(r,s),v.cancelled||m||St(r,a,v)})),u&&u(r,v),h||m||v())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=Rt(t.data.transition);if(!o)return e();if(!r._leaveCb&&1===r.nodeType){var i=o.css,a=o.type,s=o.leaveClass,l=o.leaveActiveClass,c=o.beforeLeave,u=o.leave,d=o.afterLeave,f=o.leaveCancelled,p=o.delayLeave,h=!1!==i&&!Ge,m=u&&(u._length||u.length)>1,v=r._leaveCb=Pt(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),h&&At(r,l),v.cancelled?(h&&At(r,s),f&&f(r)):(e(),d&&d(r)),r._leaveCb=null});p?p(n):n()}}function Rt(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&c(e,mr(t.name||"v")),c(e,t),e}return"string"==typeof t?mr(t):void 0}}function Pt(t){var e=!1;return function(){e||(e=!0,t())}}function Nt(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],o)i=v(r,jt(a))>-1,a.selected!==i&&(a.selected=i);else if(m(jt(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function Lt(t,e){for(var n=0,r=e.length;n<r;n++)if(m(jt(e[n]),t))return!1;return!0}function jt(t){return"_value"in t?t._value:t.value}function zt(t){t.target.composing=!0}function Ht(t){t.target.composing=!1,Wt(t.target,"input")}function Wt(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function $t(t){return!t.child||t.data&&t.data.transition?t:$t(t.child._vnode)}function Ut(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ut(W(e.children)):t}function Vt(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[De(i)]=o[i].fn;return e}function Yt(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function Gt(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Xt(t){t.data.newPos=t.elm.getBoundingClientRect()}function Jt(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function qt(t,e){return e&&(t=t.replace(co,"\n")),t.replace(so,"<").replace(lo,">").replace(uo,"&").replace(fo,'"')}function Kt(t){function e(){(a||(a=[])).push(t.slice(f,o).trim()),f=o+1}var n,r,o,i,a,s=!1,l=!1,c=0,u=0,d=0,f=0;for(o=0;o<t.length;o++)if(r=n,n=t.charCodeAt(o),s)39===n&&92!==r&&(s=!s);else if(l)34===n&&92!==r&&(l=!l);else if(124!==n||124===t.charCodeAt(o+1)||124===t.charCodeAt(o-1)||c||u||d)switch(n){case 34:l=!0;break;case 39:s=!0;break;case 40:d++;break;case 41:d--;break;case 91:u++;break;case 93:u--;break;case 123:c++;break;case 125:c--}else void 0===i?(f=o+1,i=t.slice(0,o).trim()):e();if(void 0===i?i=t.slice(0,o).trim():0!==f&&e(),a)for(o=0;o<a.length;o++)i=Zt(i,a[o]);return i}function Zt(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var r=e.slice(0,n),o=e.slice(n+1);return'_f("'+r+'")('+t+","+o}function Qt(t){console.error("[Vue parser]: "+t)}function te(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function ee(t,e,n){(t.props||(t.props=[])).push({name:e,value:n})}function ne(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n})}function re(t,e,n,r,o,i){(t.directives||(t.directives=[])).push({name:e,rawName:n,value:r,arg:o,modifiers:i})}function oe(t,e,n,r,o){var i;r&&r.capture&&(delete r.capture,e="!"+e),r&&r.native?(delete r.native,i=t.nativeEvents||(t.nativeEvents={})):i=t.events||(t.events={});var a={value:n,modifiers:r},s=i[e];Array.isArray(s)?o?s.unshift(a):s.push(a):i[e]=s?o?[a,s]:[s,a]:a}function ie(t,e,n){var r=ae(t,":"+e)||ae(t,"v-bind:"+e);if(null!=r)return r;if(!1!==n){var o=ae(t,e);if(null!=o)return JSON.stringify(o)}}function ae(t,e){var n;if(null!=(n=t.attrsMap[e]))for(var r=t.attrsList,o=0,i=r.length;o<i;o++)if(r[o].name===e){r.splice(o,1);break}return n}function se(t,e){e.warn,Rr=e.getTagNamespace||ze,Pr=e.mustUseProp||ze,Nr=e.isPreTag||ze,Lr=te(e.modules,"preTransformNode"),jr=te(e.modules,"transformNode"),zr=te(e.modules,"postTransformNode"),Hr=e.delimiters;var n,r,o=[],i=!1!==e.preserveWhitespace,a=!1,s=!1;return function(t,e){function n(e){d+=e,t=t.substring(e)}function r(){var e=t.match(Ar);if(e){var r,o,i={tagName:e[1],attrs:[],start:d};for(n(e[0].length);!(r=t.match(Sr))&&(o=t.match(Br));)n(o[0].length),i.attrs.push(o);if(r)return i.unarySlash=r[1],n(r[0].length),i.end=d,i}}function o(t){var n=t.tagName,r=t.unarySlash;c&&("p"===s&&zn(n)&&i("",s),jn(n)&&s===n&&i("",n));for(var o=u(n)||"html"===n&&"head"===s||!!r,a=t.attrs.length,d=new Array(a),f=0;f<a;f++){var p=t.attrs[f];Dr&&-1===p[0].indexOf('""')&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var h=p[3]||p[4]||p[5]||"";d[f]={name:p[1],value:qt(h,e.shouldDecodeNewlines)}}o||(l.push({tag:n,attrs:d}),s=n,r=""),e.start&&e.start(n,d,o,t.start,t.end)}function i(t,n,r,o){var i;if(null==r&&(r=d),null==o&&(o=d),n){var a=n.toLowerCase();for(i=l.length-1;i>=0&&l[i].tag.toLowerCase()!==a;i--);}else i=0;if(i>=0){for(var c=l.length-1;c>=i;c--)e.end&&e.end(l[c].tag,r,o);l.length=i,s=i&&l[i-1].tag}else"br"===n.toLowerCase()?e.start&&e.start(n,[],!0,r,o):"p"===n.toLowerCase()&&(e.start&&e.start(n,[],!1,r,o),e.end&&e.end(n,r,o))}for(var a,s,l=[],c=e.expectHTML,u=e.isUnaryTag||ze,d=0;t;){if(a=t,s&&io(s,e.sfc,l)){var f=s.toLowerCase(),p=ao[f]||(ao[f]=new RegExp("([\\s\\S]*?)(</"+f+"[^>]*>)","i")),h=0,m=t.replace(p,function(t,n,r){return h=r.length,"script"!==f&&"style"!==f&&"noscript"!==f&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),e.chars&&e.chars(n),""});d+=t.length-m.length,t=m,i("</"+f+">",f,d-h,d)}else{var v=t.indexOf("<");if(0===v){if(Ir.test(t)){var g=t.indexOf("--\x3e");if(g>=0){n(g+3);continue}}if(Mr.test(t)){var b=t.indexOf("]>");if(b>=0){n(b+2);continue}}var y=t.match(Or);if(y){n(y[0].length);continue}var x=t.match(Fr);if(x){var w=d;n(x[0].length),i(x[0],x[1],w,d);continue}var C=r();if(C){o(C);continue}}var _=void 0,E=void 0,B=void 0;if(v>0){for(E=t.slice(v);!(Fr.test(E)||Ar.test(E)||Ir.test(E)||Mr.test(E)||(B=E.indexOf("<",1),B<0));)v+=B,E=t.slice(v);_=t.substring(0,v),n(v)}v<0&&(_=t,t=""),e.chars&&_&&e.chars(_)}if(t===a&&e.chars){e.chars(t);break}}i()}(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,shouldDecodeNewlines:e.shouldDecodeNewlines,start:function(t,i,l){var c=r&&r.ns||Rr(t);e.isIE&&"svg"===c&&(i=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Bo.test(r.name)||(r.name=r.name.replace(To,""),e.push(r))}return e}(i));var u={type:1,tag:t,attrsList:i,attrsMap:ce(i,e.isIE),parent:r,children:[]};c&&(u.ns=c),function(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}(u)&&(u.forbidden=!0);for(var d=0;d<Lr.length;d++)Lr[d](u,e);if(a||(function(t){null!=ae(t,"v-pre")&&(t.pre=!0)}(u),u.pre&&(a=!0)),Nr(u.tag)&&(s=!0),a)!function(t){var e=t.attrsList.length;if(e)for(var n=t.attrs=new Array(e),r=0;r<e;r++)n[r]={name:t.attrsList[r].name,value:JSON.stringify(t.attrsList[r].value)};else t.pre||(t.plain=!0)}(u);else{(function(t){var e;if(e=ae(t,"v-for")){var n=e.match(go);if(!n)return;t.for=n[2].trim();var r=n[1].trim(),o=r.match(bo);o?(t.alias=o[1].trim(),t.iterator1=o[2].trim(),o[3]&&(t.iterator2=o[3].trim())):t.alias=r}})(u),function(t){var e=ae(t,"v-if");e&&(t.if=e),null!=ae(t,"v-else")&&(t.else=!0)}(u),function(t){null!=ae(t,"v-once")&&(t.once=!0)}(u),function(t){var e=ie(t,"key");e&&(t.key=e)}(u),u.plain=!u.key&&!i.length,function(t){var e=ie(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(u),function(t){if("slot"===t.tag)t.slotName=ie(t,"name");else{var e=ie(t,"slot");e&&(t.slotTarget=e)}}(u),function(t){var e;(e=ie(t,"is"))&&(t.component=e),null!=ae(t,"inline-template")&&(t.inlineTemplate=!0)}(u);for(var f=0;f<jr.length;f++)jr[f](u,e);!function(t){var e,n,r,o,i,a,s,l,c=t.attrsList;for(e=0,n=c.length;e<n;e++)if(r=o=c[e].name,i=c[e].value,vo.test(r))if(t.hasBindings=!0,(s=le(r))&&(r=r.replace(Co,"")),yo.test(r))r=r.replace(yo,""),s&&s.prop&&(l=!0,"innerHtml"===(r=De(r))&&(r="innerHTML")),l||Pr(r)?ee(t,r,i):ne(t,r,i);else if(xo.test(r))r=r.replace(xo,""),oe(t,r,i,s);else{var u=(r=r.replace(vo,"")).match(wo);u&&(a=u[1])&&(r=r.slice(0,-(a.length+1))),re(t,r,o,i,a,s)}else ne(t,r,JSON.stringify(i))}(u)}n?o.length||n.if&&u.else&&(n.elseBlock=u):n=u,r&&!u.forbidden&&(u.else?function(t,e){var n=function(t){for(var e=t.length;e--;)if(t[e].tag)return t[e]}(e.children);n&&n.if&&(n.elseBlock=t)}(u,r):(r.children.push(u),u.parent=r)),l||(r=u,o.push(u));for(var p=0;p<zr.length;p++)zr[p](u,e)},end:function(){var t=o[o.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&t.children.pop(),o.length-=1,r=o[o.length-1],t.pre&&(a=!1),Nr(t.tag)&&(s=!1)},chars:function(t){var e;r&&(t=s||t.trim()?Eo(t):i&&r.children.length?" ":"")&&(!a&&" "!==t&&(e=function(t,e){var n=e?mo(e):po;if(n.test(t)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(t);){(o=r.index)>a&&i.push(JSON.stringify(t.slice(a,o)));var s=Kt(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a<t.length&&i.push(JSON.stringify(t.slice(a))),i.join("+")}}(t,Hr))?r.children.push({type:2,expression:e,text:t}):(t=t.replace(_o,""),r.children.push({type:3,text:t})))}}),n}function le(t){var e=t.match(Co);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}function ce(t,e){for(var n={},r=0,o=t.length;r<o;r++)n[t[r].name]=t[r].value;return n}function ue(t,e){t&&(Wr=ko(e.staticKeys||""),$r=e.isReservedTag||function(){return!1},function t(e){if(e.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Oe(t.tag)||!$r(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Wr))))}(e),1===e.type)for(var n=0,r=e.children.length;n<r;n++){var o=e.children[n];t(o),o.static||(e.static=!1)}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static)return void(e.staticRoot=!0);if(e.children)for(var r=0,o=e.children.length;r<o;r++)t(e.children[r],n||!!e.for)}}(t,!1))}function de(t,e){var n=e?"nativeOn:{":"on:{";for(var r in t)n+='"'+r+'":'+fe(t[r])+",";return n.slice(0,-1)+"}"}function fe(t){if(t){if(Array.isArray(t))return"["+t.map(fe).join(",")+"]";if(t.modifiers){var e="",n=[];for(var r in t.modifiers)Fo[r]?e+=Fo[r]:n.push(r);n.length&&(e=function(t){var e=1===t.length?pe(t[0]):Array.prototype.concat.apply([],t.map(pe));return Array.isArray(e)?"if("+e.map(function(t){return"$event.keyCode!=="+t}).join("&&")+")return;":"if($event.keyCode!=="+e+")return;"}(n)+e);var o=Ao.test(t.value)?t.value+"($event)":t.value;return"function($event){"+e+o+"}"}return Ao.test(t.value)?t.value:"function($event){"+t.value+"}"}return"function(){}"}function pe(t){return parseInt(t,10)||So[t]||"_k("+JSON.stringify(t)+")"}function he(t,e){var n=Xr,r=Xr=[],o=Jr;Jr=0,qr=e,Ur=e.warn||Qt,Vr=te(e.modules,"transformCode"),Yr=te(e.modules,"genData"),Gr=e.directives||{};var i=t?me(t):'_h("div")';return Xr=n,Jr=o,{render:"with(this){return "+i+"}",staticRenderFns:r}}function me(t){if(t.staticRoot&&!t.staticProcessed)return ve(t);if(t.once&&!t.onceProcessed)return function(t){if(t.onceProcessed=!0,t.staticInFor){for(var e="",n=t.parent;n;){if(n.for){e=n.key;break}n=n.parent}return e?"_o("+me(t)+","+Jr+++(e?","+e:"")+")":me(t)}return ve(t)}(t);if(t.for&&!t.forProcessed)return function(t){var e=t.for,n=t.alias,r=t.iterator1?","+t.iterator1:"",o=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,"_l(("+e+"),function("+n+r+o+"){return "+me(t)+"})"}(t);if(t.if&&!t.ifProcessed)return function(t){var e=t.if;return t.ifProcessed=!0,"("+e+")?"+me(t)+":"+function(t){return t.elseBlock?me(t.elseBlock):"_e()"}(t)}(t);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return function(t){var e=t.slotName||'"default"',n=be(t);return"_t("+e+(n?","+n:"")+")"}(t);var e;if(t.component)e=function(t,e){var n=e.inlineTemplate?null:be(e);return"_h("+t+","+ge(e)+(n?","+n:"")+")"}(t.component,t);else{var n=t.plain?void 0:ge(t),r=t.inlineTemplate?null:be(t);e="_h('"+t.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var o=0;o<Vr.length;o++)e=Vr[o](t,e);return e}return be(t)||"void 0"}function ve(t){return t.staticProcessed=!0,Xr.push("with(this){return "+me(t)+"}"),"_m("+(Xr.length-1)+(t.staticInFor?",true":"")+")"}function ge(t){var e="{",n=function(t){var e=t.directives;if(e){var n,r,o,i,a="directives:[",s=!1;for(n=0,r=e.length;n<r;n++){o=e[n],i=!0;var l=Gr[o.name]||Oo[o.name];l&&(i=!!l(t,o,Ur)),i&&(s=!0,a+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return s?a.slice(0,-1)+"]":void 0}}(t);n&&(e+=n+","),t.key&&(e+="key:"+t.key+","),t.ref&&(e+="ref:"+t.ref+","),t.refInFor&&(e+="refInFor:true,"),t.component&&(e+='tag:"'+t.tag+'",'),t.slotTarget&&(e+="slot:"+t.slotTarget+",");for(var r=0;r<Yr.length;r++)e+=Yr[r](t);if(t.attrs&&(e+="attrs:{"+xe(t.attrs)+"},"),t.props&&(e+="domProps:{"+xe(t.props)+"},"),t.events&&(e+=de(t.events)+","),t.nativeEvents&&(e+=de(t.nativeEvents,!0)+","),t.inlineTemplate){var o=t.children[0];if(1===o.type){var i=he(o,qr);e+="inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}return e=e.replace(/,$/,"")+"}",t.wrapData&&(e=t.wrapData(e)),e}function be(t){if(t.children.length)return"["+t.children.map(ye).join(",")+"]"}function ye(t){return 1===t.type?me(t):function(t){return 2===t.type?t.expression:JSON.stringify(t.text)}(t)}function xe(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+='"'+r.name+'":'+r.value+","}return e.slice(0,-1)}function we(){return Zr.charCodeAt(++to)}function Ce(){return to>=Kr}function _e(t){return 34===t||39===t}function Ee(t){var e=1;for(eo=to;!Ce();)if(_e(t=we()))Be(t);else if(91===t&&e++,93===t&&e--,0===e){no=to;break}}function Be(t){for(var e=t;!Ce()&&(t=we())!==e;);}function Te(t,e){var n=function(t){if(Kr=(Zr=t).length,to=eo=no=0,t.indexOf("[")<0)return{exp:t,idx:null};for(;!Ce();)_e(Qr=we())?Be(Qr):91===Qr&&Ee(Qr);return{exp:t.substring(0,eo),idx:t.substring(eo+1,no)}}(t);return null===n.idx?t+"="+e:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+t+"="+e+"}else{$$exp.splice($$idx, 1, "+e+")}"}function ke(t,e){return e=e?c(c({},Ro),e):Ro,function(t,e){var n=se(t.trim(),e);ue(n,e);var r=he(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}(t,e)}function Ae(t,e,n){var r=(e&&e.warn,e&&e.delimiters?String(e.delimiters)+t:t);if(Do[r])return Do[r];var o={},i=ke(t,e);o.render=Se(i.render);var a=i.staticRenderFns.length;o.staticRenderFns=new Array(a);for(var s=0;s<a;s++)o.staticRenderFns[s]=Se(i.staticRenderFns[s]);return Do[r]=o}function Se(t){try{return new Function(t)}catch(t){return p}}var Fe,Oe=n("slot,component",!0),Ie=Object.prototype.hasOwnProperty,Me=/-(\w)/g,De=a(function(t){return t.replace(Me,function(t,e){return e?e.toUpperCase():""})}),Re=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Pe=/([^-])([A-Z])/g,Ne=a(function(t){return t.replace(Pe,"$1-$2").replace(Pe,"$1-$2").toLowerCase()}),Le=Object.prototype.toString,je="[object Object]",ze=function(){return!1},He={optionMergeStrategies:Object.create(null),silent:!1,devtools:!1,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:ze,isUnknownElement:ze,getTagNamespace:p,mustUseProp:ze,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:!1},We=/[^\w.$]/,$e="__proto__"in{},Ue="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Ve=Ue&&window.navigator.userAgent.toLowerCase(),Ye=Ve&&/msie|trident/.test(Ve),Ge=Ve&&Ve.indexOf("msie 9.0")>0,Xe=Ve&&Ve.indexOf("edge/")>0,Je=Ve&&Ve.indexOf("android")>0,qe=Ve&&/iphone|ipad|ipod|ios/.test(Ve),Ke=Ue&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ze=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&x(Promise)){var o=Promise.resolve();e=function(){o.then(t),qe&&setTimeout(p)}}else if("undefined"==typeof MutationObserver||!x(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var i=1,a=new MutationObserver(t),s=document.createTextNode(String(i));a.observe(s,{characterData:!0}),e=function(){i=(i+1)%2,s.data=String(i)}}return function(t,o){var i=o?function(){t.call(o)}:t;n.push(i),r||(r=!0,e())}}();Fe="undefined"!=typeof Set&&x(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Qe=0,tn=function(){this.id=Qe++,this.subs=[]};tn.prototype.addSub=function(t){this.subs.push(t)},tn.prototype.removeSub=function(t){r(this.subs,t)},tn.prototype.depend=function(){tn.target&&tn.target.addDep(this)},tn.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},tn.target=null;var en=[],nn=[],rn={},on=!1,an=!1,sn=0,ln=0,cn=function(t,e,n,r){void 0===r&&(r={}),this.vm=t,t._watchers.push(this),this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.expression=e.toString(),this.cb=n,this.id=++ln,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Fe,this.newDepIds=new Fe,"function"==typeof e?this.getter=e:(this.getter=y(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};cn.prototype.get=function(){!function(t){tn.target&&en.push(tn.target),tn.target=t}(this);var t=this.getter.call(this.vm,this.vm);return this.deep&&C(t),tn.target=en.pop(),this.cleanupDeps(),t},cn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},cn.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},cn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==rn[e]){if(rn[e]=!0,an){for(var n=nn.length-1;n>=0&&nn[n].id>t.id;)n--;nn.splice(Math.max(n,sn)+1,0,t)}else nn.push(t);on||(on=!0,Ze(w))}}(this)},cn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){if(!He.errorHandler)throw t;He.errorHandler.call(null,t,this.vm)}else this.cb.call(this.vm,t,e)}}},cn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},cn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},cn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||r(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var un=new Fe,dn=Array.prototype,fn=Object.create(dn);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=dn[t];b(fn,t,function(){for(var n=arguments,r=arguments.length,o=new Array(r);r--;)o[r]=n[r];var i,a=e.apply(this,o),s=this.__ob__;switch(t){case"push":case"unshift":i=o;break;case"splice":i=o.slice(2)}return i&&s.observeArray(i),s.dep.notify(),a})});var pn=Object.getOwnPropertyNames(fn),hn={shouldConvert:!0,isSettingProps:!1},mn=function(t){if(this.value=t,this.dep=new tn,this.vmCount=0,b(t,"__ob__",this),Array.isArray(t)){var e=$e?_:E;e(t,fn,pn),this.observeArray(t)}else this.walk(t)};mn.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)T(t,e[n],t[e[n]])},mn.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)B(t[e])};var vn={enumerable:!0,configurable:!0,get:p,set:p},gn=function(t,e,n,r,o,i,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=i,this.context=a,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=s,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},bn=function(){var t=new gn;return t.text="",t.isComment=!0,t},yn=null,xn={init:function(t,e){if(!t.child||t.child._isDestroyed){var n=t.child=function(t,e){var n=t.componentOptions,r={_isComponent:!0,parent:e,propsData:n.propsData,_componentTag:n.tag,_parentVnode:t,_parentListeners:n.listeners,_renderChildren:n.children},o=t.data.inlineTemplate;return o&&(r.render=o.render,r.staticRenderFns=o.staticRenderFns),new n.Ctor(r)}(t,yn);n.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;(e.child=t.child)._updateFromParent(n.propsData,n.listeners,e,n.children)},insert:function(t){t.child._isMounted||(t.child._isMounted=!0,$(t.child,"mounted")),t.data.keepAlive&&(t.child._inactive=!1,$(t.child,"activated"))},destroy:function(t){t.child._isDestroyed||(t.data.keepAlive?(t.child._inactive=!0,$(t.child,"deactivated")):t.child.$destroy())}},wn=Object.keys(xn),Cn=0;(function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options);n.parent=e.parent,n.propsData=e.propsData,n._parentVnode=e._parentVnode,n._parentListeners=e._parentListeners,n._renderChildren=e._renderChildren,n._componentTag=e._componentTag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=et(q(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null);var e=t.$options._parentListeners,n=s(t.$on,t),r=s(t.$off,t);t._updateListeners=function(t,e){P(t,e||{},n,r)},e&&t._updateListeners(e)}(e),$(e,"beforeCreate"),S(e),$(e,"created"),function(t){t.$vnode=null,t._vnode=null,t._staticTrees=null,t._renderContext=t.$options._parentVnode&&t.$options._parentVnode.context,t.$slots=J(t.$options._renderChildren,t._renderContext),t.$createElement=s(X,t),t.$options.el&&t.$mount(t.$options.el)}(e)}})(K),function(t){var e={get:function(){return this._data}};Object.defineProperty(t.prototype,"$data",e),t.prototype.$set=k,t.prototype.$delete=A,t.prototype.$watch=function(t,e,n){(n=n||{}).user=!0;var r=new cn(this,t,e,n);return n.immediate&&e.call(this,r.value),function(){r.teardown()}}}(K),function(t){t.prototype.$on=function(t,e){var n=this;return(n._events[t]||(n._events[t]=[])).push(e),n},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(r,arguments)}var r=this;return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;var r=n._events[t];if(!r)return n;if(1===arguments.length)return n._events[t]=null,n;for(var o,i=r.length;i--;)if((o=r[i])===e||o.fn===e){r.splice(i,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?l(n):n;for(var r=l(arguments,1),o=0,i=n.length;o<i;o++)n[o].apply(e,r)}return e}}(K),function(t){t.prototype._mount=function(t,e){var n=this;return n.$el=t,n.$options.render||(n.$options.render=bn),$(n,"beforeMount"),n._watcher=new cn(n,function(){n._update(n._render(),e)},p),e=!1,null==n.$vnode&&(n._isMounted=!0,$(n,"mounted")),n},t.prototype._update=function(t,e){var n=this;n._isMounted&&$(n,"beforeUpdate");var r=n.$el,o=yn;yn=n;var i=n._vnode;n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e),yn=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el),n._isMounted&&$(n,"updated")},t.prototype._updateFromParent=function(t,e,n,r){var o=this,i=!(!o.$options._renderChildren&&!r);if(o.$options._parentVnode=n,o.$options._renderChildren=r,t&&o.$options.props){hn.shouldConvert=!1;for(var a=o.$options._propKeys||[],s=0;s<a.length;s++){var l=a[s];o[l]=rt(l,o.$options.props,t,o)}hn.shouldConvert=!0,o.$options.propsData=t}if(e){var c=o.$options._parentListeners;o.$options._parentListeners=e,o._updateListeners(e,c)}i&&(o.$slots=J(r,o._renderContext),o.$forceUpdate())},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){$(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||r(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,$(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.__patch__(t._vnode,null)}}}(K),function(n){function r(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&o(t[r],e+"_"+r,n);else o(t,e,n)}function o(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}n.prototype.$nextTick=function(t){Ze(t,this)},n.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,o=n.staticRenderFns,i=n._parentVnode;if(e._isMounted)for(var a in e.$slots)e.$slots[a]=D(e.$slots[a]);o&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=i;try{t=r.call(e._renderProxy,e.$createElement)}catch(n){if(He.errorHandler)He.errorHandler.call(null,n,e);else{if(He._isServer)throw n;console.error(n)}t=e._vnode}return t instanceof gn||(t=bn()),t.parent=i,t},n.prototype._h=X,n.prototype._s=t,n.prototype._n=e,n.prototype._e=bn,n.prototype._q=m,n.prototype._i=v,n.prototype._m=function(t,e){var n=this._staticTrees[t];return n&&!e?Array.isArray(n)?D(n):M(n):(r(n=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),"__static__"+t,!1),n)},n.prototype._o=function(t,e,n){return r(t,"__once__"+e+(n?"_"+n:""),!0),t};var i=function(t){return t};n.prototype._f=function(t){return nt(this.$options,"filters",t)||i},n.prototype._l=function(t,e){var n,r,o,i,a;if(Array.isArray(t))for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(u(t))for(i=Object.keys(t),n=new Array(i.length),r=0,o=i.length;r<o;r++)a=i[r],n[r]=e(t[a],a,r);return n},n.prototype._t=function(t,e){var n=this.$slots[t];return n||e},n.prototype._b=function(t,e,n){if(e&&u(e))for(var r in Array.isArray(e)&&(e=f(e)),e)if("class"===r||"style"===r)t[r]=e[r];else{var o=n||He.mustUseProp(r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={});o[r]=e[r]}return t},n.prototype._k=function(t){return He.keyCodes[t]}}(K);var _n=p,En=He.optionMergeStrategies;En.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,o="function"==typeof t?t.call(n):void 0;return r?Z(r,o):o}:void 0:e?"function"!=typeof e?t:t?function(){return Z(e.call(this),t.call(this))}:e:t},He._lifecycleHooks.forEach(function(t){En[t]=Q}),He._assetTypes.forEach(function(t){En[t+"s"]=tt}),En.watch=function(t,e){if(!e)return t;if(!t)return e;var n={};for(var r in c(n,t),e){var o=n[r],i=e[r];o&&!Array.isArray(o)&&(o=[o]),n[r]=o?o.concat(i):[i]}return n},En.props=En.methods=En.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return c(n,t),c(n,e),n};var Bn=function(t,e){return void 0===e?t:e},Tn=Object.freeze({defineReactive:T,_toString:t,toNumber:e,makeMap:n,isBuiltInTag:Oe,remove:r,hasOwn:o,isPrimitive:i,cached:a,camelize:De,capitalize:Re,hyphenate:Ne,bind:s,toArray:l,extend:c,isObject:u,isPlainObject:d,toObject:f,noop:p,no:ze,genStaticKeys:h,looseEqual:m,looseIndexOf:v,isReserved:g,def:b,parsePath:y,hasProto:$e,inBrowser:Ue,UA:Ve,isIE:Ye,isIE9:Ge,isEdge:Xe,isAndroid:Je,isIOS:qe,devtools:Ke,nextTick:Ze,get _Set(){return Fe},mergeOptions:et,resolveAsset:nt,warn:_n,formatComponentName:void 0,validateProp:rt}),kn={KeepAlive:{name:"keep-alive",abstract:!0,created:function(){this.cache=Object.create(null)},render:function(){var t=W(this.$slots.default);if(t&&t.componentOptions){var e=t.componentOptions,n=null==t.key?e.Ctor.cid+"::"+e.tag:t.key;this.cache[n]?t.child=this.cache[n].child:this.cache[n]=t,t.data.keepAlive=!0}return t},destroyed:function(){for(var t in this.cache){var e=this.cache[t];$(e.child,"deactivated"),e.child.$destroy()}}}};(function(t){var e={get:function(){return He}};Object.defineProperty(t,"config",e),t.util=Tn,t.set=k,t.delete=A,t.nextTick=Ze,t.options=Object.create(null),He._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),c(t.options.components,kn),function(t){t.use=function(t){if(!t.installed){var e=l(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}}}(t),function(t){t.mixin=function(e){t.options=et(t.options,e)}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var o=t.name||n.options.name,i=function(t){this._init(t)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=e++,i.options=et(n.options,t),i.super=n,i.extend=n.extend,He._assetTypes.forEach(function(t){i[t]=n[t]}),o&&(i.options.components[o]=i),i.superOptions=n.options,i.extendOptions=t,r&&(t._Ctor=i),i}}(t),function(t){He._assetTypes.forEach(function(e){t[e]=function(n,r){return r?("component"===e&&d(r)&&(r.name=r.name||n,r=t.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}(t)})(K),Object.defineProperty(K.prototype,"$isServer",{get:function(){return He._isServer}}),K.version="2.0.5";var An,Sn=n("value,selected,checked,muted"),Fn=n("contenteditable,draggable,spellcheck"),On=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",Mn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Dn=function(t){return Mn(t)?t.slice(6,t.length):""},Rn=function(t){return null==t||!1===t},Pn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML",xhtml:"http://www.w3.org/1999/xhtm"},Nn=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Ln=n("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),jn=n("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),zn=n("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),Hn=n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Wn=function(t){return Nn(t)||Hn(t)},$n=Object.create(null),Un=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(Pn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},childNodes:function(t){return t.childNodes},setAttribute:function(t,e,n){t.setAttribute(e,n)}}),Vn={create:function(t,e){dt(e)},update:function(t,e){t.data.ref!==e.data.ref&&(dt(t,!0),dt(e))},destroy:function(t){dt(t,!0)}},Yn=new gn("",{},[]),Gn=["create","update","remove","destroy"],Xn={create:vt,update:vt,destroy:function(t){vt(t,Yn)}},Jn=Object.create(null),qn=[Vn,Xn],Kn={create:xt,update:xt},Zn={create:Ct,update:Ct},Qn={create:_t,update:_t},tr={create:Et,update:Et},er=/^--/,nr=function(t,e,n){er.test(e)?t.style.setProperty(e,n):t.style[or(e)]=n},rr=["Webkit","Moz","ms"],or=a(function(t){if(An=An||document.createElement("div"),"filter"!==(t=De(t))&&t in An.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<rr.length;n++){var r=rr[n]+e;if(r in An.style)return r}}),ir={create:Bt,update:Bt},ar=Ue&&!Ge,sr="transition",lr="animation",cr="transition",ur="transitionend",dr="animation",fr="animationend";ar&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(cr="WebkitTransition",ur="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(dr="WebkitAnimation",fr="webkitAnimationEnd"));var pr=Ue&&window.requestAnimationFrame||setTimeout,hr=/\b(transform|all)(,|$)/,mr=a(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),vr=[Kn,Zn,Qn,tr,ir,Ue?{create:function(t,e){e.data.show||Mt(e)},remove:function(t,e){t.data.show?e():Dt(t,e)}}:{}].concat(qn),gr=function(t){function e(t){var e=w.parentNode(t);e&&w.removeChild(e,t)}function n(t,e,n){var o,i=t.data;if(t.isRootInsert=!n,pt(i)&&(pt(o=i.hook)&&pt(o=o.init)&&o(t),pt(o=t.child)))return s(t,e),t.elm;var c=t.children,u=t.tag;return pt(u)?(t.elm=t.ns?w.createElementNS(t.ns,u):w.createElement(u,t),l(t),r(t,c,e),pt(i)&&a(t,e)):t.isComment?t.elm=w.createComment(t.text):t.elm=w.createTextNode(t.text),t.elm}function r(t,e,r){if(Array.isArray(e))for(var o=0;o<e.length;++o)w.appendChild(t.elm,n(e[o],r,!0));else i(t.text)&&w.appendChild(t.elm,w.createTextNode(t.text))}function o(t){for(;t.child;)t=t.child._vnode;return pt(t.tag)}function a(t,e){for(var n=0;n<y.create.length;++n)y.create[n](Yn,t);pt(g=t.data.hook)&&(g.create&&g.create(Yn,t),g.insert&&e.push(t))}function s(t,e){t.data.pendingInsert&&e.push.apply(e,t.data.pendingInsert),t.elm=t.child.$el,o(t)?(a(t,e),l(t)):(dt(t),e.push(t))}function l(t){var e;pt(e=t.context)&&pt(e=e.$options._scopeId)&&w.setAttribute(t.elm,e,""),pt(e=yn)&&e!==t.context&&pt(e=e.$options._scopeId)&&w.setAttribute(t.elm,e,"")}function c(t,e,r,o,i,a){for(;o<=i;++o)w.insertBefore(t,n(r[o],a),e)}function u(t){var e,n,r=t.data;if(pt(r))for(pt(e=r.hook)&&pt(e=e.destroy)&&e(t),e=0;e<y.destroy.length;++e)y.destroy[e](t);if(pt(e=t.children))for(n=0;n<t.children.length;++n)u(t.children[n])}function d(t,e,n,r){for(;n<=r;++n){var o=e[n];pt(o)&&(pt(o.tag)?(f(o),u(o)):w.removeChild(t,o.elm))}}function f(t,n){if(n||pt(t.data)){var r=y.remove.length+1;for(n?n.listeners+=r:n=function(t,n){function r(){0==--r.listeners&&e(t)}return r.listeners=n,r}(t.elm,r),pt(g=t.child)&&pt(g=g._vnode)&&pt(g.data)&&f(g,n),g=0;g<y.remove.length;++g)y.remove[g](t,n);pt(g=t.data.hook)&&pt(g=g.remove)?g(t,n):n()}else e(t.elm)}function p(t,e,r,o,i){for(var a,s,l,u,f=0,p=0,m=e.length-1,v=e[0],g=e[m],b=r.length-1,y=r[0],x=r[b],C=!i;f<=m&&p<=b;)ft(v)?v=e[++f]:ft(g)?g=e[--m]:ht(v,y)?(h(v,y,o),v=e[++f],y=r[++p]):ht(g,x)?(h(g,x,o),g=e[--m],x=r[--b]):ht(v,x)?(h(v,x,o),C&&w.insertBefore(t,v.elm,w.nextSibling(g.elm)),v=e[++f],x=r[--b]):ht(g,y)?(h(g,y,o),C&&w.insertBefore(t,g.elm,v.elm),g=e[--m],y=r[++p]):(ft(a)&&(a=mt(e,f,m)),ft(s=pt(y.key)?a[y.key]:null)?(w.insertBefore(t,n(y,o),v.elm),y=r[++p]):(l=e[s]).tag!==y.tag?(w.insertBefore(t,n(y,o),v.elm),y=r[++p]):(h(l,y,o),e[s]=void 0,C&&w.insertBefore(t,y.elm,v.elm),y=r[++p]));f>m?(u=ft(r[b+1])?null:r[b+1].elm,c(t,u,r,p,b,o)):p>b&&d(t,e,f,m)}function h(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return void(e.elm=t.elm);var i,a=e.data,s=pt(a);s&&pt(i=a.hook)&&pt(i=i.prepatch)&&i(t,e);var l=e.elm=t.elm,u=t.children,f=e.children;if(s&&o(e)){for(i=0;i<y.update.length;++i)y.update[i](t,e);pt(i=a.hook)&&pt(i=i.update)&&i(t,e)}ft(e.text)?pt(u)&&pt(f)?u!==f&&p(l,u,f,n,r):pt(f)?(pt(t.text)&&w.setTextContent(l,""),c(l,null,f,0,f.length-1,n)):pt(u)?d(l,u,0,u.length-1):pt(t.text)&&w.setTextContent(l,""):t.text!==e.text&&w.setTextContent(l,e.text),s&&pt(i=a.hook)&&pt(i=i.postpatch)&&i(t,e)}}function m(t,e,n){if(n&&t.parent)t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}function v(t,e,n){e.elm=t;var o=e.tag,i=e.data,l=e.children;if(pt(i)&&(pt(g=i.hook)&&pt(g=g.init)&&g(e,!0),pt(g=e.child)))return s(e,n),!0;if(pt(o)){if(pt(l)){var c=w.childNodes(t);if(c.length){var u=!0;if(c.length!==l.length)u=!1;else for(var d=0;d<l.length;d++)if(!v(c[d],l[d],n)){u=!1;break}if(!u)return!1}else r(e,l,n)}pt(i)&&a(e,n)}return!0}var g,b,y={},x=t.modules,w=t.nodeOps;for(g=0;g<Gn.length;++g)for(y[Gn[g]]=[],b=0;b<x.length;++b)void 0!==x[b][Gn[g]]&&y[Gn[g]].push(x[b][Gn[g]]);return function(t,e,r,i){if(e){var a,s,l=!1,c=[];if(t){var f=pt(t.nodeType);if(!f&&ht(t,e))h(t,e,c,i);else{if(f){if(1===t.nodeType&&t.hasAttribute("server-rendered")&&(t.removeAttribute("server-rendered"),r=!0),r&&v(t,e,c))return m(e,c,!0),t;t=function(t){return new gn(w.tagName(t).toLowerCase(),{},[],void 0,t)}(t)}if(a=t.elm,s=w.parentNode(a),n(e,c),e.parent&&(e.parent.elm=e.elm,o(e)))for(var p=0;p<y.create.length;++p)y.create[p](Yn,e.parent);null!==s?(w.insertBefore(s,e.elm,w.nextSibling(a)),d(s,[t],0,0)):pt(t.tag)&&u(t)}}else l=!0,n(e,c);return m(e,c,l),e.elm}t&&u(t)}}({nodeOps:Un,modules:vr});Ge&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Wt(t,"input")});var br={model:{inserted:function(t,e,n){if("select"===n.tag){var r=function(){Nt(t,e,n.context)};r(),(Ye||Xe)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==t.type||e.modifiers.lazy||(Je||(t.addEventListener("compositionstart",zt),t.addEventListener("compositionend",Ht)),Ge&&(t.vmodel=!0))},componentUpdated:function(t,e,n){if("select"===n.tag){Nt(t,e,n.context);var r=t.multiple?e.value.some(function(e){return Lt(e,t.options)}):e.value!==e.oldValue&&Lt(e.value,t.options);r&&Wt(t,"change")}}},show:{bind:function(t,e,n){var r=e.value,o=(n=$t(n)).data&&n.data.transition;r&&o&&!Ge&&Mt(n);var i="none"===t.style.display?"":t.style.display;t.style.display=r?i:"none",t.__vOriginalDisplay=i},update:function(t,e,n){var r=e.value,o=e.oldValue;if(r!==o){var i=(n=$t(n)).data&&n.data.transition;i&&!Ge?r?(Mt(n),t.style.display=t.__vOriginalDisplay):Dt(n,function(){t.style.display="none"}):t.style.display=r?t.__vOriginalDisplay:"none"}}}},yr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String},xr={name:"transition",props:yr,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag})).length){var r=this.mode,o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Ut(o);if(!i)return o;if(this._leaving)return Yt(t,o);var a=i.key=null==i.key||i.isStatic?"__v"+(i.tag+this._uid)+"__":i.key,s=(i.data||(i.data={})).transition=Vt(this),l=this._vnode,u=Ut(l);if(i.data.directives&&i.data.directives.some(function(t){return"show"===t.name})&&(i.data.show=!0),u&&u.data&&u.key!==a){var d=u.data.transition=c({},s);if("out-in"===r)return this._leaving=!0,R(d,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()},a),Yt(t,o);if("in-out"===r){var f,p=function(){f()};R(s,"afterEnter",p,a),R(s,"enterCancelled",p,a),R(d,"delayLeave",function(t){f=t},a)}}return o}}},wr=c({tag:String,moveClass:String},yr);delete wr.mode;var Cr={Transition:xr,TransitionGroup:{props:wr,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=Vt(this),s=0;s<o.length;s++){var l=o[s];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(i.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a)}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var f=r[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):u.push(f)}this.kept=t(e,null,c),this.removed=u}return t(e,null,i)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||this.name+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Gt),t.forEach(Xt),t.forEach(Jt),document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;kt(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ur,n._moveCb=function t(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ur,t),n._moveCb=null,At(n,e))})}}))},methods:{hasMove:function(t,e){if(!ar)return!1;if(null!=this._hasMove)return this._hasMove;kt(t,e);var n=Ft(t);return At(t,e),this._hasMove=n.hasTransform}}}};K.config.isUnknownElement=function(t){if(!Ue)return!0;if(Wn(t))return!1;if(t=t.toLowerCase(),null!=$n[t])return $n[t];var e=document.createElement(t);return t.indexOf("-")>-1?$n[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:$n[t]=/HTMLUnknownElement/.test(e.toString())},K.config.isReservedTag=Wn,K.config.getTagNamespace=ct,K.config.mustUseProp=Sn,c(K.options.directives,br),c(K.options.components,Cr),K.prototype.__patch__=He._isServer?p:gr,K.prototype.$mount=function(t,e){return t=t&&!He._isServer?ut(t):void 0,this._mount(t,e)},setTimeout(function(){He.devtools&&Ke&&Ke.emit("init",K)},0);var _r=!!Ue&&function(t,e){var n=document.createElement("div");return n.innerHTML='<div a="'+t+'">',n.innerHTML.indexOf(e)>0}("\n","&#10;"),Er=document.createElement("div"),Br=new RegExp("^\\s*"+/([^\s"'<>\/=]+)/.source+"(?:\\s*("+/(?:=)/.source+")\\s*(?:"+[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source].join("|")+"))?"),Tr="[a-zA-Z_][\\w\\-\\.]*",kr="((?:"+Tr+"\\:)?"+Tr+")",Ar=new RegExp("^<"+kr),Sr=/^\s*(\/?)>/,Fr=new RegExp("^<\\/"+kr+"[^>]*>"),Or=/^<!DOCTYPE [^>]+>/i,Ir=/^<!--/,Mr=/^<!\[/,Dr=!1;"x".replace(/x(.)?/g,function(t,e){Dr=""===e});var Rr,Pr,Nr,Lr,jr,zr,Hr,Wr,$r,Ur,Vr,Yr,Gr,Xr,Jr,qr,Kr,Zr,Qr,to,eo,no,ro=n("script,style",!0),oo=function(t){return"lang"===t.name&&"html"!==t.value},io=function(t,e,n){return!!ro(t)||!(!e||"template"!==t||1!==n.length||!n[0].attrs.some(oo))},ao={},so=/&lt;/g,lo=/&gt;/g,co=/&#10;/g,uo=/&amp;/g,fo=/&quot;/g,po=/\{\{((?:.|\n)+?)\}\}/g,ho=/[-.*+?^${}()|[\]\/\\]/g,mo=a(function(t){var e=t[0].replace(ho,"\\$&"),n=t[1].replace(ho,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),vo=/^v-|^@|^:/,go=/(.*?)\s+(?:in|of)\s+(.*)/,bo=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,yo=/^:|^v-bind:/,xo=/^@|^v-on:/,wo=/:(.*)$/,Co=/\.[^.]+/g,_o=/\u2028|\u2029/g,Eo=a(function(t){return Er.innerHTML=t,Er.textContent}),Bo=/^xmlns:NS\d+/,To=/^NS\d+:/,ko=a(function(t){return n("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}),Ao=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,So={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Fo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},Oo={bind:function(t,e){t.wrapData=function(t){return"_b("+t+","+e.value+(e.modifiers&&e.modifiers.prop?",true":"")+")"}},cloak:p},Io=[(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),{staticKeys:["staticClass"],transformNode:function(t,e){var n=(e.warn,ae(t,"class"));n&&(t.staticClass=JSON.stringify(n));var r=ie(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}}),{transformNode:function(t){var e=ie(t,"style",!1);e&&(t.styleBinding=e)},genData:function(t){return t.styleBinding?"style:("+t.styleBinding+"),":""}}],Mo={model:function(t,e,n){var r=e.value,o=e.modifiers,i=t.tag,a=t.attrsMap.type;return"select"===i?function(t,e,n){var r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})"+(null==t.attrsMap.multiple?"[0]":""),o=Te(e,r);oe(t,"change",o,null,!0)}(t,r,o):"input"===i&&"checkbox"===a?function(t,e,n){var r=n&&n.number,o=ie(t,"value")||"null",i=ie(t,"true-value")||"true",a=ie(t,"false-value")||"false";ee(t,"checked","Array.isArray("+e+")?_i("+e+","+o+")>-1:_q("+e+","+i+")"),oe(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}(t,r,o):"input"===i&&"radio"===a?function(t,e,n){var r=n&&n.number,o=ie(t,"value")||"null";ee(t,"checked","_q("+e+","+(o=r?"_n("+o+")":o)+")"),oe(t,"change",Te(e,o),null,!0)}(t,r,o):function(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,l=i||Ye&&"range"===r?"change":"input",c=!i&&"range"!==r,u="input"===t.tag||"textarea"===t.tag,d=u?"$event.target.value"+(s?".trim()":""):"$event",f=Te(e,d=a||"number"===r?"_n("+d+")":d);u&&c&&(f="if($event.target.composing)return;"+f),ee(t,"value",u?"_s("+e+")":"("+e+")"),oe(t,l,f,null,!0)}(t,r,o),!0},text:function(t,e){e.value&&ee(t,"textContent","_s("+e.value+")")},html:function(t,e){e.value&&ee(t,"innerHTML","_s("+e.value+")")}},Do=Object.create(null),Ro={isIE:Ye,expectHTML:!0,modules:Io,staticKeys:h(Io),directives:Mo,isReservedTag:Wn,isUnaryTag:Ln,mustUseProp:Sn,getTagNamespace:ct,isPreTag:function(t){return"pre"===t}},Po=a(function(t){var e=ut(t);return e&&e.innerHTML}),No=K.prototype.$mount;return K.prototype.$mount=function(t,e){if((t=t&&ut(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Po(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var o=Ae(r,{warn:_n,shouldDecodeNewlines:_r,delimiters:n.delimiters}),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return No.call(this,t,e)},K.compile=Ae,K}()},function(t,e,n){var r;!function(n,o){"use strict";void 0===(r=function(){return n.BotUI=function(t,e){return function(e,n){function r(t,e,n,r){return"<a class='botui-message-content-link' target='"+(r?"blank":"")+"' href='"+n+"'>"+e+"</a>"}function o(t,e){var n=document.createElement("script");n.type="text/javascript",n.src=t,e&&(n.onload=e),document.body.appendChild(n)}function i(t){g.action.addMessage&&p.message.human({delay:100,content:t}),g.action.show=!g.action.autoHide}function a(t){if(!t.loading&&!t.content)throw Error('BotUI: "content" is required in a non-loading message object.');t.type=t.type||"text",t.visible=!t.delay&&!t.loading,t.human&&p.opt.humanPhoto&&(t.humanPhoto=p.opt.humanPhoto),!t.human&&p.opt.botPhoto&&(t.botPhoto=p.opt.botPhoto),t.afterUpdate=!1;var e=g.messages.push(t)-1;return new Promise(function(n,r){setTimeout(function(){t.delay&&(t.visible=!0,t.loading&&(t.loading=!1)),n(e)},t.delay||0)})}function s(t){return"string"==typeof t&&(t={content:t}),t||{}}function l(t){if(!t.action&&!t.actionButton&&!t.actionText)throw Error('BotUI: "action" property is required.')}function c(t){return l(t),function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}({type:"text",cssClass:"",autoHide:!0,addMessage:!0},t),g.action.type=t.type,g.action.cssClass=t.cssClass,g.action.autoHide=t.autoHide,g.action.addMessage=t.addMessage,new Promise(function(e,n){d=e,setTimeout(function(){g.action.show=!0},t.delay||0)})}if(n=n||{},!e)throw Error("BotUI: Container id is required as first argument.");if(!document.getElementById(e))throw Error("BotUI: Element with id #"+e+" does not exist.");if(!t.Vue&&!n.vue)throw Error("BotUI: Vue is required but not found.");var u,d,f={debug:!1,fontawesome:!0,searchselect:!0},p={},h={icon:/!\(([^\)]+)\)/gim,image:/!\[(.*?)\]\((.*?)\)/gim,link:/\[([^\[]+)\]\(([^\)]+)\)(\^?)/gim};for(var m in t.Vue=t.Vue||n.vue,f)n.hasOwnProperty(m)&&(f[m]=n[m]);t.Promise||"undefined"!=typeof Promise||n.promise||o("https://cdn.jsdelivr.net/es6-promise/4.1.0/es6-promise.min.js");var v={template:'<div class="botui botui-container" v-botui-container><div class="botui-messages-container"><div v-for="msg in messages" class="botui-message" :class="msg.cssClass" v-botui-scroll><div v-if="msg.visible"><div v-if="!msg.human && msg.botPhoto"><div v-if="!msg.loading" :class="[\'profil\', {human: msg.human, \'agent\': !msg.human}]"> <img :src="msg.botPhoto"></div></div><div v-if="msg.human && msg.humanPhoto"><div v-if="!msg.loading" :class="[\'profil\', {human: msg.human, \'agent\': !msg.human}]"> <img :src="msg.humanPhoto"></div></div><div v-if="!msg.human && !msg.botPhoto"><div v-if="msg.photo && !msg.loading" :class="[\'profil\', {human: msg.human, \'agent\': !msg.human}]"> <img :class="[{human: msg.human, \'agent\': !msg.human}]"></div></div></div><transition :name="msg.human? \'slide-fade-l2r\':\'slide-fade-r2l\'"><div v-if="msg.visible"><div :class="[{human: msg.human, \'botui-message-content\': true}, msg.type]"><span v-if="msg.type == \'text\'" v-text="msg.content" v-botui-markdown></span><span v-if="msg.type == \'html\'" v-html="msg.content"></span> <iframe v-if="msg.type == \'embed\'" :src="msg.content" frameborder="0" allowfullscreen></iframe></div></div></transition><div v-if="msg.loading"><div v-if="!msg.human && msg.botPhoto"><div :class="[\'profil\', {human: msg.human, \'agent\': !msg.human}]"> <img :src="msg.botPhoto"></div></div><div v-if="msg.human && msg.humanPhoto"><div :class="[\'profil\', {human: msg.human, \'agent\': !msg.human}]"> <img :src="msg.humanPhoto"></div></div><div v-if="!msg.human && !msg.botPhoto"><div v-if="msg.photo" :class="[\'profil\', {human: msg.human, \'agent\': !msg.human}]"> <img :class="[{human: msg.human, \'agent\': !msg.human}]"></div></div></div><div v-if="msg.loading" class="botui-message-content loading"><i class="dot"></i><i class="dot"></i><i class="dot"></i></div></div></div><div class="botui-actions-container"><transition name="slide-fade"><div v-if="action.show" v-botui-scroll><form v-if="action.type == \'text\'" class="botui-actions-text" @submit.prevent="handle_action_text()" :class="action.cssClass"><i v-if="action.text.icon" class="botui-icon botui-action-text-icon fa" :class="\'fa-\' + action.text.icon"></i> <input type="text" ref="input" :type="action.text.sub_type" v-model="action.text.value" class="botui-actions-text-input" :placeholder="action.text.placeholder" :size="action.text.size" :value=" action.text.value" :class="action.text.cssClass" required v-focus/> <button type="submit" :class="{\'botui-actions-buttons-button\': !!action.text.button, \'botui-actions-text-submit\': !action.text.button}"><i v-if="action.text.button && action.text.button.icon" class="botui-icon botui-action-button-icon fa" :class="\'fa-\' + action.text.button.icon"></i> <span>{{(action.text.button && action.text.button.label) || \'Go\'}}</span></button></form><form v-if="action.type == \'select\'" class="botui-actions-select" @submit.prevent="handle_action_select()" :class="action.cssClass"><i v-if="action.select.icon" class="botui-icon botui-action-select-icon fa" :class="\'fa-\' + action.select.icon"></i><v-select v-if="action.select.searchselect && !action.select.multipleselect" v-model="action.select.value" :value="action.select.value" :placeholder="action.select.placeholder" class="botui-actions-text-searchselect" :label="action.select.label" :options="action.select.options"></v-select><v-select v-else-if="action.select.searchselect && action.select.multipleselect" multiple v-model="action.select.value" :value="action.select.value" :placeholder="action.select.placeholder" class="botui-actions-text-searchselect" :label="action.select.label" :options="action.select.options"></v-select> <select v-else v-model="action.select.value" class="botui-actions-text-select" :placeholder="action.select.placeholder" :size="action.select.size" :class="action.select.cssClass" required v-focus><option v-for="option in action.select.options" :class="action.select.optionClass" v-bind:value="option.value" :disabled="(option.value == \'\')?true:false" :selected="(action.select.value == option.value)?\'selected\':\'\'"> {{ option.text }}</option></select> <button type="submit" :class="{\'botui-actions-buttons-button\': !!action.select.button, \'botui-actions-select-submit\': !action.select.button}"><i v-if="action.select.button && action.select.button.icon" class="botui-icon botui-action-button-icon fa" :class="\'fa-\' + action.select.button.icon"></i> <span>{{(action.select.button && action.select.button.label) || \'Ok\'}}</span></button></form><div v-if="action.type == \'button\'" class="botui-actions-buttons" :class="action.cssClass"> <button type="button" :class="button.cssClass" class="botui-actions-buttons-button" v-for="button in action.button.buttons" @click="handle_action_button(button)"><i v-if="button.icon" class="botui-icon botui-action-button-icon fa" :class="\'fa-\' + button.icon"></i> {{button.text}}</button></div><form v-if="action.type == \'buttontext\'" class="botui-actions-text" @submit.prevent="handle_action_text()" :class="action.cssClass"><i v-if="action.text.icon" class="botui-icon botui-action-text-icon fa" :class="\'fa-\' + action.text.icon"></i> <input type="text" ref="input" :type="action.text.sub_type" v-model="action.text.value" class="botui-actions-text-input" :placeholder="action.text.placeholder" :size="action.text.size" :value="action.text.value" :class="action.text.cssClass" required v-focus/> <button type="submit" :class="{\'botui-actions-buttons-button\': !!action.text.button, \'botui-actions-text-submit\': !action.text.button}"><i v-if="action.text.button && action.text.button.icon" class="botui-icon botui-action-button-icon fa" :class="\'fa-paper-plane\' +  action.text.button.icon"></i> <span>{{(action.text.button && action.text.button.label) || \'Go\'}}</span></button><div class="botui-actions-buttons" :class="action.cssClass"> <button type="button" :class="button.cssClass" class="botui-actions-buttons-button" v-for="button in action.button.buttons" @click="handle_action_button(button)" autofocus><i v-if="button.icon" class="botui-icon botui-action-button-icon fa" :class="\'fa-\' + button.icon"></i> {{button.text}}</button></div></form></div></transition></div></div>',data:function(){return{action:{text:{size:30,placeholder:"Write here .."},button:{},show:!1,type:"text",autoHide:!0,addMessage:!0},messages:[]}},computed:{isMobile:function(){return t.innerWidth&&t.innerWidth<=768}},methods:{handle_action_button:function(t){for(var e=0;e<this.action.button.buttons.length;e++)if(this.action.button.buttons[e].value==t.value&&"function"==typeof this.action.button.buttons[e].event){if(this.action.button.buttons[e].event(t),this.action.button.buttons[e].actionStop)return!1;break}i(t.text);var n={type:"button",text:t.text,value:t.value};for(var r in t)t.hasOwnProperty(r)&&"type"!==r&&"text"!==r&&"value"!==r&&(n[r]=t[r]);d(n)},handle_action_text:function(){this.action.text.value&&(i(this.action.text.value),d({type:"text",value:this.action.text.value}),this.action.text.value="")},handle_action_select:function(){if(this.action.select.searchselect&&!this.action.select.multipleselect){if(!this.action.select.value.value)return;i(this.action.select.value[this.action.select.label]),d({type:"text",value:this.action.select.value.value,text:this.action.select.value.text,obj:this.action.select.value})}if(this.action.select.searchselect&&this.action.select.multipleselect){if(!this.action.select.value)return;for(var t=new Array,e=new Array,n=0;n<this.action.select.value.length;n++)t.push(this.action.select.value[n].value),e.push(this.action.select.value[n][this.action.select.label]);i(e.join(", ")),d({type:"text",value:t.join(", "),text:e.join(", "),obj:this.action.select.value})}else{if(!this.action.select.value)return;for(var n=0;n<this.action.select.options.length;n++)this.action.select.options[n].value==this.action.select.value&&(i(this.action.select.options[n].text),d({type:"text",value:this.action.select.value,text:this.action.select.options[n].text}))}}}};t.Vue.directive("botui-markdown",function(t,e){"false"!=e.value&&(t.innerHTML=function(t){return t.replace(h.image,"<img class='botui-message-content-image' src='$2' alt='$1' />").replace(h.icon,"<i class='botui-icon botui-message-content-icon fa fa-$1'></i>").replace(h.link,r)}(t.textContent))}),t.Vue.directive("botui-scroll",{inserted:function(t){var e=document.querySelector(".botui-container");e.scrollTop=e.scrollHeight}}),t.Vue.directive("focus",{inserted:function(t){t.focus()}}),t.Vue.directive("botui-container",{inserted:function(t){t}});var g=(u=new t.Vue({components:{"bot-ui":v}}).$mount("#"+e)).$children[0];return p.message={add:function(t){return a(s(t))},bot:function(t){return a(t=s(t))},human:function(t){return(t=s(t)).human=!0,a(t)},get:function(t){return Promise.resolve(g.messages[t])},remove:function(t){return g.messages.splice(t,1),Promise.resolve()},update:function(t,e){var n=g.messages[t];return n.content=e.content,n.visible=!e.loading,n.loading=!!e.loading,n.afterUpdate=!0,Promise.resolve(e.content)},removeAll:function(){return g.messages.splice(0,g.messages.length),Promise.resolve()}},p.opt={humanPhoto:null,botPhoto:null,setHumanPhoto:function(t){this.humanPhoto=t},setBotPhoto:function(t){this.botPhoto=t}},p.action={show:c,hide:function(){return g.action.show=!1,Promise.resolve()},text:function(t){return l(t),g.action.text=t.action,c(t)},button:function(t){return l(t),t.type="button",g.action.button.buttons=t.action,c(t)},select:function(t){if(l(t),t.type="select",t.action.label=t.action.label||"text",t.action.value=t.action.value||"",t.action.searchselect=void 0!==t.action.searchselect?t.action.searchselect:f.searchselect,t.action.multipleselect=t.action.multipleselect||!1,t.action.searchselect&&"string"==typeof t.action.value)if(t.action.multipleselect){var e=t.action.value.split(",");t.action.value=new Array;for(var n=0;n<t.action.options.length;n++)for(var r=0;r<e.length;r++)t.action.options[n].value==e[r]&&t.action.value.push(t.action.options[n])}else for(var n=0;n<t.action.options.length;n++)t.action.options[n].value==t.action.value&&(t.action.value=t.action.options[n]);return t.action.searchselect||t.action.options.unshift({value:"",text:t.action.placeholder}),g.action.button=t.action.button,g.action.select=t.action,c(t)},buttontext:function(t){return l(t),t.type="buttontext",g.action.button.buttons=t.actionButton,g.action.text=t.actionText,c(t)}},f.fontawesome&&o("https://use.fontawesome.com/ea731dcb6f.js"),f.searchselect&&o("https://unpkg.com/vue-select@2.4.0/dist/vue-select.js",function(){Vue.component("v-select",VueSelect.VueSelect)}),f.debug&&(p._botApp=u),p}}(n)}.apply(e,[]))||(t.exports=r)}("undefined"!=typeof window?window:this)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(43),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(15))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,l=1,c={},u=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,r=function(t){var e=d.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return c[l]=o,r(l),l++},f.clearImmediate=p}function p(t){delete c[t]}function h(t){if(u)setTimeout(h,0,t);else{var e=c[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{p(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(15),n(44))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";n(46);var r=n(4),o=n(17),i=n(3),a=/./.toString,s=function(t){n(5)(RegExp.prototype,"toString",t,!0)};n(6)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(t,e,n){n(3)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(17)})},function(t,e,n){t.exports=!n(3)&&!n(6)(function(){return 7!=Object.defineProperty(n(27)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(16);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=n(19)("native-function-to-string",Function.toString)},function(t,e,n){"use strict";var r=n(51)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(11),o=n(10);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):i:t?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(32),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(54);var r=n(5),o=n(2),i=n(6),a=n(10),s=n(0),l=n(34),c=s("species"),u=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!i(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),h=p?!i(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!d){var m=/./[f],v=n(a,f,""[t],function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),g=v[0],b=v[1];r(String.prototype,t,g),o(RegExp.prototype,f,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},function(t,e,n){"use strict";var r=n(34);n(21)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){var r=n(56);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){for(var r=n(35),o=n(24),i=n(5),a=n(1),s=n(2),l=n(22),c=n(0),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),m=0;m<h.length;m++){var v,g=h[m],b=p[g],y=a[g],x=y&&y.prototype;if(x&&(x[u]||s(x,u,f),x[d]||s(x,d,g),l[g]=f,b))for(v in r)x[v]||i(x,v,r[v],!0)}},function(t,e,n){var r=n(0)("unscopables"),o=Array.prototype;null==o[r]&&n(2)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(29),o=n(21),i=n(5),a=n(2),s=n(22),l=n(62),c=n(37),u=n(69),d=n(0)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,h,m,v,g){l(n,e,h);var b,y,x,w=function(t){if(!f&&t in B)return B[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",_="values"==m,E=!1,B=t.prototype,T=B[d]||B["@@iterator"]||m&&B[m],k=T||w(m),A=m?_?w("entries"):k:void 0,S="Array"==e&&B.entries||T;if(S&&(x=u(S.call(new t)))!==Object.prototype&&x.next&&(c(x,C,!0),r||"function"==typeof x[d]||a(x,d,p)),_&&T&&"values"!==T.name&&(E=!0,k=function(){return T.call(this)}),r&&!g||!f&&!E&&B[d]||a(B,d,k),s[e]=k,s[C]=p,m)if(b={values:_?k:w("values"),keys:v?k:w("keys"),entries:A},g)for(y in b)y in B||i(B,y,b[y]);else o(o.P+o.F*(f||E),e,b);return b}},function(t,e,n){"use strict";var r=n(63),o=n(28),i=n(37),a={};n(2)(a,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(4),o=n(64),i=n(36),a=n(25)("IE_PROTO"),s=function(){},l=function(){var t,e=n(27)("iframe"),r=i.length;for(e.style.display="none",n(68).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[i[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(7),o=n(4),i=n(24);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,l=0;s>l;)r.f(t,n=a[l++],e[n]);return t}},function(t,e,n){var r=n(8),o=n(23),i=n(66)(!1),a=n(25)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(23),o=n(31),i=n(67);t.exports=function(t){return function(e,n,a){var s,l=r(e),c=o(l.length),u=i(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(11),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(8),o=n(20),i=n(25)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(32),o={};o[n(0)("toStringTag")]="z",o+""!="[object z]"&&n(5)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(20),o=n(24);n(72)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(21),o=n(9),i=n(6);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(74);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(13)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,'/*\n * botui 0.3.7\n * A JS library to build the UI for your bot\n * https://botui.org\n *\n * Copyright 2019, Moin Uddin\n * Released under the MIT license.\n*/\n\na.botui-message-content-link:focus{outline:thin dotted}a.botui-message-content-link:focus:active,a.botui-message-content-link:focus:hover{outline:0}form.botui-actions-text{margin:0}button.botui-actions-buttons-button,input.botui-actions-text-input{margin:0;font-size:100%;line-height:normal;vertical-align:baseline}button.botui-actions-buttons-button::-moz-focus-inner,input.botui-actions-text-input::-moz-focus-inner{border:0;padding:0}button.botui-actions-buttons-button{cursor:pointer;-webkit-appearance:button}\n.botui-app-container{width:100%;height:100%;margin:0 auto}.botui-container{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.botui-message{margin:10px 0;min-height:20px}.botui-message:after{display:block;content:"";clear:both}.botui-message-content{width:auto;max-width:75%;display:inline-block}.botui-message-content.human{float:right}.botui-message-content iframe{width:100%}.botui-message-content-image{margin:5px 0;display:block;max-width:200px;max-height:200px}.botui-message-content-link{text-decoration:underline}.profil{position:relative;border-radius:50%}.profil.human{float:right;margin-left:5px}.profil.agent{float:left;margin-right:5px}.profil>img{border-radius:50%;width:26px;height:26px;border:0}.profil>img.agent{content:url(http://decodemoji.com/img/logos/blue_moji_hat.svg)}button.botui-actions-buttons-button{margin-top:10px;margin-bottom:10px}button.botui-actions-buttons-button:not(:last-child){margin-right:10px}',""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,n){var r=n(77);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(13)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(12)(!1)).push([t.i,"@import url(https://fonts.googleapis.com/css?family=Open+Sans);",""]),e.push([t.i,'/*\n  Default theme for BotUI\n*/\n.botui-container {\n  font-size: 14px;\n  background-color: #fff;\n  font-family: "Open Sans", sans-serif; }\n\n.botui-messages-container {\n  padding: 10px 20px; }\n\n.botui-actions-container {\n  padding: 10px 20px; }\n\n.botui-message {\n  min-height: 30px; }\n\n.botui-message-content {\n  padding: 7px 13px;\n  border-radius: 15px;\n  color: #595a5a;\n  background-color: #ebebeb; }\n  .botui-message-content.human {\n    color: #f7f8f8;\n    background-color: #919292; }\n  .botui-message-content.text {\n    line-height: 1.3; }\n  .botui-message-content.loading {\n    background-color: rgba(206, 206, 206, 0.5);\n    line-height: 1.3;\n    text-align: center; }\n  .botui-message-content.embed {\n    padding: 5px;\n    border-radius: 5px; }\n\n.botui-message-content-link {\n  color: #919292; }\n\n.botui-actions-text-input {\n  border: 0;\n  outline: none;\n  border-radius: 0;\n  padding: 5px 7px;\n  font-family: "Open Sans", sans-serif;\n  background-color: transparent;\n  color: #595a5a;\n  border-bottom: 1px solid #919292; }\n\n.botui-actions-text-submit {\n  color: #fff;\n  width: 30px;\n  padding: 5px;\n  height: 30px;\n  line-height: 1;\n  border-radius: 50%;\n  border: 1px solid #919292;\n  background: #777979; }\n\n.botui-actions-buttons-button {\n  border: 0;\n  color: #fff;\n  line-height: 1;\n  cursor: pointer;\n  font-size: 14px;\n  font-weight: 500;\n  padding: 7px 15px;\n  border-radius: 4px;\n  font-family: "Open Sans", sans-serif;\n  background: #777979;\n  box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, 0.25); }\n\n.botui-actions-text-select {\n  border: 0;\n  outline: 0;\n  border-radius: 0;\n  padding: 5px 7px;\n  font-family: "Open Sans",sans-serif;\n  background-color: transparent;\n  color: #595a5a;\n  border-bottom: 1px solid #919292; }\n\n.botui-actions-text-searchselect {\n  border: 0;\n  outline: 0;\n  border-radius: 0;\n  padding: 5px 7px;\n  font-family: "Open Sans",sans-serif;\n  background-color: transparent;\n  color: #595a5a;\n  border-bottom: 1px solid #919292; }\n\n.botui-actions-text-searchselect .dropdown-toggle {\n  border: none !important; }\n\n.botui-actions-text-searchselect .selected-tag {\n  background-color: transparent !important;\n  border: 0 !important; }\n\n/*\n  Animation of messages\n  For details on how to change, see: https://vuejs.org/v2/guide/transitions.html\n*/\n.slide-fade-enter-active {\n  transition: all .3s ease; }\n\n.slide-fade-enter,\n.slide-fade-leave-to {\n  opacity: 0;\n  transform: translateX(-10px); }\n\n/*\n  Animation of loading dots\n*/\n.dot {\n  width: .5rem;\n  height: .5rem;\n  border-radius: .5rem;\n  display: inline-block;\n  background-color: #919292; }\n  .dot:nth-last-child(1) {\n    margin-left: .3rem;\n    animation: loading .6s .3s linear infinite; }\n  .dot:nth-last-child(2) {\n    margin-left: .3rem;\n    animation: loading .6s .2s linear infinite; }\n  .dot:nth-last-child(3) {\n    animation: loading .6s .1s linear infinite; }\n\n@keyframes loading {\n  0% {\n    transform: translate(0, 0);\n    background-color: #ababab; }\n  25% {\n    transform: translate(0, -3px); }\n  50% {\n    transform: translate(0, 0px);\n    background-color: #ababab; }\n  75% {\n    transform: translate(0, 3px); }\n  100% {\n    transform: translate(0, 0px); } }\n',""])},function(t,e,n){var r=n(79);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(13)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(12)(!1)).push([t.i,"@import url(https://fonts.googleapis.com/css?family=Open+Sans);",""]),e.push([t.i,'/*\n  Default theme for BotUI\n*/\n\n\n\n\n.botui-container {\n    font-size: 14px;\n    background-color: #d7dbe4;\n    font-family: "Open Sans", sans-serif;\n}\n\n.botui-messages-container {\n    padding: 5px 10px;\n}\n\n.botui-actions-container {\n    padding: 5px 10px;\n}\n\n.botui-message {\n    min-height: 30px;\n}\n\n.botui-message-content {\n    padding: 7px 13px;\n    border-radius: 15px;\n    color: #314141;\n    background-color: #fff;\n}\n\n.botui-message-content.human {\n    color: #f8f8f8;\n    background-color: #36415d;\n}\n\n.botui-message-content.text {\n    line-height: 1.3;\n}\n\n.botui-message-content.loading {\n    background-color: rgba(255, 255, 255, 0.8);\n    line-height: 1.3;\n    text-align: center;\n}\n\n.botui-message-content.embed {\n    padding: 5px;\n    border-radius: 5px;\n}\n\n.botui-message-content-link {\n    color: #919292;\n}\n\n.botui-actions-text-input {\n    border: 0;\n    outline: none;\n    border-radius: 0;\n    padding: 5px 7px;\n    font-family: "Open Sans", sans-serif;\n    background-color: transparent;\n    color: #595a5a;\n    width: 70%;\n    border-bottom: 1px solid #919292;\n}\n\n.botui-actions-text-submit {\n    color: #314141;\n    width: 40px;\n    padding: 5px;\n    height: 30px;\n    line-height: 1;\n    border-radius: 10%;\n    border: 1px solid #36415d;\n    background: #fff;\n}\n\n.botui-actions-buttons-button {\n    border: 0;\n    color: #36415d;\n    line-height: 1;\n    cursor: pointer;\n    font-size: 14px;\n    font-weight: 500;\n    padding: 7px 15px;\n    border-radius: 4px;\n    font-family: "Open Sans", sans-serif;\n    background: #ffffff;\n    border: 1px solid #36415d;\n    box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, 0.25);\n}\n\n.botui-actions-text-select {\n    border: 0;\n    outline: 0;\n    border-radius: 0;\n    padding: 5px 7px;\n    font-family: "Open Sans", sans-serif;\n    background-color: transparent;\n    color: #595a5a;\n    border-bottom: 1px solid #919292;\n}\n\n.botui-actions-text-searchselect {\n    border: 0;\n    outline: 0;\n    border-radius: 0;\n    padding: 5px 7px;\n    font-family: "Open Sans", sans-serif;\n    background-color: transparent;\n    color: #595a5a;\n    border-bottom: 1px solid #919292;\n}\n\n.botui-actions-text-searchselect .dropdown-toggle {\n    border: none !important;\n}\n\n.botui-actions-text-searchselect .selected-tag {\n    background-color: transparent !important;\n    border: 0 !important;\n}\n\n/*\n  Animation of messages\n  For details on how to change, see: https://vuejs.org/v2/guide/transitions.html\n*/\n.slide-fade-enter-active {\n    transition: all .3s ease;\n}\n\n.slide-fade-enter,\n.slide-fade-leave-to {\n    opacity: 0;\n    transform: translateX(-10px);\n}\n\n.slide-fade-l2r-enter-active {\n    transition: all .3s ease;\n}\n\n.slide-fade-l2r-enter,\n.slide-fade-l2r-leave-to {\n    opacity: 0;\n    transform: translateX(10px);\n}\n\n.slide-fade-r2l-enter-active {\n    transition: all .3s ease;\n}\n\n.slide-fade-r2l-enter,\n.slide-fade-r2l-leave-to {\n    opacity: 0;\n    transform: translateX(-10px);\n}\n\n/*\n  Animation of loading dots\n*/\n.dot {\n    width: .5rem;\n    height: .5rem;\n    border-radius: .5rem;\n    display: inline-block;\n    background-color: #cccccc;\n}\n\n.dot:nth-last-child(1) {\n    margin-left: .3rem;\n    animation: loading .6s .3s linear infinite;\n}\n\n.dot:nth-last-child(2) {\n    margin-left: .3rem;\n    animation: loading .6s .2s linear infinite;\n}\n\n.dot:nth-last-child(3) {\n    animation: loading .6s .1s linear infinite;\n}\n\n@keyframes loading {\n    0% {\n        transform: translate(0, 0);\n        background-color: #ababab;\n    }\n    25% {\n        transform: translate(0, -3px);\n    }\n    50% {\n        transform: translate(0, 0px);\n        background-color: #ababab;\n    }\n    75% {\n        transform: translate(0, 3px);\n    }\n    100% {\n        transform: translate(0, 0px);\n    }\n}\n',""])},function(t,e,n){var r=n(81);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(13)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,'\n.chatux-sp {\n    height: 100vh;\n}\n\n.chatux-btn-chat-pc {\n    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n\n.chatux-btn-chat {\n    box-shadow: 2px 3px 6px rgba(0, 0, 0, .4);\n    border-radius: 50%;\n    text-align: center;\n    vertical-align: middle;\n    position: fixed;\n    color: #fff;\n    background-color: #007bff;\n    border-color: #007bff;\n    transition: transform 0.2s linear, opacity 0.3s;\n    transform: scale(0.9);\n    opacity: 0;\n}\n\n.chatux-btn-chat:hover {\n    color: #fff;\n    background-color: #0069d9;\n    border-color: #0062cc;\n    transform: scale(1.0);\n\n}\n\n.chatux-btn-on {\n    opacity: 1;\n}\n\n.chatux-scrn-on {\n    transition: transform 0.2s linear, opacity 0.3s;\n    transform: scale(1.0);\n    opacity: 1;\n}\n\n.chatux-scrn-off {\n    transition: transform 0.2s linear, opacity 0.3s;\n    transform: scale(0.0);\n    opacity: 0;\n}',""])},function(t,e,n){"use strict";n.r(e);var r=n(26),o=n(38),i=n(39),a=n(14),s=n(40),l=n.n(s);n(45),n(30),n(57),n(35),n(70),n(71);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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)}}function d(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}var f=function(){function t(){c(this,t)}return d(t,[{key:"ajax",value:function(t){var e=this._createUrl(t),n=t.type,r=t.dataType,o=t.data,i=t.headers,a=null;if("POST"===n&&(a=JSON.stringify(o),"jsonp"===r))throw new Error("type:'POST' and 'dataType:jsonp' are specified together.\n                'POST' and 'jsonp' can not be specified together");if(i&&"jsonp"===r)throw new Error("'headers' and 'dataType:jsonp' can not be specified together.\n           Http headers cannot be sent when using jsonp.");var s={url:e,method:n,body:a};if(i&&(s.headers=i),"json"===r)return this._handleJson(s);if("jsonp"===r)return this._handleJsonp(s);throw new Error("dataType must be 'json' or 'jsonp'")}},{key:"_handleJson",value:function(t){var e=new p,n={method:t.method,mode:"cors",cache:"no-cache"};return t.credentials&&(n.credentials=t.credentials),t.headers?n.headers=t.headers:n.headers={"Content-Type":"application/json; charset=utf-8"},t.body&&(n.body=t.body),fetch(t.url,n).then(function(t){if(t.ok)return t.json();var n=t.statusText;e._fail(n)}).then(function(t){e._success(t)}).catch(function(t){var n=t;e._fail(n)}),e}},{key:"_handleJsonp",value:function(t){var e=new p,n=document.createElement("script"),r="chatux_".concat(this._createUUID());return n.src="".concat(t.url,"&callback=").concat(r),n.addEventListener("error",function(t){e._fail(t)}),window[r]=function(t){delete window[r],e._success(t)},(document.getElementsByTagName("head")?document.getElementsByTagName("head")[0]:document.body).appendChild(n),e}},{key:"_createUrl",value:function(t){if("POST"===t.type)return t.url;var e=t.url;if(t.data){e+="?";for(var n=0,r=Object.keys(t.data);n<r.length;n++){var o=r[n],i=t.data[o];e+="".concat(o,"=").concat(i,"&")}e=e.substring(0,e.length-1)}return e}},{key:"_createUUID",value:function(){var t=(new Date).getTime();return"xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return("x"==e?n:3&n|8).toString(16)})}}]),t}(),p=function(){function t(){c(this,t),this._successFunc=function(){},this._failFunc=function(){}}return d(t,[{key:"done",value:function(t){return this._successFunc=t,this}},{key:"fail",value:function(t){return this._failFunc=t,this}},{key:"_success",value:function(t){this._successFunc&&this._successFunc(t)}},{key:"_fail",value:function(t){this._failFunc&&this._failFunc(t)}}]),t}();function h(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)}}var m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.endpoint=e.endpoint,this.method="GET",e.method&&(this.method=e.method),this.dataType="json",e.dataType&&(this.dataType=e.dataType),this.errorResponse={output:[{type:"text",value:"An error occurred."}]},e.errorResponse&&(this.errorResponse=e.errorResponse),e.headers&&(this.headers=e.headers),e.params&&(this.params=e.params)}var e,n,r;return e=t,(n=[{key:"sendMsgToChatServer",value:function(t){var e,n=this,r=new f;e=this.params?this.params:{},r.ajax({type:this.method,url:this.endpoint,dataType:this.dataType,data:e,headers:this.headers}).done(function(e){t(e)}).fail(function(e){var r=n.errorResponse;t(r)})}}])&&h(e.prototype,n),r&&h(e,r),t}(),v=n(41),g=n.n(v);function b(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)}}var y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.opts=e,this.isStarted=!1,this.botui=null,this.botInfo=e.botInfo,this.botInfo.widget||(this.botInfo.widget={sendLabel:"SEND",placeHolder:"Please input text."})}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){this.botui||(this.botui=new g.a(this.opts.holderId,{vue:this.opts.vue}),this.opts&&(this.opts.api?this.chatClient=new m(this.opts.api):this.chatClient=new m,this.botInfo.botPhoto&&this.botui.opt.setBotPhoto(this.botInfo.botPhoto),this.botInfo.humanPhoto&&this.botui.opt.setHumanPhoto(this.botInfo.humanPhoto)))}},{key:"startChatbot",value:function(t){this.isStarted||(this.isStarted=!0,t?this.handleUserInput({value:t}):this.showInputPrompt())}},{key:"showInputPrompt",value:function(){this.botui.action.text({action:{button:{label:this.botInfo.widget.sendLabel},placeholder:this.botInfo.widget.placeHolder}}).then(this.handleUserInput.bind(this))}},{key:"handleUserInput",value:function(t){var e=this;if(this.botui){if(this.opts.methods)if(this.opts.methods.onUserInput)if(this.opts.methods.onUserInput(t.value))return;setTimeout(function(){e.botui.message.add({photo:!0,loading:!0}).then(function(n){if(e.opts.methods&&e.opts.methods.onServerProcess){var r=e.opts.methods.onServerProcess(t.value);e.handleChatServerResponse(r,n)}else e.chatClient.params||(e.chatClient.params={}),e.chatClient.params.text=t.value,e.opts.methods&&e.opts.methods.onPrepareRequest&&e.opts.methods.onPrepareRequest(e.chatClient),e.chatClient.sendMsgToChatServer(function(t){e.handleChatServerResponse(t,n),e.opts.methods&&e.opts.methods.onFinishRequest&&e.opts.methods.onFinishRequest(e.chatClient)})})},500)}}},{key:"handleChatServerResponse",value:function(t,e){var n=this;if(this.botui){this.opts.methods&&this.opts.methods.onServerResponse&&(t=this.opts.methods.onServerResponse(t));var r=this.opts.msgInterval?this.opts.msgInterval:500,o=t.output,i=!1,a=0,s=function(t){var s=o[t],l=s.type;if(a+=r,s.delayMs&&(a+=s.delayMs),"text"==l)0==t?n.botui.message.update(e,{loading:!1,photo:!0,content:s.value}):n.botui.message.add({delay:a,photo:!0,content:s.value});else if("image"==l){var c="![image]("+s.value+")";n.handleContent(t,e,null,c,a)}else if("youtube"==l){var u=s.value,d='<iframe src="https://www.youtube.com/embed/'.concat(u,'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>');n.handleContent(t,e,"embed",d,a)}else if("embed"==l){var f=s.value;n.handleContent(t,e,"embed",f,a)}else if("html"==l){var p=s.value;n.handleContent(t,e,"html",p,a)}else if("window"==l&&n.opts.parent&&"pc"===n.opts.parent.getRenderMode()){var h=a;if(h||(h=1),n.opts.parent){var m=function(t){setTimeout(function(){n.opts.parent.createWindowFromServerMessage(s),t&&t()},h)};0==t?n.botui.message.remove(e).then(function(){m()}):m()}}else if("window"==l&&n.opts.parent&&"mobile"===n.opts.parent.getRenderMode()){var v=null,g=null;s.url||s.mobileUrl?(s.url&&(g="".concat(s.url),v='<a href="'.concat(s.url,'" target="_blank">').concat(g,"</a>")),s.mobileUrl&&(g="".concat(s.mobileUrl),v='<a href="'.concat(s.mobileUrl,'" target="_blank">').concat(g,"</a>")),s.title&&(g=s.title),n.handleContent(t,e,"html",v,a)):(v=s.html?s.html:"No data",n.handleContent(t,e,"html",v,a))}else if("option"==l){var b=s.options;"".length>0&&(0==t?n.botui.message.update(e,{loading:!1,delay:a,photo:!0,content:""}):n.botui.message.add({delay:a,photo:!0,content:""}));var y=new Array;for(var x in b){var w=b[x],C=w.label,_=w.value;y.push({text:C,value:_})}i=!0,0==t?n.botui.message.remove(e).then(function(){return n.botui.action.button({autoHide:!0,delay:a,action:y})}).then(n.handleUserInput.bind(n)):n.botui.action.button({autoHide:!0,delay:a,action:y}).then(n.handleUserInput.bind(n))}};for(var l in o)s(l);i||this.showInputPrompt()}}},{key:"handleContent",value:function(t,e,n,r,o){0==t?this.botui.message.update(e,{type:n,loading:!1,photo:!0,content:r}):this.botui.message.add({type:n,delay:o,photo:!0,content:r})}}])&&b(e.prototype,n),r&&b(e,r),t}();function x(){var t=navigator.userAgent;return t.indexOf("iPhone")>0||t.indexOf("iPod")>0||t.indexOf("Android")>0&&t.indexOf("Mobile")>0||(t.indexOf("iPad")>0||t.indexOf("Android")>0)}function w(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)}}var C=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),
    this.ICON_CROSSMARK='<i class="fas fa-ambulance"></i>',
      this.ICON_COMMENT='<i class="fab fa-accessible-icon"></i>',e||(e={}),this.renderMode=this.isMobileDevice()?"mobile":"pc",e.renderMode&&("auto"===e.renderMode||(this.renderMode=e.renderMode)),this.windowParam={},e.window&&(this.windowParam=e.window),this.jsFrame=new a.JSFrame({horizontalAlign:"right",verticalAlign:"bottom"}),this.frameParam={right:20,bottom:20,size:60,fontSize:25},e.wakeupButton&&(this.frameParam=e.wakeupButton),this.windowSizeParam={width:360,height:600,minHeight:300,minWidth:200,titleHeight:40},this.windowParam.size&&(this.windowSizeParam=this.windowParam.size),this.appearanceParam={border:{shadow:"2px 2px 10px  rgba(0, 0, 0, 0.5)",width:0,radius:6},titleBar:{color:"white",background:"#4784d4",leftMargin:this.windowParam.infoUrl?40:10,height:this.windowSizeParam.titleHeight,fontSize:14,buttonWidth:36,buttonHeight:16,buttonColor:"white",
      buttons:[{fa:"fas fa-comment-alt",name:"hideButton",visible:!0}],
      buttonsOnLeft:[{fa:"fas fa-times",name:"info",visible:!!this.windowParam.infoUrl}]}},this.windowParam.appearance&&(this.appearanceParam=this.windowParam.appearance),this.FRAME_NAME="chat_window",this.BUTTON_STATE_OPEN="open_chat_window",this.BUTTON_STATE_TRANSITION="transition",this.BUTTON_STATE_CLOSE="close_chat_window",this.BUTTON_ID="chat_wakeup",this.buttonOffWhenOpenFrame=!1,this.buttonState=null,this.buttonVanishPoint={},this.frame=null,this.showChatBtn=null,this.chatAreaEle=null,this.onChatFrameCreate=function(){},this.onChatFramePause=function(){},this.onChatFrameResume=function(){},this.holderId=""}var e,n,r;return e=t,(n=[{key:"buildChatButton",value:function(){var t=this.frameParam,e=t.right,n=t.bottom,r=t.size,o=t.fontSize,i=document.createElement("div");this.showChatBtn=i,i.id=this.BUTTON_ID,"mobile"===this.renderMode?i.className="chatux-btn-chat":i.className="chatux-btn-chat chatux-btn-chat-pc",i.onclick=this.toggleChatButtonState.bind(this);var a=i.style;a.right=e+"px",a.bottom=n+"px",a.width=r+"px",a.height=a.width,a.lineHeight=a.width,a.fontSize=o+"px",document.body.appendChild(i),this.toggleChatButtonState()}},{key:"toggleChatButtonState",value:function(){var t=this,e=document.querySelector("#".concat(this.BUTTON_ID));this.buttonState?this.buttonState===this.BUTTON_STATE_OPEN?(this.buttonState=this.BUTTON_STATE_TRANSITION,this.show(function(){t.buttonOffWhenOpenFrame&&"pc"===t.renderMode?t.setChatButtonVisible(!1):e.innerHTML=t.ICON_CROSSMARK,t.buttonState=t.BUTTON_STATE_CLOSE})):this.buttonState===this.BUTTON_STATE_TRANSITION||(this.buttonState=this.BUTTON_STATE_TRANSITION,this.hide(function(){t.buttonOffWhenOpenFrame&&"pc"===t.renderMode?t.setChatButtonVisible(!0):e.innerHTML=t.ICON_COMMENT,t.buttonState=t.BUTTON_STATE_OPEN})):(e.innerHTML=this.ICON_COMMENT,this.buttonState=this.BUTTON_STATE_OPEN)}},{key:"show",value:function(t){var e=this;"mobile"===this.renderMode?(this.chatAreaEle&&this.chatAreaEle.classList.replace("chatux-scrn-off","chatux-scrn-on"),t&&t(),this.onChatFrameResume()):this.jsFrame.getWindowByName(this.FRAME_NAME).control.doDehide({callback:function(n,r){t&&t(),e.onChatFrameResume(n)}})}},{key:"hide",value:function(t){var e=this;"mobile"===this.renderMode?(this.chatAreaEle&&this.chatAreaEle.classList.replace("chatux-scrn-on","chatux-scrn-off"),t&&t(),this.onChatFramePause()):this.jsFrame.getWindowByName(this.FRAME_NAME).control.doHide({offset:this.buttonVanishPoint,align:"ABSOLUTE",callback:function(n,r){t&&t(),e.onChatFramePause(n)}})}},{key:"setChatButtonVisible",value:function(t){var e=document.querySelector("#".concat(this.BUTTON_ID));t?e.classList.add("chatux-btn-on"):e.classList.remove("chatux-btn-on")}},{key:"buildChatArea",value:function(){this.chatAreaEle=document.createElement("div"),document.body.appendChild(this.chatAreaEle),this.initializeChatArea()}},{key:"initializeChatArea",value:function(){this.chatAreaEle.style.position="fixed",this.chatAreaEle.style.left="0px",this.chatAreaEle.style.top="0px",this.chatAreaEle.style.bottom="0px",this.chatAreaEle.style.right="0px",this.chatAreaEle.style.backgroundColor="transparent",this.chatAreaEle.style.display="flex",this.chatAreaEle.classList.add("chatux-scrn-off"),this.chatAreaEle.innerHTML=this.getBotUiInnterHtml()}},{key:"getBotUiInnterHtml",value:function(){return'<div class="botui-app-container" id="'.concat(this.holderId,'"><bot-ui></bot-ui></div>')}},{key:"buildChatWindow",value:function(){var t=this,e=this.frameParam,n=this.windowSizeParam,r=n.width,o=n.height,i=n.minHeight,a=n.minWidth,s=n.titleHeight,l=-(e.right+r),c=-(e.bottom+e.size+o);this.buttonVanishPoint={x:l+r,y:c+o-s},this.frame=this.jsFrame.create({name:this.FRAME_NAME,title:this.windowParam.title,left:l,top:c,width:r,height:o,minWidth:a,minHeight:i,appearanceName:"material",appearanceParam:this.appearanceParam,style:{backgroundColor:"rgba(255,255,255,1.0)",overflow:"auto"},html:""}),this.frame.setControl({animation:!0,animationDuration:200}),this.frame.on("hideButton","click",function(e,n){t.toggleChatButtonState()}),this.frame.on("info","click",function(e,n){t.windowParam.infoUrl&&window.open(t.windowParam.infoUrl,"_blank")}),this.frame.control.doHide({silent:!0,duration:0,align:"ABSOLUTE",offset:this.buttonVanishPoint,callback:function(e,n){t.onChatFrameCreate(e)}})}},{key:"build",value:function(t,e){this.holderId=t,"mobile"===this.renderMode?(this.buildChatArea(),this.buildChatButton(),this.onChatFrameCreate()):(this.buildChatWindow(),this.frame.setHTML(this.getBotUiInnterHtml()),this.buildChatButton()),this.setChatButtonVisible(!0)}},{key:"clear",value:function(){document.body.contains(this.chatAreaEle)&&document.body.removeChild(this.chatAreaEle),document.body.contains(this.showChatBtn)&&document.body.removeChild(this.showChatBtn),this.frame&&this.frame.closeFrame()}},{key:"isMobileDevice",value:function(){return x()}}])&&w(e.prototype,n),r&&w(e,r),t}();n(73),n(76),n(78),n(80);function _(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)}}r.b.add(o.faTimes,i.faCommentAlt),r.a.watch();var E=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&this.init(e),this.autoOpen=!1}var e,n,r;return e=t,(n=[{key:"init",value:function(t){var e=this;this.holderEleId="my-chat-bot",this.ui=null,this.chatFrame=null;var n=t.bot;n||(n={});var r=t.window;r||(r={});var o=t.wakeupButton,i=t.methods;i||(i={}),this.ui=new y({holderId:this.holderEleId,botInfo:n,vue:l.a,api:t.api,methods:i,parent:this}),this.chatFrame=new C({renderMode:t.renderMode,window:r,wakeupButton:o}),this.chatFrame.buttonOffWhenOpenFrame=t.buttonOffWhenOpenFrame,this.chatFrame.onChatFrameCreate=function(n){e.ui.initialize(),(t.open||e.autoOpen)&&e.chatFrame.toggleChatButtonState(),i.onChatWindowCreate&&i.onChatWindowCreate(n)},this.chatFrame.onChatFrameResume=function(t){n.wakeupText?e.ui.startChatbot(n.wakeupText):e.ui.startChatbot(),i.onChatWindowResume&&i.onChatWindowResume(t)},this.chatFrame.onChatFramePause=function(t){i.onChatWindowPause&&i.onChatWindowPause(t)}}},{key:"getRenderMode",value:function(){return this.chatFrame.renderMode}},{key:"createWindowFromServerMessage",value:function(t){var e=this,n=this.chatFrame.jsFrame;this.jsFrame||(this.jsFrame=new a.JSFrame({horizontalAlign:"left",verticalAlign:"top",fixed:!1})),document.onmouseup=function(t){n.windowManager.windowMouseUp(t),e.jsFrame.windowManager.windowMouseUp(t)},document.onmousemove=function(t){n.windowManager.windowMouseMove(t),e.jsFrame.windowManager.windowMouseMove(t)};var r=this.chatFrame.frame,o=this.chatFrame.appearanceParam;o.titleBar.leftMargin="10px",o.titleBar.buttonsOnLeft[0].visible=!1;r.getPosition(),window.innerWidth;var i=t.width?t.width:400,s=t.height?t.height:400,l=t.left?t.left:32,c=t.addYOffset,u=t.top?t.top+(c?parseInt(window.pageYOffset):0):32+(c?parseInt(window.pageYOffset):0),d=t.backgroundColor?t.backgroundColor:"rgba(255,255,255,1.0)",f=t.overflow?t.overflow:"auto",p=this.jsFrame.create({name:"new",title:t.title?t.title:"",left:l,top:u,width:i,height:s,minWidth:100,minHeight:100,appearanceName:"material",appearanceParam:o,style:{backgroundColor:d,overflow:f},url:t.url,html:t.html});p.on("hideButton","click",function(t,e){p.closeFrame()}),p.show()}},{key:"start",value:function(t){t&&(this.autoOpen=t),this.chatFrame.build(this.holderEleId)}},{key:"dispose",value:function(){this.chatFrame.clear()}},{key:"isMobileDevice",value:function(){return x()}}])&&_(e.prototype,n),r&&_(e,r),t}();n.d(e,"ChatUx",function(){return E})}])});
  