@konfuzio/document-validation-ui 0.1.30-dev.0 → 0.1.30-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (self["webpackChunk_konfuzio_document_validation_ui"]=self["webpackChunk_konfuzio_document_validation_ui"]||[]).push([[998],{810:(t,e,n)=>{"use strict";n.d(e,{GN:()=>A});var i=n(636);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function 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},o(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function l(t,e){if(null==t)return{};var n,i,r=c(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t){return h(t)||d(t)||f(t)||v()}function h(t){if(Array.isArray(t))return p(t)}function d(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},g={exports:{}};(function(t){(function(e){var n=function(t,e,i){if(!l(e)||h(e)||d(e)||f(e)||c(e))return e;var r,a=0,o=0;if(u(e))for(r=[],o=e.length;a<o;a++)r.push(n(t,e[a],i));else for(var s in r={},e)Object.prototype.hasOwnProperty.call(e,s)&&(r[t(s,i)]=n(t,e[s],i));return r},i=function(t,e){e=e||{};var n=e.separator||"_",i=e.split||/(?=[A-Z])/;return t.split(i).join(n)},r=function(t){return p(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,(function(t,e){return e?e.toUpperCase():""})),t.substr(0,1).toLowerCase()+t.substr(1))},a=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},o=function(t,e){return i(t,e).toLowerCase()},s=Object.prototype.toString,c=function(t){return"function"===typeof t},l=function(t){return t===Object(t)},u=function(t){return"[object Array]"==s.call(t)},h=function(t){return"[object Date]"==s.call(t)},d=function(t){return"[object RegExp]"==s.call(t)},f=function(t){return"[object Boolean]"==s.call(t)},p=function(t){return t-=0,t===t},v=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!==typeof n?t:function(e,i){return n(e,t,i)}},m={camelize:r,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(t,e){return n(v(r,e),t)},decamelizeKeys:function(t,e){return n(v(o,e),t,e)},pascalizeKeys:function(t,e){return n(v(a,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=m:e.humps=m})(m)})(g);var y=g.exports,b=["class","style","attrs"];function _(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.indexOf(":"),i=y.camelize(e.slice(0,n)),r=e.slice(n+1).trim();return t[i]=r,t}),{})}function w(t){return t.split(/\s+/).reduce((function(t,e){return t[e]=!0,t}),{})}function k(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return Array.isArray(e)?t=t.concat(e):t.push(e),t}),[])}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(e.children||[]).map(S.bind(null,t)),o=Object.keys(e.attributes||{}).reduce((function(t,n){var i=e.attributes[n];switch(n){case"class":t["class"]=w(i);break;case"style":t["style"]=_(i);break;default:t.attrs[n]=i}return t}),{class:{},style:{},attrs:{}}),s=i.class,c=void 0===s?{}:s,u=i.style,h=void 0===u?{}:u,d=i.attrs,f=void 0===d?{}:d,p=l(i,b);return"string"===typeof e?e:t(e.tag,a(a({class:k(o.class,c),style:a(a({},o.style),h),attrs:a(a({},o.attrs),f)},p),{},{props:n}),r)}var x=!1;try{x=!0}catch(P){}function C(){var t;!x&&console&&"function"===typeof console.error&&(t=console).error.apply(t,arguments)}function D(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?s({},t,e):{}}function T(t){var e,n=(e={"fa-spin":t.spin,"fa-spin-pulse":t.spinPulse,"fa-spin-reverse":t.spinReverse,"fa-pulse":t.pulse,"fa-beat":t.beat,"fa-fade":t.fade,"fa-flash":t.flash,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip":!0===t.flip,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},s(e,"fa-".concat(t.size),null!==t.size),s(e,"fa-rotate-".concat(t.rotation),null!==t.rotation),s(e,"fa-pull-".concat(t.pull),null!==t.pull),s(e,"fa-swap-opacity",t.swapOpacity),s(e,"fa-bounce",t.bounce),s(e,"fa-shake",t.shake),s(e,"fa-beat-fade",t.beatFade),e);return Object.keys(n).map((function(t){return n[t]?t:null})).filter((function(t){return t}))}function O(t,e){var n=0===(t||"").length?[]:[t];return n.concat(e).join(" ")}function E(t){return t&&"object"===o(t)&&t.prefix&&t.iconName&&t.icon?t:i.Qc.icon?i.Qc.icon(t):null===t?null:"object"===o(t)&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"===typeof t?{prefix:"fas",iconName:t}:void 0}var A={name:"FontAwesomeIcon",functional:!0,props:{beat:{type:Boolean,default:!1},border:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=n.icon,o=n.mask,s=n.symbol,c=n.title,l=E(r),u=D("classes",T(n)),h=D("transform","string"===typeof n.transform?i.Qc.transform(n.transform):n.transform),d=D("mask",E(o)),f=(0,i.qv)(l,a(a(a(a({},u),h),d),{},{symbol:s,title:c}));if(!f)return C("Could not find one or more icon(s)",l,d);var p=f.abstract,v=S.bind(null,t);return v(p[0],{},e.data)}};Boolean,Boolean},242:(t,e,n)=>{"use strict";n.d(e,{Xb:()=>v,Gd:()=>y,cu:()=>m});var i=n(655),r=n(844),a=n(170),o=n(566),s=n(991),c=n(448),l="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,u=n(769),h=n(535),d=function(){function t(t){this.errors=0,this.sid=(0,r.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,a.ph)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,a.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"===typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"===typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return(0,h.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),f=4,p=100,v=function(){function t(t,e,n){void 0===e&&(e=new u.s),void 0===n&&(n=f),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){var e=this.getStackTop();e.client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=u.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:(0,r.DM)(),a=e;if(!e){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}a={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,(0,i.pi)((0,i.pi)({},a),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var a=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=n;if(!n){var s=void 0;try{throw new Error(t)}catch(c){s=c}o={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,(0,i.pi)((0,i.pi)({},o),{event_id:a})),a},t.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:(0,r.DM)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,(0,i.pi)((0,i.pi)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),r=n.scope,s=n.client;if(r&&s){var c=s.getOptions&&s.getOptions()||{},l=c.beforeBreadcrumb,u=void 0===l?null:l,h=c.maxBreadcrumbs,d=void 0===h?p:h;if(!(d<=0)){var f=(0,a.yW)(),v=(0,i.pi)({timestamp:f},t),m=u?(0,o.Cf)((function(){return u(v,e)})):v;null!==m&&r.addBreadcrumb(m,d)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,i=e.client;n&&i&&t(n)},t.prototype.run=function(t){var e=g(this);try{t(this)}finally{g(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return l&&o.kg.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,r=e.client,a=r&&r.getOptions()||{},o=a.release,c=a.environment,l=(0,s.R)(),u=(l.navigator||{}).userAgent,h=new d((0,i.pi)((0,i.pi)((0,i.pi)({release:o,environment:c},n&&{user:n.getUser()}),u&&{userAgent:u}),t));if(n){var f=n.getSession&&n.getSession();f&&"ok"===f.status&&f.update({status:"exited"}),this.endSession(),n.setSession(h)}return h},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var i=e.getSession&&e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},t.prototype._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this.getStackTop(),o=a.scope,s=a.client;s&&s[t]&&(e=s)[t].apply(e,(0,i.fl)(n,[o]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=m(),r=i.__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[t])return r.extensions[t].apply(this,e);l&&o.kg.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function m(){var t=(0,s.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function g(t){var e=m(),n=w(e);return k(e,t),n}function y(){var t=m();return _(t)&&!w(t).isOlderThan(f)||k(t,new v),(0,c.KV)()?b(t):w(t)}function b(t){try{var e=m().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return w(t);if(!_(n)||w(n).isOlderThan(f)){var i=w(t).getStackTop();k(n,new v(i.client,u.s.clone(i.scope)))}return w(n)}catch(r){return w(t)}}function _(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function w(t){return(0,s.Y)("hub",(function(){return new v}),t)}function k(t,e){if(!t)return!1;var n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},769:(t,e,n)=>{"use strict";n.d(e,{c:()=>h,s:()=>l});var i=n(655),r=n(597),a=n(170),o=n(893),s=n(991),c=100,l=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=(0,i.fl)(e._breadcrumbs),n._tags=(0,i.pi)({},e._tags),n._extra=(0,i.pi)({},e._extra),n._contexts=(0,i.pi)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=(0,i.fl)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,i.pi)((0,i.pi)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=(0,i.pi)((0,i.pi)({},this._tags),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,i.pi)((0,i.pi)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=(0,i.pi)((0,i.pi)({},this._extra),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=(0,i.pi)((0,i.pi)({},this._contexts),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"===typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=(0,i.pi)((0,i.pi)({},this._tags),e._tags),this._extra=(0,i.pi)((0,i.pi)({},this._extra),e._extra),this._contexts=(0,i.pi)((0,i.pi)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags=(0,i.pi)((0,i.pi)({},this._tags),e.tags),this._extra=(0,i.pi)((0,i.pi)({},this._extra),e.extra),this._contexts=(0,i.pi)((0,i.pi)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"===typeof e?Math.min(e,c):c;if(n<=0)return this;var r=(0,i.pi)({timestamp:(0,a.yW)()},t);return this._breadcrumbs=(0,i.fl)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,i.pi)((0,i.pi)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,i.pi)((0,i.pi)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,i.pi)((0,i.pi)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,i.pi)((0,i.pi)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,i.pi)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=(0,i.pi)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,i.fl)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,i.fl)(u(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=(0,i.pi)((0,i.pi)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,a){var s=this;return void 0===a&&(a=0),new o.cW((function(o,c){var l=t[a];if(null===e||"function"!==typeof l)o(e);else{var u=l((0,i.pi)({},e),n);(0,r.J8)(u)?u.then((function(e){return s._notifyEventProcessors(t,e,n,a+1).then(o)})).then(null,c):s._notifyEventProcessors(t,u,n,a+1).then(o).then(null,c)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function u(){return(0,s.Y)("globalEventProcessors",(function(){return[]}))}function h(t){u().push(t)}},257:(t,e,n)=>{"use strict";n.d(e,{d:()=>i,x:()=>r});var i="finishReason",r=["heartbeatFailed","idleTimeout","documentHidden"]},955:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var i="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},758:(t,e,n)=>{"use strict";n.d(e,{ro:()=>k,lb:()=>b});var i=n(655),r=n(242),a=n(566),o=n(597),s=n(448),c=n(732),l=n(955),u=n(233);function h(){(0,c.o)("error",d),(0,c.o)("unhandledrejection",d)}function d(){var t=(0,u.x1)();if(t){var e="internal_error";l.h&&a.kg.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}var f=n(458),p=n(391);function v(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function m(t,e,n){return(0,u.zu)(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t):("function"===typeof e.tracesSampler?(i=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(i)}})):void 0!==n.parentSampled?(i=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(i=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(i)}})),g(i)?i?(t.sampled=Math.random()<i,t.sampled?(l.h&&a.kg.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(l.h&&a.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(i)+")"),t)):(l.h&&a.kg.log("[Tracing] Discarding transaction because "+("function"===typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(l.h&&a.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var i}function g(t){return(0,o.i2)(t)||"number"!==typeof t&&"boolean"!==typeof t?(l.h&&a.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1):!(t<0||t>1)||(l.h&&a.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1)}function y(t,e){var n=this.getClient(),r=n&&n.getOptions()||{},a=new p.Y(t,this);return a=m(a,r,(0,i.pi)({parentSampled:t.parentSampled,transactionContext:t},e)),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),a}function b(t,e,n,r,a){var o=t.getClient(),s=o&&o.getOptions()||{},c=new f.io(e,t,n,r);return c=m(c,s,(0,i.pi)({parentSampled:e.parentSampled,transactionContext:e},a)),c.sampled&&c.initSpanRecorder(s._experiments&&s._experiments.maxSpans),c}function _(){var t=(0,r.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=y),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=v))}function w(){var e=(0,r.cu)();if(e.__SENTRY__){var n={mongodb:function(){var e=(0,s.l$)(t,"./integrations/node/mongo");return new e.Mongo},mongoose:function(){var e=(0,s.l$)(t,"./integrations/node/mongo");return new e.Mongo({mongoose:!0})},mysql:function(){var e=(0,s.l$)(t,"./integrations/node/mysql");return new e.Mysql},pg:function(){var e=(0,s.l$)(t,"./integrations/node/postgres");return new e.Postgres}},a=Object.keys(n).filter((function(t){return!!(0,s.$y)(t)})).map((function(t){try{return n[t]()}catch(e){return}})).filter((function(t){return t}));a.length>0&&(e.__SENTRY__.integrations=(0,i.fl)(e.__SENTRY__.integrations||[],a))}}function k(){_(),(0,s.KV)()&&w(),h()}t=n.hmd(t)},458:(t,e,n)=>{"use strict";n.d(e,{io:()=>f,nT:()=>u});var i=n(655),r=n(170),a=n(566),o=n(257),s=n(955),c=n(334),l=n(391),u=1e3,h=5e3,d=function(t){function e(e,n,i,r){void 0===i&&(i="");var a=t.call(this,r)||this;return a._pushActivity=e,a._popActivity=n,a.transactionSpanId=i,a}return(0,i.ZT)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"===typeof t?t:(0,r._I)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(c.gB),f=function(t){function e(e,n,i,r){void 0===i&&(i=u),void 0===r&&(r=!1);var o=t.call(this,e,n)||this;return o._idleHub=n,o._idleTimeout=i,o._onScope=r,o.activities={},o._heartbeatCounter=0,o._finished=!1,o._beforeFinishCallbacks=[],n&&r&&(p(n),s.h&&a.kg.log("Setting idle transaction on scope. Span ID: "+o.spanId),n.configureScope((function(t){return t.setSpan(o)}))),o._initTimeout=setTimeout((function(){o._finished||o.finish()}),o._idleTimeout),o}return(0,i.ZT)(e,t),e.prototype.finish=function(e){var n,o,c=this;if(void 0===e&&(e=(0,r._I)()),this._finished=!0,this.activities={},this.spanRecorder){s.h&&a.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var l=(0,i.XA)(this._beforeFinishCallbacks),u=l.next();!u.done;u=l.next()){var h=u.value;h(this,e)}}catch(d){n={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===c.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),s.h&&a.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||s.h&&a.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),s.h&&a.kg.log("[Tracing] flushing IdleTransaction")}else s.h&&a.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&p(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;if(!this.spanRecorder){var n=function(t){e._finished||e._pushActivity(t)},i=function(t){e._finished||e._popActivity(t)};this.spanRecorder=new d(n,i,this.spanId,t),s.h&&a.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),s.h&&a.kg.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,s.h&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;if(this.activities[t]&&(s.h&&a.kg.log("[Tracing] popActivity "+t),delete this.activities[t],s.h&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,i=(0,r._I)()+n/1e3;setTimeout((function(){e._finished||(e.setTag(o.d,o.x[1]),e.finish(i))}),n)}},e.prototype._beat=function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(s.h&&a.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(o.d,o.x[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;s.h&&a.kg.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){t._beat()}),h)},e}(l.Y);function p(t){if(t){var e=t.getScope();if(e){var n=e.getTransaction();n&&e.setSpan(void 0)}}}},435:(t,e,n)=>{"use strict";n.d(e,{jK:()=>i});var i={};n.r(i),n.d(i,{gE:()=>tt});var r=n(758),a=n(655),o=n(566),s=n(991),c=n(955),l=n(458),u=n(233),h=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function d(t){var e=t.match(h);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}var f=n(257),p=(0,s.R)();function v(){p&&p.document?p.document.addEventListener("visibilitychange",(function(){var t=(0,u.x1)();if(p.document.hidden&&t){var e="cancelled";c.h&&o.kg.log("[Tracing] Transaction: "+e+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.setTag(f.d,f.x[2]),t.finish()}})):c.h&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var m=n(448),g=n(170),y=n(464),b=function(t,e,n){var i;return function(r){e.value>=0&&(r||n)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},_=function(){return"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)},w=function(t,e){return{name:t,value:null!==e&&void 0!==e?e:-1,delta:0,entries:[],id:_()}},k=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(i){}},S=function(t,e){var n=function(i){"pagehide"!==i.type&&"hidden"!==(0,s.R)().document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},x=function(t,e){var n,i=w("CLS",0),r=0,a=[],o=function(t){if(t&&!t.hadRecentInput){var e=a[0],o=a[a.length-1];r&&0!==a.length&&t.startTime-o.startTime<1e3&&t.startTime-e.startTime<5e3?(r+=t.value,a.push(t)):(r=t.value,a=[t]),r>i.value&&(i.value=r,i.entries=a,n&&n())}},s=k("layout-shift",o);s&&(n=b(t,i,e),S((function(){s.takeRecords().map(o),n(!0)})))},C=-1,D=function(){return"hidden"===(0,s.R)().document.visibilityState?0:1/0},T=function(){S((function(t){var e=t.timeStamp;C=e}),!0)},O=function(){return C<0&&(C=D(),T()),{get firstHiddenTime(){return C}}},E=function(t,e){var n,i=O(),r=w("FID"),a=function(t){n&&t.startTime<i.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),n(!0))},o=k("first-input",a);o&&(n=b(t,r,e),S((function(){o.takeRecords().map(a),o.disconnect()}),!0))},A={},P=function(t,e){var n,i=O(),r=w("LCP"),a=function(t){var e=t.startTime;e<i.firstHiddenTime&&(r.value=e,r.entries.push(t)),n&&n()},o=k("largest-contentful-paint",a);if(o){n=b(t,r,e);var s=function(){A[r.id]||(o.takeRecords().map(a),o.disconnect(),A[r.id]=!0,n(!0))};["keydown","click"].forEach((function(t){addEventListener(t,s,{once:!0,capture:!0})})),S(s,!0)}},M=(0,s.R)(),R=function(){function t(t){void 0===t&&(t=!1),this._reportAllChanges=t,this._measurements={},this._performanceCursor=0,!(0,m.KV)()&&M&&M.performance&&M.document&&(M.performance.mark&&M.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(M&&M.performance&&M.performance.getEntries&&g.Z1){c.h&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,i,r=(0,u.XL)(g.Z1);if(M.performance.getEntries().slice(this._performanceCursor).forEach((function(a){var s=(0,u.XL)(a.startTime),l=(0,u.XL)(a.duration);if(!("navigation"===t.op&&r+s<t.startTimestamp))switch(a.entryType){case"navigation":I(t,a,r),n=r+(0,u.XL)(a.responseStart),i=r+(0,u.XL)(a.requestStart);break;case"mark":case"paint":case"measure":var h=N(t,a,s,l,r),d=O(),f=a.startTime<d.firstHiddenTime;"first-paint"===a.name&&f&&(c.h&&o.kg.log("[Measurements] Adding FP"),e._measurements["fp"]={value:a.startTime},e._measurements["mark.fp"]={value:h}),"first-contentful-paint"===a.name&&f&&(c.h&&o.kg.log("[Measurements] Adding FCP"),e._measurements["fcp"]={value:a.startTime},e._measurements["mark.fcp"]={value:h});break;case"resource":var p=a.name.replace(M.location.origin,"");$(t,a,p,s,l,r);break;default:}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var a=(0,u.XL)(g.Z1);"number"===typeof n&&(c.h&&o.kg.log("[Measurements] Adding TTFB"),this._measurements["ttfb"]={value:1e3*(n-t.startTimestamp)},"number"===typeof i&&i<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-i)})),["fcp","fp","lcp"].forEach((function(n){if(e._measurements[n]&&!(a>=t.startTimestamp)){var i=e._measurements[n].value,r=a+(0,u.XL)(i),s=Math.abs(1e3*(r-t.startTimestamp)),l=s-i;c.h&&o.kg.log("[Measurements] Normalized "+n+" from "+i+" to "+s+" ("+l+")"),e._measurements[n].value=s}})),this._measurements["mark.fid"]&&this._measurements["fid"]&&B(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,u.XL)(this._measurements["fid"].value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),z(t,this._lcpEntry,this._clsEntry),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(t){var e=M.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),j(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),j(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),j(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),j(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackCLS=function(){var t=this;x((function(e){var n=e.entries.pop();n&&(c.h&&o.kg.log("[Measurements] Adding CLS"),t._measurements["cls"]={value:e.value},t._clsEntry=n)}))},t.prototype._trackLCP=function(){var t=this;P((function(e){var n=e.entries.pop();if(n){var i=(0,u.XL)(g.Z1),r=(0,u.XL)(n.startTime);c.h&&o.kg.log("[Measurements] Adding LCP"),t._measurements["lcp"]={value:e.value},t._measurements["mark.lcp"]={value:i+r},t._lcpEntry=n}}),this._reportAllChanges)},t.prototype._trackFID=function(){var t=this;E((function(e){var n=e.entries.pop();if(n){var i=(0,u.XL)(g.Z1),r=(0,u.XL)(n.startTime);c.h&&o.kg.log("[Measurements] Adding FID"),t._measurements["fid"]={value:e.value},t._measurements["mark.fid"]={value:i+r}}}))},t}();function I(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(i){L(t,e,i,n)})),L(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),L(t,e,"fetch",n,"cache","domainLookupStart"),L(t,e,"domainLookup",n,"DNS"),F(t,e,n)}function N(t,e,n,i,r){var a=r+n,o=a+i;return B(t,{description:e.name,endTimestamp:o,op:e.entryType,startTimestamp:a}),a}function $(t,e,n,i,r,a){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var o={};"transferSize"in e&&(o["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(o["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(o["Decoded Body Size"]=e.decodedBodySize);var s=a+i,c=s+r;B(t,{description:n,endTimestamp:c,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:s,data:o})}}function L(t,e,n,i,r,a){var o=a?e[a]:e[n+"End"],s=e[n+"Start"];s&&o&&B(t,{op:"browser",description:null!==r&&void 0!==r?r:n,startTimestamp:i+(0,u.XL)(s),endTimestamp:i+(0,u.XL)(o)})}function F(t,e,n){B(t,{op:"browser",description:"request",startTimestamp:n+(0,u.XL)(e.requestStart),endTimestamp:n+(0,u.XL)(e.responseEnd)}),B(t,{op:"browser",description:"response",startTimestamp:n+(0,u.XL)(e.responseStart),endTimestamp:n+(0,u.XL)(e.responseEnd)})}function B(t,e){var n=e.startTimestamp,i=(0,a._T)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild((0,a.pi)({startTimestamp:n},i))}function j(t){return"number"===typeof t&&isFinite(t)}function z(t,e,n){e&&(c.h&&o.kg.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",(0,y.R)(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size)),n&&n.sources&&(c.h&&o.kg.log("[Measurements] Adding CLS Data"),n.sources.forEach((function(e,n){return t.setTag("cls.source."+(n+1),(0,y.R)(e.node))})))}var H=n(321),V=n(732),G=n(597),W=["localhost",/^\//],U={traceFetch:!0,traceXHR:!0,tracingOrigins:W};function Y(t){var e=(0,a.pi)((0,a.pi)({},U),t),n=e.traceFetch,i=e.traceXHR,r=e.tracingOrigins,o=e.shouldCreateSpanForRequest,s={},c=function(t){if(s[t])return s[t];var e=r;return s[t]=e.some((function(e){return(0,H.zC)(t,e)}))&&!(0,H.zC)(t,"sentry_key"),s[t]},l=c;"function"===typeof o&&(l=function(t){return c(t)&&o(t)});var u={};n&&(0,V.o)("fetch",(function(t){q(t,l,u)})),i&&(0,V.o)("xhr",(function(t){X(t,l,u)}))}function q(t,e,n){if((0,u.zu)()&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp){var i=t.fetchData.__span;if(!i)return;var r=n[i];r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete n[i])}else{var o=(0,u.x1)();if(o){r=o.startChild({data:(0,a.pi)((0,a.pi)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=r.spanId,n[r.spanId]=r;var s=t.args[0]=t.args[0],c=t.args[1]=t.args[1]||{},l=c.headers;(0,G.V9)(s,Request)&&(l=s.headers),l?"function"===typeof l.append?l.append("sentry-trace",r.toTraceparent()):l=Array.isArray(l)?(0,a.fl)(l,[["sentry-trace",r.toTraceparent()]]):(0,a.pi)((0,a.pi)({},l),{"sentry-trace":r.toTraceparent()}):l={"sentry-trace":r.toTraceparent()},c.headers=l}}}function X(t,e,n){if(!(!(0,u.zu)()||t.xhr&&t.xhr.__sentry_own_request__)&&t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)){var i=t.xhr.__sentry_xhr__;if(t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;if(!r)return;var o=n[r];o&&(o.setHttpStatus(i.status_code),o.finish(),delete n[r])}else{var s=(0,u.x1)();if(s){o=s.startChild({data:(0,a.pi)((0,a.pi)({},i.data),{type:"xhr",method:i.method,url:i.url}),description:i.method+" "+i.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,n[t.xhr.__sentry_xhr_span_id__]=o,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",o.toTraceparent())}catch(c){}}}}}var K=(0,s.R)();function J(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),K&&K.location){var i,r=K.location.href;e&&(i=t({name:K.location.pathname,op:"pageload"})),n&&(0,V.o)("history",(function(e){var n=e.to,a=e.from;void 0===a&&r&&-1!==r.indexOf(n)?r=void 0:a!==n&&(r=void 0,i&&(c.h&&o.kg.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=t({name:K.location.pathname,op:"navigation"}))}))}else c.h&&o.kg.warn("Could not initialize routing instrumentation due to invalid location")}var Z=600,Q=(0,a.pi)({idleTimeout:l.nT,markBackgroundTransactions:!0,maxTransactionDuration:Z,routingInstrumentation:J,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},U),tt=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=U.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:c.h&&(this._emitOptionsWarning=!0)),this.options=(0,a.pi)((0,a.pi)((0,a.pi)({},Q),e),{tracingOrigins:n});var i=this.options._metricOptions;this._metrics=new R(i&&i._reportAllChanges)}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(c.h&&o.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),c.h&&o.kg.warn("[Tracing] We added a reasonable default for you: "+U.tracingOrigins));var i=this.options,r=i.routingInstrumentation,a=i.startTransactionOnLocationChange,s=i.startTransactionOnPageLoad,l=i.markBackgroundTransactions,u=i.traceFetch,h=i.traceXHR,d=i.tracingOrigins,f=i.shouldCreateSpanForRequest;r((function(t){return n._createRouteTransaction(t)}),s,a),l&&v(),Y({traceFetch:u,traceXHR:h,tracingOrigins:d,shouldCreateSpanForRequest:f})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,i=n.beforeNavigate,l=n.idleTimeout,h=n.maxTransactionDuration,d="pageload"===t.op?et():void 0,f=(0,a.pi)((0,a.pi)((0,a.pi)({},t),d),{trimEnd:!0}),p="function"===typeof i?i(f):f,v=void 0===p?(0,a.pi)((0,a.pi)({},f),{sampled:!1}):p;!1===v.sampled&&c.h&&o.kg.log("[Tracing] Will not send "+v.op+" transaction because of beforeNavigate."),c.h&&o.kg.log("[Tracing] Starting "+v.op+" transaction on scope");var m=this._getCurrentHub(),g=(0,s.R)().location,y=(0,r.lb)(m,v,l,!0,{location:g});return y.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),it((0,u.WB)(h),t,n)})),y.setTag("idleTimeout",this._configuredIdleTimeout),y}c.h&&o.kg.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}();function et(){var t=nt("sentry-trace");if(t)return d(t)}function nt(t){var e=(0,s.R)().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}function it(t,e,n){var i=n-e.startTimestamp,r=n&&(i>t||i<0);r&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}(0,r.ro)()},334:(t,e,n)=>{"use strict";n.d(e,{Dr:()=>c,gB:()=>s});var i=n(655),r=n(844),a=n(170),o=n(535),s=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),c=function(){function t(t){if(this.traceId=(0,r.DM)(),this.spanId=(0,r.DM)().substring(16),this.startTimestamp=(0,a._I)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t((0,i.pi)((0,i.pi)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=(0,i.pi)((0,i.pi)({},this.tags),(n={},n[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=(0,i.pi)((0,i.pi)({},this.data),(n={},n[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=l(t);return"unknown_error"!==e&&this.setStatus(e),this},t.prototype.isSuccess=function(){return"ok"===this.status},t.prototype.finish=function(t){this.endTimestamp="number"===typeof t?t:(0,a._I)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return(0,o.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,i,r,a;return this.data=(e=t.data,null!==e&&void 0!==e?e:{}),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(n=t.spanId,null!==n&&void 0!==n?n:this.spanId),this.startTimestamp=(i=t.startTimestamp,null!==i&&void 0!==i?i:this.startTimestamp),this.status=t.status,this.tags=(r=t.tags,null!==r&&void 0!==r?r:{}),this.traceId=(a=t.traceId,null!==a&&void 0!==a?a:this.traceId),this},t.prototype.getTraceContext=function(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}();function l(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},391:(t,e,n)=>{"use strict";n.d(e,{Y:()=>u});var i=n(655),r=n(242),a=n(597),o=n(566),s=n(535),c=n(955),l=n(334),u=function(t){function e(e,n){var i=t.call(this,e)||this;return i._measurements={},i._hub=(0,r.Gd)(),(0,a.V9)(n,r.Xb)&&(i._hub=n),i.name=e.name||"",i.metadata=e.metadata||{},i._trimEnd=e.trimEnd,i.transaction=i,i}return(0,i.ZT)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new l.gB(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=(0,i.pi)({},t)},e.prototype.setMetadata=function(t){this.metadata=(0,i.pi)((0,i.pi)({},this.metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||(c.h&&o.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0===this.sampled){var i=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&i.length>0&&(this.endTimestamp=i.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var r={contexts:{trace:this.getTraceContext()},spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata},a=Object.keys(this._measurements).length>0;return a&&(c.h&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),c.h&&o.kg.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(r)}c.h&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var s=this._hub.getClient(),l=s&&s.getTransport&&s.getTransport();l&&l.recordLostEvent&&l.recordLostEvent("sample_rate","transaction")}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return(0,s.Jr)((0,i.pi)((0,i.pi)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=(n=e.name,null!==n&&void 0!==n?n:""),this._trimEnd=e.trimEnd,this},e}(l.Dr)},233:(t,e,n)=>{"use strict";n.d(e,{WB:()=>s,XL:()=>o,x1:()=>a,zu:()=>r});var i=n(242);function r(t){var e=(0,i.Gd)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function a(t){var e=t||(0,i.Gd)(),n=e.getScope();return n&&n.getTransaction()}function o(t){return t/1e3}function s(t){return 1e3*t}},464:(t,e,n)=>{"use strict";n.d(e,{R:()=>a,l:()=>s});var i=n(991),r=n(597);function a(t,e){try{var n=t,i=5,r=80,a=[],s=0,c=0,l=" > ",u=l.length,h=void 0;while(n&&s++<i){if(h=o(n,e),"html"===h||s>1&&c+a.length*u+h.length>=r)break;a.push(h),c+=h.length,n=n.parentNode}return a.reverse().join(l)}catch(d){return"<unknown>"}}function o(t,e){var n,i,a,o,s,c=t,l=[];if(!c||!c.tagName)return"";l.push(c.tagName.toLowerCase());var u=e&&e.length?e.filter((function(t){return c.getAttribute(t)})).map((function(t){return[t,c.getAttribute(t)]})):null;if(u&&u.length)u.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(c.id&&l.push("#"+c.id),n=c.className,n&&(0,r.HD)(n))for(i=n.split(/\s+/),s=0;s<i.length;s++)l.push("."+i[s]);var h=["type","name","title","alt"];for(s=0;s<h.length;s++)a=h[s],o=c.getAttribute(a),o&&l.push("["+a+'="'+o+'"]');return l.join("")}function s(){var t=(0,i.R)();try{return t.document.location.href}catch(e){return""}}},795:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var i="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},991:(t,e,n)=>{"use strict";n.d(e,{R:()=>a,Y:()=>o});var i=n(448),r={};function a(){return(0,i.KV)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:r}function o(t,e,n){var i=n||a(),r=i.__SENTRY__=i.__SENTRY__||{},o=r[t]||(r[t]=e());return o}},732:(t,e,n)=>{"use strict";n.d(e,{o:()=>m});var i,r=n(655),a=n(795),o=n(991),s=n(597),c=n(566),l=n(535),u=n(360),h=n(823),d=(0,o.R)(),f={},p={};function v(t){if(!p[t])switch(p[t]=!0,t){case"console":y();break;case"dom":A();break;case"xhr":k();break;case"fetch":b();break;case"history":S();break;case"error":M();break;case"unhandledrejection":I();break;default:return void(a.h&&c.kg.warn("unknown instrumentation type:",t))}}function m(t,e){f[t]=f[t]||[],f[t].push(e),v(t)}function g(t,e){var n,i;if(t&&f[t])try{for(var o=(0,r.XA)(f[t]||[]),s=o.next();!s.done;s=o.next()){var l=s.value;try{l(e)}catch(h){a.h&&c.kg.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+(0,u.$P)(l)+"\nError:",h)}}}catch(d){n={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function y(){"console"in d&&c.RU.forEach((function(t){t in d.console&&(0,l.hl)(d.console,t,(function(e){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];g("console",{args:n,level:t}),e&&e.apply(d.console,n)}}))}))}function b(){(0,h.t$)()&&(0,l.hl)(d,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={args:e,fetchData:{method:_(e),url:w(e)},startTimestamp:Date.now()};return g("fetch",(0,r.pi)({},i)),t.apply(d,e).then((function(t){return g("fetch",(0,r.pi)((0,r.pi)({},i),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw g("fetch",(0,r.pi)((0,r.pi)({},i),{endTimestamp:Date.now(),error:t})),t}))}}))}function _(t){return void 0===t&&(t=[]),"Request"in d&&(0,s.V9)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function w(t){return void 0===t&&(t=[]),"string"===typeof t[0]?t[0]:"Request"in d&&(0,s.V9)(t[0],Request)?t[0].url:String(t[0])}function k(){if("XMLHttpRequest"in d){var t=XMLHttpRequest.prototype;(0,l.hl)(t,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,r=e[1],a=i.__sentry_xhr__={method:(0,s.HD)(e[0])?e[0].toUpperCase():e[0],url:e[1]};(0,s.HD)(r)&&"POST"===a.method&&r.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var o=function(){if(4===i.readyState){try{a.status_code=i.status}catch(t){}g("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"===typeof i.onreadystatechange?(0,l.hl)(i,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o(),t.apply(i,e)}})):i.addEventListener("readystatechange",o),t.apply(i,e)}})),(0,l.hl)(t,"send",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),g("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}}function S(){if((0,h.Bf)()){var t=d.onpopstate;d.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=d.location.href,a=i;if(i=r,g("history",{from:a,to:r}),t)try{return t.apply(this,e)}catch(o){}},(0,l.hl)(d.history,"pushState",e),(0,l.hl)(d.history,"replaceState",e)}function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length>2?e[2]:void 0;if(r){var a=i,o=String(r);i=o,g("history",{from:a,to:o})}return t.apply(this,e)}}}var x,C,D=1e3;function T(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}function O(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}function E(t,e){return void 0===e&&(e=!1),function(n){if(n&&C!==n&&!O(n)){var i="keypress"===n.type?"input":n.type;(void 0===x||T(C,n))&&(t({event:n,name:i,global:e}),C=n),clearTimeout(x),x=d.setTimeout((function(){x=void 0}),D)}}}function A(){if("document"in d){var t=g.bind(null,"dom"),e=E(t,!0);d.document.addEventListener("click",e,!1),d.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=d[e]&&d[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,l.hl)(n,"addEventListener",(function(e){return function(n,i,r){if("click"===n||"keypress"==n)try{var a=this,o=a.__sentry_instrumentation_handlers__=a.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var c=E(t);s.handler=c,e.call(this,n,c,r)}s.refCount+=1}catch(l){}return e.call(this,n,i,r)}})),(0,l.hl)(n,"removeEventListener",(function(t){return function(e,n,i){if("click"===e||"keypress"==e)try{var r=this,a=r.__sentry_instrumentation_handlers__||{},o=a[e];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,e,o.handler,i),o.handler=void 0,delete a[e]),0===Object.keys(a).length&&delete r.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,i)}})))}))}}var P=null;function M(){P=d.onerror,d.onerror=function(t,e,n,i,r){return g("error",{column:i,error:r,line:n,msg:t,url:e}),!!P&&P.apply(this,arguments)}}var R=null;function I(){R=d.onunhandledrejection,d.onunhandledrejection=function(t){return g("unhandledrejection",t),!R||R.apply(this,arguments)}}},597:(t,e,n)=>{"use strict";n.d(e,{Cy:()=>m,HD:()=>l,J8:()=>v,Kj:()=>p,PO:()=>h,TX:()=>s,V9:()=>y,VW:()=>o,VZ:()=>r,cO:()=>d,fm:()=>c,i2:()=>g,kK:()=>f,pt:()=>u});var i=Object.prototype.toString;function r(t){switch(i.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function a(t,e){return i.call(t)==="[object "+e+"]"}function o(t){return a(t,"ErrorEvent")}function s(t){return a(t,"DOMError")}function c(t){return a(t,"DOMException")}function l(t){return a(t,"String")}function u(t){return null===t||"object"!==typeof t&&"function"!==typeof t}function h(t){return a(t,"Object")}function d(t){return"undefined"!==typeof Event&&y(t,Event)}function f(t){return"undefined"!==typeof Element&&y(t,Element)}function p(t){return a(t,"RegExp")}function v(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function m(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"===typeof t&&t!==t}function y(t,e){try{return t instanceof e}catch(n){return!1}}},566:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>u,RU:()=>l,kg:()=>i});var i,r=n(655),a=n(795),o=n(991),s=(0,o.R)(),c="Sentry Logger ",l=["debug","info","warn","error","log","assert"];function u(t){var e=(0,o.R)();if(!("console"in e))return t();var n=e.console,i={};l.forEach((function(t){var r=n[t]&&n[t].__sentry_original__;t in e.console&&r&&(i[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(i).forEach((function(t){n[t]=i[t]}))}}function h(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return a.h?l.forEach((function(n){e[n]=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t&&u((function(){var t;(t=s.console)[n].apply(t,(0,r.fl)([c+"["+n+"]:"],e))}))}})):l.forEach((function(t){e[t]=function(){}})),e}i=a.h?(0,o.Y)("logger",h):h()},844:(t,e,n)=>{"use strict";n.d(e,{DM:()=>o,Db:()=>u,EG:()=>h,YO:()=>d,en:()=>s,jH:()=>l});var i=n(655),r=n(991),a=n(535);function o(){var t=(0,r.R)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var i=function(t){var e=t.toString(16);while(e.length<4)e="0"+e;return e};return i(n[0])+i(n[1])+i(n[2])+i(n[3])+i(n[4])+i(n[5])+i(n[6])+i(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)}))}function s(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+i}}function c(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function l(t){var e=t.message,n=t.event_id;if(e)return e;var i=c(t);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||n||"<unknown>":n||"<unknown>"}function u(t,e,n){var i=t.exception=t.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{};a.value||(a.value=e||""),a.type||(a.type=n||"Error")}function h(t,e){var n=c(t);if(n){var r={type:"generic",handled:!0},a=n.mechanism;if(n.mechanism=(0,i.pi)((0,i.pi)((0,i.pi)({},r),a),e),e&&"data"in e){var o=(0,i.pi)((0,i.pi)({},a&&a.data),e.data);n.mechanism.data=o}}}function d(t){if(t&&t.__sentry_captured__)return!0;try{(0,a.xp)(t,"__sentry_captured__",!0)}catch(e){}return!1}},448:(t,e,n)=>{"use strict";function i(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function r(){return!i()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function a(t,e){return t.require(e)}function o(e){var n;try{n=a(t,e)}catch(r){}try{var i=a(t,"process").cwd;n=a(t,i()+"/node_modules/"+e)}catch(r){}return n}n.d(e,{l$:()=>a,KV:()=>r,$y:()=>o}),t=n.hmd(t)},535:(t,e,n)=>{"use strict";n.d(e,{$Q:()=>l,HK:()=>u,Jr:()=>m,Sh:()=>d,_j:()=>h,hl:()=>s,xp:()=>c,zf:()=>v});var i=n(655),r=n(464),a=n(597),o=n(321);function s(t,e,n){if(e in t){var i=t[e],r=n(i);if("function"===typeof r)try{l(r,i)}catch(a){}t[e]=r}}function c(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function l(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}function u(t){return t.__sentry_original__}function h(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function d(t){var e=t;if((0,a.VZ)(t))e=(0,i.pi)({message:t.message,name:t.name,stack:t.stack},p(t));else if((0,a.cO)(t)){var n=t;e=(0,i.pi)({type:n.type,target:f(n.target),currentTarget:f(n.currentTarget)},p(n)),"undefined"!==typeof CustomEvent&&(0,a.V9)(t,CustomEvent)&&(e.detail=n.detail)}return e}function f(t){try{return(0,a.kK)(t)?(0,r.R)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function p(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function v(t,e){void 0===e&&(e=40);var n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,o.$G)(n[0],e);for(var i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>e))return i===n.length?r:(0,o.$G)(r,e)}return""}function m(t){var e,n;if((0,a.PO)(t)){var r={};try{for(var o=(0,i.XA)(Object.keys(t)),s=o.next();!s.done;s=o.next()){var c=s.value;"undefined"!==typeof t[c]&&(r[c]=m(t[c]))}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return Array.isArray(t)?t.map(m):t}},360:(t,e,n)=>{"use strict";n.d(e,{$P:()=>c,pE:()=>a});var i=n(655),r=50;function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t,e){var r,a,s,c;void 0===e&&(e=0);var l=[];try{for(var u=(0,i.XA)(t.split("\n").slice(e)),h=u.next();!h.done;h=u.next()){var d=h.value;try{for(var f=(s=void 0,(0,i.XA)(n)),p=f.next();!p.done;p=f.next()){var v=p.value,m=v(d);if(m){l.push(m);break}}}catch(g){s={error:g}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return o(l)}}function o(t){if(!t.length)return[];var e=t,n=e[0].function||"",a=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==a.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,r).map((function(t){return(0,i.pi)((0,i.pi)({},t),{filename:t.filename||e[0].filename,function:t.function||"?"})})).reverse()}var s="<anonymous>";function c(t){try{return t&&"function"===typeof t&&t.name||s}catch(e){return s}}},321:(t,e,n)=>{"use strict";n.d(e,{$G:()=>r,nK:()=>a,zC:()=>o});var i=n(597);function r(t,e){return void 0===e&&(e=0),"string"!==typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function a(t,e){if(!Array.isArray(t))return"";for(var n=[],i=0;i<t.length;i++){var r=t[i];try{n.push(String(r))}catch(a){n.push("[value cannot be serialized]")}}return n.join(e)}function o(t,e){return!!(0,i.HD)(t)&&((0,i.Kj)(e)?e.test(t):"string"===typeof e&&-1!==t.indexOf(e))}},823:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>o,Bf:()=>u,Du:()=>s,hv:()=>l,t$:()=>c});var i=n(795),r=n(991),a=n(566);function o(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if(!o())return!1;var t=(0,r.R)();if(s(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"===typeof n.createElement)try{var c=n.createElement("iframe");c.hidden=!0,n.head.appendChild(c),c.contentWindow&&c.contentWindow.fetch&&(e=s(c.contentWindow.fetch)),n.head.removeChild(c)}catch(l){i.h&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return e}function l(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function u(){var t=(0,r.R)(),e=t.chrome,n=e&&e.app&&e.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&i}},893:(t,e,n)=>{"use strict";n.d(e,{$2:()=>a,WD:()=>r,cW:()=>o});var i=n(597);function r(t){return new o((function(e){e(t)}))}function a(t){return new o((function(e,n){n(t)}))}var o=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){0===e._state&&((0,i.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.prototype.then=function(e,n){var i=this;return new t((function(t,r){i._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(i){r(i)}else t(n)},function(e){if(n)try{t(n(e))}catch(i){r(i)}else r(e)}]),i._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,i){var r,a;return n.then((function(t){a=!1,r=t,e&&e()}),(function(t){a=!0,r=t,e&&e()})).then((function(){a?i(r):t(r)}))}))},t}()},170:(t,e,n)=>{"use strict";n.d(e,{Z1:()=>f,_I:()=>d,ph:()=>h,yW:()=>u});var i=n(991),r=n(448);t=n.hmd(t);var a={nowSeconds:function(){return Date.now()/1e3}};function o(){var t=(0,i.R)().performance;if(t&&t.now){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function s(){try{var e=(0,r.l$)(t,"perf_hooks");return e.performance}catch(n){return}}var c=(0,r.KV)()?s():o(),l=void 0===c?a:{nowSeconds:function(){return(c.timeOrigin+c.now())/1e3}},u=a.nowSeconds.bind(a),h=l.nowSeconds.bind(l),d=h,f=function(){var t=(0,i.R)().performance;if(t&&t.now){var e=36e5,n=t.now(),r=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=a<e,s=t.timing&&t.timing.navigationStart,c="number"===typeof s,l=c?Math.abs(s+n-r):e,u=l<e;return o||u?a<=l?("timeOrigin",t.timeOrigin):("navigationStart",s):("dateNow",r)}"none"}()},19:(t,e,n)=>{"use strict";n.d(e,{S:()=>Qn});var i=n(655),r="6.19.7",a=n(566),o=n(844),s=n(321),c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],u=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var i=n();if(i){var r=i.getIntegration(t);if(r){var a=i.getClient(),o=a?a.getOptions():{},s=h(r._options,o);return d(e,s)?null:e}}return e}))},t.id="InboundFilters",t}();function h(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),{allowUrls:(0,i.fl)(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:(0,i.fl)(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:(0,i.fl)(t.ignoreErrors||[],e.ignoreErrors||[],l),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}function d(t,e){return e.ignoreInternal&&g(t)?(c&&a.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,o.jH)(t)),!0):f(t,e.ignoreErrors)?(c&&a.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,o.jH)(t)),!0):p(t,e.denyUrls)?(c&&a.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,o.jH)(t)+".\nUrl: "+b(t)),!0):!v(t,e.allowUrls)&&(c&&a.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,o.jH)(t)+".\nUrl: "+b(t)),!0)}function f(t,e){return!(!e||!e.length)&&m(t).some((function(t){return e.some((function(e){return(0,s.zC)(t,e)}))}))}function p(t,e){if(!e||!e.length)return!1;var n=b(t);return!!n&&e.some((function(t){return(0,s.zC)(n,t)}))}function v(t,e){if(!e||!e.length)return!0;var n=b(t);return!n||e.some((function(t){return(0,s.zC)(n,t)}))}function m(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,i=void 0===n?"":n,r=e.value,s=void 0===r?"":r;return[""+s,i+": "+s]}catch(l){return c&&a.kg.error("Cannot extract message for event "+(0,o.jH)(t)),[]}return[]}function g(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}function y(t){void 0===t&&(t=[]);for(var e=t.length-1;e>=0;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function b(t){try{if(t.stacktrace)return y(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?y(e):null}catch(i){return c&&a.kg.error("Cannot extract url for event "+(0,o.jH)(t)),null}}var _,w=n(535),k=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){_=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,w.HK)(this)||this;return _.apply(n,t)}},t.id="FunctionToString",t}(),S=n(242);function x(t,e){!0===e.debug&&(c?a.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,S.Gd)(),i=n.getScope();i&&i.update(e.initialScope);var r=new t(e);n.bindClient(r)}var C=n(991),D=n(732),T=n(769),O=Object.setPrototypeOf||({__proto__:[]}instanceof Array?E:A);function E(t,e){return t.__proto__=e,t}function A(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t}var P=function(t){function e(e){var n=this.constructor,i=t.call(this,e)||this;return i.message=e,i.name=n.prototype.constructor.name,O(i,n.prototype),i}return(0,i.ZT)(e,t),e}(Error),M=n(795),R=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function I(t){return"http"===t||"https"===t}function N(t,e){void 0===e&&(e=!1);var n=t.host,i=t.path,r=t.pass,a=t.port,o=t.projectId,s=t.protocol,c=t.publicKey;return s+"://"+c+(e&&r?":"+r:"")+"@"+n+(a?":"+a:"")+"/"+(i?i+"/":i)+o}function $(t){var e=R.exec(t);if(!e)throw new P("Invalid Sentry Dsn: "+t);var n=(0,i.CR)(e.slice(1),6),r=n[0],a=n[1],o=n[2],s=void 0===o?"":o,c=n[3],l=n[4],u=void 0===l?"":l,h=n[5],d="",f=h,p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){var v=f.match(/^\d+/);v&&(f=v[0])}return L({host:c,pass:s,path:d,projectId:f,port:u,protocol:r,publicKey:a})}function L(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function F(t){if(M.h){var e=t.port,n=t.projectId,i=t.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach((function(e){if(!t[e])throw new P("Invalid Sentry Dsn: "+e+" missing")})),!n.match(/^\d+$/))throw new P("Invalid Sentry Dsn: Invalid projectId "+n);if(!I(i))throw new P("Invalid Sentry Dsn: Invalid protocol "+i);if(e&&isNaN(parseInt(e,10)))throw new P("Invalid Sentry Dsn: Invalid port "+e);return!0}}function B(t){var e="string"===typeof t?$(t):L(t);return F(e),e}var j=n(597),z=n(893),H=n(170);function V(){var t="function"===typeof WeakSet,e=t?new WeakSet:[];function n(n){if(t)return!!e.has(n)||(e.add(n),!1);for(var i=0;i<e.length;i++){var r=e[i];if(r===n)return!0}return e.push(n),!1}function i(n){if(t)e.delete(n);else for(var i=0;i<e.length;i++)if(e[i]===n){e.splice(i,1);break}}return[n,i]}var G=n(360);function W(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return Y("",t,e,n)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function U(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var i=W(t,e);return K(i)>n?U(t,e-1,n):i}function Y(t,e,n,r,a){void 0===n&&(n=1/0),void 0===r&&(r=1/0),void 0===a&&(a=V());var o=(0,i.CR)(a,2),s=o[0],c=o[1],l=e;if(l&&"function"===typeof l.toJSON)try{return l.toJSON()}catch(m){}if(null===e||["number","boolean","string"].includes(typeof e)&&!(0,j.i2)(e))return e;var u=q(t,e);if(!u.startsWith("[object "))return u;if(0===n)return u.replace("object ","");if(s(e))return"[Circular ~]";var h=Array.isArray(e)?[]:{},d=0,f=(0,j.VZ)(e)||(0,j.cO)(e)?(0,w.Sh)(e):e;for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if(d>=r){h[p]="[MaxProperties ~]";break}var v=f[p];h[p]=Y(p,v,n-1,r,a),d+=1}return c(e),h}function q(t,e){try{return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,j.Cy)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?"[Function: "+(0,G.$P)(e)+"]":"symbol"===typeof e?"["+String(e)+"]":"bigint"===typeof e?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(i){return"**non-serializable** ("+i+")"}}function X(t){return~-encodeURI(t).split(/%..|./).length}function K(t){return X(JSON.stringify(t))}var J=[];function Z(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function Q(t){var e=t.defaultIntegrations&&(0,i.fl)(t.defaultIntegrations)||[],n=t.integrations,r=(0,i.fl)(Z(e));Array.isArray(n)?r=(0,i.fl)(r.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),Z(n)):"function"===typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var a=r.map((function(t){return t.name})),o="Debug";return-1!==a.indexOf(o)&&r.push.apply(r,(0,i.fl)(r.splice(a.indexOf(o),1))),r}function tt(t){-1===J.indexOf(t.name)&&(t.setupOnce(T.c,S.Gd),J.push(t.name),c&&a.kg.log("Integration installed: "+t.name))}function et(t){var e={};return Q(t).forEach((function(t){e[t.name]=t,tt(t)})),(0,w.xp)(e,"initialized",!0),e}var nt="Not capturing exception because it's already been captured.",it=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=B(e.dsn))}return t.prototype.captureException=function(t,e,n){var i=this;if(!(0,o.YO)(t)){var r=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return i._captureEvent(t,e,n)})).then((function(t){r=t}))),r}c&&a.kg.log(nt)},t.prototype.captureMessage=function(t,e,n,i){var r=this,a=n&&n.event_id,o=(0,j.pt)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(o.then((function(t){return r._captureEvent(t,n,i)})).then((function(t){a=t}))),a},t.prototype.captureEvent=function(t,e,n){if(!(e&&e.originalException&&(0,o.YO)(e.originalException))){var i=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){i=t}))),i}c&&a.kg.log(nt)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!==typeof t.release?c&&a.kg.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):c&&a.kg.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=et(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return c&&a.kg.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,a=!1,o=!1,s=e.exception&&e.exception.values;if(s){o=!0;try{for(var c=(0,i.XA)(s),l=c.next();!l.done;l=c.next()){var u=l.value,h=u.mechanism;if(h&&!1===h.handled){a=!0;break}}}catch(p){n={error:p}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var d="ok"===t.status,f=d&&0===t.errors||d&&a;f&&(t.update((0,i.pi)((0,i.pi)({},a&&{status:"crashed"}),{errors:t.errors||Number(o||a)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new z.cW((function(n){var i=0,r=1,a=setInterval((function(){0==e._numProcessing?(clearInterval(a),n(!0)):(i+=r,t&&i>=t&&(clearInterval(a),n(!1)))}),r)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,a=this.getOptions(),s=a.normalizeDepth,c=void 0===s?3:s,l=a.normalizeMaxBreadth,u=void 0===l?1e3:l,h=(0,i.pi)((0,i.pi)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,o.DM)()),timestamp:t.timestamp||(0,H.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var d=e;n&&n.captureContext&&(d=T.s.clone(d).update(n.captureContext));var f=(0,z.WD)(h);return d&&(f=d.applyToEvent(h,n)),f.then((function(t){return t&&(t.sdkProcessingMetadata=(0,i.pi)((0,i.pi)({},t.sdkProcessingMetadata),{normalizeDepth:W(c)+" ("+typeof c+")"})),"number"===typeof c&&c>0?r._normalizeEvent(t,c,u):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=(0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return(0,i.pi)((0,i.pi)({},t),t.data&&{data:W(t.data,e,n)})}))}),t.user&&{user:W(t.user,e,n)}),t.contexts&&{contexts:W(t.contexts,e,n)}),t.extra&&{extra:W(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=(0,i.pi)((0,i.pi)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,i=e.release,r=e.dist,a=e.maxValueLength,o=void 0===a?250:a;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==r&&(t.dist=r),t.message&&(t.message=(0,s.$G)(t.message,o));var c=t.exception&&t.exception.values&&t.exception.values[0];c&&c.value&&(c.value=(0,s.$G)(c.value,o));var l=t.request;l&&l.url&&(l.url=(0,s.$G)(l.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=(0,i.fl)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){c&&a.kg.error(t)}))},t.prototype._processEvent=function(t,e,n){var i=this,r=this.getOptions(),a=r.beforeSend,o=r.sampleRate,s=this.getTransport();function c(t,e){s.recordLostEvent&&s.recordLostEvent(t,e)}if(!this._isEnabled())return(0,z.$2)(new P("SDK not enabled, will not capture event."));var l="transaction"===t.type;return!l&&"number"===typeof o&&Math.random()>o?(c("sample_rate","event"),(0,z.$2)(new P("Discarding event because it's not included in the random sample (sampling rate = "+o+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw c("event_processor",t.type||"event"),new P("An event processor returned null, will not send event.");var i=e&&e.data&&!0===e.data.__sentry__;if(i||l||!a)return n;var r=a(n,e);return rt(r)})).then((function(e){if(null===e)throw c("before_send",t.type||"event"),new P("`beforeSend` returned `null`, will not send event.");var r=n&&n.getSession&&n.getSession();return!l&&r&&i._updateSessionFromEvent(r,e),i._sendEvent(e),e})).then(null,(function(t){if(t instanceof P)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new P("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t}();function rt(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,j.J8)(t))return t.then((function(t){if(!(0,j.PO)(t)&&null!==t)throw new P(e);return t}),(function(t){throw new P("beforeSend rejected with "+t)}));if(!(0,j.PO)(t)&&null!==t)throw new P(e);return t}var at="7";(function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=B(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return st(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return ut(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return ht(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return ft(this._dsnObject,this._tunnel)}})();function ot(t,e,n){return{initDsn:t,metadata:e||{},dsn:B(t),tunnel:n}}function st(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function ct(t,e){return""+st(t)+t.projectId+"/"+e+"/"}function lt(t){return(0,w._j)({sentry_key:t.publicKey,sentry_version:at})}function ut(t){return ct(t,"store")}function ht(t){return ut(t)+"?"+lt(t)}function dt(t){return ct(t,"envelope")}function ft(t,e){return e||dt(t)+"?"+lt(t)}function pt(t,e){var n=B(t),i=st(n)+"embed/error-page/",r="dsn="+N(n);for(var a in e)if("dsn"!==a)if("user"===a){if(!e.user)continue;e.user.name&&(r+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(r+="&email="+encodeURIComponent(e.user.email))}else r+="&"+encodeURIComponent(a)+"="+encodeURIComponent(e[a]);return i+"?"+r}function vt(t,e){return void 0===e&&(e=[]),[t,e]}function mt(t){var e=(0,i.CR)(t,2),n=(0,i.CR)(e[1],1),r=(0,i.CR)(n[0],1),a=r[0];return a.type}function gt(t){var e=(0,i.CR)(t,2),n=e[0],r=e[1],a=JSON.stringify(n);return r.reduce((function(t,e){var n=(0,i.CR)(e,2),r=n[0],a=n[1],o=(0,j.pt)(a)?String(a):JSON.stringify(a);return t+"\n"+JSON.stringify(r)+"\n"+o}),a)}function yt(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk,n=e.name,i=e.version;return{name:n,version:i}}}function bt(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=(0,i.fl)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=(0,i.fl)(t.sdk.packages||[],e.packages||[]),t):t}function _t(t,e){var n=yt(e),r=(0,i.pi)((0,i.pi)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:N(e.dsn)}),a="aggregates"in t?"sessions":"session",o=[{type:a},t],s=vt(r,[o]);return[s,a]}function wt(t,e){var n=(0,i.CR)(_t(t,e),2),r=n[0],a=n[1];return{body:gt(r),type:a,url:ft(e.dsn,e.tunnel)}}function kt(t,e){var n=yt(e),r=t.type||"event",a=(t.sdkProcessingMetadata||{}).transactionSampling,o=a||{},s=o.method,c=o.rate;bt(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var l=(0,i.pi)((0,i.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:N(e.dsn)}),u=[{type:r,sample_rates:[{id:s,rate:c}]},t];return vt(l,[u])}function St(t,e){var n,r=yt(e),a=t.type||"event",o="transaction"===a||!!e.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling,c=s||{},l=c.method,u=c.rate;bt(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{n=JSON.stringify(t)}catch(m){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=m;try{n=JSON.stringify(W(t))}catch(g){var h=g;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var d={body:n,type:a,url:o?ft(e.dsn,e.tunnel):ht(e.dsn)};if(o){var f=(0,i.pi)((0,i.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:N(e.dsn)}),p=[{type:a,sample_rates:[{id:l,rate:u}]},d.body],v=vt(f,[p]);d.body=gt(v)}return d}var xt,Ct=function(){function t(){}return t.prototype.sendEvent=function(t){return(0,z.WD)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return(0,z.WD)(!0)},t}(),Dt=function(){function t(t){this._options=t,this._options.dsn||c&&a.kg.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new P("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new P("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=ot(this._options.dsn,this._options._metadata,this._options.tunnel),n=kt(t,e);this._newTransport.send(n).then(null,(function(t){c&&a.kg.error("Error while sending event:",t)}))}else this._transport.sendEvent(t).then(null,(function(t){c&&a.kg.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=ot(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,i.CR)(_t(t,e),1),r=n[0];this._newTransport.send(r).then(null,(function(t){c&&a.kg.error("Error while sending session:",t)}))}else this._transport.sendSession(t).then(null,(function(t){c&&a.kg.error("Error while sending session:",t)}));else c&&a.kg.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Ct},t}();(function(t){t["Fatal"]="fatal",t["Error"]="error",t["Warning"]="warning",t["Log"]="log",t["Info"]="info",t["Debug"]="debug",t["Critical"]="critical"})(xt||(xt={}));var Tt=n(823),Ot="?",Et=10,At=20,Pt=30,Mt=40,Rt=50;function It(t,e,n,i){var r={filename:t,function:e,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}var Nt=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$t=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lt=function(t){var e=Nt.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("eval");if(n){var r=$t.exec(e[2]);r&&(e[2]=r[1],e[3]=r[2],e[4]=r[3])}var a=(0,i.CR)(Zt(e[1]||Ot,e[2]),2),o=a[0],s=a[1];return It(s,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Ft=[Pt,Lt],Bt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zt=function(t){var e,n=Bt.exec(t);if(n){var r=n[3]&&n[3].indexOf(" > eval")>-1;if(r){var a=jt.exec(n[3]);a&&(n[1]=n[1]||"eval",n[3]=a[1],n[4]=a[2],n[5]="")}var o=n[3],s=n[1]||Ot;return e=(0,i.CR)(Zt(s,o),2),s=e[0],o=e[1],It(o,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Ht=[Rt,zt],Vt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gt=function(t){var e=Vt.exec(t);return e?It(e[2],e[1]||Ot,+e[3],e[4]?+e[4]:void 0):void 0},Wt=[Mt,Gt],Ut=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Yt=function(t){var e=Ut.exec(t);return e?It(e[2],e[3]||Ot,+e[1]):void 0},qt=[Et,Yt],Xt=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Kt=function(t){var e=Xt.exec(t);return e?It(e[5],e[3]||e[4]||Ot,+e[1],+e[2]):void 0},Jt=[At,Kt],Zt=function(t,e){var n=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return n||i?[-1!==t.indexOf("@")?t.split("@")[0]:Ot,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Qt(t){var e=ne(t),n={type:t&&t.name,value:ae(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function te(t,e,n){var i={exception:{values:[{type:(0,j.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,w.zf)(t)}]},extra:{__serialized__:U(t)}};if(e){var r=ne(e);r.length&&(i.stacktrace={frames:r})}return i}function ee(t){return{exception:{values:[Qt(t)]}}}function ne(t){var e=t.stacktrace||t.stack||"",n=re(t);try{return(0,G.pE)(qt,Jt,Ft,Wt,Ht)(e,n)}catch(i){}return[]}var ie=/Minified React error #\d+;/i;function re(t){if(t){if("number"===typeof t.framesToPop)return t.framesToPop;if(ie.test(t.message))return 1}return 0}function ae(t){var e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function oe(t,e,n){var i=e&&e.syntheticException||void 0,r=ce(t,i,n);return(0,o.EG)(r),r.level=xt.Error,e&&e.event_id&&(r.event_id=e.event_id),(0,z.WD)(r)}function se(t,e,n,i){void 0===e&&(e=xt.Info);var r=n&&n.syntheticException||void 0,a=le(t,r,i);return a.level=e,n&&n.event_id&&(a.event_id=n.event_id),(0,z.WD)(a)}function ce(t,e,n,r){var a;if((0,j.VW)(t)&&t.error){var s=t;return ee(s.error)}if((0,j.TX)(t)||(0,j.fm)(t)){var c=t;if("stack"in t)a=ee(t);else{var l=c.name||((0,j.TX)(c)?"DOMError":"DOMException"),u=c.message?l+": "+c.message:l;a=le(u,e,n),(0,o.Db)(a,u)}return"code"in c&&(a.tags=(0,i.pi)((0,i.pi)({},a.tags),{"DOMException.code":""+c.code})),a}if((0,j.VZ)(t))return ee(t);if((0,j.PO)(t)||(0,j.cO)(t)){var h=t;return a=te(h,e,r),(0,o.EG)(a,{synthetic:!0}),a}return a=le(t,e,n),(0,o.Db)(a,""+t,void 0),(0,o.EG)(a,{synthetic:!0}),a}function le(t,e,n){var i={message:t};if(n&&e){var r=ne(e);r.length&&(i.stacktrace={frames:r})}return i}function ue(t){var e=[];function n(){return void 0===t||e.length<t}function i(t){return e.splice(e.indexOf(t),1)[0]}function r(t){if(!n())return(0,z.$2)(new P("Not adding Promise due to buffer limit reached."));var r=t();return-1===e.indexOf(r)&&e.push(r),r.then((function(){return i(r)})).then(null,(function(){return i(r).then(null,(function(){}))})),r}function a(t){return new z.cW((function(n,i){var r=e.length;if(!r)return n(!0);var a=setTimeout((function(){t&&t>0&&n(!1)}),t);e.forEach((function(t){(0,z.WD)(t).then((function(){--r||(clearTimeout(a),n(!0))}),i)}))}))}return{$:e,add:r,drain:a}}var he=6e4;function de(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+t);return isNaN(i)?he:i-e}function fe(t,e){return t[e]||t.all||0}function pe(t,e,n){return void 0===n&&(n=Date.now()),fe(t,e)>n}function ve(t,e,n){var r,a,o,s;void 0===n&&(n=Date.now());var c=(0,i.pi)({},t),l=e["x-sentry-rate-limits"],u=e["retry-after"];if(l)try{for(var h=(0,i.XA)(l.trim().split(",")),d=h.next();!d.done;d=h.next()){var f=d.value,p=f.split(":",2),v=parseInt(p[0],10),m=1e3*(isNaN(v)?60:v);if(p[1])try{for(var g=(o=void 0,(0,i.XA)(p[1].split(";"))),y=g.next();!y.done;y=g.next()){var b=y.value;c[b]=n+m}}catch(_){o={error:_}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}else c.all=n+m}}catch(w){r={error:w}}finally{try{d&&!d.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}else u&&(c.all=n+de(u,n));return c}function me(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}var ge=30;function ye(t,e,n){void 0===n&&(n=ue(t.bufferSize||ge));var i={},r=function(t){return n.drain(t)};function a(t){var r=mt(t),a="event"===r?"error":r,o={category:a,body:gt(t)};if(pe(i,a))return(0,z.$2)({status:"rate_limit",reason:be(i,a)});var s=function(){return e(o).then((function(t){var e=t.body,n=t.headers,r=t.reason,o=t.statusCode,s=me(o);return n&&(i=ve(i,n)),"success"===s?(0,z.WD)({status:s,reason:r}):(0,z.$2)({status:s,reason:r||e||("rate_limit"===s?be(i,a):"Unknown transport error")})}))};return n.add(s)}return{send:a,flush:r}}function be(t,e){return"Too many "+e+" requests, backing off until: "+new Date(fe(t,e)).toISOString()}function _e(t){t.then(null,(function(t){console.error(t)}))}var we,ke="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Se=(0,C.R)();function xe(){if(we)return we;if((0,Tt.Du)(Se.fetch))return we=Se.fetch.bind(Se);var t=Se.document,e=Se.fetch;if(t&&"function"===typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var i=n.contentWindow;i&&i.fetch&&(e=i.fetch),t.head.removeChild(n)}catch(r){ke&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return we=e.bind(Se)}function Ce(t,e){var n="[object Navigator]"===Object.prototype.toString.call(Se&&Se.navigator),i=n&&"function"===typeof Se.navigator.sendBeacon;if(i){var r=Se.navigator.sendBeacon.bind(Se.navigator);return r(t,e)}if((0,Tt.Ak)()){var a=xe();return _e(a(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}function De(t,e){function n(n){var r=(0,i.pi)({body:n.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then((function(t){return t.text().then((function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}}))}))}return void 0===e&&(e=xe()),ye({bufferSize:t.bufferSize},n)}function Te(t,e,n){var i=[{type:"client_report"},{timestamp:n||(0,H.yW)(),discarded_events:t}];return vt(e?{dsn:e}:{},[i])}function Oe(t){var e=t;return"event"===e?"error":e}var Ee=(0,C.R)(),Ae=function(){function t(t){var e=this;this.options=t,this._buffer=ue(30),this._rateLimits={},this._outcomes={},this._api=ot(t.dsn,t._metadata,t.tunnel),this.url=ht(this._api.dsn),this.options.sendClientReports&&Ee.document&&Ee.document.addEventListener("visibilitychange",(function(){"hidden"===Ee.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){return this._sendRequest(St(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest(wt(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var i=Oe(e)+":"+t;ke&&a.kg.log("Adding outcome: "+i),this._outcomes[i]=(n=this._outcomes[i],(null!==n&&void 0!==n?n:0)+1)}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){ke&&a.kg.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=ft(this._api.dsn,this._api.tunnel),n=Object.keys(t).map((function(e){var n=(0,i.CR)(e.split(":"),2),r=n[0],a=n[1];return{reason:a,category:r,quantity:t[e]}})),r=Te(n,this._api.tunnel&&N(this._api.dsn));try{Ce(e,gt(r))}catch(o){ke&&a.kg.error(o)}}else ke&&a.kg.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,i=t.headers,r=t.resolve,o=t.reject,s=me(n.status);this._rateLimits=ve(this._rateLimits,i),this._isRateLimited(e)&&ke&&a.kg.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==s?o(n):r({status:s})},t.prototype._disabledUntil=function(t){var e=Oe(t);return new Date(fe(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=Oe(t);return pe(this._rateLimits,e)},t}(),Pe=function(t){function e(e,n){void 0===n&&(n=xe());var i=t.call(this,e)||this;return i._fetch=n,i}return(0,i.ZT)(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:(0,Tt.hv)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add((function(){return new z.cW((function(e,r){n._fetch(t.url,i).then((function(i){var a={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:a,resolve:e,reject:r})})).catch(r)}))})).then(void 0,(function(e){throw e instanceof P?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(Ae),Me=4;function Re(t){function e(e){return new z.cW((function(n,i){var r=new XMLHttpRequest;for(var a in r.onreadystatechange=function(){if(r.readyState===Me){var t={body:r.response,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},reason:r.statusText,statusCode:r.status};n(t)}},r.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&r.setRequestHeader(a,t.headers[a]);r.send(e.body)}))}return ye({bufferSize:t.bufferSize},e)}var Ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new z.cW((function(e,i){var r=new XMLHttpRequest;for(var a in r.onreadystatechange=function(){if(4===r.readyState){var a={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:a,resolve:e,reject:i})}},r.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,a)&&r.setRequestHeader(a,n.options.headers[a]);r.send(t.body)}))})).then(void 0,(function(e){throw e instanceof P?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.eventFromException=function(t,e){return oe(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=xt.Info),se(t,e,n,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=(0,i.pi)((0,i.pi)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=ot(e.dsn,e._metadata,e.tunnel),r=ft(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(e);if((0,Tt.Ak)()){var a=(0,i.pi)({},e.fetchParameters);return this._newTransport=De({requestOptions:a,url:r}),new Pe(e)}return this._newTransport=Re({url:r,headers:e.headers}),new Ie(e)},e}(Dt);function $e(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=(0,S.Gd)();if(r&&r[t])return r[t].apply(r,(0,i.fl)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Le(t,e){var n=new Error("Sentry syntheticException");return $e("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Fe(t){$e("withScope",t)}var Be=(0,C.R)(),je=0;function ze(){return je>0}function He(){je+=1,setTimeout((function(){je-=1}))}function Ve(t,e,n){if(void 0===e&&(e={}),"function"!==typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if((0,w.HK)(t))return t}catch(l){return t}var a=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var a=r.map((function(t){return Ve(t,e)}));return t.apply(this,a)}catch(s){throw He(),Fe((function(t){t.addEventProcessor((function(t){return e.mechanism&&((0,o.Db)(t,void 0,void 0),(0,o.EG)(t,e.mechanism)),t.extra=(0,i.pi)((0,i.pi)({},t.extra),{arguments:r}),t})),Le(s)})),s}};try{for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=t[s])}catch(u){}(0,w.$Q)(a,t),(0,w.xp)(t,"__sentry_wrapped__",a);try{var c=Object.getOwnPropertyDescriptor(a,"name");c.configurable&&Object.defineProperty(a,"name",{get:function(){return t.name}})}catch(u){}return a}function Ge(t){if(void 0===t&&(t={}),Be.document)if(t.eventId)if(t.dsn){var e=Be.document.createElement("script");e.async=!0,e.src=pt(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=Be.document.head||Be.document.body;n&&n.appendChild(e)}else ke&&a.kg.error("Missing dsn option in showReportDialog call");else ke&&a.kg.error("Missing eventId option in showReportDialog call")}var We=n(464),Ue=["fatal","error","warning","log","info","debug","critical"];function Ye(t){return-1!==Ue.indexOf(t)}function qe(t){return"warn"===t?xt.Warning:Ye(t)?t:xt.Log}var Xe=function(){function t(e){this.name=t.id,this._options=(0,i.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&(0,S.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,o.jH)(t)},{event:t})},t.prototype.setupOnce=function(){this._options.console&&(0,D.o)("console",Je),this._options.dom&&(0,D.o)("dom",Ke(this._options.dom)),this._options.xhr&&(0,D.o)("xhr",Ze),this._options.fetch&&(0,D.o)("fetch",Qe),this._options.history&&(0,D.o)("history",tn)},t.id="Breadcrumbs",t}();function Ke(t){function e(e){var n,i="object"===typeof t?t.serializeAttribute:void 0;"string"===typeof i&&(i=[i]);try{n=e.event.target?(0,We.R)(e.event.target,i):(0,We.R)(e.event,i)}catch(r){n="<unknown>"}0!==n.length&&(0,S.Gd)().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})}return e}function Je(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:qe(t.level),message:(0,s.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+((0,s.nK)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}(0,S.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})}function Ze(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,i=e.url,r=e.status_code,a=e.body;(0,S.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:r},type:"http"},{xhr:t.xhr,input:a})}else;}function Qe(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,S.Gd)().addBreadcrumb({category:"fetch",data:t.fetchData,level:xt.Error,type:"http"},{data:t.error,input:t.args}):(0,S.Gd)().addBreadcrumb({category:"fetch",data:(0,i.pi)((0,i.pi)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function tn(t){var e=(0,C.R)(),n=t.from,i=t.to,r=(0,o.en)(e.location.href),a=(0,o.en)(n),s=(0,o.en)(i);a.path||(a=r),r.protocol===s.protocol&&r.host===s.host&&(i=s.relative),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),(0,S.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:i}})}var en=function(t){function e(e){void 0===e&&(e={});var n=this;return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},n=t.call(this,Ne,e)||this,n}return(0,i.ZT)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={});var e=(0,C.R)().document;e&&(this._isEnabled()?Ge((0,i.pi)((0,i.pi)({},t),{dsn:t.dsn||this.getDsn()})):ke&&a.kg.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,i){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,i)},e.prototype._sendEvent=function(e){var n=this.getIntegration(Xe);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(it),nn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rn=function(){function t(e){this.name=t.id,this._options=(0,i.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,C.R)();this._options.setTimeout&&(0,w.hl)(t,"setTimeout",an),this._options.setInterval&&(0,w.hl)(t,"setInterval",an),this._options.requestAnimationFrame&&(0,w.hl)(t,"requestAnimationFrame",on),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,w.hl)(XMLHttpRequest.prototype,"send",sn);var e=this._options.eventTarget;if(e){var n=Array.isArray(e)?e:nn;n.forEach(cn)}},t.id="TryCatch",t}();function an(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0];return e[0]=Ve(i,{mechanism:{data:{function:(0,G.$P)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function on(t){return function(e){return t.apply(this,[Ve(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,G.$P)(t)},handled:!0,type:"instrument"}})])}}function sn(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(t){t in i&&"function"===typeof i[t]&&(0,w.hl)(i,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,G.$P)(e)},handled:!0,type:"instrument"}},i=(0,w.HK)(e);return i&&(n.mechanism.data.handler=(0,G.$P)(i)),Ve(e,n)}))})),t.apply(this,e)}}function cn(t){var e=(0,C.R)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,w.hl)(n,"addEventListener",(function(e){return function(n,i,r){try{"function"===typeof i.handleEvent&&(i.handleEvent=Ve(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:(0,G.$P)(i),target:t},handled:!0,type:"instrument"}}))}catch(a){}return e.apply(this,[n,Ve(i,{mechanism:{data:{function:"addEventListener",handler:(0,G.$P)(i),target:t},handled:!0,type:"instrument"}}),r])}})),(0,w.hl)(n,"removeEventListener",(function(t){return function(e,n,i){var r=n;try{var a=r&&r.__sentry_wrapped__;a&&t.call(this,e,a,i)}catch(o){}return t.call(this,e,r,i)}})))}var ln=function(){function t(e){this.name=t.id,this._installFunc={onerror:un,onunhandledrejection:hn},this._options=(0,i.pi)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this._options;for(var e in t){var n=this._installFunc[e];n&&t[e]&&(vn(e),n(),this._installFunc[e]=void 0)}},t.id="GlobalHandlers",t}();function un(){(0,D.o)("error",(function(t){var e=(0,i.CR)(gn(),2),n=e[0],r=e[1];if(n.getIntegration(ln)){var a=t.msg,o=t.url,s=t.line,c=t.column,l=t.error;if(!(ze()||l&&l.__sentry_own_request__)){var u=void 0===l&&(0,j.HD)(a)?fn(a,o,s,c):pn(ce(l||a,void 0,r,!1),o,s,c);u.level=xt.Error,mn(n,l,u,"onerror")}}}))}function hn(){(0,D.o)("unhandledrejection",(function(t){var e=(0,i.CR)(gn(),2),n=e[0],r=e[1];if(n.getIntegration(ln)){var a=t;try{"reason"in t?a=t.reason:"detail"in t&&"reason"in t.detail&&(a=t.detail.reason)}catch(s){}if(ze()||a&&a.__sentry_own_request__)return!0;var o=(0,j.pt)(a)?dn(a):ce(a,void 0,r,!0);o.level=xt.Error,mn(n,a,o,"onunhandledrejection")}}))}function dn(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}function fn(t,e,n,i){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=(0,j.VW)(t)?t.message:t,o="Error",s=a.match(r);s&&(o=s[1],a=s[2]);var c={exception:{values:[{type:o,value:a}]}};return pn(c,e,n,i)}function pn(t,e,n,i){var r=t.exception=t.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,h=(0,j.HD)(e)&&e.length>0?e:(0,We.l)();return 0===c.length&&c.push({colno:l,filename:h,function:"?",in_app:!0,lineno:u}),t}function vn(t){ke&&a.kg.log("Global Handler attached: "+t)}function mn(t,e,n,i){(0,o.EG)(n,{handled:!1,type:i}),t.captureEvent(n,{originalException:e})}function gn(){var t=(0,S.Gd)(),e=t.getClient(),n=e&&e.getOptions().attachStacktrace;return[t,n]}var yn="cause",bn=5,_n=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||yn,this._limit=e.limit||bn}return t.prototype.setupOnce=function(){(0,T.c)((function(e,n){var i=(0,S.Gd)().getIntegration(t);return i?wn(i._key,i._limit,e,n):e}))},t.id="LinkedErrors",t}();function wn(t,e,n,r){if(!n.exception||!n.exception.values||!r||!(0,j.V9)(r.originalException,Error))return n;var a=kn(e,r.originalException,t);return n.exception.values=(0,i.fl)(a,n.exception.values),n}function kn(t,e,n,r){if(void 0===r&&(r=[]),!(0,j.V9)(e[n],Error)||r.length+1>=t)return r;var a=Qt(e[n]);return kn(t,e[n],n,(0,i.fl)([a],r))}var Sn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var i=n().getIntegration(t);if(i){try{if(xn(e,i._previousEvent))return ke&&a.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return i._previousEvent=e}return i._previousEvent=e}return e}))},t.id="Dedupe",t}();function xn(t,e){return!!e&&(!!Cn(t,e)||!!Dn(t,e))}function Cn(t,e){var n=t.message,i=e.message;return!(!n&&!i)&&(!(n&&!i||!n&&i)&&(n===i&&(!!On(t,e)&&!!Tn(t,e))))}function Dn(t,e){var n=En(e),i=En(t);return!(!n||!i)&&(n.type===i.type&&n.value===i.value&&(!!On(t,e)&&!!Tn(t,e)))}function Tn(t,e){var n=An(t),i=An(e);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r],o=n[r];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function On(t,e){var n=t.fingerprint,i=e.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(r){return!1}}function En(t){return t.exception&&t.exception.values&&t.exception.values[0]}function An(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames}var Pn=(0,C.R)(),Mn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){(0,T.c)((function(e){if((0,S.Gd)().getIntegration(t)){if(!Pn.navigator&&!Pn.location&&!Pn.document)return e;var n=e.request&&e.request.url||Pn.location&&Pn.location.href,r=(Pn.document||{}).referrer,a=(Pn.navigator||{}).userAgent,o=(0,i.pi)((0,i.pi)((0,i.pi)({},e.request&&e.request.headers),r&&{Referer:r}),a&&{"User-Agent":a}),s=(0,i.pi)((0,i.pi)({},n&&{url:n}),{headers:o});return(0,i.pi)((0,i.pi)({},e),{request:s})}return e}))},t.id="UserAgent",t}(),Rn=[new u,new k,new rn,new Xe,new ln,new _n,new Sn,new Mn];function In(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Rn),void 0===t.release){var e=(0,C.R)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),x(en,t),t.autoSessionTracking&&$n()}function Nn(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function $n(){var t=(0,C.R)(),e=t.document;if("undefined"!==typeof e){var n=(0,S.Gd)();n.captureSession&&(Nn(n),(0,D.o)("history",(function(t){var e=t.from,n=t.to;void 0!==e&&e!==n&&Nn((0,S.Gd)())})))}else ke&&a.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var Ln=["activate","mount","update"],Fn=/(?:^|[-_])(\w)/g,Bn=function(t){return t.replace(Fn,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")},jn="<Root>",zn="<Anonymous>",Hn=function(t,e){var n="";while(e)e%2===1&&(n+=t),e>1&&(t+=t),e>>=1;return n},Vn=function(t,e){if(!t)return zn;if(t.$root===t)return jn;var n=t.$options,i=n.name||n._componentTag,r=n.__file;if(!i&&r){var a=r.match(/([^/\\]+)\.vue$/);a&&(i=a[1])}return(i?"<"+Bn(i)+">":zn)+(r&&!1!==e?" at "+r:"")},Gn=function(t){var e,n,i;if(((null===(e=t)||void 0===e?void 0:e._isVue)||(null===(n=t)||void 0===n?void 0:n.__isVue))&&(null===(i=t)||void 0===i?void 0:i.$parent)){var r=[],a=0;while(t){if(r.length>0){var o=r[r.length-1];if(o.constructor===t.constructor){a+=1,t=t.$parent;continue}a>0&&(r[r.length-1]=[o,a],a=0)}r.push(t),t=t.$parent}var s=r.map((function(t,e){return""+((0===e?"---\x3e ":Hn(" ",5+2*e))+(Array.isArray(t)?Vn(t[0])+"... ("+t[1]+" recursive calls)":Vn(t)))})).join("\n");return"\n\nfound in\n\n"+s}return"\n\n(found in "+Vn(t)+")"},Wn=function(t,e){var n=t.config,i=n.errorHandler,r=n.warnHandler,a=n.silent;t.config.errorHandler=function(n,o,s){var c=Vn(o,!1),l=o?Gn(o):"",u={componentName:c,lifecycleHook:s,trace:l};if(o&&e.attachProps&&(u.propsData=o.$options.propsData||o.$props),setTimeout((function(){(0,S.Gd)().withScope((function(t){t.setContext("vue",u),(0,S.Gd)().captureException(n)}))})),"function"===typeof i&&i.call(t,n,o,s),e.logErrors){var h="undefined"!==typeof console,d="Error in "+s+': "'+(n&&n.toString())+'"';r?r.call(null,d,o,l):h&&!a&&console.error("[Vue warn]: "+d+l)}}},Un="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Yn="ui.vue",qn={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Xn(){var t;return null===(t=(0,S.Gd)().getScope())||void 0===t?void 0:t.getTransaction()}function Kn(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout((function(){var n;(null===(n=t.$root)||void 0===n?void 0:n.$_sentryRootSpan)&&(t.$root.$_sentryRootSpan.finish(e),t.$root.$_sentryRootSpan=void 0)}),n)}var Jn=function(t){var e,n,r=(t.hooks||[]).concat(Ln).filter((function(t,e,n){return n.indexOf(t)===e})),o={},s=function(e){var n,r,s=qn[e];if(!s)return Un&&a.kg.warn("Unknown hook: "+e),"continue";var c=function(n){o[n]=function(){var i,r=this.$root===this;if(r){var a=Xn();a&&(this.$_sentryRootSpan=this.$_sentryRootSpan||a.startChild({description:"Application Render",op:Yn}))}var o=Vn(this,!1),c=Array.isArray(t.trackComponents)?t.trackComponents.includes(o):t.trackComponents;if(r||c)if(this.$_sentrySpans=this.$_sentrySpans||{},n==s[0]){a=(null===(i=this.$root)||void 0===i?void 0:i.$_sentryRootSpan)||Xn();a&&(this.$_sentrySpans[e]=a.startChild({description:"Vue <"+o+">",op:Yn+"."+e}))}else{var l=this.$_sentrySpans[e];if(!l)return;l.finish(),Kn(this,(0,H.ph)(),t.timeout)}}};try{for(var l=(n=void 0,(0,i.XA)(s)),u=l.next();!u.done;u=l.next()){var h=u.value;c(h)}}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}};try{for(var c=(0,i.XA)(r),l=c.next();!l.done;l=c.next()){var u=l.value;s(u)}}catch(h){e={error:h}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return o},Zn={Vue:(0,C.R)().Vue,attachProps:!0,logErrors:!1,hooks:Ln,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:r}],version:r}}};function Qn(t){void 0===t&&(t={});var e=(0,i.pi)((0,i.pi)({},Zn),t);if(In(e),e.Vue||e.app)if(e.app){var n=Array.isArray(e.app)?e.app:[e.app];n.forEach((function(t){return ti(t,e)}))}else e.Vue&&ti(e.Vue,e);else Un&&a.kg.warn("Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}var ti=function(t,e){Wn(t,e),("tracesSampleRate"in e||"tracesSampler"in e)&&t.mixin(Jn((0,i.pi)((0,i.pi)({},e),e.tracingOptions)))}},1:(t,e,n)=>{"use strict";function i(t,e,n,i,r,a,o,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,{Z:()=>i})},500:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function p(t,e,n){return p=f()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),a=new r;return n&&d(a,n.prototype),a},p.apply(null,arguments)}function v(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function m(t){var e="function"===typeof Map?new Map:void 0;return m=function(t){if(null===t||!v(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return p(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},m(t)}function g(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function y(t,e){if(null==t)return{};var n,i,r=g(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?b(t):e}function w(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function k(t,e){return D(t)||O(t,e)||A()}function S(t){return D(t)||T(t)||A()}function x(t){return C(t)||T(t)||E()}function C(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function D(t){if(Array.isArray(t))return t}function T(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function O(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){r=!0,a=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function P(t){return t<0?-1:t>0?1:0}n.d(e,{ZP:()=>xv});var M=Math.sign||P;function R(t,e){return(t&e)===e}function I(t,e){return(t%e+e)%e}function N(t,e,n){return Math.max(e,Math.min(n,t))}function $(t,e){return e.split(".").reduce((function(t,e){return t?t[e]:null}),t)}function L(t,e,n){if(!t)return-1;if(!n||"function"!==typeof n)return t.indexOf(e);for(var i=0;i<t.length;i++)if(n(t[i],e))return i;return-1}var F=function(t){return"object"===i(t)&&!Array.isArray(t)},B=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i||!Object.assign){var r=function(t){return F(n[t])&&null!==e&&e.hasOwnProperty(t)&&F(e[t])},a=Object.getOwnPropertyNames(n).map((function(a){return s({},a,r(a)?t(e[a],n[a],i):n[a])})).reduce((function(t,e){return l({},t,{},e)}),{});return l({},e,{},a)}return Object.assign(e,n)},j=B,z={Android:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!==typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return z.Android()||z.BlackBerry()||z.iOS()||z.Opera()||z.Windows()}};function H(t){"undefined"!==typeof t.remove?t.remove():"undefined"!==typeof t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)}function V(t){var e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.width="100%";var n=document.createElement("div");return e.appendChild(n),n.appendChild(t),document.body.appendChild(e),e}function G(t){return t&&t._isVue}function W(t){return t?t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):t}function U(t){return t?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function Y(t,e){var n=JSON.parse(JSON.stringify(t)),i=function(t){return function(e,n){return t.map((function(t){var i=1;"-"===t[0]&&(i=-1,t=t.substring(1));var r=$(e,t),a=$(n,t);return r>a?i:r<a?-i:0})).reduce((function(t,e){return t||e}),0)}};return n.sort(i(e))}function q(t){return void 0===t?null:isNaN(t)?t:t+"px"}function X(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"long",n=[],i=0;i<12;i++)n.push(new Date(2e3,i,15));var r=new Intl.DateTimeFormat(t,{month:e});return n.map((function(t){return r.format(t)}))}function K(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"narrow",n=[],i=0;i<7;i++){var r=new Date(2e3,0,i+1);n[r.getDay()]=r}var a=new Intl.DateTimeFormat(t,{weekday:e});return n.map((function(t){return a.format(t)}))}function J(t,e){var n=e.match(t);return t.toString().match(/<(.+?)>/g).map((function(t){var e=t.match(/<(.+)>/);return!e||e.length<=0?null:t.match(/<(.+)>/)[1]})).reduce((function(t,e,i,r){return n&&n.length>i?t[e]=n[i+1]:t[e]=null,t}),{})}function Z(){return new Promise((function(t){var e=new Image;e.onerror=function(){return t(!1)},e.onload=function(){return t(1===e.width)},e.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((function(){return!1}))}function Q(t){return"shadowRoot"in t.$root.$options}var tt,et=function(t){return void 0!==t},nt=function(t){return null===t||void 0===t},it={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null},rt=function(t){it=t},at=function(t){tt=t};function ot(t,e,n,i,r,a,o,s,c,l){"boolean"!==typeof o&&(c=s,s=o,o=!1);var u,h="function"===typeof n?n.options:n;if(t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,r&&(h.functional=!0)),i&&(h._scopeId=i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):e&&(u=o?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(h.functional){var d=h.render;h.render=function(t,e){return u.call(e),d(t,e)}}else{var f=h.beforeCreate;h.beforeCreate=f?[].concat(f,u):[u]}return n}var st=ot,ct=function(t){"undefined"!==typeof window&&window.Vue&&window.Vue.use(t)},lt=function(t,e){t.component(e.name,e)},ut=function(t,e,n){t.prototype.$buefy||(t.prototype.$buefy={}),t.prototype.$buefy[e]=n},ht={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return it.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return it.defaultLocale}},statusIcon:{type:Boolean,default:function(){return it.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||it.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,e=0;e<3;e++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){var t=this.parentField||{},e=t.newType;if(e){if("string"===typeof e)return e;for(var n in e)if(e[n])return n}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var t=this.getElement();void 0!==t&&this.$nextTick((function(){t&&t.focus()}))},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},getElement:function(){var t=this.$refs[this.$data._elementRef];while(G(t))t=t.$refs[t.$data._elementRef];return t},setInvalid:function(){var t="is-danger",e=this.validationMessage||this.getElement().validationMessage;this.setValidity(t,e)},setValidity:function(t,e){var n=this;this.$nextTick((function(){n.parentField&&(n.parentField.type||(n.parentField.newType=t),n.parentField.message||(n.parentField.newMessage=e))}))},checkHtml5Validity:function(){if(this.useHtml5Validation){var t=this.getElement();if(void 0!==t)return t.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}},dt={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},ft=function(){var t=it&&it.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},pt=function(){var t={mdi:dt,fa:ft(),fas:ft(),far:ft(),fad:ft(),fab:ft(),fal:ft(),"fa-solid":ft(),"fa-regular":ft(),"fa-light":ft(),"fa-thin":ft(),"fa-duotone":ft(),"fa-brands":ft()};return it&&it.customIconPacks&&(t=j(t,it.customIconPacks,!0)),t},vt={name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var t=pt();return t[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||it.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"===typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1)){var n=t,i=S(n),r=i.slice(1);return"has-text-".concat(r.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||it.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}};const mt=vt;var gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?n(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):n("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.customClass]})],1)},yt=[];const bt=void 0,_t=void 0,wt=void 0,kt=!1;var St=st({render:gt,staticRenderFns:yt},bt,mt,_t,kt,wt,void 0,void 0),xt={name:"BInput",components:s({},St.name,St),mixins:[ht],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return it.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||it.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var t="";return this.icon&&(t+="has-icons-left "),this.hasIconRight&&(t+="has-icons-right"),t},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"===typeof this.computedValue?Array.from(this.computedValue).length:"number"===typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(t){this.newValue=t},type:function(t){this.newType=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((function(){t.focus()}))},iconClick:function(t,e){var n=this;this.$emit(t,e),this.$nextTick((function(){n.focus()}))},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)},onInput:function(t){if(!this.lazy){var e=t.target.value;this.updateValue(e)}},onChange:function(t){if(this.lazy){var e=t.target.value;this.updateValue(e)}},updateValue:function(t){this.computedValue=t,!this.isValid&&this.checkHtml5Validity()}}};const Ct=xt;var Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:t.rootClasses},["textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)):n("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)),t.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":t.iconClickable},attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize},nativeOn:{click:function(e){return t.iconClick("icon-click",e)}}}):t._e(),!t.loading&&t.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},attrs:{icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:""},nativeOn:{click:function(e){return t.rightIconClick(e)}}}):t._e(),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]):t._e()],1)},Tt=[];const Ot=void 0,Et=void 0,At=void 0,Pt=!1;var Mt=st({render:Dt,staticRenderFns:Tt},Ot,Ct,Et,Pt,At,void 0,void 0),Rt={name:"BAutocomplete",components:s({},Mt.name,Mt),mixins:[ht],inheritAttrs:!1,props:{value:[Number,String],data:{type:Array,default:function(){return[]}},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function,checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:function(){return["Tab","Enter"]}},selectableHeader:Boolean,selectableFooter:Boolean},data:function(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{computedData:function(){var t=this;if(this.groupField){if(this.groupOptions){var e=[];return this.data.forEach((function(n){var i=$(n,t.groupField),r=$(n,t.groupOptions);e.push({group:i,items:r})})),e}var n={};this.data.forEach((function(e){var i=$(e,t.groupField);n[i]||(n[i]=[]),n[i].push(e)}));var i=[];return Object.keys(n).forEach((function(t){i.push({group:t,items:n[t]})})),i}return[{items:this.data}]},isEmpty:function(){return!this.computedData||!this.computedData.some((function(t){return t.items&&t.items.length}))},whiteList:function(){var t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),void 0!==this.$refs.dropdown){var e=this.$refs.dropdown.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;t.push(s)}}catch(v){i=!0,r=v}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}if(this.$parent.$data._isTaginput){t.push(this.$parent.$el);var c=this.$parent.$el.querySelectorAll("*"),l=!0,u=!1,h=void 0;try{for(var d,f=c[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;t.push(p)}}catch(v){u=!0,h=v}finally{try{l||null==f.return||f.return()}finally{if(u)throw h}}}return t},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasGroupSlot:function(){return!!this.$scopedSlots.group},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},isOpenedTop:function(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight:function(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable:function(){return!!this.clearable||this.iconRightClickable},contentStyle:function(){return{maxHeight:q(this.maxHeight)}}},watch:{isActive:function(t){var e=this;"auto"===this.dropdownPosition&&(t?this.calcDropdownInViewportVertical():setTimeout((function(){e.calcDropdownInViewportVertical()}),100))},newValue:function(t){this.$emit("input",t);var e=this.getValue(this.selected);e&&e!==t&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&!t||(this.isActive=!!t)},value:function(t){this.newValue=t},data:function(){var t=this;if(this.keepFirst)this.$nextTick((function(){t.isActive?t.selectFirstOption(t.computedData):t.setHovered(null)}));else if(this.hovered){var e=this.getValue(this.hovered),n=this.computedData.map((function(t){return t.items})).reduce((function(t,e){return[].concat(x(t),x(e))}),[]);n.some((function(n){return t.getValue(n)===e}))||this.setHovered(null)}}},methods:{setHovered:function(t){void 0!==t&&(this.hovered=t)},setSelected:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(void 0!==t){if(this.selected=t,this.$emit("select",this.selected,i),null!==this.selected){if(this.clearOnSelect){var r=this.$refs.input;r.newValue="",r.$refs.input.value=""}else this.newValue=this.getValue(this.selected);this.setHovered(null)}n&&this.$nextTick((function(){e.isActive=!1})),this.checkValidity()}},selectFirstOption:function(t){var e=this;this.$nextTick((function(){var n=t.filter((function(t){return t.items&&t.items.length}));if(n.length){var i=n[0].items[0];e.setHovered(i)}else e.setHovered(null)}))},keydown:function(t){var e=t.key;if("Enter"===e&&t.preventDefault(),"Escape"!==e&&"Tab"!==e||(this.isActive=!1),this.confirmKeys.indexOf(e)>=0){","===e&&t.preventDefault();var n=!this.keepOpen||"Tab"===e;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(t,null,n);this.setSelected(this.hovered,n,t)}},selectHeaderOrFoterByClick:function(t,e){this.checkIfHeaderOrFooterSelected(t,{origin:e})},checkIfHeaderOrFooterSelected:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.selectableHeader&&(this.headerHovered||e&&"header"===e.origin)&&(this.$emit("select-header",t),this.headerHovered=!1,e&&this.setHovered(null),n&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||e&&"footer"===e.origin)&&(this.$emit("select-footer",t),this.footerHovered=!1,e&&this.setHovered(null),n&&(this.isActive=!1))},clickedOutside:function(t){var e=Q(this)?t.composedPath()[0]:t.target;!this.hasFocus&&this.whiteList.indexOf(e)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue:function(t){if(null!==t)return"undefined"!==typeof this.customFormatter?this.customFormatter(t):"object"===i(t)?$(t,this.field):t},checkIfReachedTheEndOfScroll:function(t){t.clientHeight!==t.scrollHeight&&t.scrollTop+t.clientHeight>=t.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick((function(){if(void 0!==t.$refs.dropdown){var e=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=e.top>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight),t.appendToBody&&t.updateAppendToBody()}}))},keyArrows:function(t){var e="down"===t?1:-1;if(this.isActive){var n,i=this.computedData.map((function(t){return t.items})).reduce((function(t,e){return[].concat(x(t),x(e))}),[]);this.hasHeaderSlot&&this.selectableHeader&&i.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&i.push(void 0),n=this.headerHovered?0+e:this.footerHovered?i.length-1+e:i.indexOf(this.hovered)+e,n=n>i.length-1?i.length-1:n,n=n<0?0:n,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==i[n]?i[n]:null),this.hasFooterSlot&&this.selectableFooter&&n===i.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===n&&(this.headerHovered=!0);var r=this.$refs.dropdown.querySelector(".dropdown-content"),a="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(a+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(a+=",div.dropdown-footer");var o=r.querySelectorAll(a)[n];if(!o)return;var s=r.scrollTop,c=r.scrollTop+r.clientHeight-o.clientHeight;o.offsetTop<s?r.scrollTop=o.offsetTop:o.offsetTop>=c&&(r.scrollTop=o.offsetTop-r.clientHeight+o.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(){var t=this.getValue(this.selected);t&&t===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(t){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",t)},checkValidity:function(){var t=this;this.useHtml5Validation&&this.$nextTick((function(){t.checkHtml5Validity()}))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.input.$el;if(t&&e){var n=this.$data._bodyEl;n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("autocomplete"),n.classList.add("control"),this.expandend&&n.classList.add("is-expandend");var i=e.getBoundingClientRect(),r=i.top+window.scrollY,a=i.left+window.scrollX;this.isOpenedTop?r-=t.clientHeight:r+=e.clientHeight,this.style={position:"absolute",top:"".concat(r,"px"),left:"".concat(a,"px"),width:"".concat(e.clientWidth,"px"),maxWidth:"".concat(e.clientWidth,"px"),zIndex:"99"}}}},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var t=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var e=this.$refs.dropdown.querySelector(".dropdown-content");e.addEventListener("scroll",(function(){return t.checkIfReachedTheEndOfScroll(e)}))}this.appendToBody&&(this.$data._bodyEl=V(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){if("undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var t=this.$refs.dropdown.querySelector(".dropdown-content");t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&H(this.$data._bodyEl)}};const It=Rt;var Nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[n("b-input",t._b({ref:"input",attrs:{type:t.type,size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":t.ariaAutocomplete},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick,"icon-click":function(e){return t.$emit("icon-click",e)}},nativeOn:{keydown:[function(e){return t.keydown(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.keyArrows("up"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.keyArrows("down"))}]},model:{value:t.newValue,callback:function(e){t.newValue=e},expression:"newValue"}},"b-input",t.$attrs,!1)),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&(!t.isEmpty||t.hasEmptySlot||t.hasHeaderSlot),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?n("div",{staticClass:"dropdown-item dropdown-header",class:{"is-hovered":t.headerHovered},attrs:{role:"button",tabindex:"0"},on:{click:function(e){return t.selectHeaderOrFoterByClick(e,"header")}}},[t._t("header")],2):t._e(),t._l(t.computedData,(function(e,i){return[e.group?n("div",{key:i+"group",staticClass:"dropdown-item"},[t.hasGroupSlot?t._t("group",null,{group:e.group,index:i}):n("span",{staticClass:"has-text-weight-bold"},[t._v(" "+t._s(e.group)+" ")])],2):t._e(),t._l(e.items,(function(e,r){return n("a",{key:i+":"+r,staticClass:"dropdown-item",class:{"is-hovered":e===t.hovered},attrs:{role:"button",tabindex:"0"},on:{click:function(n){return n.stopPropagation(),t.setSelected(e,!t.keepOpen,n)}}},[t.hasDefaultSlot?t._t("default",null,{option:e,index:r}):n("span",[t._v(" "+t._s(t.getValue(e,!0))+" ")])],2)}))]})),t.isEmpty&&t.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t.hasFooterSlot?n("div",{staticClass:"dropdown-item dropdown-footer",class:{"is-hovered":t.footerHovered},attrs:{role:"button",tabindex:"0"},on:{click:function(e){return t.selectHeaderOrFoterByClick(e,"footer")}}},[t._t("footer")],2):t._e()],2)])])],1)},$t=[];const Lt=void 0,Ft=void 0,Bt=void 0,jt=!1;var zt=st({render:Nt,staticRenderFns:$t},Lt,It,Ft,jt,Bt,void 0,void 0),Ht={install:function(t){lt(t,zt)}};ct(Ht);const Vt=Ht;var Gt={name:"BBreadcrumb",props:{align:{type:String,default:function(){return it.defaultBreadcrumbAlign}},separator:{type:String,default:function(){return it.defaultBreadcrumbSeparator}},size:{type:String,default:function(){return it.defaultBreadcrumbSize}}},computed:{breadcrumbClasses:function(){return["breadcrumb",this.align,this.separator,this.size]}}};const Wt=Gt;var Ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{class:t.breadcrumbClasses},[n("ul",[t._t("default")],2)])},Yt=[];const qt=void 0,Xt=void 0,Kt=void 0,Jt=!1;var Zt=st({render:Ut,staticRenderFns:Yt},qt,Wt,Xt,Jt,Kt,void 0,void 0),Qt={name:"BBreadcrumbItem",inheritAttrs:!1,props:{tag:{type:String,default:function(){return it.defaultBreadcrumbTag}},active:Boolean}};const te=Qt;var ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:{"is-active":t.active}},[n(t.tag,t._g(t._b({tag:"component"},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)],1)},ne=[];const ie=void 0,re=void 0,ae=void 0,oe=!1;var se=st({render:ee,staticRenderFns:ne},ie,te,re,oe,ae,void 0,void 0),ce={install:function(t){lt(t,Zt),lt(t,se)}};ct(ce);const le=ce;var ue={name:"BButton",components:s({},St.name,St),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return it.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0}},tag:{type:String,default:"button",validator:function(t){return it.defaultLinkTags.indexOf(t)>=0}}},computed:{computedTag:function(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize:function(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}};const he=ue;var de=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.computedTag,t._g(t._b({tag:"component",staticClass:"button",class:[t.size,t.type,{"is-rounded":t.rounded,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected}],attrs:{type:"button"===t.computedTag?t.nativeType:void 0}},"component",t.$attrs,!1),t.$listeners),[t.iconLeft?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconLeft,size:t.iconSize}}):t._e(),t.label?n("span",[t._v(t._s(t.label))]):t.$slots.default?n("span",[t._t("default")],2):t._e(),t.iconRight?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconRight,size:t.iconSize}}):t._e()],1)},fe=[];const pe=void 0,ve=void 0,me=void 0,ge=!1;var ye=st({render:de,staticRenderFns:fe},pe,he,ve,ge,me,void 0,void 0),be={install:function(t){lt(t,ye)}};ct(be);const _e=be;var we=1,ke=3,Se=ke,xe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return s({},"b"+t,this)}};return R(e,we)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(t){this.childItems.push(t)},_unregisterItem:function(t){this.childItems=this.childItems.filter((function(e){return e!==t}))}},R(e,ke)&&(n.watch={childItems:function(t){if(t.length>0&&this.$scopedSlots.default){var e=t[0].$vnode.tag,n=0,i=function i(r){var a=!0,o=!1,s=void 0;try{for(var c,l=function(){var r=c.value;if(r.tag===e){var a=t.find((function(t){return t.$vnode===r}));a&&(a.index=n++)}else if(r.tag){var o=r.componentInstance?r.componentInstance.$scopedSlots.default?r.componentInstance.$scopedSlots.default():r.componentInstance.$children:r.children;Array.isArray(o)&&o.length>0&&i(o.map((function(t){return t.$vnode})))}},u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0)l()}catch(h){o=!0,s=h}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}return!1};i(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort((function(t,e){return t.index-e.index}))}})),n},Ce=1,De=2,Te=Ce,Oe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={inject:{parent:{from:"b"+t,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!R(e,De))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+t)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return R(e,Ce)&&(n.data=function(){return{index:null}}),n},Ee={name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:function(){return it.defaultImageWebpFallback}},lazy:{type:Boolean,default:function(){return it.defaultImageLazy}},responsive:{type:Boolean,default:function(){return it.defaultImageResponsive}},ratio:{type:String,default:function(){return it.defaultImageRatio}},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:function(t,e,n){return"function"===typeof it.defaultImageSrcsetFormatter?it.defaultImageSrcsetFormatter(t,e):n.formatSrcset(t,e)}},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},data:function(){return{clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,bulmaKnownRatio:["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"],loaded:!1,failed:!1}},computed:{ratioPattern:function(){return new RegExp(/([0-9]+)by([0-9]+)/)},hasRatio:function(){return this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses:function(){var t={image:this.responsive};return this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)>=0&&(t["is-".concat(this.ratio)]=!0),t},figureStyles:function(){if(this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)<0){var t=this.ratioPattern.exec(this.ratio);return{paddingTop:"".concat(t[2]/t[1]*100,"%")}}},imgClasses:function(){return s({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass,!!this.customClass)},srcExt:function(){return this.getExt(this.src)},isWepb:function(){return"webp"===this.srcExt},computedSrc:function(){var t=this.src;return this.failed&&this.srcFallback&&(t=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?t.replace(/\.webp/gi,"".concat(this.webpFallback)):this.webpFallback:t},computedWidth:function(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy:function(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed:function(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt:function(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb:function(){if(this.placeholder)return"webp"===this.placeholderExt},computedPlaceholder:function(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,"".concat(this.webpFallback)):this.placeholder},isPlaceholderDisplayed:function(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset:function(){var t=this;return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,"".concat(this.webpFallback)):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((function(e){return"".concat(t.srcsetFormatter(t.computedSrc,e,t)," ").concat(e,"w")})).join(","):void 0},computedSizes:function(){if(this.computedSrcset&&this.computedWidth)return"".concat(this.computedWidth,"px")},isCaptionFirst:function(){return this.$slots.caption&&this.captionFirst},isCaptionLast:function(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t){var n=e?t.split("?")[0]:t;return n.split(".").pop()}return""},setWidth:function(){this.clientWidth=this.$el.clientWidth},formatSrcset:function(t,e){var n=this.getExt(t,!1),i=t.split(".").slice(0,-1).join(".");return"".concat(i,"-").concat(e,".").concat(n)},onLoad:function(t){this.loaded=!0,this.emit("load",t)},onError:function(t){this.emit("error",t),this.failed||(this.failed=!0)},emit:function(t,e){var n=e.target;this.$emit(t,e,n.currentSrc||n.src||this.computedSrc)}},created:function(){var t=this;if(this.isWepb&&Z().then((function(e){t.webpSupportVerified=!0,t.webpSupported=e})),this.lazy){var e="undefined"!==typeof window&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,n="undefined"!==typeof window&&"IntersectionObserver"in window;!e&&n?this.observer=new IntersectionObserver((function(e){var n=e[0],i=n.target,r=n.isIntersecting;r&&!t.inViewPort&&(t.inViewPort=!0,t.observer.unobserve(i))})):this.useNativeLazy=!0}},mounted:function(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!==typeof window&&window.addEventListener("resize",this.setWidth)},beforeDestroy:function(){this.observer&&this.observer.disconnect(),"undefined"!==typeof window&&window.removeEventListener("resize",this.setWidth)}};const Ae=Ee;var Pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("figure",{staticClass:"b-image-wrapper",class:t.figureClasses,style:t.figureStyles},[t.isCaptionFirst?n("figcaption",[t._t("caption")],2):t._e(),n("transition",{attrs:{name:"fade"}},[t.isDisplayed?n("img",{class:t.imgClasses,attrs:{srcset:t.computedSrcset,src:t.computedSrc,alt:t.alt,width:t.computedWidth,sizes:t.computedSizes,loading:t.computedNativeLazy},on:{load:t.onLoad,error:t.onError}}):t._e()]),n("transition",{attrs:{name:"fade"}},[t.isPlaceholderDisplayed?t._t("placeholder",[n("img",{staticClass:"placeholder",class:t.imgClasses,attrs:{src:t.computedPlaceholder,alt:t.alt}})]):t._e()],2),t.isCaptionLast?n("figcaption",[t._t("caption")],2):t._e()],1)},Me=[];const Re=void 0,Ie=void 0,Ne=void 0,$e=!1;var Le=st({render:Pe,staticRenderFns:Me},Re,Ae,Ie,$e,Ne,void 0,void 0),Fe={name:"BCarousel",components:s({},St.name,St),mixins:[xe("carousel",Se)],props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{transition:"next",activeChild:this.value||0,isPause:!1,dragX:!1,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev:function(){return this.repeat||0!==this.activeChild},hasNext:function(){return this.repeat||this.activeChild<this.childItems.length-1}},watch:{value:function(t){this.changeActive(t)},sortedItems:function(t){this.activeChild>=t.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},repeat:function(t){t&&this.startTimer()}},methods:{startTimer:function(){var t=this;this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((function(){!t.repeat&&t.activeChild>=t.childItems.length-1?t.pauseTimer():t.next()}),this.interval||it.defaultCarouselInterval))},pauseTimer:function(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=null)},restartTimer:function(){this.pauseTimer(),this.startTimer()},checkPause:function(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.activeChild===t||isNaN(t)||(e=e||t-this.activeChild,t=this.repeat?I(t,this.childItems.length):N(t,0,this.childItems.length-1),this.transition=e>0?"prev":"next",this.activeChild=t,t!==this.value&&this.$emit("input",t),this.restartTimer(),this.$emit("change",t))},modeChange:function(t,e){if(this.indicatorMode===t)return this.changeActive(e)},prev:function(){this.changeActive(this.activeChild-1,-1)},next:function(){this.changeActive(this.activeChild+1,1)},dragStart:function(t){this.hasDrag&&t.target.draggable&&(this.dragX=t.touches?t.changedTouches[0].pageX:t.pageX,t.touches?this.pauseTimer():t.preventDefault())},dragEnd:function(t){if(!1!==this.dragX){var e=t.touches?t.changedTouches[0].pageX:t.pageX,n=e-this.dragX;Math.abs(n)>30?n<0?this.next():this.prev():(t.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t.touches&&this.startTimer(),this.dragX=!1}}},mounted:function(){this.startTimer()},beforeDestroy:function(){this.pauseTimer()}};const Be=Fe;var je=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel",class:{"is-overlay":t.overlay},on:{mouseenter:t.checkPause,mouseleave:t.startTimer}},[t.progress?n("progress",{staticClass:"progress",class:t.progressType,attrs:{max:t.childItems.length-1},domProps:{value:t.activeChild}},[t._v(" "+t._s(t.childItems.length-1)+" ")]):t._e(),n("div",{staticClass:"carousel-items",on:{mousedown:t.dragStart,mouseup:t.dragEnd,touchstart:function(e){return e.stopPropagation(),t.dragStart(e)},touchend:function(e){return e.stopPropagation(),t.dragEnd(e)}}},[t._t("default"),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.prev(e)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.next(e)}}})],1):t._e()],2),t.autoplay&&t.pauseHover&&t.pauseInfo&&t.isPause?n("div",{staticClass:"carousel-pause"},[n("span",{staticClass:"tag",class:t.pauseInfoType},[t._v(" "+t._s(t.pauseText)+" ")])]):t._e(),t.withCarouselList&&!t.indicator?[t._t("list",null,{active:t.activeChild,switch:t.changeActive})]:t._e(),t.indicator?n("div",{staticClass:"carousel-indicator",class:t.indicatorClasses},t._l(t.sortedItems,(function(e,i){return n("a",{key:e._uid,staticClass:"indicator-item",class:{"is-active":e.isActive},on:{mouseover:function(e){return t.modeChange("hover",i)},click:function(e){return t.modeChange("click",i)}}},[t._t("indicators",[n("span",{staticClass:"indicator-style",class:t.indicatorStyle})],{i})],2)})),0):t._e(),t.overlay?[t._t("overlay")]:t._e()],2)},ze=[];const He=void 0,Ve=void 0,Ge=void 0,We=!1;var Ue=st({render:je,staticRenderFns:ze},He,Be,Ve,We,Ge,void 0,void 0),Ye={name:"BCarouselItem",mixins:[Oe("carousel",Te)],data:function(){return{transitionName:null}},computed:{transition:function(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive:function(){return this.parent.activeChild===this.index}}};const qe=Ye;var Xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"carousel-item"},[t._t("default")],2)])},Ke=[];const Je=void 0,Ze=void 0,Qe=void 0,tn=!1;var en,nn=st({render:Xe,staticRenderFns:Ke},Je,qe,Ze,tn,Qe,void 0,void 0),rn={name:"BCarouselList",components:(en={},s(en,St.name,St),s(en,Le.name,Le),en),props:{data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},breakpoints:{type:Object,default:function(){return{}}}},data:function(){return{activeItem:this.value,scrollIndex:this.asIndicator?this.scrollValue:this.value,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging:function(){return!1!==this.dragX},listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},translation:function(){return-N(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total:function(){return this.data.length-this.settings.itemsToShow},hasPrev:function(){return this.settings.repeat||this.scrollIndex>0},hasNext:function(){return this.settings.repeat||this.scrollIndex<this.total},breakpointKeys:function(){return Object.keys(this.breakpoints).sort((function(t,e){return e-t}))},settings:function(){var t=this,e=this.breakpointKeys.filter((function(e){if(t.windowWidth>=e)return!0}))[0];return e?l({},this.$props,{},this.breakpoints[e]):this.$props},itemWidth:function(){if(this.windowWidth){this.refresh_;var t=this.$el.getBoundingClientRect();return t.width/this.settings.itemsToShow}return 0}},watch:{value:function(t){this.switchTo(this.asIndicator?t-(this.itemsToShow-3)/2:t),this.activeItem!==t&&(this.activeItem=N(t,0,this.data.length-1))},scrollValue:function(t){this.switchTo(t)}},methods:{resized:function(){this.windowWidth=window.innerWidth},switchTo:function(t){t===this.scrollIndex||isNaN(t)||(this.settings.repeat&&(t=I(t,this.total+1)),t=N(t,0,this.total),this.scrollIndex=t,this.asIndicator||this.value===t?this.scrollIndex!==t&&this.$emit("updated:scroll",t):this.$emit("input",t))},next:function(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev:function(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator:function(t,e){if(this.asIndicator){var n=e.changedTouches?e.changedTouches[0].clientX:e.clientX;this.hold-Date.now()>2e3||Math.abs(this.dragX-n)>10||(this.dragX=!1,this.hold=0,e.preventDefault(),this.activeItem=t,this.$emit("switch",t))}},dragStart:function(t){this.dragging||!this.settings.hasDrag||0!==t.button&&"touchstart"!==t.type||(this.hold=Date.now(),this.touch=!!t.touches,this.dragX=this.touch?t.touches[0].clientX:t.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){if(this.dragging){var e=t.touches?(t.changedTouches[0]||t.touches[0]).clientX:t.clientX;this.delta=this.dragX-e,t.touches||t.preventDefault()}},dragEnd:function(){if(this.dragging||this.hold){if(this.hold){var t=M(this.delta),e=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+t*e)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh:function(){var t=this;this.$nextTick((function(){t.refresh_++}))}},mounted:function(){if("undefined"!==typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeDestroy:function(){"undefined"!==typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}};const an=rn;var on=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel-list",class:{"has-shadow":t.scrollIndex>0},on:{mousedown:function(e){return e.preventDefault(),t.dragStart(e)},touchstart:t.dragStart}},[n("div",{staticClass:"carousel-slides",class:t.listClass,style:"transform:translateX("+t.translation+"px)"},t._l(t.data,(function(e,i){return n("div",{key:i,staticClass:"carousel-slide",class:{"is-active":t.asIndicator?t.activeItem===i:t.scrollIndex===i},style:t.itemStyle,on:{mouseup:function(e){return t.checkAsIndicator(i,e)},touchend:function(e){return t.checkAsIndicator(i,e)}}},[t._t("item",[n("b-image",t._b({attrs:{src:e.image}},"b-image",e,!1))],{index:i,active:t.activeItem,scroll:t.scrollIndex,list:e},e)],2)})),0),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.settings.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.settings.iconPack,icon:t.settings.iconPrev,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.settings.iconPack,icon:t.settings.iconNext,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}})],1):t._e()])},sn=[];const cn=void 0,ln=void 0,un=void 0,hn=!1;var dn=st({render:on,staticRenderFns:sn},cn,an,ln,hn,un,void 0,void 0),fn={install:function(t){lt(t,Ue),lt(t,nn),lt(t,dn)}};ct(fn);const pn=fn;var vn={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}},mn={name:"BCheckbox",mixins:[vn],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"}}};const gn=mn;var yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.$refs.label.click())}]}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",autocomplete:t.autocomplete,disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue,"aria-labelledby":t.ariaLabelledby},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var a=t.nativeValue,o=t._i(n,a);i.checked?o<0&&(t.computedValue=n.concat([a])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}}),n("span",{staticClass:"check",class:t.type}),n("span",{staticClass:"control-label",attrs:{id:t.ariaLabelledby}},[t._t("default")],2)])},bn=[];const _n=void 0,wn=void 0,kn=void 0,Sn=!1;var xn=st({render:yn,staticRenderFns:bn},_n,gn,wn,Sn,kn,void 0,void 0),Cn={name:"BCheckboxButton",mixins:[vn],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}};const Dn=Cn;var Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[t.checked?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[t._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t.computedValue},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){var n=t.computedValue,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=t.nativeValue,o=t._i(n,a);i.checked?o<0&&(t.computedValue=n.concat([a])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}})],2)])},On=[];const En=void 0,An=void 0,Pn=void 0,Mn=!1;var Rn=st({render:Tn,staticRenderFns:On},En,Dn,An,Mn,Pn,void 0,void 0),In={install:function(t){lt(t,xn),lt(t,Rn)}};ct(In);const Nn=In;var $n={name:"BCollapse",model:{prop:"open",event:"update:open"},props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom"].indexOf(t)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(t){this.isOpen=t}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(t){var e=t("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),n=t("transition",{props:{name:this.animation}},[t("div",{staticClass:"collapse-content",attrs:{id:this.ariaId},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return t("div",{staticClass:"collapse"},"is-top"===this.position?[e,n]:[n,e])}};const Ln=$n,Fn=void 0,Bn=void 0,jn=void 0,zn=void 0;var Hn=st({},Fn,Ln,Bn,zn,jn,void 0,void 0),Vn={install:function(t){lt(t,Hn)}};ct(Vn);const Gn=Vn;var Wn,Un="AM",Yn="PM",qn="24",Xn="12",Kn=function(t,e){return e.dtf.format(t)},Jn=function(t,e){if(t){var n=null;if(e.computedValue&&!isNaN(e.computedValue)?n=new Date(e.computedValue):(n=e.timeCreator(),n.setMilliseconds(0)),e.dtf.formatToParts&&"function"===typeof e.dtf.formatToParts){var i=e.dtf.formatToParts(n).map((function(t){return"literal"===t.type?t.value.replace(/ /g,"\\s?"):"dayPeriod"===t.type?"((?!=<".concat(t.type,">)(").concat(e.amString,"|").concat(e.pmString,"|").concat(Un,"|").concat(Yn,"|").concat(Un.toLowerCase(),"|").concat(Yn.toLowerCase(),")?)"):"((?!=<".concat(t.type,">)\\d+)")})).join(""),r=J(i,t);if(r.hour=r.hour?parseInt(r.hour,10):null,r.minute=r.minute?parseInt(r.minute,10):null,r.second=r.second?parseInt(r.second,10):null,r.hour&&r.hour>=0&&r.hour<24&&r.minute&&r.minute>=0&&r.minute<59)return r.dayPeriod&&(r.dayPeriod.toLowerCase()===e.pmString.toLowerCase()||r.dayPeriod.toLowerCase()===Yn.toLowerCase())&&r.hour<12&&(r.hour+=12),n.setHours(r.hour),n.setMinutes(r.minute),n.setSeconds(r.second||0),n}var a=!1;if(e.hourFormat===Xn){var o=t.split(" ");t=o[0],a=o[1]===e.amString||o[1]===Un}var s=t.split(":"),c=parseInt(s[0],10),l=parseInt(s[1],10),u=e.enableSeconds?parseInt(s[2],10):0;return isNaN(c)||c<0||c>23||e.hourFormat===Xn&&(c<1||c>12)||isNaN(l)||l<0||l>59?null:(n.setSeconds(u),n.setMinutes(l),e.hourFormat===Xn&&(a&&12===c?c=0:a||12===c||(c+=12)),n.setHours(c),new Date(n.getTime()))}return null},Zn={mixins:[ht],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(t){return t===qn||t===Xn}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(t,e){return"function"===typeof it.defaultTimeFormatter?it.defaultTimeFormatter(t):Kn(t,e)}},timeParser:{type:Function,default:function(t,e){return"function"===typeof it.defaultTimeParser?it.defaultTimeParser(t):Jn(t,e)}},mobileNative:{type:Boolean,default:function(){return it.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"===typeof it.defaultTimeCreator?it.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:Un,PM:Yn,HOUR_FORMAT_24:qn,HOUR_FORMAT_12:Xn}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){this.dateSelected=t,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?Xn:qn)},sampleTime:function(){var t=this.timeCreator();return t.setHours(10),t.setSeconds(0),t.setMinutes(0),t.setMilliseconds(0),t},hourLiteral:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"hour"===e[n-1].type}));if(n)return n.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"minute"===e[n-1].type}));if(n)return n.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"second"===e[n-1].type}));if(n)return n.value}},amString:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime;t.setHours(10);var e=this.dtf.formatToParts(t).find((function(t){return"dayPeriod"===t.type}));if(e)return e.value}return Un},pmString:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime;t.setHours(20);var e=this.dtf.formatToParts(t).find((function(t){return"dayPeriod"===t.type}));if(e)return e.value}return Yn},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var t=[],e=this.isHourFormat24?24:12,n=0;n<e;n+=this.incrementHours){var i=n,r=i;this.isHourFormat24||(i=n+1,r=i,this.meridienSelected===this.amString?12===i&&(i=0):this.meridienSelected===this.pmString&&12!==i&&(i+=12)),t.push({label:this.formatNumber(r),value:i})}return t},minutes:function(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");for(var t=[],e=0;e<60;e+=this.incrementMinutes)t.push({label:this.formatNumber(e,!0),value:e});return t},seconds:function(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");for(var t=[],e=0;e<60;e+=this.incrementSeconds)t.push({label:this.formatNumber(e,!0),value:e});return t},meridiens:function(){return[this.amString,this.pmString]},isMobile:function(){return this.mobileNative&&z.any()},isHourFormat24:function(){return this.newHourFormat===qn}},watch:{hourFormat:function(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale:function(){this.value||(this.meridienSelected=this.amString)},value:{handler:function(t){this.updateInternalState(t),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(t){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(t===this.pmString?this.hoursSelected+=12:t===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,t)},onHoursChange:function(t){this.minutesSelected||"undefined"===typeof this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||"undefined"===typeof this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(t,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(t){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(t,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(t){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(t,10),this.meridienSelected)},updateDateSelected:function(t,e,n,i){if(null!=t&&null!=e&&(!this.isHourFormat24&&null!==i||this.isHourFormat24)){var r=null;this.computedValue&&!isNaN(this.computedValue)?r=new Date(this.computedValue):(r=this.timeCreator(),r.setMilliseconds(0)),r.setHours(t),r.setMinutes(e),r.setSeconds(n),isNaN(r.getTime())||(this.computedValue=new Date(r.getTime()))}},updateInternalState:function(t){t?(this.hoursSelected=t.getHours(),this.minutesSelected=t.getMinutes(),this.secondsSelected=t.getSeconds(),this.meridienSelected=t.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=t},isHourDisabled:function(t){var e=this,n=!1;if(this.minTime){var i=this.minTime.getHours(),r=this.minutes.every((function(n){return e.isMinuteDisabledForHour(t,n.value)}));n=t<i||r}if(this.maxTime&&!n){var a=this.maxTime.getHours();n=t>a}if(this.unselectableTimes&&!n){var o=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===t&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===e.secondsSelected:null!==e.minutesSelected&&(n.getHours()===t&&n.getMinutes()===e.minutesSelected)}));n=o.length>0||this.minutes.every((function(n){return e.unselectableTimes.filter((function(e){return e.getHours()===t&&e.getMinutes()===n.value})).length>0}))}return n},isMinuteDisabledForHour:function(t,e){var n=!1;if(this.minTime){var i=this.minTime.getHours(),r=this.minTime.getMinutes();n=t===i&&e<r}if(this.maxTime&&!n){var a=this.maxTime.getHours(),o=this.maxTime.getMinutes();n=t===a&&e>o}return n},isMinuteDisabled:function(t){var e=this,n=!1;if(null!==this.hoursSelected&&(n=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,t),this.unselectableTimes&&!n)){var i=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===e.hoursSelected&&n.getMinutes()===t&&n.getSeconds()===e.secondsSelected:n.getHours()===e.hoursSelected&&n.getMinutes()===t}));n=i.length>0}return n},isSecondDisabled:function(t){var e=this,n=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))n=!0;else{if(this.minTime){var i=this.minTime.getHours(),r=this.minTime.getMinutes(),a=this.minTime.getSeconds();n=this.hoursSelected===i&&this.minutesSelected===r&&t<a}if(this.maxTime&&!n){var o=this.maxTime.getHours(),s=this.maxTime.getMinutes(),c=this.maxTime.getSeconds();n=this.hoursSelected===o&&this.minutesSelected===s&&t>c}}if(this.unselectableTimes&&!n){var l=this.unselectableTimes.filter((function(n){return n.getHours()===e.hoursSelected&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===t}));n=l.length>0}}return n},onChange:function(t){var e=this.timeParser(t,this);this.updateInternalState(e),e&&!isNaN(e)?this.computedValue=e:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(t){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"===typeof t?t:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return this.formatNumber(n,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(r,!0)}return""},onChangeNativePicker:function(t){var e=t.target.value;if(e){var n=null;this.computedValue&&!isNaN(this.computedValue)?n=new Date(this.computedValue):(n=new Date,n.setMilliseconds(0));var i=e.split(":");n.setHours(parseInt(i[0],10)),n.setMinutes(parseInt(i[1],10)),n.setSeconds(i[2]?parseInt(i[2],10):0),this.computedValue=new Date(n.getTime())}else this.computedValue=null},formatNumber:function(t,e){return this.isHourFormat24||e?this.pad(t):t},pad:function(t){return(t<10?"0":"")+t},formatValue:function(t){return t&&!isNaN(t)?this.timeFormatter(t,this):null},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.toggle(!1)},onActiveChange:function(t){t||this.onBlur()}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}},Qn=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?t.querySelectorAll('*[tabindex="-1"]'):t.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},ti=function(t,e){var n=e.value,i=void 0===n||n;if(i){var r=Qn(t),a=Qn(t,!0);r&&r.length>0&&(Wn=function(e){r=Qn(t),a=Qn(t,!0);var n=r[0],i=r[r.length-1];e.target===n&&e.shiftKey&&"Tab"===e.key?(e.preventDefault(),i.focus()):(e.target===i||Array.from(a).indexOf(e.target)>=0)&&!e.shiftKey&&"Tab"===e.key&&(e.preventDefault(),n.focus())},t.addEventListener("keydown",Wn))}},ei=function(t){t.removeEventListener("keydown",Wn)},ni={bind:ti,unbind:ei},ii=["escape","outside"],ri={name:"BDropdown",directives:{trapFocus:ni},mixins:[xe("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return it.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(t){return["menu","list","dialog"].indexOf(t)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"===typeof this.canClose?this.canClose?ii:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?q(this.maxHeight):null,overflow:this.scrollable?"auto":null}},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(t){this.selected=t},isActive:function(t){var e=this;this.$emit("active-change",t),this.handleScroll(),this.appendToBody&&this.$nextTick((function(){e.updateAppendToBody()}))},isHoverable:function(t){this.hoverable&&this.$emit("active-change",t)}},methods:{handleScroll:function(){"undefined"!==typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem:function(t){this.multiple?(this.selected?-1===this.selected.indexOf(t)?this.selected=[].concat(x(this.selected),[t]):this.selected=this.selected.filter((function(e){return e!==t})):this.selected=[t],this.$emit("change",this.selected)):this.selected!==t&&(this.selected=t,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu)return!0;if(t===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var e=this.$refs.dropdownMenu.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(t===s)return!0}}catch(v){i=!0,r=v}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}if(void 0!==this.$refs.trigger){var c=this.$refs.trigger.querySelectorAll("*"),l=!0,u=!1,h=void 0;try{for(var d,f=c[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;if(t===p)return!0}}catch(v){u=!0,h=v}finally{try{l||null==f.return||f.return()}finally{if(u)throw h}}}return!1},clickedOutside:function(t){if(!(this.cancelOptions.indexOf("outside")<0)&&!this.inline){var e=Q(this)?t.composedPath()[0]:t.target;this.isInWhiteList(e)||(this.isActive=!1)}},keyPress:function(t){var e=t.key;if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){this.triggers.indexOf("click")<0||this.toggle()},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||(this.isHoverable=!0)},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var e=!t.isActive;t.isActive=e,setTimeout((function(){return t.isActive=e}))})))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.dropdownMenu,n=this.$refs.trigger;if(e&&n){var r=this.$data._bodyEl.children[0];if(r.classList.forEach((function(t){return r.classList.remove(t)})),r.classList.add("dropdown"),r.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&r.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if(t&&"object"===i(t))for(var e in t)t[e]&&r.classList.add(e)})),this.appendToBodyCopyParent){var a=this.$refs.dropdown.parentNode,o=this.$data._bodyEl;o.classList.forEach((function(t){return o.classList.remove(t)})),a.classList.forEach((function(t){o.classList.add(t)}))}var s=n.getBoundingClientRect(),c=s.top+window.scrollY,l=s.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?c+=n.clientHeight:c-=e.clientHeight,this.position&&this.position.indexOf("left")>=0&&(l-=e.clientWidth-n.clientWidth),this.style={position:"absolute",top:"".concat(c,"px"),left:"".concat(l,"px"),zIndex:"99",width:this.expanded?"".concat(t.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=V(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&H(this.$data._bodyEl)}};const ai=ri;var oi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:t.rootClasses,on:{mouseleave:function(e){t.isHoverable=!1}}},[t.inline?t._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{tabindex:!t.disabled&&0,"aria-haspopup":"true"},on:{click:t.onClick,contextmenu:function(e){return e.preventDefault(),t.onContextMenu(e)},mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)}}},[t._t("trigger",null,{active:t.isActive})],2),n("transition",{attrs:{name:t.animation}},[t.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!t.isActive}}):t._e()]),n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&(t.isActive||t.isHoverable)||t.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:t.style,attrs:{"aria-hidden":!t.isActive}},[n("div",{staticClass:"dropdown-content",style:t.contentStyle,attrs:{role:t.ariaRole,"aria-modal":!t.inline}},[t._t("default")],2)])])],1)},si=[];const ci=void 0,li=void 0,ui=void 0,hi=!1;var di=st({render:oi,staticRenderFns:si},ci,ai,li,hi,ui,void 0,void 0),fi={name:"BDropdownItem",mixins:[Oe("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!this.parent.disabled&&!this.separator&&!this.disabled&&!this.custom},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}};const pi=fi;var vi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.separator?n("hr",{staticClass:"dropdown-divider"}):t.custom||t.hasLink?n("div",{class:t.itemClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2):n("a",{staticClass:"dropdown-item",class:t.anchorClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2)},mi=[];const gi=void 0,yi=void 0,bi=void 0,_i=!1;var wi=st({render:vi,staticRenderFns:mi},gi,pi,yi,_i,bi,void 0,void 0),ki={name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(t){var e=this,n=!0;return t("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(i){return i.tag?(n&&(r=e.message,n=!1),t("b-field",{attrs:{type:e.type,message:r}},[i])):i;var r})))}};const Si=ki,xi=void 0,Ci=void 0,Di=void 0,Ti=void 0;var Oi=st({},xi,Si,Ci,Ti,Di,void 0,void 0),Ei={name:"BField",components:s({},Oi.name,Oi),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return it.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(void 0!==this.position){var t=this.position.split("-");if(!(t.length<1)){var e=this.grouped?"is-grouped-":"has-addons-";return this.position?e+t[1]:void 0}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if("string"===typeof this.newMessage)return[this.newMessage];var t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(e){if("string"===typeof e)t.push(e);else for(var n in e)e[n]&&t.push(n)}));else for(var e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((function(t){if(t)return t}))},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var t=this.$slots.default.filter((function(t){return t.tag&&t.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(t){var e=["has-numberinput"],n=t.componentOptions.propsData.controlsPosition,i=t.componentOptions.propsData.size;return n&&e.push("has-numberinput-".concat(n)),i&&e.push("has-numberinput-".concat(i)),e}}return null}},watch:{type:function(t){this.newType=t},message:function(t){this.newMessage=t},newMessage:function(t){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.message||(this.parent.newMessage=t))}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var t=0;return this.$slots.default&&(t=this.$slots.default.reduce((function(t,e){return e.tag?t+1:t}),0)),t>1&&this.addons&&!this.horizontal}},mounted:function(){if(this.horizontal){var t=this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider");t.length>0&&(this.fieldLabelSize="is-normal")}}};const Ai=Ei;var Pi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:t.rootClasses},[t.horizontal?n("div",{staticClass:"field-label",class:[t.customClass,t.fieldLabelSize]},[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()]):[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()],t.horizontal?n("b-field-body",{attrs:{message:t.newMessage?t.formattedMessage:"",type:t.newType}},[t._t("default")],2):t.hasInnerField?n("div",{staticClass:"field-body"},[n("b-field",{class:t.innerFieldClasses,attrs:{addons:!1,type:t.newType}},[t._t("default")],2)],1):[t._t("default")],t.hasMessage&&!t.horizontal?n("p",{staticClass:"help",class:t.newType},[t.$slots.message?t._t("message",null,{messages:t.formattedMessage}):[t._l(t.formattedMessage,(function(e,i){return[t._v(" "+t._s(e)+" "),i+1<t.formattedMessage.length?n("br",{key:i}):t._e()]}))]],2):t._e()],2)},Mi=[];const Ri=void 0,Ii=void 0,Ni=void 0,$i=!1;var Li=st({render:Pi,staticRenderFns:Mi},Ri,Ai,Ii,$i,Ni,void 0,void 0),Fi=40,Bi=5,ji={name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},data:function(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count:function(){return this.max-this.min+1},countPerRing:function(){return this.double?this.count/2:this.count},radius:function(){return this.pickerSize/2},outerRadius:function(){return this.radius-Bi-Fi/2},innerRadius:function(){return Math.max(.6*this.outerRadius,this.outerRadius-Bi-Fi)},degreesPerUnit:function(){return 360/this.countPerRing},degrees:function(){return this.degreesPerUnit*Math.PI/180},handRotateAngle:function(){var t=this.prevAngle;while(t<0)t+=360;var e=this.calcHandAngle(this.displayedValue),n=this.shortestDistanceDegrees(t,e),i=this.prevAngle+n;return i},handScale:function(){return this.calcHandScale(this.displayedValue)},handStyle:function(){return{transform:"rotate(".concat(this.handRotateAngle,"deg) scaleY(").concat(this.handScale,")"),transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue:function(){return null==this.inputValue?this.min:this.inputValue}},watch:{value:function(t){t!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=t}},methods:{isDisabled:function(t){return this.disabledValues&&this.disabledValues(t)},euclidean:function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},shortestDistanceDegrees:function(t,e){var n=(e-t)%360,i=180-Math.abs(Math.abs(n)-180);return(n+360)%360<180?1*i:-1*i},coordToAngle:function(t,e){var n=2*Math.atan2(e.y-t.y-this.euclidean(t,e),e.x-t.x);return Math.abs(180*n/Math.PI)},getNumberTranslate:function(t){var e=this.getNumberCoords(t),n=e.x,i=e.y;return"translate(".concat(n,"px, ").concat(i,"px)")},getNumberCoords:function(t){var e=this.isInnerRing(t)?this.innerRadius:this.outerRadius;return{x:Math.round(e*Math.sin((t-this.min)*this.degrees)),y:Math.round(-e*Math.cos((t-this.min)*this.degrees))}},getFaceNumberClasses:function(t){return{active:t.value===this.displayedValue,disabled:this.isDisabled(t.value)}},isInnerRing:function(t){return this.double&&t-this.min>=this.countPerRing},calcHandAngle:function(t){var e=this.degreesPerUnit*(t-this.min);return this.isInnerRing(t)&&(e-=360),e},calcHandScale:function(t){return this.isInnerRing(t)?this.innerRadius/this.outerRadius:1},onMouseDown:function(t){t.preventDefault(),this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(t){if(t.preventDefault(),this.isDragging||"click"===t.type){var e=this.$refs.clock.getBoundingClientRect(),n=e.width,i=e.top,r=e.left,a="touches"in t?t.touches[0]:t,o=a.clientX,s=a.clientY,c={x:n/2,y:-n/2},l={x:o-r,y:i-s},u=Math.round(this.coordToAngle(c,l)+360)%360,h=this.double&&this.euclidean(c,l)<(this.outerRadius+this.innerRadius)/2-16,d=Math.round(u/this.degreesPerUnit)+this.min+(h?this.countPerRing:0);u>=360-this.degreesPerUnit/2&&(d=h?this.max:this.min),this.update(d)}},update:function(t){this.inputValue===t||this.isDisabled(t)||(this.prevAngle=this.handRotateAngle,this.inputValue=t,this.$emit("input",t))}}};const zi=ji;var Hi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker-face",on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp,mousemove:t.onDragMove,touchstart:t.onMouseDown,touchend:t.onMouseUp,touchmove:t.onDragMove}},[n("div",{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[n("div",{staticClass:"b-clockpicker-face-hand",style:t.handStyle}),t._l(t.faceNumbers,(function(e,i){return n("span",{key:i,staticClass:"b-clockpicker-face-number",class:t.getFaceNumberClasses(e),style:{transform:t.getNumberTranslate(e.value)}},[n("span",[t._v(t._s(e.label))])])}))],2)])},Vi=[];const Gi=void 0,Wi=void 0,Ui=void 0,Yi=!1;var qi,Xi=st({render:Hi,staticRenderFns:Vi},Gi,zi,Wi,Yi,Ui,void 0,void 0),Ki=12,Ji={name:"BClockpicker",components:(qi={},s(qi,Xi.name,Xi),s(qi,Mt.name,Mt),s(qi,Li.name,Li),s(qi,St.name,St),s(qi,di.name,di),s(qi,wi.name,wi),qi),mixins:[Zn],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return it.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return it.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var t=this.hoursSelected;return this.meridienSelected===this.pmString&&(t-=12),0===t&&(t=12),t},minutesDisplay:function(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.pmString?12:0},maxFaceValue:function(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.amString?23:11:59},faceSize:function(){return this.pickerSize-2*Ki},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(t){this.isSelectingHour?(this.hoursSelected=t,this.onHoursChange(t)):(this.minutesSelected=t,this.onMinutesChange(t))},onClockChange:function(t){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(t){this.meridienSelected!==t&&(this.meridienSelected=t,this.onMeridienChange(t))},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()}}};const Zi=Ji;var Qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker control",class:[t.size,t.type,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){return t.checkHtml5Validity()}},nativeOn:{click:function(e){return t.onInputClick(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("div",{staticClass:"card",attrs:{disabled:t.disabled,custom:""}},[t.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursDisplay))]),n("span",[t._v(t._s(t.hourLiteral))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesDisplay))])]),t.isHourFormat24?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.amString||t.meridienSelected===t.AM},on:{click:function(e){return t.onMeridienClick(t.amString)}}},[t._v(t._s(t.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.pmString||t.meridienSelected===t.PM},on:{click:function(e){return t.onMeridienClick(t.pmString)}}},[t._v(t._s(t.pmString))])])])]):t._e(),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:t.faceSize+"px",height:t.faceSize+"px"}},[t.inline?t._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursLabel))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesLabel))])]),t.isHourFormat24||t.inline?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.amString||t.meridienSelected===t.AM},on:{click:function(e){return t.onMeridienClick(t.amString)}}},[t._v(t._s(t.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.pmString||t.meridienSelected===t.PM},on:{click:function(e){return t.onMeridienClick(t.pmString)}}},[t._v(t._s(t.pmString))])]),n("b-clockpicker-face",{attrs:{"picker-size":t.faceSize,min:t.minFaceValue,max:t.maxFaceValue,"face-numbers":t.isSelectingHour?t.hours:t.minutes,"disabled-values":t.faceDisabledValues,double:t.isSelectingHour&&t.isHourFormat24,value:t.isSelectingHour?t.hoursSelected:t.minutesSelected},on:{input:t.onClockInput,change:t.onClockChange}})],1)]),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[t._t("default")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle(!0)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},tr=[];const er=void 0,nr=void 0,ir=void 0,rr=!1;var ar=st({render:Qi,staticRenderFns:tr},er,Zi,nr,rr,ir,void 0,void 0),or={install:function(t){lt(t,ar)}};ct(or);const sr=or;var cr={name:"BSelect",components:s({},St.name,St),mixins:[ht],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}};const lr=cr;var ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[n("span",{staticClass:"select",class:t.spanClasses},[n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(e){t.$emit("blur",e)&&t.checkHtml5Validity()},focus:function(e){return t.$emit("focus",e)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.computedValue=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),[t.placeholder?[null==t.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v(" "+t._s(t.placeholder)+" ")]):t._e()]:t._e(),t._t("default")],2)]),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e()],1)},hr=[];const dr=void 0,fr=void 0,pr=void 0,vr=!1;var mr=st({render:ur,staticRenderFns:hr},dr,lr,fr,vr,pr,void 0,void 0),gr={name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:function(){return it.defaultTooltipType}},label:String,delay:{type:Number,default:function(){return it.defaultTooltipDelay}},closeDelay:{type:Number,default:function(){return it.defaultTooltipCloseDelay}},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["hover"]}},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},data:function(){return{isActive:!1,triggerStyle:{},timer:null,_bodyEl:void 0}},computed:{rootClasses:function(){return["b-tooltip",this.type,this.position,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation:function(){return this.animated?this.animation:void 0}},watch:{isActive:function(){this.$emit(this.isActive?"open":"close"),this.appendToBody&&this.updateAppendToBody()}},methods:{updateAppendToBody:function(){var t=this.$refs.tooltip,e=this.$refs.trigger;if(t&&e){var n=this.$data._bodyEl.children[0];n.classList.forEach((function(t){return n.classList.remove(t)})),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if("object"===i(t))for(var e in t)t[e]&&n.classList.add(e);else n.classList.add(t)}));var r=e.getBoundingClientRect(),a=r.top+window.scrollY,o=r.left+window.scrollX,s=e.clientHeight/2/2;switch(this.position){case"is-top":n.style.width="".concat(e.clientWidth,"px"),n.style.height="0px",a-=e.clientHeight-s;break;case"is-bottom":n.style.width="".concat(e.clientWidth,"px"),n.style.height="0px",a+=s;break;case"is-left":n.style.width="0px",n.style.height="".concat(e.clientHeight,"px");break;case"is-right":n.style.width="0px",n.style.height="".concat(e.clientHeight,"px"),o+=e.clientWidth;break}var c=this.$data._bodyEl;c.style.position="absolute",c.style.top="".concat(a,"px"),c.style.left="".concat(o,"px"),c.style.width="0px",c.style.zIndex=this.isActive||this.always?"99":"-1",this.triggerStyle={zIndex:this.isActive||this.always?"100":void 0}}},onClick:function(){var t=this;this.triggers.indexOf("click")<0||this.$nextTick((function(){setTimeout((function(){return t.open()}))}))},onHover:function(){this.triggers.indexOf("hover")<0||this.open()},onContextMenu:function(t){this.triggers.indexOf("contextmenu")<0||(t.preventDefault(),this.open())},onFocus:function(){this.triggers.indexOf("focus")<0||this.open()},open:function(){var t=this;this.delay?this.timer=setTimeout((function(){t.isActive=!0,t.timer=null}),this.delay):this.isActive=!0},close:function(){var t=this;"boolean"===typeof this.autoClose&&(this.autoClose&&this.timer&&clearTimeout(this.timer),this.closeDelay?this.timer=setTimeout((function(){t.isActive=!t.autoClose,t.timer=null}),this.closeDelay):this.isActive=!this.autoClose)},clickedOutside:function(t){if(this.isActive&&Array.isArray(this.autoClose)){if(this.autoClose.includes("outside")&&!this.isInWhiteList(t.target))return void(this.isActive=!1);this.autoClose.includes("inside")&&this.isInWhiteList(t.target)&&(this.isActive=!1)}},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList:function(t){if(t===this.$refs.content)return!0;if(void 0!==this.$refs.content){var e=this.$refs.content.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(t===s)return!0}}catch(c){i=!0,r=c}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}return!1}},mounted:function(){this.appendToBody&&"undefined"!==typeof window&&(this.$data._bodyEl=V(this.$refs.content),this.updateAppendToBody())},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&H(this.$data._bodyEl)}};const yr=gr;var br=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"tooltip",class:t.rootClasses},[n("transition",{attrs:{name:t.newAnimation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.active&&(t.isActive||t.always),expression:"active && (isActive || always)"}],ref:"content",class:["tooltip-content",t.contentClass]},[t.label?[t._v(t._s(t.label))]:t.$slots.content?[t._t("content")]:t._e()],2)]),n("div",{ref:"trigger",staticClass:"tooltip-trigger",style:t.triggerStyle,on:{click:t.onClick,contextmenu:t.onContextMenu,mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)},"!blur":function(e){return t.close(e)},mouseleave:t.close}},[t._t("default")],2)],1)},_r=[];const wr=void 0,kr=void 0,Sr=void 0,xr=!1;var Cr=st({render:br,staticRenderFns:_r},wr,yr,kr,xr,Sr,void 0,void 0),Dr=["red","green","blue","alpha"],Tr={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"},Or=function(t){function e(){return r(this,e),_(this,h(e).call(this,"ColorTypeError: type must be hex(a), rgb(a) or hsl(a)"))}return u(e,t),e}(m(Error)),Er=function(){function t(){var e=this;if(r(this,t),arguments.length>0)return t.parse.apply(t,arguments);this.$channels=new Uint8Array(Dr.length),Dr.forEach((function(t,n){Object.defineProperty(e,t,{get:function(){return e.$channels[n]},set:function(t){Number.isNaN(t/1)||(e.$channels[n]=Math.min(255,Math.max(0,t)))},enumerable:!0,configurable:!0})})),["hue","saturation","lightness"].forEach((function(t){var n=t.replace(/^./,(function(t){return t.toUpperCase()}));Object.defineProperty(e,t,{get:function(){return e["get".concat(n)]()},set:function(t){Number.isNaN(t/1)||e["set".concat(n)](t)},enumerable:!0,configurable:!0})}))}return o(t,[{key:"getHue",value:function(){var t=Array.from(this.$channels).map((function(t){return t/255})),e=k(t,3),n=e[0],i=e[1],r=e[2],a=[Math.min(n,i,r),Math.max(n,i,r)],o=a[0],s=a[1],c=s-o,l=0;if(0===c)return l;l=n===s?(i-r)/c%6:i===s?(r-n)/c+2:(n-i)/c+4,l*=60;while(l!==-1/0&&l<0)l+=360;return Math.round(l%360)}},{key:"setHue",value:function(e){for(var n=t.fromHSL(e,this.saturation,this.lightness,this.alpha/255),i=0;i<this.$channels.length;i++)this.$channels[i]=Number(n.$channels[i])}},{key:"getSaturation",value:function(){var t=Array.from(this.$channels).map((function(t){return t/255})),e=k(t,3),n=e[0],i=e[1],r=e[2],a=[Math.min(n,i,r),Math.max(n,i,r)],o=a[0],s=a[1],c=s-o;return 0!==c?Math.round(c/(1-Math.abs(2*this.lightness-1))*100)/100:0}},{key:"setSaturation",value:function(e){var n=this,i=t.fromHSL(this.hue,e,this.lightness,this.alpha/255);Dr.forEach((function(t,e){return n.$channels[e]=i.$channels[e]}))}},{key:"getLightness",value:function(){var t=Array.from(this.$channels).map((function(t){return t/255})),e=k(t,3),n=e[0],i=e[1],r=e[2],a=[Math.min(n,i,r),Math.max(n,i,r)],o=a[0],s=a[1];return Math.round((s+o)/2*100)/100}},{key:"setLightness",value:function(e){var n=this,i=t.fromHSL(this.hue,this.lightness,e,this.alpha/255);Dr.forEach((function(t,e){return n.$channels[e]=i.$channels[e]}))}},{key:"clone",value:function(){var e=this,n=new t;return Dr.forEach((function(t,i){return n.$channels[i]=e.$channels[i]})),n}},{key:"toString",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hex";switch(String(e).toLowerCase()){case"hex":return"#"+Dr.slice(0,3).map((function(e){return t[e].toString(16).padStart(2,"0")})).join("");case"hexa":return"#"+Dr.map((function(e){return t[e].toString(16).padStart(2,"0")})).join("");case"rgb":return"rgb(".concat(this.red,", ").concat(this.green,", ").concat(this.blue,")");case"rgba":return"rgba(".concat(this.red,", ").concat(this.green,", ").concat(this.blue,", ").concat(Math.round(this.alpha/2.55)/100,")");case"hsl":return"hsl(".concat(Math.round(this.hue),"deg, ").concat(Math.round(100*this.saturation),"%, ").concat(Math.round(100*this.lightness),"%)");case"hsla":return"hsla(".concat(Math.round(this.hue),"deg, ").concat(Math.round(100*this.saturation),"%, ").concat(Math.round(100*this.lightness),"%, ").concat(Math.round(this.alpha/2.55)/100,")");default:throw new Or}}},{key:Symbol.toString,get:function(){return this.toString("hex")}}],[{key:"parse",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("object"===i(n[0]))return t.parseObject(n[0]);if(n.every((function(t){return!Number.isNaN(t/1)}))){var a=new t;if(n.length>3)a.red=n[0],a.green=n[1],a.blue=n[2],n[3]&&(a.alpha=n[3]);else if(1===n.length){var o=Number(n[0]);return t.parseIndex(o,o>Math.pow(2,24)?3:4)}}else if("string"===typeof n[0]){var s=null;if("string"===typeof Tr[n[0].toLowerCase()])return t.parseHex(Tr[n[0].toLowerCase()]);if(null!==(s=n[0].match(/^(#|&h|0x)?(([a-f0-9]{3,4}){1,2})$/i)))return t.parseHex(s[2]);if(null!==(s=n[0].match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(\s*,\s*(\d*\.?\d+))?\s*\)$/i))){var c=[s[1],s[2],s[3],"undefined"!==typeof s[5]?s[5]:1];return t.fromRGB.apply(t,x(c.map((function(t){return Number(t)}))))}if(s=n[0].match(/^(h(sl|wb)a?|lab|color|cmyk)\(/i))throw new Error("Color expression not implemented yet")}return new t}},{key:"parseObject",value:function(e){var n=new t;return null===e||"object"!==i(e)?n:t.isColor(e)?e.clone():(Dr.forEach((function(t){Number.isNaN(e[t])||(n[t]=e[t])})),n)}},{key:"parseHex",value:function(e){if("string"!==typeof e)throw new Error("Hex expression must be a string");if(e=e.trim().replace(/^(0x|&h|#)/i,""),3!==e.length&&4!==e.length||(e=e.split("").map((function(t){return t.repeat(2)})).join("")),6!==e.length&&8!==e.length)throw new Error("Incorrect Hex expression length");var n=e.split(/(..)/).filter((function(t){return t})).map((function(t){return Number.parseInt(t,16)}));return"number"===typeof n[3]&&(n[3]/=255),t.fromRGB.apply(t,x(n))}},{key:"parseIndex",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=new t,r=0;r<4;r++)i[Dr[r]]=e>>8*(n-r)&&255;return i}},{key:"fromRGB",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if([e,n,i,r].some((function(t){return Number.isNaN(t/1)})))throw new Error("Invalid arguments");r*=255;var a=new t;return[e,n,i,r].forEach((function(t,e){a[Dr[e]]=t})),a}},{key:"fromHSL",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if([e,n,i,r].some((function(t){return Number.isNaN(t)})))throw new Error("Invalid arguments");while(e<0&&e!==-1/0)e+=360;e%=360,n=Math.max(0,Math.min(1,n)),i=Math.max(0,Math.min(1,i)),r=Math.max(0,Math.min(1,r));var a=(1-Math.abs(2*i-1))*n,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c=e<60?[a,o,0]:e<120?[o,a,0]:e<180?[0,a,o]:e<240?[0,o,a]:e<300?[o,0,a]:[a,0,o],l=k(c,3),u=l[0],h=l[1],d=l[2];return t.fromRGB(255*(u+s),255*(h+s),255*(d+s),r)}},{key:"isColor",value:function(e){return e instanceof t}}]),t}(),Ar=.86602540378,Pr=.5,Mr=0,Rr={name:"BColorpickerHSLRepresentationTriangle",props:{value:{type:Object,required:!0,validator:function(t){return"number"===typeof t.hue&&"number"===typeof t.saturation&&"number"===typeof t.lightness}},size:{type:Number,default:200},thickness:{type:Number,default:20}},data:function(){return{id:Mr++,hue:this.value.hue,saturation:this.value.saturation,lightness:this.value.lightness,captureMouse:!1,captureType:"hue",clientOffset:{cx:-1,cy:-1,width:0,height:0},cos30:Ar,sin30:Pr,debounce:0}},computed:{viewBox:function(){var t=this.size;return"0 0 ".concat(t," ").concat(t)},internalRadius:function(){return this.size/2-this.thickness},haloPath:function(){var t=this.size,e=this.thickness,n=t/2-2,i=n-e,r=t/2;return"M".concat(r-n," ").concat(r,"a").concat(n," ").concat(n," 0 1 1 ").concat(2*n," 0")+"h".concat(-e)+"a".concat(-i," ").concat(i," 0 1 0 ").concat(-2*i," 0")+"a".concat(i," ").concat(i," 0 1 0 ").concat(2*i," 0")+"h".concat(e)+"a".concat(n," ").concat(n," 0 1 1 ").concat(-2*n," 0z")},trianglePath:function(){var t=this.size,e=this.thickness,n=t-4,i=(n-2*e)/2;return"M0 ".concat(-i)+"L".concat(Ar*i," ").concat(Pr*i)+"H".concat(-Ar*i,"z")}},watch:{captureMouse:function(t,e){if(!1===e&&!1!==t){var n=this.$el.getBoundingClientRect();this.clientOffset.cx=n.x+n.width/2,this.clientOffset.cy=n.y+n.height/2,this.clientOffset.width=n.width,this.clientOffset.height=n.height}},value:{deep:!0,handler:function(t){var e=this,n=t.hue,i=t.saturation,r=t.lightness;window.clearTimeout(this.debounce),this.debounce=window.setTimeout((function(){r>=.03&&r<=.97&&i>0&&(e.hue=n),e.saturation=i,e.lightness=r}),200)}}},methods:{increaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(this.hue+t)%360},decreaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(360+this.hue-t)%360},increaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation+t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},decreaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation-t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},increaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness+t))},decreaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness-t))},hueKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseHue(),e=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseHue(),e=!0;break;case"Home":this.increaseHue(360-this.hue),e=!0;break;case"End":this.decreaseHue(this.hue),e=!0;break;case"PageUp":this.increaseHue(60-this.hue%60),e=!0;break;case"PageDown":this.decreaseHue(60+this.hue%60),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},slKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":this.decreaseLightness(),e=!0;break;case"ArrowUp":this.increaseSaturation(),e=!0;break;case"ArrowLeft":this.increaseLightness(),e=!0;break;case"ArrowDown":this.decreaseSaturation(),e=!0;break;case"Home":this.increaseLightness(1-this.lightness),e=!0;break;case"End":this.decreaseLightness(this.lightness),e=!0;break;case"PageUp":this.increaseSaturation(1-this.saturation),e=!0;break;case"PageDown":this.decreaseSaturation(this.saturation),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},clickHue:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.hueCursor.focus()},clickSL:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.slCursor.focus()},trackMouse:function(t){if(!1!==this.captureMouse){t.preventDefault(),t.stopPropagation();var e=0,n=0;if("undefined"!==typeof t.touches&&t.touches.length){var i=[t.touches[0].clientX,t.touches[0].clientY];e=i[0],n=i[1]}else{var r=[t.clientX,t.clientY];e=r[0],n=r[1]}var a=Math.atan2(n-this.clientOffset.cy,e-this.clientOffset.cx);if("sl"===this.captureType){var o=Math.sqrt(Math.pow(e-this.clientOffset.cx,2)+Math.pow(n-this.clientOffset.cy,2)),s=this.size/this.clientOffset.width,c=o*Math.cos(a-this.hue/180*Math.PI)*s,l=o*Math.sin(a-this.hue/180*Math.PI)*s,u=this.internalRadius,h=1-(Math.min(u*Pr,Math.max(-u,l))+u)/(u+u*Pr),d=(Math.min(u*Ar*(1-h),Math.max(-u*Ar*(1-h),c))+u*Ar)/(2*u*Ar);this.saturation=Math.round(1e3*h)/1e3,this.lightness=1-Math.round(1e3*d)/1e3}else this.hue=Math.round(a/Math.PI*180+90)%360;this.emitColor()}},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0,null!==t.target.closest(".colorpicker-triangle-slider-sl")?this.captureType="sl":this.captureType="hue"},stopMouseCapture:function(t){!1!==this.captureMouse&&(t.preventDefault(),t.stopPropagation(),this.$refs["sl"===this.captureType?"slCursor":"hueCursor"].focus()),this.captureMouse=!1},emitColor:function(){var t=this.hue,e=this.saturation,n=this.lightness;this.$emit("input",Er.fromHSL(t,e,n)),window.clearTimeout(this.debounce)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const Ir=Rr;var Nr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"b-colorpicker-triangle",attrs:{viewBox:t.viewBox}},[n("defs",[n("linearGradient",{attrs:{id:"cp-triangle-gradient-ligthness-"+t.id,x1:"0",y1:"0",x2:"1",y2:"0"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff"}}),n("stop",{attrs:{offset:"100%","stop-color":"#000"}})],1),n("linearGradient",{attrs:{id:"cp-triangle-gradient-saturation-"+t.id,x1:"0",y1:"0",x2:"0",y2:"1"}},[n("stop",{attrs:{offset:"0%","stop-color":"hsl("+t.hue+"deg, 100%, 50%)","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"hsl("+t.hue+"deg, 100%, 50%)","stop-opacity":"0"}})],1),n("clipPath",{attrs:{id:"cp-triangle-clip-"+t.id}},[n("path",{attrs:{d:t.haloPath}})])],1),n("g",{staticClass:"colorpicker-triangle-slider-hue"},[n("foreignObject",{attrs:{x:0,y:0,width:t.size,height:t.size,"clip-path":"url(#cp-triangle-clip-"+t.id+")"}},[n("div",{staticClass:"colorpicker-triangle-hue",on:{click:t.clickHue,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})]),n("g",{style:"transform: rotate("+t.hue+"deg)"},[n("foreignObject",{attrs:{x:t.size/2-4,y:0,width:"8",height:t.thickness+4}},[n("div",{ref:"hueCursor",staticClass:"hue-range-thumb",style:"background-color: hsl("+t.hue+"deg, 100%, 50%)",attrs:{role:"slider",tabindex:"0","aria-label":"Hue","aria-valuemin":"0","aria-valuenow":t.hue,"aria-valuemax":"360"},on:{click:t.clickHue,keydown:t.hueKeyPress,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})])],1)],1),n("g",{staticClass:"colorpicker-triangle-slider-sl",style:"transform: rotate("+t.hue+"deg) translate(50%, 50%)",attrs:{role:"graphics-datagroup","aria-datascales":"lightness, saturation"}},[n("path",{attrs:{d:t.trianglePath,fill:"url(#cp-triangle-gradient-ligthness-"+t.id+")"}}),n("path",{staticStyle:{"mix-blend-mode":"overlay"},attrs:{d:t.trianglePath,fill:"url(#cp-triangle-gradient-saturation-"+t.id+")"},on:{click:t.clickSL,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}}),n("foreignObject",{attrs:{x:(t.internalRadius-3)*t.cos30*(.5-t.lightness)*2-6,y:-t.internalRadius+(1-t.saturation)*(t.internalRadius-3)*1.5-3,width:"12",height:"12"}},[n("div",{ref:"slCursor",staticClass:"sl-range-thumb",style:{backgroundColor:"hsl("+t.hue+"deg, "+100*t.saturation+"%, "+100*t.lightness+"%)"},attrs:{tabindex:"0","aria-datavalues":100*t.saturation+"%, "+100*t.lightness+"%"},on:{click:t.clickSL,keydown:t.slKeyPress,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})])],1)])},$r=[];const Lr=void 0,Fr=void 0,Br=void 0,jr=!1;var zr=st({render:Nr,staticRenderFns:$r},Lr,Ir,Fr,jr,Br,void 0,void 0);function Hr(){var t=w(["","px"]);return Hr=function(){return t},t}function Vr(){var t=w(["","px"]);return Vr=function(){return t},t}function Gr(){var t=w(["","px"]);return Gr=function(){return t},t}var Wr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=[];return t.forEach((function(t,e){r.push(t),n[e]&&r.push(Number.isNaN(n[e]/1)?n[e]:Math.round(10*n)/10)})),r.join("")},Ur={name:"BColorpickerHSLRepresentationSquare",props:{value:{type:Object,required:!0,validator:function(t){return"number"===typeof t.hue&&"number"===typeof t.saturation&&"number"===typeof t.lightness}},size:{type:Number,default:200},thickness:{type:Number,default:20}},data:function(){return{hue:this.value.hue,saturation:this.value.saturation,lightness:this.value.lightness,captureMouse:!1,captureType:"hue",clientOffset:{cx:-1,cy:-1,width:0,height:0},debounce:0}},computed:{hueThumbStyle:function(){var t=this.hue,e=this.size,n=this.thickness,i=e-n,r=e/2,a=(t+720+90)%360/180*Math.PI,o=1/Math.cos(Math.PI/4),s={x:-Math.min(1,Math.max(-1,o*Math.cos(a)))/2*i+r,y:-Math.min(1,Math.max(-1,o*Math.sin(a)))/2*i+r},c=s.x,l=s.y;return{background:"hsl(".concat(t,"deg, 100%, 50%)"),left:Wr(Gr(),c),top:Wr(Vr(),l),width:Wr(Hr(),n-2)}},slThumbStyle:function(){var t=this.hue,e=this.saturation,n=this.lightness;return e=Math.max(0,Math.min(1,e)),n=Math.max(0,Math.min(1,n)),{background:"hsl(".concat(t,"deg, ").concat(100*e,"%, ").concat(100*n,"%)"),left:"".concat(100*e,"%"),top:"".concat(100*(1-n),"%")}},SLBackground:function(){var t=this.hue;return"linear-gradient(90deg, hsl(".concat(t,"deg, 0%, 50%), hsl(").concat(t,"deg, 100%, 50%))")}},watch:{captureMouse:function(t,e){if(!1===e&&!1!==t){var n=this.$el.getBoundingClientRect();this.clientOffset.cx=n.x+n.width/2,this.clientOffset.cy=n.y+n.height/2,this.clientOffset.width=n.width,this.clientOffset.height=n.height}},value:{deep:!0,handler:function(t){var e=this,n=t.hue,i=t.saturation,r=t.lightness;window.clearTimeout(this.debounce),this.debounce=window.setTimeout((function(){e.hue=n,e.saturation=i,e.lightness=r}),200)}}},methods:{increaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(this.hue+t)%360},decreaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(360+this.hue-t)%360},increaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation+t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},decreaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation-t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},increaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness+t))},decreaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness-t))},hueKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseHue(),e=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseHue(),e=!0;break;case"Home":this.increaseHue(360-this.hue),e=!0;break;case"End":this.decreaseHue(this.hue),e=!0;break;case"PageUp":this.increaseHue(60-this.hue%60),e=!0;break;case"PageDown":this.decreaseHue(60+this.hue%60),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},slKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":this.increaseSaturation(),e=!0;break;case"ArrowUp":this.increaseLightness(),e=!0;break;case"ArrowLeft":this.decreaseSaturation(),e=!0;break;case"ArrowDown":this.decreaseLightness(),e=!0;break;case"Home":this.increaseLightness(1-this.lightness),e=!0;break;case"End":this.decreaseLightness(this.lightness),e=!0;break;case"PageUp":this.increaseSaturation(1-this.saturation),e=!0;break;case"PageDown":this.decreaseSaturation(this.saturation),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0,null!==t.target.closest(".colorpicker-square-slider-sl")?this.captureType="sl":this.captureType="hue"},stopMouseCapture:function(t){!1!==this.captureMouse&&(t.preventDefault(),t.stopPropagation(),this.$refs["sl"===this.captureType?"slCursor":"hueCursor"].focus()),this.captureMouse=!1},clickHue:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.hueCursor.focus()},clickSL:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.slCursor.focus()},trackMouse:function(t){if(!1!==this.captureMouse){t.preventDefault(),t.stopPropagation();var e=0,n=0;if("undefined"!==typeof t.touches&&t.touches.length){var i=[t.touches[0].clientX,t.touches[0].clientY];e=i[0],n=i[1]}else{var r=[t.clientX,t.clientY];e=r[0],n=r[1]}var a=Math.atan2(n-this.clientOffset.cy,e-this.clientOffset.cx);if("sl"===this.captureType){var o=(e-this.clientOffset.cx)/(this.clientOffset.width-2*this.thickness)+.5,s=(n-this.clientOffset.cy)/(this.clientOffset.height-2*this.thickness)+.5;this.saturation=Math.round(1e3*Math.min(1,Math.max(0,o)))/1e3,this.lightness=1-Math.round(1e3*Math.min(1,Math.max(0,s)))/1e3}else this.hue=Math.round(a/Math.PI*180+90)%360;this.emitColor()}},emitColor:function(){var t=this.hue,e=this.saturation,n=this.lightness;this.$emit("input",Er.fromHSL(t,e,n)),window.clearTimeout(this.debounce)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const Yr=Ur;var qr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-colorpicker-square",style:{width:t.size+"px"}},[n("div",{staticClass:"colorpicker-square-slider-hue",on:{click:t.clickHue,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}},[n("div",{ref:"hueCursor",staticClass:"hue-range-thumb",style:t.hueThumbStyle,attrs:{role:"slider",tabindex:"0","aria-label":"Hue","aria-valuemin":"0","aria-valuemax":"359"}})]),n("div",{staticClass:"colorpicker-square-slider-sl",style:{background:t.SLBackground,margin:t.thickness+"px"},attrs:{"aria-datascales":"lightness, saturation"},on:{click:t.clickSL,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}},[n("div",{ref:"slCursor",staticClass:"sl-range-thumb",style:t.slThumbStyle,attrs:{role:"slider",tabindex:"0","aria-datavalues":100*t.saturation+"%, "+100*t.lightness+"%"},on:{click:t.clickSL,keydown:t.slKeyPress,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})])])},Xr=[];const Kr=void 0,Jr=void 0,Zr=void 0,Qr=!1;var ta=st({render:qr,staticRenderFns:Xr},Kr,Yr,Jr,Qr,Zr,void 0,void 0),ea={name:"BColorpickerAlphaSlider",components:s({},Cr.name,Cr),props:{value:{type:Number,validator:function(t){return t>=0&&t<256}},color:[String,Object]},data:function(){var t=Er.parse(this.color);return t.alpha=0,{startColor:t.toString("hex"),endColor:t.toString("hexa"),percent:Math.round(100*(1-this.value/255)),captureMouse:!1,clientOffset:{cx:-1,cy:-1,width:0,height:0}}},computed:{style:function(){return{backgroundImage:"linear-gradient(90deg, ".concat(this.startColor," 0%, ").concat(this.endColor," 100%),\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7),\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7)"),backgroundSize:"100% 100%, 1em 1em, 1em 1em",backgroundPosition:"0 0, .5em .5em, 0 0"}}},watch:{value:function(t,e){t!==e&&(this.percent=Math.round(100*(1-t/255)))},color:function(t){var e=Er.parse(t);e.alpha=0,this.startColor=e.toString("hex"),this.endColor=e.toString("hexa")},captureMouse:function(t,e){if(!1===e&&!1!==t){var n=this.$el.getBoundingClientRect();this.clientOffset.cx=n.x+n.width/2,this.clientOffset.cy=n.y+n.height/2,this.clientOffset.width=n.width,this.clientOffset.height=n.height}}},methods:{increaseAlpha:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.percent=Math.max(0,Math.min(100,this.percent+t))},decreaseAlpha:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.increaseAlpha(-t)},alphaKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseAlpha(),e=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseAlpha(),e=!0;break;case"Home":this.decreaseAlpha(this.percent),e=!0;break;case"End":this.increaseAlpha(100-this.percent),e=!0;break;case"PageUp":this.increaseAlpha(10-this.percent%10),e=!0;break;case"PageDown":this.decreaseAlpha(this.percent%10),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitAlpha())},clickAlpha:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.alphaCursor.focus()},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0},trackMouse:function(t){if(!1!==this.captureMouse){t.preventDefault(),t.stopPropagation();var e=[0,0],n=e[0];if("undefined"!==typeof t.touches&&t.touches.length){var i=[t.touches[0].clientX];n=i[0]}else{var r=[t.clientX];n=r[0]}var a=.5+(this.clientOffset.cx-n)/this.clientOffset.width;this.percent=Math.round(100-100*Math.max(0,Math.min(1,a))),this.emitAlpha()}},stopMouseCapture:function(t){!1!==this.captureMouse&&(t.preventDefault(),t.stopPropagation(),this.$refs.alphaCursor.focus()),this.captureMouse=!1},emitAlpha:function(){this.$emit("input",255*(1-this.percent/100))}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const na=ea;var ia=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-colorpicker-alpha-slider",style:t.style,on:{click:t.clickAlpha,keydown:t.alphaKeyPress,mousedown:t.startMouseCapture,touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}},[n("div",{ref:"alphaCursor",staticClass:"alpha-range-thumb",style:{left:t.percent+"%"},attrs:{role:"slider",tabindex:"0","aria-label":"Tranparency","aria-valuemin":"0","aria-valuenow":t.percent,"aria-valuemax":"100"}},[n("b-tooltip",{attrs:{label:t.percent+"%",always:t.captureMouse}})],1)])},ra=[];const aa=void 0,oa=void 0,sa=void 0,ca=!1;var la,ua=st({render:ia,staticRenderFns:ra},aa,na,oa,ca,sa,void 0,void 0),ha=function(t,e){return t.alpha<1?t.toString("hexa"):t.toString("hex")},da=function(t,e){return Er.parse(t)},fa={name:"BColorpicker",components:(la={},s(la,zr.name,zr),s(la,ta.name,ta),s(la,ua.name,ua),s(la,Mt.name,Mt),s(la,Li.name,Li),s(la,mr.name,mr),s(la,St.name,St),s(la,di.name,di),s(la,wi.name,wi),la),mixins:[ht],inheritAttrs:!1,provide:function(){return{$colorpicker:this}},props:{value:{type:[String,Object],validator:function(t){return"string"===typeof t||"object"===i(t)&&"number"===typeof t.red&&"number"===typeof t.green&&"number"===typeof t.blue}},representation:{type:String,default:"triangle",value:function(t){return["triangle","square"].some((function(e){return e===t}))}},inline:Boolean,disabled:Boolean,horizontalColorPicker:{type:Boolean,default:!1},colorFormatter:{type:Function,default:function(t,e){return"function"===typeof it.defaultColorFormatter?it.defaultColorFormatter(t):ha(t)}},colorParser:{type:Function,default:function(t,e){return"function"===typeof it.defaultColorParser?it.defaultColorParser(t):da(t)}},alpha:{type:Boolean,default:!1},expanded:Boolean,position:String,mobileModal:{type:Boolean,default:function(){return it.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},appendToBody:Boolean},data:function(){var t=this.colorParser(this.value);return{colorSelected:t}},computed:{background:function(){if(this.alpha)return"linear-gradient(\n 45deg,\n ".concat(this.colorSelected.toString("hex")," 50%,\n ").concat(this.colorSelected.toString("hexa")," 50%\n )");var t=this.colorSelected.toString("hex");return"linear-gradient(\n 45deg,\n ".concat(t," 50%,\n ").concat(t," 50%\n )")},triggerStyle:function(){var t=this.colorSelected,e=t.red,n=t.green,i=t.blue,r=.299*e+.587*n+.114*i>186;return{backgroundColor:"#ffffff",backgroundImage:"\n ".concat(this.background,",\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7),\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7)\n "),backgroundSize:"100% 100%, 16px 16px, 16px 16px",backgroundPosition:"0 0, 8px 8px, 0 0",color:r?"#000000":"#FFFFFF",textShadow:"0 0 2px ".concat(r?"#FFFFFFAA":"#000000AA")}},isMobile:function(){return this.mobileNative&&z.any()},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.colorSelected=new Er(t)}},methods:{updateColor:function(t){t.alpha=this.colorSelected.alpha,this.colorSelected=t,this.$emit("input",t)},updateAlpha:function(t){this.colorSelected.alpha=t,this.$emit("input",this.colorSelected)},formatValue:function(t){return t?this.colorFormatter(t,this):null},togglePicker:function(t){if(this.$refs.dropdown){var e="boolean"===typeof t?t:!this.$refs.dropdown.isActive;(e||this.closeOnClick)&&(this.$refs.dropdown.isActive=e)}},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;return t.focus(),void t.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur(),this.$emit("active-change",t)}}};const pa=fa;var va=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"colorpicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,expanded:t.expanded,disabled:t.disabled,inline:t.inline,"mobile-modal":t.mobileModal,"trap-focus":t.trapFocus,"aria-role":t.ariaRole,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-button",{style:t.triggerStyle,attrs:{expanded:t.expanded,disabled:t.disabled}},[n("span",{staticClass:"color-name"},[t._v(t._s(t.colorFormatter(t.colorSelected)))])])])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{class:{"dropdown-horizontal-colorpicker":t.horizontalColorPicker},attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("div",[n("header",{staticClass:"colorpicker-header"},[void 0!==t.$slots.header&&t.$slots.header.length?[t._t("header")]:t._e()],2),n("div",{staticClass:"colorpicker-content"},["square"===t.representation?n("b-colorpicker-h-s-l-representation-square",{attrs:{value:t.colorSelected},on:{input:t.updateColor}}):n("b-colorpicker-h-s-l-representation-triangle",{attrs:{value:t.colorSelected},on:{input:t.updateColor}})],1)]),n("footer",{staticClass:"colorpicker-footer"},[t.alpha?n("b-colorpicker-alpha-slider",{attrs:{value:t.colorSelected.alpha,color:t.colorSelected},on:{input:t.updateAlpha}}):t._e(),t._t("footer",[n("b-field",{staticClass:"colorpicker-fields",attrs:{grouped:""}},[n("b-field",{attrs:{horizontal:"",label:"R"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Red"},model:{value:t.colorSelected.red,callback:function(e){t.$set(t.colorSelected,"red",t._n(e))},expression:"colorSelected.red"}})],1),n("b-field",{attrs:{horizontal:"",label:"G"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Green"},model:{value:t.colorSelected.green,callback:function(e){t.$set(t.colorSelected,"green",t._n(e))},expression:"colorSelected.green"}})],1),n("b-field",{attrs:{horizontal:"",label:"B"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Blue"},model:{value:t.colorSelected.blue,callback:function(e){t.$set(t.colorSelected,"blue",t._n(e))},expression:"colorSelected.blue"}})],1)],1)],{color:t.colorSelected})],2)])],1):t._e()],1)},ma=[];const ga=void 0,ya=void 0,ba=void 0,_a=!1;var wa=st({render:va,staticRenderFns:ma},ga,pa,ya,_a,ba,void 0,void 0),ka={install:function(t){lt(t,wa)}};ct(ka);const Sa=ka;var xa={name:"BDatepickerTableRow",inject:{$datepicker:{name:"$datepicker",default:!1}},props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,range:Boolean,multiple:Boolean,rulesForFirstWeek:Number,firstDayOfWeek:Number},watch:{day:function(t){var e=this,n="day-".concat(this.month,"-").concat(t);this.$nextTick((function(){e.$refs[n]&&e.$refs[n].length>0&&e.$refs[n][0]&&e.$refs[n][0].focus()}))}},methods:{firstWeekOffset:function(t,e,n){var i=7+e-n,r=new Date(t,0,i),a=(7+r.getDay()-e)%7;return-a+i-1},daysInYear:function(t){return this.isLeapYear(t)?366:365},isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getSetDayOfYear:function(t){return Math.round((t-new Date(t.getFullYear(),0,1))/864e5)+1},weeksInYear:function(t,e,n){var i=this.firstWeekOffset(t,e,n),r=this.firstWeekOffset(t+1,e,n);return(this.daysInYear(t)-i+r)/7},getWeekNumber:function(t){var e,n,i=this.firstDayOfWeek,r=this.rulesForFirstWeek,a=this.firstWeekOffset(t.getFullYear(),i,r),o=Math.floor((this.getSetDayOfYear(t)-a-1)/7)+1;return o<1?(n=t.getFullYear()-1,e=o+this.weeksInYear(n,i,r)):o>this.weeksInYear(t.getFullYear(),i,r)?(e=o-this.weeksInYear(t.getFullYear(),i,r),n=t.getFullYear()+1):(n=t.getFullYear(),e=o),{week:e,year:n}},clickWeekNumber:function(t){this.weekNumberClickable&&this.$datepicker.$emit("week-number-click",t.week,t.year)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.month),this.selectableDates)if("function"===typeof this.selectableDates){if(this.selectableDates(t))return!0;e.push(!1)}else for(var n=0;n<this.selectableDates.length;n++){var i=this.selectableDates[n];if(t.getDate()===i.getDate()&&t.getFullYear()===i.getFullYear()&&t.getMonth()===i.getMonth())return!0;e.push(!1)}if(this.unselectableDates)if("function"===typeof this.unselectableDates)e.push(!this.unselectableDates(t));else for(var r=0;r<this.unselectableDates.length;r++){var a=this.unselectableDates[r];e.push(t.getDate()!==a.getDate()||t.getFullYear()!==a.getFullYear()||t.getMonth()!==a.getMonth())}if(this.unselectableDaysOfWeek)for(var o=0;o<this.unselectableDaysOfWeek.length;o++){var s=this.unselectableDaysOfWeek[o];e.push(t.getDay()!==s)}return e.indexOf(!1)<0},emitChosenDate:function(t){this.disabled||this.selectableDate(t)&&this.$emit("select",t)},eventsDateMatch:function(t){if(!this.events||!this.events.length)return!1;for(var e=[],n=0;n<this.events.length;n++)this.events[n].date.getDay()===t.getDay()&&e.push(this.events[n]);return!!e.length&&e},classObject:function(t){function e(t,e,n){return!(!t||!e||n)&&(Array.isArray(e)?e.some((function(e){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})):t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function n(t,e,n){return!(!Array.isArray(e)||n)&&(t>e[0]&&t<e[1])}return s({"is-selected":e(t,this.selectedDate)||n(t,this.selectedDate,this.multiple),"is-first-selected":e(t,Array.isArray(this.selectedDate)&&this.selectedDate[0],this.multiple),"is-within-selected":n(t,this.selectedDate,this.multiple),"is-last-selected":e(t,Array.isArray(this.selectedDate)&&this.selectedDate[1],this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(e(t,this.hoveredDateRange)||n(t,this.hoveredDateRange)),"is-first-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[0]),"is-within-hovered":n(t,this.hoveredDateRange),"is-last-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[1]),"is-today":e(t,this.dateCreator()),"is-selectable":this.selectableDate(t)&&!this.disabled,"is-unselectable":!this.selectableDate(t)||this.disabled,"is-invisible":!this.nearbyMonthDays&&t.getMonth()!==this.month,"is-nearby":this.nearbySelectableMonthDays&&t.getMonth()!==this.month,"has-event":this.eventsDateMatch(t)},this.indicators,this.eventsDateMatch(t))},setRangeHoverEndDate:function(t){this.range&&this.$emit("rangeHoverEndDate",t)},manageKeydown:function(t,e){var n=t.key,i=!0;switch(n){case"Tab":i=!1;break;case" ":case"Space":case"Spacebar":case"Enter":this.emitChosenDate(e);break;case"ArrowLeft":case"Left":this.changeFocus(e,-1);break;case"ArrowRight":case"Right":this.changeFocus(e,1);break;case"ArrowUp":case"Up":this.changeFocus(e,-7);break;case"ArrowDown":case"Down":this.changeFocus(e,7);break}i&&t.preventDefault()},changeFocus:function(t,e){var n=new Date(t.getTime());n.setDate(t.getDate()+e);while((!this.minDate||n>this.minDate)&&(!this.maxDate||n<this.maxDate)&&!this.selectableDate(n))n.setDate(t.getDate()+Math.sign(e));this.setRangeHoverEndDate(n),this.$emit("change-focus",n)}}};const Ca=xa;var Da=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker-row"},[t.showWeekNumber?n("a",{staticClass:"datepicker-cell is-week-number",class:{"is-clickable":t.weekNumberClickable},on:{click:function(e){e.preventDefault(),t.clickWeekNumber(t.getWeekNumber(t.week[6]))}}},[n("span",[t._v(t._s(t.getWeekNumber(t.week[6]).week))])]):t._e(),t._l(t.week,(function(e,i){return[t.selectableDate(e)&&!t.disabled?n("a",{key:i,ref:"day-"+e.getMonth()+"-"+e.getDate(),refInFor:!0,staticClass:"datepicker-cell",class:t.classObject(e),attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.day===e.getDate()&&t.month===e.getMonth()?null:-1},on:{click:function(n){return n.preventDefault(),t.emitChosenDate(e)},mouseenter:function(n){return t.setRangeHoverEndDate(e)},keydown:function(n){return t.manageKeydown(n,e)}}},[n("span",[t._v(t._s(e.getDate()))]),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()]):n("div",{key:i,staticClass:"datepicker-cell",class:t.classObject(e)},[n("span",[t._v(t._s(e.getDate()))]),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()])]}))],2)},Ta=[];const Oa=void 0,Ea=void 0,Aa=void 0,Pa=!1;var Ma=st({render:Da,staticRenderFns:Ta},Oa,Ca,Ea,Pa,Aa,void 0,void 0),Ra={name:"BDatepickerTable",components:s({},Ma.name,Ma),props:{value:{type:[Date,Array]},dayNames:Array,monthNames:Array,firstDayOfWeek:Number,events:Array,indicators:String,minDate:Date,maxDate:Date,focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,rulesForFirstWeek:Number,range:Boolean,multiple:Boolean},data:function(){return{selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0}},computed:{multipleSelectedDates:{get:function(){return this.multiple&&this.value?this.value:[]},set:function(t){this.$emit("input",t)}},visibleDayNames:function(){var t=[],e=this.firstDayOfWeek;while(t.length<this.dayNames.length){var n=this.dayNames[e%this.dayNames.length];t.push(n),e++}return this.showWeekNumber&&t.unshift(""),t},hasEvents:function(){return this.events&&this.events.length},eventsInThisMonth:function(){if(!this.events)return[];for(var t=[],e=0;e<this.events.length;e++){var n=this.events[e];n.hasOwnProperty("date")||(n={date:n}),n.hasOwnProperty("type")||(n.type="is-primary"),n.date.getMonth()===this.focused.month&&n.date.getFullYear()===this.focused.year&&t.push(n)}return t},weeksInThisMonth:function(){this.validateFocusedDay();var t=this.focused.month,e=this.focused.year,n=[],i=1;while(n.length<6){var r=this.weekBuilder(i,t,e);n.push(r),i+=7}return n},hoveredDateRange:function(){return this.range&&isNaN(this.selectedEndDate)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(et):[this.selectedBeginDate,this.hoveredEndDate].filter(et):[]}},methods:{updateSelectedDate:function(t){this.range||this.multiple?this.range?this.handleSelectRangeDate(t):this.multiple&&this.handleSelectMultipleDates(t):this.$emit("input",t)},handleSelectRangeDate:function(t){this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=t,this.selectedEndDate=void 0,this.$emit("range-start",t)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>t?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t))},handleSelectMultipleDates:function(t){var e=this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}));e.length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates=[].concat(x(this.multipleSelectedDates),[t])},weekBuilder:function(t,e,n){for(var i=new Date(n,e),r=[],a=new Date(n,e,t).getDay(),o=a>=this.firstDayOfWeek?a-this.firstDayOfWeek:7-this.firstDayOfWeek+a,s=1,c=0;c<o;c++)r.unshift(new Date(i.getFullYear(),i.getMonth(),t-s)),s++;r.push(new Date(n,e,t));var l=1;while(r.length<7)r.push(new Date(n,e,t+l)),l++;return r},validateFocusedDay:function(){var t=new Date(this.focused.year,this.focused.month,this.focused.day);if(!this.selectableDate(t)){var e=0,n=new Date(this.focused.year,this.focused.month+1,0).getDate(),i=null;while(!i&&++e<n){var r=new Date(this.focused.year,this.focused.month,e);if(this.selectableDate(r)){i=t;var a={day:r.getDate(),month:r.getMonth(),year:r.getFullYear()};this.$emit("update:focused",a)}}}},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.focused.month),this.selectableDates)if("function"===typeof this.selectableDates){if(this.selectableDates(t))return!0;e.push(!1)}else for(var n=0;n<this.selectableDates.length;n++){var i=this.selectableDates[n];if(t.getDate()===i.getDate()&&t.getFullYear()===i.getFullYear()&&t.getMonth()===i.getMonth())return!0;e.push(!1)}if(this.unselectableDates)if("function"===typeof this.unselectableDates)e.push(!this.unselectableDates(t));else for(var r=0;r<this.unselectableDates.length;r++){var a=this.unselectableDates[r];e.push(t.getDate()!==a.getDate()||t.getFullYear()!==a.getFullYear()||t.getMonth()!==a.getMonth())}if(this.unselectableDaysOfWeek)for(var o=0;o<this.unselectableDaysOfWeek.length;o++){var s=this.unselectableDaysOfWeek[o];e.push(t.getDay()!==s)}return e.indexOf(!1)<0},eventsInThisWeek:function(t){return this.eventsInThisMonth.filter((function(e){var n=new Date(Date.parse(e.date));n.setHours(0,0,0,0);var i=n.getTime();return t.some((function(t){return t.getTime()===i}))}))},setRangeHoverEndDate:function(t){this.hoveredEndDate=t},changeFocus:function(t){var e={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()};this.$emit("update:focused",e)}}};const Ia=Ra;var Na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"datepicker-table"},[n("header",{staticClass:"datepicker-header"},t._l(t.visibleDayNames,(function(e,i){return n("div",{key:i,staticClass:"datepicker-cell"},[n("span",[t._v(t._s(e))])])})),0),n("div",{staticClass:"datepicker-body",class:{"has-events":t.hasEvents}},t._l(t.weeksInThisMonth,(function(e,i){return n("b-datepicker-table-row",{key:i,attrs:{"selected-date":t.value,day:t.focused.day,week:e,month:t.focused.month,"min-date":t.minDate,"max-date":t.maxDate,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.eventsInThisWeek(e),indicators:t.indicators,"date-creator":t.dateCreator,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,"week-number-clickable":t.weekNumberClickable,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,range:t.range,"hovered-date-range":t.hoveredDateRange,multiple:t.multiple},on:{select:t.updateSelectedDate,rangeHoverEndDate:t.setRangeHoverEndDate,"change-focus":t.changeFocus}})})),1)])},$a=[];const La=void 0,Fa=void 0,Ba=void 0,ja=!1;var za=st({render:Na,staticRenderFns:$a},La,Ia,Fa,ja,Ba,void 0,void 0),Ha={name:"BDatepickerMonth",props:{value:{type:[Date,Array]},monthNames:Array,events:Array,indicators:String,minDate:Date,maxDate:Date,focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],range:Boolean,multiple:Boolean},data:function(){return{selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0,multipleSelectedDates:this.multiple&&this.value?this.value:[]}},computed:{hasEvents:function(){return this.events&&this.events.length},eventsInThisYear:function(){if(!this.events)return[];for(var t=[],e=0;e<this.events.length;e++){var n=this.events[e];n.hasOwnProperty("date")||(n={date:n}),n.hasOwnProperty("type")||(n.type="is-primary"),n.date.getFullYear()===this.focused.year&&t.push(n)}return t},monthDates:function(){for(var t=this.focused.year,e=[],n=0;n<12;n++){var i=new Date(t,n,1);i.setHours(0,0,0,0),e.push(i)}return e},focusedMonth:function(){return this.focused.month},hoveredDateRange:function(){return this.range&&isNaN(this.selectedEndDate)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(et):[this.selectedBeginDate,this.hoveredEndDate].filter(et):[]}},watch:{focusedMonth:function(t){var e=this,n="month-".concat(t);this.$refs[n]&&this.$refs[n].length>0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))}},methods:{selectMultipleDates:function(t){var e=this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}));e.length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),e.push(t.getFullYear()===this.focused.year),this.selectableDates)if("function"===typeof this.selectableDates){if(this.selectableDates(t))return!0;e.push(!1)}else for(var n=0;n<this.selectableDates.length;n++){var i=this.selectableDates[n];if(t.getFullYear()===i.getFullYear()&&t.getMonth()===i.getMonth())return!0;e.push(!1)}if(this.unselectableDates)if("function"===typeof this.unselectableDates)e.push(!this.unselectableDates(t));else for(var r=0;r<this.unselectableDates.length;r++){var a=this.unselectableDates[r];e.push(t.getFullYear()!==a.getFullYear()||t.getMonth()!==a.getMonth())}if(this.unselectableDaysOfWeek)for(var o=0;o<this.unselectableDaysOfWeek.length;o++){var s=this.unselectableDaysOfWeek[o];e.push(t.getDay()!==s)}return e.indexOf(!1)<0},eventsDateMatch:function(t){if(!this.eventsInThisYear.length)return!1;for(var e=[],n=0;n<this.eventsInThisYear.length;n++)this.eventsInThisYear[n].date.getMonth()===t.getMonth()&&e.push(this.events[n]);return!!e.length&&e},classObject:function(t){function e(t,e,n){return!(!t||!e||n)&&(Array.isArray(e)?e.some((function(e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})):t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function n(t,e,n){return!(!Array.isArray(e)||n)&&(t>e[0]&&t<e[1])}function i(t,e,n){return!(!Array.isArray(e)||!n)&&e.some((function(e){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}))}return{"is-selected":e(t,this.value,this.multiple)||n(t,this.value,this.multiple)||i(t,this.multipleSelectedDates,this.multiple),"is-first-selected":e(t,Array.isArray(this.value)&&this.value[0],this.multiple),"is-within-selected":n(t,this.value,this.multiple),"is-last-selected":e(t,Array.isArray(this.value)&&this.value[1],this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(e(t,this.hoveredDateRange)||n(t,this.hoveredDateRange)),"is-first-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[0]),"is-within-hovered":n(t,this.hoveredDateRange),"is-last-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[1]),"is-today":e(t,this.dateCreator()),"is-selectable":this.selectableDate(t)&&!this.disabled,"is-unselectable":!this.selectableDate(t)||this.disabled}},manageKeydown:function(t,e){var n=t.key;switch(n){case" ":case"Space":case"Spacebar":case"Enter":this.updateSelectedDate(e);break;case"ArrowLeft":case"Left":this.changeFocus(e,-1);break;case"ArrowRight":case"Right":this.changeFocus(e,1);break;case"ArrowUp":case"Up":this.changeFocus(e,-3);break;case"ArrowDown":case"Down":this.changeFocus(e,3);break}},updateSelectedDate:function(t){this.range||this.multiple?this.range?this.handleSelectRangeDate(t):this.multiple&&this.selectMultipleDates(t):this.emitChosenDate(t)},emitChosenDate:function(t){this.disabled||(this.multiple?this.selectMultipleDates(t):this.selectableDate(t)&&this.$emit("input",t))},handleSelectRangeDate:function(t){this.disabled||(this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=t,this.selectedEndDate=void 0,this.$emit("range-start",t)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>t?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t)))},setRangeHoverEndDate:function(t){this.range&&(this.hoveredEndDate=t)},changeFocus:function(t,e){var n=t;n.setMonth(t.getMonth()+e),this.$emit("change-focus",n)}}};const Va=Ha;var Ga=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"datepicker-table"},[n("div",{staticClass:"datepicker-body",class:{"has-events":t.hasEvents}},[n("div",{staticClass:"datepicker-months"},[t._l(t.monthDates,(function(e,i){return[t.selectableDate(e)&&!t.disabled?n("a",{key:i,ref:"month-"+e.getMonth(),refInFor:!0,staticClass:"datepicker-cell",class:[t.classObject(e),{"has-event":t.eventsDateMatch(e)},t.indicators],attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.focused.month===e.getMonth()?null:-1},on:{click:function(n){return n.preventDefault(),t.updateSelectedDate(e)},mouseenter:function(n){return t.setRangeHoverEndDate(e)},keydown:function(n){return n.preventDefault(),t.manageKeydown(n,e)}}},[t._v(" "+t._s(t.monthNames[e.getMonth()])+" "),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()]):n("div",{key:i,staticClass:"datepicker-cell",class:t.classObject(e)},[t._v(" "+t._s(t.monthNames[e.getMonth()])+" ")])]}))],2)])])},Wa=[];const Ua=void 0,Ya=void 0,qa=void 0,Xa=!1;var Ka,Ja=st({render:Ga,staticRenderFns:Wa},Ua,Va,Ya,Xa,qa,void 0,void 0),Za=function(t,e){var n=Array.isArray(t)?t:[t],i=n.map((function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),12);return e.isTypeMonth?e.dtfMonth.format(n):e.dtf.format(n)}));return e.multiple?i.join(", "):i.join(" - ")},Qa=function(t,e){if(e.dtf.formatToParts&&"function"===typeof e.dtf.formatToParts){var n=(e.isTypeMonth?e.dtfMonth:e.dtf).formatToParts(new Date(2e3,11,25)).map((function(t){return"literal"===t.type?t.value:"((?!=<".concat(t.type,">)\\d+)")})).join(""),i=J(n,t);if(i.year&&4===i.year.length&&i.month&&i.month<=12){if(e.isTypeMonth)return new Date(i.year,i.month-1);if(i.day&&i.day<=31)return new Date(i.year,i.month-1,i.day,12)}}if(!e.isTypeMonth)return new Date(Date.parse(t));if(t){var r=t.split("/"),a=4===r[0].length?r[0]:r[1],o=2===r[0].length?r[0]:r[1];if(a&&o)return new Date(parseInt(a,10),parseInt(o-1,10),1,0,0,0,0)}return null},to={name:"BDatepicker",components:(Ka={},s(Ka,za.name,za),s(Ka,Ja.name,Ja),s(Ka,Mt.name,Mt),s(Ka,Li.name,Li),s(Ka,mr.name,mr),s(Ka,St.name,St),s(Ka,di.name,di),s(Ka,wi.name,wi),Ka),mixins:[ht],inheritAttrs:!1,provide:function(){return{$datepicker:this}},props:{value:{type:[Date,Array]},dayNames:{type:Array,default:function(){if(Array.isArray(it.defaultDayNames))return it.defaultDayNames}},monthNames:{type:Array,default:function(){if(Array.isArray(it.defaultMonthNames))return it.defaultMonthNames}},firstDayOfWeek:{type:Number,default:function(){return"number"===typeof it.defaultFirstDayOfWeek?it.defaultFirstDayOfWeek:0}},inline:Boolean,minDate:Date,maxDate:Date,focusedDate:Date,placeholder:String,editable:Boolean,disabled:Boolean,horizontalTimePicker:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:{type:Array,default:function(){return it.defaultUnselectableDaysOfWeek}},selectableDates:[Array,Function],dateFormatter:{type:Function,default:function(t,e){return"function"===typeof it.defaultDateFormatter?it.defaultDateFormatter(t):Za(t,e)}},dateParser:{type:Function,default:function(t,e){return"function"===typeof it.defaultDateParser?it.defaultDateParser(t):Qa(t,e)}},dateCreator:{type:Function,default:function(){return"function"===typeof it.defaultDateCreator?it.defaultDateCreator():new Date}},mobileNative:{type:Boolean,default:function(){return it.defaultDatepickerMobileNative}},position:String,iconRight:String,iconRightClickable:Boolean,events:Array,indicators:{type:String,default:"dots"},openOnFocus:Boolean,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},yearsRange:{type:Array,default:function(){return it.defaultDatepickerYearsRange}},type:{type:String,validator:function(t){return["month"].indexOf(t)>=0}},nearbyMonthDays:{type:Boolean,default:function(){return it.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return it.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return it.defaultDatepickerShowWeekNumber}},weekNumberClickable:{type:Boolean,default:function(){return it.defaultDatepickerWeekNumberClickable}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return it.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var t=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return!this.value&&this.maxDate&&this.maxDate.getFullYear()<t.getFullYear()&&t.setFullYear(this.maxDate.getFullYear()),{dateSelected:this.value,focusedDateData:{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){var e=this;this.updateInternalState(t),this.multiple||this.togglePicker(!1),this.$emit("input",t),this.useHtml5Validation&&this.$nextTick((function(){e.checkHtml5Validity()}))}},formattedValue:function(){return this.formatValue(this.computedValue)},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric"}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale)},dtfMonth:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"2-digit"})},newMonthNames:function(){return Array.isArray(this.monthNames)?this.monthNames:X(this.locale)},newDayNames:function(){return Array.isArray(this.dayNames)?this.dayNames:K(this.locale)},listOfMonths:function(){var t=0,e=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(t=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(e=this.maxDate.getMonth()),this.newMonthNames.map((function(n,i){return{name:n,index:i,disabled:i<t||i>e}}))},listOfYears:function(){var t=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()<t&&(t=Math.max(this.maxDate.getFullYear(),this.focusedDateData.year));var e=this.focusedDateData.year+this.yearsRange[0];this.minDate&&this.minDate.getFullYear()>e&&(e=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var n=[],i=e;i<=t;i++)n.push(i);return n.reverse()},showPrev:function(){if(!this.minDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year<=this.minDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),e=new Date(this.minDate.getFullYear(),this.minDate.getMonth());return t<=e},showNext:function(){if(!this.maxDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year>=this.maxDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),e=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth());return t>=e},isMobile:function(){return this.mobileNative&&z.any()},isTypeMonth:function(){return"month"===this.type},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.updateInternalState(t),this.multiple||this.togglePicker(!1)},focusedDate:function(t){t&&(this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()})},"focusedDateData.month":function(t){this.$emit("change-month",t)},"focusedDateData.year":function(t){this.$emit("change-year",t)}},methods:{onChange:function(t){var e=this.dateParser(t,this);!e||isNaN(e)&&(!Array.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1]))?(this.computedValue=null,this.$refs.input&&(this.$refs.input.newValue=this.computedValue)):this.computedValue=e},formatValue:function(t){if(Array.isArray(t)){var e=Array.isArray(t)&&t.every((function(t){return!isNaN(t)}));return e?this.dateFormatter(x(t),this):null}return t&&!isNaN(t)?this.dateFormatter(t,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(t){return this.isTypeMonth?this.formatYYYYMM(t):this.formatYYYYMMDD(t)},formatYYYYMMDD:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();return n+"-"+(i<10?"0":"")+i+"-"+(r<10?"0":"")+r}return""},formatYYYYMM:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1;return n+"-"+(i<10?"0":"")+i}return""},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split("-"):[];if(3===n.length){var i=parseInt(n[0],10),r=parseInt(n[1])-1,a=parseInt(n[2]);this.computedValue=new Date(i,r,a)}else this.computedValue=null},updateInternalState:function(t){if(this.dateSelected!==t){var e=Array.isArray(t),n=e?t.length?t[t.length-1]:this.dateCreator():t||this.dateCreator();(!e||e&&this.dateSelected&&t.length>this.dateSelected.length)&&(this.focusedDateData={day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}),this.dateSelected=t}},togglePicker:function(t){if(this.$refs.dropdown){var e="boolean"===typeof t?t:!this.$refs.dropdown.isActive;(e||this.closeOnClick)&&(this.$refs.dropdown.isActive=e)}},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;return t.focus(),void t.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur(),this.$emit("active-change",t)},changeFocus:function(t){this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}};const eo=to;var no=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"mobile-modal":t.mobileModal,"trap-focus":t.trapFocus,"aria-role":t.ariaRole,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{autocomplete:"off",value:t.formattedValue,placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-right":t.iconRight,"icon-right-clickable":t.iconRightClickable,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,disabled:t.disabled,readonly:!t.editable,"use-html5-validation":!1},on:{"icon-right-click":function(e){return t.$emit("icon-right-click",e)},focus:t.handleOnFocus},nativeOn:{click:function(e){return t.onInputClick(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.togglePicker(!0)},change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{class:{"dropdown-horizontal-timepicker":t.horizontalTimePicker},attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("div",[n("header",{staticClass:"datepicker-header"},[void 0!==t.$slots.header&&t.$slots.header.length?[t._t("header")]:n("div",{staticClass:"pagination field is-centered",class:t.size},[n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showPrev&&!t.disabled,expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.prev(e)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.prev(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.prev(e))}]}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showNext&&!t.disabled,expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.next(e)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.next(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.next(e))}]}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),n("div",{staticClass:"pagination-list"},[n("b-field",[t.isTypeMonth?t._e():n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.month,callback:function(e){t.$set(t.focusedDateData,"month",e)},expression:"focusedDateData.month"}},t._l(t.listOfMonths,(function(e){return n("option",{key:e.name,attrs:{disabled:e.disabled},domProps:{value:e.index}},[t._v(" "+t._s(e.name)+" ")])})),0),n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.year,callback:function(e){t.$set(t.focusedDateData,"year",e)},expression:"focusedDateData.year"}},t._l(t.listOfYears,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(e)+" ")])})),0)],1)],1)])],2),t.isTypeMonth?n("div",[n("b-datepicker-month",{attrs:{"month-names":t.newMonthNames,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,range:t.range,multiple:t.multiple},on:{"range-start":function(e){return t.$emit("range-start",e)},"range-end":function(e){return t.$emit("range-end",e)},close:function(e){return t.togglePicker(!1)},"change-focus":t.changeFocus,"update:focused":function(e){t.focusedDateData=e}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1):n("div",{staticClass:"datepicker-content",class:{"content-horizontal-timepicker":t.horizontalTimePicker}},[n("b-datepicker-table",{attrs:{"day-names":t.newDayNames,"month-names":t.newMonthNames,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,"type-month":t.isTypeMonth,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,"week-number-clickable":t.weekNumberClickable,range:t.range,multiple:t.multiple},on:{"range-start":function(e){return t.$emit("range-start",e)},"range-end":function(e){return t.$emit("range-end",e)},close:function(e){return t.togglePicker(!1)},"update:focused":function(e){t.focusedDateData=e}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1)]),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"datepicker-footer",class:{"footer-horizontal-timepicker":t.horizontalTimePicker}},[t._t("default")],2):t._e()])],1):n("b-input",t._b({ref:"input",attrs:{type:t.isTypeMonth?"month":"date",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":!1},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},io=[];const ro=void 0,ao=void 0,oo=void 0,so=!1;var co=st({render:no,staticRenderFns:io},ro,eo,ao,so,oo,void 0,void 0),lo={install:function(t){lt(t,co)}};ct(lo);const uo=lo;var ho,fo={name:"BTimepicker",components:(ho={},s(ho,Mt.name,Mt),s(ho,Li.name,Li),s(ho,mr.name,mr),s(ho,St.name,St),s(ho,di.name,di),s(ho,wi.name,wi),ho),mixins:[Zn],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}};const po=fo;var vo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onHoursChange(e.target.value)}},model:{value:t.hoursSelected,callback:function(e){t.hoursSelected=e},expression:"hoursSelected"}},t._l(t.hours,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isHourDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),n("span",{staticClass:"control is-colon"},[t._v(t._s(t.hourLiteral))]),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onMinutesChange(e.target.value)}},model:{value:t.minutesSelected,callback:function(e){t.minutesSelected=e},expression:"minutesSelected"}},t._l(t.minutes,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isMinuteDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),t.enableSeconds?[n("span",{staticClass:"control is-colon"},[t._v(t._s(t.minuteLiteral))]),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onSecondsChange(e.target.value)}},model:{value:t.secondsSelected,callback:function(e){t.secondsSelected=e},expression:"secondsSelected"}},t._l(t.seconds,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isSecondDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),n("span",{staticClass:"control is-colon"},[t._v(t._s(t.secondLiteral))])]:t._e(),t.isHourFormat24?t._e():n("b-select",{attrs:{disabled:t.disabled},nativeOn:{change:function(e){return t.onMeridienChange(e.target.value)}},model:{value:t.meridienSelected,callback:function(e){t.meridienSelected=e},expression:"meridienSelected"}},t._l(t.meridiens,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(e)+" ")])})),0)],2),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[t._t("default")],2):t._e()],1)],1):n("b-input",t._b({ref:"input",attrs:{type:"time",step:t.nativeStep,autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))],1)},mo=[];const go=void 0,yo=void 0,bo=void 0,_o=!1;var wo,ko=st({render:vo,staticRenderFns:mo},go,po,yo,_o,bo,void 0,void 0),So="AM",xo="PM",Co={name:"BDatetimepicker",components:(wo={},s(wo,co.name,co),s(wo,ko.name,ko),wo),mixins:[ht],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,firstDayOfWeek:{type:Number,default:function(){return"number"===typeof it.defaultFirstDayOfWeek?it.defaultFirstDayOfWeek:0}},rulesForFirstWeek:{type:Number,default:function(){return 4}},icon:String,iconRight:String,iconRightClickable:Boolean,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(t){return"function"===typeof it.defaultDatetimeCreator?it.defaultDatetimeCreator(t):t}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){if(t){var e=new Date(t.getTime());this.newValue?t.getDate()===this.newValue.getDate()&&t.getMonth()===this.newValue.getMonth()&&t.getFullYear()===this.newValue.getFullYear()||0!==t.getHours()||0!==t.getMinutes()||0!==t.getSeconds()||e.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):e=this.datetimeCreator(t),this.minDatetime&&e<this.adjustValue(this.minDatetime)?e=this.adjustValue(this.minDatetime):this.maxDatetime&&e>this.adjustValue(this.maxDatetime)&&(e=this.adjustValue(this.maxDatetime)),this.newValue=new Date(e.getTime())}else this.newValue=this.adjustValue(t);var n=this.adjustValue(this.newValue,!0);this.$emit("input",n)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:this.enableSeconds()?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"numeric",day:this.localeOptions.day||"numeric",hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds()?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24()?"h23":"h12"})},isMobileNative:function(){return this.mobileNative&&0===this.tzOffset},isMobile:function(){return this.isMobileNative&&z.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var t=this.adjustValue(this.minDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var t=this.adjustValue(this.maxDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||null===this.newValue||"undefined"===typeof this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var t=this.adjustValue(this.minDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},maxTime:function(){if(!this.maxDatetime||null===this.newValue||"undefined"===typeof this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var t=this.adjustValue(this.maxDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(){this.newValue=this.adjustValue(this.value)},tzOffset:function(){this.newValue=this.adjustValue(this.value)}},methods:{enableSeconds:function(){return!!this.$refs.timepicker&&this.$refs.timepicker.enableSeconds},isHourFormat24:function(){return this.$refs.timepicker?this.$refs.timepicker.isHourFormat24:!this.localeOptions.hour12},adjustValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?new Date(t.getTime()-6e4*this.tzOffset):new Date(t.getTime()+6e4*this.tzOffset):t},defaultDatetimeParser:function(t){if("function"===typeof this.datetimeParser)return this.datetimeParser(t);if("function"===typeof it.defaultDatetimeParser)return it.defaultDatetimeParser(t);if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var e=[So,xo,So.toLowerCase(),xo.toLowerCase()];this.$refs.timepicker&&(e.push(this.$refs.timepicker.amString),e.push(this.$refs.timepicker.pmString));var n=this.dtf.formatToParts(new Date),i=n.map((function(t,i){return"literal"===t.type?i+1<n.length&&"hour"===n[i+1].type?"[^\\d]+":t.value.replace(/ /g,"\\s?"):"dayPeriod"===t.type?"((?!=<".concat(t.type,">)(").concat(e.join("|"),")?)"):"((?!=<".concat(t.type,">)\\d+)")})).join(""),r=J(i,t);if(r.year&&4===r.year.length&&r.month&&r.month<=12&&r.day&&r.day<=31&&r.hour&&r.hour>=0&&r.hour<24&&r.minute&&r.minute>=0&&r.minute<=59){var a=new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second||0);return a}}return new Date(Date.parse(t))},defaultDatetimeFormatter:function(t){return"function"===typeof this.datetimeFormatter?this.datetimeFormatter(t):"function"===typeof it.defaultDatetimeFormatter?it.defaultDatetimeFormatter(t):this.dtf.format(t)},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split(/\D/):[];if(n.length>=5){var i=parseInt(n[0],10),r=parseInt(n[1],10)-1,a=parseInt(n[2],10),o=parseInt(n[3],10),s=parseInt(n[4],10);this.computedValue=new Date(i,r,a,o,s)}else this.computedValue=null},onActiveChange:function(t){this.$emit("active-change",t)},formatNative:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate(),a=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return n+"-"+(i<10?"0":"")+i+"-"+(r<10?"0":"")+r+"T"+(a<10?"0":"")+a+":"+(o<10?"0":"")+o+":"+(s<10?"0":"")+s}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}};const Do=Co;var To=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.isMobile||t.inline?n("b-datepicker",t._b({ref:"datepicker",attrs:{rounded:t.rounded,"open-on-focus":t.openOnFocus,position:t.position,loading:t.loading,inline:t.inline,editable:t.editable,expanded:t.expanded,"close-on-click":!1,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,"date-formatter":t.defaultDatetimeFormatter,"date-parser":t.defaultDatetimeParser,"min-date":t.minDate,"max-date":t.maxDate,icon:t.icon,"icon-right":t.iconRight,"icon-right-clickable":t.iconRightClickable,"icon-pack":t.iconPack,size:t.datepickerSize,placeholder:t.placeholder,"horizontal-time-picker":t.horizontalTimePicker,range:!1,disabled:t.disabled,"mobile-native":t.isMobileNative,locale:t.locale,focusable:t.focusable,"append-to-body":t.appendToBody},on:{focus:t.onFocus,blur:t.onBlur,"active-change":t.onActiveChange,"icon-right-click":function(e){return t.$emit("icon-right-click")},"change-month":function(e){return t.$emit("change-month",e)},"change-year":function(e){return t.$emit("change-year",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-datepicker",t.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[void 0!==t.$slots.left?n("div",{staticClass:"level-item has-text-centered"},[t._t("left")],2):t._e(),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",t._b({ref:"timepicker",attrs:{inline:"",editable:t.editable,"min-time":t.minTime,"max-time":t.maxTime,size:t.timepickerSize,disabled:t.timepickerDisabled,focusable:t.focusable,"mobile-native":t.isMobileNative,locale:t.locale},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-timepicker",t.timepicker,!1))],1),void 0!==t.$slots.right?n("div",{staticClass:"level-item has-text-centered"},[t._t("right")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))},Oo=[];const Eo=void 0,Ao=void 0,Po=void 0,Mo=!1;var Ro=st({render:To,staticRenderFns:Oo},Eo,Do,Ao,Mo,Po,void 0,void 0),Io={install:function(t){lt(t,Ro)}};ct(Io);const No=Io;var $o={name:"BModal",directives:{trapFocus:ni},model:{prop:"active",event:"update:active"},props:{active:Boolean,component:[Object,Function,String],content:[String,Array],programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return it.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return it.defaultModalScroll?it.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},autoFocus:{type:Boolean,default:function(){return it.defaultAutoFocus}},customClass:String,ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean,ariaLabel:{type:String,validator:function(t){return Boolean(t)}},closeButtonAriaLabel:String,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"===typeof this.width?this.width+"px":this.width,animating:!this.active,destroyed:!this.active}},computed:{cancelOptions:function(){return"boolean"===typeof this.canCancel?this.canCancel?it.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(t){var e=this;t&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((function(){t&&e.$el&&e.$el.focus&&e.autoFocus&&e.$el.focus()}))}},methods:{handleScroll:function(){"undefined"!==typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.$emit("cancel",arguments),this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),H(t.$el)}),150))},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||this.cancel("escape")},afterEnter:function(){this.animating=!1,this.$emit("after-enter")},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0),this.$emit("after-leave")}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!==typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}};const Lo=$o;var Fo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation},on:{"after-enter":t.afterEnter,"before-leave":t.beforeLeave,"after-leave":t.afterLeave}},[t.destroyed?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":t.fullScreen},t.customClass],attrs:{tabindex:"-1",role:t.ariaRole,"aria-label":t.ariaLabel,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){return t.cancel("outside")}}}),n("div",{staticClass:"animation-content",class:{"modal-content":!t.hasModalCard},style:t.customStyle},[t.component?n(t.component,t._g(t._b({tag:"component",attrs:{"can-cancel":t.canCancel},on:{close:t.close}},"component",t.props,!1),t.events)):t.content?[n("div",{domProps:{innerHTML:t._s(t.content)}})]:t._t("default",null,{canCancel:t.canCancel,close:t.close}),t.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button","aria-label":t.closeButtonAriaLabel},on:{click:function(e){return t.cancel("x")}}}):t._e()],2)])])},Bo=[];const jo=void 0,zo=void 0,Ho=void 0,Vo=!1;var Go,Wo=st({render:Fo,staticRenderFns:Bo},jo,Lo,zo,Vo,Ho,void 0,void 0),Uo={name:"BDialog",components:(Go={},s(Go,St.name,St),s(Go,ye.name,ye),Go),directives:{trapFocus:ni},extends:Wo,props:{title:String,message:[String,Array],icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return it.defaultDialogConfirmText?it.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return it.defaultDialogCancelText?it.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:function(){return it.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean},data:function(){var t=this.hasInput&&this.inputAttrs.value||"";return{prompt:t,isActive:!1,validationMessage:"",isCompositing:!1}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var t=this;if(void 0!==this.$refs.input){if(this.isCompositing)return;if(!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick((function(){return t.$refs.input.select()}))}this.$emit("confirm",this.prompt),this.onConfirm(this.prompt,this),this.closeOnConfirm&&this.close()},close:function(){var t=this;this.isActive=!1,setTimeout((function(){t.$destroy(),H(t.$el)}),150)}},beforeMount:function(){var t=this;"undefined"!==typeof window&&this.$nextTick((function(){var e=document.querySelector(t.container)||document.body;e.appendChild(t.$el)}))},mounted:function(){var t=this;this.isActive=!0,"undefined"===typeof this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick((function(){t.hasInput?t.$refs.input.focus():"cancel"===t.focusOn&&t.showCancel?t.$refs.cancelButton.$el.focus():t.$refs.confirmButton.$el.focus()}))}};const Yo=Uo;var qo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:t.dialogClass,attrs:{role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){return t.cancel("outside")}}}),n("div",{staticClass:"modal-card animation-content"},[t.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[t._v(t._s(t.title))])]):t._e(),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!t.title,"is-flex":t.hasIcon}},[n("div",{staticClass:"media"},[t.hasIcon&&(t.icon||t.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.icon?t.icon:t.iconByType,pack:t.iconPack,type:t.type,both:!t.icon,size:"is-large"}})],1):t._e(),n("div",{staticClass:"media-content"},[n("p",[t.$slots.default?[t._t("default")]:[n("div",{domProps:{innerHTML:t._s(t.message)}})]],2),t.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},["checkbox"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.prompt)?t._i(t.prompt,null)>-1:t.prompt},on:{compositionstart:function(e){t.isCompositing=!0},compositionend:function(e){t.isCompositing=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){var n=t.prompt,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);i.checked?o<0&&(t.prompt=n.concat([a])):o>-1&&(t.prompt=n.slice(0,o).concat(n.slice(o+1)))}else t.prompt=r}}},"input",t.inputAttrs,!1)):"radio"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"radio"},domProps:{checked:t._q(t.prompt,null)},on:{compositionstart:function(e){t.isCompositing=!0},compositionend:function(e){t.isCompositing=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){t.prompt=null}}},"input",t.inputAttrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:t.inputAttrs.type},domProps:{value:t.prompt},on:{compositionstart:function(e){t.isCompositing=!0},compositionend:function(e){t.isCompositing=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},input:function(e){e.target.composing||(t.prompt=e.target.value)}}},"input",t.inputAttrs,!1))]),n("p",{staticClass:"help is-danger"},[t._v(t._s(t.validationMessage))])]):t._e()])])]),n("footer",{staticClass:"modal-card-foot"},[t.showCancel?n("b-button",{ref:"cancelButton",on:{click:function(e){return t.cancel("button")}}},[t._v(t._s(t.cancelText))]):t._e(),n("b-button",{ref:"confirmButton",attrs:{type:t.type},on:{click:t.confirm}},[t._v(t._s(t.confirmText))])],1)])]):t._e()])},Xo=[];const Ko=void 0,Jo=void 0,Zo=void 0,Qo=!1;var ts,es=st({render:qo,staticRenderFns:Xo},Ko,Yo,Jo,Qo,Zo,void 0,void 0);function ns(t){var e;Array.isArray(t.message)&&(e=t.message,delete t.message);var n="undefined"!==typeof window&&window.Vue?window.Vue:ts||tt,i=n.extend(es),r=new i({el:document.createElement("div"),propsData:t});return e&&(r.$slots.default=e,r.$forceUpdate()),it.defaultProgrammaticPromise?new Promise((function(t){r.$on("confirm",(function(e){return t({result:e||!0,dialog:r})})),r.$on("cancel",(function(){return t({result:!1,dialog:r})}))})):r}var is={alert:function(t){"string"===typeof t&&(t={message:t});var e={canCancel:!1},n=j(e,t);return ns(n)},confirm:function(t){var e={},n=j(e,t);return ns(n)},prompt:function(t){var e={hasInput:!0},n=j(e,t);return ns(n)}},rs={install:function(t){ts=t,lt(t,es),ut(t,"dialog",is)}};ct(rs);const as=rs;var os={install:function(t){lt(t,di),lt(t,wi)}};ct(os);const ss=os;var cs={install:function(t){lt(t,Li)}};ct(cs);const ls=cs;var us={install:function(t){lt(t,St)}};ct(us);const hs=us;var ds={install:function(t){lt(t,Le)}};ct(ds);const fs=ds;var ps={install:function(t){lt(t,Mt)}};ct(ps);const vs=ps;var ms="undefined"===typeof window,gs=ms?Object:window.HTMLElement,ys=ms?Object:window.File,bs={name:"BLoading",model:{prop:"active",event:"update:active"},props:{active:Boolean,programmatic:Boolean,container:[Object,Function,gs],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(t){this.isActive=t},isFullPage:function(t){this.displayInFullPage=t}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var t=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),H(t.$el)}),150))},keyPress:function(t){var e=t.key;"Escape"!==e&&"Esc"!==e||this.cancel()}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}};const _s=bs;var ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"loading-overlay is-active",class:{"is-full-page":t.displayInFullPage}},[n("div",{staticClass:"loading-background",on:{click:t.cancel}}),t._t("default",[n("div",{staticClass:"loading-icon"})])],2)])},ks=[];const Ss=void 0,xs=void 0,Cs=void 0,Ds=!1;var Ts,Os=st({render:ws,staticRenderFns:ks},Ss,_s,xs,Ds,Cs,void 0,void 0),Es={open:function(t){var e={programmatic:!0},n=j(e,t),i="undefined"!==typeof window&&window.Vue?window.Vue:Ts||tt,r=i.extend(Os);return new r({el:document.createElement("div"),propsData:n})}},As={install:function(t){Ts=t,lt(t,Os),ut(t,"loading",Es)}};ct(As);const Ps=As;var Ms={name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}};const Rs=Ms;var Is=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"menu"},[t._t("default")],2)},Ns=[];const $s=void 0,Ls=void 0,Fs=void 0,Bs=!1;var js=st({render:Is,staticRenderFns:Ns},$s,Rs,Ls,Bs,Fs,void 0,void 0),zs={name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},render:function(t,e){var n=null,i=e.slots();(e.props.label||i.label)&&(n=t("p",{attrs:{class:"menu-label"}},e.props.label?e.props.icon?[t("b-icon",{props:{icon:e.props.icon,pack:e.props.iconPack,size:e.props.size}}),t("span",{},e.props.label)]:e.props.label:i.label));var r=t("ul",{attrs:{class:"menu-list",role:"menu"===e.props.ariaRole?e.props.ariaRole:null}},i.default);return n?[n,r]:r}};const Hs=zs,Vs=void 0,Gs=void 0,Ws=void 0,Us=void 0;var Ys=st({},Vs,Hs,Gs,Us,Ws,void 0,void 0),qs={name:"BMenuItem",components:s({},St.name,St),inheritAttrs:!1,model:{prop:"active",event:"update:active"},props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(t){return it.defaultLinkTags.indexOf(t)>=0}},ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return"menuitem"===this.ariaRole?this.ariaRole:null}},watch:{active:function(t){this.newActive=t},expanded:function(t){this.newExpanded=t}},methods:{onClick:function(t){if(!this.disabled){var e=this.getMenu();this.reset(this.$parent,e),this.newExpanded=this.$props.expanded||!this.newExpanded,this.$emit("update:expanded",this.newExpanded),e&&e.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(t,e){var n=this,i=t.$children.filter((function(t){return t.name===n.name}));i.forEach((function(i){i!==n&&(n.reset(i,e),(!t.$data._isMenu||t.$data._isMenu&&t.accordion)&&(i.newExpanded=!1,i.$emit("update:expanded",i.newActive)),e&&e.activable&&(i.newActive=!1,i.$emit("update:active",i.newActive)))}))},getMenu:function(){var t=this.$parent;while(t&&!t.$data._isMenu)t=t.$parent;return t}}};const Xs=qs;var Ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{attrs:{role:t.ariaRoleMenu}},[n(t.tag,t._g(t._b({tag:"component",class:{"is-active":t.newActive,"is-expanded":t.newExpanded,"is-disabled":t.disabled,"icon-text":t.icon},on:{click:function(e){return t.onClick(e)}}},"component",t.$attrs,!1),t.$listeners),[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:t.size}}):t._e(),t.label?n("span",[t._v(" "+t._s(t.label)+" ")]):t._t("label",null,{expanded:t.newExpanded,active:t.newActive})],2),t.$slots.default?[n("transition",{attrs:{name:t.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.newExpanded,expression:"newExpanded"}]},[t._t("default")],2)])]:t._e()],2)},Js=[];const Zs=void 0,Qs=void 0,tc=void 0,ec=!1;var nc=st({render:Ks,staticRenderFns:Js},Zs,Xs,Qs,ec,tc,void 0,void 0),ic={install:function(t){lt(t,js),lt(t,Ys),lt(t,nc)}};ct(ic);const rc=ic;var ac={components:s({},St.name,St),model:{prop:"active",event:"update:active"},props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},data:function(){return{isActive:this.active,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large"}},watch:{active:function(t){this.isActive=t},isActive:function(t){t?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:active",!1)},click:function(){this.$emit("click")},setAutoClose:function(){var t=this;this.autoClose&&(this.timer=setTimeout((function(){t.isActive&&t.close()}),this.duration))},setDurationProgress:function(){var t=this;this.progressBar&&(this.$buefy.globalNoticeInterval=setInterval((function(){0!==t.remainingTime?t.remainingTime-=1:t.resetDurationProgress()}),1e3))},resetDurationProgress:function(){var t=this;setTimeout((function(){t.remainingTime=t.duration/1e3,clearInterval(t.$buefy.globalNoticeInterval)}),100)}},mounted:function(){this.setAutoClose()}},oc={name:"BMessage",mixins:[ac],props:{ariaCloseLabel:String}};const sc=oc;var cc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"message",class:[t.type,t.size]},[t.$slots.header||t.title?n("header",{staticClass:"message-header"},[t.$slots.header?n("div",[t._t("header")],2):t.title?n("p",[t._v(t._s(t.title))]):t._e(),t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e()]):t._e(),t.$slots.default?n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:t.type,attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:t.newIconSize}})],1):t._e(),n("div",{staticClass:"media-content"},[t._t("default")],2)])]):t._e(),t.autoClose&&t.progressBar?n("b-progress",{attrs:{value:t.remainingTime-1,max:t.duration/1e3-1,type:t.type,rounded:!1}}):t._e()],1)])},lc=[];const uc=void 0,hc=void 0,dc=void 0,fc=!1;var pc=st({render:cc,staticRenderFns:lc},uc,sc,hc,fc,dc,void 0,void 0),vc={install:function(t){lt(t,pc)}};ct(vc);const mc=vc;var gc,yc={open:function(t){var e;"string"===typeof t&&(t={content:t});var n,i={programmatic:!0};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.content)&&(n=t.content,delete t.content);var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:gc||tt,o=a.extend(Wo),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},bc={install:function(t){gc=t,lt(t,Wo),ut(t,"modal",yc)}};ct(bc);const _c=bc;var wc={props:{type:{type:String,default:"is-dark"},message:[String,Array],duration:Number,queue:{type:Boolean,default:void 0},indefinite:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!1},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||it.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{pause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue:function(){var t=void 0!==this.queue?this.queue:it.defaultNoticeQueue;return!!t&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},click:function(){this.$emit("click")},close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),H(t.$el)}),150))},timeoutCallback:function(){return this.close()},showNotice:function(){var t=this;this.shouldQueue()&&(this.correctParent.innerHTML=""),this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((function(){return t.timeoutCallback()}),this.newDuration))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}},kc={name:"BNotification",mixins:[ac],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}};const Sc=kc;var xc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification",class:[t.type,t.position],on:{click:t.click}},[t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e(),t.$slots.default||t.message?n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.computedIcon,pack:t.iconPack,size:t.newIconSize,both:"","aria-hidden":""}})],1):t._e(),n("div",{staticClass:"media-content"},[t.$slots.default?[t._t("default")]:[n("p",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}})]],2)]):t._e(),t.progressBar?n("b-progress",{attrs:{value:t.remainingTime-1,max:t.duration/1e3-1,type:t.type,rounded:!1}}):t._e()],1)])},Cc=[];const Dc=void 0,Tc=void 0,Oc=void 0,Ec=!1;var Ac=st({render:xc,staticRenderFns:Cc},Dc,Sc,Tc,Ec,Oc,void 0,void 0),Pc={name:"BNotificationNotice",mixins:[wc],data:function(){return{newDuration:this.duration||it.defaultNotificationDuration}},methods:{close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.$refs.notification.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),H(t.$el)}),150))}}};const Mc=Pc;var Rc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-notification",t._b({ref:"notification",on:{click:t.click,close:t.close},nativeOn:{mouseenter:function(e){return t.pause(e)},mouseleave:function(e){return t.removePause(e)}}},"b-notification",t.$options.propsData,!1),[t._t("default")],2)},Ic=[];const Nc=void 0,$c=void 0,Lc=void 0,Fc=!1;var Bc,jc=st({render:Rc,staticRenderFns:Ic},Nc,Mc,$c,Fc,Lc,void 0,void 0),zc={open:function(t){var e;"string"===typeof t&&(t={message:t});var n,i={position:it.defaultNotificationPosition||"is-top-right"};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message),t.active=!1;var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:Bc||tt,o=a.extend(jc),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s.$children[0].isActive=!0,s}},Hc={install:function(t){Bc=t,lt(t,Ac),ut(t,"notification",zc)}};ct(Hc);const Vc=Hc;var Gc={name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}};const Wc=Gc;var Uc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._g({staticClass:"navbar-burger burger",class:{"is-active":t.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":t.isOpened,tabindex:"0"}},t.$listeners),[n("span",{attrs:{"aria-hidden":"true"}}),n("span",{attrs:{"aria-hidden":"true"}}),n("span",{attrs:{"aria-hidden":"true"}})])},Yc=[];const qc=void 0,Xc=void 0,Kc=void 0,Jc=!1;var Zc=st({render:Uc,staticRenderFns:Yc},qc,Wc,Xc,Jc,Kc,void 0,void 0),Qc="undefined"!==typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0),tl=Qc?["touchstart","click"]:["click"],el=[];function nl(t){var e="function"===typeof t;if(!e&&"object"!==i(t))throw new Error("v-click-outside: Binding value should be a function or an object, ".concat(i(t)," given"));return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||tl}}function il(t){var e=t.el,n=t.event,i=t.handler,r=t.middleware,a=n.target!==e&&!e.contains(n.target);a&&r(n,e)&&i(n,e)}function rl(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.eventHandlers,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add";e.forEach((function(t){var e=t.event,i=t.handler;document["".concat(n,"EventListener")](e,i)}))}function al(t,e){var n=e.value,i=nl(n),r=i.handler,a=i.middleware,o=i.events,s={el:t,eventHandlers:o.map((function(e){return{event:e,handler:function(e){return il({event:e,el:t,handler:r,middleware:a})}}}))};rl(s,"add"),el.push(s)}function ol(t,e){var n=e.value,i=nl(n),r=i.handler,a=i.middleware,o=i.events,s=el.filter((function(e){return e.el===t}))[0];rl(s,"remove"),s.eventHandlers=o.map((function(e){return{event:e,handler:function(e){return il({event:e,el:t,handler:r,middleware:a})}}})),rl(s,"add")}function sl(t){var e=el.filter((function(e){return e.el===t}))[0];rl(e,"remove")}var cl={bind:al,update:ol,unbind:sl,instances:el},ll="is-fixed-top",ul="has-navbar-fixed-top",hl="has-spaced-navbar-fixed-top",dl="is-fixed-bottom",fl="has-navbar-fixed-bottom",pl="has-spaced-navbar-fixed-bottom",vl="has-navbar-centered",ml=function(t){return!!t},gl={name:"BNavbar",components:{NavbarBurger:Zc},directives:{clickOutside:cl},model:{prop:"active",event:"update:active"},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},active:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},wrapperClass:{type:[String,Array,Object]},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.active,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var t;return[this.type,(t={},s(t,ll,this.fixedTop),s(t,dl,this.fixedBottom),s(t,vl,this.centered),s(t,"is-spaced",this.spaced),s(t,"has-shadow",this.shadow),s(t,"is-transparent",this.transparent),t)]}},watch:{active:{handler:function(t){this.internalIsActive=t},immediate:!0},fixedTop:function(t){this.setBodyFixedTopClass(t)},bottomTop:function(t){this.setBodyFixedBottomClass(t)}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&this.internalIsActive&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:active",this.internalIsActive)},setBodyClass:function(t){"undefined"!==typeof window&&document.body.classList.add(t)},removeBodyClass:function(t){"undefined"!==typeof window&&document.body.classList.remove(t)},checkIfFixedPropertiesAreColliding:function(){var t=this.fixedTop&&this.fixedBottom;if(t)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(t){var e=[this.genNavbarBrandNode(t),this.genNavbarSlotsNode(t)];if(!ml(this.wrapperClass))return this.genNavbarSlots(t,e);var n=t("div",{class:this.wrapperClass},e);return this.genNavbarSlots(t,[n])},genNavbarSlots:function(t,e){return t("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},e)},genNavbarBrandNode:function(t){return t("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(t)])},genBurgerNode:function(t){var e=this;if(this.mobileBurger){var n=t("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive,keyup:function(t){13===t.keyCode&&e.toggleActive()}}}),i=!!this.$scopedSlots.burger;return i?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):n}},genNavbarSlotsNode:function(t){return t("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(t,"start"),this.genMenuPosition(t,"end")])},genMenuPosition:function(t,e){return t("div",{staticClass:"navbar-".concat(e)},this.$slots[e])},setBodyFixedTopClass:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(ul),this.spaced&&this.setBodyClass(hl)):(this.removeBodyClass(ul),this.removeBodyClass(hl))},setBodyFixedBottomClass:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(fl),this.spaced&&this.setBodyClass(pl)):(this.removeBodyClass(fl),this.removeBodyClass(pl))}},beforeMount:function(){this.fixedTop&&this.setBodyFixedTopClass(!0),this.fixedBottom&&this.setBodyFixedBottomClass(!0)},beforeDestroy:function(){if(this.fixedTop){var t=this.spaced?hl:ul;this.removeBodyClass(t)}else if(this.fixedBottom){var e=this.spaced?pl:fl;this.removeBodyClass(e)}},render:function(t,e){return this.genNavbar(t)}};const yl=gl,bl=void 0,_l=void 0,wl=void 0,kl=void 0;var Sl=st({},bl,yl,_l,kl,wl,void 0,void 0),xl=["div","span","input"],Cl={name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(t){var e=t.key;"Escape"!==e&&"Esc"!==e||this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(t){var e=xl.some((function(e){return e===t.target.localName}));if(!e){var n=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);n&&n.$data._isNavbarDropdown&&this.closeMenuRecursive(n,["NavBar"])}},closeMenuRecursive:function(t,e){if(!t.$parent)return null;var n=e.reduce((function(e,n){return t.$parent.$data["_is".concat(n)]?(t.$parent.closeMenu(),t.$parent):e}),null);return n||this.closeMenuRecursive(t.$parent,e)}},mounted:function(){"undefined"!==typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}};const Dl=Cl;var Tl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,t._g(t._b({tag:"component",staticClass:"navbar-item",class:{"is-active":t.active}},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)},Ol=[];const El=void 0,Al=void 0,Pl=void 0,Ml=!1;var Rl=st({render:Tl,staticRenderFns:Ol},El,Dl,Al,Ml,Pl,void 0,void 0),Il={name:"BNavbarDropdown",directives:{clickOutside:cl},inheritAttrs:!1,props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean,tag:{type:String,default:"a"}},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(t){this.newActive=t},newActive:function(t){this.$emit("active-change",t)}},methods:{toggleMenu:function(){this.newActive=!this.newActive},showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}};const Nl=Il;var $l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":t.isHoverable,"is-active":t.newActive},on:{mouseenter:t.checkHoverable}},[n(t.tag,t._g(t._b({tag:"component",staticClass:"navbar-link",class:{"is-arrowless":t.arrowless,"is-active":t.newActive&&t.collapsible},attrs:{"aria-haspopup":"true",tabindex:"0"},on:{click:function(e){return e.preventDefault(),t.toggleMenu(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggleMenu(e)}}},"component",t.$attrs,!1),t.$listeners),[t.label?[t._v(t._s(t.label))]:t._t("label")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsible||t.collapsible&&t.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":t.right,"is-boxed":t.boxed}},[t._t("default")],2)],1)},Ll=[];const Fl=void 0,Bl=void 0,jl=void 0,zl=!1;var Hl=st({render:$l,staticRenderFns:Ll},Fl,Nl,Bl,zl,jl,void 0,void 0),Vl={install:function(t){lt(t,Sl),lt(t,Rl),lt(t,Hl)}};ct(Vl);const Gl=Vl;var Wl,Ul={name:"BNumberinput",components:(Wl={},s(Wl,St.name,St),s(Wl,Mt.name,Mt),Wl),mixins:[ht],inheritAttrs:!1,props:{value:Number,min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:function(t){return["left","right","center"].indexOf(t)>=0}},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String,longPress:{type:Boolean,default:!0}},data:function(){return{newValue:this.value,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=this,n=0===Number(t)?0:Number(t)||null;""!==t&&void 0!==t&&null!==t||(n=void 0!==this.minNumber?this.minNumber:null),this.newValue=n,null===n?this.$emit("input",n):isNaN(n)||"-0"===n||this.$emit("input",Number(n)),this.$nextTick((function(){e.$refs.input&&e.$refs.input.checkHtml5Validity()}))}},controlsLeft:function(){return this.controls&&"right"!==this.controlsAlignment?"left"===this.controlsAlignment?["minus","plus"]:["minus"]:[]},controlsRight:function(){return this.controls&&"left"!==this.controlsAlignment?"right"===this.controlsAlignment?["minus","plus"]:["plus"]:[]},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"===typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"===typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"any"===this.newStep?1:"string"===typeof this.newStep?parseFloat(this.newStep):this.newStep},minStepNumber:function(){if("any"===this.newStep&&"undefined"===typeof this.newMinStep)return"any";var t="undefined"!==typeof this.newMinStep?this.newMinStep:this.newStep;return"string"===typeof t?parseFloat(t):t},disabledMin:function(){return this.computedValue-this.stepNumber<this.minNumber},disabledMax:function(){return this.computedValue+this.stepNumber>this.maxNumber},stepDecimals:function(){var t=this.minStepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:{immediate:!0,handler:function(t){this.newValue=t}},step:function(t){this.newStep=t},minStep:function(t){this.newMinStep=t}},methods:{isDisabled:function(t){return this.disabled||("plus"===t?this.disabledMax:this.disabledMin)},decrement:function(){if(null===this.computedValue||"undefined"===typeof this.computedValue){if(null!==this.maxNumber&&"undefined"!==typeof this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}if("undefined"===typeof this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(null===this.computedValue||"undefined"===typeof this.computedValue){if(null!==this.minNumber&&"undefined"!==typeof this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}if("undefined"===typeof this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"===t.type&&(e?this.increment():this.decrement())},longPressTick:function(t){var e=this;t?this.increment():this.decrement(),this._$intervalRef=setTimeout((function(){e.longPressTick(t)}),this.exponential?250/(this.exponential*this.timesPressed++):250)},onStartLongPress:function(t,e){this.longPress&&(0!==t.button&&"touchstart"!==t.type||(clearTimeout(this._$intervalRef),this.longPressTick(e)))},onStopLongPress:function(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=null)}}};const Yl=Ul;var ql=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t._l(t.controlsLeft,(function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])})),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.minStepNumber,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,placeholder:t.placeholder,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-input",t.$attrs,!1)),t._l(t.controlsRight,(function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])}))],2)},Xl=[];const Kl=void 0,Jl=void 0,Zl=void 0,Ql=!1;var tu=st({render:ql,staticRenderFns:Xl},Kl,Yl,Jl,Ql,Zl,void 0,void 0),eu={install:function(t){lt(t,tu)}};ct(eu);const nu=eu;var iu={name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(t){return it.defaultLinkTags.indexOf(t)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}};const ru=iu;var au=function(){var t,e=this,n=e.$createElement,i=e._self._c||n;return i(e.tag,e._b({tag:"component",staticClass:"pagination-link",class:(t={"is-current":e.page.isCurrent},t[e.page.class]=!0,t),attrs:{role:"button",href:e.href,disabled:e.isDisabled,"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent},on:{click:function(t){return t.preventDefault(),e.page.click(t)}}},"component",e.$attrs,!1),[e._t("default",[e._v(e._s(e.page.number))])],2)},ou=[];const su=void 0,cu=void 0,lu=void 0,uu=!1;var hu,du=st({render:au,staticRenderFns:ou},su,ru,cu,uu,lu,void 0,void 0);function fu(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,n||t.apply(r,a)},s=n&&!i;clearTimeout(i),i=setTimeout(o,e),s&&t.apply(r,a)}}var pu={name:"BPagination",components:(hu={},s(hu,St.name,St),s(hu,du.name,du),hu),model:{prop:"current",event:"update:current"},props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{inputValue:this.current}},computed:{rootClasses:function(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.current<this.pageCount-(2+this.afterCurrent)},hasNext:function(){return this.current<this.pageCount},pagesInRange:function(){if(!this.simple){var t=Math.max(1,this.current-this.beforeCurrent);t-1===2&&t--;var e=Math.min(this.current+this.afterCurrent,this.pageCount);this.pageCount-e===2&&e++;for(var n=[],i=t;i<=e;i++)n.push(this.getPage(i));return n}}},watch:{pageCount:function(t){this.current>t&&this.last()},current:function(t){this.inputValue=t},debouncePageInput:{handler:function(t){this.debounceHandlePageInput=fu(this.handleOnInputPageChange,t)},immediate:!0}},methods:{prev:function(t){this.changePage(this.current-1,t)},next:function(t){this.changePage(this.current+1,t)},first:function(t){this.changePage(1,t)},last:function(t){this.changePage(this.pageCount,t)},changePage:function(t,e){this.current===t||t<1||t>this.pageCount||(this.$emit("update:current",t),this.$emit("change",t),e&&e.target&&this.$nextTick((function(){return e.target.focus()})))},getPage:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:t,isCurrent:this.current===t,click:function(n){return e.changePage(t,n)},input:function(t,n){return e.changePage(+n,t)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(t,this.current===t)}},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."},handleOnInputPageChange:function(t){this.getPage(this.inputValue).input(t,this.inputValue)},handleOnInputDebounce:function(t){this.debouncePageInput?this.debounceHandlePageInput(t):this.handleOnInputPageChange(t)},handleOnKeyPress:function(t){var e=t.which||t.keyCode;return e>=48&&e<=57||t.preventDefault()},handleAllowableInputPageRange:function(t){+t.target.value>0&&+t.target.value<=this.pageCount?this.handleOnInputValue(t):(this.inputValue=1,this.inputValue="")},handleOnInputValue:function(t){var e=+t.target.value;this.inputValue=e,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(t):this.inputValue=this.current}}};const vu=pu;var mu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[t.$scopedSlots.previous?t._t("previous",[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current-1,{disabled:!t.hasPrev,class:"pagination-previous","aria-label":t.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!t.hasPrev,page:t.getPage(t.current-1),"aria-label":t.ariaPreviousLabel}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t.$scopedSlots.next?t._t("next",[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current+1,{disabled:!t.hasNext,class:"pagination-next","aria-label":t.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!t.hasNext,page:t.getPage(t.current+1),"aria-label":t.ariaNextLabel}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),n("div",{staticClass:"control pagination-input"},[t.pageInput?n("input",{staticClass:"input",attrs:{size:t.pageCount.toString().length,maxlength:t.pageCount.toString().length},domProps:{value:t.inputValue},on:{input:t.handleAllowableInputPageRange,keypress:t.handleOnKeyPress}}):t._e()]),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v(" "+t._s(t.firstItem)+" / "+t._s(t.total)+" ")]:[t._v(" "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+" ")]],2):n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(1)}):n("BPaginationButton",{attrs:{page:t.getPage(1)}})],2):t._e(),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[t.$scopedSlots.default?t._t("default",null,{page:e}):n("BPaginationButton",{attrs:{page:e}})],2)})),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t.hasLast?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(t.pageCount)}):n("BPaginationButton",{attrs:{page:t.getPage(t.pageCount)}})],2):t._e()],2)],2)},gu=[];const yu=void 0,bu=void 0,_u=void 0,wu=!1;var ku=st({render:mu,staticRenderFns:gu},yu,vu,bu,wu,_u,void 0,void 0),Su={install:function(t){lt(t,ku),lt(t,du)}};ct(Su);const xu=Su;var Cu={name:"BProgress",mixins:[xe("progress")],props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:function(){return it.defaultLocale}}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue:function(){return this.calculateValue(this.value)},isNative:function(){return void 0===this.$slots.bar},wrapperClasses:function(){return s({"is-not-native":!this.isNative},this.size,"string"===typeof this.size&&!this.isNative)}},watch:{isIndeterminate:function(t){var e=this;this.$nextTick((function(){e.$refs.progress&&(t?e.$refs.progress.removeAttribute("value"):e.$refs.progress.setAttribute("value",e.value))}))}},methods:{calculateValue:function(t){if(void 0!==t&&null!==t&&!isNaN(t)){var e=this.keepTrailingZeroes?this.precision:0,n=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:n}).format(t/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:e,maximumFractionDigits:n}).format(t)}}}};const Du=Cu;var Tu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-wrapper",class:[t.wrapperClasses,{"is-squared":!t.rounded}]},[t.isNative?n("progress",{ref:"progress",staticClass:"progress",class:[t.newType,{"is-squared":!t.rounded}],attrs:{max:t.max},domProps:{value:t.value}},[t._v(t._s(t.newValue))]):t._t("bar"),t.isNative&&t.showValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()],2)},Ou=[];const Eu=void 0,Au=void 0,Pu=void 0,Mu=!1;var Ru=st({render:Tu,staticRenderFns:Ou},Eu,Du,Au,Mu,Pu,void 0,void 0),Iu={name:"BProgressBar",mixins:[Oe("progress")],props:{type:{type:[String,Object],default:void 0},value:{type:Number,default:void 0},showValue:{type:Boolean,default:!1}},computed:{newType:function(){return[this.parent.size,this.type||this.parent.type]},newShowValue:function(){return this.showValue||this.parent.showValue},newValue:function(){return this.parent.calculateValue(this.value)},barWidth:function(){return"".concat(100*this.value/this.parent.max,"%")}}};const Nu=Iu;var $u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-bar",class:t.newType,style:{width:t.barWidth},attrs:{role:"progressbar","aria-valuenow":t.value,"aria-valuemax":t.parent.max,"aria-valuemin":"0"}},[t.newShowValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()])},Lu=[];const Fu=void 0,Bu=void 0,ju=void 0,zu=!1;var Hu=st({render:$u,staticRenderFns:Lu},Fu,Nu,Bu,zu,ju,void 0,void 0),Vu={install:function(t){lt(t,Ru),lt(t,Hu)}};ct(Vu);const Gu=Vu;var Wu={name:"BRadio",mixins:[vn]};const Uu=Wu;var Yu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-radio radio",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},change:function(e){t.computedValue=t.nativeValue}}}),n("span",{staticClass:"check",class:t.type}),n("span",{staticClass:"control-label"},[t._t("default")],2)])},qu=[];const Xu=void 0,Ku=void 0,Ju=void 0,Zu=!1;var Qu=st({render:Yu,staticRenderFns:qu},Xu,Uu,Ku,Zu,Ju,void 0,void 0),th={name:"BRadioButton",mixins:[vn],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{isSelected:function(){return this.newValue===this.nativeValue},labelClass:function(){return[this.isSelected?this.type:null,this.size,{"is-selected":this.isSelected,"is-disabled":this.disabled,"is-focused":this.isFocused}]}}};const eh=th;var nh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:t.labelClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[t._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){t.computedValue=t.nativeValue}}})],2)])},ih=[];const rh=void 0,ah=void 0,oh=void 0,sh=!1;var ch=st({render:nh,staticRenderFns:ih},rh,eh,ah,sh,oh,void 0,void 0),lh={install:function(t){lt(t,Qu),lt(t,ch)}};ct(lh);const uh=lh;var hh={name:"BRate",components:s({},St.name,St),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array,locale:{type:[String,Array],default:function(){return it.defaultLocale}}},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var t="";return this.showScore?(t=this.disabled?this.value:this.newValue,t=0===t?"":new Intl.NumberFormat(this.locale).format(this.value)):this.showText&&(t=this.texts[Math.ceil(this.newValue)-1]),t},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(t){this.newValue=t}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(t,e){this.disabled||(this.hoverValue=t,e.stopPropagation())},confirmValue:function(t){this.disabled||(this.newValue=t,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(t){var e=this.disabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value;return e},rateClass:function(t){var e="",n=0!==this.hoverValue?this.hoverValue:this.newValue;return t<=n?e="set-on":this.disabled&&Math.ceil(this.value)===t&&(e="set-half"),e}}};const dh=hh;var fh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rate",class:{"is-disabled":t.disabled,"is-spaced":t.spaced,"is-rtl":t.rtl}},[t._l(t.max,(function(e,i){return n("div",{key:i,staticClass:"rate-item",class:t.rateClass(e),on:{mousemove:function(n){return t.previewRate(e,n)},mouseleave:t.resetNewValue,click:function(n){return n.preventDefault(),t.confirmValue(e)}}},[n("b-icon",{attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}),t.checkHalf(e)?n("b-icon",{staticClass:"is-half",style:t.halfStyle,attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}):t._e()],1)})),t.showText||t.showScore||t.customText?n("div",{staticClass:"rate-text",class:t.size},[n("span",[t._v(t._s(t.showMe))]),t.customText&&!t.showText?n("span",[t._v(t._s(t.customText))]):t._e()]):t._e()],2)},ph=[];const vh=void 0,mh=void 0,gh=void 0,yh=!1;var bh=st({render:fh,staticRenderFns:ph},vh,dh,mh,yh,gh,void 0,void 0),_h={install:function(t){lt(t,bh)}};ct(_h);const wh=_h;var kh={install:function(t){lt(t,mr)}};ct(kh);const Sh=kh;var xh={name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},position:{type:String,default:"",validator:function(t){return["","is-centered","is-right"].indexOf(t)>-1}},size:String},render:function(t,e){if(e.props.active){for(var n=[],i=e.props.width,r=e.props.height,a=0;a<e.props.count;a++)n.push(t("div",{staticClass:"b-skeleton-item",class:{"is-rounded":e.props.rounded},key:a,style:{height:void 0===r?null:isNaN(r)?r:r+"px",width:void 0===i?null:isNaN(i)?i:i+"px",borderRadius:e.props.circle?"50%":null}}));return t("div",{staticClass:"b-skeleton",class:[e.props.size,e.props.position,{"is-animated":e.props.animated}]},n)}}};const Ch=xh,Dh=void 0,Th=void 0,Oh=void 0,Eh=void 0;var Ah=st({},Dh,Ch,Th,Eh,Oh,void 0,void 0),Ph={install:function(t){lt(t,Ah)}};ct(Ph);const Mh=Ph;var Rh={name:"BSidebar",model:{prop:"open",event:"update:open"},props:{open:Boolean,type:[String,Object],overlay:Boolean,position:{type:String,default:"fixed",validator:function(t){return["fixed","absolute","static"].indexOf(t)>=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,delay:{type:Number,default:function(){return it.defaultSidebarDelay}},canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return it.defaultModalScroll?it.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}}},data:function(){return{isOpen:this.open,isDelayOver:!1,transitionName:null,animating:!0,savedScrollTop:null,hasLeaved:!1,whiteList:[]}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce&&!this.isDelayOver,"is-mini-expand":this.expandOnHover||this.isDelayOver,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed||this.isDelayOver,"is-mini-delayed":null!==this.delay,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"===typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position}},watch:{open:{handler:function(t){this.isOpen=t,this.overlay&&this.handleScroll();var e=this.right?!t:t;this.transitionName=e?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(t){var e=t.key;this.isFixed&&(!this.isOpen||"Escape"!==e&&"Esc"!==e||this.cancel("escape"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(t){if(this.isFixed&&this.isOpen&&!this.animating){var e=Q(this)?t.composedPath()[0]:t.target;this.whiteList.indexOf(e)<0&&this.cancel("outside")}},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1},handleScroll:function(){"undefined"!==typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.open?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.open?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.open?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},onHover:function(){var t=this;this.delay?(this.hasLeaved=!1,this.timer=setTimeout((function(){t.hasLeaved||(t.isDelayOver=!0),t.timer=null}),this.delay)):this.isDelayOver=!1},onHoverLeave:function(){this.hasLeaved=!0,this.timer=null,this.isDelayOver=!1}},created:function(){"undefined"!==typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!==typeof window&&this.isFixed&&document.body.appendChild(this.$el),this.overlay&&this.open&&this.handleScroll()},beforeDestroy:function(){if("undefined"!==typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside),this.overlay)){document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}this.isFixed&&H(this.$el)},beforeUpdate:function(){if(this.whiteList=[],this.whiteList.push(this.$refs.sidebarContent),void 0!==this.$refs.sidebarContent){var t=this.$refs.sidebarContent.querySelectorAll("*"),e=!0,n=!1,i=void 0;try{for(var r,a=t[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;this.whiteList.push(o)}}catch(s){n=!0,i=s}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}}}};const Ih=Rh;var Nh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-sidebar"},[t.overlay&&t.isOpen?n("div",{staticClass:"sidebar-background"}):t._e(),n("transition",{attrs:{name:t.transitionName},on:{"before-enter":t.beforeEnter,"after-enter":t.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:t.rootClasses,on:{mouseenter:t.onHover,mouseleave:t.onHoverLeave}},[t._t("default")],2)])],1)},$h=[];const Lh=void 0,Fh=void 0,Bh=void 0,jh=!1;var zh=st({render:Nh,staticRenderFns:$h},Lh,Ih,Fh,jh,Bh,void 0,void 0),Hh={install:function(t){lt(t,zh)}};ct(Hh);const Vh=Hh;var Gh={name:"BSliderThumb",components:s({},Cr.name,Cr),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},indicator:{type:Boolean,default:!1},customFormatter:Function,format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},locale:{type:[String,Array],default:function(){return it.defaultLocale}},tooltipAlways:{type:Boolean,default:!1}},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},formattedValue:function(){return"undefined"!==typeof this.customFormatter?this.customFormatter(this.value):"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent"}).format((this.value-this.min)/(this.max-this.min)):new Intl.NumberFormat(this.locale).format(this.value)}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),"undefined"!==typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(t){this.dragging=!0,this.$emit("dragstart"),"touchstart"===t.type&&(t.clientX=t.touches[0].clientX),this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){"touchmove"===t.type&&(t.clientX=t.touches[0].clientX);var e=(t.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!==typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var e=100/((this.max-this.min)/this.step),n=Math.round(t/e),i=n*e/100*(this.max-this.min)+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.dragging||i===this.oldValue||(this.oldValue=i)}}}};const Wh=Gh;var Uh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":t.dragging,"has-indicator":t.indicator},style:t.wrapperStyle},[n("b-tooltip",{attrs:{label:t.formattedValue,type:t.type,always:t.dragging||t.isFocused||t.tooltipAlways,active:!t.disabled&&t.tooltip}},[n("div",t._b({staticClass:"b-slider-thumb",attrs:{tabindex:!t.disabled&&0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onFocus,blur:t.onBlur,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"home",void 0,e.key,void 0)?null:(e.preventDefault(),t.onHomeKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"end",void 0,e.key,void 0)?null:(e.preventDefault(),t.onEndKeyDown(e))}]}},"div",t.$attrs,!1),[t.indicator?n("span",[t._v(t._s(t.formattedValue))]):t._e()])])],1)},Yh=[];const qh=void 0,Xh=void 0,Kh=void 0,Jh=!1;var Zh=st({render:Uh,staticRenderFns:Yh},qh,Wh,Xh,Jh,Kh,void 0,void 0),Qh={name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var t=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return t>=0&&t<=100?t:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(t){return{left:t+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}};const td=Qh;var ed=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":t.hidden},style:t.getTickStyle(t.position)},[t.$slots.default?n("span",{staticClass:"b-slider-tick-label"},[t._t("default")],2):t._e()])},nd=[];const id=void 0,rd=void 0,ad=void 0,od=!1;var sd,cd=st({render:ed,staticRenderFns:nd},id,td,rd,od,ad,void 0,void 0),ld={name:"BSlider",components:(sd={},s(sd,Zh.name,Zh),s(sd,cd.name,cd),sd),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},locale:{type:[String,Array],default:function(){return it.defaultLocale}},tooltipAlways:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.type},tickValues:function(){if(!this.ticks||this.min>this.max||0===this.step)return[];for(var t=[],e=this.min+this.step;e<this.max;e+=this.step)t.push(e);return t},minValue:function(){return Math.min(this.value1,this.value2)},maxValue:function(){return Math.max(this.value1,this.value2)},barSize:function(){return this.isRange?"".concat(100*(this.maxValue-this.minValue)/(this.max-this.min),"%"):"".concat(100*(this.value1-this.min)/(this.max-this.min),"%")},barStart:function(){return this.isRange?"".concat(100*(this.minValue-this.min)/(this.max-this.min),"%"):"0%"},precision:function(){var t=[this.min,this.max,this.step].map((function(t){var e=(""+t).split(".")[1];return e?e.length:0}));return Math.max.apply(Math,x(t))},barStyle:function(){return{width:this.barSize,left:this.barStart}},rootClasses:function(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{value:function(t){this.setValues(t)},value1:function(){this.onInternalValueUpdate()},value2:function(){this.onInternalValueUpdate()},min:function(){this.setValues(this.value)},max:function(){this.setValues(this.value)}},methods:{setValues:function(t){if(!(this.min>this.max))if(Array.isArray(t)){this.isRange=!0;var e="number"!==typeof t[0]||isNaN(t[0])?this.min:N(t[0],this.min,this.max),n="number"!==typeof t[1]||isNaN(t[1])?this.max:N(t[1],this.min,this.max);this.value1=this.isThumbReversed?n:e,this.value2=this.isThumbReversed?e:n}else this.isRange=!1,this.value1=isNaN(t)?this.min:N(t,this.min,this.max),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(t){if(!this.disabled&&!this.isTrackClickDisabled){var e=this.$refs.slider.getBoundingClientRect().left,n=(t.clientX-e)/this.sliderSize()*100,i=this.min+n*(this.max-this.min)/100,r=Math.abs(i-this.value1);if(this.isRange){var a=Math.abs(i-this.value2);if(r<=a){if(r<this.step/2)return;this.$refs["button1"].setPosition(n)}else{if(a<this.step/2)return;this.$refs["button2"].setPosition(n)}}else{if(r<this.step/2)return;this.$refs.button1.setPosition(n)}this.emitValue("change")}},onDragStart:function(){this.dragging=!0,this.$emit("dragstart")},onDragEnd:function(){var t=this;this.isTrackClickDisabled=!0,setTimeout((function(){t.isTrackClickDisabled=!1}),0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("input")},emitValue:function(t){this.$emit(t,this.isRange?[this.minValue,this.maxValue]:this.value1)}},created:function(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.value)}};const ud=ld;var hd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider",class:[t.size,t.type,t.rootClasses],on:{click:t.onSliderClick}},[n("div",{ref:"slider",staticClass:"b-slider-track"},[n("div",{staticClass:"b-slider-fill",style:t.barStyle}),t.ticks?t._l(t.tickValues,(function(t,e){return n("b-slider-tick",{key:e,attrs:{value:t}})})):t._e(),t._t("default"),n("b-slider-thumb",{ref:"button1",attrs:{"tooltip-always":t.tooltipAlways,type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,indicator:t.indicator,format:t.format,locale:t.locale,role:"slider","aria-valuenow":t.value1,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[0]:t.ariaLabel,"aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t.isRange?n("b-slider-thumb",{ref:"button2",attrs:{"tooltip-always":t.tooltipAlways,type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,indicator:t.indicator,format:t.format,locale:t.locale,role:"slider","aria-valuenow":t.value2,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[1]:"","aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}}):t._e()],2)])},dd=[];const fd=void 0,pd=void 0,vd=void 0,md=!1;var gd=st({render:hd,staticRenderFns:dd},fd,ud,pd,md,vd,void 0,void 0),yd={install:function(t){lt(t,gd),lt(t,cd)}};ct(yd);const bd=yd;var _d={name:"BSnackbar",mixins:[wc],props:{actionText:{type:String,default:"OK"},onAction:{type:Function,default:function(){}},cancelText:{type:null|String,default:null}},data:function(){return{newDuration:this.duration||it.defaultSnackbarDuration}},methods:{action:function(){this.onAction(),this.close()}}};const wd=_d;var kd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"snackbar",class:[t.type,t.position],attrs:{role:t.actionText?"alertdialog":"alert"},on:{mouseenter:t.pause,mouseleave:t.removePause}},[t.$slots.default?[t._t("default")]:[n("div",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}})],t.cancelText?n("div",{staticClass:"action is-light is-cancel",on:{click:t.close}},[n("button",{staticClass:"button"},[t._v(t._s(t.cancelText))])]):t._e(),t.actionText?n("div",{staticClass:"action",class:t.type,on:{click:t.action}},[n("button",{staticClass:"button"},[t._v(t._s(t.actionText))])]):t._e()],2)])},Sd=[];const xd=void 0,Cd=void 0,Dd=void 0,Td=!1;var Od,Ed=st({render:kd,staticRenderFns:Sd},xd,wd,Cd,Td,Dd,void 0,void 0),Ad={open:function(t){var e;"string"===typeof t&&(t={message:t});var n,i={type:"is-success",position:it.defaultSnackbarPosition||"is-bottom-right",queue:!0};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message);var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:Od||tt,o=a.extend(Ed),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},Pd={install:function(t){Od=t,ut(t,"snackbar",Ad)}};ct(Pd);const Md=Pd;var Rd={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh:function(){this.$forceUpdate()}},created:function(){G(this.component)&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){G(this.component)&&this.component.$off(this.event,this.refresh)},render:function(t){if(G(this.component))return t(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}},Id=function(t){var e;return{mixins:[xe(t,Se)],components:(e={},s(e,St.name,St),s(e,Rd.name,Rd),e),props:{value:{type:[String,Number],default:void 0},size:String,animated:{type:Boolean,default:!0},animation:String,animateInitially:Boolean,vertical:{type:Boolean,default:!1},position:String,destroyOnHide:{type:Boolean,default:!1}},data:function(){return{activeId:this.value,defaultSlots:[],contentHeight:0,isTransitioning:!1}},mounted:function(){if("number"===typeof this.value){var t=N(this.value,0,this.items.length-1);this.activeId=this.items[t].value}else this.activeId=this.value},computed:{activeItem:function(){var t=this;return void 0===this.activeId?this.items[0]:null===this.activeId?null:this.childItems.find((function(e){return e.value===t.activeId}))},items:function(){return this.sortedItems}},watch:{value:function(t){"number"===typeof t?(t=N(t,0,this.items.length-1),this.activeId=this.items[t].value):this.activeId=t},activeId:function(t,e){var n=void 0!==e&&null!==e?this.childItems.find((function(t){return t.value===e})):null;n&&this.activeItem&&(n.deactivate(this.activeItem.index),this.activeItem.activate(n.index)),t=this.activeItem?"number"===typeof this.value?this.items.indexOf(this.activeItem):this.activeItem.value:void 0,t!==this.value&&this.$emit("input",t)}},methods:{childClick:function(t){this.activeId=t.value},getNextItemIdx:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=t+1;i<this.items.length;i++){var r=this.items[i];if(r.visible&&(!e||e&&!r.disabled)){n=i;break}}return n},getPrevItemIdx:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=t-1;i>=0;i--){var r=this.items[i];if(r.visible&&(!e||e&&!r.disabled)){n=i;break}}return n}}}},Nd=function(t){return{mixins:[Oe(t,Te)],props:{label:String,icon:String,iconPack:String,visible:{type:Boolean,default:!0},value:{type:String,default:function(){return this._uid.toString()}},headerClass:{type:[String,Array,Object],default:null}},data:function(){return{transitionName:null,elementClass:"item",elementRole:null}},computed:{isActive:function(){return this.parent.activeItem===this}},methods:{activate:function(t){this.transitionName=this.index<t?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"},deactivate:function(t){this.transitionName=t<this.index?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"}},render:function(t){var e=this;if(!this.parent.destroyOnHide||this.isActive&&this.visible){var n=t("div",{directives:[{name:"show",value:this.isActive&&this.visible}],attrs:{class:this.elementClass,role:this.elementRole,id:"".concat(this.value,"-content"),"aria-labelledby":this.elementRole?"".concat(this.value,"-label"):null,tabindex:this.isActive?0:-1}},this.$slots.default);return this.parent.animated?t("transition",{props:{name:this.parent.animation||this.transitionName,appear:!0===this.parent.animateInitially||void 0},on:{"before-enter":function(){e.parent.isTransitioning=!0},"after-enter":function(){e.parent.isTransitioning=!1}}},[n]):n}}}},$d={name:"BSteps",components:s({},St.name,St),mixins:[Id("step")],props:{type:[String,Object],iconPack:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},hasNavigation:{type:Boolean,default:!0},labelPosition:{type:String,validator:function(t){return["bottom","right","left"].indexOf(t)>-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(t){return["minimalist","compact"].indexOf(t)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},computed:{activeItem:function(){var t=this;return this.childItems.filter((function(e){return e.value===t.activeId}))[0]||this.items[0]},wrapperClasses:function(){return[this.size,s({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,s({"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),null!==this.mobileMode)]},hasPrev:function(){return null!==this.prevItemIdx},nextItemIdx:function(){var t=this.activeItem?this.items.indexOf(this.activeItem):0;return this.getNextItemIdx(t)},nextItem:function(){var t=null;return null!==this.nextItemIdx&&(t=this.items[this.nextItemIdx]),t},prevItemIdx:function(){if(!this.activeItem)return null;var t=this.items.indexOf(this.activeItem);return this.getPrevItemIdx(t)},prevItem:function(){if(!this.activeItem)return null;var t=null;return null!==this.prevItemIdx&&(t=this.items[this.prevItemIdx]),t},hasNext:function(){return null!==this.nextItemIdx},navigationProps:function(){return{previous:{disabled:!this.hasPrev,action:this.prev},next:{disabled:!this.hasNext,action:this.next}}}},methods:{isItemClickable:function(t){return void 0===t.clickable?t.index<this.activeItem.index:t.clickable},prev:function(){this.hasPrev&&(this.activeId=this.prevItem.value)},next:function(){this.hasNext&&(this.activeId=this.nextItem.value)}}};const Ld=$d;var Fd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-steps",class:t.wrapperClasses},[n("nav",{staticClass:"steps",class:t.mainClasses},[n("ul",{staticClass:"step-items"},t._l(t.items,(function(e){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"childItem.visible"}],key:e.value,staticClass:"step-item",class:[e.type||t.type,e.headerClass,{"is-active":e.isActive,"is-previous":t.activeItem.index>e.index}]},[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e)},on:{click:function(n){t.isItemClickable(e)&&t.childClick(e)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):e.step?n("span",[t._v(t._s(e.step))]):t._e()],1),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})),0)]),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._t("navigation",[t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:t.navigationProps.previous.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.previous.action(e)}}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:t.navigationProps.next.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.next.action(e)}}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()],{previous:t.navigationProps.previous,next:t.navigationProps.next})],2)},Bd=[];const jd=void 0,zd=void 0,Hd=void 0,Vd=!1;var Gd=st({render:Fd,staticRenderFns:Bd},jd,Ld,zd,Vd,Hd,void 0,void 0),Wd={name:"BStepItem",mixins:[Nd("step")],props:{step:[String,Number],type:[String,Object],clickable:{type:Boolean,default:void 0}},data:function(){return{elementClass:"step-item"}}};const Ud=Wd,Yd=void 0,qd=void 0,Xd=void 0,Kd=void 0;var Jd=st({},Yd,Ud,qd,Kd,Xd,void 0,void 0),Zd={install:function(t){lt(t,Gd),lt(t,Jd)}};ct(Zd);const Qd=Zd;var tf={name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,passiveType:String,name:String,required:Boolean,size:String,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:function(){return it.defaultSwitchRounded}},outlined:{type:Boolean,default:!1},leftLabel:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined,"has-left-label":this.leftLabel}]},checkClasses:function(){return[{"is-elastic":this.isMouseDown&&!this.disabled},this.passiveType&&"".concat(this.passiveType,"-passive"),this.type]},showControlLabel:function(){return!!this.$slots.default}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}};const ef=tf;var nf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"switch",class:t.newClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())},mousedown:function(e){t.isMouseDown=!0},mouseup:function(e){t.isMouseDown=!1},mouseout:function(e){t.isMouseDown=!1},blur:function(e){t.isMouseDown=!1}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,name:t.name,required:t.required,"true-value":t.trueValue,"false-value":t.falseValue,"aria-labelledby":t.ariaLabelledby},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var a=t.nativeValue,o=t._i(n,a);i.checked?o<0&&(t.computedValue=n.concat([a])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}}),n("span",{staticClass:"check",class:t.checkClasses}),t.showControlLabel?n("span",{staticClass:"control-label",attrs:{id:t.ariaLabelledby}},[t._t("default")],2):t._e()])},rf=[];const af=void 0,of=void 0,sf=void 0,cf=!1;var lf=st({render:nf,staticRenderFns:rf},af,ef,of,cf,sf,void 0,void 0),uf={install:function(t){lt(t,lf)}};ct(uf);const hf=uf;var df,ff={name:"BTableMobileSort",components:(df={},s(df,mr.name,mr),s(df,St.name,St),df),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some((function(e){return e===t.mobileSort}))}},watch:{sortMultipleSelect:function(t){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",t,this.defaultEvent)},mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t,this.defaultEvent)},currentSortColumn:function(t){this.mobileSort=t}},methods:{removePriority:function(){var t=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var e=this.sortMultipleData.filter((function(e){return e.field!==t.sortMultipleSelect.field})).map((function(t){return t.field}));this.sortMultipleSelect=this.columns.filter((function(t){return e.includes(t.field)}))[0]},getSortingObjectOfColumn:function(t){return this.sortMultipleData.filter((function(e){return e.field===t.field}))[0]},columnIsDesc:function(t){var e=this.getSortingObjectOfColumn(t);return!e||!(!e.order||"desc"!==e.order)},getLabel:function(t){var e=this.getSortingObjectOfColumn(t);return e?t.label+"("+(this.sortMultipleData.indexOf(e)+1)+")":t.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}};const pf=ff;var vf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[t.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:t.sortMultipleSelect,callback:function(e){t.sortMultipleSelect=e},expression:"sortMultipleSelect"}},t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(t.getLabel(e))+" "),t.getSortingObjectOfColumn(e)?[t.columnIsDesc(e)?[t._v(" ↓ ")]:[t._v(" ↑ ")]]:t._e()],2):t._e()})),0):n("b-select",{attrs:{expanded:""},model:{value:t.mobileSort,callback:function(e){t.mobileSort=e},expression:"mobileSort"}},[t.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[t._v(" "+t._s(t.placeholder)+" ")])]:t._e(),t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(e.label)+" ")]):t._e()}))],2),n("div",{staticClass:"control"},[t.sortMultiple&&t.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{class:{"is-desc":t.columnIsDesc(t.sortMultipleSelect)},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1),n("button",{staticClass:"button is-primary",on:{click:t.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:t.sortIconSize,both:""}})],1)]:t.sortMultiple?t._e():n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===t.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!t.isAsc},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1)],2)],1)])},mf=[];const gf=void 0,yf=void 0,bf=void 0,_f=!1;var wf=st({render:vf,staticRenderFns:mf},gf,pf,yf,_f,bf,void 0,void 0),kf={name:"BTableColumn",inject:{$table:{name:"$table",default:!1}},props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,customSearch:Function,sticky:Boolean,headerSelectable:Boolean,headerClass:String,cellClass:String,thAttrs:{type:Function,default:function(){return{}}},tdAttrs:{type:Function,default:function(){return{}}}},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{thClasses:function(){var t=this.thAttrs(this),e=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return t&&t.class&&e.push(t.class),e},thStyle:function(){var t=this.thAttrs(this),e=[this.style];return t&&t.style&&e.push(t.style),e},rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},style:function(){return{width:q(this.width)}},hasDefaultSlot:function(){return!!this.$scopedSlots.default},isHeaderUnSelectable:function(){return!this.headerSelectable&&this.sortable}},methods:{getRootClasses:function(t){var e=this.tdAttrs(t,this),n=[this.rootClasses];return e&&e.class&&n.push(e.class),n},getRootStyle:function(t){var e=this.tdAttrs(t,this),n=[];return e&&e.style&&n.push(e.style),n}},created:function(){if(!this.$table)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");this.$table.refreshSlots()},beforeDestroy:function(){this.$table.refreshSlots()},render:function(t){return null}};const Sf=kf,xf=void 0,Cf=void 0,Df=void 0,Tf=void 0;var Of=st({},xf,Sf,Cf,Tf,Df,void 0,void 0),Ef={name:"BTablePagination",components:s({},ku.name,ku),props:{paginated:Boolean,total:[Number,String],perPage:[Number,String],currentPage:[Number,String],paginationSimple:Boolean,paginationSize:String,rounded:Boolean,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:Boolean,paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{newCurrentPage:this.currentPage}},watch:{currentPage:function(t){this.newCurrentPage=t}},methods:{pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("update:currentPage",this.newCurrentPage),this.$emit("page-change",this.newCurrentPage)}}};const Af=Ef;var Pf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[t._t("default")],2),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.total,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,rounded:t.rounded,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel,"page-input":t.pageInput,order:t.paginationOrder,"page-input-position":t.pageInputPosition,"debounce-page-input":t.debouncePageInput},on:{change:t.pageChanged}})],1):t._e()])])},Mf=[];const Rf=void 0,If=void 0,Nf=void 0,$f=!1;var Lf,Ff=st({render:Pf,staticRenderFns:Mf},Rf,Af,If,$f,Nf,void 0,void 0),Bf={name:"BTable",components:(Lf={},s(Lf,xn.name,xn),s(Lf,St.name,St),s(Lf,Mt.name,Mt),s(Lf,Os.name,Os),s(Lf,Rd.name,Rd),s(Lf,wf.name,wf),s(Lf,Of.name,Of),s(Lf,Ff.name,Ff),Lf),inheritAttrs:!1,provide:function(){return{$table:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxType:{type:String,default:"is-primary"},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},stickyCheckbox:{type:Boolean,default:!1},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},detailIcon:{type:String,default:"chevron-right"},paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},paginationRounded:Boolean,backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},detailTransition:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},draggableColumn:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean,showHeader:{type:Boolean,default:!0},debounceSearch:Number,caption:String,showCaption:{type:Boolean,default:!0},pageInput:{type:Boolean,default:!1},paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{sortMultipleDataLocal:[],getValueByPath:$,visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:x(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},defaultSlots:[],firstTimeSort:!0,_isTable:!0,isDraggingRow:!1,isDraggingColumn:!1}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},tableStyle:function(){return{height:q(this.height)}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,e=this.perPage;if(this.newData.length<=e)return this.newData;var n=(t-1)*e,i=parseInt(n,10)+parseInt(e,10);return this.newData.slice(n,i)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(t){return t.visible||void 0===t.visible})):this.newColumns},isAllChecked:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));if(0===e.length)return!1;var n=e.some((function(e){return L(t.newCheckedRows,e,t.customIsChecked)<0}));return!n},isAllUncheckable:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));return 0===e.length},hasSortablenewColumns:function(){return this.newColumns.some((function(t){return t.sortable}))},hasSearchablenewColumns:function(){return this.newColumns.some((function(t){return t.searchable}))},hasCustomSubheadings:function(){return!(!this.$scopedSlots||!this.$scopedSlots.subheading)||this.newColumns.some((function(t){return t.subheading||t.$scopedSlots&&t.$scopedSlots.subheading}))},columnCount:function(){var t=this.visibleColumns.length;return t+=this.checkable?1:0,t+=this.detailed&&this.showDetailIcon?1:0,t},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((function(t){return t.sticky}))},newColumns:function(){var t=this;return this.columns&&this.columns.length?this.columns.map((function(e){var n=tt.extend(Of),i=new n({parent:t,propsData:e});return i.$scopedSlots={default:function(t){var n=i.$createElement("span",{domProps:{innerHTML:$(t.row,e.field)}});return[n]}},i})):this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isTableColumn})).map((function(t){return t.componentInstance}))},canDragRow:function(){return this.draggable&&!this.isDraggingColumn},canDragColumn:function(){return this.draggableColumn&&!this.isDraggingRow}},watch:{data:function(t){var e=this;this.newData=t,this.backendFiltering||(this.newData=t.filter((function(t){return e.isRowFiltered(t)}))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total:function(t){this.backendPagination&&(this.newDataTotal=t)},currentPage:function(t){this.newCurrentPage=t},newCurrentPage:function(t){this.$emit("update:currentPage",t)},checkedRows:function(t){this.newCheckedRows=x(t)},debounceSearch:{handler:function(t){this.debouncedHandleFiltersChange=fu(this.handleFiltersChange,t)},immediate:!0},filters:{handler:function(t){this.debounceSearch?this.debouncedHandleFiltersChange(t):this.handleFiltersChange(t)},deep:!0},openedDetailed:function(t){this.visibleDetailRows=t}},methods:{onFiltersEvent:function(t){this.$emit("filters-event-".concat(this.filtersEvent),{event:t,filters:this.filters})},handleFiltersChange:function(t){var e=this;this.backendFiltering?this.$emit("filters-change",t):(this.newData=this.data.filter((function(t){return e.isRowFiltered(t)})),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},findIndexOfSortData:function(t){var e=this.sortMultipleDataComputed.filter((function(e){return e.field===t.field}))[0];return this.sortMultipleDataComputed.indexOf(e)+1},removeSortingPriority:function(t){if(this.backendSorting)this.$emit("sorting-priority-removed",t.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((function(e){return e.field!==t.field}));var e=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));0===e.length?this.resetMultiSorting():this.newData=Y(this.newData,e)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(t,e,n,i){var r=[];return r=n&&"function"===typeof n?x(t).sort((function(t,e){return n(t,e,i)})):x(t).sort((function(t,n){var r=$(t,e),a=$(n,e);return"boolean"===typeof r&&"boolean"===typeof a?i?r-a:a-r:!nt(a)&&nt(r)?i?1:-1:!nt(r)&&nt(a)?i?-1:1:r===a?0:(r="string"===typeof r?r.toUpperCase():r,a="string"===typeof a?a.toUpperCase():a,i?r>a?1:-1:r>a?-1:1)})),r},sortMultiColumn:function(t){if(this.currentSortColumn={},!this.backendSorting){var e=this.sortMultipleDataLocal.filter((function(e){return e.field===t.field}))[0];e?e.order="desc"===e.order?"asc":"desc":this.sortMultipleDataLocal.push({field:t.field,order:t.isAsc}),this.doSortMultiColumn()}},doSortMultiColumn:function(){var t=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));this.newData=Y(this.newData,t)},sort:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&t.sortable&&(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&n[this.sortMultipleKey]||!this.sortMultipleKey)?e?this.doSortMultiColumn():this.sortMultiColumn(t):(this.sortMultiple&&(this.sortMultipleDataLocal=[]),e||(this.isAsc=t===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc",n),this.backendSorting||this.doSortSingleColumn(t),this.currentSortColumn=t))},doSortSingleColumn:function(t){this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)},isRowSelected:function(t,e){return!!e&&(this.customRowKey?t[this.customRowKey]===e[this.customRowKey]:t===e)},isRowChecked:function(t){return L(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var e=L(this.newCheckedRows,t,this.customIsChecked);e>=0&&this.newCheckedRows.splice(e,1)},checkAll:function(){var t=this,e=this.isAllChecked;this.visibleData.forEach((function(n){t.isRowCheckable(n)&&t.removeCheckedRow(n),e||t.isRowCheckable(n)&&t.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t,e,n){if(this.isRowCheckable(t)){var i=this.lastCheckedRowIndex;this.lastCheckedRowIndex=e,n.shiftKey&&null!==i&&e!==i?this.shiftCheckRow(t,e,i):this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(t,e,n){var i=this,r=this.visibleData.slice(Math.min(e,n),Math.max(e,n)+1),a=!this.isRowChecked(t);r.forEach((function(t){i.removeCheckedRow(t),a&&i.isRowCheckable(t)&&i.newCheckedRows.push(t)}))},selectRow:function(t,e){this.$emit("click",t),this.selected!==t&&this.isRowSelectable(t)&&(this.$emit("select",t,this.selected),this.$emit("update:selected",t))},toggleDetails:function(t){var e=this.isVisibleDetailRow(t);e?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var e=this.handleDetailKey(t);this.visibleDetailRows.push(e)},closeDetailRow:function(t){var e=this.handleDetailKey(t),n=this.visibleDetailRows.indexOf(e);n>=0&&this.visibleDetailRows.splice(n,1)},isVisibleDetailRow:function(t){var e=this.handleDetailKey(t);return this.visibleDetailRows.indexOf(e)>=0},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},isRowFiltered:function(t){var e=this,n=function(n){if(!e.filters[n])return"continue";var i=e.filters[n],r=e.newColumns.filter((function(t){return t.field===n}))[0];if(r&&r.customSearch&&"function"===typeof r.customSearch){if(!r.customSearch(t,i))return{v:!1}}else{var a=e.getValueByPath(t,n);if(null==a)return{v:!1};if(Number.isInteger(a)){if(a!==Number(i))return{v:!1}}else{var o=new RegExp(W(i),"i");if(Array.isArray(a)){var s=a.some((function(t){return o.test(U(t))||o.test(t)}));if(!s)return{v:!1}}else if(!o.test(U(a))&&!o.test(a))return{v:!1}}}};for(var r in this.filters){var a=n(r);switch(a){case"continue":continue;default:if("object"===i(a))return a.v}}return!0},handleDetailKey:function(t){var e=this.detailKey;return e.length&&t?t[e]:t},checkPredefinedDetailedRows:function(){var t=this.openedDetailed.length>0;if(t&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&Object.keys(this.currentSortColumn).length>0)for(var t=0;t<this.newColumns.length;t++)if(this.newColumns[t].field===this.currentSortColumn.field){this.currentSortColumn=this.newColumns[t];break}},hasCustomFooterSlot:function(){if(this.$slots.footer.length>1)return!0;var t=this.$slots.footer[0].tag;return"th"===t||"td"===t},hasBottomLeftSlot:function(){return"undefined"!==typeof this.$slots["bottom-left"]},pressedArrow:function(t){if(this.visibleData.length){var e=this.visibleData.indexOf(this.selected)+t;e=e<0?0:e>this.visibleData.length-1?this.visibleData.length-1:e;var n=this.visibleData[e];if(this.isRowSelectable(n))this.selectRow(n);else{var i=null;if(t>0)for(var r=e;r<this.visibleData.length&&null===i;r++)this.isRowSelectable(this.visibleData[r])&&(i=r);else for(var a=e;a>=0&&null===i;a--)this.isRowSelectable(this.visibleData[a])&&(i=a);i>=0&&this.selectRow(this.visibleData[i])}}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((function(e){t.sortMultiColumn(e)}));else{if(!this.defaultSort)return;var e="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):e=this.defaultSort;var i=this.newColumns.filter((function(t){return t.field===e}))[0];i&&(this.isAsc="desc"!==n.toLowerCase(),this.sort(i,!0))}},handleDragStart:function(t,e,n){this.canDragRow&&(this.isDraggingRow=!0,this.$emit("dragstart",{event:t,row:e,index:n}))},handleDragEnd:function(t,e,n){this.canDragRow&&(this.isDraggingRow=!1,this.$emit("dragend",{event:t,row:e,index:n}))},handleDrop:function(t,e,n){this.canDragRow&&this.$emit("drop",{event:t,row:e,index:n})},handleDragOver:function(t,e,n){this.canDragRow&&this.$emit("dragover",{event:t,row:e,index:n})},handleDragLeave:function(t,e,n){this.canDragRow&&this.$emit("dragleave",{event:t,row:e,index:n})},emitEventForRow:function(t,e,n){return this.$listeners[t]?this.$emit(t,n,e):null},handleColumnDragStart:function(t,e,n){this.canDragColumn&&(this.isDraggingColumn=!0,this.$emit("columndragstart",{event:t,column:e,index:n}))},handleColumnDragEnd:function(t,e,n){this.canDragColumn&&(this.isDraggingColumn=!1,this.$emit("columndragend",{event:t,column:e,index:n}))},handleColumnDrop:function(t,e,n){this.canDragColumn&&this.$emit("columndrop",{event:t,column:e,index:n})},handleColumnDragOver:function(t,e,n){this.canDragColumn&&this.$emit("columndragover",{event:t,column:e,index:n})},handleColumnDragLeave:function(t,e,n){this.canDragColumn&&this.$emit("columndragleave",{event:t,column:e,index:n})},refreshSlots:function(){this.defaultSlots=this.$slots.default||[]}},mounted:function(){this.refreshSlots(),this.checkPredefinedDetailedRows(),this.checkSort()}};const jf=Bf;var zf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-table"},[t._t("default"),t.mobileCards&&t.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":t.currentSortColumn,"sort-multiple":t.sortMultiple,"sort-multiple-data":t.sortMultipleDataComputed,"is-asc":t.isAsc,columns:t.newColumns,placeholder:t.mobileSortPlaceholder,"icon-pack":t.iconPack,"sort-icon":t.sortIcon,"sort-icon-size":t.sortIconSize},on:{sort:function(e,n){return t.sort(e,null,n)},removePriority:function(e){return t.removeSortingPriority(e)}}}):t._e(),!t.paginated||"top"!==t.paginationPosition&&"both"!==t.paginationPosition?t._e():[t._t("pagination",[n("b-table-pagination",t._b({attrs:{"per-page":t.perPage,paginated:t.paginated,rounded:t.paginationRounded,"icon-pack":t.iconPack,total:t.newDataTotal,"current-page":t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel,"page-input":t.pageInput,"pagination-order":t.paginationOrder,"page-input-position":t.pageInputPosition,"debounce-page-input":t.debouncePageInput},on:{"update:currentPage":function(e){t.newCurrentPage=e},"update:current-page":function(e){t.newCurrentPage=e},"page-change":function(e){return t.$emit("page-change",e)}}},"b-table-pagination",t.$attrs,!1),[t._t("top-left")],2)])],n("div",{staticClass:"table-wrapper",class:t.tableWrapperClasses,style:t.tableStyle},[n("table",{staticClass:"table",class:t.tableClasses,attrs:{tabindex:!!t.focusable&&0},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pressedArrow(-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pressedArrow(1))}]}},[t.caption?n("caption",{directives:[{name:"show",rawName:"v-show",value:t.showCaption,expression:"showCaption"}]},[t._v(t._s(t.caption))]):t._e(),t.newColumns.length&&t.showHeader?n("thead",[n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[t.headerCheckable?[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isAllChecked,type:t.checkboxType,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",t._b({key:e.newKey+":"+i+"header",class:[e.thClasses,{"is-current-sort":!t.sortMultiple&&t.currentSortColumn===e}],style:e.thStyle,attrs:{draggable:t.canDragColumn},on:{click:function(n){return n.stopPropagation(),t.sort(e,null,n)},dragstart:function(n){return t.handleColumnDragStart(n,e,i)},dragend:function(n){return t.handleColumnDragEnd(n,e,i)},drop:function(n){return t.handleColumnDrop(n,e,i)},dragover:function(n){return t.handleColumnDragOver(n,e,i)},dragleave:function(n){return t.handleColumnDragLeave(n,e,i)}}},"th",e.thAttrs(e),!1),[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.header?[n("b-slot-component",{attrs:{component:e,scoped:"",name:"header",tag:"span",props:{column:e,index:i}}})]:[n("span",{staticClass:"is-relative"},[t._v(" "+t._s(e.label)+" "),t.sortMultiple&&t.sortMultipleDataComputed&&t.sortMultipleDataComputed.length>0&&t.sortMultipleDataComputed.filter((function(t){return t.field===e.field})).length>0?[n("b-icon",{class:{"is-desc":"desc"===t.sortMultipleDataComputed.filter((function(t){return t.field===e.field}))[0].order},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}),t._v(" "+t._s(t.findIndexOfSortData(e))+" "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(n){return n.stopPropagation(),t.removeSortingPriority(e)}}})]:n("b-icon",{staticClass:"sort-icon",class:{"is-desc":!t.isAsc,"is-invisible":t.currentSortColumn!==e},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}})],2)]],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[t.headerCheckable?[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isAllChecked,type:t.checkboxType,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e()],2),t.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",{key:e.newKey+":"+i+"subheading",style:e.style},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:e,scoped:"",name:"subheading",tag:"span",props:{column:e,index:i}}})]:[t._v(t._s(e.subheading))]],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e(),t.hasSearchablenewColumns?n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",t._b({key:e.newKey+":"+i+"searchable",class:{"is-sticky":e.sticky},style:e.thStyle},"th",e.thAttrs(e),!1),[n("div",{staticClass:"th-wrap"},[e.searchable?[e.$scopedSlots&&e.$scopedSlots.searchable?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"searchable",tag:"span",props:{column:e,filters:t.filters}}})]:n("b-input",{attrs:{type:e.numeric?"number":"text"},nativeOn:t._d({},[t.filtersEvent,function(e){return t.onFiltersEvent(e)}]),model:{value:t.filters[e.field],callback:function(n){t.$set(t.filters,e.field,n)},expression:"filters[column.field]"}})]:t._e()],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e()]):t._e(),n("tbody",[t._l(t.visibleData,(function(e,i){return[n("tr",{key:t.customRowKey?e[t.customRowKey]:i,class:[t.rowClass(e,i),{"is-selected":t.isRowSelected(e,t.selected),"is-checked":t.isRowChecked(e)}],attrs:{draggable:t.canDragRow},on:{click:function(n){return t.selectRow(e)},dblclick:function(n){return t.$emit("dblclick",e)},mouseenter:function(n){return t.emitEventForRow("mouseenter",n,e)},mouseleave:function(n){return t.emitEventForRow("mouseleave",n,e)},contextmenu:function(n){return t.$emit("contextmenu",e,n)},dragstart:function(n){return t.handleDragStart(n,e,i)},dragend:function(n){return t.handleDragEnd(n,e,i)},drop:function(n){return t.handleDrop(n,e,i)},dragover:function(n){return t.handleDragOver(n,e,i)},dragleave:function(n){return t.handleDragLeave(n,e,i)}}},[t.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[t.hasDetailedVisible(e)?n("a",{attrs:{role:"button"},on:{click:function(n){return n.stopPropagation(),t.toggleDetails(e)}}},[n("b-icon",{class:{"is-expanded":t.isVisibleDetailRow(e)},attrs:{icon:t.detailIcon,pack:t.iconPack,both:""}})],1):t._e()]):t._e(),t.checkable&&"left"===t.checkboxPosition?n("td",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isRowChecked(e),type:t.checkboxType,disabled:!t.isRowCheckable(e)},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.checkRow(e,i,n)}}})],1):t._e(),t._l(t.visibleColumns,(function(r,a){return[r.$scopedSlots&&r.$scopedSlots.default?[n("b-slot-component",t._b({key:r.newKey+":"+i+":"+a,class:r.getRootClasses(e),style:r.getRootStyle(e),attrs:{component:r,scoped:"",name:"default",tag:"td","data-label":r.label,props:{row:e,column:r,index:i,colindex:a,toggleDetails:t.toggleDetails}},nativeOn:{click:function(n){return t.$emit("cellclick",e,r,i,a)}}},"b-slot-component",r.tdAttrs(e,r),!1))]:t._e()]})),t.checkable&&"right"===t.checkboxPosition?n("td",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isRowChecked(e),type:t.checkboxType,disabled:!t.isRowCheckable(e)},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.checkRow(e,i,n)}}})],1):t._e()],2),n("transition",{key:(t.customRowKey?e[t.customRowKey]:i)+"detail",attrs:{name:t.detailTransition}},[t.isActiveDetailRow(e)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:t.columnCount}},[n("div",{staticClass:"detail-container"},[t._t("detail",null,{row:e,index:i})],2)])]):t._e()]),t.isActiveCustomDetailRow(e)?t._t("detail",null,{row:e,index:i}):t._e()]})),t.visibleData.length?t._e():n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:t.columnCount}},[t._t("empty")],2)])],2),void 0!==t.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[t.hasCustomFooterSlot()?t._t("footer"):n("th",{attrs:{colspan:t.columnCount}},[t._t("footer")],2)],2)]):t._e()]),t.loading?[t._t("loading",[n("b-loading",{attrs:{"is-full-page":!1,active:t.loading},on:{"update:active":function(e){t.loading=e}}})])]:t._e()],2),t.checkable&&t.hasBottomLeftSlot()||t.paginated&&("bottom"===t.paginationPosition||"both"===t.paginationPosition)?[t._t("pagination",[n("b-table-pagination",t._b({attrs:{"per-page":t.perPage,paginated:t.paginated,rounded:t.paginationRounded,"icon-pack":t.iconPack,total:t.newDataTotal,"current-page":t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel,"page-input":t.pageInput,"pagination-order":t.paginationOrder,"page-input-position":t.pageInputPosition,"debounce-page-input":t.debouncePageInput},on:{"update:currentPage":function(e){t.newCurrentPage=e},"update:current-page":function(e){t.newCurrentPage=e},"page-change":function(e){return t.$emit("page-change",e)}}},"b-table-pagination",t.$attrs,!1),[t._t("bottom-left")],2)])]:t._e()],2)},Hf=[];const Vf=void 0,Gf=void 0,Wf=void 0,Uf=!1;var Yf=st({render:zf,staticRenderFns:Hf},Vf,jf,Gf,Uf,Wf,void 0,void 0),qf={install:function(t){"undefined"===typeof tt&&at(t),lt(t,Yf),lt(t,Of)}};ct(qf);const Xf=qf;var Kf={name:"BTabs",mixins:[Id("tab")],props:{expanded:{type:Boolean,default:function(){return it.defaultTabsExpanded}},type:{type:[String,Object],default:function(){return it.defaultTabsType}},animated:{type:Boolean,default:function(){return it.defaultTabsAnimated}},multiline:Boolean},data:function(){return{currentFocus:this.value}},computed:{mainClasses:function(){return s({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var t;return[this.type,this.size,(t={},s(t,this.position,this.position&&!this.vertical),s(t,"is-fullwidth",this.expanded),s(t,"is-toggle","is-toggle-rounded"===this.type),t)]}},methods:{giveFocusToTab:function(t){t.$el&&t.$el.focus?t.$el.focus():t.focus&&t.focus()},manageTablistKeydown:function(t){var e=t.key;switch(e){case this.vertical?"ArrowUp":"ArrowLeft":case this.vertical?"Up":"Left":var n=this.getPrevItemIdx(this.currentFocus,!0);null===n&&(n=this.getPrevItemIdx(this.items.length,!0)),null!==n&&this.$refs.tabLink&&n<this.$refs.tabLink.length&&!this.items[n].disabled&&this.giveFocusToTab(this.$refs.tabLink[n]),t.preventDefault();break;case this.vertical?"ArrowDown":"ArrowRight":case this.vertical?"Down":"Right":var i=this.getNextItemIdx(this.currentFocus,!0);null===i&&(i=this.getNextItemIdx(-1,!0)),null!==i&&this.$refs.tabLink&&i<this.$refs.tabLink.length&&!this.items[i].disabled&&this.giveFocusToTab(this.$refs.tabLink[i]),t.preventDefault();break}},manageTabKeydown:function(t,e){var n=t.key;switch(n){case" ":case"Space":case"Spacebar":case"Enter":this.childClick(e),t.preventDefault();break}}}};const Jf=Kf;var Zf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-tabs",class:t.mainClasses},[n("nav",{staticClass:"tabs",class:t.navClasses,on:{keydown:t.manageTablistKeydown}},[t._t("start"),n("ul",{attrs:{"aria-orientation":t.vertical?"vertical":"horizontal",role:"tablist"}},t._l(t.items,(function(e,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"childItem.visible"}],key:e.value,class:[e.headerClass,{"is-active":e.isActive,"is-disabled":e.disabled}],attrs:{role:"tab","aria-controls":e.value+"-content","aria-selected":""+e.isActive}},[e.$scopedSlots.header?n("b-slot-component",{ref:"tabLink",refInFor:!0,attrs:{component:e,name:"header",tag:"a",id:e.value+"-label",tabindex:e.isActive?0:-1},on:{keydown:function(n){return t.manageTabKeydown(n,e)}},nativeOn:{focus:function(e){t.currentFocus=i},click:function(n){return t.childClick(e)}}}):n("a",{ref:"tabLink",refInFor:!0,attrs:{id:e.value+"-label",tabindex:e.isActive?0:-1},on:{focus:function(e){t.currentFocus=i},click:function(n){return t.childClick(e)},keydown:function(n){return t.manageTabKeydown(n,e)}}},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):t._e(),n("span",[t._v(t._s(e.label))])],1)],1)})),0),t._t("end")],2),n("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},Qf=[];const tp=void 0,ep=void 0,np=void 0,ip=!1;var rp=st({render:Zf,staticRenderFns:Qf},tp,Jf,ep,ip,np,void 0,void 0),ap={name:"BTabItem",mixins:[Nd("tab")],props:{disabled:Boolean},data:function(){return{elementClass:"tab-item",elementRole:"tabpanel"}}};const op=ap,sp=void 0,cp=void 0,lp=void 0,up=void 0;var hp=st({},sp,op,cp,up,lp,void 0,void 0),dp={install:function(t){lt(t,rp),lt(t,hp)}};ct(dp);const fp=dp;var pp={name:"BTag",props:{attached:Boolean,closable:Boolean,type:String,size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,icon:String,iconType:String,iconPack:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},methods:{close:function(t){this.disabled||this.$emit("close",t)},click:function(t){this.disabled||this.$emit("click",t)}}};const vp=pp;var mp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.attached&&t.closable?n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[t.icon?n("b-icon",{attrs:{icon:t.icon,size:t.size,type:t.iconType,pack:t.iconPack}}):t._e(),n("span",{class:{"has-ellipsis":t.ellipsis},on:{click:t.click}},[t._t("default")],2)],1),n("a",{staticClass:"tag",class:[t.size,t.closeType,{"is-rounded":t.rounded},t.closeIcon?"has-delete-icon":"is-delete"],attrs:{role:"button","aria-label":t.ariaCloseLabel,tabindex:!!t.tabstop&&0,disabled:t.disabled},on:{click:t.close,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}},[t.closeIcon?n("b-icon",{attrs:{"custom-class":"",icon:t.closeIcon,size:t.size,type:t.closeIconType,pack:t.closeIconPack}}):t._e()],1)]):n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[t.icon?n("b-icon",{attrs:{icon:t.icon,size:t.size,type:t.iconType,pack:t.iconPack}}):t._e(),n("span",{class:{"has-ellipsis":t.ellipsis},on:{click:t.click}},[t._t("default")],2),t.closable?n("a",{staticClass:"delete is-small",class:t.closeType,attrs:{role:"button","aria-label":t.ariaCloseLabel,disabled:t.disabled,tabindex:!!t.tabstop&&0},on:{click:t.close,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}}):t._e()],1)},gp=[];const yp=void 0,bp=void 0,_p=void 0,wp=!1;var kp=st({render:mp,staticRenderFns:gp},yp,vp,bp,wp,_p,void 0,void 0),Sp={name:"BTaglist",props:{attached:Boolean}};const xp=Sp;var Cp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tags",class:{"has-addons":t.attached}},[t._t("default")],2)},Dp=[];const Tp=void 0,Op=void 0,Ep=void 0,Ap=!1;var Pp=st({render:Cp,staticRenderFns:Dp},Tp,xp,Op,Ap,Ep,void 0,void 0),Mp={install:function(t){lt(t,kp),lt(t,Pp)}};ct(Mp);const Rp=Mp;var Ip,Np={name:"BTaginput",components:(Ip={},s(Ip,zt.name,zt),s(Ip,kp.name,kp),Ip),mixins:[ht],inheritAttrs:!1,props:{value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},type:String,closeType:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},hasCounter:{type:Boolean,default:function(){return it.defaultTaginputHasCounter}},field:{type:String,default:"value"},autocomplete:Boolean,groupField:String,groupOptions:String,nativeAutocomplete:String,openOnFocus:Boolean,keepFirst:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},ariaCloseLabel:String,confirmKeys:{type:Array,default:function(){return[",","Tab","Enter"]}},removeOnKeys:{type:Array,default:function(){return["Backspace"]}},allowNew:Boolean,onPasteSeparators:{type:Array,default:function(){return[","]}},beforeAdding:{type:Function,default:function(){return!0}},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:function(t){return t}},appendToBody:Boolean},data:function(){return{tags:Array.isArray(this.value)?this.value.slice(0):this.value||[],newTag:"",isComposing:!1,_elementRef:"autocomplete",_isTaginput:!0}},computed:{listeners:function(){var t=this.$listeners,e=(t.input,y(t,["input"]));return e},rootClasses:function(){return{"is-expanded":this.expanded}},containerClasses:function(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength:function(){return this.newTag.trim().length},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},hasInput:function(){return null==this.maxtags||1===this.maxtags||this.tagsLength<this.maxtags},tagsLength:function(){return this.tags.length},separatorsAsRegExp:function(){var t=this.onPasteSeparators;return t.length?new RegExp(t.map((function(t){return t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null})).join("|"),"g"):null}},watch:{value:function(t){this.tags=Array.isArray(t)?t.slice(0):t||[]},hasInput:function(){this.hasInput||this.onBlur()}},methods:{addTag:function(t){var e=this,n=t||this.newTag.trim();if(n){if(!this.autocomplete){var i=this.separatorsAsRegExp;if(i&&n.match(i))return void n.split(i).map((function(t){return t.trim()})).filter((function(t){return 0!==t.length})).map(this.addTag)}var r=!!this.allowDuplicates||-1===this.tags.indexOf(n);r&&this.beforeAdding(n)&&(1===this.maxtags&&(this.tags=[]),this.tags.push(this.createTag(n)),this.$emit("input",this.tags),this.$emit("add",n)),requestAnimationFrame((function(){e.newTag="",e.$emit("typing","")}))}},getNormalizedTagText:function(t){return"object"===i(t)&&(t=$(t,this.field)),"".concat(t)},customOnBlur:function(t){this.autocomplete||this.addTag(),this.onBlur(t)},onSelect:function(t){var e=this;t&&(this.addTag(t),this.$nextTick((function(){e.newTag=""})))},removeTag:function(t,e){var n=this.tags.splice(t,1)[0];return this.$emit("input",this.tags),this.$emit("remove",n),e&&e.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),n},removeLastTag:function(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown:function(t){var e=t.key;if(-1===this.removeOnKeys.indexOf(e)||this.newTag.length||this.removeLastTag(),(!this.autocomplete||this.allowNew)&&this.confirmKeys.indexOf(e)>=0){if("Tab"!==e&&t.preventDefault(),"Enter"===e&&this.isComposing)return;this.addTag()}},onTyping:function(t){this.$emit("typing",t.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}};const $p=Np;var Lp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"taginput control",class:t.rootClasses},[n("div",{staticClass:"taginput-container",class:[t.statusType,t.size,t.containerClasses],attrs:{disabled:t.disabled},on:{click:function(e){t.hasInput&&t.focus(e)}}},[t._t("selected",t._l(t.tags,(function(e,i){return n("b-tag",{key:t.getNormalizedTagText(e)+i,attrs:{type:t.type,"close-type":t.closeType,size:t.size,rounded:t.rounded,attached:t.attached,tabstop:!1,disabled:t.disabled,ellipsis:t.ellipsis,closable:t.closable,"aria-close-label":t.ariaCloseLabel,title:t.ellipsis&&t.getNormalizedTagText(e)},on:{close:function(e){return t.removeTag(i,e)}}},[t._t("tag",[t._v(" "+t._s(t.getNormalizedTagText(e))+" ")],{tag:e})],2)})),{tags:t.tags}),t.hasInput?n("b-autocomplete",t._g(t._b({ref:"autocomplete",attrs:{data:t.data,field:t.field,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,"has-counter":!1,size:t.size,disabled:t.disabled,loading:t.loading,autocomplete:t.nativeAutocomplete,"open-on-focus":t.openOnFocus,"keep-open":t.openOnFocus,"keep-first":t.keepFirst,"group-field":t.groupField,"group-options":t.groupOptions,"use-html5-validation":t.useHtml5Validation,"check-infinite-scroll":t.checkInfiniteScroll,"append-to-body":t.appendToBody,"confirm-keys":t.confirmKeys},on:{typing:t.onTyping,focus:t.onFocus,blur:t.customOnBlur,select:t.onSelect,"infinite-scroll":t.emitInfiniteScroll},nativeOn:{keydown:function(e){return t.keydown(e)},compositionstart:function(e){t.isComposing=!0},compositionend:function(e){t.isComposing=!1}},scopedSlots:t._u([t.hasHeaderSlot?{key:"header",fn:function(){return[t._t("header")]},proxy:!0}:null,t.hasDefaultSlot?{key:"default",fn:function(e){return[t._t("default",null,{option:e.option,index:e.index})]}}:null,t.hasEmptySlot?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.hasFooterSlot?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0),model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}},"b-autocomplete",t.$attrs,!1),t.listeners)):t._e()],2),t.hasCounter&&(t.maxtags||t.maxlength)?n("small",{staticClass:"help counter"},[t.maxlength&&t.valueLength>0?[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]:t.maxtags?[t._v(" "+t._s(t.tagsLength)+" / "+t._s(t.maxtags)+" ")]:t._e()],2):t._e()])},Fp=[];const Bp=void 0,jp=void 0,zp=void 0,Hp=!1;var Vp=st({render:Lp,staticRenderFns:Fp},Bp,$p,jp,Hp,zp,void 0,void 0),Gp={install:function(t){lt(t,Vp)}};ct(Gp);const Wp=Gp;var Up={install:function(t){lt(t,ko)}};ct(Up);const Yp=Up;var qp={name:"BToast",mixins:[wc],data:function(){return{newDuration:this.duration||it.defaultToastDuration}}};const Xp=qp;var Kp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"},on:{mouseenter:t.pause,mouseleave:t.removePause}},[t.$slots.default?[t._t("default")]:[n("div",{domProps:{innerHTML:t._s(t.message)}})]],2)])},Jp=[];const Zp=void 0,Qp=void 0,tv=void 0,ev=!1;var nv,iv=st({render:Kp,staticRenderFns:Jp},Zp,Xp,Qp,ev,tv,void 0,void 0),rv={open:function(t){var e;"string"===typeof t&&(t={message:t});var n,i={position:it.defaultToastPosition||"is-top"};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message);var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:nv||tt,o=a.extend(iv),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},av={install:function(t){nv=t,ut(t,"toast",rv)}};ct(av);const ov=av;var sv={install:function(t){lt(t,Cr)}};ct(sv);const cv=sv;var lv={name:"BUpload",mixins:[ht],inheritAttrs:!1,props:{value:{type:[Object,Function,ys,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(t){this.newValue=t,(!t||Array.isArray(t)&&0===t.length)&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(t){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var e=t.target.files||t.dataTransfer.files;if(0===e.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var n=!1;!this.native&&this.newValue||(this.newValue=[],n=!0);for(var i=0;i<e.length;i++){var r=e[i];this.checkType(r)&&(this.newValue.push(r),n=!0)}if(!n)return}else{if(this.dragDrop&&1!==e.length)return;var a=e[0];if(this.checkType(a))this.newValue=a;else{if(!this.newValue)return this.clearInput(),void this.checkHtml5Validity();this.newValue=null,this.clearInput()}}this.$emit("input",this.newValue),!this.dragDrop&&this.checkHtml5Validity()}},clearInput:function(){this.$refs.input.value=null},updateDragDropFocus:function(t){this.disabled||this.loading||(this.dragDropFocus=t)},checkType:function(t){if(!this.accept)return!0;var e=this.accept.split(",");if(0===e.length)return!0;for(var n=!1,i=0;i<e.length&&!n;i++){var r=e[i].trim();if(r)if("."===r.substring(0,1)){var a=t.name.toLowerCase().slice(-r.length);a===r.toLowerCase()&&(n=!0)}else t.type.match(r)&&(n=!0)}return n||this.$emit("invalid"),n}}};const uv=lv;var hv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"upload control",class:{"is-expanded":t.expanded,"is-rounded":t.rounded}},[t.dragDrop?n("div",{staticClass:"upload-draggable",class:[t.type,{"is-loading":t.loading,"is-disabled":t.disabled,"is-hovered":t.dragDropFocus,"is-expanded":t.expanded}],on:{dragover:function(e){return e.preventDefault(),t.updateDragDropFocus(!0)},dragleave:function(e){return e.preventDefault(),t.updateDragDropFocus(!1)},dragenter:function(e){return e.preventDefault(),t.updateDragDropFocus(!0)},drop:function(e){return e.preventDefault(),t.onFileChange(e)}}},[t._t("default")],2):[t._t("default")],n("input",t._b({ref:"input",attrs:{type:"file",multiple:t.multiple,accept:t.accept,disabled:t.disabled},on:{change:t.onFileChange}},"input",t.$attrs,!1))],2)},dv=[];const fv=void 0,pv=void 0,vv=void 0,mv=!1;var gv=st({render:hv,staticRenderFns:dv},fv,uv,pv,mv,vv,void 0,void 0),yv={install:function(t){lt(t,gv)}};ct(yv);const bv=yv;var _v={getOptions:function(){return it},setOptions:function(t){rt(j(it,t,!0))}};const wv=_v;var kv=Object.freeze({Autocomplete:Vt,Breadcrumb:le,Button:_e,Carousel:pn,Checkbox:Nn,Clockpicker:sr,Collapse:Gn,Colorpicker:Sa,Datepicker:uo,Datetimepicker:No,Dialog:as,Dropdown:ss,Field:ls,Icon:hs,Image:fs,Input:vs,Loading:Ps,Menu:rc,Message:mc,Modal:_c,Navbar:Gl,Notification:Vc,Numberinput:nu,Pagination:xu,Progress:Gu,Radio:uh,Rate:wh,Select:Sh,Skeleton:Mh,Sidebar:Vh,Slider:bd,Snackbar:Md,Steps:Qd,Switch:hf,Table:Xf,Tabs:fp,Tag:Rp,Taginput:Wp,Timepicker:Yp,Toast:ov,Tooltip:cv,Upload:bv}),Sv={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in at(t),rt(j(it,e,!0)),kv)t.use(kv[n]);ut(t,"config",wv),t.prototype.$buefy.globalNoticeInterval=null}};ct(Sv);const xv=Sv},474:(t,e,n)=>{"use strict";
1
+ (self["webpackChunk_konfuzio_document_validation_ui"]=self["webpackChunk_konfuzio_document_validation_ui"]||[]).push([[998],{810:(t,e,n)=>{"use strict";n.d(e,{GN:()=>A});var i=n(636);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function 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},o(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function l(t,e){if(null==t)return{};var n,i,r=c(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t){return h(t)||d(t)||f(t)||v()}function h(t){if(Array.isArray(t))return p(t)}function d(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},g={exports:{}};(function(t){(function(e){var n=function(t,e,i){if(!l(e)||h(e)||d(e)||f(e)||c(e))return e;var r,a=0,o=0;if(u(e))for(r=[],o=e.length;a<o;a++)r.push(n(t,e[a],i));else for(var s in r={},e)Object.prototype.hasOwnProperty.call(e,s)&&(r[t(s,i)]=n(t,e[s],i));return r},i=function(t,e){e=e||{};var n=e.separator||"_",i=e.split||/(?=[A-Z])/;return t.split(i).join(n)},r=function(t){return p(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,(function(t,e){return e?e.toUpperCase():""})),t.substr(0,1).toLowerCase()+t.substr(1))},a=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},o=function(t,e){return i(t,e).toLowerCase()},s=Object.prototype.toString,c=function(t){return"function"===typeof t},l=function(t){return t===Object(t)},u=function(t){return"[object Array]"==s.call(t)},h=function(t){return"[object Date]"==s.call(t)},d=function(t){return"[object RegExp]"==s.call(t)},f=function(t){return"[object Boolean]"==s.call(t)},p=function(t){return t-=0,t===t},v=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!==typeof n?t:function(e,i){return n(e,t,i)}},m={camelize:r,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(t,e){return n(v(r,e),t)},decamelizeKeys:function(t,e){return n(v(o,e),t,e)},pascalizeKeys:function(t,e){return n(v(a,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=m:e.humps=m})(m)})(g);var y=g.exports,b=["class","style","attrs"];function _(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.indexOf(":"),i=y.camelize(e.slice(0,n)),r=e.slice(n+1).trim();return t[i]=r,t}),{})}function w(t){return t.split(/\s+/).reduce((function(t,e){return t[e]=!0,t}),{})}function k(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return Array.isArray(e)?t=t.concat(e):t.push(e),t}),[])}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(e.children||[]).map(S.bind(null,t)),o=Object.keys(e.attributes||{}).reduce((function(t,n){var i=e.attributes[n];switch(n){case"class":t["class"]=w(i);break;case"style":t["style"]=_(i);break;default:t.attrs[n]=i}return t}),{class:{},style:{},attrs:{}}),s=i.class,c=void 0===s?{}:s,u=i.style,h=void 0===u?{}:u,d=i.attrs,f=void 0===d?{}:d,p=l(i,b);return"string"===typeof e?e:t(e.tag,a(a({class:k(o.class,c),style:a(a({},o.style),h),attrs:a(a({},o.attrs),f)},p),{},{props:n}),r)}var x=!1;try{x=!0}catch(P){}function C(){var t;!x&&console&&"function"===typeof console.error&&(t=console).error.apply(t,arguments)}function D(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?s({},t,e):{}}function T(t){var e,n=(e={"fa-spin":t.spin,"fa-spin-pulse":t.spinPulse,"fa-spin-reverse":t.spinReverse,"fa-pulse":t.pulse,"fa-beat":t.beat,"fa-fade":t.fade,"fa-flash":t.flash,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip":!0===t.flip,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},s(e,"fa-".concat(t.size),null!==t.size),s(e,"fa-rotate-".concat(t.rotation),null!==t.rotation),s(e,"fa-pull-".concat(t.pull),null!==t.pull),s(e,"fa-swap-opacity",t.swapOpacity),s(e,"fa-bounce",t.bounce),s(e,"fa-shake",t.shake),s(e,"fa-beat-fade",t.beatFade),e);return Object.keys(n).map((function(t){return n[t]?t:null})).filter((function(t){return t}))}function O(t,e){var n=0===(t||"").length?[]:[t];return n.concat(e).join(" ")}function E(t){return t&&"object"===o(t)&&t.prefix&&t.iconName&&t.icon?t:i.Qc.icon?i.Qc.icon(t):null===t?null:"object"===o(t)&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"===typeof t?{prefix:"fas",iconName:t}:void 0}var A={name:"FontAwesomeIcon",functional:!0,props:{beat:{type:Boolean,default:!1},border:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=n.icon,o=n.mask,s=n.symbol,c=n.title,l=E(r),u=D("classes",T(n)),h=D("transform","string"===typeof n.transform?i.Qc.transform(n.transform):n.transform),d=D("mask",E(o)),f=(0,i.qv)(l,a(a(a(a({},u),h),d),{},{symbol:s,title:c}));if(!f)return C("Could not find one or more icon(s)",l,d);var p=f.abstract,v=S.bind(null,t);return v(p[0],{},e.data)}};Boolean,Boolean},242:(t,e,n)=>{"use strict";n.d(e,{Xb:()=>v,Gd:()=>y,cu:()=>m});var i=n(655),r=n(844),a=n(170),o=n(343),s=n(991),c=n(448),l="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,u=n(769),h=n(535),d=function(){function t(t){this.errors=0,this.sid=(0,r.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,a.ph)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,a.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"===typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"===typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return(0,h.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),f=4,p=100,v=function(){function t(t,e,n){void 0===e&&(e=new u.s),void 0===n&&(n=f),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){var e=this.getStackTop();e.client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=u.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:(0,r.DM)(),a=e;if(!e){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}a={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,(0,i.pi)((0,i.pi)({},a),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var a=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=n;if(!n){var s=void 0;try{throw new Error(t)}catch(c){s=c}o={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,(0,i.pi)((0,i.pi)({},o),{event_id:a})),a},t.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:(0,r.DM)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,(0,i.pi)((0,i.pi)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),r=n.scope,s=n.client;if(r&&s){var c=s.getOptions&&s.getOptions()||{},l=c.beforeBreadcrumb,u=void 0===l?null:l,h=c.maxBreadcrumbs,d=void 0===h?p:h;if(!(d<=0)){var f=(0,a.yW)(),v=(0,i.pi)({timestamp:f},t),m=u?(0,o.Cf)((function(){return u(v,e)})):v;null!==m&&r.addBreadcrumb(m,d)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,i=e.client;n&&i&&t(n)},t.prototype.run=function(t){var e=g(this);try{t(this)}finally{g(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return l&&o.kg.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,r=e.client,a=r&&r.getOptions()||{},o=a.release,c=a.environment,l=(0,s.R)(),u=(l.navigator||{}).userAgent,h=new d((0,i.pi)((0,i.pi)((0,i.pi)({release:o,environment:c},n&&{user:n.getUser()}),u&&{userAgent:u}),t));if(n){var f=n.getSession&&n.getSession();f&&"ok"===f.status&&f.update({status:"exited"}),this.endSession(),n.setSession(h)}return h},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var i=e.getSession&&e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},t.prototype._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this.getStackTop(),o=a.scope,s=a.client;s&&s[t]&&(e=s)[t].apply(e,(0,i.fl)(n,[o]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=m(),r=i.__SENTRY__;if(r&&r.extensions&&"function"===typeof r.extensions[t])return r.extensions[t].apply(this,e);l&&o.kg.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function m(){var t=(0,s.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function g(t){var e=m(),n=w(e);return k(e,t),n}function y(){var t=m();return _(t)&&!w(t).isOlderThan(f)||k(t,new v),(0,c.KV)()?b(t):w(t)}function b(t){try{var e=m().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return w(t);if(!_(n)||w(n).isOlderThan(f)){var i=w(t).getStackTop();k(n,new v(i.client,u.s.clone(i.scope)))}return w(n)}catch(r){return w(t)}}function _(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function w(t){return(0,s.Y)("hub",(function(){return new v}),t)}function k(t,e){if(!t)return!1;var n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},769:(t,e,n)=>{"use strict";n.d(e,{c:()=>h,s:()=>l});var i=n(655),r=n(597),a=n(170),o=n(893),s=n(991),c=100,l=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=(0,i.fl)(e._breadcrumbs),n._tags=(0,i.pi)({},e._tags),n._extra=(0,i.pi)({},e._extra),n._contexts=(0,i.pi)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=(0,i.fl)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,i.pi)((0,i.pi)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=(0,i.pi)((0,i.pi)({},this._tags),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,i.pi)((0,i.pi)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=(0,i.pi)((0,i.pi)({},this._extra),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=(0,i.pi)((0,i.pi)({},this._contexts),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"===typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=(0,i.pi)((0,i.pi)({},this._tags),e._tags),this._extra=(0,i.pi)((0,i.pi)({},this._extra),e._extra),this._contexts=(0,i.pi)((0,i.pi)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags=(0,i.pi)((0,i.pi)({},this._tags),e.tags),this._extra=(0,i.pi)((0,i.pi)({},this._extra),e.extra),this._contexts=(0,i.pi)((0,i.pi)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"===typeof e?Math.min(e,c):c;if(n<=0)return this;var r=(0,i.pi)({timestamp:(0,a.yW)()},t);return this._breadcrumbs=(0,i.fl)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,i.pi)((0,i.pi)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,i.pi)((0,i.pi)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,i.pi)((0,i.pi)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,i.pi)((0,i.pi)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,i.pi)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=(0,i.pi)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,i.fl)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,i.fl)(u(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=(0,i.pi)((0,i.pi)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,a){var s=this;return void 0===a&&(a=0),new o.cW((function(o,c){var l=t[a];if(null===e||"function"!==typeof l)o(e);else{var u=l((0,i.pi)({},e),n);(0,r.J8)(u)?u.then((function(e){return s._notifyEventProcessors(t,e,n,a+1).then(o)})).then(null,c):s._notifyEventProcessors(t,u,n,a+1).then(o).then(null,c)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function u(){return(0,s.Y)("globalEventProcessors",(function(){return[]}))}function h(t){u().push(t)}},257:(t,e,n)=>{"use strict";n.d(e,{d:()=>i,x:()=>r});var i="finishReason",r=["heartbeatFailed","idleTimeout","documentHidden"]},955:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var i="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},758:(t,e,n)=>{"use strict";n.d(e,{ro:()=>k,lb:()=>b});var i=n(655),r=n(242),a=n(343),o=n(597),s=n(448),c=n(732),l=n(955),u=n(233);function h(){(0,c.o)("error",d),(0,c.o)("unhandledrejection",d)}function d(){var t=(0,u.x1)();if(t){var e="internal_error";l.h&&a.kg.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}var f=n(458),p=n(391);function v(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function m(t,e,n){return(0,u.zu)(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t):("function"===typeof e.tracesSampler?(i=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(i)}})):void 0!==n.parentSampled?(i=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(i=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(i)}})),g(i)?i?(t.sampled=Math.random()<i,t.sampled?(l.h&&a.kg.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(l.h&&a.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(i)+")"),t)):(l.h&&a.kg.log("[Tracing] Discarding transaction because "+("function"===typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(l.h&&a.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var i}function g(t){return(0,o.i2)(t)||"number"!==typeof t&&"boolean"!==typeof t?(l.h&&a.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1):!(t<0||t>1)||(l.h&&a.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1)}function y(t,e){var n=this.getClient(),r=n&&n.getOptions()||{},a=new p.Y(t,this);return a=m(a,r,(0,i.pi)({parentSampled:t.parentSampled,transactionContext:t},e)),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),a}function b(t,e,n,r,a){var o=t.getClient(),s=o&&o.getOptions()||{},c=new f.io(e,t,n,r);return c=m(c,s,(0,i.pi)({parentSampled:e.parentSampled,transactionContext:e},a)),c.sampled&&c.initSpanRecorder(s._experiments&&s._experiments.maxSpans),c}function _(){var t=(0,r.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=y),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=v))}function w(){var e=(0,r.cu)();if(e.__SENTRY__){var n={mongodb:function(){var e=(0,s.l$)(t,"./integrations/node/mongo");return new e.Mongo},mongoose:function(){var e=(0,s.l$)(t,"./integrations/node/mongo");return new e.Mongo({mongoose:!0})},mysql:function(){var e=(0,s.l$)(t,"./integrations/node/mysql");return new e.Mysql},pg:function(){var e=(0,s.l$)(t,"./integrations/node/postgres");return new e.Postgres}},a=Object.keys(n).filter((function(t){return!!(0,s.$y)(t)})).map((function(t){try{return n[t]()}catch(e){return}})).filter((function(t){return t}));a.length>0&&(e.__SENTRY__.integrations=(0,i.fl)(e.__SENTRY__.integrations||[],a))}}function k(){_(),(0,s.KV)()&&w(),h()}t=n.hmd(t)},458:(t,e,n)=>{"use strict";n.d(e,{io:()=>f,nT:()=>u});var i=n(655),r=n(170),a=n(343),o=n(257),s=n(955),c=n(334),l=n(391),u=1e3,h=5e3,d=function(t){function e(e,n,i,r){void 0===i&&(i="");var a=t.call(this,r)||this;return a._pushActivity=e,a._popActivity=n,a.transactionSpanId=i,a}return(0,i.ZT)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"===typeof t?t:(0,r._I)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(c.gB),f=function(t){function e(e,n,i,r){void 0===i&&(i=u),void 0===r&&(r=!1);var o=t.call(this,e,n)||this;return o._idleHub=n,o._idleTimeout=i,o._onScope=r,o.activities={},o._heartbeatCounter=0,o._finished=!1,o._beforeFinishCallbacks=[],n&&r&&(p(n),s.h&&a.kg.log("Setting idle transaction on scope. Span ID: "+o.spanId),n.configureScope((function(t){return t.setSpan(o)}))),o._initTimeout=setTimeout((function(){o._finished||o.finish()}),o._idleTimeout),o}return(0,i.ZT)(e,t),e.prototype.finish=function(e){var n,o,c=this;if(void 0===e&&(e=(0,r._I)()),this._finished=!0,this.activities={},this.spanRecorder){s.h&&a.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var l=(0,i.XA)(this._beforeFinishCallbacks),u=l.next();!u.done;u=l.next()){var h=u.value;h(this,e)}}catch(d){n={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===c.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),s.h&&a.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||s.h&&a.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),s.h&&a.kg.log("[Tracing] flushing IdleTransaction")}else s.h&&a.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&p(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;if(!this.spanRecorder){var n=function(t){e._finished||e._pushActivity(t)},i=function(t){e._finished||e._popActivity(t)};this.spanRecorder=new d(n,i,this.spanId,t),s.h&&a.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),s.h&&a.kg.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,s.h&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;if(this.activities[t]&&(s.h&&a.kg.log("[Tracing] popActivity "+t),delete this.activities[t],s.h&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,i=(0,r._I)()+n/1e3;setTimeout((function(){e._finished||(e.setTag(o.d,o.x[1]),e.finish(i))}),n)}},e.prototype._beat=function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(s.h&&a.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(o.d,o.x[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;s.h&&a.kg.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){t._beat()}),h)},e}(l.Y);function p(t){if(t){var e=t.getScope();if(e){var n=e.getTransaction();n&&e.setSpan(void 0)}}}},435:(t,e,n)=>{"use strict";n.d(e,{jK:()=>i});var i={};n.r(i),n.d(i,{gE:()=>tt});var r=n(758),a=n(655),o=n(343),s=n(991),c=n(955),l=n(458),u=n(233),h=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function d(t){var e=t.match(h);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}var f=n(257),p=(0,s.R)();function v(){p&&p.document?p.document.addEventListener("visibilitychange",(function(){var t=(0,u.x1)();if(p.document.hidden&&t){var e="cancelled";c.h&&o.kg.log("[Tracing] Transaction: "+e+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.setTag(f.d,f.x[2]),t.finish()}})):c.h&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var m=n(448),g=n(170),y=n(464),b=function(t,e,n){var i;return function(r){e.value>=0&&(r||n)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},_=function(){return"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)},w=function(t,e){return{name:t,value:null!==e&&void 0!==e?e:-1,delta:0,entries:[],id:_()}},k=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(i){}},S=function(t,e){var n=function(i){"pagehide"!==i.type&&"hidden"!==(0,s.R)().document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},x=function(t,e){var n,i=w("CLS",0),r=0,a=[],o=function(t){if(t&&!t.hadRecentInput){var e=a[0],o=a[a.length-1];r&&0!==a.length&&t.startTime-o.startTime<1e3&&t.startTime-e.startTime<5e3?(r+=t.value,a.push(t)):(r=t.value,a=[t]),r>i.value&&(i.value=r,i.entries=a,n&&n())}},s=k("layout-shift",o);s&&(n=b(t,i,e),S((function(){s.takeRecords().map(o),n(!0)})))},C=-1,D=function(){return"hidden"===(0,s.R)().document.visibilityState?0:1/0},T=function(){S((function(t){var e=t.timeStamp;C=e}),!0)},O=function(){return C<0&&(C=D(),T()),{get firstHiddenTime(){return C}}},E=function(t,e){var n,i=O(),r=w("FID"),a=function(t){n&&t.startTime<i.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),n(!0))},o=k("first-input",a);o&&(n=b(t,r,e),S((function(){o.takeRecords().map(a),o.disconnect()}),!0))},A={},P=function(t,e){var n,i=O(),r=w("LCP"),a=function(t){var e=t.startTime;e<i.firstHiddenTime&&(r.value=e,r.entries.push(t)),n&&n()},o=k("largest-contentful-paint",a);if(o){n=b(t,r,e);var s=function(){A[r.id]||(o.takeRecords().map(a),o.disconnect(),A[r.id]=!0,n(!0))};["keydown","click"].forEach((function(t){addEventListener(t,s,{once:!0,capture:!0})})),S(s,!0)}},M=(0,s.R)(),R=function(){function t(t){void 0===t&&(t=!1),this._reportAllChanges=t,this._measurements={},this._performanceCursor=0,!(0,m.KV)()&&M&&M.performance&&M.document&&(M.performance.mark&&M.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(M&&M.performance&&M.performance.getEntries&&g.Z1){c.h&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,i,r=(0,u.XL)(g.Z1);if(M.performance.getEntries().slice(this._performanceCursor).forEach((function(a){var s=(0,u.XL)(a.startTime),l=(0,u.XL)(a.duration);if(!("navigation"===t.op&&r+s<t.startTimestamp))switch(a.entryType){case"navigation":I(t,a,r),n=r+(0,u.XL)(a.responseStart),i=r+(0,u.XL)(a.requestStart);break;case"mark":case"paint":case"measure":var h=N(t,a,s,l,r),d=O(),f=a.startTime<d.firstHiddenTime;"first-paint"===a.name&&f&&(c.h&&o.kg.log("[Measurements] Adding FP"),e._measurements["fp"]={value:a.startTime},e._measurements["mark.fp"]={value:h}),"first-contentful-paint"===a.name&&f&&(c.h&&o.kg.log("[Measurements] Adding FCP"),e._measurements["fcp"]={value:a.startTime},e._measurements["mark.fcp"]={value:h});break;case"resource":var p=a.name.replace(M.location.origin,"");$(t,a,p,s,l,r);break;default:}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var a=(0,u.XL)(g.Z1);"number"===typeof n&&(c.h&&o.kg.log("[Measurements] Adding TTFB"),this._measurements["ttfb"]={value:1e3*(n-t.startTimestamp)},"number"===typeof i&&i<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-i)})),["fcp","fp","lcp"].forEach((function(n){if(e._measurements[n]&&!(a>=t.startTimestamp)){var i=e._measurements[n].value,r=a+(0,u.XL)(i),s=Math.abs(1e3*(r-t.startTimestamp)),l=s-i;c.h&&o.kg.log("[Measurements] Normalized "+n+" from "+i+" to "+s+" ("+l+")"),e._measurements[n].value=s}})),this._measurements["mark.fid"]&&this._measurements["fid"]&&B(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,u.XL)(this._measurements["fid"].value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),z(t,this._lcpEntry,this._clsEntry),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(t){var e=M.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),j(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),j(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),j(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),j(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackCLS=function(){var t=this;x((function(e){var n=e.entries.pop();n&&(c.h&&o.kg.log("[Measurements] Adding CLS"),t._measurements["cls"]={value:e.value},t._clsEntry=n)}))},t.prototype._trackLCP=function(){var t=this;P((function(e){var n=e.entries.pop();if(n){var i=(0,u.XL)(g.Z1),r=(0,u.XL)(n.startTime);c.h&&o.kg.log("[Measurements] Adding LCP"),t._measurements["lcp"]={value:e.value},t._measurements["mark.lcp"]={value:i+r},t._lcpEntry=n}}),this._reportAllChanges)},t.prototype._trackFID=function(){var t=this;E((function(e){var n=e.entries.pop();if(n){var i=(0,u.XL)(g.Z1),r=(0,u.XL)(n.startTime);c.h&&o.kg.log("[Measurements] Adding FID"),t._measurements["fid"]={value:e.value},t._measurements["mark.fid"]={value:i+r}}}))},t}();function I(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(i){L(t,e,i,n)})),L(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),L(t,e,"fetch",n,"cache","domainLookupStart"),L(t,e,"domainLookup",n,"DNS"),F(t,e,n)}function N(t,e,n,i,r){var a=r+n,o=a+i;return B(t,{description:e.name,endTimestamp:o,op:e.entryType,startTimestamp:a}),a}function $(t,e,n,i,r,a){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var o={};"transferSize"in e&&(o["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(o["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(o["Decoded Body Size"]=e.decodedBodySize);var s=a+i,c=s+r;B(t,{description:n,endTimestamp:c,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:s,data:o})}}function L(t,e,n,i,r,a){var o=a?e[a]:e[n+"End"],s=e[n+"Start"];s&&o&&B(t,{op:"browser",description:null!==r&&void 0!==r?r:n,startTimestamp:i+(0,u.XL)(s),endTimestamp:i+(0,u.XL)(o)})}function F(t,e,n){B(t,{op:"browser",description:"request",startTimestamp:n+(0,u.XL)(e.requestStart),endTimestamp:n+(0,u.XL)(e.responseEnd)}),B(t,{op:"browser",description:"response",startTimestamp:n+(0,u.XL)(e.responseStart),endTimestamp:n+(0,u.XL)(e.responseEnd)})}function B(t,e){var n=e.startTimestamp,i=(0,a._T)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild((0,a.pi)({startTimestamp:n},i))}function j(t){return"number"===typeof t&&isFinite(t)}function z(t,e,n){e&&(c.h&&o.kg.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",(0,y.R)(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size)),n&&n.sources&&(c.h&&o.kg.log("[Measurements] Adding CLS Data"),n.sources.forEach((function(e,n){return t.setTag("cls.source."+(n+1),(0,y.R)(e.node))})))}var H=n(321),V=n(732),G=n(597),W=["localhost",/^\//],U={traceFetch:!0,traceXHR:!0,tracingOrigins:W};function Y(t){var e=(0,a.pi)((0,a.pi)({},U),t),n=e.traceFetch,i=e.traceXHR,r=e.tracingOrigins,o=e.shouldCreateSpanForRequest,s={},c=function(t){if(s[t])return s[t];var e=r;return s[t]=e.some((function(e){return(0,H.zC)(t,e)}))&&!(0,H.zC)(t,"sentry_key"),s[t]},l=c;"function"===typeof o&&(l=function(t){return c(t)&&o(t)});var u={};n&&(0,V.o)("fetch",(function(t){q(t,l,u)})),i&&(0,V.o)("xhr",(function(t){X(t,l,u)}))}function q(t,e,n){if((0,u.zu)()&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp){var i=t.fetchData.__span;if(!i)return;var r=n[i];r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete n[i])}else{var o=(0,u.x1)();if(o){r=o.startChild({data:(0,a.pi)((0,a.pi)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=r.spanId,n[r.spanId]=r;var s=t.args[0]=t.args[0],c=t.args[1]=t.args[1]||{},l=c.headers;(0,G.V9)(s,Request)&&(l=s.headers),l?"function"===typeof l.append?l.append("sentry-trace",r.toTraceparent()):l=Array.isArray(l)?(0,a.fl)(l,[["sentry-trace",r.toTraceparent()]]):(0,a.pi)((0,a.pi)({},l),{"sentry-trace":r.toTraceparent()}):l={"sentry-trace":r.toTraceparent()},c.headers=l}}}function X(t,e,n){if(!(!(0,u.zu)()||t.xhr&&t.xhr.__sentry_own_request__)&&t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)){var i=t.xhr.__sentry_xhr__;if(t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;if(!r)return;var o=n[r];o&&(o.setHttpStatus(i.status_code),o.finish(),delete n[r])}else{var s=(0,u.x1)();if(s){o=s.startChild({data:(0,a.pi)((0,a.pi)({},i.data),{type:"xhr",method:i.method,url:i.url}),description:i.method+" "+i.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,n[t.xhr.__sentry_xhr_span_id__]=o,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",o.toTraceparent())}catch(c){}}}}}var K=(0,s.R)();function J(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),K&&K.location){var i,r=K.location.href;e&&(i=t({name:K.location.pathname,op:"pageload"})),n&&(0,V.o)("history",(function(e){var n=e.to,a=e.from;void 0===a&&r&&-1!==r.indexOf(n)?r=void 0:a!==n&&(r=void 0,i&&(c.h&&o.kg.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=t({name:K.location.pathname,op:"navigation"}))}))}else c.h&&o.kg.warn("Could not initialize routing instrumentation due to invalid location")}var Z=600,Q=(0,a.pi)({idleTimeout:l.nT,markBackgroundTransactions:!0,maxTransactionDuration:Z,routingInstrumentation:J,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},U),tt=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=U.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:c.h&&(this._emitOptionsWarning=!0)),this.options=(0,a.pi)((0,a.pi)((0,a.pi)({},Q),e),{tracingOrigins:n});var i=this.options._metricOptions;this._metrics=new R(i&&i._reportAllChanges)}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(c.h&&o.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),c.h&&o.kg.warn("[Tracing] We added a reasonable default for you: "+U.tracingOrigins));var i=this.options,r=i.routingInstrumentation,a=i.startTransactionOnLocationChange,s=i.startTransactionOnPageLoad,l=i.markBackgroundTransactions,u=i.traceFetch,h=i.traceXHR,d=i.tracingOrigins,f=i.shouldCreateSpanForRequest;r((function(t){return n._createRouteTransaction(t)}),s,a),l&&v(),Y({traceFetch:u,traceXHR:h,tracingOrigins:d,shouldCreateSpanForRequest:f})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,i=n.beforeNavigate,l=n.idleTimeout,h=n.maxTransactionDuration,d="pageload"===t.op?et():void 0,f=(0,a.pi)((0,a.pi)((0,a.pi)({},t),d),{trimEnd:!0}),p="function"===typeof i?i(f):f,v=void 0===p?(0,a.pi)((0,a.pi)({},f),{sampled:!1}):p;!1===v.sampled&&c.h&&o.kg.log("[Tracing] Will not send "+v.op+" transaction because of beforeNavigate."),c.h&&o.kg.log("[Tracing] Starting "+v.op+" transaction on scope");var m=this._getCurrentHub(),g=(0,s.R)().location,y=(0,r.lb)(m,v,l,!0,{location:g});return y.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),it((0,u.WB)(h),t,n)})),y.setTag("idleTimeout",this._configuredIdleTimeout),y}c.h&&o.kg.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}();function et(){var t=nt("sentry-trace");if(t)return d(t)}function nt(t){var e=(0,s.R)().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}function it(t,e,n){var i=n-e.startTimestamp,r=n&&(i>t||i<0);r&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}(0,r.ro)()},334:(t,e,n)=>{"use strict";n.d(e,{Dr:()=>c,gB:()=>s});var i=n(655),r=n(844),a=n(170),o=n(535),s=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),c=function(){function t(t){if(this.traceId=(0,r.DM)(),this.spanId=(0,r.DM)().substring(16),this.startTimestamp=(0,a._I)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t((0,i.pi)((0,i.pi)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=(0,i.pi)((0,i.pi)({},this.tags),(n={},n[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=(0,i.pi)((0,i.pi)({},this.data),(n={},n[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=l(t);return"unknown_error"!==e&&this.setStatus(e),this},t.prototype.isSuccess=function(){return"ok"===this.status},t.prototype.finish=function(t){this.endTimestamp="number"===typeof t?t:(0,a._I)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return(0,o.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,i,r,a;return this.data=(e=t.data,null!==e&&void 0!==e?e:{}),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(n=t.spanId,null!==n&&void 0!==n?n:this.spanId),this.startTimestamp=(i=t.startTimestamp,null!==i&&void 0!==i?i:this.startTimestamp),this.status=t.status,this.tags=(r=t.tags,null!==r&&void 0!==r?r:{}),this.traceId=(a=t.traceId,null!==a&&void 0!==a?a:this.traceId),this},t.prototype.getTraceContext=function(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}();function l(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},391:(t,e,n)=>{"use strict";n.d(e,{Y:()=>u});var i=n(655),r=n(242),a=n(597),o=n(343),s=n(535),c=n(955),l=n(334),u=function(t){function e(e,n){var i=t.call(this,e)||this;return i._measurements={},i._hub=(0,r.Gd)(),(0,a.V9)(n,r.Xb)&&(i._hub=n),i.name=e.name||"",i.metadata=e.metadata||{},i._trimEnd=e.trimEnd,i.transaction=i,i}return(0,i.ZT)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new l.gB(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=(0,i.pi)({},t)},e.prototype.setMetadata=function(t){this.metadata=(0,i.pi)((0,i.pi)({},this.metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||(c.h&&o.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0===this.sampled){var i=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&i.length>0&&(this.endTimestamp=i.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var r={contexts:{trace:this.getTraceContext()},spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata},a=Object.keys(this._measurements).length>0;return a&&(c.h&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),c.h&&o.kg.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(r)}c.h&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var s=this._hub.getClient(),l=s&&s.getTransport&&s.getTransport();l&&l.recordLostEvent&&l.recordLostEvent("sample_rate","transaction")}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return(0,s.Jr)((0,i.pi)((0,i.pi)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=(n=e.name,null!==n&&void 0!==n?n:""),this._trimEnd=e.trimEnd,this},e}(l.Dr)},233:(t,e,n)=>{"use strict";n.d(e,{WB:()=>s,XL:()=>o,x1:()=>a,zu:()=>r});var i=n(242);function r(t){var e=(0,i.Gd)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function a(t){var e=t||(0,i.Gd)(),n=e.getScope();return n&&n.getTransaction()}function o(t){return t/1e3}function s(t){return 1e3*t}},464:(t,e,n)=>{"use strict";n.d(e,{R:()=>a,l:()=>s});var i=n(991),r=n(597);function a(t,e){try{var n=t,i=5,r=80,a=[],s=0,c=0,l=" > ",u=l.length,h=void 0;while(n&&s++<i){if(h=o(n,e),"html"===h||s>1&&c+a.length*u+h.length>=r)break;a.push(h),c+=h.length,n=n.parentNode}return a.reverse().join(l)}catch(d){return"<unknown>"}}function o(t,e){var n,i,a,o,s,c=t,l=[];if(!c||!c.tagName)return"";l.push(c.tagName.toLowerCase());var u=e&&e.length?e.filter((function(t){return c.getAttribute(t)})).map((function(t){return[t,c.getAttribute(t)]})):null;if(u&&u.length)u.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(c.id&&l.push("#"+c.id),n=c.className,n&&(0,r.HD)(n))for(i=n.split(/\s+/),s=0;s<i.length;s++)l.push("."+i[s]);var h=["type","name","title","alt"];for(s=0;s<h.length;s++)a=h[s],o=c.getAttribute(a),o&&l.push("["+a+'="'+o+'"]');return l.join("")}function s(){var t=(0,i.R)();try{return t.document.location.href}catch(e){return""}}},795:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var i="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},991:(t,e,n)=>{"use strict";n.d(e,{R:()=>a,Y:()=>o});var i=n(448),r={};function a(){return(0,i.KV)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:r}function o(t,e,n){var i=n||a(),r=i.__SENTRY__=i.__SENTRY__||{},o=r[t]||(r[t]=e());return o}},732:(t,e,n)=>{"use strict";n.d(e,{o:()=>m});var i,r=n(655),a=n(795),o=n(991),s=n(597),c=n(343),l=n(535),u=n(360),h=n(823),d=(0,o.R)(),f={},p={};function v(t){if(!p[t])switch(p[t]=!0,t){case"console":y();break;case"dom":A();break;case"xhr":k();break;case"fetch":b();break;case"history":S();break;case"error":M();break;case"unhandledrejection":I();break;default:return void(a.h&&c.kg.warn("unknown instrumentation type:",t))}}function m(t,e){f[t]=f[t]||[],f[t].push(e),v(t)}function g(t,e){var n,i;if(t&&f[t])try{for(var o=(0,r.XA)(f[t]||[]),s=o.next();!s.done;s=o.next()){var l=s.value;try{l(e)}catch(h){a.h&&c.kg.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+(0,u.$P)(l)+"\nError:",h)}}}catch(d){n={error:d}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function y(){"console"in d&&c.RU.forEach((function(t){t in d.console&&(0,l.hl)(d.console,t,(function(e){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];g("console",{args:n,level:t}),e&&e.apply(d.console,n)}}))}))}function b(){(0,h.t$)()&&(0,l.hl)(d,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={args:e,fetchData:{method:_(e),url:w(e)},startTimestamp:Date.now()};return g("fetch",(0,r.pi)({},i)),t.apply(d,e).then((function(t){return g("fetch",(0,r.pi)((0,r.pi)({},i),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw g("fetch",(0,r.pi)((0,r.pi)({},i),{endTimestamp:Date.now(),error:t})),t}))}}))}function _(t){return void 0===t&&(t=[]),"Request"in d&&(0,s.V9)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function w(t){return void 0===t&&(t=[]),"string"===typeof t[0]?t[0]:"Request"in d&&(0,s.V9)(t[0],Request)?t[0].url:String(t[0])}function k(){if("XMLHttpRequest"in d){var t=XMLHttpRequest.prototype;(0,l.hl)(t,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,r=e[1],a=i.__sentry_xhr__={method:(0,s.HD)(e[0])?e[0].toUpperCase():e[0],url:e[1]};(0,s.HD)(r)&&"POST"===a.method&&r.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var o=function(){if(4===i.readyState){try{a.status_code=i.status}catch(t){}g("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"===typeof i.onreadystatechange?(0,l.hl)(i,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o(),t.apply(i,e)}})):i.addEventListener("readystatechange",o),t.apply(i,e)}})),(0,l.hl)(t,"send",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),g("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}}function S(){if((0,h.Bf)()){var t=d.onpopstate;d.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=d.location.href,a=i;if(i=r,g("history",{from:a,to:r}),t)try{return t.apply(this,e)}catch(o){}},(0,l.hl)(d.history,"pushState",e),(0,l.hl)(d.history,"replaceState",e)}function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length>2?e[2]:void 0;if(r){var a=i,o=String(r);i=o,g("history",{from:a,to:o})}return t.apply(this,e)}}}var x,C,D=1e3;function T(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}function O(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}function E(t,e){return void 0===e&&(e=!1),function(n){if(n&&C!==n&&!O(n)){var i="keypress"===n.type?"input":n.type;(void 0===x||T(C,n))&&(t({event:n,name:i,global:e}),C=n),clearTimeout(x),x=d.setTimeout((function(){x=void 0}),D)}}}function A(){if("document"in d){var t=g.bind(null,"dom"),e=E(t,!0);d.document.addEventListener("click",e,!1),d.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=d[e]&&d[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,l.hl)(n,"addEventListener",(function(e){return function(n,i,r){if("click"===n||"keypress"==n)try{var a=this,o=a.__sentry_instrumentation_handlers__=a.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var c=E(t);s.handler=c,e.call(this,n,c,r)}s.refCount+=1}catch(l){}return e.call(this,n,i,r)}})),(0,l.hl)(n,"removeEventListener",(function(t){return function(e,n,i){if("click"===e||"keypress"==e)try{var r=this,a=r.__sentry_instrumentation_handlers__||{},o=a[e];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,e,o.handler,i),o.handler=void 0,delete a[e]),0===Object.keys(a).length&&delete r.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,i)}})))}))}}var P=null;function M(){P=d.onerror,d.onerror=function(t,e,n,i,r){return g("error",{column:i,error:r,line:n,msg:t,url:e}),!!P&&P.apply(this,arguments)}}var R=null;function I(){R=d.onunhandledrejection,d.onunhandledrejection=function(t){return g("unhandledrejection",t),!R||R.apply(this,arguments)}}},597:(t,e,n)=>{"use strict";n.d(e,{Cy:()=>m,HD:()=>l,J8:()=>v,Kj:()=>p,PO:()=>h,TX:()=>s,V9:()=>y,VW:()=>o,VZ:()=>r,cO:()=>d,fm:()=>c,i2:()=>g,kK:()=>f,pt:()=>u});var i=Object.prototype.toString;function r(t){switch(i.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function a(t,e){return i.call(t)==="[object "+e+"]"}function o(t){return a(t,"ErrorEvent")}function s(t){return a(t,"DOMError")}function c(t){return a(t,"DOMException")}function l(t){return a(t,"String")}function u(t){return null===t||"object"!==typeof t&&"function"!==typeof t}function h(t){return a(t,"Object")}function d(t){return"undefined"!==typeof Event&&y(t,Event)}function f(t){return"undefined"!==typeof Element&&y(t,Element)}function p(t){return a(t,"RegExp")}function v(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function m(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"===typeof t&&t!==t}function y(t,e){try{return t instanceof e}catch(n){return!1}}},343:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>u,RU:()=>l,kg:()=>i});var i,r=n(655),a=n(795),o=n(991),s=(0,o.R)(),c="Sentry Logger ",l=["debug","info","warn","error","log","assert"];function u(t){var e=(0,o.R)();if(!("console"in e))return t();var n=e.console,i={};l.forEach((function(t){var r=n[t]&&n[t].__sentry_original__;t in e.console&&r&&(i[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(i).forEach((function(t){n[t]=i[t]}))}}function h(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return a.h?l.forEach((function(n){e[n]=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t&&u((function(){var t;(t=s.console)[n].apply(t,(0,r.fl)([c+"["+n+"]:"],e))}))}})):l.forEach((function(t){e[t]=function(){}})),e}i=a.h?(0,o.Y)("logger",h):h()},844:(t,e,n)=>{"use strict";n.d(e,{DM:()=>o,Db:()=>u,EG:()=>h,YO:()=>d,en:()=>s,jH:()=>l});var i=n(655),r=n(991),a=n(535);function o(){var t=(0,r.R)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var i=function(t){var e=t.toString(16);while(e.length<4)e="0"+e;return e};return i(n[0])+i(n[1])+i(n[2])+i(n[3])+i(n[4])+i(n[5])+i(n[6])+i(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)}))}function s(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+i}}function c(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function l(t){var e=t.message,n=t.event_id;if(e)return e;var i=c(t);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||n||"<unknown>":n||"<unknown>"}function u(t,e,n){var i=t.exception=t.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{};a.value||(a.value=e||""),a.type||(a.type=n||"Error")}function h(t,e){var n=c(t);if(n){var r={type:"generic",handled:!0},a=n.mechanism;if(n.mechanism=(0,i.pi)((0,i.pi)((0,i.pi)({},r),a),e),e&&"data"in e){var o=(0,i.pi)((0,i.pi)({},a&&a.data),e.data);n.mechanism.data=o}}}function d(t){if(t&&t.__sentry_captured__)return!0;try{(0,a.xp)(t,"__sentry_captured__",!0)}catch(e){}return!1}},448:(t,e,n)=>{"use strict";function i(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function r(){return!i()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function a(t,e){return t.require(e)}function o(e){var n;try{n=a(t,e)}catch(r){}try{var i=a(t,"process").cwd;n=a(t,i()+"/node_modules/"+e)}catch(r){}return n}n.d(e,{l$:()=>a,KV:()=>r,$y:()=>o}),t=n.hmd(t)},535:(t,e,n)=>{"use strict";n.d(e,{$Q:()=>l,HK:()=>u,Jr:()=>m,Sh:()=>d,_j:()=>h,hl:()=>s,xp:()=>c,zf:()=>v});var i=n(655),r=n(464),a=n(597),o=n(321);function s(t,e,n){if(e in t){var i=t[e],r=n(i);if("function"===typeof r)try{l(r,i)}catch(a){}t[e]=r}}function c(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function l(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}function u(t){return t.__sentry_original__}function h(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function d(t){var e=t;if((0,a.VZ)(t))e=(0,i.pi)({message:t.message,name:t.name,stack:t.stack},p(t));else if((0,a.cO)(t)){var n=t;e=(0,i.pi)({type:n.type,target:f(n.target),currentTarget:f(n.currentTarget)},p(n)),"undefined"!==typeof CustomEvent&&(0,a.V9)(t,CustomEvent)&&(e.detail=n.detail)}return e}function f(t){try{return(0,a.kK)(t)?(0,r.R)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function p(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function v(t,e){void 0===e&&(e=40);var n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,o.$G)(n[0],e);for(var i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>e))return i===n.length?r:(0,o.$G)(r,e)}return""}function m(t){var e,n;if((0,a.PO)(t)){var r={};try{for(var o=(0,i.XA)(Object.keys(t)),s=o.next();!s.done;s=o.next()){var c=s.value;"undefined"!==typeof t[c]&&(r[c]=m(t[c]))}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return Array.isArray(t)?t.map(m):t}},360:(t,e,n)=>{"use strict";n.d(e,{$P:()=>c,pE:()=>a});var i=n(655),r=50;function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t,e){var r,a,s,c;void 0===e&&(e=0);var l=[];try{for(var u=(0,i.XA)(t.split("\n").slice(e)),h=u.next();!h.done;h=u.next()){var d=h.value;try{for(var f=(s=void 0,(0,i.XA)(n)),p=f.next();!p.done;p=f.next()){var v=p.value,m=v(d);if(m){l.push(m);break}}}catch(g){s={error:g}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return o(l)}}function o(t){if(!t.length)return[];var e=t,n=e[0].function||"",a=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==a.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,r).map((function(t){return(0,i.pi)((0,i.pi)({},t),{filename:t.filename||e[0].filename,function:t.function||"?"})})).reverse()}var s="<anonymous>";function c(t){try{return t&&"function"===typeof t&&t.name||s}catch(e){return s}}},321:(t,e,n)=>{"use strict";n.d(e,{$G:()=>r,nK:()=>a,zC:()=>o});var i=n(597);function r(t,e){return void 0===e&&(e=0),"string"!==typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function a(t,e){if(!Array.isArray(t))return"";for(var n=[],i=0;i<t.length;i++){var r=t[i];try{n.push(String(r))}catch(a){n.push("[value cannot be serialized]")}}return n.join(e)}function o(t,e){return!!(0,i.HD)(t)&&((0,i.Kj)(e)?e.test(t):"string"===typeof e&&-1!==t.indexOf(e))}},823:(t,e,n)=>{"use strict";n.d(e,{Ak:()=>o,Bf:()=>u,Du:()=>s,hv:()=>l,t$:()=>c});var i=n(795),r=n(991),a=n(343);function o(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if(!o())return!1;var t=(0,r.R)();if(s(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"===typeof n.createElement)try{var c=n.createElement("iframe");c.hidden=!0,n.head.appendChild(c),c.contentWindow&&c.contentWindow.fetch&&(e=s(c.contentWindow.fetch)),n.head.removeChild(c)}catch(l){i.h&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return e}function l(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function u(){var t=(0,r.R)(),e=t.chrome,n=e&&e.app&&e.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&i}},893:(t,e,n)=>{"use strict";n.d(e,{$2:()=>a,WD:()=>r,cW:()=>o});var i=n(597);function r(t){return new o((function(e){e(t)}))}function a(t){return new o((function(e,n){n(t)}))}var o=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){0===e._state&&((0,i.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.prototype.then=function(e,n){var i=this;return new t((function(t,r){i._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(i){r(i)}else t(n)},function(e){if(n)try{t(n(e))}catch(i){r(i)}else r(e)}]),i._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,i){var r,a;return n.then((function(t){a=!1,r=t,e&&e()}),(function(t){a=!0,r=t,e&&e()})).then((function(){a?i(r):t(r)}))}))},t}()},170:(t,e,n)=>{"use strict";n.d(e,{Z1:()=>f,_I:()=>d,ph:()=>h,yW:()=>u});var i=n(991),r=n(448);t=n.hmd(t);var a={nowSeconds:function(){return Date.now()/1e3}};function o(){var t=(0,i.R)().performance;if(t&&t.now){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function s(){try{var e=(0,r.l$)(t,"perf_hooks");return e.performance}catch(n){return}}var c=(0,r.KV)()?s():o(),l=void 0===c?a:{nowSeconds:function(){return(c.timeOrigin+c.now())/1e3}},u=a.nowSeconds.bind(a),h=l.nowSeconds.bind(l),d=h,f=function(){var t=(0,i.R)().performance;if(t&&t.now){var e=36e5,n=t.now(),r=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=a<e,s=t.timing&&t.timing.navigationStart,c="number"===typeof s,l=c?Math.abs(s+n-r):e,u=l<e;return o||u?a<=l?("timeOrigin",t.timeOrigin):("navigationStart",s):("dateNow",r)}"none"}()},19:(t,e,n)=>{"use strict";n.d(e,{S:()=>Qn});var i=n(655),r="6.19.7",a=n(343),o=n(844),s=n(321),c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],u=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var i=n();if(i){var r=i.getIntegration(t);if(r){var a=i.getClient(),o=a?a.getOptions():{},s=h(r._options,o);return d(e,s)?null:e}}return e}))},t.id="InboundFilters",t}();function h(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),{allowUrls:(0,i.fl)(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:(0,i.fl)(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:(0,i.fl)(t.ignoreErrors||[],e.ignoreErrors||[],l),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}function d(t,e){return e.ignoreInternal&&g(t)?(c&&a.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,o.jH)(t)),!0):f(t,e.ignoreErrors)?(c&&a.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,o.jH)(t)),!0):p(t,e.denyUrls)?(c&&a.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,o.jH)(t)+".\nUrl: "+b(t)),!0):!v(t,e.allowUrls)&&(c&&a.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,o.jH)(t)+".\nUrl: "+b(t)),!0)}function f(t,e){return!(!e||!e.length)&&m(t).some((function(t){return e.some((function(e){return(0,s.zC)(t,e)}))}))}function p(t,e){if(!e||!e.length)return!1;var n=b(t);return!!n&&e.some((function(t){return(0,s.zC)(n,t)}))}function v(t,e){if(!e||!e.length)return!0;var n=b(t);return!n||e.some((function(t){return(0,s.zC)(n,t)}))}function m(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,i=void 0===n?"":n,r=e.value,s=void 0===r?"":r;return[""+s,i+": "+s]}catch(l){return c&&a.kg.error("Cannot extract message for event "+(0,o.jH)(t)),[]}return[]}function g(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}function y(t){void 0===t&&(t=[]);for(var e=t.length-1;e>=0;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function b(t){try{if(t.stacktrace)return y(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?y(e):null}catch(i){return c&&a.kg.error("Cannot extract url for event "+(0,o.jH)(t)),null}}var _,w=n(535),k=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){_=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,w.HK)(this)||this;return _.apply(n,t)}},t.id="FunctionToString",t}(),S=n(242);function x(t,e){!0===e.debug&&(c?a.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,S.Gd)(),i=n.getScope();i&&i.update(e.initialScope);var r=new t(e);n.bindClient(r)}var C=n(991),D=n(732),T=n(769),O=Object.setPrototypeOf||({__proto__:[]}instanceof Array?E:A);function E(t,e){return t.__proto__=e,t}function A(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t}var P=function(t){function e(e){var n=this.constructor,i=t.call(this,e)||this;return i.message=e,i.name=n.prototype.constructor.name,O(i,n.prototype),i}return(0,i.ZT)(e,t),e}(Error),M=n(795),R=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function I(t){return"http"===t||"https"===t}function N(t,e){void 0===e&&(e=!1);var n=t.host,i=t.path,r=t.pass,a=t.port,o=t.projectId,s=t.protocol,c=t.publicKey;return s+"://"+c+(e&&r?":"+r:"")+"@"+n+(a?":"+a:"")+"/"+(i?i+"/":i)+o}function $(t){var e=R.exec(t);if(!e)throw new P("Invalid Sentry Dsn: "+t);var n=(0,i.CR)(e.slice(1),6),r=n[0],a=n[1],o=n[2],s=void 0===o?"":o,c=n[3],l=n[4],u=void 0===l?"":l,h=n[5],d="",f=h,p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){var v=f.match(/^\d+/);v&&(f=v[0])}return L({host:c,pass:s,path:d,projectId:f,port:u,protocol:r,publicKey:a})}function L(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function F(t){if(M.h){var e=t.port,n=t.projectId,i=t.protocol,r=["protocol","publicKey","host","projectId"];if(r.forEach((function(e){if(!t[e])throw new P("Invalid Sentry Dsn: "+e+" missing")})),!n.match(/^\d+$/))throw new P("Invalid Sentry Dsn: Invalid projectId "+n);if(!I(i))throw new P("Invalid Sentry Dsn: Invalid protocol "+i);if(e&&isNaN(parseInt(e,10)))throw new P("Invalid Sentry Dsn: Invalid port "+e);return!0}}function B(t){var e="string"===typeof t?$(t):L(t);return F(e),e}var j=n(597),z=n(893),H=n(170);function V(){var t="function"===typeof WeakSet,e=t?new WeakSet:[];function n(n){if(t)return!!e.has(n)||(e.add(n),!1);for(var i=0;i<e.length;i++){var r=e[i];if(r===n)return!0}return e.push(n),!1}function i(n){if(t)e.delete(n);else for(var i=0;i<e.length;i++)if(e[i]===n){e.splice(i,1);break}}return[n,i]}var G=n(360);function W(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return Y("",t,e,n)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function U(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var i=W(t,e);return K(i)>n?U(t,e-1,n):i}function Y(t,e,n,r,a){void 0===n&&(n=1/0),void 0===r&&(r=1/0),void 0===a&&(a=V());var o=(0,i.CR)(a,2),s=o[0],c=o[1],l=e;if(l&&"function"===typeof l.toJSON)try{return l.toJSON()}catch(m){}if(null===e||["number","boolean","string"].includes(typeof e)&&!(0,j.i2)(e))return e;var u=q(t,e);if(!u.startsWith("[object "))return u;if(0===n)return u.replace("object ","");if(s(e))return"[Circular ~]";var h=Array.isArray(e)?[]:{},d=0,f=(0,j.VZ)(e)||(0,j.cO)(e)?(0,w.Sh)(e):e;for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if(d>=r){h[p]="[MaxProperties ~]";break}var v=f[p];h[p]=Y(p,v,n-1,r,a),d+=1}return c(e),h}function q(t,e){try{return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,j.Cy)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?"[Function: "+(0,G.$P)(e)+"]":"symbol"===typeof e?"["+String(e)+"]":"bigint"===typeof e?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(i){return"**non-serializable** ("+i+")"}}function X(t){return~-encodeURI(t).split(/%..|./).length}function K(t){return X(JSON.stringify(t))}var J=[];function Z(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function Q(t){var e=t.defaultIntegrations&&(0,i.fl)(t.defaultIntegrations)||[],n=t.integrations,r=(0,i.fl)(Z(e));Array.isArray(n)?r=(0,i.fl)(r.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),Z(n)):"function"===typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var a=r.map((function(t){return t.name})),o="Debug";return-1!==a.indexOf(o)&&r.push.apply(r,(0,i.fl)(r.splice(a.indexOf(o),1))),r}function tt(t){-1===J.indexOf(t.name)&&(t.setupOnce(T.c,S.Gd),J.push(t.name),c&&a.kg.log("Integration installed: "+t.name))}function et(t){var e={};return Q(t).forEach((function(t){e[t.name]=t,tt(t)})),(0,w.xp)(e,"initialized",!0),e}var nt="Not capturing exception because it's already been captured.",it=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=B(e.dsn))}return t.prototype.captureException=function(t,e,n){var i=this;if(!(0,o.YO)(t)){var r=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return i._captureEvent(t,e,n)})).then((function(t){r=t}))),r}c&&a.kg.log(nt)},t.prototype.captureMessage=function(t,e,n,i){var r=this,a=n&&n.event_id,o=(0,j.pt)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(o.then((function(t){return r._captureEvent(t,n,i)})).then((function(t){a=t}))),a},t.prototype.captureEvent=function(t,e,n){if(!(e&&e.originalException&&(0,o.YO)(e.originalException))){var i=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){i=t}))),i}c&&a.kg.log(nt)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!==typeof t.release?c&&a.kg.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):c&&a.kg.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=et(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return c&&a.kg.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,a=!1,o=!1,s=e.exception&&e.exception.values;if(s){o=!0;try{for(var c=(0,i.XA)(s),l=c.next();!l.done;l=c.next()){var u=l.value,h=u.mechanism;if(h&&!1===h.handled){a=!0;break}}}catch(p){n={error:p}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var d="ok"===t.status,f=d&&0===t.errors||d&&a;f&&(t.update((0,i.pi)((0,i.pi)({},a&&{status:"crashed"}),{errors:t.errors||Number(o||a)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new z.cW((function(n){var i=0,r=1,a=setInterval((function(){0==e._numProcessing?(clearInterval(a),n(!0)):(i+=r,t&&i>=t&&(clearInterval(a),n(!1)))}),r)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,a=this.getOptions(),s=a.normalizeDepth,c=void 0===s?3:s,l=a.normalizeMaxBreadth,u=void 0===l?1e3:l,h=(0,i.pi)((0,i.pi)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,o.DM)()),timestamp:t.timestamp||(0,H.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var d=e;n&&n.captureContext&&(d=T.s.clone(d).update(n.captureContext));var f=(0,z.WD)(h);return d&&(f=d.applyToEvent(h,n)),f.then((function(t){return t&&(t.sdkProcessingMetadata=(0,i.pi)((0,i.pi)({},t.sdkProcessingMetadata),{normalizeDepth:W(c)+" ("+typeof c+")"})),"number"===typeof c&&c>0?r._normalizeEvent(t,c,u):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=(0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return(0,i.pi)((0,i.pi)({},t),t.data&&{data:W(t.data,e,n)})}))}),t.user&&{user:W(t.user,e,n)}),t.contexts&&{contexts:W(t.contexts,e,n)}),t.extra&&{extra:W(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=(0,i.pi)((0,i.pi)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,i=e.release,r=e.dist,a=e.maxValueLength,o=void 0===a?250:a;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==r&&(t.dist=r),t.message&&(t.message=(0,s.$G)(t.message,o));var c=t.exception&&t.exception.values&&t.exception.values[0];c&&c.value&&(c.value=(0,s.$G)(c.value,o));var l=t.request;l&&l.url&&(l.url=(0,s.$G)(l.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=(0,i.fl)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){c&&a.kg.error(t)}))},t.prototype._processEvent=function(t,e,n){var i=this,r=this.getOptions(),a=r.beforeSend,o=r.sampleRate,s=this.getTransport();function c(t,e){s.recordLostEvent&&s.recordLostEvent(t,e)}if(!this._isEnabled())return(0,z.$2)(new P("SDK not enabled, will not capture event."));var l="transaction"===t.type;return!l&&"number"===typeof o&&Math.random()>o?(c("sample_rate","event"),(0,z.$2)(new P("Discarding event because it's not included in the random sample (sampling rate = "+o+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw c("event_processor",t.type||"event"),new P("An event processor returned null, will not send event.");var i=e&&e.data&&!0===e.data.__sentry__;if(i||l||!a)return n;var r=a(n,e);return rt(r)})).then((function(e){if(null===e)throw c("before_send",t.type||"event"),new P("`beforeSend` returned `null`, will not send event.");var r=n&&n.getSession&&n.getSession();return!l&&r&&i._updateSessionFromEvent(r,e),i._sendEvent(e),e})).then(null,(function(t){if(t instanceof P)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new P("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t}();function rt(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,j.J8)(t))return t.then((function(t){if(!(0,j.PO)(t)&&null!==t)throw new P(e);return t}),(function(t){throw new P("beforeSend rejected with "+t)}));if(!(0,j.PO)(t)&&null!==t)throw new P(e);return t}var at="7";(function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=B(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return st(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return ut(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return ht(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return ft(this._dsnObject,this._tunnel)}})();function ot(t,e,n){return{initDsn:t,metadata:e||{},dsn:B(t),tunnel:n}}function st(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function ct(t,e){return""+st(t)+t.projectId+"/"+e+"/"}function lt(t){return(0,w._j)({sentry_key:t.publicKey,sentry_version:at})}function ut(t){return ct(t,"store")}function ht(t){return ut(t)+"?"+lt(t)}function dt(t){return ct(t,"envelope")}function ft(t,e){return e||dt(t)+"?"+lt(t)}function pt(t,e){var n=B(t),i=st(n)+"embed/error-page/",r="dsn="+N(n);for(var a in e)if("dsn"!==a)if("user"===a){if(!e.user)continue;e.user.name&&(r+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(r+="&email="+encodeURIComponent(e.user.email))}else r+="&"+encodeURIComponent(a)+"="+encodeURIComponent(e[a]);return i+"?"+r}function vt(t,e){return void 0===e&&(e=[]),[t,e]}function mt(t){var e=(0,i.CR)(t,2),n=(0,i.CR)(e[1],1),r=(0,i.CR)(n[0],1),a=r[0];return a.type}function gt(t){var e=(0,i.CR)(t,2),n=e[0],r=e[1],a=JSON.stringify(n);return r.reduce((function(t,e){var n=(0,i.CR)(e,2),r=n[0],a=n[1],o=(0,j.pt)(a)?String(a):JSON.stringify(a);return t+"\n"+JSON.stringify(r)+"\n"+o}),a)}function yt(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk,n=e.name,i=e.version;return{name:n,version:i}}}function bt(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=(0,i.fl)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=(0,i.fl)(t.sdk.packages||[],e.packages||[]),t):t}function _t(t,e){var n=yt(e),r=(0,i.pi)((0,i.pi)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:N(e.dsn)}),a="aggregates"in t?"sessions":"session",o=[{type:a},t],s=vt(r,[o]);return[s,a]}function wt(t,e){var n=(0,i.CR)(_t(t,e),2),r=n[0],a=n[1];return{body:gt(r),type:a,url:ft(e.dsn,e.tunnel)}}function kt(t,e){var n=yt(e),r=t.type||"event",a=(t.sdkProcessingMetadata||{}).transactionSampling,o=a||{},s=o.method,c=o.rate;bt(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var l=(0,i.pi)((0,i.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:N(e.dsn)}),u=[{type:r,sample_rates:[{id:s,rate:c}]},t];return vt(l,[u])}function St(t,e){var n,r=yt(e),a=t.type||"event",o="transaction"===a||!!e.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling,c=s||{},l=c.method,u=c.rate;bt(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{n=JSON.stringify(t)}catch(m){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=m;try{n=JSON.stringify(W(t))}catch(g){var h=g;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var d={body:n,type:a,url:o?ft(e.dsn,e.tunnel):ht(e.dsn)};if(o){var f=(0,i.pi)((0,i.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:N(e.dsn)}),p=[{type:a,sample_rates:[{id:l,rate:u}]},d.body],v=vt(f,[p]);d.body=gt(v)}return d}var xt,Ct=function(){function t(){}return t.prototype.sendEvent=function(t){return(0,z.WD)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return(0,z.WD)(!0)},t}(),Dt=function(){function t(t){this._options=t,this._options.dsn||c&&a.kg.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new P("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new P("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=ot(this._options.dsn,this._options._metadata,this._options.tunnel),n=kt(t,e);this._newTransport.send(n).then(null,(function(t){c&&a.kg.error("Error while sending event:",t)}))}else this._transport.sendEvent(t).then(null,(function(t){c&&a.kg.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=ot(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,i.CR)(_t(t,e),1),r=n[0];this._newTransport.send(r).then(null,(function(t){c&&a.kg.error("Error while sending session:",t)}))}else this._transport.sendSession(t).then(null,(function(t){c&&a.kg.error("Error while sending session:",t)}));else c&&a.kg.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Ct},t}();(function(t){t["Fatal"]="fatal",t["Error"]="error",t["Warning"]="warning",t["Log"]="log",t["Info"]="info",t["Debug"]="debug",t["Critical"]="critical"})(xt||(xt={}));var Tt=n(823),Ot="?",Et=10,At=20,Pt=30,Mt=40,Rt=50;function It(t,e,n,i){var r={filename:t,function:e,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}var Nt=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$t=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lt=function(t){var e=Nt.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("eval");if(n){var r=$t.exec(e[2]);r&&(e[2]=r[1],e[3]=r[2],e[4]=r[3])}var a=(0,i.CR)(Zt(e[1]||Ot,e[2]),2),o=a[0],s=a[1];return It(s,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Ft=[Pt,Lt],Bt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zt=function(t){var e,n=Bt.exec(t);if(n){var r=n[3]&&n[3].indexOf(" > eval")>-1;if(r){var a=jt.exec(n[3]);a&&(n[1]=n[1]||"eval",n[3]=a[1],n[4]=a[2],n[5]="")}var o=n[3],s=n[1]||Ot;return e=(0,i.CR)(Zt(s,o),2),s=e[0],o=e[1],It(o,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Ht=[Rt,zt],Vt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gt=function(t){var e=Vt.exec(t);return e?It(e[2],e[1]||Ot,+e[3],e[4]?+e[4]:void 0):void 0},Wt=[Mt,Gt],Ut=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Yt=function(t){var e=Ut.exec(t);return e?It(e[2],e[3]||Ot,+e[1]):void 0},qt=[Et,Yt],Xt=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Kt=function(t){var e=Xt.exec(t);return e?It(e[5],e[3]||e[4]||Ot,+e[1],+e[2]):void 0},Jt=[At,Kt],Zt=function(t,e){var n=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return n||i?[-1!==t.indexOf("@")?t.split("@")[0]:Ot,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Qt(t){var e=ne(t),n={type:t&&t.name,value:ae(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function te(t,e,n){var i={exception:{values:[{type:(0,j.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,w.zf)(t)}]},extra:{__serialized__:U(t)}};if(e){var r=ne(e);r.length&&(i.stacktrace={frames:r})}return i}function ee(t){return{exception:{values:[Qt(t)]}}}function ne(t){var e=t.stacktrace||t.stack||"",n=re(t);try{return(0,G.pE)(qt,Jt,Ft,Wt,Ht)(e,n)}catch(i){}return[]}var ie=/Minified React error #\d+;/i;function re(t){if(t){if("number"===typeof t.framesToPop)return t.framesToPop;if(ie.test(t.message))return 1}return 0}function ae(t){var e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:e:"No error message"}function oe(t,e,n){var i=e&&e.syntheticException||void 0,r=ce(t,i,n);return(0,o.EG)(r),r.level=xt.Error,e&&e.event_id&&(r.event_id=e.event_id),(0,z.WD)(r)}function se(t,e,n,i){void 0===e&&(e=xt.Info);var r=n&&n.syntheticException||void 0,a=le(t,r,i);return a.level=e,n&&n.event_id&&(a.event_id=n.event_id),(0,z.WD)(a)}function ce(t,e,n,r){var a;if((0,j.VW)(t)&&t.error){var s=t;return ee(s.error)}if((0,j.TX)(t)||(0,j.fm)(t)){var c=t;if("stack"in t)a=ee(t);else{var l=c.name||((0,j.TX)(c)?"DOMError":"DOMException"),u=c.message?l+": "+c.message:l;a=le(u,e,n),(0,o.Db)(a,u)}return"code"in c&&(a.tags=(0,i.pi)((0,i.pi)({},a.tags),{"DOMException.code":""+c.code})),a}if((0,j.VZ)(t))return ee(t);if((0,j.PO)(t)||(0,j.cO)(t)){var h=t;return a=te(h,e,r),(0,o.EG)(a,{synthetic:!0}),a}return a=le(t,e,n),(0,o.Db)(a,""+t,void 0),(0,o.EG)(a,{synthetic:!0}),a}function le(t,e,n){var i={message:t};if(n&&e){var r=ne(e);r.length&&(i.stacktrace={frames:r})}return i}function ue(t){var e=[];function n(){return void 0===t||e.length<t}function i(t){return e.splice(e.indexOf(t),1)[0]}function r(t){if(!n())return(0,z.$2)(new P("Not adding Promise due to buffer limit reached."));var r=t();return-1===e.indexOf(r)&&e.push(r),r.then((function(){return i(r)})).then(null,(function(){return i(r).then(null,(function(){}))})),r}function a(t){return new z.cW((function(n,i){var r=e.length;if(!r)return n(!0);var a=setTimeout((function(){t&&t>0&&n(!1)}),t);e.forEach((function(t){(0,z.WD)(t).then((function(){--r||(clearTimeout(a),n(!0))}),i)}))}))}return{$:e,add:r,drain:a}}var he=6e4;function de(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+t);return isNaN(i)?he:i-e}function fe(t,e){return t[e]||t.all||0}function pe(t,e,n){return void 0===n&&(n=Date.now()),fe(t,e)>n}function ve(t,e,n){var r,a,o,s;void 0===n&&(n=Date.now());var c=(0,i.pi)({},t),l=e["x-sentry-rate-limits"],u=e["retry-after"];if(l)try{for(var h=(0,i.XA)(l.trim().split(",")),d=h.next();!d.done;d=h.next()){var f=d.value,p=f.split(":",2),v=parseInt(p[0],10),m=1e3*(isNaN(v)?60:v);if(p[1])try{for(var g=(o=void 0,(0,i.XA)(p[1].split(";"))),y=g.next();!y.done;y=g.next()){var b=y.value;c[b]=n+m}}catch(_){o={error:_}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}else c.all=n+m}}catch(w){r={error:w}}finally{try{d&&!d.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}else u&&(c.all=n+de(u,n));return c}function me(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}var ge=30;function ye(t,e,n){void 0===n&&(n=ue(t.bufferSize||ge));var i={},r=function(t){return n.drain(t)};function a(t){var r=mt(t),a="event"===r?"error":r,o={category:a,body:gt(t)};if(pe(i,a))return(0,z.$2)({status:"rate_limit",reason:be(i,a)});var s=function(){return e(o).then((function(t){var e=t.body,n=t.headers,r=t.reason,o=t.statusCode,s=me(o);return n&&(i=ve(i,n)),"success"===s?(0,z.WD)({status:s,reason:r}):(0,z.$2)({status:s,reason:r||e||("rate_limit"===s?be(i,a):"Unknown transport error")})}))};return n.add(s)}return{send:a,flush:r}}function be(t,e){return"Too many "+e+" requests, backing off until: "+new Date(fe(t,e)).toISOString()}function _e(t){t.then(null,(function(t){console.error(t)}))}var we,ke="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Se=(0,C.R)();function xe(){if(we)return we;if((0,Tt.Du)(Se.fetch))return we=Se.fetch.bind(Se);var t=Se.document,e=Se.fetch;if(t&&"function"===typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var i=n.contentWindow;i&&i.fetch&&(e=i.fetch),t.head.removeChild(n)}catch(r){ke&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return we=e.bind(Se)}function Ce(t,e){var n="[object Navigator]"===Object.prototype.toString.call(Se&&Se.navigator),i=n&&"function"===typeof Se.navigator.sendBeacon;if(i){var r=Se.navigator.sendBeacon.bind(Se.navigator);return r(t,e)}if((0,Tt.Ak)()){var a=xe();return _e(a(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}function De(t,e){function n(n){var r=(0,i.pi)({body:n.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then((function(t){return t.text().then((function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}}))}))}return void 0===e&&(e=xe()),ye({bufferSize:t.bufferSize},n)}function Te(t,e,n){var i=[{type:"client_report"},{timestamp:n||(0,H.yW)(),discarded_events:t}];return vt(e?{dsn:e}:{},[i])}function Oe(t){var e=t;return"event"===e?"error":e}var Ee=(0,C.R)(),Ae=function(){function t(t){var e=this;this.options=t,this._buffer=ue(30),this._rateLimits={},this._outcomes={},this._api=ot(t.dsn,t._metadata,t.tunnel),this.url=ht(this._api.dsn),this.options.sendClientReports&&Ee.document&&Ee.document.addEventListener("visibilitychange",(function(){"hidden"===Ee.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){return this._sendRequest(St(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest(wt(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var i=Oe(e)+":"+t;ke&&a.kg.log("Adding outcome: "+i),this._outcomes[i]=(n=this._outcomes[i],(null!==n&&void 0!==n?n:0)+1)}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){ke&&a.kg.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=ft(this._api.dsn,this._api.tunnel),n=Object.keys(t).map((function(e){var n=(0,i.CR)(e.split(":"),2),r=n[0],a=n[1];return{reason:a,category:r,quantity:t[e]}})),r=Te(n,this._api.tunnel&&N(this._api.dsn));try{Ce(e,gt(r))}catch(o){ke&&a.kg.error(o)}}else ke&&a.kg.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,i=t.headers,r=t.resolve,o=t.reject,s=me(n.status);this._rateLimits=ve(this._rateLimits,i),this._isRateLimited(e)&&ke&&a.kg.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==s?o(n):r({status:s})},t.prototype._disabledUntil=function(t){var e=Oe(t);return new Date(fe(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=Oe(t);return pe(this._rateLimits,e)},t}(),Pe=function(t){function e(e,n){void 0===n&&(n=xe());var i=t.call(this,e)||this;return i._fetch=n,i}return(0,i.ZT)(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:(0,Tt.hv)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add((function(){return new z.cW((function(e,r){n._fetch(t.url,i).then((function(i){var a={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:a,resolve:e,reject:r})})).catch(r)}))})).then(void 0,(function(e){throw e instanceof P?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(Ae),Me=4;function Re(t){function e(e){return new z.cW((function(n,i){var r=new XMLHttpRequest;for(var a in r.onreadystatechange=function(){if(r.readyState===Me){var t={body:r.response,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},reason:r.statusText,statusCode:r.status};n(t)}},r.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&r.setRequestHeader(a,t.headers[a]);r.send(e.body)}))}return ye({bufferSize:t.bufferSize},e)}var Ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new z.cW((function(e,i){var r=new XMLHttpRequest;for(var a in r.onreadystatechange=function(){if(4===r.readyState){var a={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:a,resolve:e,reject:i})}},r.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,a)&&r.setRequestHeader(a,n.options.headers[a]);r.send(t.body)}))})).then(void 0,(function(e){throw e instanceof P?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.eventFromException=function(t,e){return oe(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=xt.Info),se(t,e,n,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=(0,i.pi)((0,i.pi)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=ot(e.dsn,e._metadata,e.tunnel),r=ft(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(e);if((0,Tt.Ak)()){var a=(0,i.pi)({},e.fetchParameters);return this._newTransport=De({requestOptions:a,url:r}),new Pe(e)}return this._newTransport=Re({url:r,headers:e.headers}),new Ie(e)},e}(Dt);function $e(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=(0,S.Gd)();if(r&&r[t])return r[t].apply(r,(0,i.fl)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Le(t,e){var n=new Error("Sentry syntheticException");return $e("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Fe(t){$e("withScope",t)}var Be=(0,C.R)(),je=0;function ze(){return je>0}function He(){je+=1,setTimeout((function(){je-=1}))}function Ve(t,e,n){if(void 0===e&&(e={}),"function"!==typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if((0,w.HK)(t))return t}catch(l){return t}var a=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var a=r.map((function(t){return Ve(t,e)}));return t.apply(this,a)}catch(s){throw He(),Fe((function(t){t.addEventProcessor((function(t){return e.mechanism&&((0,o.Db)(t,void 0,void 0),(0,o.EG)(t,e.mechanism)),t.extra=(0,i.pi)((0,i.pi)({},t.extra),{arguments:r}),t})),Le(s)})),s}};try{for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=t[s])}catch(u){}(0,w.$Q)(a,t),(0,w.xp)(t,"__sentry_wrapped__",a);try{var c=Object.getOwnPropertyDescriptor(a,"name");c.configurable&&Object.defineProperty(a,"name",{get:function(){return t.name}})}catch(u){}return a}function Ge(t){if(void 0===t&&(t={}),Be.document)if(t.eventId)if(t.dsn){var e=Be.document.createElement("script");e.async=!0,e.src=pt(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=Be.document.head||Be.document.body;n&&n.appendChild(e)}else ke&&a.kg.error("Missing dsn option in showReportDialog call");else ke&&a.kg.error("Missing eventId option in showReportDialog call")}var We=n(464),Ue=["fatal","error","warning","log","info","debug","critical"];function Ye(t){return-1!==Ue.indexOf(t)}function qe(t){return"warn"===t?xt.Warning:Ye(t)?t:xt.Log}var Xe=function(){function t(e){this.name=t.id,this._options=(0,i.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&(0,S.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,o.jH)(t)},{event:t})},t.prototype.setupOnce=function(){this._options.console&&(0,D.o)("console",Je),this._options.dom&&(0,D.o)("dom",Ke(this._options.dom)),this._options.xhr&&(0,D.o)("xhr",Ze),this._options.fetch&&(0,D.o)("fetch",Qe),this._options.history&&(0,D.o)("history",tn)},t.id="Breadcrumbs",t}();function Ke(t){function e(e){var n,i="object"===typeof t?t.serializeAttribute:void 0;"string"===typeof i&&(i=[i]);try{n=e.event.target?(0,We.R)(e.event.target,i):(0,We.R)(e.event,i)}catch(r){n="<unknown>"}0!==n.length&&(0,S.Gd)().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})}return e}function Je(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:qe(t.level),message:(0,s.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+((0,s.nK)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}(0,S.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})}function Ze(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,i=e.url,r=e.status_code,a=e.body;(0,S.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:r},type:"http"},{xhr:t.xhr,input:a})}else;}function Qe(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,S.Gd)().addBreadcrumb({category:"fetch",data:t.fetchData,level:xt.Error,type:"http"},{data:t.error,input:t.args}):(0,S.Gd)().addBreadcrumb({category:"fetch",data:(0,i.pi)((0,i.pi)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function tn(t){var e=(0,C.R)(),n=t.from,i=t.to,r=(0,o.en)(e.location.href),a=(0,o.en)(n),s=(0,o.en)(i);a.path||(a=r),r.protocol===s.protocol&&r.host===s.host&&(i=s.relative),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),(0,S.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:i}})}var en=function(t){function e(e){void 0===e&&(e={});var n=this;return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:r}],version:r},n=t.call(this,Ne,e)||this,n}return(0,i.ZT)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={});var e=(0,C.R)().document;e&&(this._isEnabled()?Ge((0,i.pi)((0,i.pi)({},t),{dsn:t.dsn||this.getDsn()})):ke&&a.kg.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,i){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,i)},e.prototype._sendEvent=function(e){var n=this.getIntegration(Xe);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(it),nn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rn=function(){function t(e){this.name=t.id,this._options=(0,i.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,C.R)();this._options.setTimeout&&(0,w.hl)(t,"setTimeout",an),this._options.setInterval&&(0,w.hl)(t,"setInterval",an),this._options.requestAnimationFrame&&(0,w.hl)(t,"requestAnimationFrame",on),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,w.hl)(XMLHttpRequest.prototype,"send",sn);var e=this._options.eventTarget;if(e){var n=Array.isArray(e)?e:nn;n.forEach(cn)}},t.id="TryCatch",t}();function an(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0];return e[0]=Ve(i,{mechanism:{data:{function:(0,G.$P)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function on(t){return function(e){return t.apply(this,[Ve(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,G.$P)(t)},handled:!0,type:"instrument"}})])}}function sn(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(t){t in i&&"function"===typeof i[t]&&(0,w.hl)(i,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,G.$P)(e)},handled:!0,type:"instrument"}},i=(0,w.HK)(e);return i&&(n.mechanism.data.handler=(0,G.$P)(i)),Ve(e,n)}))})),t.apply(this,e)}}function cn(t){var e=(0,C.R)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,w.hl)(n,"addEventListener",(function(e){return function(n,i,r){try{"function"===typeof i.handleEvent&&(i.handleEvent=Ve(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:(0,G.$P)(i),target:t},handled:!0,type:"instrument"}}))}catch(a){}return e.apply(this,[n,Ve(i,{mechanism:{data:{function:"addEventListener",handler:(0,G.$P)(i),target:t},handled:!0,type:"instrument"}}),r])}})),(0,w.hl)(n,"removeEventListener",(function(t){return function(e,n,i){var r=n;try{var a=r&&r.__sentry_wrapped__;a&&t.call(this,e,a,i)}catch(o){}return t.call(this,e,r,i)}})))}var ln=function(){function t(e){this.name=t.id,this._installFunc={onerror:un,onunhandledrejection:hn},this._options=(0,i.pi)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this._options;for(var e in t){var n=this._installFunc[e];n&&t[e]&&(vn(e),n(),this._installFunc[e]=void 0)}},t.id="GlobalHandlers",t}();function un(){(0,D.o)("error",(function(t){var e=(0,i.CR)(gn(),2),n=e[0],r=e[1];if(n.getIntegration(ln)){var a=t.msg,o=t.url,s=t.line,c=t.column,l=t.error;if(!(ze()||l&&l.__sentry_own_request__)){var u=void 0===l&&(0,j.HD)(a)?fn(a,o,s,c):pn(ce(l||a,void 0,r,!1),o,s,c);u.level=xt.Error,mn(n,l,u,"onerror")}}}))}function hn(){(0,D.o)("unhandledrejection",(function(t){var e=(0,i.CR)(gn(),2),n=e[0],r=e[1];if(n.getIntegration(ln)){var a=t;try{"reason"in t?a=t.reason:"detail"in t&&"reason"in t.detail&&(a=t.detail.reason)}catch(s){}if(ze()||a&&a.__sentry_own_request__)return!0;var o=(0,j.pt)(a)?dn(a):ce(a,void 0,r,!0);o.level=xt.Error,mn(n,a,o,"onunhandledrejection")}}))}function dn(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}function fn(t,e,n,i){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=(0,j.VW)(t)?t.message:t,o="Error",s=a.match(r);s&&(o=s[1],a=s[2]);var c={exception:{values:[{type:o,value:a}]}};return pn(c,e,n,i)}function pn(t,e,n,i){var r=t.exception=t.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,h=(0,j.HD)(e)&&e.length>0?e:(0,We.l)();return 0===c.length&&c.push({colno:l,filename:h,function:"?",in_app:!0,lineno:u}),t}function vn(t){ke&&a.kg.log("Global Handler attached: "+t)}function mn(t,e,n,i){(0,o.EG)(n,{handled:!1,type:i}),t.captureEvent(n,{originalException:e})}function gn(){var t=(0,S.Gd)(),e=t.getClient(),n=e&&e.getOptions().attachStacktrace;return[t,n]}var yn="cause",bn=5,_n=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||yn,this._limit=e.limit||bn}return t.prototype.setupOnce=function(){(0,T.c)((function(e,n){var i=(0,S.Gd)().getIntegration(t);return i?wn(i._key,i._limit,e,n):e}))},t.id="LinkedErrors",t}();function wn(t,e,n,r){if(!n.exception||!n.exception.values||!r||!(0,j.V9)(r.originalException,Error))return n;var a=kn(e,r.originalException,t);return n.exception.values=(0,i.fl)(a,n.exception.values),n}function kn(t,e,n,r){if(void 0===r&&(r=[]),!(0,j.V9)(e[n],Error)||r.length+1>=t)return r;var a=Qt(e[n]);return kn(t,e[n],n,(0,i.fl)([a],r))}var Sn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var i=n().getIntegration(t);if(i){try{if(xn(e,i._previousEvent))return ke&&a.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return i._previousEvent=e}return i._previousEvent=e}return e}))},t.id="Dedupe",t}();function xn(t,e){return!!e&&(!!Cn(t,e)||!!Dn(t,e))}function Cn(t,e){var n=t.message,i=e.message;return!(!n&&!i)&&(!(n&&!i||!n&&i)&&(n===i&&(!!On(t,e)&&!!Tn(t,e))))}function Dn(t,e){var n=En(e),i=En(t);return!(!n||!i)&&(n.type===i.type&&n.value===i.value&&(!!On(t,e)&&!!Tn(t,e)))}function Tn(t,e){var n=An(t),i=An(e);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r],o=n[r];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function On(t,e){var n=t.fingerprint,i=e.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(r){return!1}}function En(t){return t.exception&&t.exception.values&&t.exception.values[0]}function An(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames}var Pn=(0,C.R)(),Mn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){(0,T.c)((function(e){if((0,S.Gd)().getIntegration(t)){if(!Pn.navigator&&!Pn.location&&!Pn.document)return e;var n=e.request&&e.request.url||Pn.location&&Pn.location.href,r=(Pn.document||{}).referrer,a=(Pn.navigator||{}).userAgent,o=(0,i.pi)((0,i.pi)((0,i.pi)({},e.request&&e.request.headers),r&&{Referer:r}),a&&{"User-Agent":a}),s=(0,i.pi)((0,i.pi)({},n&&{url:n}),{headers:o});return(0,i.pi)((0,i.pi)({},e),{request:s})}return e}))},t.id="UserAgent",t}(),Rn=[new u,new k,new rn,new Xe,new ln,new _n,new Sn,new Mn];function In(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Rn),void 0===t.release){var e=(0,C.R)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),x(en,t),t.autoSessionTracking&&$n()}function Nn(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function $n(){var t=(0,C.R)(),e=t.document;if("undefined"!==typeof e){var n=(0,S.Gd)();n.captureSession&&(Nn(n),(0,D.o)("history",(function(t){var e=t.from,n=t.to;void 0!==e&&e!==n&&Nn((0,S.Gd)())})))}else ke&&a.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var Ln=["activate","mount","update"],Fn=/(?:^|[-_])(\w)/g,Bn=function(t){return t.replace(Fn,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")},jn="<Root>",zn="<Anonymous>",Hn=function(t,e){var n="";while(e)e%2===1&&(n+=t),e>1&&(t+=t),e>>=1;return n},Vn=function(t,e){if(!t)return zn;if(t.$root===t)return jn;var n=t.$options,i=n.name||n._componentTag,r=n.__file;if(!i&&r){var a=r.match(/([^/\\]+)\.vue$/);a&&(i=a[1])}return(i?"<"+Bn(i)+">":zn)+(r&&!1!==e?" at "+r:"")},Gn=function(t){var e,n,i;if(((null===(e=t)||void 0===e?void 0:e._isVue)||(null===(n=t)||void 0===n?void 0:n.__isVue))&&(null===(i=t)||void 0===i?void 0:i.$parent)){var r=[],a=0;while(t){if(r.length>0){var o=r[r.length-1];if(o.constructor===t.constructor){a+=1,t=t.$parent;continue}a>0&&(r[r.length-1]=[o,a],a=0)}r.push(t),t=t.$parent}var s=r.map((function(t,e){return""+((0===e?"---\x3e ":Hn(" ",5+2*e))+(Array.isArray(t)?Vn(t[0])+"... ("+t[1]+" recursive calls)":Vn(t)))})).join("\n");return"\n\nfound in\n\n"+s}return"\n\n(found in "+Vn(t)+")"},Wn=function(t,e){var n=t.config,i=n.errorHandler,r=n.warnHandler,a=n.silent;t.config.errorHandler=function(n,o,s){var c=Vn(o,!1),l=o?Gn(o):"",u={componentName:c,lifecycleHook:s,trace:l};if(o&&e.attachProps&&(u.propsData=o.$options.propsData||o.$props),setTimeout((function(){(0,S.Gd)().withScope((function(t){t.setContext("vue",u),(0,S.Gd)().captureException(n)}))})),"function"===typeof i&&i.call(t,n,o,s),e.logErrors){var h="undefined"!==typeof console,d="Error in "+s+': "'+(n&&n.toString())+'"';r?r.call(null,d,o,l):h&&!a&&console.error("[Vue warn]: "+d+l)}}},Un="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Yn="ui.vue",qn={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Xn(){var t;return null===(t=(0,S.Gd)().getScope())||void 0===t?void 0:t.getTransaction()}function Kn(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout((function(){var n;(null===(n=t.$root)||void 0===n?void 0:n.$_sentryRootSpan)&&(t.$root.$_sentryRootSpan.finish(e),t.$root.$_sentryRootSpan=void 0)}),n)}var Jn=function(t){var e,n,r=(t.hooks||[]).concat(Ln).filter((function(t,e,n){return n.indexOf(t)===e})),o={},s=function(e){var n,r,s=qn[e];if(!s)return Un&&a.kg.warn("Unknown hook: "+e),"continue";var c=function(n){o[n]=function(){var i,r=this.$root===this;if(r){var a=Xn();a&&(this.$_sentryRootSpan=this.$_sentryRootSpan||a.startChild({description:"Application Render",op:Yn}))}var o=Vn(this,!1),c=Array.isArray(t.trackComponents)?t.trackComponents.includes(o):t.trackComponents;if(r||c)if(this.$_sentrySpans=this.$_sentrySpans||{},n==s[0]){a=(null===(i=this.$root)||void 0===i?void 0:i.$_sentryRootSpan)||Xn();a&&(this.$_sentrySpans[e]=a.startChild({description:"Vue <"+o+">",op:Yn+"."+e}))}else{var l=this.$_sentrySpans[e];if(!l)return;l.finish(),Kn(this,(0,H.ph)(),t.timeout)}}};try{for(var l=(n=void 0,(0,i.XA)(s)),u=l.next();!u.done;u=l.next()){var h=u.value;c(h)}}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}};try{for(var c=(0,i.XA)(r),l=c.next();!l.done;l=c.next()){var u=l.value;s(u)}}catch(h){e={error:h}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return o},Zn={Vue:(0,C.R)().Vue,attachProps:!0,logErrors:!1,hooks:Ln,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:r}],version:r}}};function Qn(t){void 0===t&&(t={});var e=(0,i.pi)((0,i.pi)({},Zn),t);if(In(e),e.Vue||e.app)if(e.app){var n=Array.isArray(e.app)?e.app:[e.app];n.forEach((function(t){return ti(t,e)}))}else e.Vue&&ti(e.Vue,e);else Un&&a.kg.warn("Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}var ti=function(t,e){Wn(t,e),("tracesSampleRate"in e||"tracesSampler"in e)&&t.mixin(Jn((0,i.pi)((0,i.pi)({},e),e.tracingOptions)))}},1:(t,e,n)=>{"use strict";function i(t,e,n,i,r,a,o,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,{Z:()=>i})},500:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function p(t,e,n){return p=f()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),a=new r;return n&&d(a,n.prototype),a},p.apply(null,arguments)}function v(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function m(t){var e="function"===typeof Map?new Map:void 0;return m=function(t){if(null===t||!v(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return p(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},m(t)}function g(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function y(t,e){if(null==t)return{};var n,i,r=g(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?b(t):e}function w(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function k(t,e){return D(t)||O(t,e)||A()}function S(t){return D(t)||T(t)||A()}function x(t){return C(t)||T(t)||E()}function C(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function D(t){if(Array.isArray(t))return t}function T(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function O(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){r=!0,a=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function P(t){return t<0?-1:t>0?1:0}n.d(e,{ZP:()=>xv});var M=Math.sign||P;function R(t,e){return(t&e)===e}function I(t,e){return(t%e+e)%e}function N(t,e,n){return Math.max(e,Math.min(n,t))}function $(t,e){return e.split(".").reduce((function(t,e){return t?t[e]:null}),t)}function L(t,e,n){if(!t)return-1;if(!n||"function"!==typeof n)return t.indexOf(e);for(var i=0;i<t.length;i++)if(n(t[i],e))return i;return-1}var F=function(t){return"object"===i(t)&&!Array.isArray(t)},B=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i||!Object.assign){var r=function(t){return F(n[t])&&null!==e&&e.hasOwnProperty(t)&&F(e[t])},a=Object.getOwnPropertyNames(n).map((function(a){return s({},a,r(a)?t(e[a],n[a],i):n[a])})).reduce((function(t,e){return l({},t,{},e)}),{});return l({},e,{},a)}return Object.assign(e,n)},j=B,z={Android:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!==typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return z.Android()||z.BlackBerry()||z.iOS()||z.Opera()||z.Windows()}};function H(t){"undefined"!==typeof t.remove?t.remove():"undefined"!==typeof t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)}function V(t){var e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.width="100%";var n=document.createElement("div");return e.appendChild(n),n.appendChild(t),document.body.appendChild(e),e}function G(t){return t&&t._isVue}function W(t){return t?t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):t}function U(t){return t?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function Y(t,e){var n=JSON.parse(JSON.stringify(t)),i=function(t){return function(e,n){return t.map((function(t){var i=1;"-"===t[0]&&(i=-1,t=t.substring(1));var r=$(e,t),a=$(n,t);return r>a?i:r<a?-i:0})).reduce((function(t,e){return t||e}),0)}};return n.sort(i(e))}function q(t){return void 0===t?null:isNaN(t)?t:t+"px"}function X(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"long",n=[],i=0;i<12;i++)n.push(new Date(2e3,i,15));var r=new Intl.DateTimeFormat(t,{month:e});return n.map((function(t){return r.format(t)}))}function K(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"narrow",n=[],i=0;i<7;i++){var r=new Date(2e3,0,i+1);n[r.getDay()]=r}var a=new Intl.DateTimeFormat(t,{weekday:e});return n.map((function(t){return a.format(t)}))}function J(t,e){var n=e.match(t);return t.toString().match(/<(.+?)>/g).map((function(t){var e=t.match(/<(.+)>/);return!e||e.length<=0?null:t.match(/<(.+)>/)[1]})).reduce((function(t,e,i,r){return n&&n.length>i?t[e]=n[i+1]:t[e]=null,t}),{})}function Z(){return new Promise((function(t){var e=new Image;e.onerror=function(){return t(!1)},e.onload=function(){return t(1===e.width)},e.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((function(){return!1}))}function Q(t){return"shadowRoot"in t.$root.$options}var tt,et=function(t){return void 0!==t},nt=function(t){return null===t||void 0===t},it={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null},rt=function(t){it=t},at=function(t){tt=t};function ot(t,e,n,i,r,a,o,s,c,l){"boolean"!==typeof o&&(c=s,s=o,o=!1);var u,h="function"===typeof n?n.options:n;if(t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,r&&(h.functional=!0)),i&&(h._scopeId=i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):e&&(u=o?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(h.functional){var d=h.render;h.render=function(t,e){return u.call(e),d(t,e)}}else{var f=h.beforeCreate;h.beforeCreate=f?[].concat(f,u):[u]}return n}var st=ot,ct=function(t){"undefined"!==typeof window&&window.Vue&&window.Vue.use(t)},lt=function(t,e){t.component(e.name,e)},ut=function(t,e,n){t.prototype.$buefy||(t.prototype.$buefy={}),t.prototype.$buefy[e]=n},ht={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return it.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return it.defaultLocale}},statusIcon:{type:Boolean,default:function(){return it.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||it.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,e=0;e<3;e++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){var t=this.parentField||{},e=t.newType;if(e){if("string"===typeof e)return e;for(var n in e)if(e[n])return n}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var t=this.getElement();void 0!==t&&this.$nextTick((function(){t&&t.focus()}))},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},getElement:function(){var t=this.$refs[this.$data._elementRef];while(G(t))t=t.$refs[t.$data._elementRef];return t},setInvalid:function(){var t="is-danger",e=this.validationMessage||this.getElement().validationMessage;this.setValidity(t,e)},setValidity:function(t,e){var n=this;this.$nextTick((function(){n.parentField&&(n.parentField.type||(n.parentField.newType=t),n.parentField.message||(n.parentField.newMessage=e))}))},checkHtml5Validity:function(){if(this.useHtml5Validation){var t=this.getElement();if(void 0!==t)return t.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}},dt={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},ft=function(){var t=it&&it.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},pt=function(){var t={mdi:dt,fa:ft(),fas:ft(),far:ft(),fad:ft(),fab:ft(),fal:ft(),"fa-solid":ft(),"fa-regular":ft(),"fa-light":ft(),"fa-thin":ft(),"fa-duotone":ft(),"fa-brands":ft()};return it&&it.customIconPacks&&(t=j(t,it.customIconPacks,!0)),t},vt={name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var t=pt();return t[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||it.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"===typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1)){var n=t,i=S(n),r=i.slice(1);return"has-text-".concat(r.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||it.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}};const mt=vt;var gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?n(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):n("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.customClass]})],1)},yt=[];const bt=void 0,_t=void 0,wt=void 0,kt=!1;var St=st({render:gt,staticRenderFns:yt},bt,mt,_t,kt,wt,void 0,void 0),xt={name:"BInput",components:s({},St.name,St),mixins:[ht],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return it.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||it.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var t="";return this.icon&&(t+="has-icons-left "),this.hasIconRight&&(t+="has-icons-right"),t},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"===typeof this.computedValue?Array.from(this.computedValue).length:"number"===typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(t){this.newValue=t},type:function(t){this.newType=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((function(){t.focus()}))},iconClick:function(t,e){var n=this;this.$emit(t,e),this.$nextTick((function(){n.focus()}))},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)},onInput:function(t){if(!this.lazy){var e=t.target.value;this.updateValue(e)}},onChange:function(t){if(this.lazy){var e=t.target.value;this.updateValue(e)}},updateValue:function(t){this.computedValue=t,!this.isValid&&this.checkHtml5Validity()}}};const Ct=xt;var Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:t.rootClasses},["textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)):n("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)),t.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":t.iconClickable},attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize},nativeOn:{click:function(e){return t.iconClick("icon-click",e)}}}):t._e(),!t.loading&&t.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},attrs:{icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:""},nativeOn:{click:function(e){return t.rightIconClick(e)}}}):t._e(),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]):t._e()],1)},Tt=[];const Ot=void 0,Et=void 0,At=void 0,Pt=!1;var Mt=st({render:Dt,staticRenderFns:Tt},Ot,Ct,Et,Pt,At,void 0,void 0),Rt={name:"BAutocomplete",components:s({},Mt.name,Mt),mixins:[ht],inheritAttrs:!1,props:{value:[Number,String],data:{type:Array,default:function(){return[]}},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function,checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:function(){return["Tab","Enter"]}},selectableHeader:Boolean,selectableFooter:Boolean},data:function(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{computedData:function(){var t=this;if(this.groupField){if(this.groupOptions){var e=[];return this.data.forEach((function(n){var i=$(n,t.groupField),r=$(n,t.groupOptions);e.push({group:i,items:r})})),e}var n={};this.data.forEach((function(e){var i=$(e,t.groupField);n[i]||(n[i]=[]),n[i].push(e)}));var i=[];return Object.keys(n).forEach((function(t){i.push({group:t,items:n[t]})})),i}return[{items:this.data}]},isEmpty:function(){return!this.computedData||!this.computedData.some((function(t){return t.items&&t.items.length}))},whiteList:function(){var t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),void 0!==this.$refs.dropdown){var e=this.$refs.dropdown.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;t.push(s)}}catch(v){i=!0,r=v}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}if(this.$parent.$data._isTaginput){t.push(this.$parent.$el);var c=this.$parent.$el.querySelectorAll("*"),l=!0,u=!1,h=void 0;try{for(var d,f=c[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;t.push(p)}}catch(v){u=!0,h=v}finally{try{l||null==f.return||f.return()}finally{if(u)throw h}}}return t},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasGroupSlot:function(){return!!this.$scopedSlots.group},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},isOpenedTop:function(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight:function(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable:function(){return!!this.clearable||this.iconRightClickable},contentStyle:function(){return{maxHeight:q(this.maxHeight)}}},watch:{isActive:function(t){var e=this;"auto"===this.dropdownPosition&&(t?this.calcDropdownInViewportVertical():setTimeout((function(){e.calcDropdownInViewportVertical()}),100))},newValue:function(t){this.$emit("input",t);var e=this.getValue(this.selected);e&&e!==t&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&!t||(this.isActive=!!t)},value:function(t){this.newValue=t},data:function(){var t=this;if(this.keepFirst)this.$nextTick((function(){t.isActive?t.selectFirstOption(t.computedData):t.setHovered(null)}));else if(this.hovered){var e=this.getValue(this.hovered),n=this.computedData.map((function(t){return t.items})).reduce((function(t,e){return[].concat(x(t),x(e))}),[]);n.some((function(n){return t.getValue(n)===e}))||this.setHovered(null)}}},methods:{setHovered:function(t){void 0!==t&&(this.hovered=t)},setSelected:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(void 0!==t){if(this.selected=t,this.$emit("select",this.selected,i),null!==this.selected){if(this.clearOnSelect){var r=this.$refs.input;r.newValue="",r.$refs.input.value=""}else this.newValue=this.getValue(this.selected);this.setHovered(null)}n&&this.$nextTick((function(){e.isActive=!1})),this.checkValidity()}},selectFirstOption:function(t){var e=this;this.$nextTick((function(){var n=t.filter((function(t){return t.items&&t.items.length}));if(n.length){var i=n[0].items[0];e.setHovered(i)}else e.setHovered(null)}))},keydown:function(t){var e=t.key;if("Enter"===e&&t.preventDefault(),"Escape"!==e&&"Tab"!==e||(this.isActive=!1),this.confirmKeys.indexOf(e)>=0){","===e&&t.preventDefault();var n=!this.keepOpen||"Tab"===e;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(t,null,n);this.setSelected(this.hovered,n,t)}},selectHeaderOrFoterByClick:function(t,e){this.checkIfHeaderOrFooterSelected(t,{origin:e})},checkIfHeaderOrFooterSelected:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.selectableHeader&&(this.headerHovered||e&&"header"===e.origin)&&(this.$emit("select-header",t),this.headerHovered=!1,e&&this.setHovered(null),n&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||e&&"footer"===e.origin)&&(this.$emit("select-footer",t),this.footerHovered=!1,e&&this.setHovered(null),n&&(this.isActive=!1))},clickedOutside:function(t){var e=Q(this)?t.composedPath()[0]:t.target;!this.hasFocus&&this.whiteList.indexOf(e)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue:function(t){if(null!==t)return"undefined"!==typeof this.customFormatter?this.customFormatter(t):"object"===i(t)?$(t,this.field):t},checkIfReachedTheEndOfScroll:function(t){t.clientHeight!==t.scrollHeight&&t.scrollTop+t.clientHeight>=t.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick((function(){if(void 0!==t.$refs.dropdown){var e=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=e.top>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight),t.appendToBody&&t.updateAppendToBody()}}))},keyArrows:function(t){var e="down"===t?1:-1;if(this.isActive){var n,i=this.computedData.map((function(t){return t.items})).reduce((function(t,e){return[].concat(x(t),x(e))}),[]);this.hasHeaderSlot&&this.selectableHeader&&i.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&i.push(void 0),n=this.headerHovered?0+e:this.footerHovered?i.length-1+e:i.indexOf(this.hovered)+e,n=n>i.length-1?i.length-1:n,n=n<0?0:n,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==i[n]?i[n]:null),this.hasFooterSlot&&this.selectableFooter&&n===i.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===n&&(this.headerHovered=!0);var r=this.$refs.dropdown.querySelector(".dropdown-content"),a="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(a+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(a+=",div.dropdown-footer");var o=r.querySelectorAll(a)[n];if(!o)return;var s=r.scrollTop,c=r.scrollTop+r.clientHeight-o.clientHeight;o.offsetTop<s?r.scrollTop=o.offsetTop:o.offsetTop>=c&&(r.scrollTop=o.offsetTop-r.clientHeight+o.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(){var t=this.getValue(this.selected);t&&t===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(t){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",t)},checkValidity:function(){var t=this;this.useHtml5Validation&&this.$nextTick((function(){t.checkHtml5Validity()}))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.input.$el;if(t&&e){var n=this.$data._bodyEl;n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("autocomplete"),n.classList.add("control"),this.expandend&&n.classList.add("is-expandend");var i=e.getBoundingClientRect(),r=i.top+window.scrollY,a=i.left+window.scrollX;this.isOpenedTop?r-=t.clientHeight:r+=e.clientHeight,this.style={position:"absolute",top:"".concat(r,"px"),left:"".concat(a,"px"),width:"".concat(e.clientWidth,"px"),maxWidth:"".concat(e.clientWidth,"px"),zIndex:"99"}}}},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var t=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var e=this.$refs.dropdown.querySelector(".dropdown-content");e.addEventListener("scroll",(function(){return t.checkIfReachedTheEndOfScroll(e)}))}this.appendToBody&&(this.$data._bodyEl=V(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){if("undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var t=this.$refs.dropdown.querySelector(".dropdown-content");t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&H(this.$data._bodyEl)}};const It=Rt;var Nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[n("b-input",t._b({ref:"input",attrs:{type:t.type,size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":t.ariaAutocomplete},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick,"icon-click":function(e){return t.$emit("icon-click",e)}},nativeOn:{keydown:[function(e){return t.keydown(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.keyArrows("up"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.keyArrows("down"))}]},model:{value:t.newValue,callback:function(e){t.newValue=e},expression:"newValue"}},"b-input",t.$attrs,!1)),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&(!t.isEmpty||t.hasEmptySlot||t.hasHeaderSlot),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?n("div",{staticClass:"dropdown-item dropdown-header",class:{"is-hovered":t.headerHovered},attrs:{role:"button",tabindex:"0"},on:{click:function(e){return t.selectHeaderOrFoterByClick(e,"header")}}},[t._t("header")],2):t._e(),t._l(t.computedData,(function(e,i){return[e.group?n("div",{key:i+"group",staticClass:"dropdown-item"},[t.hasGroupSlot?t._t("group",null,{group:e.group,index:i}):n("span",{staticClass:"has-text-weight-bold"},[t._v(" "+t._s(e.group)+" ")])],2):t._e(),t._l(e.items,(function(e,r){return n("a",{key:i+":"+r,staticClass:"dropdown-item",class:{"is-hovered":e===t.hovered},attrs:{role:"button",tabindex:"0"},on:{click:function(n){return n.stopPropagation(),t.setSelected(e,!t.keepOpen,n)}}},[t.hasDefaultSlot?t._t("default",null,{option:e,index:r}):n("span",[t._v(" "+t._s(t.getValue(e,!0))+" ")])],2)}))]})),t.isEmpty&&t.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t.hasFooterSlot?n("div",{staticClass:"dropdown-item dropdown-footer",class:{"is-hovered":t.footerHovered},attrs:{role:"button",tabindex:"0"},on:{click:function(e){return t.selectHeaderOrFoterByClick(e,"footer")}}},[t._t("footer")],2):t._e()],2)])])],1)},$t=[];const Lt=void 0,Ft=void 0,Bt=void 0,jt=!1;var zt=st({render:Nt,staticRenderFns:$t},Lt,It,Ft,jt,Bt,void 0,void 0),Ht={install:function(t){lt(t,zt)}};ct(Ht);const Vt=Ht;var Gt={name:"BBreadcrumb",props:{align:{type:String,default:function(){return it.defaultBreadcrumbAlign}},separator:{type:String,default:function(){return it.defaultBreadcrumbSeparator}},size:{type:String,default:function(){return it.defaultBreadcrumbSize}}},computed:{breadcrumbClasses:function(){return["breadcrumb",this.align,this.separator,this.size]}}};const Wt=Gt;var Ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{class:t.breadcrumbClasses},[n("ul",[t._t("default")],2)])},Yt=[];const qt=void 0,Xt=void 0,Kt=void 0,Jt=!1;var Zt=st({render:Ut,staticRenderFns:Yt},qt,Wt,Xt,Jt,Kt,void 0,void 0),Qt={name:"BBreadcrumbItem",inheritAttrs:!1,props:{tag:{type:String,default:function(){return it.defaultBreadcrumbTag}},active:Boolean}};const te=Qt;var ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:{"is-active":t.active}},[n(t.tag,t._g(t._b({tag:"component"},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)],1)},ne=[];const ie=void 0,re=void 0,ae=void 0,oe=!1;var se=st({render:ee,staticRenderFns:ne},ie,te,re,oe,ae,void 0,void 0),ce={install:function(t){lt(t,Zt),lt(t,se)}};ct(ce);const le=ce;var ue={name:"BButton",components:s({},St.name,St),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return it.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0}},tag:{type:String,default:"button",validator:function(t){return it.defaultLinkTags.indexOf(t)>=0}}},computed:{computedTag:function(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize:function(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}};const he=ue;var de=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.computedTag,t._g(t._b({tag:"component",staticClass:"button",class:[t.size,t.type,{"is-rounded":t.rounded,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected}],attrs:{type:"button"===t.computedTag?t.nativeType:void 0}},"component",t.$attrs,!1),t.$listeners),[t.iconLeft?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconLeft,size:t.iconSize}}):t._e(),t.label?n("span",[t._v(t._s(t.label))]):t.$slots.default?n("span",[t._t("default")],2):t._e(),t.iconRight?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconRight,size:t.iconSize}}):t._e()],1)},fe=[];const pe=void 0,ve=void 0,me=void 0,ge=!1;var ye=st({render:de,staticRenderFns:fe},pe,he,ve,ge,me,void 0,void 0),be={install:function(t){lt(t,ye)}};ct(be);const _e=be;var we=1,ke=3,Se=ke,xe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return s({},"b"+t,this)}};return R(e,we)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(t){this.childItems.push(t)},_unregisterItem:function(t){this.childItems=this.childItems.filter((function(e){return e!==t}))}},R(e,ke)&&(n.watch={childItems:function(t){if(t.length>0&&this.$scopedSlots.default){var e=t[0].$vnode.tag,n=0,i=function i(r){var a=!0,o=!1,s=void 0;try{for(var c,l=function(){var r=c.value;if(r.tag===e){var a=t.find((function(t){return t.$vnode===r}));a&&(a.index=n++)}else if(r.tag){var o=r.componentInstance?r.componentInstance.$scopedSlots.default?r.componentInstance.$scopedSlots.default():r.componentInstance.$children:r.children;Array.isArray(o)&&o.length>0&&i(o.map((function(t){return t.$vnode})))}},u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0)l()}catch(h){o=!0,s=h}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}return!1};i(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort((function(t,e){return t.index-e.index}))}})),n},Ce=1,De=2,Te=Ce,Oe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={inject:{parent:{from:"b"+t,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!R(e,De))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+t)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return R(e,Ce)&&(n.data=function(){return{index:null}}),n},Ee={name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:function(){return it.defaultImageWebpFallback}},lazy:{type:Boolean,default:function(){return it.defaultImageLazy}},responsive:{type:Boolean,default:function(){return it.defaultImageResponsive}},ratio:{type:String,default:function(){return it.defaultImageRatio}},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:function(t,e,n){return"function"===typeof it.defaultImageSrcsetFormatter?it.defaultImageSrcsetFormatter(t,e):n.formatSrcset(t,e)}},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},data:function(){return{clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,bulmaKnownRatio:["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"],loaded:!1,failed:!1}},computed:{ratioPattern:function(){return new RegExp(/([0-9]+)by([0-9]+)/)},hasRatio:function(){return this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses:function(){var t={image:this.responsive};return this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)>=0&&(t["is-".concat(this.ratio)]=!0),t},figureStyles:function(){if(this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)<0){var t=this.ratioPattern.exec(this.ratio);return{paddingTop:"".concat(t[2]/t[1]*100,"%")}}},imgClasses:function(){return s({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass,!!this.customClass)},srcExt:function(){return this.getExt(this.src)},isWepb:function(){return"webp"===this.srcExt},computedSrc:function(){var t=this.src;return this.failed&&this.srcFallback&&(t=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?t.replace(/\.webp/gi,"".concat(this.webpFallback)):this.webpFallback:t},computedWidth:function(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy:function(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed:function(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt:function(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb:function(){if(this.placeholder)return"webp"===this.placeholderExt},computedPlaceholder:function(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,"".concat(this.webpFallback)):this.placeholder},isPlaceholderDisplayed:function(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset:function(){var t=this;return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,"".concat(this.webpFallback)):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((function(e){return"".concat(t.srcsetFormatter(t.computedSrc,e,t)," ").concat(e,"w")})).join(","):void 0},computedSizes:function(){if(this.computedSrcset&&this.computedWidth)return"".concat(this.computedWidth,"px")},isCaptionFirst:function(){return this.$slots.caption&&this.captionFirst},isCaptionLast:function(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t){var n=e?t.split("?")[0]:t;return n.split(".").pop()}return""},setWidth:function(){this.clientWidth=this.$el.clientWidth},formatSrcset:function(t,e){var n=this.getExt(t,!1),i=t.split(".").slice(0,-1).join(".");return"".concat(i,"-").concat(e,".").concat(n)},onLoad:function(t){this.loaded=!0,this.emit("load",t)},onError:function(t){this.emit("error",t),this.failed||(this.failed=!0)},emit:function(t,e){var n=e.target;this.$emit(t,e,n.currentSrc||n.src||this.computedSrc)}},created:function(){var t=this;if(this.isWepb&&Z().then((function(e){t.webpSupportVerified=!0,t.webpSupported=e})),this.lazy){var e="undefined"!==typeof window&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,n="undefined"!==typeof window&&"IntersectionObserver"in window;!e&&n?this.observer=new IntersectionObserver((function(e){var n=e[0],i=n.target,r=n.isIntersecting;r&&!t.inViewPort&&(t.inViewPort=!0,t.observer.unobserve(i))})):this.useNativeLazy=!0}},mounted:function(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!==typeof window&&window.addEventListener("resize",this.setWidth)},beforeDestroy:function(){this.observer&&this.observer.disconnect(),"undefined"!==typeof window&&window.removeEventListener("resize",this.setWidth)}};const Ae=Ee;var Pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("figure",{staticClass:"b-image-wrapper",class:t.figureClasses,style:t.figureStyles},[t.isCaptionFirst?n("figcaption",[t._t("caption")],2):t._e(),n("transition",{attrs:{name:"fade"}},[t.isDisplayed?n("img",{class:t.imgClasses,attrs:{srcset:t.computedSrcset,src:t.computedSrc,alt:t.alt,width:t.computedWidth,sizes:t.computedSizes,loading:t.computedNativeLazy},on:{load:t.onLoad,error:t.onError}}):t._e()]),n("transition",{attrs:{name:"fade"}},[t.isPlaceholderDisplayed?t._t("placeholder",[n("img",{staticClass:"placeholder",class:t.imgClasses,attrs:{src:t.computedPlaceholder,alt:t.alt}})]):t._e()],2),t.isCaptionLast?n("figcaption",[t._t("caption")],2):t._e()],1)},Me=[];const Re=void 0,Ie=void 0,Ne=void 0,$e=!1;var Le=st({render:Pe,staticRenderFns:Me},Re,Ae,Ie,$e,Ne,void 0,void 0),Fe={name:"BCarousel",components:s({},St.name,St),mixins:[xe("carousel",Se)],props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{transition:"next",activeChild:this.value||0,isPause:!1,dragX:!1,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev:function(){return this.repeat||0!==this.activeChild},hasNext:function(){return this.repeat||this.activeChild<this.childItems.length-1}},watch:{value:function(t){this.changeActive(t)},sortedItems:function(t){this.activeChild>=t.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},repeat:function(t){t&&this.startTimer()}},methods:{startTimer:function(){var t=this;this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((function(){!t.repeat&&t.activeChild>=t.childItems.length-1?t.pauseTimer():t.next()}),this.interval||it.defaultCarouselInterval))},pauseTimer:function(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=null)},restartTimer:function(){this.pauseTimer(),this.startTimer()},checkPause:function(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.activeChild===t||isNaN(t)||(e=e||t-this.activeChild,t=this.repeat?I(t,this.childItems.length):N(t,0,this.childItems.length-1),this.transition=e>0?"prev":"next",this.activeChild=t,t!==this.value&&this.$emit("input",t),this.restartTimer(),this.$emit("change",t))},modeChange:function(t,e){if(this.indicatorMode===t)return this.changeActive(e)},prev:function(){this.changeActive(this.activeChild-1,-1)},next:function(){this.changeActive(this.activeChild+1,1)},dragStart:function(t){this.hasDrag&&t.target.draggable&&(this.dragX=t.touches?t.changedTouches[0].pageX:t.pageX,t.touches?this.pauseTimer():t.preventDefault())},dragEnd:function(t){if(!1!==this.dragX){var e=t.touches?t.changedTouches[0].pageX:t.pageX,n=e-this.dragX;Math.abs(n)>30?n<0?this.next():this.prev():(t.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t.touches&&this.startTimer(),this.dragX=!1}}},mounted:function(){this.startTimer()},beforeDestroy:function(){this.pauseTimer()}};const Be=Fe;var je=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel",class:{"is-overlay":t.overlay},on:{mouseenter:t.checkPause,mouseleave:t.startTimer}},[t.progress?n("progress",{staticClass:"progress",class:t.progressType,attrs:{max:t.childItems.length-1},domProps:{value:t.activeChild}},[t._v(" "+t._s(t.childItems.length-1)+" ")]):t._e(),n("div",{staticClass:"carousel-items",on:{mousedown:t.dragStart,mouseup:t.dragEnd,touchstart:function(e){return e.stopPropagation(),t.dragStart(e)},touchend:function(e){return e.stopPropagation(),t.dragEnd(e)}}},[t._t("default"),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.prev(e)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.next(e)}}})],1):t._e()],2),t.autoplay&&t.pauseHover&&t.pauseInfo&&t.isPause?n("div",{staticClass:"carousel-pause"},[n("span",{staticClass:"tag",class:t.pauseInfoType},[t._v(" "+t._s(t.pauseText)+" ")])]):t._e(),t.withCarouselList&&!t.indicator?[t._t("list",null,{active:t.activeChild,switch:t.changeActive})]:t._e(),t.indicator?n("div",{staticClass:"carousel-indicator",class:t.indicatorClasses},t._l(t.sortedItems,(function(e,i){return n("a",{key:e._uid,staticClass:"indicator-item",class:{"is-active":e.isActive},on:{mouseover:function(e){return t.modeChange("hover",i)},click:function(e){return t.modeChange("click",i)}}},[t._t("indicators",[n("span",{staticClass:"indicator-style",class:t.indicatorStyle})],{i})],2)})),0):t._e(),t.overlay?[t._t("overlay")]:t._e()],2)},ze=[];const He=void 0,Ve=void 0,Ge=void 0,We=!1;var Ue=st({render:je,staticRenderFns:ze},He,Be,Ve,We,Ge,void 0,void 0),Ye={name:"BCarouselItem",mixins:[Oe("carousel",Te)],data:function(){return{transitionName:null}},computed:{transition:function(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive:function(){return this.parent.activeChild===this.index}}};const qe=Ye;var Xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"carousel-item"},[t._t("default")],2)])},Ke=[];const Je=void 0,Ze=void 0,Qe=void 0,tn=!1;var en,nn=st({render:Xe,staticRenderFns:Ke},Je,qe,Ze,tn,Qe,void 0,void 0),rn={name:"BCarouselList",components:(en={},s(en,St.name,St),s(en,Le.name,Le),en),props:{data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},breakpoints:{type:Object,default:function(){return{}}}},data:function(){return{activeItem:this.value,scrollIndex:this.asIndicator?this.scrollValue:this.value,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging:function(){return!1!==this.dragX},listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},translation:function(){return-N(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total:function(){return this.data.length-this.settings.itemsToShow},hasPrev:function(){return this.settings.repeat||this.scrollIndex>0},hasNext:function(){return this.settings.repeat||this.scrollIndex<this.total},breakpointKeys:function(){return Object.keys(this.breakpoints).sort((function(t,e){return e-t}))},settings:function(){var t=this,e=this.breakpointKeys.filter((function(e){if(t.windowWidth>=e)return!0}))[0];return e?l({},this.$props,{},this.breakpoints[e]):this.$props},itemWidth:function(){if(this.windowWidth){this.refresh_;var t=this.$el.getBoundingClientRect();return t.width/this.settings.itemsToShow}return 0}},watch:{value:function(t){this.switchTo(this.asIndicator?t-(this.itemsToShow-3)/2:t),this.activeItem!==t&&(this.activeItem=N(t,0,this.data.length-1))},scrollValue:function(t){this.switchTo(t)}},methods:{resized:function(){this.windowWidth=window.innerWidth},switchTo:function(t){t===this.scrollIndex||isNaN(t)||(this.settings.repeat&&(t=I(t,this.total+1)),t=N(t,0,this.total),this.scrollIndex=t,this.asIndicator||this.value===t?this.scrollIndex!==t&&this.$emit("updated:scroll",t):this.$emit("input",t))},next:function(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev:function(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator:function(t,e){if(this.asIndicator){var n=e.changedTouches?e.changedTouches[0].clientX:e.clientX;this.hold-Date.now()>2e3||Math.abs(this.dragX-n)>10||(this.dragX=!1,this.hold=0,e.preventDefault(),this.activeItem=t,this.$emit("switch",t))}},dragStart:function(t){this.dragging||!this.settings.hasDrag||0!==t.button&&"touchstart"!==t.type||(this.hold=Date.now(),this.touch=!!t.touches,this.dragX=this.touch?t.touches[0].clientX:t.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){if(this.dragging){var e=t.touches?(t.changedTouches[0]||t.touches[0]).clientX:t.clientX;this.delta=this.dragX-e,t.touches||t.preventDefault()}},dragEnd:function(){if(this.dragging||this.hold){if(this.hold){var t=M(this.delta),e=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+t*e)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh:function(){var t=this;this.$nextTick((function(){t.refresh_++}))}},mounted:function(){if("undefined"!==typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeDestroy:function(){"undefined"!==typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}};const an=rn;var on=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel-list",class:{"has-shadow":t.scrollIndex>0},on:{mousedown:function(e){return e.preventDefault(),t.dragStart(e)},touchstart:t.dragStart}},[n("div",{staticClass:"carousel-slides",class:t.listClass,style:"transform:translateX("+t.translation+"px)"},t._l(t.data,(function(e,i){return n("div",{key:i,staticClass:"carousel-slide",class:{"is-active":t.asIndicator?t.activeItem===i:t.scrollIndex===i},style:t.itemStyle,on:{mouseup:function(e){return t.checkAsIndicator(i,e)},touchend:function(e){return t.checkAsIndicator(i,e)}}},[t._t("item",[n("b-image",t._b({attrs:{src:e.image}},"b-image",e,!1))],{index:i,active:t.activeItem,scroll:t.scrollIndex,list:e},e)],2)})),0),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.settings.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.settings.iconPack,icon:t.settings.iconPrev,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.settings.iconPack,icon:t.settings.iconNext,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}})],1):t._e()])},sn=[];const cn=void 0,ln=void 0,un=void 0,hn=!1;var dn=st({render:on,staticRenderFns:sn},cn,an,ln,hn,un,void 0,void 0),fn={install:function(t){lt(t,Ue),lt(t,nn),lt(t,dn)}};ct(fn);const pn=fn;var vn={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}},mn={name:"BCheckbox",mixins:[vn],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"}}};const gn=mn;var yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.$refs.label.click())}]}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",autocomplete:t.autocomplete,disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue,"aria-labelledby":t.ariaLabelledby},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var a=t.nativeValue,o=t._i(n,a);i.checked?o<0&&(t.computedValue=n.concat([a])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}}),n("span",{staticClass:"check",class:t.type}),n("span",{staticClass:"control-label",attrs:{id:t.ariaLabelledby}},[t._t("default")],2)])},bn=[];const _n=void 0,wn=void 0,kn=void 0,Sn=!1;var xn=st({render:yn,staticRenderFns:bn},_n,gn,wn,Sn,kn,void 0,void 0),Cn={name:"BCheckboxButton",mixins:[vn],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}};const Dn=Cn;var Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[t.checked?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[t._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t.computedValue},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){var n=t.computedValue,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=t.nativeValue,o=t._i(n,a);i.checked?o<0&&(t.computedValue=n.concat([a])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}})],2)])},On=[];const En=void 0,An=void 0,Pn=void 0,Mn=!1;var Rn=st({render:Tn,staticRenderFns:On},En,Dn,An,Mn,Pn,void 0,void 0),In={install:function(t){lt(t,xn),lt(t,Rn)}};ct(In);const Nn=In;var $n={name:"BCollapse",model:{prop:"open",event:"update:open"},props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom"].indexOf(t)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(t){this.isOpen=t}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(t){var e=t("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),n=t("transition",{props:{name:this.animation}},[t("div",{staticClass:"collapse-content",attrs:{id:this.ariaId},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return t("div",{staticClass:"collapse"},"is-top"===this.position?[e,n]:[n,e])}};const Ln=$n,Fn=void 0,Bn=void 0,jn=void 0,zn=void 0;var Hn=st({},Fn,Ln,Bn,zn,jn,void 0,void 0),Vn={install:function(t){lt(t,Hn)}};ct(Vn);const Gn=Vn;var Wn,Un="AM",Yn="PM",qn="24",Xn="12",Kn=function(t,e){return e.dtf.format(t)},Jn=function(t,e){if(t){var n=null;if(e.computedValue&&!isNaN(e.computedValue)?n=new Date(e.computedValue):(n=e.timeCreator(),n.setMilliseconds(0)),e.dtf.formatToParts&&"function"===typeof e.dtf.formatToParts){var i=e.dtf.formatToParts(n).map((function(t){return"literal"===t.type?t.value.replace(/ /g,"\\s?"):"dayPeriod"===t.type?"((?!=<".concat(t.type,">)(").concat(e.amString,"|").concat(e.pmString,"|").concat(Un,"|").concat(Yn,"|").concat(Un.toLowerCase(),"|").concat(Yn.toLowerCase(),")?)"):"((?!=<".concat(t.type,">)\\d+)")})).join(""),r=J(i,t);if(r.hour=r.hour?parseInt(r.hour,10):null,r.minute=r.minute?parseInt(r.minute,10):null,r.second=r.second?parseInt(r.second,10):null,r.hour&&r.hour>=0&&r.hour<24&&r.minute&&r.minute>=0&&r.minute<59)return r.dayPeriod&&(r.dayPeriod.toLowerCase()===e.pmString.toLowerCase()||r.dayPeriod.toLowerCase()===Yn.toLowerCase())&&r.hour<12&&(r.hour+=12),n.setHours(r.hour),n.setMinutes(r.minute),n.setSeconds(r.second||0),n}var a=!1;if(e.hourFormat===Xn){var o=t.split(" ");t=o[0],a=o[1]===e.amString||o[1]===Un}var s=t.split(":"),c=parseInt(s[0],10),l=parseInt(s[1],10),u=e.enableSeconds?parseInt(s[2],10):0;return isNaN(c)||c<0||c>23||e.hourFormat===Xn&&(c<1||c>12)||isNaN(l)||l<0||l>59?null:(n.setSeconds(u),n.setMinutes(l),e.hourFormat===Xn&&(a&&12===c?c=0:a||12===c||(c+=12)),n.setHours(c),new Date(n.getTime()))}return null},Zn={mixins:[ht],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(t){return t===qn||t===Xn}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(t,e){return"function"===typeof it.defaultTimeFormatter?it.defaultTimeFormatter(t):Kn(t,e)}},timeParser:{type:Function,default:function(t,e){return"function"===typeof it.defaultTimeParser?it.defaultTimeParser(t):Jn(t,e)}},mobileNative:{type:Boolean,default:function(){return it.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"===typeof it.defaultTimeCreator?it.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:Un,PM:Yn,HOUR_FORMAT_24:qn,HOUR_FORMAT_12:Xn}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){this.dateSelected=t,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?Xn:qn)},sampleTime:function(){var t=this.timeCreator();return t.setHours(10),t.setSeconds(0),t.setMinutes(0),t.setMilliseconds(0),t},hourLiteral:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"hour"===e[n-1].type}));if(n)return n.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"minute"===e[n-1].type}));if(n)return n.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime,e=this.dtf.formatToParts(t),n=e.find((function(t,n){return n>0&&"second"===e[n-1].type}));if(n)return n.value}},amString:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime;t.setHours(10);var e=this.dtf.formatToParts(t).find((function(t){return"dayPeriod"===t.type}));if(e)return e.value}return Un},pmString:function(){if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var t=this.sampleTime;t.setHours(20);var e=this.dtf.formatToParts(t).find((function(t){return"dayPeriod"===t.type}));if(e)return e.value}return Yn},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var t=[],e=this.isHourFormat24?24:12,n=0;n<e;n+=this.incrementHours){var i=n,r=i;this.isHourFormat24||(i=n+1,r=i,this.meridienSelected===this.amString?12===i&&(i=0):this.meridienSelected===this.pmString&&12!==i&&(i+=12)),t.push({label:this.formatNumber(r),value:i})}return t},minutes:function(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");for(var t=[],e=0;e<60;e+=this.incrementMinutes)t.push({label:this.formatNumber(e,!0),value:e});return t},seconds:function(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");for(var t=[],e=0;e<60;e+=this.incrementSeconds)t.push({label:this.formatNumber(e,!0),value:e});return t},meridiens:function(){return[this.amString,this.pmString]},isMobile:function(){return this.mobileNative&&z.any()},isHourFormat24:function(){return this.newHourFormat===qn}},watch:{hourFormat:function(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale:function(){this.value||(this.meridienSelected=this.amString)},value:{handler:function(t){this.updateInternalState(t),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(t){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(t===this.pmString?this.hoursSelected+=12:t===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,t)},onHoursChange:function(t){this.minutesSelected||"undefined"===typeof this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||"undefined"===typeof this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(t,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(t){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(t,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(t){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(t,10),this.meridienSelected)},updateDateSelected:function(t,e,n,i){if(null!=t&&null!=e&&(!this.isHourFormat24&&null!==i||this.isHourFormat24)){var r=null;this.computedValue&&!isNaN(this.computedValue)?r=new Date(this.computedValue):(r=this.timeCreator(),r.setMilliseconds(0)),r.setHours(t),r.setMinutes(e),r.setSeconds(n),isNaN(r.getTime())||(this.computedValue=new Date(r.getTime()))}},updateInternalState:function(t){t?(this.hoursSelected=t.getHours(),this.minutesSelected=t.getMinutes(),this.secondsSelected=t.getSeconds(),this.meridienSelected=t.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=t},isHourDisabled:function(t){var e=this,n=!1;if(this.minTime){var i=this.minTime.getHours(),r=this.minutes.every((function(n){return e.isMinuteDisabledForHour(t,n.value)}));n=t<i||r}if(this.maxTime&&!n){var a=this.maxTime.getHours();n=t>a}if(this.unselectableTimes&&!n){var o=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===t&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===e.secondsSelected:null!==e.minutesSelected&&(n.getHours()===t&&n.getMinutes()===e.minutesSelected)}));n=o.length>0||this.minutes.every((function(n){return e.unselectableTimes.filter((function(e){return e.getHours()===t&&e.getMinutes()===n.value})).length>0}))}return n},isMinuteDisabledForHour:function(t,e){var n=!1;if(this.minTime){var i=this.minTime.getHours(),r=this.minTime.getMinutes();n=t===i&&e<r}if(this.maxTime&&!n){var a=this.maxTime.getHours(),o=this.maxTime.getMinutes();n=t===a&&e>o}return n},isMinuteDisabled:function(t){var e=this,n=!1;if(null!==this.hoursSelected&&(n=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,t),this.unselectableTimes&&!n)){var i=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===e.hoursSelected&&n.getMinutes()===t&&n.getSeconds()===e.secondsSelected:n.getHours()===e.hoursSelected&&n.getMinutes()===t}));n=i.length>0}return n},isSecondDisabled:function(t){var e=this,n=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))n=!0;else{if(this.minTime){var i=this.minTime.getHours(),r=this.minTime.getMinutes(),a=this.minTime.getSeconds();n=this.hoursSelected===i&&this.minutesSelected===r&&t<a}if(this.maxTime&&!n){var o=this.maxTime.getHours(),s=this.maxTime.getMinutes(),c=this.maxTime.getSeconds();n=this.hoursSelected===o&&this.minutesSelected===s&&t>c}}if(this.unselectableTimes&&!n){var l=this.unselectableTimes.filter((function(n){return n.getHours()===e.hoursSelected&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===t}));n=l.length>0}}return n},onChange:function(t){var e=this.timeParser(t,this);this.updateInternalState(e),e&&!isNaN(e)?this.computedValue=e:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(t){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"===typeof t?t:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return this.formatNumber(n,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(r,!0)}return""},onChangeNativePicker:function(t){var e=t.target.value;if(e){var n=null;this.computedValue&&!isNaN(this.computedValue)?n=new Date(this.computedValue):(n=new Date,n.setMilliseconds(0));var i=e.split(":");n.setHours(parseInt(i[0],10)),n.setMinutes(parseInt(i[1],10)),n.setSeconds(i[2]?parseInt(i[2],10):0),this.computedValue=new Date(n.getTime())}else this.computedValue=null},formatNumber:function(t,e){return this.isHourFormat24||e?this.pad(t):t},pad:function(t){return(t<10?"0":"")+t},formatValue:function(t){return t&&!isNaN(t)?this.timeFormatter(t,this):null},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.toggle(!1)},onActiveChange:function(t){t||this.onBlur()}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}},Qn=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?t.querySelectorAll('*[tabindex="-1"]'):t.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},ti=function(t,e){var n=e.value,i=void 0===n||n;if(i){var r=Qn(t),a=Qn(t,!0);r&&r.length>0&&(Wn=function(e){r=Qn(t),a=Qn(t,!0);var n=r[0],i=r[r.length-1];e.target===n&&e.shiftKey&&"Tab"===e.key?(e.preventDefault(),i.focus()):(e.target===i||Array.from(a).indexOf(e.target)>=0)&&!e.shiftKey&&"Tab"===e.key&&(e.preventDefault(),n.focus())},t.addEventListener("keydown",Wn))}},ei=function(t){t.removeEventListener("keydown",Wn)},ni={bind:ti,unbind:ei},ii=["escape","outside"],ri={name:"BDropdown",directives:{trapFocus:ni},mixins:[xe("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return it.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(t){return["menu","list","dialog"].indexOf(t)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"===typeof this.canClose?this.canClose?ii:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?q(this.maxHeight):null,overflow:this.scrollable?"auto":null}},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(t){this.selected=t},isActive:function(t){var e=this;this.$emit("active-change",t),this.handleScroll(),this.appendToBody&&this.$nextTick((function(){e.updateAppendToBody()}))},isHoverable:function(t){this.hoverable&&this.$emit("active-change",t)}},methods:{handleScroll:function(){"undefined"!==typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem:function(t){this.multiple?(this.selected?-1===this.selected.indexOf(t)?this.selected=[].concat(x(this.selected),[t]):this.selected=this.selected.filter((function(e){return e!==t})):this.selected=[t],this.$emit("change",this.selected)):this.selected!==t&&(this.selected=t,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu)return!0;if(t===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var e=this.$refs.dropdownMenu.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(t===s)return!0}}catch(v){i=!0,r=v}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}if(void 0!==this.$refs.trigger){var c=this.$refs.trigger.querySelectorAll("*"),l=!0,u=!1,h=void 0;try{for(var d,f=c[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;if(t===p)return!0}}catch(v){u=!0,h=v}finally{try{l||null==f.return||f.return()}finally{if(u)throw h}}}return!1},clickedOutside:function(t){if(!(this.cancelOptions.indexOf("outside")<0)&&!this.inline){var e=Q(this)?t.composedPath()[0]:t.target;this.isInWhiteList(e)||(this.isActive=!1)}},keyPress:function(t){var e=t.key;if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){this.triggers.indexOf("click")<0||this.toggle()},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||(this.isHoverable=!0)},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var e=!t.isActive;t.isActive=e,setTimeout((function(){return t.isActive=e}))})))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.dropdownMenu,n=this.$refs.trigger;if(e&&n){var r=this.$data._bodyEl.children[0];if(r.classList.forEach((function(t){return r.classList.remove(t)})),r.classList.add("dropdown"),r.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&r.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if(t&&"object"===i(t))for(var e in t)t[e]&&r.classList.add(e)})),this.appendToBodyCopyParent){var a=this.$refs.dropdown.parentNode,o=this.$data._bodyEl;o.classList.forEach((function(t){return o.classList.remove(t)})),a.classList.forEach((function(t){o.classList.add(t)}))}var s=n.getBoundingClientRect(),c=s.top+window.scrollY,l=s.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?c+=n.clientHeight:c-=e.clientHeight,this.position&&this.position.indexOf("left")>=0&&(l-=e.clientWidth-n.clientWidth),this.style={position:"absolute",top:"".concat(c,"px"),left:"".concat(l,"px"),zIndex:"99",width:this.expanded?"".concat(t.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=V(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&H(this.$data._bodyEl)}};const ai=ri;var oi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:t.rootClasses,on:{mouseleave:function(e){t.isHoverable=!1}}},[t.inline?t._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{tabindex:!t.disabled&&0,"aria-haspopup":"true"},on:{click:t.onClick,contextmenu:function(e){return e.preventDefault(),t.onContextMenu(e)},mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)}}},[t._t("trigger",null,{active:t.isActive})],2),n("transition",{attrs:{name:t.animation}},[t.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!t.isActive}}):t._e()]),n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&(t.isActive||t.isHoverable)||t.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:t.style,attrs:{"aria-hidden":!t.isActive}},[n("div",{staticClass:"dropdown-content",style:t.contentStyle,attrs:{role:t.ariaRole,"aria-modal":!t.inline}},[t._t("default")],2)])])],1)},si=[];const ci=void 0,li=void 0,ui=void 0,hi=!1;var di=st({render:oi,staticRenderFns:si},ci,ai,li,hi,ui,void 0,void 0),fi={name:"BDropdownItem",mixins:[Oe("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!this.parent.disabled&&!this.separator&&!this.disabled&&!this.custom},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}};const pi=fi;var vi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.separator?n("hr",{staticClass:"dropdown-divider"}):t.custom||t.hasLink?n("div",{class:t.itemClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2):n("a",{staticClass:"dropdown-item",class:t.anchorClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2)},mi=[];const gi=void 0,yi=void 0,bi=void 0,_i=!1;var wi=st({render:vi,staticRenderFns:mi},gi,pi,yi,_i,bi,void 0,void 0),ki={name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(t){var e=this,n=!0;return t("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(i){return i.tag?(n&&(r=e.message,n=!1),t("b-field",{attrs:{type:e.type,message:r}},[i])):i;var r})))}};const Si=ki,xi=void 0,Ci=void 0,Di=void 0,Ti=void 0;var Oi=st({},xi,Si,Ci,Ti,Di,void 0,void 0),Ei={name:"BField",components:s({},Oi.name,Oi),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return it.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(void 0!==this.position){var t=this.position.split("-");if(!(t.length<1)){var e=this.grouped?"is-grouped-":"has-addons-";return this.position?e+t[1]:void 0}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if("string"===typeof this.newMessage)return[this.newMessage];var t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(e){if("string"===typeof e)t.push(e);else for(var n in e)e[n]&&t.push(n)}));else for(var e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((function(t){if(t)return t}))},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var t=this.$slots.default.filter((function(t){return t.tag&&t.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(t){var e=["has-numberinput"],n=t.componentOptions.propsData.controlsPosition,i=t.componentOptions.propsData.size;return n&&e.push("has-numberinput-".concat(n)),i&&e.push("has-numberinput-".concat(i)),e}}return null}},watch:{type:function(t){this.newType=t},message:function(t){this.newMessage=t},newMessage:function(t){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.message||(this.parent.newMessage=t))}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var t=0;return this.$slots.default&&(t=this.$slots.default.reduce((function(t,e){return e.tag?t+1:t}),0)),t>1&&this.addons&&!this.horizontal}},mounted:function(){if(this.horizontal){var t=this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider");t.length>0&&(this.fieldLabelSize="is-normal")}}};const Ai=Ei;var Pi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:t.rootClasses},[t.horizontal?n("div",{staticClass:"field-label",class:[t.customClass,t.fieldLabelSize]},[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()]):[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()],t.horizontal?n("b-field-body",{attrs:{message:t.newMessage?t.formattedMessage:"",type:t.newType}},[t._t("default")],2):t.hasInnerField?n("div",{staticClass:"field-body"},[n("b-field",{class:t.innerFieldClasses,attrs:{addons:!1,type:t.newType}},[t._t("default")],2)],1):[t._t("default")],t.hasMessage&&!t.horizontal?n("p",{staticClass:"help",class:t.newType},[t.$slots.message?t._t("message",null,{messages:t.formattedMessage}):[t._l(t.formattedMessage,(function(e,i){return[t._v(" "+t._s(e)+" "),i+1<t.formattedMessage.length?n("br",{key:i}):t._e()]}))]],2):t._e()],2)},Mi=[];const Ri=void 0,Ii=void 0,Ni=void 0,$i=!1;var Li=st({render:Pi,staticRenderFns:Mi},Ri,Ai,Ii,$i,Ni,void 0,void 0),Fi=40,Bi=5,ji={name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},data:function(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count:function(){return this.max-this.min+1},countPerRing:function(){return this.double?this.count/2:this.count},radius:function(){return this.pickerSize/2},outerRadius:function(){return this.radius-Bi-Fi/2},innerRadius:function(){return Math.max(.6*this.outerRadius,this.outerRadius-Bi-Fi)},degreesPerUnit:function(){return 360/this.countPerRing},degrees:function(){return this.degreesPerUnit*Math.PI/180},handRotateAngle:function(){var t=this.prevAngle;while(t<0)t+=360;var e=this.calcHandAngle(this.displayedValue),n=this.shortestDistanceDegrees(t,e),i=this.prevAngle+n;return i},handScale:function(){return this.calcHandScale(this.displayedValue)},handStyle:function(){return{transform:"rotate(".concat(this.handRotateAngle,"deg) scaleY(").concat(this.handScale,")"),transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue:function(){return null==this.inputValue?this.min:this.inputValue}},watch:{value:function(t){t!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=t}},methods:{isDisabled:function(t){return this.disabledValues&&this.disabledValues(t)},euclidean:function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},shortestDistanceDegrees:function(t,e){var n=(e-t)%360,i=180-Math.abs(Math.abs(n)-180);return(n+360)%360<180?1*i:-1*i},coordToAngle:function(t,e){var n=2*Math.atan2(e.y-t.y-this.euclidean(t,e),e.x-t.x);return Math.abs(180*n/Math.PI)},getNumberTranslate:function(t){var e=this.getNumberCoords(t),n=e.x,i=e.y;return"translate(".concat(n,"px, ").concat(i,"px)")},getNumberCoords:function(t){var e=this.isInnerRing(t)?this.innerRadius:this.outerRadius;return{x:Math.round(e*Math.sin((t-this.min)*this.degrees)),y:Math.round(-e*Math.cos((t-this.min)*this.degrees))}},getFaceNumberClasses:function(t){return{active:t.value===this.displayedValue,disabled:this.isDisabled(t.value)}},isInnerRing:function(t){return this.double&&t-this.min>=this.countPerRing},calcHandAngle:function(t){var e=this.degreesPerUnit*(t-this.min);return this.isInnerRing(t)&&(e-=360),e},calcHandScale:function(t){return this.isInnerRing(t)?this.innerRadius/this.outerRadius:1},onMouseDown:function(t){t.preventDefault(),this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(t){if(t.preventDefault(),this.isDragging||"click"===t.type){var e=this.$refs.clock.getBoundingClientRect(),n=e.width,i=e.top,r=e.left,a="touches"in t?t.touches[0]:t,o=a.clientX,s=a.clientY,c={x:n/2,y:-n/2},l={x:o-r,y:i-s},u=Math.round(this.coordToAngle(c,l)+360)%360,h=this.double&&this.euclidean(c,l)<(this.outerRadius+this.innerRadius)/2-16,d=Math.round(u/this.degreesPerUnit)+this.min+(h?this.countPerRing:0);u>=360-this.degreesPerUnit/2&&(d=h?this.max:this.min),this.update(d)}},update:function(t){this.inputValue===t||this.isDisabled(t)||(this.prevAngle=this.handRotateAngle,this.inputValue=t,this.$emit("input",t))}}};const zi=ji;var Hi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker-face",on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp,mousemove:t.onDragMove,touchstart:t.onMouseDown,touchend:t.onMouseUp,touchmove:t.onDragMove}},[n("div",{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[n("div",{staticClass:"b-clockpicker-face-hand",style:t.handStyle}),t._l(t.faceNumbers,(function(e,i){return n("span",{key:i,staticClass:"b-clockpicker-face-number",class:t.getFaceNumberClasses(e),style:{transform:t.getNumberTranslate(e.value)}},[n("span",[t._v(t._s(e.label))])])}))],2)])},Vi=[];const Gi=void 0,Wi=void 0,Ui=void 0,Yi=!1;var qi,Xi=st({render:Hi,staticRenderFns:Vi},Gi,zi,Wi,Yi,Ui,void 0,void 0),Ki=12,Ji={name:"BClockpicker",components:(qi={},s(qi,Xi.name,Xi),s(qi,Mt.name,Mt),s(qi,Li.name,Li),s(qi,St.name,St),s(qi,di.name,di),s(qi,wi.name,wi),qi),mixins:[Zn],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return it.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return it.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var t=this.hoursSelected;return this.meridienSelected===this.pmString&&(t-=12),0===t&&(t=12),t},minutesDisplay:function(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.pmString?12:0},maxFaceValue:function(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.amString?23:11:59},faceSize:function(){return this.pickerSize-2*Ki},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(t){this.isSelectingHour?(this.hoursSelected=t,this.onHoursChange(t)):(this.minutesSelected=t,this.onMinutesChange(t))},onClockChange:function(t){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(t){this.meridienSelected!==t&&(this.meridienSelected=t,this.onMeridienChange(t))},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()}}};const Zi=Ji;var Qi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker control",class:[t.size,t.type,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){return t.checkHtml5Validity()}},nativeOn:{click:function(e){return t.onInputClick(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("div",{staticClass:"card",attrs:{disabled:t.disabled,custom:""}},[t.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursDisplay))]),n("span",[t._v(t._s(t.hourLiteral))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesDisplay))])]),t.isHourFormat24?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.amString||t.meridienSelected===t.AM},on:{click:function(e){return t.onMeridienClick(t.amString)}}},[t._v(t._s(t.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.pmString||t.meridienSelected===t.PM},on:{click:function(e){return t.onMeridienClick(t.pmString)}}},[t._v(t._s(t.pmString))])])])]):t._e(),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:t.faceSize+"px",height:t.faceSize+"px"}},[t.inline?t._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursLabel))]),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesLabel))])]),t.isHourFormat24||t.inline?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.amString||t.meridienSelected===t.AM},on:{click:function(e){return t.onMeridienClick(t.amString)}}},[t._v(t._s(t.amString))]),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected===t.pmString||t.meridienSelected===t.PM},on:{click:function(e){return t.onMeridienClick(t.pmString)}}},[t._v(t._s(t.pmString))])]),n("b-clockpicker-face",{attrs:{"picker-size":t.faceSize,min:t.minFaceValue,max:t.maxFaceValue,"face-numbers":t.isSelectingHour?t.hours:t.minutes,"disabled-values":t.faceDisabledValues,double:t.isSelectingHour&&t.isHourFormat24,value:t.isSelectingHour?t.hoursSelected:t.minutesSelected},on:{input:t.onClockInput,change:t.onClockChange}})],1)]),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[t._t("default")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle(!0)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},tr=[];const er=void 0,nr=void 0,ir=void 0,rr=!1;var ar=st({render:Qi,staticRenderFns:tr},er,Zi,nr,rr,ir,void 0,void 0),or={install:function(t){lt(t,ar)}};ct(or);const sr=or;var cr={name:"BSelect",components:s({},St.name,St),mixins:[ht],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}};const lr=cr;var ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[n("span",{staticClass:"select",class:t.spanClasses},[n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(e){t.$emit("blur",e)&&t.checkHtml5Validity()},focus:function(e){return t.$emit("focus",e)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.computedValue=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),[t.placeholder?[null==t.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v(" "+t._s(t.placeholder)+" ")]):t._e()]:t._e(),t._t("default")],2)]),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e()],1)},hr=[];const dr=void 0,fr=void 0,pr=void 0,vr=!1;var mr=st({render:ur,staticRenderFns:hr},dr,lr,fr,vr,pr,void 0,void 0),gr={name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:function(){return it.defaultTooltipType}},label:String,delay:{type:Number,default:function(){return it.defaultTooltipDelay}},closeDelay:{type:Number,default:function(){return it.defaultTooltipCloseDelay}},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["hover"]}},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},data:function(){return{isActive:!1,triggerStyle:{},timer:null,_bodyEl:void 0}},computed:{rootClasses:function(){return["b-tooltip",this.type,this.position,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation:function(){return this.animated?this.animation:void 0}},watch:{isActive:function(){this.$emit(this.isActive?"open":"close"),this.appendToBody&&this.updateAppendToBody()}},methods:{updateAppendToBody:function(){var t=this.$refs.tooltip,e=this.$refs.trigger;if(t&&e){var n=this.$data._bodyEl.children[0];n.classList.forEach((function(t){return n.classList.remove(t)})),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if("object"===i(t))for(var e in t)t[e]&&n.classList.add(e);else n.classList.add(t)}));var r=e.getBoundingClientRect(),a=r.top+window.scrollY,o=r.left+window.scrollX,s=e.clientHeight/2/2;switch(this.position){case"is-top":n.style.width="".concat(e.clientWidth,"px"),n.style.height="0px",a-=e.clientHeight-s;break;case"is-bottom":n.style.width="".concat(e.clientWidth,"px"),n.style.height="0px",a+=s;break;case"is-left":n.style.width="0px",n.style.height="".concat(e.clientHeight,"px");break;case"is-right":n.style.width="0px",n.style.height="".concat(e.clientHeight,"px"),o+=e.clientWidth;break}var c=this.$data._bodyEl;c.style.position="absolute",c.style.top="".concat(a,"px"),c.style.left="".concat(o,"px"),c.style.width="0px",c.style.zIndex=this.isActive||this.always?"99":"-1",this.triggerStyle={zIndex:this.isActive||this.always?"100":void 0}}},onClick:function(){var t=this;this.triggers.indexOf("click")<0||this.$nextTick((function(){setTimeout((function(){return t.open()}))}))},onHover:function(){this.triggers.indexOf("hover")<0||this.open()},onContextMenu:function(t){this.triggers.indexOf("contextmenu")<0||(t.preventDefault(),this.open())},onFocus:function(){this.triggers.indexOf("focus")<0||this.open()},open:function(){var t=this;this.delay?this.timer=setTimeout((function(){t.isActive=!0,t.timer=null}),this.delay):this.isActive=!0},close:function(){var t=this;"boolean"===typeof this.autoClose&&(this.autoClose&&this.timer&&clearTimeout(this.timer),this.closeDelay?this.timer=setTimeout((function(){t.isActive=!t.autoClose,t.timer=null}),this.closeDelay):this.isActive=!this.autoClose)},clickedOutside:function(t){if(this.isActive&&Array.isArray(this.autoClose)){if(this.autoClose.includes("outside")&&!this.isInWhiteList(t.target))return void(this.isActive=!1);this.autoClose.includes("inside")&&this.isInWhiteList(t.target)&&(this.isActive=!1)}},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList:function(t){if(t===this.$refs.content)return!0;if(void 0!==this.$refs.content){var e=this.$refs.content.querySelectorAll("*"),n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(t===s)return!0}}catch(c){i=!0,r=c}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}return!1}},mounted:function(){this.appendToBody&&"undefined"!==typeof window&&(this.$data._bodyEl=V(this.$refs.content),this.updateAppendToBody())},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&H(this.$data._bodyEl)}};const yr=gr;var br=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"tooltip",class:t.rootClasses},[n("transition",{attrs:{name:t.newAnimation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.active&&(t.isActive||t.always),expression:"active && (isActive || always)"}],ref:"content",class:["tooltip-content",t.contentClass]},[t.label?[t._v(t._s(t.label))]:t.$slots.content?[t._t("content")]:t._e()],2)]),n("div",{ref:"trigger",staticClass:"tooltip-trigger",style:t.triggerStyle,on:{click:t.onClick,contextmenu:t.onContextMenu,mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)},"!blur":function(e){return t.close(e)},mouseleave:t.close}},[t._t("default")],2)],1)},_r=[];const wr=void 0,kr=void 0,Sr=void 0,xr=!1;var Cr=st({render:br,staticRenderFns:_r},wr,yr,kr,xr,Sr,void 0,void 0),Dr=["red","green","blue","alpha"],Tr={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"},Or=function(t){function e(){return r(this,e),_(this,h(e).call(this,"ColorTypeError: type must be hex(a), rgb(a) or hsl(a)"))}return u(e,t),e}(m(Error)),Er=function(){function t(){var e=this;if(r(this,t),arguments.length>0)return t.parse.apply(t,arguments);this.$channels=new Uint8Array(Dr.length),Dr.forEach((function(t,n){Object.defineProperty(e,t,{get:function(){return e.$channels[n]},set:function(t){Number.isNaN(t/1)||(e.$channels[n]=Math.min(255,Math.max(0,t)))},enumerable:!0,configurable:!0})})),["hue","saturation","lightness"].forEach((function(t){var n=t.replace(/^./,(function(t){return t.toUpperCase()}));Object.defineProperty(e,t,{get:function(){return e["get".concat(n)]()},set:function(t){Number.isNaN(t/1)||e["set".concat(n)](t)},enumerable:!0,configurable:!0})}))}return o(t,[{key:"getHue",value:function(){var t=Array.from(this.$channels).map((function(t){return t/255})),e=k(t,3),n=e[0],i=e[1],r=e[2],a=[Math.min(n,i,r),Math.max(n,i,r)],o=a[0],s=a[1],c=s-o,l=0;if(0===c)return l;l=n===s?(i-r)/c%6:i===s?(r-n)/c+2:(n-i)/c+4,l*=60;while(l!==-1/0&&l<0)l+=360;return Math.round(l%360)}},{key:"setHue",value:function(e){for(var n=t.fromHSL(e,this.saturation,this.lightness,this.alpha/255),i=0;i<this.$channels.length;i++)this.$channels[i]=Number(n.$channels[i])}},{key:"getSaturation",value:function(){var t=Array.from(this.$channels).map((function(t){return t/255})),e=k(t,3),n=e[0],i=e[1],r=e[2],a=[Math.min(n,i,r),Math.max(n,i,r)],o=a[0],s=a[1],c=s-o;return 0!==c?Math.round(c/(1-Math.abs(2*this.lightness-1))*100)/100:0}},{key:"setSaturation",value:function(e){var n=this,i=t.fromHSL(this.hue,e,this.lightness,this.alpha/255);Dr.forEach((function(t,e){return n.$channels[e]=i.$channels[e]}))}},{key:"getLightness",value:function(){var t=Array.from(this.$channels).map((function(t){return t/255})),e=k(t,3),n=e[0],i=e[1],r=e[2],a=[Math.min(n,i,r),Math.max(n,i,r)],o=a[0],s=a[1];return Math.round((s+o)/2*100)/100}},{key:"setLightness",value:function(e){var n=this,i=t.fromHSL(this.hue,this.lightness,e,this.alpha/255);Dr.forEach((function(t,e){return n.$channels[e]=i.$channels[e]}))}},{key:"clone",value:function(){var e=this,n=new t;return Dr.forEach((function(t,i){return n.$channels[i]=e.$channels[i]})),n}},{key:"toString",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hex";switch(String(e).toLowerCase()){case"hex":return"#"+Dr.slice(0,3).map((function(e){return t[e].toString(16).padStart(2,"0")})).join("");case"hexa":return"#"+Dr.map((function(e){return t[e].toString(16).padStart(2,"0")})).join("");case"rgb":return"rgb(".concat(this.red,", ").concat(this.green,", ").concat(this.blue,")");case"rgba":return"rgba(".concat(this.red,", ").concat(this.green,", ").concat(this.blue,", ").concat(Math.round(this.alpha/2.55)/100,")");case"hsl":return"hsl(".concat(Math.round(this.hue),"deg, ").concat(Math.round(100*this.saturation),"%, ").concat(Math.round(100*this.lightness),"%)");case"hsla":return"hsla(".concat(Math.round(this.hue),"deg, ").concat(Math.round(100*this.saturation),"%, ").concat(Math.round(100*this.lightness),"%, ").concat(Math.round(this.alpha/2.55)/100,")");default:throw new Or}}},{key:Symbol.toString,get:function(){return this.toString("hex")}}],[{key:"parse",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("object"===i(n[0]))return t.parseObject(n[0]);if(n.every((function(t){return!Number.isNaN(t/1)}))){var a=new t;if(n.length>3)a.red=n[0],a.green=n[1],a.blue=n[2],n[3]&&(a.alpha=n[3]);else if(1===n.length){var o=Number(n[0]);return t.parseIndex(o,o>Math.pow(2,24)?3:4)}}else if("string"===typeof n[0]){var s=null;if("string"===typeof Tr[n[0].toLowerCase()])return t.parseHex(Tr[n[0].toLowerCase()]);if(null!==(s=n[0].match(/^(#|&h|0x)?(([a-f0-9]{3,4}){1,2})$/i)))return t.parseHex(s[2]);if(null!==(s=n[0].match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(\s*,\s*(\d*\.?\d+))?\s*\)$/i))){var c=[s[1],s[2],s[3],"undefined"!==typeof s[5]?s[5]:1];return t.fromRGB.apply(t,x(c.map((function(t){return Number(t)}))))}if(s=n[0].match(/^(h(sl|wb)a?|lab|color|cmyk)\(/i))throw new Error("Color expression not implemented yet")}return new t}},{key:"parseObject",value:function(e){var n=new t;return null===e||"object"!==i(e)?n:t.isColor(e)?e.clone():(Dr.forEach((function(t){Number.isNaN(e[t])||(n[t]=e[t])})),n)}},{key:"parseHex",value:function(e){if("string"!==typeof e)throw new Error("Hex expression must be a string");if(e=e.trim().replace(/^(0x|&h|#)/i,""),3!==e.length&&4!==e.length||(e=e.split("").map((function(t){return t.repeat(2)})).join("")),6!==e.length&&8!==e.length)throw new Error("Incorrect Hex expression length");var n=e.split(/(..)/).filter((function(t){return t})).map((function(t){return Number.parseInt(t,16)}));return"number"===typeof n[3]&&(n[3]/=255),t.fromRGB.apply(t,x(n))}},{key:"parseIndex",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=new t,r=0;r<4;r++)i[Dr[r]]=e>>8*(n-r)&&255;return i}},{key:"fromRGB",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if([e,n,i,r].some((function(t){return Number.isNaN(t/1)})))throw new Error("Invalid arguments");r*=255;var a=new t;return[e,n,i,r].forEach((function(t,e){a[Dr[e]]=t})),a}},{key:"fromHSL",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if([e,n,i,r].some((function(t){return Number.isNaN(t)})))throw new Error("Invalid arguments");while(e<0&&e!==-1/0)e+=360;e%=360,n=Math.max(0,Math.min(1,n)),i=Math.max(0,Math.min(1,i)),r=Math.max(0,Math.min(1,r));var a=(1-Math.abs(2*i-1))*n,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c=e<60?[a,o,0]:e<120?[o,a,0]:e<180?[0,a,o]:e<240?[0,o,a]:e<300?[o,0,a]:[a,0,o],l=k(c,3),u=l[0],h=l[1],d=l[2];return t.fromRGB(255*(u+s),255*(h+s),255*(d+s),r)}},{key:"isColor",value:function(e){return e instanceof t}}]),t}(),Ar=.86602540378,Pr=.5,Mr=0,Rr={name:"BColorpickerHSLRepresentationTriangle",props:{value:{type:Object,required:!0,validator:function(t){return"number"===typeof t.hue&&"number"===typeof t.saturation&&"number"===typeof t.lightness}},size:{type:Number,default:200},thickness:{type:Number,default:20}},data:function(){return{id:Mr++,hue:this.value.hue,saturation:this.value.saturation,lightness:this.value.lightness,captureMouse:!1,captureType:"hue",clientOffset:{cx:-1,cy:-1,width:0,height:0},cos30:Ar,sin30:Pr,debounce:0}},computed:{viewBox:function(){var t=this.size;return"0 0 ".concat(t," ").concat(t)},internalRadius:function(){return this.size/2-this.thickness},haloPath:function(){var t=this.size,e=this.thickness,n=t/2-2,i=n-e,r=t/2;return"M".concat(r-n," ").concat(r,"a").concat(n," ").concat(n," 0 1 1 ").concat(2*n," 0")+"h".concat(-e)+"a".concat(-i," ").concat(i," 0 1 0 ").concat(-2*i," 0")+"a".concat(i," ").concat(i," 0 1 0 ").concat(2*i," 0")+"h".concat(e)+"a".concat(n," ").concat(n," 0 1 1 ").concat(-2*n," 0z")},trianglePath:function(){var t=this.size,e=this.thickness,n=t-4,i=(n-2*e)/2;return"M0 ".concat(-i)+"L".concat(Ar*i," ").concat(Pr*i)+"H".concat(-Ar*i,"z")}},watch:{captureMouse:function(t,e){if(!1===e&&!1!==t){var n=this.$el.getBoundingClientRect();this.clientOffset.cx=n.x+n.width/2,this.clientOffset.cy=n.y+n.height/2,this.clientOffset.width=n.width,this.clientOffset.height=n.height}},value:{deep:!0,handler:function(t){var e=this,n=t.hue,i=t.saturation,r=t.lightness;window.clearTimeout(this.debounce),this.debounce=window.setTimeout((function(){r>=.03&&r<=.97&&i>0&&(e.hue=n),e.saturation=i,e.lightness=r}),200)}}},methods:{increaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(this.hue+t)%360},decreaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(360+this.hue-t)%360},increaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation+t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},decreaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation-t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},increaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness+t))},decreaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness-t))},hueKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseHue(),e=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseHue(),e=!0;break;case"Home":this.increaseHue(360-this.hue),e=!0;break;case"End":this.decreaseHue(this.hue),e=!0;break;case"PageUp":this.increaseHue(60-this.hue%60),e=!0;break;case"PageDown":this.decreaseHue(60+this.hue%60),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},slKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":this.decreaseLightness(),e=!0;break;case"ArrowUp":this.increaseSaturation(),e=!0;break;case"ArrowLeft":this.increaseLightness(),e=!0;break;case"ArrowDown":this.decreaseSaturation(),e=!0;break;case"Home":this.increaseLightness(1-this.lightness),e=!0;break;case"End":this.decreaseLightness(this.lightness),e=!0;break;case"PageUp":this.increaseSaturation(1-this.saturation),e=!0;break;case"PageDown":this.decreaseSaturation(this.saturation),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},clickHue:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.hueCursor.focus()},clickSL:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.slCursor.focus()},trackMouse:function(t){if(!1!==this.captureMouse){t.preventDefault(),t.stopPropagation();var e=0,n=0;if("undefined"!==typeof t.touches&&t.touches.length){var i=[t.touches[0].clientX,t.touches[0].clientY];e=i[0],n=i[1]}else{var r=[t.clientX,t.clientY];e=r[0],n=r[1]}var a=Math.atan2(n-this.clientOffset.cy,e-this.clientOffset.cx);if("sl"===this.captureType){var o=Math.sqrt(Math.pow(e-this.clientOffset.cx,2)+Math.pow(n-this.clientOffset.cy,2)),s=this.size/this.clientOffset.width,c=o*Math.cos(a-this.hue/180*Math.PI)*s,l=o*Math.sin(a-this.hue/180*Math.PI)*s,u=this.internalRadius,h=1-(Math.min(u*Pr,Math.max(-u,l))+u)/(u+u*Pr),d=(Math.min(u*Ar*(1-h),Math.max(-u*Ar*(1-h),c))+u*Ar)/(2*u*Ar);this.saturation=Math.round(1e3*h)/1e3,this.lightness=1-Math.round(1e3*d)/1e3}else this.hue=Math.round(a/Math.PI*180+90)%360;this.emitColor()}},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0,null!==t.target.closest(".colorpicker-triangle-slider-sl")?this.captureType="sl":this.captureType="hue"},stopMouseCapture:function(t){!1!==this.captureMouse&&(t.preventDefault(),t.stopPropagation(),this.$refs["sl"===this.captureType?"slCursor":"hueCursor"].focus()),this.captureMouse=!1},emitColor:function(){var t=this.hue,e=this.saturation,n=this.lightness;this.$emit("input",Er.fromHSL(t,e,n)),window.clearTimeout(this.debounce)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const Ir=Rr;var Nr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"b-colorpicker-triangle",attrs:{viewBox:t.viewBox}},[n("defs",[n("linearGradient",{attrs:{id:"cp-triangle-gradient-ligthness-"+t.id,x1:"0",y1:"0",x2:"1",y2:"0"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff"}}),n("stop",{attrs:{offset:"100%","stop-color":"#000"}})],1),n("linearGradient",{attrs:{id:"cp-triangle-gradient-saturation-"+t.id,x1:"0",y1:"0",x2:"0",y2:"1"}},[n("stop",{attrs:{offset:"0%","stop-color":"hsl("+t.hue+"deg, 100%, 50%)","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"hsl("+t.hue+"deg, 100%, 50%)","stop-opacity":"0"}})],1),n("clipPath",{attrs:{id:"cp-triangle-clip-"+t.id}},[n("path",{attrs:{d:t.haloPath}})])],1),n("g",{staticClass:"colorpicker-triangle-slider-hue"},[n("foreignObject",{attrs:{x:0,y:0,width:t.size,height:t.size,"clip-path":"url(#cp-triangle-clip-"+t.id+")"}},[n("div",{staticClass:"colorpicker-triangle-hue",on:{click:t.clickHue,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})]),n("g",{style:"transform: rotate("+t.hue+"deg)"},[n("foreignObject",{attrs:{x:t.size/2-4,y:0,width:"8",height:t.thickness+4}},[n("div",{ref:"hueCursor",staticClass:"hue-range-thumb",style:"background-color: hsl("+t.hue+"deg, 100%, 50%)",attrs:{role:"slider",tabindex:"0","aria-label":"Hue","aria-valuemin":"0","aria-valuenow":t.hue,"aria-valuemax":"360"},on:{click:t.clickHue,keydown:t.hueKeyPress,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})])],1)],1),n("g",{staticClass:"colorpicker-triangle-slider-sl",style:"transform: rotate("+t.hue+"deg) translate(50%, 50%)",attrs:{role:"graphics-datagroup","aria-datascales":"lightness, saturation"}},[n("path",{attrs:{d:t.trianglePath,fill:"url(#cp-triangle-gradient-ligthness-"+t.id+")"}}),n("path",{staticStyle:{"mix-blend-mode":"overlay"},attrs:{d:t.trianglePath,fill:"url(#cp-triangle-gradient-saturation-"+t.id+")"},on:{click:t.clickSL,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}}),n("foreignObject",{attrs:{x:(t.internalRadius-3)*t.cos30*(.5-t.lightness)*2-6,y:-t.internalRadius+(1-t.saturation)*(t.internalRadius-3)*1.5-3,width:"12",height:"12"}},[n("div",{ref:"slCursor",staticClass:"sl-range-thumb",style:{backgroundColor:"hsl("+t.hue+"deg, "+100*t.saturation+"%, "+100*t.lightness+"%)"},attrs:{tabindex:"0","aria-datavalues":100*t.saturation+"%, "+100*t.lightness+"%"},on:{click:t.clickSL,keydown:t.slKeyPress,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})])],1)])},$r=[];const Lr=void 0,Fr=void 0,Br=void 0,jr=!1;var zr=st({render:Nr,staticRenderFns:$r},Lr,Ir,Fr,jr,Br,void 0,void 0);function Hr(){var t=w(["","px"]);return Hr=function(){return t},t}function Vr(){var t=w(["","px"]);return Vr=function(){return t},t}function Gr(){var t=w(["","px"]);return Gr=function(){return t},t}var Wr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=[];return t.forEach((function(t,e){r.push(t),n[e]&&r.push(Number.isNaN(n[e]/1)?n[e]:Math.round(10*n)/10)})),r.join("")},Ur={name:"BColorpickerHSLRepresentationSquare",props:{value:{type:Object,required:!0,validator:function(t){return"number"===typeof t.hue&&"number"===typeof t.saturation&&"number"===typeof t.lightness}},size:{type:Number,default:200},thickness:{type:Number,default:20}},data:function(){return{hue:this.value.hue,saturation:this.value.saturation,lightness:this.value.lightness,captureMouse:!1,captureType:"hue",clientOffset:{cx:-1,cy:-1,width:0,height:0},debounce:0}},computed:{hueThumbStyle:function(){var t=this.hue,e=this.size,n=this.thickness,i=e-n,r=e/2,a=(t+720+90)%360/180*Math.PI,o=1/Math.cos(Math.PI/4),s={x:-Math.min(1,Math.max(-1,o*Math.cos(a)))/2*i+r,y:-Math.min(1,Math.max(-1,o*Math.sin(a)))/2*i+r},c=s.x,l=s.y;return{background:"hsl(".concat(t,"deg, 100%, 50%)"),left:Wr(Gr(),c),top:Wr(Vr(),l),width:Wr(Hr(),n-2)}},slThumbStyle:function(){var t=this.hue,e=this.saturation,n=this.lightness;return e=Math.max(0,Math.min(1,e)),n=Math.max(0,Math.min(1,n)),{background:"hsl(".concat(t,"deg, ").concat(100*e,"%, ").concat(100*n,"%)"),left:"".concat(100*e,"%"),top:"".concat(100*(1-n),"%")}},SLBackground:function(){var t=this.hue;return"linear-gradient(90deg, hsl(".concat(t,"deg, 0%, 50%), hsl(").concat(t,"deg, 100%, 50%))")}},watch:{captureMouse:function(t,e){if(!1===e&&!1!==t){var n=this.$el.getBoundingClientRect();this.clientOffset.cx=n.x+n.width/2,this.clientOffset.cy=n.y+n.height/2,this.clientOffset.width=n.width,this.clientOffset.height=n.height}},value:{deep:!0,handler:function(t){var e=this,n=t.hue,i=t.saturation,r=t.lightness;window.clearTimeout(this.debounce),this.debounce=window.setTimeout((function(){e.hue=n,e.saturation=i,e.lightness=r}),200)}}},methods:{increaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(this.hue+t)%360},decreaseHue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.hue=(360+this.hue-t)%360},increaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation+t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},decreaseSaturation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.saturation=Math.min(1,Math.max(0,this.saturation-t)),this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness))},increaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness+t))},decreaseLightness:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.lightness=Math.min(.5+.5*(1-this.saturation),Math.max(.5-.5*(1-this.saturation),this.lightness-t))},hueKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseHue(),e=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseHue(),e=!0;break;case"Home":this.increaseHue(360-this.hue),e=!0;break;case"End":this.decreaseHue(this.hue),e=!0;break;case"PageUp":this.increaseHue(60-this.hue%60),e=!0;break;case"PageDown":this.decreaseHue(60+this.hue%60),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},slKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":this.increaseSaturation(),e=!0;break;case"ArrowUp":this.increaseLightness(),e=!0;break;case"ArrowLeft":this.decreaseSaturation(),e=!0;break;case"ArrowDown":this.decreaseLightness(),e=!0;break;case"Home":this.increaseLightness(1-this.lightness),e=!0;break;case"End":this.decreaseLightness(this.lightness),e=!0;break;case"PageUp":this.increaseSaturation(1-this.saturation),e=!0;break;case"PageDown":this.decreaseSaturation(this.saturation),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitColor())},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0,null!==t.target.closest(".colorpicker-square-slider-sl")?this.captureType="sl":this.captureType="hue"},stopMouseCapture:function(t){!1!==this.captureMouse&&(t.preventDefault(),t.stopPropagation(),this.$refs["sl"===this.captureType?"slCursor":"hueCursor"].focus()),this.captureMouse=!1},clickHue:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.hueCursor.focus()},clickSL:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.slCursor.focus()},trackMouse:function(t){if(!1!==this.captureMouse){t.preventDefault(),t.stopPropagation();var e=0,n=0;if("undefined"!==typeof t.touches&&t.touches.length){var i=[t.touches[0].clientX,t.touches[0].clientY];e=i[0],n=i[1]}else{var r=[t.clientX,t.clientY];e=r[0],n=r[1]}var a=Math.atan2(n-this.clientOffset.cy,e-this.clientOffset.cx);if("sl"===this.captureType){var o=(e-this.clientOffset.cx)/(this.clientOffset.width-2*this.thickness)+.5,s=(n-this.clientOffset.cy)/(this.clientOffset.height-2*this.thickness)+.5;this.saturation=Math.round(1e3*Math.min(1,Math.max(0,o)))/1e3,this.lightness=1-Math.round(1e3*Math.min(1,Math.max(0,s)))/1e3}else this.hue=Math.round(a/Math.PI*180+90)%360;this.emitColor()}},emitColor:function(){var t=this.hue,e=this.saturation,n=this.lightness;this.$emit("input",Er.fromHSL(t,e,n)),window.clearTimeout(this.debounce)}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const Yr=Ur;var qr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-colorpicker-square",style:{width:t.size+"px"}},[n("div",{staticClass:"colorpicker-square-slider-hue",on:{click:t.clickHue,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}},[n("div",{ref:"hueCursor",staticClass:"hue-range-thumb",style:t.hueThumbStyle,attrs:{role:"slider",tabindex:"0","aria-label":"Hue","aria-valuemin":"0","aria-valuemax":"359"}})]),n("div",{staticClass:"colorpicker-square-slider-sl",style:{background:t.SLBackground,margin:t.thickness+"px"},attrs:{"aria-datascales":"lightness, saturation"},on:{click:t.clickSL,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}},[n("div",{ref:"slCursor",staticClass:"sl-range-thumb",style:t.slThumbStyle,attrs:{role:"slider",tabindex:"0","aria-datavalues":100*t.saturation+"%, "+100*t.lightness+"%"},on:{click:t.clickSL,keydown:t.slKeyPress,mousedown:function(e){return e.preventDefault(),t.startMouseCapture(e)},touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}})])])},Xr=[];const Kr=void 0,Jr=void 0,Zr=void 0,Qr=!1;var ta=st({render:qr,staticRenderFns:Xr},Kr,Yr,Jr,Qr,Zr,void 0,void 0),ea={name:"BColorpickerAlphaSlider",components:s({},Cr.name,Cr),props:{value:{type:Number,validator:function(t){return t>=0&&t<256}},color:[String,Object]},data:function(){var t=Er.parse(this.color);return t.alpha=0,{startColor:t.toString("hex"),endColor:t.toString("hexa"),percent:Math.round(100*(1-this.value/255)),captureMouse:!1,clientOffset:{cx:-1,cy:-1,width:0,height:0}}},computed:{style:function(){return{backgroundImage:"linear-gradient(90deg, ".concat(this.startColor," 0%, ").concat(this.endColor," 100%),\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7),\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7)"),backgroundSize:"100% 100%, 1em 1em, 1em 1em",backgroundPosition:"0 0, .5em .5em, 0 0"}}},watch:{value:function(t,e){t!==e&&(this.percent=Math.round(100*(1-t/255)))},color:function(t){var e=Er.parse(t);e.alpha=0,this.startColor=e.toString("hex"),this.endColor=e.toString("hexa")},captureMouse:function(t,e){if(!1===e&&!1!==t){var n=this.$el.getBoundingClientRect();this.clientOffset.cx=n.x+n.width/2,this.clientOffset.cy=n.y+n.height/2,this.clientOffset.width=n.width,this.clientOffset.height=n.height}}},methods:{increaseAlpha:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.percent=Math.max(0,Math.min(100,this.percent+t))},decreaseAlpha:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01;this.increaseAlpha(-t)},alphaKeyPress:function(t){var e=!1;switch(t.key){case"ArrowRight":case"ArrowUp":this.increaseAlpha(),e=!0;break;case"ArrowLeft":case"ArrowDown":this.decreaseAlpha(),e=!0;break;case"Home":this.decreaseAlpha(this.percent),e=!0;break;case"End":this.increaseAlpha(100-this.percent),e=!0;break;case"PageUp":this.increaseAlpha(10-this.percent%10),e=!0;break;case"PageDown":this.decreaseAlpha(this.percent%10),e=!0;break}e&&(t.preventDefault(),t.stopPropagation(),this.emitAlpha())},clickAlpha:function(t){this.startMouseCapture(t),this.trackMouse(t),this.stopMouseCapture(t),this.$refs.alphaCursor.focus()},startMouseCapture:function(t){t.stopPropagation(),this.captureMouse=!0},trackMouse:function(t){if(!1!==this.captureMouse){t.preventDefault(),t.stopPropagation();var e=[0,0],n=e[0];if("undefined"!==typeof t.touches&&t.touches.length){var i=[t.touches[0].clientX];n=i[0]}else{var r=[t.clientX];n=r[0]}var a=.5+(this.clientOffset.cx-n)/this.clientOffset.width;this.percent=Math.round(100-100*Math.max(0,Math.min(1,a))),this.emitAlpha()}},stopMouseCapture:function(t){!1!==this.captureMouse&&(t.preventDefault(),t.stopPropagation(),this.$refs.alphaCursor.focus()),this.captureMouse=!1},emitAlpha:function(){this.$emit("input",255*(1-this.percent/100))}},mounted:function(){window.addEventListener("mousemove",this.trackMouse),window.addEventListener("touchmove",this.trackMouse,{passive:!1}),window.addEventListener("mouseup",this.stopMouseCapture),window.addEventListener("touchend",this.stopMouseCapture)},beforeDestroy:function(){window.removeEventListener("mousemove",this.trackMouse),window.removeEventListener("touchmove",this.trackMouse),window.removeEventListener("mouseup",this.stopMouseCapture),window.removeEventListener("touchend",this.stopMouseCapture)}};const na=ea;var ia=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-colorpicker-alpha-slider",style:t.style,on:{click:t.clickAlpha,keydown:t.alphaKeyPress,mousedown:t.startMouseCapture,touchstart:function(e){return e.preventDefault(),t.startMouseCapture(e)}}},[n("div",{ref:"alphaCursor",staticClass:"alpha-range-thumb",style:{left:t.percent+"%"},attrs:{role:"slider",tabindex:"0","aria-label":"Tranparency","aria-valuemin":"0","aria-valuenow":t.percent,"aria-valuemax":"100"}},[n("b-tooltip",{attrs:{label:t.percent+"%",always:t.captureMouse}})],1)])},ra=[];const aa=void 0,oa=void 0,sa=void 0,ca=!1;var la,ua=st({render:ia,staticRenderFns:ra},aa,na,oa,ca,sa,void 0,void 0),ha=function(t,e){return t.alpha<1?t.toString("hexa"):t.toString("hex")},da=function(t,e){return Er.parse(t)},fa={name:"BColorpicker",components:(la={},s(la,zr.name,zr),s(la,ta.name,ta),s(la,ua.name,ua),s(la,Mt.name,Mt),s(la,Li.name,Li),s(la,mr.name,mr),s(la,St.name,St),s(la,di.name,di),s(la,wi.name,wi),la),mixins:[ht],inheritAttrs:!1,provide:function(){return{$colorpicker:this}},props:{value:{type:[String,Object],validator:function(t){return"string"===typeof t||"object"===i(t)&&"number"===typeof t.red&&"number"===typeof t.green&&"number"===typeof t.blue}},representation:{type:String,default:"triangle",value:function(t){return["triangle","square"].some((function(e){return e===t}))}},inline:Boolean,disabled:Boolean,horizontalColorPicker:{type:Boolean,default:!1},colorFormatter:{type:Function,default:function(t,e){return"function"===typeof it.defaultColorFormatter?it.defaultColorFormatter(t):ha(t)}},colorParser:{type:Function,default:function(t,e){return"function"===typeof it.defaultColorParser?it.defaultColorParser(t):da(t)}},alpha:{type:Boolean,default:!1},expanded:Boolean,position:String,mobileModal:{type:Boolean,default:function(){return it.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},appendToBody:Boolean},data:function(){var t=this.colorParser(this.value);return{colorSelected:t}},computed:{background:function(){if(this.alpha)return"linear-gradient(\n 45deg,\n ".concat(this.colorSelected.toString("hex")," 50%,\n ").concat(this.colorSelected.toString("hexa")," 50%\n )");var t=this.colorSelected.toString("hex");return"linear-gradient(\n 45deg,\n ".concat(t," 50%,\n ").concat(t," 50%\n )")},triggerStyle:function(){var t=this.colorSelected,e=t.red,n=t.green,i=t.blue,r=.299*e+.587*n+.114*i>186;return{backgroundColor:"#ffffff",backgroundImage:"\n ".concat(this.background,",\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7),\n linear-gradient(45deg, #c7c7c7 25%, transparent 25%, transparent 75%, #c7c7c7 75%, #c7c7c7)\n "),backgroundSize:"100% 100%, 16px 16px, 16px 16px",backgroundPosition:"0 0, 8px 8px, 0 0",color:r?"#000000":"#FFFFFF",textShadow:"0 0 2px ".concat(r?"#FFFFFFAA":"#000000AA")}},isMobile:function(){return this.mobileNative&&z.any()},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.colorSelected=new Er(t)}},methods:{updateColor:function(t){t.alpha=this.colorSelected.alpha,this.colorSelected=t,this.$emit("input",t)},updateAlpha:function(t){this.colorSelected.alpha=t,this.$emit("input",this.colorSelected)},formatValue:function(t){return t?this.colorFormatter(t,this):null},togglePicker:function(t){if(this.$refs.dropdown){var e="boolean"===typeof t?t:!this.$refs.dropdown.isActive;(e||this.closeOnClick)&&(this.$refs.dropdown.isActive=e)}},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;return t.focus(),void t.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur(),this.$emit("active-change",t)}}};const pa=fa;var va=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"colorpicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,expanded:t.expanded,disabled:t.disabled,inline:t.inline,"mobile-modal":t.mobileModal,"trap-focus":t.trapFocus,"aria-role":t.ariaRole,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-button",{style:t.triggerStyle,attrs:{expanded:t.expanded,disabled:t.disabled}},[n("span",{staticClass:"color-name"},[t._v(t._s(t.colorFormatter(t.colorSelected)))])])])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{class:{"dropdown-horizontal-colorpicker":t.horizontalColorPicker},attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("div",[n("header",{staticClass:"colorpicker-header"},[void 0!==t.$slots.header&&t.$slots.header.length?[t._t("header")]:t._e()],2),n("div",{staticClass:"colorpicker-content"},["square"===t.representation?n("b-colorpicker-h-s-l-representation-square",{attrs:{value:t.colorSelected},on:{input:t.updateColor}}):n("b-colorpicker-h-s-l-representation-triangle",{attrs:{value:t.colorSelected},on:{input:t.updateColor}})],1)]),n("footer",{staticClass:"colorpicker-footer"},[t.alpha?n("b-colorpicker-alpha-slider",{attrs:{value:t.colorSelected.alpha,color:t.colorSelected},on:{input:t.updateAlpha}}):t._e(),t._t("footer",[n("b-field",{staticClass:"colorpicker-fields",attrs:{grouped:""}},[n("b-field",{attrs:{horizontal:"",label:"R"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Red"},model:{value:t.colorSelected.red,callback:function(e){t.$set(t.colorSelected,"red",t._n(e))},expression:"colorSelected.red"}})],1),n("b-field",{attrs:{horizontal:"",label:"G"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Green"},model:{value:t.colorSelected.green,callback:function(e){t.$set(t.colorSelected,"green",t._n(e))},expression:"colorSelected.green"}})],1),n("b-field",{attrs:{horizontal:"",label:"B"}},[n("b-input",{attrs:{type:"number",size:"is-small","aria-label":"Blue"},model:{value:t.colorSelected.blue,callback:function(e){t.$set(t.colorSelected,"blue",t._n(e))},expression:"colorSelected.blue"}})],1)],1)],{color:t.colorSelected})],2)])],1):t._e()],1)},ma=[];const ga=void 0,ya=void 0,ba=void 0,_a=!1;var wa=st({render:va,staticRenderFns:ma},ga,pa,ya,_a,ba,void 0,void 0),ka={install:function(t){lt(t,wa)}};ct(ka);const Sa=ka;var xa={name:"BDatepickerTableRow",inject:{$datepicker:{name:"$datepicker",default:!1}},props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,range:Boolean,multiple:Boolean,rulesForFirstWeek:Number,firstDayOfWeek:Number},watch:{day:function(t){var e=this,n="day-".concat(this.month,"-").concat(t);this.$nextTick((function(){e.$refs[n]&&e.$refs[n].length>0&&e.$refs[n][0]&&e.$refs[n][0].focus()}))}},methods:{firstWeekOffset:function(t,e,n){var i=7+e-n,r=new Date(t,0,i),a=(7+r.getDay()-e)%7;return-a+i-1},daysInYear:function(t){return this.isLeapYear(t)?366:365},isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getSetDayOfYear:function(t){return Math.round((t-new Date(t.getFullYear(),0,1))/864e5)+1},weeksInYear:function(t,e,n){var i=this.firstWeekOffset(t,e,n),r=this.firstWeekOffset(t+1,e,n);return(this.daysInYear(t)-i+r)/7},getWeekNumber:function(t){var e,n,i=this.firstDayOfWeek,r=this.rulesForFirstWeek,a=this.firstWeekOffset(t.getFullYear(),i,r),o=Math.floor((this.getSetDayOfYear(t)-a-1)/7)+1;return o<1?(n=t.getFullYear()-1,e=o+this.weeksInYear(n,i,r)):o>this.weeksInYear(t.getFullYear(),i,r)?(e=o-this.weeksInYear(t.getFullYear(),i,r),n=t.getFullYear()+1):(n=t.getFullYear(),e=o),{week:e,year:n}},clickWeekNumber:function(t){this.weekNumberClickable&&this.$datepicker.$emit("week-number-click",t.week,t.year)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.month),this.selectableDates)if("function"===typeof this.selectableDates){if(this.selectableDates(t))return!0;e.push(!1)}else for(var n=0;n<this.selectableDates.length;n++){var i=this.selectableDates[n];if(t.getDate()===i.getDate()&&t.getFullYear()===i.getFullYear()&&t.getMonth()===i.getMonth())return!0;e.push(!1)}if(this.unselectableDates)if("function"===typeof this.unselectableDates)e.push(!this.unselectableDates(t));else for(var r=0;r<this.unselectableDates.length;r++){var a=this.unselectableDates[r];e.push(t.getDate()!==a.getDate()||t.getFullYear()!==a.getFullYear()||t.getMonth()!==a.getMonth())}if(this.unselectableDaysOfWeek)for(var o=0;o<this.unselectableDaysOfWeek.length;o++){var s=this.unselectableDaysOfWeek[o];e.push(t.getDay()!==s)}return e.indexOf(!1)<0},emitChosenDate:function(t){this.disabled||this.selectableDate(t)&&this.$emit("select",t)},eventsDateMatch:function(t){if(!this.events||!this.events.length)return!1;for(var e=[],n=0;n<this.events.length;n++)this.events[n].date.getDay()===t.getDay()&&e.push(this.events[n]);return!!e.length&&e},classObject:function(t){function e(t,e,n){return!(!t||!e||n)&&(Array.isArray(e)?e.some((function(e){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})):t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function n(t,e,n){return!(!Array.isArray(e)||n)&&(t>e[0]&&t<e[1])}return s({"is-selected":e(t,this.selectedDate)||n(t,this.selectedDate,this.multiple),"is-first-selected":e(t,Array.isArray(this.selectedDate)&&this.selectedDate[0],this.multiple),"is-within-selected":n(t,this.selectedDate,this.multiple),"is-last-selected":e(t,Array.isArray(this.selectedDate)&&this.selectedDate[1],this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(e(t,this.hoveredDateRange)||n(t,this.hoveredDateRange)),"is-first-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[0]),"is-within-hovered":n(t,this.hoveredDateRange),"is-last-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[1]),"is-today":e(t,this.dateCreator()),"is-selectable":this.selectableDate(t)&&!this.disabled,"is-unselectable":!this.selectableDate(t)||this.disabled,"is-invisible":!this.nearbyMonthDays&&t.getMonth()!==this.month,"is-nearby":this.nearbySelectableMonthDays&&t.getMonth()!==this.month,"has-event":this.eventsDateMatch(t)},this.indicators,this.eventsDateMatch(t))},setRangeHoverEndDate:function(t){this.range&&this.$emit("rangeHoverEndDate",t)},manageKeydown:function(t,e){var n=t.key,i=!0;switch(n){case"Tab":i=!1;break;case" ":case"Space":case"Spacebar":case"Enter":this.emitChosenDate(e);break;case"ArrowLeft":case"Left":this.changeFocus(e,-1);break;case"ArrowRight":case"Right":this.changeFocus(e,1);break;case"ArrowUp":case"Up":this.changeFocus(e,-7);break;case"ArrowDown":case"Down":this.changeFocus(e,7);break}i&&t.preventDefault()},changeFocus:function(t,e){var n=new Date(t.getTime());n.setDate(t.getDate()+e);while((!this.minDate||n>this.minDate)&&(!this.maxDate||n<this.maxDate)&&!this.selectableDate(n))n.setDate(t.getDate()+Math.sign(e));this.setRangeHoverEndDate(n),this.$emit("change-focus",n)}}};const Ca=xa;var Da=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker-row"},[t.showWeekNumber?n("a",{staticClass:"datepicker-cell is-week-number",class:{"is-clickable":t.weekNumberClickable},on:{click:function(e){e.preventDefault(),t.clickWeekNumber(t.getWeekNumber(t.week[6]))}}},[n("span",[t._v(t._s(t.getWeekNumber(t.week[6]).week))])]):t._e(),t._l(t.week,(function(e,i){return[t.selectableDate(e)&&!t.disabled?n("a",{key:i,ref:"day-"+e.getMonth()+"-"+e.getDate(),refInFor:!0,staticClass:"datepicker-cell",class:t.classObject(e),attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.day===e.getDate()&&t.month===e.getMonth()?null:-1},on:{click:function(n){return n.preventDefault(),t.emitChosenDate(e)},mouseenter:function(n){return t.setRangeHoverEndDate(e)},keydown:function(n){return t.manageKeydown(n,e)}}},[n("span",[t._v(t._s(e.getDate()))]),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()]):n("div",{key:i,staticClass:"datepicker-cell",class:t.classObject(e)},[n("span",[t._v(t._s(e.getDate()))]),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()])]}))],2)},Ta=[];const Oa=void 0,Ea=void 0,Aa=void 0,Pa=!1;var Ma=st({render:Da,staticRenderFns:Ta},Oa,Ca,Ea,Pa,Aa,void 0,void 0),Ra={name:"BDatepickerTable",components:s({},Ma.name,Ma),props:{value:{type:[Date,Array]},dayNames:Array,monthNames:Array,firstDayOfWeek:Number,events:Array,indicators:String,minDate:Date,maxDate:Date,focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,rulesForFirstWeek:Number,range:Boolean,multiple:Boolean},data:function(){return{selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0}},computed:{multipleSelectedDates:{get:function(){return this.multiple&&this.value?this.value:[]},set:function(t){this.$emit("input",t)}},visibleDayNames:function(){var t=[],e=this.firstDayOfWeek;while(t.length<this.dayNames.length){var n=this.dayNames[e%this.dayNames.length];t.push(n),e++}return this.showWeekNumber&&t.unshift(""),t},hasEvents:function(){return this.events&&this.events.length},eventsInThisMonth:function(){if(!this.events)return[];for(var t=[],e=0;e<this.events.length;e++){var n=this.events[e];n.hasOwnProperty("date")||(n={date:n}),n.hasOwnProperty("type")||(n.type="is-primary"),n.date.getMonth()===this.focused.month&&n.date.getFullYear()===this.focused.year&&t.push(n)}return t},weeksInThisMonth:function(){this.validateFocusedDay();var t=this.focused.month,e=this.focused.year,n=[],i=1;while(n.length<6){var r=this.weekBuilder(i,t,e);n.push(r),i+=7}return n},hoveredDateRange:function(){return this.range&&isNaN(this.selectedEndDate)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(et):[this.selectedBeginDate,this.hoveredEndDate].filter(et):[]}},methods:{updateSelectedDate:function(t){this.range||this.multiple?this.range?this.handleSelectRangeDate(t):this.multiple&&this.handleSelectMultipleDates(t):this.$emit("input",t)},handleSelectRangeDate:function(t){this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=t,this.selectedEndDate=void 0,this.$emit("range-start",t)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>t?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t))},handleSelectMultipleDates:function(t){var e=this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}));e.length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates=[].concat(x(this.multipleSelectedDates),[t])},weekBuilder:function(t,e,n){for(var i=new Date(n,e),r=[],a=new Date(n,e,t).getDay(),o=a>=this.firstDayOfWeek?a-this.firstDayOfWeek:7-this.firstDayOfWeek+a,s=1,c=0;c<o;c++)r.unshift(new Date(i.getFullYear(),i.getMonth(),t-s)),s++;r.push(new Date(n,e,t));var l=1;while(r.length<7)r.push(new Date(n,e,t+l)),l++;return r},validateFocusedDay:function(){var t=new Date(this.focused.year,this.focused.month,this.focused.day);if(!this.selectableDate(t)){var e=0,n=new Date(this.focused.year,this.focused.month+1,0).getDate(),i=null;while(!i&&++e<n){var r=new Date(this.focused.year,this.focused.month,e);if(this.selectableDate(r)){i=t;var a={day:r.getDate(),month:r.getMonth(),year:r.getFullYear()};this.$emit("update:focused",a)}}}},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.focused.month),this.selectableDates)if("function"===typeof this.selectableDates){if(this.selectableDates(t))return!0;e.push(!1)}else for(var n=0;n<this.selectableDates.length;n++){var i=this.selectableDates[n];if(t.getDate()===i.getDate()&&t.getFullYear()===i.getFullYear()&&t.getMonth()===i.getMonth())return!0;e.push(!1)}if(this.unselectableDates)if("function"===typeof this.unselectableDates)e.push(!this.unselectableDates(t));else for(var r=0;r<this.unselectableDates.length;r++){var a=this.unselectableDates[r];e.push(t.getDate()!==a.getDate()||t.getFullYear()!==a.getFullYear()||t.getMonth()!==a.getMonth())}if(this.unselectableDaysOfWeek)for(var o=0;o<this.unselectableDaysOfWeek.length;o++){var s=this.unselectableDaysOfWeek[o];e.push(t.getDay()!==s)}return e.indexOf(!1)<0},eventsInThisWeek:function(t){return this.eventsInThisMonth.filter((function(e){var n=new Date(Date.parse(e.date));n.setHours(0,0,0,0);var i=n.getTime();return t.some((function(t){return t.getTime()===i}))}))},setRangeHoverEndDate:function(t){this.hoveredEndDate=t},changeFocus:function(t){var e={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()};this.$emit("update:focused",e)}}};const Ia=Ra;var Na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"datepicker-table"},[n("header",{staticClass:"datepicker-header"},t._l(t.visibleDayNames,(function(e,i){return n("div",{key:i,staticClass:"datepicker-cell"},[n("span",[t._v(t._s(e))])])})),0),n("div",{staticClass:"datepicker-body",class:{"has-events":t.hasEvents}},t._l(t.weeksInThisMonth,(function(e,i){return n("b-datepicker-table-row",{key:i,attrs:{"selected-date":t.value,day:t.focused.day,week:e,month:t.focused.month,"min-date":t.minDate,"max-date":t.maxDate,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.eventsInThisWeek(e),indicators:t.indicators,"date-creator":t.dateCreator,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,"week-number-clickable":t.weekNumberClickable,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,range:t.range,"hovered-date-range":t.hoveredDateRange,multiple:t.multiple},on:{select:t.updateSelectedDate,rangeHoverEndDate:t.setRangeHoverEndDate,"change-focus":t.changeFocus}})})),1)])},$a=[];const La=void 0,Fa=void 0,Ba=void 0,ja=!1;var za=st({render:Na,staticRenderFns:$a},La,Ia,Fa,ja,Ba,void 0,void 0),Ha={name:"BDatepickerMonth",props:{value:{type:[Date,Array]},monthNames:Array,events:Array,indicators:String,minDate:Date,maxDate:Date,focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:[Array,Function],unselectableDaysOfWeek:Array,selectableDates:[Array,Function],range:Boolean,multiple:Boolean},data:function(){return{selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0,multipleSelectedDates:this.multiple&&this.value?this.value:[]}},computed:{hasEvents:function(){return this.events&&this.events.length},eventsInThisYear:function(){if(!this.events)return[];for(var t=[],e=0;e<this.events.length;e++){var n=this.events[e];n.hasOwnProperty("date")||(n={date:n}),n.hasOwnProperty("type")||(n.type="is-primary"),n.date.getFullYear()===this.focused.year&&t.push(n)}return t},monthDates:function(){for(var t=this.focused.year,e=[],n=0;n<12;n++){var i=new Date(t,n,1);i.setHours(0,0,0,0),e.push(i)}return e},focusedMonth:function(){return this.focused.month},hoveredDateRange:function(){return this.range&&isNaN(this.selectedEndDate)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(et):[this.selectedBeginDate,this.hoveredEndDate].filter(et):[]}},watch:{focusedMonth:function(t){var e=this,n="month-".concat(t);this.$refs[n]&&this.$refs[n].length>0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))}},methods:{selectMultipleDates:function(t){var e=this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}));e.length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),e.push(t.getFullYear()===this.focused.year),this.selectableDates)if("function"===typeof this.selectableDates){if(this.selectableDates(t))return!0;e.push(!1)}else for(var n=0;n<this.selectableDates.length;n++){var i=this.selectableDates[n];if(t.getFullYear()===i.getFullYear()&&t.getMonth()===i.getMonth())return!0;e.push(!1)}if(this.unselectableDates)if("function"===typeof this.unselectableDates)e.push(!this.unselectableDates(t));else for(var r=0;r<this.unselectableDates.length;r++){var a=this.unselectableDates[r];e.push(t.getFullYear()!==a.getFullYear()||t.getMonth()!==a.getMonth())}if(this.unselectableDaysOfWeek)for(var o=0;o<this.unselectableDaysOfWeek.length;o++){var s=this.unselectableDaysOfWeek[o];e.push(t.getDay()!==s)}return e.indexOf(!1)<0},eventsDateMatch:function(t){if(!this.eventsInThisYear.length)return!1;for(var e=[],n=0;n<this.eventsInThisYear.length;n++)this.eventsInThisYear[n].date.getMonth()===t.getMonth()&&e.push(this.events[n]);return!!e.length&&e},classObject:function(t){function e(t,e,n){return!(!t||!e||n)&&(Array.isArray(e)?e.some((function(e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()})):t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())}function n(t,e,n){return!(!Array.isArray(e)||n)&&(t>e[0]&&t<e[1])}function i(t,e,n){return!(!Array.isArray(e)||!n)&&e.some((function(e){return t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}))}return{"is-selected":e(t,this.value,this.multiple)||n(t,this.value,this.multiple)||i(t,this.multipleSelectedDates,this.multiple),"is-first-selected":e(t,Array.isArray(this.value)&&this.value[0],this.multiple),"is-within-selected":n(t,this.value,this.multiple),"is-last-selected":e(t,Array.isArray(this.value)&&this.value[1],this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(e(t,this.hoveredDateRange)||n(t,this.hoveredDateRange)),"is-first-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[0]),"is-within-hovered":n(t,this.hoveredDateRange),"is-last-hovered":e(t,Array.isArray(this.hoveredDateRange)&&this.hoveredDateRange[1]),"is-today":e(t,this.dateCreator()),"is-selectable":this.selectableDate(t)&&!this.disabled,"is-unselectable":!this.selectableDate(t)||this.disabled}},manageKeydown:function(t,e){var n=t.key;switch(n){case" ":case"Space":case"Spacebar":case"Enter":this.updateSelectedDate(e);break;case"ArrowLeft":case"Left":this.changeFocus(e,-1);break;case"ArrowRight":case"Right":this.changeFocus(e,1);break;case"ArrowUp":case"Up":this.changeFocus(e,-3);break;case"ArrowDown":case"Down":this.changeFocus(e,3);break}},updateSelectedDate:function(t){this.range||this.multiple?this.range?this.handleSelectRangeDate(t):this.multiple&&this.selectMultipleDates(t):this.emitChosenDate(t)},emitChosenDate:function(t){this.disabled||(this.multiple?this.selectMultipleDates(t):this.selectableDate(t)&&this.$emit("input",t))},handleSelectRangeDate:function(t){this.disabled||(this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=t,this.selectedEndDate=void 0,this.$emit("range-start",t)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>t?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t)))},setRangeHoverEndDate:function(t){this.range&&(this.hoveredEndDate=t)},changeFocus:function(t,e){var n=t;n.setMonth(t.getMonth()+e),this.$emit("change-focus",n)}}};const Va=Ha;var Ga=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"datepicker-table"},[n("div",{staticClass:"datepicker-body",class:{"has-events":t.hasEvents}},[n("div",{staticClass:"datepicker-months"},[t._l(t.monthDates,(function(e,i){return[t.selectableDate(e)&&!t.disabled?n("a",{key:i,ref:"month-"+e.getMonth(),refInFor:!0,staticClass:"datepicker-cell",class:[t.classObject(e),{"has-event":t.eventsDateMatch(e)},t.indicators],attrs:{role:"button",href:"#",disabled:t.disabled,tabindex:t.focused.month===e.getMonth()?null:-1},on:{click:function(n){return n.preventDefault(),t.updateSelectedDate(e)},mouseenter:function(n){return t.setRangeHoverEndDate(e)},keydown:function(n){return n.preventDefault(),t.manageKeydown(n,e)}}},[t._v(" "+t._s(t.monthNames[e.getMonth()])+" "),t.eventsDateMatch(e)?n("div",{staticClass:"events"},t._l(t.eventsDateMatch(e),(function(t,e){return n("div",{key:e,staticClass:"event",class:t.type})})),0):t._e()]):n("div",{key:i,staticClass:"datepicker-cell",class:t.classObject(e)},[t._v(" "+t._s(t.monthNames[e.getMonth()])+" ")])]}))],2)])])},Wa=[];const Ua=void 0,Ya=void 0,qa=void 0,Xa=!1;var Ka,Ja=st({render:Ga,staticRenderFns:Wa},Ua,Va,Ya,Xa,qa,void 0,void 0),Za=function(t,e){var n=Array.isArray(t)?t:[t],i=n.map((function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),12);return e.isTypeMonth?e.dtfMonth.format(n):e.dtf.format(n)}));return e.multiple?i.join(", "):i.join(" - ")},Qa=function(t,e){if(e.dtf.formatToParts&&"function"===typeof e.dtf.formatToParts){var n=(e.isTypeMonth?e.dtfMonth:e.dtf).formatToParts(new Date(2e3,11,25)).map((function(t){return"literal"===t.type?t.value:"((?!=<".concat(t.type,">)\\d+)")})).join(""),i=J(n,t);if(i.year&&4===i.year.length&&i.month&&i.month<=12){if(e.isTypeMonth)return new Date(i.year,i.month-1);if(i.day&&i.day<=31)return new Date(i.year,i.month-1,i.day,12)}}if(!e.isTypeMonth)return new Date(Date.parse(t));if(t){var r=t.split("/"),a=4===r[0].length?r[0]:r[1],o=2===r[0].length?r[0]:r[1];if(a&&o)return new Date(parseInt(a,10),parseInt(o-1,10),1,0,0,0,0)}return null},to={name:"BDatepicker",components:(Ka={},s(Ka,za.name,za),s(Ka,Ja.name,Ja),s(Ka,Mt.name,Mt),s(Ka,Li.name,Li),s(Ka,mr.name,mr),s(Ka,St.name,St),s(Ka,di.name,di),s(Ka,wi.name,wi),Ka),mixins:[ht],inheritAttrs:!1,provide:function(){return{$datepicker:this}},props:{value:{type:[Date,Array]},dayNames:{type:Array,default:function(){if(Array.isArray(it.defaultDayNames))return it.defaultDayNames}},monthNames:{type:Array,default:function(){if(Array.isArray(it.defaultMonthNames))return it.defaultMonthNames}},firstDayOfWeek:{type:Number,default:function(){return"number"===typeof it.defaultFirstDayOfWeek?it.defaultFirstDayOfWeek:0}},inline:Boolean,minDate:Date,maxDate:Date,focusedDate:Date,placeholder:String,editable:Boolean,disabled:Boolean,horizontalTimePicker:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:{type:Array,default:function(){return it.defaultUnselectableDaysOfWeek}},selectableDates:[Array,Function],dateFormatter:{type:Function,default:function(t,e){return"function"===typeof it.defaultDateFormatter?it.defaultDateFormatter(t):Za(t,e)}},dateParser:{type:Function,default:function(t,e){return"function"===typeof it.defaultDateParser?it.defaultDateParser(t):Qa(t,e)}},dateCreator:{type:Function,default:function(){return"function"===typeof it.defaultDateCreator?it.defaultDateCreator():new Date}},mobileNative:{type:Boolean,default:function(){return it.defaultDatepickerMobileNative}},position:String,iconRight:String,iconRightClickable:Boolean,events:Array,indicators:{type:String,default:"dots"},openOnFocus:Boolean,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},yearsRange:{type:Array,default:function(){return it.defaultDatepickerYearsRange}},type:{type:String,validator:function(t){return["month"].indexOf(t)>=0}},nearbyMonthDays:{type:Boolean,default:function(){return it.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return it.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return it.defaultDatepickerShowWeekNumber}},weekNumberClickable:{type:Boolean,default:function(){return it.defaultDatepickerWeekNumberClickable}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return it.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var t=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return!this.value&&this.maxDate&&this.maxDate.getFullYear()<t.getFullYear()&&t.setFullYear(this.maxDate.getFullYear()),{dateSelected:this.value,focusedDateData:{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){var e=this;this.updateInternalState(t),this.multiple||this.togglePicker(!1),this.$emit("input",t),this.useHtml5Validation&&this.$nextTick((function(){e.checkHtml5Validity()}))}},formattedValue:function(){return this.formatValue(this.computedValue)},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric"}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale)},dtfMonth:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"2-digit"})},newMonthNames:function(){return Array.isArray(this.monthNames)?this.monthNames:X(this.locale)},newDayNames:function(){return Array.isArray(this.dayNames)?this.dayNames:K(this.locale)},listOfMonths:function(){var t=0,e=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(t=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(e=this.maxDate.getMonth()),this.newMonthNames.map((function(n,i){return{name:n,index:i,disabled:i<t||i>e}}))},listOfYears:function(){var t=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()<t&&(t=Math.max(this.maxDate.getFullYear(),this.focusedDateData.year));var e=this.focusedDateData.year+this.yearsRange[0];this.minDate&&this.minDate.getFullYear()>e&&(e=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var n=[],i=e;i<=t;i++)n.push(i);return n.reverse()},showPrev:function(){if(!this.minDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year<=this.minDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),e=new Date(this.minDate.getFullYear(),this.minDate.getMonth());return t<=e},showNext:function(){if(!this.maxDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year>=this.maxDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),e=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth());return t>=e},isMobile:function(){return this.mobileNative&&z.any()},isTypeMonth:function(){return"month"===this.type},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.updateInternalState(t),this.multiple||this.togglePicker(!1)},focusedDate:function(t){t&&(this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()})},"focusedDateData.month":function(t){this.$emit("change-month",t)},"focusedDateData.year":function(t){this.$emit("change-year",t)}},methods:{onChange:function(t){var e=this.dateParser(t,this);!e||isNaN(e)&&(!Array.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1]))?(this.computedValue=null,this.$refs.input&&(this.$refs.input.newValue=this.computedValue)):this.computedValue=e},formatValue:function(t){if(Array.isArray(t)){var e=Array.isArray(t)&&t.every((function(t){return!isNaN(t)}));return e?this.dateFormatter(x(t),this):null}return t&&!isNaN(t)?this.dateFormatter(t,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(t){return this.isTypeMonth?this.formatYYYYMM(t):this.formatYYYYMMDD(t)},formatYYYYMMDD:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();return n+"-"+(i<10?"0":"")+i+"-"+(r<10?"0":"")+r}return""},formatYYYYMM:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1;return n+"-"+(i<10?"0":"")+i}return""},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split("-"):[];if(3===n.length){var i=parseInt(n[0],10),r=parseInt(n[1])-1,a=parseInt(n[2]);this.computedValue=new Date(i,r,a)}else this.computedValue=null},updateInternalState:function(t){if(this.dateSelected!==t){var e=Array.isArray(t),n=e?t.length?t[t.length-1]:this.dateCreator():t||this.dateCreator();(!e||e&&this.dateSelected&&t.length>this.dateSelected.length)&&(this.focusedDateData={day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}),this.dateSelected=t}},togglePicker:function(t){if(this.$refs.dropdown){var e="boolean"===typeof t?t:!this.$refs.dropdown.isActive;(e||this.closeOnClick)&&(this.$refs.dropdown.isActive=e)}},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;return t.focus(),void t.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){var e=t.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur(),this.$emit("active-change",t)},changeFocus:function(t){this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}};const eo=to;var no=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"mobile-modal":t.mobileModal,"trap-focus":t.trapFocus,"aria-role":t.ariaRole,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{autocomplete:"off",value:t.formattedValue,placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-right":t.iconRight,"icon-right-clickable":t.iconRightClickable,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,disabled:t.disabled,readonly:!t.editable,"use-html5-validation":!1},on:{"icon-right-click":function(e){return t.$emit("icon-right-click",e)},focus:t.handleOnFocus},nativeOn:{click:function(e){return t.onInputClick(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.togglePicker(!0)},change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{class:{"dropdown-horizontal-timepicker":t.horizontalTimePicker},attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("div",[n("header",{staticClass:"datepicker-header"},[void 0!==t.$slots.header&&t.$slots.header.length?[t._t("header")]:n("div",{staticClass:"pagination field is-centered",class:t.size},[n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showPrev&&!t.disabled,expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.prev(e)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.prev(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.prev(e))}]}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showNext&&!t.disabled,expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.next(e)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.next(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.next(e))}]}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),n("div",{staticClass:"pagination-list"},[n("b-field",[t.isTypeMonth?t._e():n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.month,callback:function(e){t.$set(t.focusedDateData,"month",e)},expression:"focusedDateData.month"}},t._l(t.listOfMonths,(function(e){return n("option",{key:e.name,attrs:{disabled:e.disabled},domProps:{value:e.index}},[t._v(" "+t._s(e.name)+" ")])})),0),n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.year,callback:function(e){t.$set(t.focusedDateData,"year",e)},expression:"focusedDateData.year"}},t._l(t.listOfYears,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(e)+" ")])})),0)],1)],1)])],2),t.isTypeMonth?n("div",[n("b-datepicker-month",{attrs:{"month-names":t.newMonthNames,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,range:t.range,multiple:t.multiple},on:{"range-start":function(e){return t.$emit("range-start",e)},"range-end":function(e){return t.$emit("range-end",e)},close:function(e){return t.togglePicker(!1)},"change-focus":t.changeFocus,"update:focused":function(e){t.focusedDateData=e}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1):n("div",{staticClass:"datepicker-content",class:{"content-horizontal-timepicker":t.horizontalTimePicker}},[n("b-datepicker-table",{attrs:{"day-names":t.newDayNames,"month-names":t.newMonthNames,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,"type-month":t.isTypeMonth,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,"week-number-clickable":t.weekNumberClickable,range:t.range,multiple:t.multiple},on:{"range-start":function(e){return t.$emit("range-start",e)},"range-end":function(e){return t.$emit("range-end",e)},close:function(e){return t.togglePicker(!1)},"update:focused":function(e){t.focusedDateData=e}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1)]),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"datepicker-footer",class:{"footer-horizontal-timepicker":t.horizontalTimePicker}},[t._t("default")],2):t._e()])],1):n("b-input",t._b({ref:"input",attrs:{type:t.isTypeMonth?"month":"date",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":!1},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},io=[];const ro=void 0,ao=void 0,oo=void 0,so=!1;var co=st({render:no,staticRenderFns:io},ro,eo,ao,so,oo,void 0,void 0),lo={install:function(t){lt(t,co)}};ct(lo);const uo=lo;var ho,fo={name:"BTimepicker",components:(ho={},s(ho,Mt.name,Mt),s(ho,Li.name,Li),s(ho,mr.name,mr),s(ho,St.name,St),s(ho,di.name,di),s(ho,wi.name,wi),ho),mixins:[Zn],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}};const po=fo;var vo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange},scopedSlots:t._u([t.inline?null:{key:"trigger",fn:function(){return[t._t("trigger",[n("b-input",t._b({ref:"input",attrs:{autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(!0)},change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))])]},proxy:!0}],null,!0)},[n("b-dropdown-item",{attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onHoursChange(e.target.value)}},model:{value:t.hoursSelected,callback:function(e){t.hoursSelected=e},expression:"hoursSelected"}},t._l(t.hours,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isHourDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),n("span",{staticClass:"control is-colon"},[t._v(t._s(t.hourLiteral))]),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onMinutesChange(e.target.value)}},model:{value:t.minutesSelected,callback:function(e){t.minutesSelected=e},expression:"minutesSelected"}},t._l(t.minutes,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isMinuteDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),t.enableSeconds?[n("span",{staticClass:"control is-colon"},[t._v(t._s(t.minuteLiteral))]),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){return t.onSecondsChange(e.target.value)}},model:{value:t.secondsSelected,callback:function(e){t.secondsSelected=e},expression:"secondsSelected"}},t._l(t.seconds,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isSecondDisabled(e.value)},domProps:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),0),n("span",{staticClass:"control is-colon"},[t._v(t._s(t.secondLiteral))])]:t._e(),t.isHourFormat24?t._e():n("b-select",{attrs:{disabled:t.disabled},nativeOn:{change:function(e){return t.onMeridienChange(e.target.value)}},model:{value:t.meridienSelected,callback:function(e){t.meridienSelected=e},expression:"meridienSelected"}},t._l(t.meridiens,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v(" "+t._s(e)+" ")])})),0)],2),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[t._t("default")],2):t._e()],1)],1):n("b-input",t._b({ref:"input",attrs:{type:"time",step:t.nativeStep,autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{change:function(e){return t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))],1)},mo=[];const go=void 0,yo=void 0,bo=void 0,_o=!1;var wo,ko=st({render:vo,staticRenderFns:mo},go,po,yo,_o,bo,void 0,void 0),So="AM",xo="PM",Co={name:"BDatetimepicker",components:(wo={},s(wo,co.name,co),s(wo,ko.name,ko),wo),mixins:[ht],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,firstDayOfWeek:{type:Number,default:function(){return"number"===typeof it.defaultFirstDayOfWeek?it.defaultFirstDayOfWeek:0}},rulesForFirstWeek:{type:Number,default:function(){return 4}},icon:String,iconRight:String,iconRightClickable:Boolean,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(t){return"function"===typeof it.defaultDatetimeCreator?it.defaultDatetimeCreator(t):t}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){if(t){var e=new Date(t.getTime());this.newValue?t.getDate()===this.newValue.getDate()&&t.getMonth()===this.newValue.getMonth()&&t.getFullYear()===this.newValue.getFullYear()||0!==t.getHours()||0!==t.getMinutes()||0!==t.getSeconds()||e.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):e=this.datetimeCreator(t),this.minDatetime&&e<this.adjustValue(this.minDatetime)?e=this.adjustValue(this.minDatetime):this.maxDatetime&&e>this.adjustValue(this.maxDatetime)&&(e=this.adjustValue(this.maxDatetime)),this.newValue=new Date(e.getTime())}else this.newValue=this.adjustValue(t);var n=this.adjustValue(this.newValue,!0);this.$emit("input",n)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:this.enableSeconds()?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"numeric",day:this.localeOptions.day||"numeric",hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds()?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24()?"h23":"h12"})},isMobileNative:function(){return this.mobileNative&&0===this.tzOffset},isMobile:function(){return this.isMobileNative&&z.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var t=this.adjustValue(this.minDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var t=this.adjustValue(this.maxDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||null===this.newValue||"undefined"===typeof this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var t=this.adjustValue(this.minDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},maxTime:function(){if(!this.maxDatetime||null===this.newValue||"undefined"===typeof this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var t=this.adjustValue(this.maxDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(){this.newValue=this.adjustValue(this.value)},tzOffset:function(){this.newValue=this.adjustValue(this.value)}},methods:{enableSeconds:function(){return!!this.$refs.timepicker&&this.$refs.timepicker.enableSeconds},isHourFormat24:function(){return this.$refs.timepicker?this.$refs.timepicker.isHourFormat24:!this.localeOptions.hour12},adjustValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?new Date(t.getTime()-6e4*this.tzOffset):new Date(t.getTime()+6e4*this.tzOffset):t},defaultDatetimeParser:function(t){if("function"===typeof this.datetimeParser)return this.datetimeParser(t);if("function"===typeof it.defaultDatetimeParser)return it.defaultDatetimeParser(t);if(this.dtf.formatToParts&&"function"===typeof this.dtf.formatToParts){var e=[So,xo,So.toLowerCase(),xo.toLowerCase()];this.$refs.timepicker&&(e.push(this.$refs.timepicker.amString),e.push(this.$refs.timepicker.pmString));var n=this.dtf.formatToParts(new Date),i=n.map((function(t,i){return"literal"===t.type?i+1<n.length&&"hour"===n[i+1].type?"[^\\d]+":t.value.replace(/ /g,"\\s?"):"dayPeriod"===t.type?"((?!=<".concat(t.type,">)(").concat(e.join("|"),")?)"):"((?!=<".concat(t.type,">)\\d+)")})).join(""),r=J(i,t);if(r.year&&4===r.year.length&&r.month&&r.month<=12&&r.day&&r.day<=31&&r.hour&&r.hour>=0&&r.hour<24&&r.minute&&r.minute>=0&&r.minute<=59){var a=new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second||0);return a}}return new Date(Date.parse(t))},defaultDatetimeFormatter:function(t){return"function"===typeof this.datetimeFormatter?this.datetimeFormatter(t):"function"===typeof it.defaultDatetimeFormatter?it.defaultDatetimeFormatter(t):this.dtf.format(t)},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split(/\D/):[];if(n.length>=5){var i=parseInt(n[0],10),r=parseInt(n[1],10)-1,a=parseInt(n[2],10),o=parseInt(n[3],10),s=parseInt(n[4],10);this.computedValue=new Date(i,r,a,o,s)}else this.computedValue=null},onActiveChange:function(t){this.$emit("active-change",t)},formatNative:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate(),a=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return n+"-"+(i<10?"0":"")+i+"-"+(r<10?"0":"")+r+"T"+(a<10?"0":"")+a+":"+(o<10?"0":"")+o+":"+(s<10?"0":"")+s}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}};const Do=Co;var To=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.isMobile||t.inline?n("b-datepicker",t._b({ref:"datepicker",attrs:{rounded:t.rounded,"open-on-focus":t.openOnFocus,position:t.position,loading:t.loading,inline:t.inline,editable:t.editable,expanded:t.expanded,"close-on-click":!1,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,"date-formatter":t.defaultDatetimeFormatter,"date-parser":t.defaultDatetimeParser,"min-date":t.minDate,"max-date":t.maxDate,icon:t.icon,"icon-right":t.iconRight,"icon-right-clickable":t.iconRightClickable,"icon-pack":t.iconPack,size:t.datepickerSize,placeholder:t.placeholder,"horizontal-time-picker":t.horizontalTimePicker,range:!1,disabled:t.disabled,"mobile-native":t.isMobileNative,locale:t.locale,focusable:t.focusable,"append-to-body":t.appendToBody},on:{focus:t.onFocus,blur:t.onBlur,"active-change":t.onActiveChange,"icon-right-click":function(e){return t.$emit("icon-right-click")},"change-month":function(e){return t.$emit("change-month",e)},"change-year":function(e){return t.$emit("change-year",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-datepicker",t.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[void 0!==t.$slots.left?n("div",{staticClass:"level-item has-text-centered"},[t._t("left")],2):t._e(),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",t._b({ref:"timepicker",attrs:{inline:"",editable:t.editable,"min-time":t.minTime,"max-time":t.maxTime,size:t.timepickerSize,disabled:t.timepickerDisabled,focusable:t.focusable,"mobile-native":t.isMobileNative,locale:t.locale},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-timepicker",t.timepicker,!1))],1),void 0!==t.$slots.right?n("div",{staticClass:"level-item has-text-centered"},[t._t("right")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))},Oo=[];const Eo=void 0,Ao=void 0,Po=void 0,Mo=!1;var Ro=st({render:To,staticRenderFns:Oo},Eo,Do,Ao,Mo,Po,void 0,void 0),Io={install:function(t){lt(t,Ro)}};ct(Io);const No=Io;var $o={name:"BModal",directives:{trapFocus:ni},model:{prop:"active",event:"update:active"},props:{active:Boolean,component:[Object,Function,String],content:[String,Array],programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return it.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return it.defaultModalScroll?it.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},autoFocus:{type:Boolean,default:function(){return it.defaultAutoFocus}},customClass:String,ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean,ariaLabel:{type:String,validator:function(t){return Boolean(t)}},closeButtonAriaLabel:String,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"===typeof this.width?this.width+"px":this.width,animating:!this.active,destroyed:!this.active}},computed:{cancelOptions:function(){return"boolean"===typeof this.canCancel?this.canCancel?it.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(t){var e=this;t&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((function(){t&&e.$el&&e.$el.focus&&e.autoFocus&&e.$el.focus()}))}},methods:{handleScroll:function(){"undefined"!==typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.$emit("cancel",arguments),this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),H(t.$el)}),150))},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||this.cancel("escape")},afterEnter:function(){this.animating=!1,this.$emit("after-enter")},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0),this.$emit("after-leave")}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!==typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}};const Lo=$o;var Fo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation},on:{"after-enter":t.afterEnter,"before-leave":t.beforeLeave,"after-leave":t.afterLeave}},[t.destroyed?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":t.fullScreen},t.customClass],attrs:{tabindex:"-1",role:t.ariaRole,"aria-label":t.ariaLabel,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){return t.cancel("outside")}}}),n("div",{staticClass:"animation-content",class:{"modal-content":!t.hasModalCard},style:t.customStyle},[t.component?n(t.component,t._g(t._b({tag:"component",attrs:{"can-cancel":t.canCancel},on:{close:t.close}},"component",t.props,!1),t.events)):t.content?[n("div",{domProps:{innerHTML:t._s(t.content)}})]:t._t("default",null,{canCancel:t.canCancel,close:t.close}),t.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button","aria-label":t.closeButtonAriaLabel},on:{click:function(e){return t.cancel("x")}}}):t._e()],2)])])},Bo=[];const jo=void 0,zo=void 0,Ho=void 0,Vo=!1;var Go,Wo=st({render:Fo,staticRenderFns:Bo},jo,Lo,zo,Vo,Ho,void 0,void 0),Uo={name:"BDialog",components:(Go={},s(Go,St.name,St),s(Go,ye.name,ye),Go),directives:{trapFocus:ni},extends:Wo,props:{title:String,message:[String,Array],icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return it.defaultDialogConfirmText?it.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return it.defaultDialogCancelText?it.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:function(){return it.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return it.defaultTrapFocus}},ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean},data:function(){var t=this.hasInput&&this.inputAttrs.value||"";return{prompt:t,isActive:!1,validationMessage:"",isCompositing:!1}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var t=this;if(void 0!==this.$refs.input){if(this.isCompositing)return;if(!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick((function(){return t.$refs.input.select()}))}this.$emit("confirm",this.prompt),this.onConfirm(this.prompt,this),this.closeOnConfirm&&this.close()},close:function(){var t=this;this.isActive=!1,setTimeout((function(){t.$destroy(),H(t.$el)}),150)}},beforeMount:function(){var t=this;"undefined"!==typeof window&&this.$nextTick((function(){var e=document.querySelector(t.container)||document.body;e.appendChild(t.$el)}))},mounted:function(){var t=this;this.isActive=!0,"undefined"===typeof this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick((function(){t.hasInput?t.$refs.input.focus():"cancel"===t.focusOn&&t.showCancel?t.$refs.cancelButton.$el.focus():t.$refs.confirmButton.$el.focus()}))}};const Yo=Uo;var qo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:t.dialogClass,attrs:{role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){return t.cancel("outside")}}}),n("div",{staticClass:"modal-card animation-content"},[t.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[t._v(t._s(t.title))])]):t._e(),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!t.title,"is-flex":t.hasIcon}},[n("div",{staticClass:"media"},[t.hasIcon&&(t.icon||t.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.icon?t.icon:t.iconByType,pack:t.iconPack,type:t.type,both:!t.icon,size:"is-large"}})],1):t._e(),n("div",{staticClass:"media-content"},[n("p",[t.$slots.default?[t._t("default")]:[n("div",{domProps:{innerHTML:t._s(t.message)}})]],2),t.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},["checkbox"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.prompt)?t._i(t.prompt,null)>-1:t.prompt},on:{compositionstart:function(e){t.isCompositing=!0},compositionend:function(e){t.isCompositing=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){var n=t.prompt,i=e.target,r=!!i.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);i.checked?o<0&&(t.prompt=n.concat([a])):o>-1&&(t.prompt=n.slice(0,o).concat(n.slice(o+1)))}else t.prompt=r}}},"input",t.inputAttrs,!1)):"radio"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"radio"},domProps:{checked:t._q(t.prompt,null)},on:{compositionstart:function(e){t.isCompositing=!0},compositionend:function(e){t.isCompositing=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){t.prompt=null}}},"input",t.inputAttrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:t.inputAttrs.type},domProps:{value:t.prompt},on:{compositionstart:function(e){t.isCompositing=!0},compositionend:function(e){t.isCompositing=!1},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},input:function(e){e.target.composing||(t.prompt=e.target.value)}}},"input",t.inputAttrs,!1))]),n("p",{staticClass:"help is-danger"},[t._v(t._s(t.validationMessage))])]):t._e()])])]),n("footer",{staticClass:"modal-card-foot"},[t.showCancel?n("b-button",{ref:"cancelButton",on:{click:function(e){return t.cancel("button")}}},[t._v(t._s(t.cancelText))]):t._e(),n("b-button",{ref:"confirmButton",attrs:{type:t.type},on:{click:t.confirm}},[t._v(t._s(t.confirmText))])],1)])]):t._e()])},Xo=[];const Ko=void 0,Jo=void 0,Zo=void 0,Qo=!1;var ts,es=st({render:qo,staticRenderFns:Xo},Ko,Yo,Jo,Qo,Zo,void 0,void 0);function ns(t){var e;Array.isArray(t.message)&&(e=t.message,delete t.message);var n="undefined"!==typeof window&&window.Vue?window.Vue:ts||tt,i=n.extend(es),r=new i({el:document.createElement("div"),propsData:t});return e&&(r.$slots.default=e,r.$forceUpdate()),it.defaultProgrammaticPromise?new Promise((function(t){r.$on("confirm",(function(e){return t({result:e||!0,dialog:r})})),r.$on("cancel",(function(){return t({result:!1,dialog:r})}))})):r}var is={alert:function(t){"string"===typeof t&&(t={message:t});var e={canCancel:!1},n=j(e,t);return ns(n)},confirm:function(t){var e={},n=j(e,t);return ns(n)},prompt:function(t){var e={hasInput:!0},n=j(e,t);return ns(n)}},rs={install:function(t){ts=t,lt(t,es),ut(t,"dialog",is)}};ct(rs);const as=rs;var os={install:function(t){lt(t,di),lt(t,wi)}};ct(os);const ss=os;var cs={install:function(t){lt(t,Li)}};ct(cs);const ls=cs;var us={install:function(t){lt(t,St)}};ct(us);const hs=us;var ds={install:function(t){lt(t,Le)}};ct(ds);const fs=ds;var ps={install:function(t){lt(t,Mt)}};ct(ps);const vs=ps;var ms="undefined"===typeof window,gs=ms?Object:window.HTMLElement,ys=ms?Object:window.File,bs={name:"BLoading",model:{prop:"active",event:"update:active"},props:{active:Boolean,programmatic:Boolean,container:[Object,Function,gs],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(t){this.isActive=t},isFullPage:function(t){this.displayInFullPage=t}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var t=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),H(t.$el)}),150))},keyPress:function(t){var e=t.key;"Escape"!==e&&"Esc"!==e||this.cancel()}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}};const _s=bs;var ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"loading-overlay is-active",class:{"is-full-page":t.displayInFullPage}},[n("div",{staticClass:"loading-background",on:{click:t.cancel}}),t._t("default",[n("div",{staticClass:"loading-icon"})])],2)])},ks=[];const Ss=void 0,xs=void 0,Cs=void 0,Ds=!1;var Ts,Os=st({render:ws,staticRenderFns:ks},Ss,_s,xs,Ds,Cs,void 0,void 0),Es={open:function(t){var e={programmatic:!0},n=j(e,t),i="undefined"!==typeof window&&window.Vue?window.Vue:Ts||tt,r=i.extend(Os);return new r({el:document.createElement("div"),propsData:n})}},As={install:function(t){Ts=t,lt(t,Os),ut(t,"loading",Es)}};ct(As);const Ps=As;var Ms={name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}};const Rs=Ms;var Is=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"menu"},[t._t("default")],2)},Ns=[];const $s=void 0,Ls=void 0,Fs=void 0,Bs=!1;var js=st({render:Is,staticRenderFns:Ns},$s,Rs,Ls,Bs,Fs,void 0,void 0),zs={name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},render:function(t,e){var n=null,i=e.slots();(e.props.label||i.label)&&(n=t("p",{attrs:{class:"menu-label"}},e.props.label?e.props.icon?[t("b-icon",{props:{icon:e.props.icon,pack:e.props.iconPack,size:e.props.size}}),t("span",{},e.props.label)]:e.props.label:i.label));var r=t("ul",{attrs:{class:"menu-list",role:"menu"===e.props.ariaRole?e.props.ariaRole:null}},i.default);return n?[n,r]:r}};const Hs=zs,Vs=void 0,Gs=void 0,Ws=void 0,Us=void 0;var Ys=st({},Vs,Hs,Gs,Us,Ws,void 0,void 0),qs={name:"BMenuItem",components:s({},St.name,St),inheritAttrs:!1,model:{prop:"active",event:"update:active"},props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(t){return it.defaultLinkTags.indexOf(t)>=0}},ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return"menuitem"===this.ariaRole?this.ariaRole:null}},watch:{active:function(t){this.newActive=t},expanded:function(t){this.newExpanded=t}},methods:{onClick:function(t){if(!this.disabled){var e=this.getMenu();this.reset(this.$parent,e),this.newExpanded=this.$props.expanded||!this.newExpanded,this.$emit("update:expanded",this.newExpanded),e&&e.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(t,e){var n=this,i=t.$children.filter((function(t){return t.name===n.name}));i.forEach((function(i){i!==n&&(n.reset(i,e),(!t.$data._isMenu||t.$data._isMenu&&t.accordion)&&(i.newExpanded=!1,i.$emit("update:expanded",i.newActive)),e&&e.activable&&(i.newActive=!1,i.$emit("update:active",i.newActive)))}))},getMenu:function(){var t=this.$parent;while(t&&!t.$data._isMenu)t=t.$parent;return t}}};const Xs=qs;var Ks=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{attrs:{role:t.ariaRoleMenu}},[n(t.tag,t._g(t._b({tag:"component",class:{"is-active":t.newActive,"is-expanded":t.newExpanded,"is-disabled":t.disabled,"icon-text":t.icon},on:{click:function(e){return t.onClick(e)}}},"component",t.$attrs,!1),t.$listeners),[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:t.size}}):t._e(),t.label?n("span",[t._v(" "+t._s(t.label)+" ")]):t._t("label",null,{expanded:t.newExpanded,active:t.newActive})],2),t.$slots.default?[n("transition",{attrs:{name:t.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.newExpanded,expression:"newExpanded"}]},[t._t("default")],2)])]:t._e()],2)},Js=[];const Zs=void 0,Qs=void 0,tc=void 0,ec=!1;var nc=st({render:Ks,staticRenderFns:Js},Zs,Xs,Qs,ec,tc,void 0,void 0),ic={install:function(t){lt(t,js),lt(t,Ys),lt(t,nc)}};ct(ic);const rc=ic;var ac={components:s({},St.name,St),model:{prop:"active",event:"update:active"},props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},data:function(){return{isActive:this.active,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large"}},watch:{active:function(t){this.isActive=t},isActive:function(t){t?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:active",!1)},click:function(){this.$emit("click")},setAutoClose:function(){var t=this;this.autoClose&&(this.timer=setTimeout((function(){t.isActive&&t.close()}),this.duration))},setDurationProgress:function(){var t=this;this.progressBar&&(this.$buefy.globalNoticeInterval=setInterval((function(){0!==t.remainingTime?t.remainingTime-=1:t.resetDurationProgress()}),1e3))},resetDurationProgress:function(){var t=this;setTimeout((function(){t.remainingTime=t.duration/1e3,clearInterval(t.$buefy.globalNoticeInterval)}),100)}},mounted:function(){this.setAutoClose()}},oc={name:"BMessage",mixins:[ac],props:{ariaCloseLabel:String}};const sc=oc;var cc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"message",class:[t.type,t.size]},[t.$slots.header||t.title?n("header",{staticClass:"message-header"},[t.$slots.header?n("div",[t._t("header")],2):t.title?n("p",[t._v(t._s(t.title))]):t._e(),t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e()]):t._e(),t.$slots.default?n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:t.type,attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:t.newIconSize}})],1):t._e(),n("div",{staticClass:"media-content"},[t._t("default")],2)])]):t._e(),t.autoClose&&t.progressBar?n("b-progress",{attrs:{value:t.remainingTime-1,max:t.duration/1e3-1,type:t.type,rounded:!1}}):t._e()],1)])},lc=[];const uc=void 0,hc=void 0,dc=void 0,fc=!1;var pc=st({render:cc,staticRenderFns:lc},uc,sc,hc,fc,dc,void 0,void 0),vc={install:function(t){lt(t,pc)}};ct(vc);const mc=vc;var gc,yc={open:function(t){var e;"string"===typeof t&&(t={content:t});var n,i={programmatic:!0};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.content)&&(n=t.content,delete t.content);var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:gc||tt,o=a.extend(Wo),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},bc={install:function(t){gc=t,lt(t,Wo),ut(t,"modal",yc)}};ct(bc);const _c=bc;var wc={props:{type:{type:String,default:"is-dark"},message:[String,Array],duration:Number,queue:{type:Boolean,default:void 0},indefinite:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!1},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||it.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{pause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue:function(){var t=void 0!==this.queue?this.queue:it.defaultNoticeQueue;return!!t&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},click:function(){this.$emit("click")},close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),H(t.$el)}),150))},timeoutCallback:function(){return this.close()},showNotice:function(){var t=this;this.shouldQueue()&&(this.correctParent.innerHTML=""),this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((function(){return t.timeoutCallback()}),this.newDuration))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}},kc={name:"BNotification",mixins:[ac],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}};const Sc=kc;var xc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification",class:[t.type,t.position],on:{click:t.click}},[t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e(),t.$slots.default||t.message?n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.computedIcon,pack:t.iconPack,size:t.newIconSize,both:"","aria-hidden":""}})],1):t._e(),n("div",{staticClass:"media-content"},[t.$slots.default?[t._t("default")]:[n("p",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}})]],2)]):t._e(),t.progressBar?n("b-progress",{attrs:{value:t.remainingTime-1,max:t.duration/1e3-1,type:t.type,rounded:!1}}):t._e()],1)])},Cc=[];const Dc=void 0,Tc=void 0,Oc=void 0,Ec=!1;var Ac=st({render:xc,staticRenderFns:Cc},Dc,Sc,Tc,Ec,Oc,void 0,void 0),Pc={name:"BNotificationNotice",mixins:[wc],data:function(){return{newDuration:this.duration||it.defaultNotificationDuration}},methods:{close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.$refs.notification.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),H(t.$el)}),150))}}};const Mc=Pc;var Rc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-notification",t._b({ref:"notification",on:{click:t.click,close:t.close},nativeOn:{mouseenter:function(e){return t.pause(e)},mouseleave:function(e){return t.removePause(e)}}},"b-notification",t.$options.propsData,!1),[t._t("default")],2)},Ic=[];const Nc=void 0,$c=void 0,Lc=void 0,Fc=!1;var Bc,jc=st({render:Rc,staticRenderFns:Ic},Nc,Mc,$c,Fc,Lc,void 0,void 0),zc={open:function(t){var e;"string"===typeof t&&(t={message:t});var n,i={position:it.defaultNotificationPosition||"is-top-right"};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message),t.active=!1;var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:Bc||tt,o=a.extend(jc),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s.$children[0].isActive=!0,s}},Hc={install:function(t){Bc=t,lt(t,Ac),ut(t,"notification",zc)}};ct(Hc);const Vc=Hc;var Gc={name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}};const Wc=Gc;var Uc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._g({staticClass:"navbar-burger burger",class:{"is-active":t.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":t.isOpened,tabindex:"0"}},t.$listeners),[n("span",{attrs:{"aria-hidden":"true"}}),n("span",{attrs:{"aria-hidden":"true"}}),n("span",{attrs:{"aria-hidden":"true"}})])},Yc=[];const qc=void 0,Xc=void 0,Kc=void 0,Jc=!1;var Zc=st({render:Uc,staticRenderFns:Yc},qc,Wc,Xc,Jc,Kc,void 0,void 0),Qc="undefined"!==typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0),tl=Qc?["touchstart","click"]:["click"],el=[];function nl(t){var e="function"===typeof t;if(!e&&"object"!==i(t))throw new Error("v-click-outside: Binding value should be a function or an object, ".concat(i(t)," given"));return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||tl}}function il(t){var e=t.el,n=t.event,i=t.handler,r=t.middleware,a=n.target!==e&&!e.contains(n.target);a&&r(n,e)&&i(n,e)}function rl(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.eventHandlers,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add";e.forEach((function(t){var e=t.event,i=t.handler;document["".concat(n,"EventListener")](e,i)}))}function al(t,e){var n=e.value,i=nl(n),r=i.handler,a=i.middleware,o=i.events,s={el:t,eventHandlers:o.map((function(e){return{event:e,handler:function(e){return il({event:e,el:t,handler:r,middleware:a})}}}))};rl(s,"add"),el.push(s)}function ol(t,e){var n=e.value,i=nl(n),r=i.handler,a=i.middleware,o=i.events,s=el.filter((function(e){return e.el===t}))[0];rl(s,"remove"),s.eventHandlers=o.map((function(e){return{event:e,handler:function(e){return il({event:e,el:t,handler:r,middleware:a})}}})),rl(s,"add")}function sl(t){var e=el.filter((function(e){return e.el===t}))[0];rl(e,"remove")}var cl={bind:al,update:ol,unbind:sl,instances:el},ll="is-fixed-top",ul="has-navbar-fixed-top",hl="has-spaced-navbar-fixed-top",dl="is-fixed-bottom",fl="has-navbar-fixed-bottom",pl="has-spaced-navbar-fixed-bottom",vl="has-navbar-centered",ml=function(t){return!!t},gl={name:"BNavbar",components:{NavbarBurger:Zc},directives:{clickOutside:cl},model:{prop:"active",event:"update:active"},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},active:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},wrapperClass:{type:[String,Array,Object]},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.active,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var t;return[this.type,(t={},s(t,ll,this.fixedTop),s(t,dl,this.fixedBottom),s(t,vl,this.centered),s(t,"is-spaced",this.spaced),s(t,"has-shadow",this.shadow),s(t,"is-transparent",this.transparent),t)]}},watch:{active:{handler:function(t){this.internalIsActive=t},immediate:!0},fixedTop:function(t){this.setBodyFixedTopClass(t)},bottomTop:function(t){this.setBodyFixedBottomClass(t)}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&this.internalIsActive&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:active",this.internalIsActive)},setBodyClass:function(t){"undefined"!==typeof window&&document.body.classList.add(t)},removeBodyClass:function(t){"undefined"!==typeof window&&document.body.classList.remove(t)},checkIfFixedPropertiesAreColliding:function(){var t=this.fixedTop&&this.fixedBottom;if(t)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(t){var e=[this.genNavbarBrandNode(t),this.genNavbarSlotsNode(t)];if(!ml(this.wrapperClass))return this.genNavbarSlots(t,e);var n=t("div",{class:this.wrapperClass},e);return this.genNavbarSlots(t,[n])},genNavbarSlots:function(t,e){return t("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},e)},genNavbarBrandNode:function(t){return t("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(t)])},genBurgerNode:function(t){var e=this;if(this.mobileBurger){var n=t("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive,keyup:function(t){13===t.keyCode&&e.toggleActive()}}}),i=!!this.$scopedSlots.burger;return i?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):n}},genNavbarSlotsNode:function(t){return t("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(t,"start"),this.genMenuPosition(t,"end")])},genMenuPosition:function(t,e){return t("div",{staticClass:"navbar-".concat(e)},this.$slots[e])},setBodyFixedTopClass:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(ul),this.spaced&&this.setBodyClass(hl)):(this.removeBodyClass(ul),this.removeBodyClass(hl))},setBodyFixedBottomClass:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(fl),this.spaced&&this.setBodyClass(pl)):(this.removeBodyClass(fl),this.removeBodyClass(pl))}},beforeMount:function(){this.fixedTop&&this.setBodyFixedTopClass(!0),this.fixedBottom&&this.setBodyFixedBottomClass(!0)},beforeDestroy:function(){if(this.fixedTop){var t=this.spaced?hl:ul;this.removeBodyClass(t)}else if(this.fixedBottom){var e=this.spaced?pl:fl;this.removeBodyClass(e)}},render:function(t,e){return this.genNavbar(t)}};const yl=gl,bl=void 0,_l=void 0,wl=void 0,kl=void 0;var Sl=st({},bl,yl,_l,kl,wl,void 0,void 0),xl=["div","span","input"],Cl={name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(t){var e=t.key;"Escape"!==e&&"Esc"!==e||this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(t){var e=xl.some((function(e){return e===t.target.localName}));if(!e){var n=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);n&&n.$data._isNavbarDropdown&&this.closeMenuRecursive(n,["NavBar"])}},closeMenuRecursive:function(t,e){if(!t.$parent)return null;var n=e.reduce((function(e,n){return t.$parent.$data["_is".concat(n)]?(t.$parent.closeMenu(),t.$parent):e}),null);return n||this.closeMenuRecursive(t.$parent,e)}},mounted:function(){"undefined"!==typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}};const Dl=Cl;var Tl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,t._g(t._b({tag:"component",staticClass:"navbar-item",class:{"is-active":t.active}},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)},Ol=[];const El=void 0,Al=void 0,Pl=void 0,Ml=!1;var Rl=st({render:Tl,staticRenderFns:Ol},El,Dl,Al,Ml,Pl,void 0,void 0),Il={name:"BNavbarDropdown",directives:{clickOutside:cl},inheritAttrs:!1,props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean,tag:{type:String,default:"a"}},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(t){this.newActive=t},newActive:function(t){this.$emit("active-change",t)}},methods:{toggleMenu:function(){this.newActive=!this.newActive},showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}};const Nl=Il;var $l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":t.isHoverable,"is-active":t.newActive},on:{mouseenter:t.checkHoverable}},[n(t.tag,t._g(t._b({tag:"component",staticClass:"navbar-link",class:{"is-arrowless":t.arrowless,"is-active":t.newActive&&t.collapsible},attrs:{"aria-haspopup":"true",tabindex:"0"},on:{click:function(e){return e.preventDefault(),t.toggleMenu(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggleMenu(e)}}},"component",t.$attrs,!1),t.$listeners),[t.label?[t._v(t._s(t.label))]:t._t("label")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsible||t.collapsible&&t.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":t.right,"is-boxed":t.boxed}},[t._t("default")],2)],1)},Ll=[];const Fl=void 0,Bl=void 0,jl=void 0,zl=!1;var Hl=st({render:$l,staticRenderFns:Ll},Fl,Nl,Bl,zl,jl,void 0,void 0),Vl={install:function(t){lt(t,Sl),lt(t,Rl),lt(t,Hl)}};ct(Vl);const Gl=Vl;var Wl,Ul={name:"BNumberinput",components:(Wl={},s(Wl,St.name,St),s(Wl,Mt.name,Mt),Wl),mixins:[ht],inheritAttrs:!1,props:{value:Number,min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:function(t){return["left","right","center"].indexOf(t)>=0}},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String,longPress:{type:Boolean,default:!0}},data:function(){return{newValue:this.value,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=this,n=0===Number(t)?0:Number(t)||null;""!==t&&void 0!==t&&null!==t||(n=void 0!==this.minNumber?this.minNumber:null),this.newValue=n,null===n?this.$emit("input",n):isNaN(n)||"-0"===n||this.$emit("input",Number(n)),this.$nextTick((function(){e.$refs.input&&e.$refs.input.checkHtml5Validity()}))}},controlsLeft:function(){return this.controls&&"right"!==this.controlsAlignment?"left"===this.controlsAlignment?["minus","plus"]:["minus"]:[]},controlsRight:function(){return this.controls&&"left"!==this.controlsAlignment?"right"===this.controlsAlignment?["minus","plus"]:["plus"]:[]},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"===typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"===typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"any"===this.newStep?1:"string"===typeof this.newStep?parseFloat(this.newStep):this.newStep},minStepNumber:function(){if("any"===this.newStep&&"undefined"===typeof this.newMinStep)return"any";var t="undefined"!==typeof this.newMinStep?this.newMinStep:this.newStep;return"string"===typeof t?parseFloat(t):t},disabledMin:function(){return this.computedValue-this.stepNumber<this.minNumber},disabledMax:function(){return this.computedValue+this.stepNumber>this.maxNumber},stepDecimals:function(){var t=this.minStepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:{immediate:!0,handler:function(t){this.newValue=t}},step:function(t){this.newStep=t},minStep:function(t){this.newMinStep=t}},methods:{isDisabled:function(t){return this.disabled||("plus"===t?this.disabledMax:this.disabledMin)},decrement:function(){if(null===this.computedValue||"undefined"===typeof this.computedValue){if(null!==this.maxNumber&&"undefined"!==typeof this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}if("undefined"===typeof this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(null===this.computedValue||"undefined"===typeof this.computedValue){if(null!==this.minNumber&&"undefined"!==typeof this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}if("undefined"===typeof this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"===t.type&&(e?this.increment():this.decrement())},longPressTick:function(t){var e=this;t?this.increment():this.decrement(),this._$intervalRef=setTimeout((function(){e.longPressTick(t)}),this.exponential?250/(this.exponential*this.timesPressed++):250)},onStartLongPress:function(t,e){this.longPress&&(0!==t.button&&"touchstart"!==t.type||(clearTimeout(this._$intervalRef),this.longPressTick(e)))},onStopLongPress:function(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=null)}}};const Yl=Ul;var ql=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t._l(t.controlsLeft,(function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])})),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.minStepNumber,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,placeholder:t.placeholder,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-input",t.$attrs,!1)),t._l(t.controlsRight,(function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])}))],2)},Xl=[];const Kl=void 0,Jl=void 0,Zl=void 0,Ql=!1;var tu=st({render:ql,staticRenderFns:Xl},Kl,Yl,Jl,Ql,Zl,void 0,void 0),eu={install:function(t){lt(t,tu)}};ct(eu);const nu=eu;var iu={name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(t){return it.defaultLinkTags.indexOf(t)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}};const ru=iu;var au=function(){var t,e=this,n=e.$createElement,i=e._self._c||n;return i(e.tag,e._b({tag:"component",staticClass:"pagination-link",class:(t={"is-current":e.page.isCurrent},t[e.page.class]=!0,t),attrs:{role:"button",href:e.href,disabled:e.isDisabled,"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent},on:{click:function(t){return t.preventDefault(),e.page.click(t)}}},"component",e.$attrs,!1),[e._t("default",[e._v(e._s(e.page.number))])],2)},ou=[];const su=void 0,cu=void 0,lu=void 0,uu=!1;var hu,du=st({render:au,staticRenderFns:ou},su,ru,cu,uu,lu,void 0,void 0);function fu(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,n||t.apply(r,a)},s=n&&!i;clearTimeout(i),i=setTimeout(o,e),s&&t.apply(r,a)}}var pu={name:"BPagination",components:(hu={},s(hu,St.name,St),s(hu,du.name,du),hu),model:{prop:"current",event:"update:current"},props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{inputValue:this.current}},computed:{rootClasses:function(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.current<this.pageCount-(2+this.afterCurrent)},hasNext:function(){return this.current<this.pageCount},pagesInRange:function(){if(!this.simple){var t=Math.max(1,this.current-this.beforeCurrent);t-1===2&&t--;var e=Math.min(this.current+this.afterCurrent,this.pageCount);this.pageCount-e===2&&e++;for(var n=[],i=t;i<=e;i++)n.push(this.getPage(i));return n}}},watch:{pageCount:function(t){this.current>t&&this.last()},current:function(t){this.inputValue=t},debouncePageInput:{handler:function(t){this.debounceHandlePageInput=fu(this.handleOnInputPageChange,t)},immediate:!0}},methods:{prev:function(t){this.changePage(this.current-1,t)},next:function(t){this.changePage(this.current+1,t)},first:function(t){this.changePage(1,t)},last:function(t){this.changePage(this.pageCount,t)},changePage:function(t,e){this.current===t||t<1||t>this.pageCount||(this.$emit("update:current",t),this.$emit("change",t),e&&e.target&&this.$nextTick((function(){return e.target.focus()})))},getPage:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:t,isCurrent:this.current===t,click:function(n){return e.changePage(t,n)},input:function(t,n){return e.changePage(+n,t)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(t,this.current===t)}},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."},handleOnInputPageChange:function(t){this.getPage(this.inputValue).input(t,this.inputValue)},handleOnInputDebounce:function(t){this.debouncePageInput?this.debounceHandlePageInput(t):this.handleOnInputPageChange(t)},handleOnKeyPress:function(t){var e=t.which||t.keyCode;return e>=48&&e<=57||t.preventDefault()},handleAllowableInputPageRange:function(t){+t.target.value>0&&+t.target.value<=this.pageCount?this.handleOnInputValue(t):(this.inputValue=1,this.inputValue="")},handleOnInputValue:function(t){var e=+t.target.value;this.inputValue=e,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(t):this.inputValue=this.current}}};const vu=pu;var mu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[t.$scopedSlots.previous?t._t("previous",[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current-1,{disabled:!t.hasPrev,class:"pagination-previous","aria-label":t.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!t.hasPrev,page:t.getPage(t.current-1),"aria-label":t.ariaPreviousLabel}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t.$scopedSlots.next?t._t("next",[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current+1,{disabled:!t.hasNext,class:"pagination-next","aria-label":t.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!t.hasNext,page:t.getPage(t.current+1),"aria-label":t.ariaNextLabel}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),n("div",{staticClass:"control pagination-input"},[t.pageInput?n("input",{staticClass:"input",attrs:{size:t.pageCount.toString().length,maxlength:t.pageCount.toString().length},domProps:{value:t.inputValue},on:{input:t.handleAllowableInputPageRange,keypress:t.handleOnKeyPress}}):t._e()]),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v(" "+t._s(t.firstItem)+" / "+t._s(t.total)+" ")]:[t._v(" "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+" ")]],2):n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(1)}):n("BPaginationButton",{attrs:{page:t.getPage(1)}})],2):t._e(),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[t.$scopedSlots.default?t._t("default",null,{page:e}):n("BPaginationButton",{attrs:{page:e}})],2)})),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t.hasLast?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(t.pageCount)}):n("BPaginationButton",{attrs:{page:t.getPage(t.pageCount)}})],2):t._e()],2)],2)},gu=[];const yu=void 0,bu=void 0,_u=void 0,wu=!1;var ku=st({render:mu,staticRenderFns:gu},yu,vu,bu,wu,_u,void 0,void 0),Su={install:function(t){lt(t,ku),lt(t,du)}};ct(Su);const xu=Su;var Cu={name:"BProgress",mixins:[xe("progress")],props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:function(){return it.defaultLocale}}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue:function(){return this.calculateValue(this.value)},isNative:function(){return void 0===this.$slots.bar},wrapperClasses:function(){return s({"is-not-native":!this.isNative},this.size,"string"===typeof this.size&&!this.isNative)}},watch:{isIndeterminate:function(t){var e=this;this.$nextTick((function(){e.$refs.progress&&(t?e.$refs.progress.removeAttribute("value"):e.$refs.progress.setAttribute("value",e.value))}))}},methods:{calculateValue:function(t){if(void 0!==t&&null!==t&&!isNaN(t)){var e=this.keepTrailingZeroes?this.precision:0,n=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:n}).format(t/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:e,maximumFractionDigits:n}).format(t)}}}};const Du=Cu;var Tu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-wrapper",class:[t.wrapperClasses,{"is-squared":!t.rounded}]},[t.isNative?n("progress",{ref:"progress",staticClass:"progress",class:[t.newType,{"is-squared":!t.rounded}],attrs:{max:t.max},domProps:{value:t.value}},[t._v(t._s(t.newValue))]):t._t("bar"),t.isNative&&t.showValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()],2)},Ou=[];const Eu=void 0,Au=void 0,Pu=void 0,Mu=!1;var Ru=st({render:Tu,staticRenderFns:Ou},Eu,Du,Au,Mu,Pu,void 0,void 0),Iu={name:"BProgressBar",mixins:[Oe("progress")],props:{type:{type:[String,Object],default:void 0},value:{type:Number,default:void 0},showValue:{type:Boolean,default:!1}},computed:{newType:function(){return[this.parent.size,this.type||this.parent.type]},newShowValue:function(){return this.showValue||this.parent.showValue},newValue:function(){return this.parent.calculateValue(this.value)},barWidth:function(){return"".concat(100*this.value/this.parent.max,"%")}}};const Nu=Iu;var $u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-bar",class:t.newType,style:{width:t.barWidth},attrs:{role:"progressbar","aria-valuenow":t.value,"aria-valuemax":t.parent.max,"aria-valuemin":"0"}},[t.newShowValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()])},Lu=[];const Fu=void 0,Bu=void 0,ju=void 0,zu=!1;var Hu=st({render:$u,staticRenderFns:Lu},Fu,Nu,Bu,zu,ju,void 0,void 0),Vu={install:function(t){lt(t,Ru),lt(t,Hu)}};ct(Vu);const Gu=Vu;var Wu={name:"BRadio",mixins:[vn]};const Uu=Wu;var Yu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-radio radio",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},change:function(e){t.computedValue=t.nativeValue}}}),n("span",{staticClass:"check",class:t.type}),n("span",{staticClass:"control-label"},[t._t("default")],2)])},qu=[];const Xu=void 0,Ku=void 0,Ju=void 0,Zu=!1;var Qu=st({render:Yu,staticRenderFns:qu},Xu,Uu,Ku,Zu,Ju,void 0,void 0),th={name:"BRadioButton",mixins:[vn],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{isSelected:function(){return this.newValue===this.nativeValue},labelClass:function(){return[this.isSelected?this.type:null,this.size,{"is-selected":this.isSelected,"is-disabled":this.disabled,"is-focused":this.isFocused}]}}};const eh=th;var nh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:t.labelClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())}}},[t._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){t.computedValue=t.nativeValue}}})],2)])},ih=[];const rh=void 0,ah=void 0,oh=void 0,sh=!1;var ch=st({render:nh,staticRenderFns:ih},rh,eh,ah,sh,oh,void 0,void 0),lh={install:function(t){lt(t,Qu),lt(t,ch)}};ct(lh);const uh=lh;var hh={name:"BRate",components:s({},St.name,St),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array,locale:{type:[String,Array],default:function(){return it.defaultLocale}}},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var t="";return this.showScore?(t=this.disabled?this.value:this.newValue,t=0===t?"":new Intl.NumberFormat(this.locale).format(this.value)):this.showText&&(t=this.texts[Math.ceil(this.newValue)-1]),t},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(t){this.newValue=t}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(t,e){this.disabled||(this.hoverValue=t,e.stopPropagation())},confirmValue:function(t){this.disabled||(this.newValue=t,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(t){var e=this.disabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value;return e},rateClass:function(t){var e="",n=0!==this.hoverValue?this.hoverValue:this.newValue;return t<=n?e="set-on":this.disabled&&Math.ceil(this.value)===t&&(e="set-half"),e}}};const dh=hh;var fh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rate",class:{"is-disabled":t.disabled,"is-spaced":t.spaced,"is-rtl":t.rtl}},[t._l(t.max,(function(e,i){return n("div",{key:i,staticClass:"rate-item",class:t.rateClass(e),on:{mousemove:function(n){return t.previewRate(e,n)},mouseleave:t.resetNewValue,click:function(n){return n.preventDefault(),t.confirmValue(e)}}},[n("b-icon",{attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}),t.checkHalf(e)?n("b-icon",{staticClass:"is-half",style:t.halfStyle,attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}):t._e()],1)})),t.showText||t.showScore||t.customText?n("div",{staticClass:"rate-text",class:t.size},[n("span",[t._v(t._s(t.showMe))]),t.customText&&!t.showText?n("span",[t._v(t._s(t.customText))]):t._e()]):t._e()],2)},ph=[];const vh=void 0,mh=void 0,gh=void 0,yh=!1;var bh=st({render:fh,staticRenderFns:ph},vh,dh,mh,yh,gh,void 0,void 0),_h={install:function(t){lt(t,bh)}};ct(_h);const wh=_h;var kh={install:function(t){lt(t,mr)}};ct(kh);const Sh=kh;var xh={name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},position:{type:String,default:"",validator:function(t){return["","is-centered","is-right"].indexOf(t)>-1}},size:String},render:function(t,e){if(e.props.active){for(var n=[],i=e.props.width,r=e.props.height,a=0;a<e.props.count;a++)n.push(t("div",{staticClass:"b-skeleton-item",class:{"is-rounded":e.props.rounded},key:a,style:{height:void 0===r?null:isNaN(r)?r:r+"px",width:void 0===i?null:isNaN(i)?i:i+"px",borderRadius:e.props.circle?"50%":null}}));return t("div",{staticClass:"b-skeleton",class:[e.props.size,e.props.position,{"is-animated":e.props.animated}]},n)}}};const Ch=xh,Dh=void 0,Th=void 0,Oh=void 0,Eh=void 0;var Ah=st({},Dh,Ch,Th,Eh,Oh,void 0,void 0),Ph={install:function(t){lt(t,Ah)}};ct(Ph);const Mh=Ph;var Rh={name:"BSidebar",model:{prop:"open",event:"update:open"},props:{open:Boolean,type:[String,Object],overlay:Boolean,position:{type:String,default:"fixed",validator:function(t){return["fixed","absolute","static"].indexOf(t)>=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,delay:{type:Number,default:function(){return it.defaultSidebarDelay}},canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return it.defaultModalScroll?it.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}}},data:function(){return{isOpen:this.open,isDelayOver:!1,transitionName:null,animating:!0,savedScrollTop:null,hasLeaved:!1,whiteList:[]}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce&&!this.isDelayOver,"is-mini-expand":this.expandOnHover||this.isDelayOver,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed||this.isDelayOver,"is-mini-delayed":null!==this.delay,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"===typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position}},watch:{open:{handler:function(t){this.isOpen=t,this.overlay&&this.handleScroll();var e=this.right?!t:t;this.transitionName=e?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(t){var e=t.key;this.isFixed&&(!this.isOpen||"Escape"!==e&&"Esc"!==e||this.cancel("escape"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(t){if(this.isFixed&&this.isOpen&&!this.animating){var e=Q(this)?t.composedPath()[0]:t.target;this.whiteList.indexOf(e)<0&&this.cancel("outside")}},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1},handleScroll:function(){"undefined"!==typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.open?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.open?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.open?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},onHover:function(){var t=this;this.delay?(this.hasLeaved=!1,this.timer=setTimeout((function(){t.hasLeaved||(t.isDelayOver=!0),t.timer=null}),this.delay)):this.isDelayOver=!1},onHoverLeave:function(){this.hasLeaved=!0,this.timer=null,this.isDelayOver=!1}},created:function(){"undefined"!==typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!==typeof window&&this.isFixed&&document.body.appendChild(this.$el),this.overlay&&this.open&&this.handleScroll()},beforeDestroy:function(){if("undefined"!==typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside),this.overlay)){document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}this.isFixed&&H(this.$el)},beforeUpdate:function(){if(this.whiteList=[],this.whiteList.push(this.$refs.sidebarContent),void 0!==this.$refs.sidebarContent){var t=this.$refs.sidebarContent.querySelectorAll("*"),e=!0,n=!1,i=void 0;try{for(var r,a=t[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;this.whiteList.push(o)}}catch(s){n=!0,i=s}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}}}};const Ih=Rh;var Nh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-sidebar"},[t.overlay&&t.isOpen?n("div",{staticClass:"sidebar-background"}):t._e(),n("transition",{attrs:{name:t.transitionName},on:{"before-enter":t.beforeEnter,"after-enter":t.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:t.rootClasses,on:{mouseenter:t.onHover,mouseleave:t.onHoverLeave}},[t._t("default")],2)])],1)},$h=[];const Lh=void 0,Fh=void 0,Bh=void 0,jh=!1;var zh=st({render:Nh,staticRenderFns:$h},Lh,Ih,Fh,jh,Bh,void 0,void 0),Hh={install:function(t){lt(t,zh)}};ct(Hh);const Vh=Hh;var Gh={name:"BSliderThumb",components:s({},Cr.name,Cr),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},indicator:{type:Boolean,default:!1},customFormatter:Function,format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},locale:{type:[String,Array],default:function(){return it.defaultLocale}},tooltipAlways:{type:Boolean,default:!1}},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},formattedValue:function(){return"undefined"!==typeof this.customFormatter?this.customFormatter(this.value):"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent"}).format((this.value-this.min)/(this.max-this.min)):new Intl.NumberFormat(this.locale).format(this.value)}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),"undefined"!==typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(t){this.dragging=!0,this.$emit("dragstart"),"touchstart"===t.type&&(t.clientX=t.touches[0].clientX),this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){"touchmove"===t.type&&(t.clientX=t.touches[0].clientX);var e=(t.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!==typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var e=100/((this.max-this.min)/this.step),n=Math.round(t/e),i=n*e/100*(this.max-this.min)+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.dragging||i===this.oldValue||(this.oldValue=i)}}}};const Wh=Gh;var Uh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":t.dragging,"has-indicator":t.indicator},style:t.wrapperStyle},[n("b-tooltip",{attrs:{label:t.formattedValue,type:t.type,always:t.dragging||t.isFocused||t.tooltipAlways,active:!t.disabled&&t.tooltip}},[n("div",t._b({staticClass:"b-slider-thumb",attrs:{tabindex:!t.disabled&&0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onFocus,blur:t.onBlur,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"home",void 0,e.key,void 0)?null:(e.preventDefault(),t.onHomeKeyDown(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"end",void 0,e.key,void 0)?null:(e.preventDefault(),t.onEndKeyDown(e))}]}},"div",t.$attrs,!1),[t.indicator?n("span",[t._v(t._s(t.formattedValue))]):t._e()])])],1)},Yh=[];const qh=void 0,Xh=void 0,Kh=void 0,Jh=!1;var Zh=st({render:Uh,staticRenderFns:Yh},qh,Wh,Xh,Jh,Kh,void 0,void 0),Qh={name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var t=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return t>=0&&t<=100?t:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(t){return{left:t+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}};const td=Qh;var ed=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":t.hidden},style:t.getTickStyle(t.position)},[t.$slots.default?n("span",{staticClass:"b-slider-tick-label"},[t._t("default")],2):t._e()])},nd=[];const id=void 0,rd=void 0,ad=void 0,od=!1;var sd,cd=st({render:ed,staticRenderFns:nd},id,td,rd,od,ad,void 0,void 0),ld={name:"BSlider",components:(sd={},s(sd,Zh.name,Zh),s(sd,cd.name,cd),sd),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},locale:{type:[String,Array],default:function(){return it.defaultLocale}},tooltipAlways:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.type},tickValues:function(){if(!this.ticks||this.min>this.max||0===this.step)return[];for(var t=[],e=this.min+this.step;e<this.max;e+=this.step)t.push(e);return t},minValue:function(){return Math.min(this.value1,this.value2)},maxValue:function(){return Math.max(this.value1,this.value2)},barSize:function(){return this.isRange?"".concat(100*(this.maxValue-this.minValue)/(this.max-this.min),"%"):"".concat(100*(this.value1-this.min)/(this.max-this.min),"%")},barStart:function(){return this.isRange?"".concat(100*(this.minValue-this.min)/(this.max-this.min),"%"):"0%"},precision:function(){var t=[this.min,this.max,this.step].map((function(t){var e=(""+t).split(".")[1];return e?e.length:0}));return Math.max.apply(Math,x(t))},barStyle:function(){return{width:this.barSize,left:this.barStart}},rootClasses:function(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{value:function(t){this.setValues(t)},value1:function(){this.onInternalValueUpdate()},value2:function(){this.onInternalValueUpdate()},min:function(){this.setValues(this.value)},max:function(){this.setValues(this.value)}},methods:{setValues:function(t){if(!(this.min>this.max))if(Array.isArray(t)){this.isRange=!0;var e="number"!==typeof t[0]||isNaN(t[0])?this.min:N(t[0],this.min,this.max),n="number"!==typeof t[1]||isNaN(t[1])?this.max:N(t[1],this.min,this.max);this.value1=this.isThumbReversed?n:e,this.value2=this.isThumbReversed?e:n}else this.isRange=!1,this.value1=isNaN(t)?this.min:N(t,this.min,this.max),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(t){if(!this.disabled&&!this.isTrackClickDisabled){var e=this.$refs.slider.getBoundingClientRect().left,n=(t.clientX-e)/this.sliderSize()*100,i=this.min+n*(this.max-this.min)/100,r=Math.abs(i-this.value1);if(this.isRange){var a=Math.abs(i-this.value2);if(r<=a){if(r<this.step/2)return;this.$refs["button1"].setPosition(n)}else{if(a<this.step/2)return;this.$refs["button2"].setPosition(n)}}else{if(r<this.step/2)return;this.$refs.button1.setPosition(n)}this.emitValue("change")}},onDragStart:function(){this.dragging=!0,this.$emit("dragstart")},onDragEnd:function(){var t=this;this.isTrackClickDisabled=!0,setTimeout((function(){t.isTrackClickDisabled=!1}),0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("input")},emitValue:function(t){this.$emit(t,this.isRange?[this.minValue,this.maxValue]:this.value1)}},created:function(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.value)}};const ud=ld;var hd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider",class:[t.size,t.type,t.rootClasses],on:{click:t.onSliderClick}},[n("div",{ref:"slider",staticClass:"b-slider-track"},[n("div",{staticClass:"b-slider-fill",style:t.barStyle}),t.ticks?t._l(t.tickValues,(function(t,e){return n("b-slider-tick",{key:e,attrs:{value:t}})})):t._e(),t._t("default"),n("b-slider-thumb",{ref:"button1",attrs:{"tooltip-always":t.tooltipAlways,type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,indicator:t.indicator,format:t.format,locale:t.locale,role:"slider","aria-valuenow":t.value1,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[0]:t.ariaLabel,"aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t.isRange?n("b-slider-thumb",{ref:"button2",attrs:{"tooltip-always":t.tooltipAlways,type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,indicator:t.indicator,format:t.format,locale:t.locale,role:"slider","aria-valuenow":t.value2,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":"horizontal","aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[1]:"","aria-disabled":t.disabled},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}}):t._e()],2)])},dd=[];const fd=void 0,pd=void 0,vd=void 0,md=!1;var gd=st({render:hd,staticRenderFns:dd},fd,ud,pd,md,vd,void 0,void 0),yd={install:function(t){lt(t,gd),lt(t,cd)}};ct(yd);const bd=yd;var _d={name:"BSnackbar",mixins:[wc],props:{actionText:{type:String,default:"OK"},onAction:{type:Function,default:function(){}},cancelText:{type:null|String,default:null}},data:function(){return{newDuration:this.duration||it.defaultSnackbarDuration}},methods:{action:function(){this.onAction(),this.close()}}};const wd=_d;var kd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"snackbar",class:[t.type,t.position],attrs:{role:t.actionText?"alertdialog":"alert"},on:{mouseenter:t.pause,mouseleave:t.removePause}},[t.$slots.default?[t._t("default")]:[n("div",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}})],t.cancelText?n("div",{staticClass:"action is-light is-cancel",on:{click:t.close}},[n("button",{staticClass:"button"},[t._v(t._s(t.cancelText))])]):t._e(),t.actionText?n("div",{staticClass:"action",class:t.type,on:{click:t.action}},[n("button",{staticClass:"button"},[t._v(t._s(t.actionText))])]):t._e()],2)])},Sd=[];const xd=void 0,Cd=void 0,Dd=void 0,Td=!1;var Od,Ed=st({render:kd,staticRenderFns:Sd},xd,wd,Cd,Td,Dd,void 0,void 0),Ad={open:function(t){var e;"string"===typeof t&&(t={message:t});var n,i={type:"is-success",position:it.defaultSnackbarPosition||"is-bottom-right",queue:!0};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message);var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:Od||tt,o=a.extend(Ed),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},Pd={install:function(t){Od=t,ut(t,"snackbar",Ad)}};ct(Pd);const Md=Pd;var Rd={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh:function(){this.$forceUpdate()}},created:function(){G(this.component)&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){G(this.component)&&this.component.$off(this.event,this.refresh)},render:function(t){if(G(this.component))return t(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}},Id=function(t){var e;return{mixins:[xe(t,Se)],components:(e={},s(e,St.name,St),s(e,Rd.name,Rd),e),props:{value:{type:[String,Number],default:void 0},size:String,animated:{type:Boolean,default:!0},animation:String,animateInitially:Boolean,vertical:{type:Boolean,default:!1},position:String,destroyOnHide:{type:Boolean,default:!1}},data:function(){return{activeId:this.value,defaultSlots:[],contentHeight:0,isTransitioning:!1}},mounted:function(){if("number"===typeof this.value){var t=N(this.value,0,this.items.length-1);this.activeId=this.items[t].value}else this.activeId=this.value},computed:{activeItem:function(){var t=this;return void 0===this.activeId?this.items[0]:null===this.activeId?null:this.childItems.find((function(e){return e.value===t.activeId}))},items:function(){return this.sortedItems}},watch:{value:function(t){"number"===typeof t?(t=N(t,0,this.items.length-1),this.activeId=this.items[t].value):this.activeId=t},activeId:function(t,e){var n=void 0!==e&&null!==e?this.childItems.find((function(t){return t.value===e})):null;n&&this.activeItem&&(n.deactivate(this.activeItem.index),this.activeItem.activate(n.index)),t=this.activeItem?"number"===typeof this.value?this.items.indexOf(this.activeItem):this.activeItem.value:void 0,t!==this.value&&this.$emit("input",t)}},methods:{childClick:function(t){this.activeId=t.value},getNextItemIdx:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=t+1;i<this.items.length;i++){var r=this.items[i];if(r.visible&&(!e||e&&!r.disabled)){n=i;break}}return n},getPrevItemIdx:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=t-1;i>=0;i--){var r=this.items[i];if(r.visible&&(!e||e&&!r.disabled)){n=i;break}}return n}}}},Nd=function(t){return{mixins:[Oe(t,Te)],props:{label:String,icon:String,iconPack:String,visible:{type:Boolean,default:!0},value:{type:String,default:function(){return this._uid.toString()}},headerClass:{type:[String,Array,Object],default:null}},data:function(){return{transitionName:null,elementClass:"item",elementRole:null}},computed:{isActive:function(){return this.parent.activeItem===this}},methods:{activate:function(t){this.transitionName=this.index<t?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"},deactivate:function(t){this.transitionName=t<this.index?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"}},render:function(t){var e=this;if(!this.parent.destroyOnHide||this.isActive&&this.visible){var n=t("div",{directives:[{name:"show",value:this.isActive&&this.visible}],attrs:{class:this.elementClass,role:this.elementRole,id:"".concat(this.value,"-content"),"aria-labelledby":this.elementRole?"".concat(this.value,"-label"):null,tabindex:this.isActive?0:-1}},this.$slots.default);return this.parent.animated?t("transition",{props:{name:this.parent.animation||this.transitionName,appear:!0===this.parent.animateInitially||void 0},on:{"before-enter":function(){e.parent.isTransitioning=!0},"after-enter":function(){e.parent.isTransitioning=!1}}},[n]):n}}}},$d={name:"BSteps",components:s({},St.name,St),mixins:[Id("step")],props:{type:[String,Object],iconPack:String,iconPrev:{type:String,default:function(){return it.defaultIconPrev}},iconNext:{type:String,default:function(){return it.defaultIconNext}},hasNavigation:{type:Boolean,default:!0},labelPosition:{type:String,validator:function(t){return["bottom","right","left"].indexOf(t)>-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(t){return["minimalist","compact"].indexOf(t)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},computed:{activeItem:function(){var t=this;return this.childItems.filter((function(e){return e.value===t.activeId}))[0]||this.items[0]},wrapperClasses:function(){return[this.size,s({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,s({"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),null!==this.mobileMode)]},hasPrev:function(){return null!==this.prevItemIdx},nextItemIdx:function(){var t=this.activeItem?this.items.indexOf(this.activeItem):0;return this.getNextItemIdx(t)},nextItem:function(){var t=null;return null!==this.nextItemIdx&&(t=this.items[this.nextItemIdx]),t},prevItemIdx:function(){if(!this.activeItem)return null;var t=this.items.indexOf(this.activeItem);return this.getPrevItemIdx(t)},prevItem:function(){if(!this.activeItem)return null;var t=null;return null!==this.prevItemIdx&&(t=this.items[this.prevItemIdx]),t},hasNext:function(){return null!==this.nextItemIdx},navigationProps:function(){return{previous:{disabled:!this.hasPrev,action:this.prev},next:{disabled:!this.hasNext,action:this.next}}}},methods:{isItemClickable:function(t){return void 0===t.clickable?t.index<this.activeItem.index:t.clickable},prev:function(){this.hasPrev&&(this.activeId=this.prevItem.value)},next:function(){this.hasNext&&(this.activeId=this.nextItem.value)}}};const Ld=$d;var Fd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-steps",class:t.wrapperClasses},[n("nav",{staticClass:"steps",class:t.mainClasses},[n("ul",{staticClass:"step-items"},t._l(t.items,(function(e){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"childItem.visible"}],key:e.value,staticClass:"step-item",class:[e.type||t.type,e.headerClass,{"is-active":e.isActive,"is-previous":t.activeItem.index>e.index}]},[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e)},on:{click:function(n){t.isItemClickable(e)&&t.childClick(e)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):e.step?n("span",[t._v(t._s(e.step))]):t._e()],1),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})),0)]),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._t("navigation",[t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:t.navigationProps.previous.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.previous.action(e)}}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:t.navigationProps.next.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.next.action(e)}}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()],{previous:t.navigationProps.previous,next:t.navigationProps.next})],2)},Bd=[];const jd=void 0,zd=void 0,Hd=void 0,Vd=!1;var Gd=st({render:Fd,staticRenderFns:Bd},jd,Ld,zd,Vd,Hd,void 0,void 0),Wd={name:"BStepItem",mixins:[Nd("step")],props:{step:[String,Number],type:[String,Object],clickable:{type:Boolean,default:void 0}},data:function(){return{elementClass:"step-item"}}};const Ud=Wd,Yd=void 0,qd=void 0,Xd=void 0,Kd=void 0;var Jd=st({},Yd,Ud,qd,Kd,Xd,void 0,void 0),Zd={install:function(t){lt(t,Gd),lt(t,Jd)}};ct(Zd);const Qd=Zd;var tf={name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,passiveType:String,name:String,required:Boolean,size:String,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:function(){return it.defaultSwitchRounded}},outlined:{type:Boolean,default:!1},leftLabel:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined,"has-left-label":this.leftLabel}]},checkClasses:function(){return[{"is-elastic":this.isMouseDown&&!this.disabled},this.passiveType&&"".concat(this.passiveType,"-passive"),this.type]},showControlLabel:function(){return!!this.$slots.default}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}};const ef=tf;var nf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"switch",class:t.newClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$refs.label.click())},mousedown:function(e){t.isMouseDown=!0},mouseup:function(e){t.isMouseDown=!1},mouseout:function(e){t.isMouseDown=!1},blur:function(e){t.isMouseDown=!1}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,name:t.name,required:t.required,"true-value":t.trueValue,"false-value":t.falseValue,"aria-labelledby":t.ariaLabelledby},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var a=t.nativeValue,o=t._i(n,a);i.checked?o<0&&(t.computedValue=n.concat([a])):o>-1&&(t.computedValue=n.slice(0,o).concat(n.slice(o+1)))}else t.computedValue=r}}}),n("span",{staticClass:"check",class:t.checkClasses}),t.showControlLabel?n("span",{staticClass:"control-label",attrs:{id:t.ariaLabelledby}},[t._t("default")],2):t._e()])},rf=[];const af=void 0,of=void 0,sf=void 0,cf=!1;var lf=st({render:nf,staticRenderFns:rf},af,ef,of,cf,sf,void 0,void 0),uf={install:function(t){lt(t,lf)}};ct(uf);const hf=uf;var df,ff={name:"BTableMobileSort",components:(df={},s(df,mr.name,mr),s(df,St.name,St),df),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some((function(e){return e===t.mobileSort}))}},watch:{sortMultipleSelect:function(t){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",t,this.defaultEvent)},mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t,this.defaultEvent)},currentSortColumn:function(t){this.mobileSort=t}},methods:{removePriority:function(){var t=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var e=this.sortMultipleData.filter((function(e){return e.field!==t.sortMultipleSelect.field})).map((function(t){return t.field}));this.sortMultipleSelect=this.columns.filter((function(t){return e.includes(t.field)}))[0]},getSortingObjectOfColumn:function(t){return this.sortMultipleData.filter((function(e){return e.field===t.field}))[0]},columnIsDesc:function(t){var e=this.getSortingObjectOfColumn(t);return!e||!(!e.order||"desc"!==e.order)},getLabel:function(t){var e=this.getSortingObjectOfColumn(t);return e?t.label+"("+(this.sortMultipleData.indexOf(e)+1)+")":t.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}};const pf=ff;var vf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[t.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:t.sortMultipleSelect,callback:function(e){t.sortMultipleSelect=e},expression:"sortMultipleSelect"}},t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(t.getLabel(e))+" "),t.getSortingObjectOfColumn(e)?[t.columnIsDesc(e)?[t._v(" ↓ ")]:[t._v(" ↑ ")]]:t._e()],2):t._e()})),0):n("b-select",{attrs:{expanded:""},model:{value:t.mobileSort,callback:function(e){t.mobileSort=e},expression:"mobileSort"}},[t.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[t._v(" "+t._s(t.placeholder)+" ")])]:t._e(),t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(e.label)+" ")]):t._e()}))],2),n("div",{staticClass:"control"},[t.sortMultiple&&t.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{class:{"is-desc":t.columnIsDesc(t.sortMultipleSelect)},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1),n("button",{staticClass:"button is-primary",on:{click:t.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:t.sortIconSize,both:""}})],1)]:t.sortMultiple?t._e():n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===t.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!t.isAsc},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1)],2)],1)])},mf=[];const gf=void 0,yf=void 0,bf=void 0,_f=!1;var wf=st({render:vf,staticRenderFns:mf},gf,pf,yf,_f,bf,void 0,void 0),kf={name:"BTableColumn",inject:{$table:{name:"$table",default:!1}},props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,customSearch:Function,sticky:Boolean,headerSelectable:Boolean,headerClass:String,cellClass:String,thAttrs:{type:Function,default:function(){return{}}},tdAttrs:{type:Function,default:function(){return{}}}},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{thClasses:function(){var t=this.thAttrs(this),e=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return t&&t.class&&e.push(t.class),e},thStyle:function(){var t=this.thAttrs(this),e=[this.style];return t&&t.style&&e.push(t.style),e},rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},style:function(){return{width:q(this.width)}},hasDefaultSlot:function(){return!!this.$scopedSlots.default},isHeaderUnSelectable:function(){return!this.headerSelectable&&this.sortable}},methods:{getRootClasses:function(t){var e=this.tdAttrs(t,this),n=[this.rootClasses];return e&&e.class&&n.push(e.class),n},getRootStyle:function(t){var e=this.tdAttrs(t,this),n=[];return e&&e.style&&n.push(e.style),n}},created:function(){if(!this.$table)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");this.$table.refreshSlots()},beforeDestroy:function(){this.$table.refreshSlots()},render:function(t){return null}};const Sf=kf,xf=void 0,Cf=void 0,Df=void 0,Tf=void 0;var Of=st({},xf,Sf,Cf,Tf,Df,void 0,void 0),Ef={name:"BTablePagination",components:s({},ku.name,ku),props:{paginated:Boolean,total:[Number,String],perPage:[Number,String],currentPage:[Number,String],paginationSimple:Boolean,paginationSize:String,rounded:Boolean,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:Boolean,paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{newCurrentPage:this.currentPage}},watch:{currentPage:function(t){this.newCurrentPage=t}},methods:{pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("update:currentPage",this.newCurrentPage),this.$emit("page-change",this.newCurrentPage)}}};const Af=Ef;var Pf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[t._t("default")],2),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.total,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,rounded:t.rounded,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel,"page-input":t.pageInput,order:t.paginationOrder,"page-input-position":t.pageInputPosition,"debounce-page-input":t.debouncePageInput},on:{change:t.pageChanged}})],1):t._e()])])},Mf=[];const Rf=void 0,If=void 0,Nf=void 0,$f=!1;var Lf,Ff=st({render:Pf,staticRenderFns:Mf},Rf,Af,If,$f,Nf,void 0,void 0),Bf={name:"BTable",components:(Lf={},s(Lf,xn.name,xn),s(Lf,St.name,St),s(Lf,Mt.name,Mt),s(Lf,Os.name,Os),s(Lf,Rd.name,Rd),s(Lf,wf.name,wf),s(Lf,Of.name,Of),s(Lf,Ff.name,Ff),Lf),inheritAttrs:!1,provide:function(){return{$table:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxType:{type:String,default:"is-primary"},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},stickyCheckbox:{type:Boolean,default:!1},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},detailIcon:{type:String,default:"chevron-right"},paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},paginationRounded:Boolean,backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},detailTransition:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},draggableColumn:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean,showHeader:{type:Boolean,default:!0},debounceSearch:Number,caption:String,showCaption:{type:Boolean,default:!0},pageInput:{type:Boolean,default:!1},paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{sortMultipleDataLocal:[],getValueByPath:$,visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:x(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},defaultSlots:[],firstTimeSort:!0,_isTable:!0,isDraggingRow:!1,isDraggingColumn:!1}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},tableStyle:function(){return{height:q(this.height)}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,e=this.perPage;if(this.newData.length<=e)return this.newData;var n=(t-1)*e,i=parseInt(n,10)+parseInt(e,10);return this.newData.slice(n,i)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(t){return t.visible||void 0===t.visible})):this.newColumns},isAllChecked:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));if(0===e.length)return!1;var n=e.some((function(e){return L(t.newCheckedRows,e,t.customIsChecked)<0}));return!n},isAllUncheckable:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));return 0===e.length},hasSortablenewColumns:function(){return this.newColumns.some((function(t){return t.sortable}))},hasSearchablenewColumns:function(){return this.newColumns.some((function(t){return t.searchable}))},hasCustomSubheadings:function(){return!(!this.$scopedSlots||!this.$scopedSlots.subheading)||this.newColumns.some((function(t){return t.subheading||t.$scopedSlots&&t.$scopedSlots.subheading}))},columnCount:function(){var t=this.visibleColumns.length;return t+=this.checkable?1:0,t+=this.detailed&&this.showDetailIcon?1:0,t},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((function(t){return t.sticky}))},newColumns:function(){var t=this;return this.columns&&this.columns.length?this.columns.map((function(e){var n=tt.extend(Of),i=new n({parent:t,propsData:e});return i.$scopedSlots={default:function(t){var n=i.$createElement("span",{domProps:{innerHTML:$(t.row,e.field)}});return[n]}},i})):this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isTableColumn})).map((function(t){return t.componentInstance}))},canDragRow:function(){return this.draggable&&!this.isDraggingColumn},canDragColumn:function(){return this.draggableColumn&&!this.isDraggingRow}},watch:{data:function(t){var e=this;this.newData=t,this.backendFiltering||(this.newData=t.filter((function(t){return e.isRowFiltered(t)}))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total:function(t){this.backendPagination&&(this.newDataTotal=t)},currentPage:function(t){this.newCurrentPage=t},newCurrentPage:function(t){this.$emit("update:currentPage",t)},checkedRows:function(t){this.newCheckedRows=x(t)},debounceSearch:{handler:function(t){this.debouncedHandleFiltersChange=fu(this.handleFiltersChange,t)},immediate:!0},filters:{handler:function(t){this.debounceSearch?this.debouncedHandleFiltersChange(t):this.handleFiltersChange(t)},deep:!0},openedDetailed:function(t){this.visibleDetailRows=t}},methods:{onFiltersEvent:function(t){this.$emit("filters-event-".concat(this.filtersEvent),{event:t,filters:this.filters})},handleFiltersChange:function(t){var e=this;this.backendFiltering?this.$emit("filters-change",t):(this.newData=this.data.filter((function(t){return e.isRowFiltered(t)})),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},findIndexOfSortData:function(t){var e=this.sortMultipleDataComputed.filter((function(e){return e.field===t.field}))[0];return this.sortMultipleDataComputed.indexOf(e)+1},removeSortingPriority:function(t){if(this.backendSorting)this.$emit("sorting-priority-removed",t.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((function(e){return e.field!==t.field}));var e=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));0===e.length?this.resetMultiSorting():this.newData=Y(this.newData,e)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(t,e,n,i){var r=[];return r=n&&"function"===typeof n?x(t).sort((function(t,e){return n(t,e,i)})):x(t).sort((function(t,n){var r=$(t,e),a=$(n,e);return"boolean"===typeof r&&"boolean"===typeof a?i?r-a:a-r:!nt(a)&&nt(r)?i?1:-1:!nt(r)&&nt(a)?i?-1:1:r===a?0:(r="string"===typeof r?r.toUpperCase():r,a="string"===typeof a?a.toUpperCase():a,i?r>a?1:-1:r>a?-1:1)})),r},sortMultiColumn:function(t){if(this.currentSortColumn={},!this.backendSorting){var e=this.sortMultipleDataLocal.filter((function(e){return e.field===t.field}))[0];e?e.order="desc"===e.order?"asc":"desc":this.sortMultipleDataLocal.push({field:t.field,order:t.isAsc}),this.doSortMultiColumn()}},doSortMultiColumn:function(){var t=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));this.newData=Y(this.newData,t)},sort:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t&&t.sortable&&(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&n[this.sortMultipleKey]||!this.sortMultipleKey)?e?this.doSortMultiColumn():this.sortMultiColumn(t):(this.sortMultiple&&(this.sortMultipleDataLocal=[]),e||(this.isAsc=t===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc",n),this.backendSorting||this.doSortSingleColumn(t),this.currentSortColumn=t))},doSortSingleColumn:function(t){this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)},isRowSelected:function(t,e){return!!e&&(this.customRowKey?t[this.customRowKey]===e[this.customRowKey]:t===e)},isRowChecked:function(t){return L(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var e=L(this.newCheckedRows,t,this.customIsChecked);e>=0&&this.newCheckedRows.splice(e,1)},checkAll:function(){var t=this,e=this.isAllChecked;this.visibleData.forEach((function(n){t.isRowCheckable(n)&&t.removeCheckedRow(n),e||t.isRowCheckable(n)&&t.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t,e,n){if(this.isRowCheckable(t)){var i=this.lastCheckedRowIndex;this.lastCheckedRowIndex=e,n.shiftKey&&null!==i&&e!==i?this.shiftCheckRow(t,e,i):this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(t,e,n){var i=this,r=this.visibleData.slice(Math.min(e,n),Math.max(e,n)+1),a=!this.isRowChecked(t);r.forEach((function(t){i.removeCheckedRow(t),a&&i.isRowCheckable(t)&&i.newCheckedRows.push(t)}))},selectRow:function(t,e){this.$emit("click",t),this.selected!==t&&this.isRowSelectable(t)&&(this.$emit("select",t,this.selected),this.$emit("update:selected",t))},toggleDetails:function(t){var e=this.isVisibleDetailRow(t);e?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var e=this.handleDetailKey(t);this.visibleDetailRows.push(e)},closeDetailRow:function(t){var e=this.handleDetailKey(t),n=this.visibleDetailRows.indexOf(e);n>=0&&this.visibleDetailRows.splice(n,1)},isVisibleDetailRow:function(t){var e=this.handleDetailKey(t);return this.visibleDetailRows.indexOf(e)>=0},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},isRowFiltered:function(t){var e=this,n=function(n){if(!e.filters[n])return"continue";var i=e.filters[n],r=e.newColumns.filter((function(t){return t.field===n}))[0];if(r&&r.customSearch&&"function"===typeof r.customSearch){if(!r.customSearch(t,i))return{v:!1}}else{var a=e.getValueByPath(t,n);if(null==a)return{v:!1};if(Number.isInteger(a)){if(a!==Number(i))return{v:!1}}else{var o=new RegExp(W(i),"i");if(Array.isArray(a)){var s=a.some((function(t){return o.test(U(t))||o.test(t)}));if(!s)return{v:!1}}else if(!o.test(U(a))&&!o.test(a))return{v:!1}}}};for(var r in this.filters){var a=n(r);switch(a){case"continue":continue;default:if("object"===i(a))return a.v}}return!0},handleDetailKey:function(t){var e=this.detailKey;return e.length&&t?t[e]:t},checkPredefinedDetailedRows:function(){var t=this.openedDetailed.length>0;if(t&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&Object.keys(this.currentSortColumn).length>0)for(var t=0;t<this.newColumns.length;t++)if(this.newColumns[t].field===this.currentSortColumn.field){this.currentSortColumn=this.newColumns[t];break}},hasCustomFooterSlot:function(){if(this.$slots.footer.length>1)return!0;var t=this.$slots.footer[0].tag;return"th"===t||"td"===t},hasBottomLeftSlot:function(){return"undefined"!==typeof this.$slots["bottom-left"]},pressedArrow:function(t){if(this.visibleData.length){var e=this.visibleData.indexOf(this.selected)+t;e=e<0?0:e>this.visibleData.length-1?this.visibleData.length-1:e;var n=this.visibleData[e];if(this.isRowSelectable(n))this.selectRow(n);else{var i=null;if(t>0)for(var r=e;r<this.visibleData.length&&null===i;r++)this.isRowSelectable(this.visibleData[r])&&(i=r);else for(var a=e;a>=0&&null===i;a--)this.isRowSelectable(this.visibleData[a])&&(i=a);i>=0&&this.selectRow(this.visibleData[i])}}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((function(e){t.sortMultiColumn(e)}));else{if(!this.defaultSort)return;var e="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):e=this.defaultSort;var i=this.newColumns.filter((function(t){return t.field===e}))[0];i&&(this.isAsc="desc"!==n.toLowerCase(),this.sort(i,!0))}},handleDragStart:function(t,e,n){this.canDragRow&&(this.isDraggingRow=!0,this.$emit("dragstart",{event:t,row:e,index:n}))},handleDragEnd:function(t,e,n){this.canDragRow&&(this.isDraggingRow=!1,this.$emit("dragend",{event:t,row:e,index:n}))},handleDrop:function(t,e,n){this.canDragRow&&this.$emit("drop",{event:t,row:e,index:n})},handleDragOver:function(t,e,n){this.canDragRow&&this.$emit("dragover",{event:t,row:e,index:n})},handleDragLeave:function(t,e,n){this.canDragRow&&this.$emit("dragleave",{event:t,row:e,index:n})},emitEventForRow:function(t,e,n){return this.$listeners[t]?this.$emit(t,n,e):null},handleColumnDragStart:function(t,e,n){this.canDragColumn&&(this.isDraggingColumn=!0,this.$emit("columndragstart",{event:t,column:e,index:n}))},handleColumnDragEnd:function(t,e,n){this.canDragColumn&&(this.isDraggingColumn=!1,this.$emit("columndragend",{event:t,column:e,index:n}))},handleColumnDrop:function(t,e,n){this.canDragColumn&&this.$emit("columndrop",{event:t,column:e,index:n})},handleColumnDragOver:function(t,e,n){this.canDragColumn&&this.$emit("columndragover",{event:t,column:e,index:n})},handleColumnDragLeave:function(t,e,n){this.canDragColumn&&this.$emit("columndragleave",{event:t,column:e,index:n})},refreshSlots:function(){this.defaultSlots=this.$slots.default||[]}},mounted:function(){this.refreshSlots(),this.checkPredefinedDetailedRows(),this.checkSort()}};const jf=Bf;var zf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-table"},[t._t("default"),t.mobileCards&&t.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":t.currentSortColumn,"sort-multiple":t.sortMultiple,"sort-multiple-data":t.sortMultipleDataComputed,"is-asc":t.isAsc,columns:t.newColumns,placeholder:t.mobileSortPlaceholder,"icon-pack":t.iconPack,"sort-icon":t.sortIcon,"sort-icon-size":t.sortIconSize},on:{sort:function(e,n){return t.sort(e,null,n)},removePriority:function(e){return t.removeSortingPriority(e)}}}):t._e(),!t.paginated||"top"!==t.paginationPosition&&"both"!==t.paginationPosition?t._e():[t._t("pagination",[n("b-table-pagination",t._b({attrs:{"per-page":t.perPage,paginated:t.paginated,rounded:t.paginationRounded,"icon-pack":t.iconPack,total:t.newDataTotal,"current-page":t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel,"page-input":t.pageInput,"pagination-order":t.paginationOrder,"page-input-position":t.pageInputPosition,"debounce-page-input":t.debouncePageInput},on:{"update:currentPage":function(e){t.newCurrentPage=e},"update:current-page":function(e){t.newCurrentPage=e},"page-change":function(e){return t.$emit("page-change",e)}}},"b-table-pagination",t.$attrs,!1),[t._t("top-left")],2)])],n("div",{staticClass:"table-wrapper",class:t.tableWrapperClasses,style:t.tableStyle},[n("table",{staticClass:"table",class:t.tableClasses,attrs:{tabindex:!!t.focusable&&0},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pressedArrow(-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pressedArrow(1))}]}},[t.caption?n("caption",{directives:[{name:"show",rawName:"v-show",value:t.showCaption,expression:"showCaption"}]},[t._v(t._s(t.caption))]):t._e(),t.newColumns.length&&t.showHeader?n("thead",[n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[t.headerCheckable?[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isAllChecked,type:t.checkboxType,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",t._b({key:e.newKey+":"+i+"header",class:[e.thClasses,{"is-current-sort":!t.sortMultiple&&t.currentSortColumn===e}],style:e.thStyle,attrs:{draggable:t.canDragColumn},on:{click:function(n){return n.stopPropagation(),t.sort(e,null,n)},dragstart:function(n){return t.handleColumnDragStart(n,e,i)},dragend:function(n){return t.handleColumnDragEnd(n,e,i)},drop:function(n){return t.handleColumnDrop(n,e,i)},dragover:function(n){return t.handleColumnDragOver(n,e,i)},dragleave:function(n){return t.handleColumnDragLeave(n,e,i)}}},"th",e.thAttrs(e),!1),[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.header?[n("b-slot-component",{attrs:{component:e,scoped:"",name:"header",tag:"span",props:{column:e,index:i}}})]:[n("span",{staticClass:"is-relative"},[t._v(" "+t._s(e.label)+" "),t.sortMultiple&&t.sortMultipleDataComputed&&t.sortMultipleDataComputed.length>0&&t.sortMultipleDataComputed.filter((function(t){return t.field===e.field})).length>0?[n("b-icon",{class:{"is-desc":"desc"===t.sortMultipleDataComputed.filter((function(t){return t.field===e.field}))[0].order},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}),t._v(" "+t._s(t.findIndexOfSortData(e))+" "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(n){return n.stopPropagation(),t.removeSortingPriority(e)}}})]:n("b-icon",{staticClass:"sort-icon",class:{"is-desc":!t.isAsc,"is-invisible":t.currentSortColumn!==e},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}})],2)]],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[t.headerCheckable?[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isAllChecked,type:t.checkboxType,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e()],2),t.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",{key:e.newKey+":"+i+"subheading",style:e.style},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:e,scoped:"",name:"subheading",tag:"span",props:{column:e,index:i}}})]:[t._v(t._s(e.subheading))]],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e(),t.hasSearchablenewColumns?n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._l(t.visibleColumns,(function(e,i){return n("th",t._b({key:e.newKey+":"+i+"searchable",class:{"is-sticky":e.sticky},style:e.thStyle},"th",e.thAttrs(e),!1),[n("div",{staticClass:"th-wrap"},[e.searchable?[e.$scopedSlots&&e.$scopedSlots.searchable?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"searchable",tag:"span",props:{column:e,filters:t.filters}}})]:n("b-input",{attrs:{type:e.numeric?"number":"text"},nativeOn:t._d({},[t.filtersEvent,function(e){return t.onFiltersEvent(e)}]),model:{value:t.filters[e.field],callback:function(n){t.$set(t.filters,e.field,n)},expression:"filters[column.field]"}})]:t._e()],2)])})),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e()]):t._e(),n("tbody",[t._l(t.visibleData,(function(e,i){return[n("tr",{key:t.customRowKey?e[t.customRowKey]:i,class:[t.rowClass(e,i),{"is-selected":t.isRowSelected(e,t.selected),"is-checked":t.isRowChecked(e)}],attrs:{draggable:t.canDragRow},on:{click:function(n){return t.selectRow(e)},dblclick:function(n){return t.$emit("dblclick",e)},mouseenter:function(n){return t.emitEventForRow("mouseenter",n,e)},mouseleave:function(n){return t.emitEventForRow("mouseleave",n,e)},contextmenu:function(n){return t.$emit("contextmenu",e,n)},dragstart:function(n){return t.handleDragStart(n,e,i)},dragend:function(n){return t.handleDragEnd(n,e,i)},drop:function(n){return t.handleDrop(n,e,i)},dragover:function(n){return t.handleDragOver(n,e,i)},dragleave:function(n){return t.handleDragLeave(n,e,i)}}},[t.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[t.hasDetailedVisible(e)?n("a",{attrs:{role:"button"},on:{click:function(n){return n.stopPropagation(),t.toggleDetails(e)}}},[n("b-icon",{class:{"is-expanded":t.isVisibleDetailRow(e)},attrs:{icon:t.detailIcon,pack:t.iconPack,both:""}})],1):t._e()]):t._e(),t.checkable&&"left"===t.checkboxPosition?n("td",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isRowChecked(e),type:t.checkboxType,disabled:!t.isRowCheckable(e)},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.checkRow(e,i,n)}}})],1):t._e(),t._l(t.visibleColumns,(function(r,a){return[r.$scopedSlots&&r.$scopedSlots.default?[n("b-slot-component",t._b({key:r.newKey+":"+i+":"+a,class:r.getRootClasses(e),style:r.getRootStyle(e),attrs:{component:r,scoped:"",name:"default",tag:"td","data-label":r.label,props:{row:e,column:r,index:i,colindex:a,toggleDetails:t.toggleDetails}},nativeOn:{click:function(n){return t.$emit("cellclick",e,r,i,a)}}},"b-slot-component",r.tdAttrs(e,r),!1))]:t._e()]})),t.checkable&&"right"===t.checkboxPosition?n("td",{class:["checkbox-cell",{"is-sticky":t.stickyCheckbox}]},[n("b-checkbox",{attrs:{autocomplete:"off",value:t.isRowChecked(e),type:t.checkboxType,disabled:!t.isRowCheckable(e)},nativeOn:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.checkRow(e,i,n)}}})],1):t._e()],2),n("transition",{key:(t.customRowKey?e[t.customRowKey]:i)+"detail",attrs:{name:t.detailTransition}},[t.isActiveDetailRow(e)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:t.columnCount}},[n("div",{staticClass:"detail-container"},[t._t("detail",null,{row:e,index:i})],2)])]):t._e()]),t.isActiveCustomDetailRow(e)?t._t("detail",null,{row:e,index:i}):t._e()]})),t.visibleData.length?t._e():n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:t.columnCount}},[t._t("empty")],2)])],2),void 0!==t.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[t.hasCustomFooterSlot()?t._t("footer"):n("th",{attrs:{colspan:t.columnCount}},[t._t("footer")],2)],2)]):t._e()]),t.loading?[t._t("loading",[n("b-loading",{attrs:{"is-full-page":!1,active:t.loading},on:{"update:active":function(e){t.loading=e}}})])]:t._e()],2),t.checkable&&t.hasBottomLeftSlot()||t.paginated&&("bottom"===t.paginationPosition||"both"===t.paginationPosition)?[t._t("pagination",[n("b-table-pagination",t._b({attrs:{"per-page":t.perPage,paginated:t.paginated,rounded:t.paginationRounded,"icon-pack":t.iconPack,total:t.newDataTotal,"current-page":t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel,"page-input":t.pageInput,"pagination-order":t.paginationOrder,"page-input-position":t.pageInputPosition,"debounce-page-input":t.debouncePageInput},on:{"update:currentPage":function(e){t.newCurrentPage=e},"update:current-page":function(e){t.newCurrentPage=e},"page-change":function(e){return t.$emit("page-change",e)}}},"b-table-pagination",t.$attrs,!1),[t._t("bottom-left")],2)])]:t._e()],2)},Hf=[];const Vf=void 0,Gf=void 0,Wf=void 0,Uf=!1;var Yf=st({render:zf,staticRenderFns:Hf},Vf,jf,Gf,Uf,Wf,void 0,void 0),qf={install:function(t){"undefined"===typeof tt&&at(t),lt(t,Yf),lt(t,Of)}};ct(qf);const Xf=qf;var Kf={name:"BTabs",mixins:[Id("tab")],props:{expanded:{type:Boolean,default:function(){return it.defaultTabsExpanded}},type:{type:[String,Object],default:function(){return it.defaultTabsType}},animated:{type:Boolean,default:function(){return it.defaultTabsAnimated}},multiline:Boolean},data:function(){return{currentFocus:this.value}},computed:{mainClasses:function(){return s({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var t;return[this.type,this.size,(t={},s(t,this.position,this.position&&!this.vertical),s(t,"is-fullwidth",this.expanded),s(t,"is-toggle","is-toggle-rounded"===this.type),t)]}},methods:{giveFocusToTab:function(t){t.$el&&t.$el.focus?t.$el.focus():t.focus&&t.focus()},manageTablistKeydown:function(t){var e=t.key;switch(e){case this.vertical?"ArrowUp":"ArrowLeft":case this.vertical?"Up":"Left":var n=this.getPrevItemIdx(this.currentFocus,!0);null===n&&(n=this.getPrevItemIdx(this.items.length,!0)),null!==n&&this.$refs.tabLink&&n<this.$refs.tabLink.length&&!this.items[n].disabled&&this.giveFocusToTab(this.$refs.tabLink[n]),t.preventDefault();break;case this.vertical?"ArrowDown":"ArrowRight":case this.vertical?"Down":"Right":var i=this.getNextItemIdx(this.currentFocus,!0);null===i&&(i=this.getNextItemIdx(-1,!0)),null!==i&&this.$refs.tabLink&&i<this.$refs.tabLink.length&&!this.items[i].disabled&&this.giveFocusToTab(this.$refs.tabLink[i]),t.preventDefault();break}},manageTabKeydown:function(t,e){var n=t.key;switch(n){case" ":case"Space":case"Spacebar":case"Enter":this.childClick(e),t.preventDefault();break}}}};const Jf=Kf;var Zf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-tabs",class:t.mainClasses},[n("nav",{staticClass:"tabs",class:t.navClasses,on:{keydown:t.manageTablistKeydown}},[t._t("start"),n("ul",{attrs:{"aria-orientation":t.vertical?"vertical":"horizontal",role:"tablist"}},t._l(t.items,(function(e,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"childItem.visible"}],key:e.value,class:[e.headerClass,{"is-active":e.isActive,"is-disabled":e.disabled}],attrs:{role:"tab","aria-controls":e.value+"-content","aria-selected":""+e.isActive}},[e.$scopedSlots.header?n("b-slot-component",{ref:"tabLink",refInFor:!0,attrs:{component:e,name:"header",tag:"a",id:e.value+"-label",tabindex:e.isActive?0:-1},on:{keydown:function(n){return t.manageTabKeydown(n,e)}},nativeOn:{focus:function(e){t.currentFocus=i},click:function(n){return t.childClick(e)}}}):n("a",{ref:"tabLink",refInFor:!0,attrs:{id:e.value+"-label",tabindex:e.isActive?0:-1},on:{focus:function(e){t.currentFocus=i},click:function(n){return t.childClick(e)},keydown:function(n){return t.manageTabKeydown(n,e)}}},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):t._e(),n("span",[t._v(t._s(e.label))])],1)],1)})),0),t._t("end")],2),n("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},Qf=[];const tp=void 0,ep=void 0,np=void 0,ip=!1;var rp=st({render:Zf,staticRenderFns:Qf},tp,Jf,ep,ip,np,void 0,void 0),ap={name:"BTabItem",mixins:[Nd("tab")],props:{disabled:Boolean},data:function(){return{elementClass:"tab-item",elementRole:"tabpanel"}}};const op=ap,sp=void 0,cp=void 0,lp=void 0,up=void 0;var hp=st({},sp,op,cp,up,lp,void 0,void 0),dp={install:function(t){lt(t,rp),lt(t,hp)}};ct(dp);const fp=dp;var pp={name:"BTag",props:{attached:Boolean,closable:Boolean,type:String,size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,icon:String,iconType:String,iconPack:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},methods:{close:function(t){this.disabled||this.$emit("close",t)},click:function(t){this.disabled||this.$emit("click",t)}}};const vp=pp;var mp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.attached&&t.closable?n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[t.icon?n("b-icon",{attrs:{icon:t.icon,size:t.size,type:t.iconType,pack:t.iconPack}}):t._e(),n("span",{class:{"has-ellipsis":t.ellipsis},on:{click:t.click}},[t._t("default")],2)],1),n("a",{staticClass:"tag",class:[t.size,t.closeType,{"is-rounded":t.rounded},t.closeIcon?"has-delete-icon":"is-delete"],attrs:{role:"button","aria-label":t.ariaCloseLabel,tabindex:!!t.tabstop&&0,disabled:t.disabled},on:{click:t.close,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}},[t.closeIcon?n("b-icon",{attrs:{"custom-class":"",icon:t.closeIcon,size:t.size,type:t.closeIconType,pack:t.closeIconPack}}):t._e()],1)]):n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[t.icon?n("b-icon",{attrs:{icon:t.icon,size:t.size,type:t.iconType,pack:t.iconPack}}):t._e(),n("span",{class:{"has-ellipsis":t.ellipsis},on:{click:t.click}},[t._t("default")],2),t.closable?n("a",{staticClass:"delete is-small",class:t.closeType,attrs:{role:"button","aria-label":t.ariaCloseLabel,disabled:t.disabled,tabindex:!!t.tabstop&&0},on:{click:t.close,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.preventDefault(),t.close(e))}}}):t._e()],1)},gp=[];const yp=void 0,bp=void 0,_p=void 0,wp=!1;var kp=st({render:mp,staticRenderFns:gp},yp,vp,bp,wp,_p,void 0,void 0),Sp={name:"BTaglist",props:{attached:Boolean}};const xp=Sp;var Cp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tags",class:{"has-addons":t.attached}},[t._t("default")],2)},Dp=[];const Tp=void 0,Op=void 0,Ep=void 0,Ap=!1;var Pp=st({render:Cp,staticRenderFns:Dp},Tp,xp,Op,Ap,Ep,void 0,void 0),Mp={install:function(t){lt(t,kp),lt(t,Pp)}};ct(Mp);const Rp=Mp;var Ip,Np={name:"BTaginput",components:(Ip={},s(Ip,zt.name,zt),s(Ip,kp.name,kp),Ip),mixins:[ht],inheritAttrs:!1,props:{value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},type:String,closeType:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},hasCounter:{type:Boolean,default:function(){return it.defaultTaginputHasCounter}},field:{type:String,default:"value"},autocomplete:Boolean,groupField:String,groupOptions:String,nativeAutocomplete:String,openOnFocus:Boolean,keepFirst:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},ariaCloseLabel:String,confirmKeys:{type:Array,default:function(){return[",","Tab","Enter"]}},removeOnKeys:{type:Array,default:function(){return["Backspace"]}},allowNew:Boolean,onPasteSeparators:{type:Array,default:function(){return[","]}},beforeAdding:{type:Function,default:function(){return!0}},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:function(t){return t}},appendToBody:Boolean},data:function(){return{tags:Array.isArray(this.value)?this.value.slice(0):this.value||[],newTag:"",isComposing:!1,_elementRef:"autocomplete",_isTaginput:!0}},computed:{listeners:function(){var t=this.$listeners,e=(t.input,y(t,["input"]));return e},rootClasses:function(){return{"is-expanded":this.expanded}},containerClasses:function(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength:function(){return this.newTag.trim().length},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},hasInput:function(){return null==this.maxtags||1===this.maxtags||this.tagsLength<this.maxtags},tagsLength:function(){return this.tags.length},separatorsAsRegExp:function(){var t=this.onPasteSeparators;return t.length?new RegExp(t.map((function(t){return t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null})).join("|"),"g"):null}},watch:{value:function(t){this.tags=Array.isArray(t)?t.slice(0):t||[]},hasInput:function(){this.hasInput||this.onBlur()}},methods:{addTag:function(t){var e=this,n=t||this.newTag.trim();if(n){if(!this.autocomplete){var i=this.separatorsAsRegExp;if(i&&n.match(i))return void n.split(i).map((function(t){return t.trim()})).filter((function(t){return 0!==t.length})).map(this.addTag)}var r=!!this.allowDuplicates||-1===this.tags.indexOf(n);r&&this.beforeAdding(n)&&(1===this.maxtags&&(this.tags=[]),this.tags.push(this.createTag(n)),this.$emit("input",this.tags),this.$emit("add",n)),requestAnimationFrame((function(){e.newTag="",e.$emit("typing","")}))}},getNormalizedTagText:function(t){return"object"===i(t)&&(t=$(t,this.field)),"".concat(t)},customOnBlur:function(t){this.autocomplete||this.addTag(),this.onBlur(t)},onSelect:function(t){var e=this;t&&(this.addTag(t),this.$nextTick((function(){e.newTag=""})))},removeTag:function(t,e){var n=this.tags.splice(t,1)[0];return this.$emit("input",this.tags),this.$emit("remove",n),e&&e.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),n},removeLastTag:function(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown:function(t){var e=t.key;if(-1===this.removeOnKeys.indexOf(e)||this.newTag.length||this.removeLastTag(),(!this.autocomplete||this.allowNew)&&this.confirmKeys.indexOf(e)>=0){if("Tab"!==e&&t.preventDefault(),"Enter"===e&&this.isComposing)return;this.addTag()}},onTyping:function(t){this.$emit("typing",t.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}};const $p=Np;var Lp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"taginput control",class:t.rootClasses},[n("div",{staticClass:"taginput-container",class:[t.statusType,t.size,t.containerClasses],attrs:{disabled:t.disabled},on:{click:function(e){t.hasInput&&t.focus(e)}}},[t._t("selected",t._l(t.tags,(function(e,i){return n("b-tag",{key:t.getNormalizedTagText(e)+i,attrs:{type:t.type,"close-type":t.closeType,size:t.size,rounded:t.rounded,attached:t.attached,tabstop:!1,disabled:t.disabled,ellipsis:t.ellipsis,closable:t.closable,"aria-close-label":t.ariaCloseLabel,title:t.ellipsis&&t.getNormalizedTagText(e)},on:{close:function(e){return t.removeTag(i,e)}}},[t._t("tag",[t._v(" "+t._s(t.getNormalizedTagText(e))+" ")],{tag:e})],2)})),{tags:t.tags}),t.hasInput?n("b-autocomplete",t._g(t._b({ref:"autocomplete",attrs:{data:t.data,field:t.field,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,"has-counter":!1,size:t.size,disabled:t.disabled,loading:t.loading,autocomplete:t.nativeAutocomplete,"open-on-focus":t.openOnFocus,"keep-open":t.openOnFocus,"keep-first":t.keepFirst,"group-field":t.groupField,"group-options":t.groupOptions,"use-html5-validation":t.useHtml5Validation,"check-infinite-scroll":t.checkInfiniteScroll,"append-to-body":t.appendToBody,"confirm-keys":t.confirmKeys},on:{typing:t.onTyping,focus:t.onFocus,blur:t.customOnBlur,select:t.onSelect,"infinite-scroll":t.emitInfiniteScroll},nativeOn:{keydown:function(e){return t.keydown(e)},compositionstart:function(e){t.isComposing=!0},compositionend:function(e){t.isComposing=!1}},scopedSlots:t._u([t.hasHeaderSlot?{key:"header",fn:function(){return[t._t("header")]},proxy:!0}:null,t.hasDefaultSlot?{key:"default",fn:function(e){return[t._t("default",null,{option:e.option,index:e.index})]}}:null,t.hasEmptySlot?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.hasFooterSlot?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0),model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}},"b-autocomplete",t.$attrs,!1),t.listeners)):t._e()],2),t.hasCounter&&(t.maxtags||t.maxlength)?n("small",{staticClass:"help counter"},[t.maxlength&&t.valueLength>0?[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]:t.maxtags?[t._v(" "+t._s(t.tagsLength)+" / "+t._s(t.maxtags)+" ")]:t._e()],2):t._e()])},Fp=[];const Bp=void 0,jp=void 0,zp=void 0,Hp=!1;var Vp=st({render:Lp,staticRenderFns:Fp},Bp,$p,jp,Hp,zp,void 0,void 0),Gp={install:function(t){lt(t,Vp)}};ct(Gp);const Wp=Gp;var Up={install:function(t){lt(t,ko)}};ct(Up);const Yp=Up;var qp={name:"BToast",mixins:[wc],data:function(){return{newDuration:this.duration||it.defaultToastDuration}}};const Xp=qp;var Kp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"},on:{mouseenter:t.pause,mouseleave:t.removePause}},[t.$slots.default?[t._t("default")]:[n("div",{domProps:{innerHTML:t._s(t.message)}})]],2)])},Jp=[];const Zp=void 0,Qp=void 0,tv=void 0,ev=!1;var nv,iv=st({render:Kp,staticRenderFns:Jp},Zp,Xp,Qp,ev,tv,void 0,void 0),rv={open:function(t){var e;"string"===typeof t&&(t={message:t});var n,i={position:it.defaultToastPosition||"is-top"};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message);var r=j(i,t),a="undefined"!==typeof window&&window.Vue?window.Vue:nv||tt,o=a.extend(iv),s=new o({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},av={install:function(t){nv=t,ut(t,"toast",rv)}};ct(av);const ov=av;var sv={install:function(t){lt(t,Cr)}};ct(sv);const cv=sv;var lv={name:"BUpload",mixins:[ht],inheritAttrs:!1,props:{value:{type:[Object,Function,ys,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(t){this.newValue=t,(!t||Array.isArray(t)&&0===t.length)&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(t){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var e=t.target.files||t.dataTransfer.files;if(0===e.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var n=!1;!this.native&&this.newValue||(this.newValue=[],n=!0);for(var i=0;i<e.length;i++){var r=e[i];this.checkType(r)&&(this.newValue.push(r),n=!0)}if(!n)return}else{if(this.dragDrop&&1!==e.length)return;var a=e[0];if(this.checkType(a))this.newValue=a;else{if(!this.newValue)return this.clearInput(),void this.checkHtml5Validity();this.newValue=null,this.clearInput()}}this.$emit("input",this.newValue),!this.dragDrop&&this.checkHtml5Validity()}},clearInput:function(){this.$refs.input.value=null},updateDragDropFocus:function(t){this.disabled||this.loading||(this.dragDropFocus=t)},checkType:function(t){if(!this.accept)return!0;var e=this.accept.split(",");if(0===e.length)return!0;for(var n=!1,i=0;i<e.length&&!n;i++){var r=e[i].trim();if(r)if("."===r.substring(0,1)){var a=t.name.toLowerCase().slice(-r.length);a===r.toLowerCase()&&(n=!0)}else t.type.match(r)&&(n=!0)}return n||this.$emit("invalid"),n}}};const uv=lv;var hv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"upload control",class:{"is-expanded":t.expanded,"is-rounded":t.rounded}},[t.dragDrop?n("div",{staticClass:"upload-draggable",class:[t.type,{"is-loading":t.loading,"is-disabled":t.disabled,"is-hovered":t.dragDropFocus,"is-expanded":t.expanded}],on:{dragover:function(e){return e.preventDefault(),t.updateDragDropFocus(!0)},dragleave:function(e){return e.preventDefault(),t.updateDragDropFocus(!1)},dragenter:function(e){return e.preventDefault(),t.updateDragDropFocus(!0)},drop:function(e){return e.preventDefault(),t.onFileChange(e)}}},[t._t("default")],2):[t._t("default")],n("input",t._b({ref:"input",attrs:{type:"file",multiple:t.multiple,accept:t.accept,disabled:t.disabled},on:{change:t.onFileChange}},"input",t.$attrs,!1))],2)},dv=[];const fv=void 0,pv=void 0,vv=void 0,mv=!1;var gv=st({render:hv,staticRenderFns:dv},fv,uv,pv,mv,vv,void 0,void 0),yv={install:function(t){lt(t,gv)}};ct(yv);const bv=yv;var _v={getOptions:function(){return it},setOptions:function(t){rt(j(it,t,!0))}};const wv=_v;var kv=Object.freeze({Autocomplete:Vt,Breadcrumb:le,Button:_e,Carousel:pn,Checkbox:Nn,Clockpicker:sr,Collapse:Gn,Colorpicker:Sa,Datepicker:uo,Datetimepicker:No,Dialog:as,Dropdown:ss,Field:ls,Icon:hs,Image:fs,Input:vs,Loading:Ps,Menu:rc,Message:mc,Modal:_c,Navbar:Gl,Notification:Vc,Numberinput:nu,Pagination:xu,Progress:Gu,Radio:uh,Rate:wh,Select:Sh,Skeleton:Mh,Sidebar:Vh,Slider:bd,Snackbar:Md,Steps:Qd,Switch:hf,Table:Xf,Tabs:fp,Tag:Rp,Taginput:Wp,Timepicker:Yp,Toast:ov,Tooltip:cv,Upload:bv}),Sv={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in at(t),rt(j(it,e,!0)),kv)t.use(kv[n]);ut(t,"config",wv),t.prototype.$buefy.globalNoticeInterval=null}};ct(Sv);const xv=Sv},474:(t,e,n)=>{"use strict";
2
2
  /**!
3
3
  * Sortable 1.10.2
4
4
  * @author RubaXa <trash@rubaxa.org>
@@ -43,5 +43,5 @@ var i=Object.freeze({}),r=Array.isArray;function a(t){return void 0===t||null===
43
43
  * (c) 2021 Evan You
44
44
  * @license MIT
45
45
  */
46
- function i(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,{Se:()=>N,ZP:()=>X,nv:()=>$,rn:()=>R});var r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},a=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){a&&(t._devtoolHook=a,a.emit("vuex:init",t),a.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){a.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){a.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){return t.filter(e)[0]}function c(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=s(e,(function(e){return e.original===t}));if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(n){i[n]=c(t[n],e)})),i}function l(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function u(t){return null!==t&&"object"===typeof t}function h(t){return t&&"function"===typeof t.then}function d(t,e){return function(){return t(e)}}var f=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(t,e){this._children[t]=e},f.prototype.removeChild=function(t){delete this._children[t]},f.prototype.getChild=function(t){return this._children[t]},f.prototype.hasChild=function(t){return t in this._children},f.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},f.prototype.forEachChild=function(t){l(this._children,t)},f.prototype.forEachGetter=function(t){this._rawModule.getters&&l(this._rawModule.getters,t)},f.prototype.forEachAction=function(t){this._rawModule.actions&&l(this._rawModule.actions,t)},f.prototype.forEachMutation=function(t){this._rawModule.mutations&&l(this._rawModule.mutations,t)},Object.defineProperties(f.prototype,p);var v=function(t){this.register([],t,!1)};function m(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;m(t.concat(i),e.getChild(i),n.modules[i])}}v.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},v.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},v.prototype.update=function(t){m([],this.root,t)},v.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new f(e,n);if(0===t.length)this.root=r;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],r)}e.modules&&l(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},v.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},v.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var g;var y=function(t){var e=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(r,t,e)},this.commit=function(t,e,n){return c.call(r,t,e,n)},this.strict=i;var l=this._modules.root.state;S(this,l,[],this._modules.root),k(this,l),n.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:g.config.devtools;u&&o(this)},b={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function w(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;S(t,n,[],t._modules.root,!0),k(t,n,e)}function k(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,a={};l(r,(function(e,n){a[n]=d(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var o=g.config.silent;g.config.silent=!0,t._vm=new g({data:{$$state:e},computed:a}),g.config.silent=o,t.strict&&E(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),g.nextTick((function(){return i.$destroy()})))}function S(t,e,n,i,r){var a=!n.length,o=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=i),!a&&!r){var s=A(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){g.set(s,c,i.state)}))}var l=i.context=x(t,o,n);i.forEachMutation((function(e,n){var i=o+n;D(t,i,e,l)})),i.forEachAction((function(e,n){var i=e.root?n:o+n,r=e.handler||e;T(t,i,r,l)})),i.forEachGetter((function(e,n){var i=o+n;O(t,i,e,l)})),i.forEachChild((function(i,a){S(t,e,n.concat(a),i,r)}))}function x(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var a=P(n,i,r),o=a.payload,s=a.options,c=a.type;return s&&s.root||(c=e+c),t.dispatch(c,o)},commit:i?t.commit:function(n,i,r){var a=P(n,i,r),o=a.payload,s=a.options,c=a.type;s&&s.root||(c=e+c),t.commit(c,o,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return A(t.state,n)}}}),r}function C(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var a=r.slice(i);Object.defineProperty(n,a,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function D(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}function T(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return h(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}function O(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)})}function E(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function P(t,e,n){return u(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function M(t){g&&t===g||(g=t,i(g))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){0},y.prototype.commit=function(t,e,n){var i=this,r=P(t,e,n),a=r.type,o=r.payload,s=(r.options,{type:a,payload:o}),c=this._mutations[a];c&&(this._withCommit((function(){c.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},y.prototype.dispatch=function(t,e){var n=this,i=P(t,e),r=i.type,a=i.payload,o={type:r,payload:a},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(t){return t(a)}))):s[0](a);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,n.state)}))}catch(l){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,n.state,t)}))}catch(l){0}e(t)}))}))}},y.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},y.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},y.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},y.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),S(this,this.state,t,this._modules.get(t),n.preserveState),k(this,this.state)},y.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=A(e.state,t.slice(0,-1));g.delete(n,t[t.length-1])})),w(this)},y.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},y.prototype.hotUpdate=function(t){this._modules.update(t),w(this,!0)},y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(y.prototype,b);var R=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=z(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),I=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var a=z(this.$store,"mapMutations",t);if(!a)return;i=a.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),N=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),$=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var a=z(this.$store,"mapActions",t);if(!a)return;i=a.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),L=function(t){return{mapState:R.bind(null,t),mapGetters:N.bind(null,t),mapMutations:I.bind(null,t),mapActions:$.bind(null,t)}};function F(t){return B(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function B(t){return Array.isArray(t)||u(t)}function j(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function z(t,e,n){var i=t._modulesNamespaceMap[n];return i}function H(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var r=t.mutationTransformer;void 0===r&&(r=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var o=t.actionTransformer;void 0===o&&(o=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var l=t.logActions;void 0===l&&(l=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var h=c(t.state);"undefined"!==typeof u&&(s&&t.subscribe((function(t,a){var o=c(a);if(n(t,h,o)){var s=W(),l=r(t),d="mutation "+t.type+s;V(u,d,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",i(o)),G(u)}h=o})),l&&t.subscribeAction((function(t,n){if(a(t,n)){var i=W(),r=o(t),s="action "+t.type+i;V(u,s,e),u.log("%c action","color: #03A9F4; font-weight: bold",r),G(u)}})))}}function V(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(r){t.log(e)}}function G(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function W(){var t=new Date;return" @ "+Y(t.getHours(),2)+":"+Y(t.getMinutes(),2)+":"+Y(t.getSeconds(),2)+"."+Y(t.getMilliseconds(),3)}function U(t,e){return new Array(e+1).join(t)}function Y(t,e){return U("0",e-t.toString().length)+t}var q={Store:y,install:M,version:"3.6.2",mapState:R,mapMutations:I,mapGetters:N,mapActions:$,createNamespacedHelpers:L,createLogger:H};const X=q},636:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return a="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},a(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return f(t)||v(t,e)||m(t,e)||b()}function h(t){return d(t)||p(t)||m(t)||y()}function d(t){if(Array.isArray(t))return g(t)}function f(t){if(Array.isArray(t))return t}function p(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function v(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(i=n.next()).done);o=!0)if(a.push(i.value),e&&a.length===e)break}catch(c){s=!0,r=c}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw r}}return a}}function m(t,e){if(t){if("string"===typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Qc:()=>hi,fL:()=>fi,qv:()=>di,vI:()=>ui,vc:()=>li});var _=function(){},w={},k={},S=null,x={mark:_,measure:_};try{"undefined"!==typeof window&&(w=window),"undefined"!==typeof document&&(k=document),"undefined"!==typeof MutationObserver&&(S=MutationObserver),"undefined"!==typeof performance&&(x=performance)}catch(pi){}var C,D,T,O,E,A=w.navigator||{},P=A.userAgent,M=void 0===P?"":P,R=w,I=k,N=S,$=x,L=(R.document,!!I.documentElement&&!!I.head&&"function"===typeof I.addEventListener&&"function"===typeof I.createElement),F=~M.indexOf("MSIE")||~M.indexOf("Trident/"),B="___FONT_AWESOME___",j=16,z="fa",H="svg-inline--fa",V="data-fa-i2svg",G="data-fa-pseudo-element",W="data-fa-pseudo-element-pending",U="data-prefix",Y="data-icon",q="fontawesome-i2svg",X="async",K=["HTML","HEAD","STYLE","SCRIPT"],J=function(){try{return!0}catch(pi){return!1}}(),Z="classic",Q="sharp",tt=[Z,Q];function et(t){return new Proxy(t,{get:function(t,e){return e in t?t[e]:t[Z]}})}var nt=et((C={},l(C,Z,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),l(C,Q,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),C)),it=et((D={},l(D,Z,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),l(D,Q,{solid:"fass",regular:"fasr"}),D)),rt=et((T={},l(T,Z,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),l(T,Q,{fass:"fa-solid",fasr:"fa-regular"}),T)),at=et((O={},l(O,Z,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),l(O,Q,{"fa-solid":"fass","fa-regular":"fasr"}),O)),ot=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,st="fa-layers-text",ct=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,lt=et((E={},l(E,Z,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),l(E,Q,{900:"fass",400:"fasr"}),E)),ut=[1,2,3,4,5,6,7,8,9,10],ht=ut.concat([11,12,13,14,15,16,17,18,19,20]),dt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ft={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pt=new Set;Object.keys(it[Z]).map(pt.add.bind(pt)),Object.keys(it[Q]).map(pt.add.bind(pt));var vt=[].concat(tt,h(pt),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ft.GROUP,ft.SWAP_OPACITY,ft.PRIMARY,ft.SECONDARY]).concat(ut.map((function(t){return"".concat(t,"x")}))).concat(ht.map((function(t){return"w-".concat(t)}))),mt=R.FontAwesomeConfig||{};function gt(t){var e=I.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function yt(t){return""===t||"false"!==t&&("true"===t||t)}if(I&&"function"===typeof I.querySelector){var bt=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["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"]];bt.forEach((function(t){var e=u(t,2),n=e[0],i=e[1],r=yt(gt(n));void 0!==r&&null!==r&&(mt[i]=r)}))}var _t={styleDefault:"solid",familyDefault:"classic",cssPrefix:z,replacementClass:H,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};mt.familyPrefix&&(mt.cssPrefix=mt.familyPrefix);var wt=r(r({},_t),mt);wt.autoReplaceSvg||(wt.observeMutations=!1);var kt={};Object.keys(_t).forEach((function(t){Object.defineProperty(kt,t,{enumerable:!0,set:function(e){wt[t]=e,St.forEach((function(t){return t(kt)}))},get:function(){return wt[t]}})})),Object.defineProperty(kt,"familyPrefix",{enumerable:!0,set:function(t){wt.cssPrefix=t,St.forEach((function(t){return t(kt)}))},get:function(){return wt.cssPrefix}}),R.FontAwesomeConfig=kt;var St=[];function xt(t){return St.push(t),function(){St.splice(St.indexOf(t),1)}}var Ct=j,Dt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tt(t){if(t&&L){var e=I.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=I.head.childNodes,i=null,r=n.length-1;r>-1;r--){var a=n[r],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=a)}return I.head.insertBefore(e,i),t}}var Ot="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Et(){var t=12,e="";while(t-- >0)e+=Ot[62*Math.random()|0];return e}function At(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Pt(t){return t.classList?At(t.classList):(t.getAttribute("class")||"").split(" ").filter((function(t){return t}))}function Mt(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Rt(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(Mt(t[n]),'" ')}),"").trim()}function It(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")}),"")}function Nt(t){return t.size!==Dt.size||t.x!==Dt.x||t.y!==Dt.y||t.rotate!==Dt.rotate||t.flipX||t.flipY}function $t(t){var e=t.transform,n=t.containerWidth,i=t.iconWidth,r={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*e.x,", ").concat(32*e.y,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),c={transform:"".concat(a," ").concat(o," ").concat(s)},l={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:c,path:l}}function Lt(t){var e=t.transform,n=t.width,i=void 0===n?j:n,r=t.height,a=void 0===r?j:r,o=t.startCentered,s=void 0!==o&&o,c="";return c+=s&&F?"translate(".concat(e.x/Ct-i/2,"em, ").concat(e.y/Ct-a/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/Ct,"em), calc(-50% + ").concat(e.y/Ct,"em)) "):"translate(".concat(e.x/Ct,"em, ").concat(e.y/Ct,"em) "),c+="scale(".concat(e.size/Ct*(e.flipX?-1:1),", ").concat(e.size/Ct*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var Ft=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\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-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: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\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-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\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: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\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@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 -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\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 z-index: var(--fa-stack-z-index, auto);\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: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Bt(){var t=z,e=H,n=kt.cssPrefix,i=kt.replacementClass,r=Ft;if(n!==t||i!==e){var a=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");r=r.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(i))}return r}var jt=!1;function zt(){kt.autoAddCss&&!jt&&(Tt(Bt()),jt=!0)}var Ht={mixout:function(){return{dom:{css:Bt,insertCss:zt}}},hooks:function(){return{beforeDOMElementCreation:function(){zt()},beforeI2svg:function(){zt()}}}},Vt=R||{};Vt[B]||(Vt[B]={}),Vt[B].styles||(Vt[B].styles={}),Vt[B].hooks||(Vt[B].hooks={}),Vt[B].shims||(Vt[B].shims=[]);var Gt=Vt[B],Wt=[],Ut=function t(){I.removeEventListener("DOMContentLoaded",t),Yt=1,Wt.map((function(t){return t()}))},Yt=!1;function qt(t){L&&(Yt?setTimeout(t,0):Wt.push(t))}function Xt(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,a=void 0===r?[]:r;return"string"===typeof t?Mt(t):"<".concat(e," ").concat(Rt(i),">").concat(a.map(Xt).join(""),"</").concat(e,">")}function Kt(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}L&&(Yt=(I.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(I.readyState),Yt||I.addEventListener("DOMContentLoaded",Ut));var Jt=function(t,e){return function(n,i,r,a){return t.call(e,n,i,r,a)}},Zt=function(t,e,n,i){var r,a,o,s=Object.keys(t),c=s.length,l=void 0!==i?Jt(e,i):e;for(void 0===n?(r=1,o=t[s[0]]):(r=0,o=n);r<c;r++)a=s[r],o=l(o,t[a],a,t);return o};function Qt(t){var e=[],n=0,i=t.length;while(n<i){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&r)<<10)+(1023&a)+65536):(e.push(r),n--)}else e.push(r)}return e}function te(t){var e=Qt(t);return 1===e.length?e[0].toString(16):null}function ee(t,e){var n,i=t.length,r=t.charCodeAt(e);return r>=55296&&r<=56319&&i>e+1&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}function ne(t){return Object.keys(t).reduce((function(e,n){var i=t[n],r=!!i.icon;return r?e[i.iconName]=i.icon:e[n]=i,e}),{})}function ie(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,a=void 0!==i&&i,o=ne(e);"function"!==typeof Gt.hooks.addPack||a?Gt.styles[t]=r(r({},Gt.styles[t]||{}),o):Gt.hooks.addPack(t,ne(e)),"fas"===t&&ie("fa",e)}var re,ae,oe,se=Gt.styles,ce=Gt.shims,le=(re={},l(re,Z,Object.values(rt[Z])),l(re,Q,Object.values(rt[Q])),re),ue=null,he={},de={},fe={},pe={},ve={},me=(ae={},l(ae,Z,Object.keys(nt[Z])),l(ae,Q,Object.keys(nt[Q])),ae);function ge(t){return~vt.indexOf(t)}function ye(t,e){var n=e.split("-"),i=n[0],r=n.slice(1).join("-");return i!==t||""===r||ge(r)?null:r}var be=function(){var t=function(t){return Zt(se,(function(e,n,i){return e[i]=Zt(n,t,{}),e}),{})};he=t((function(t,e,n){if(e[3]&&(t[e[3]]=n),e[2]){var i=e[2].filter((function(t){return"number"===typeof t}));i.forEach((function(e){t[e.toString(16)]=n}))}return t})),de=t((function(t,e,n){if(t[n]=n,e[2]){var i=e[2].filter((function(t){return"string"===typeof t}));i.forEach((function(e){t[e]=n}))}return t})),ve=t((function(t,e,n){var i=e[2];return t[n]=n,i.forEach((function(e){t[e]=n})),t}));var e="far"in se||kt.autoFetchSvg,n=Zt(ce,(function(t,n){var i=n[0],r=n[1],a=n[2];return"far"!==r||e||(r="fas"),"string"===typeof i&&(t.names[i]={prefix:r,iconName:a}),"number"===typeof i&&(t.unicodes[i.toString(16)]={prefix:r,iconName:a}),t}),{names:{},unicodes:{}});fe=n.names,pe=n.unicodes,ue=Te(kt.styleDefault,{family:kt.familyDefault})};function _e(t,e){return(he[t]||{})[e]}function we(t,e){return(de[t]||{})[e]}function ke(t,e){return(ve[t]||{})[e]}function Se(t){return fe[t]||{prefix:null,iconName:null}}function xe(t){var e=pe[t],n=_e("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ce(){return ue}xt((function(t){ue=Te(t.styleDefault,{family:kt.familyDefault})})),be();var De=function(){return{prefix:null,iconName:null,rest:[]}};function Te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.family,i=void 0===n?Z:n,r=nt[i][t],a=it[i][t]||it[i][r],o=t in Gt.styles?t:null;return a||o||null}var Oe=(oe={},l(oe,Z,Object.keys(rt[Z])),l(oe,Q,Object.keys(rt[Q])),oe);function Ee(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.skipLookups,r=void 0!==i&&i,a=(e={},l(e,Z,"".concat(kt.cssPrefix,"-").concat(Z)),l(e,Q,"".concat(kt.cssPrefix,"-").concat(Q)),e),o=null,s=Z;(t.includes(a[Z])||t.some((function(t){return Oe[Z].includes(t)})))&&(s=Z),(t.includes(a[Q])||t.some((function(t){return Oe[Q].includes(t)})))&&(s=Q);var c=t.reduce((function(t,e){var n=ye(kt.cssPrefix,e);if(se[e]?(e=le[s].includes(e)?at[s][e]:e,o=e,t.prefix=e):me[s].indexOf(e)>-1?(o=e,t.prefix=Te(e,{family:s})):n?t.iconName=n:e!==kt.replacementClass&&e!==a[Z]&&e!==a[Q]&&t.rest.push(e),!r&&t.prefix&&t.iconName){var i="fa"===o?Se(t.iconName):{},c=ke(t.prefix,t.iconName);i.prefix&&(o=null),t.iconName=i.iconName||c||t.iconName,t.prefix=i.prefix||t.prefix,"far"!==t.prefix||se["far"]||!se["fas"]||kt.autoFetchSvg||(t.prefix="fas")}return t}),De());return(t.includes("fa-brands")||t.includes("fab"))&&(c.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(c.prefix="fad"),c.prefix||s!==Q||!se["fass"]&&!kt.autoFetchSvg||(c.prefix="fass",c.iconName=ke(c.prefix,c.iconName)||c.iconName),"fa"!==c.prefix&&"fa"!==o||(c.prefix=Ce()||"fas"),c}var Ae=function(){function t(){o(this,t),this.definitions={}}return c(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(e){t.definitions[e]=r(r({},t.definitions[e]||{}),a[e]),ie(e,a[e]);var n=rt[Z][e];n&&ie(n,a[e]),be()}))}},{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 i=n[e],r=i.prefix,a=i.iconName,o=i.icon,s=o[2];t[r]||(t[r]={}),s.length>0&&s.forEach((function(e){"string"===typeof e&&(t[r][e]=o)})),t[r][a]=o})),t}}]),t}(),Pe=[],Me={},Re={},Ie=Object.keys(Re);function Ne(t,e){var n=e.mixoutsTo;return Pe=t,Me={},Object.keys(Re).forEach((function(t){-1===Ie.indexOf(t)&&delete Re[t]})),Pe.forEach((function(t){var e=t.mixout?t.mixout():{};if(Object.keys(e).forEach((function(t){"function"===typeof e[t]&&(n[t]=e[t]),"object"===a(e[t])&&Object.keys(e[t]).forEach((function(i){n[t]||(n[t]={}),n[t][i]=e[t][i]}))})),t.hooks){var i=t.hooks();Object.keys(i).forEach((function(t){Me[t]||(Me[t]=[]),Me[t].push(i[t])}))}t.provides&&t.provides(Re)})),n}function $e(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var a=Me[t]||[];return a.forEach((function(t){e=t.apply(null,[e].concat(i))})),e}function Le(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=Me[t]||[];r.forEach((function(t){t.apply(null,n)}))}function Fe(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return Re[t]?Re[t].apply(null,e):void 0}function Be(t){"fa"===t.prefix&&(t.prefix="fas");var e=t.iconName,n=t.prefix||Ce();if(e)return e=ke(n,e)||e,Kt(je.definitions,n,e)||Kt(Gt.styles,n,e)}var je=new Ae,ze=function(){kt.autoReplaceSvg=!1,kt.observeMutations=!1,Le("noAuto")},He={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return L?(Le("beforeI2svg",t),Fe("pseudoElements2svg",t),Fe("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot;!1===kt.autoReplaceSvg&&(kt.autoReplaceSvg=!0),kt.observeMutations=!0,qt((function(){We({autoReplaceSvgRoot:e}),Le("watch",t)}))}},Ve={icon:function(t){if(null===t)return null;if("object"===a(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ke(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=Te(t[0]);return{prefix:n,iconName:ke(n,e)||e}}if("string"===typeof t&&(t.indexOf("".concat(kt.cssPrefix,"-"))>-1||t.match(ot))){var i=Ee(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ce(),iconName:ke(i.prefix,i.iconName)||i.iconName}}if("string"===typeof t){var r=Ce();return{prefix:r,iconName:ke(r,t)||t}}}},Ge={noAuto:ze,config:kt,dom:He,parse:Ve,library:je,findIconDefinition:Be,toHtml:Xt},We=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=void 0===e?I:e;(Object.keys(Gt.styles).length>0||kt.autoFetchSvg)&&L&&kt.autoReplaceSvg&&Ge.dom.i2svg({node:n})};function Ue(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return Xt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(L){var e=I.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Ye(t){var e=t.children,n=t.main,i=t.mask,a=t.attributes,o=t.styles,s=t.transform;if(Nt(s)&&n.found&&!i.found){var c=n.width,l=n.height,u={x:c/l/2,y:.5};a["style"]=It(r(r({},o),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:a,children:e}]}function qe(t){var e=t.prefix,n=t.iconName,i=t.children,a=t.attributes,o=t.symbol,s=!0===o?"".concat(e,"-").concat(kt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:r(r({},a),{},{id:s}),children:i}]}]}function Xe(t){var e=t.icons,n=e.main,i=e.mask,a=t.prefix,o=t.iconName,s=t.transform,c=t.symbol,l=t.title,u=t.maskId,h=t.titleId,d=t.extra,f=t.watchable,p=void 0!==f&&f,v=i.found?i:n,m=v.width,g=v.height,y="fak"===a,b=[kt.replacementClass,o?"".concat(kt.cssPrefix,"-").concat(o):""].filter((function(t){return-1===d.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(d.classes).join(" "),_={children:[],attributes:r(r({},d.attributes),{},{"data-prefix":a,"data-icon":o,class:b,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};p&&(_.attributes[V]=""),l&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(h||Et())},children:[l]}),delete _.attributes.title);var k=r(r({},_),{},{prefix:a,iconName:o,main:n,mask:i,maskId:u,transform:s,symbol:c,styles:r(r({},w),d.styles)}),S=i.found&&n.found?Fe("generateAbstractMask",k)||{children:[],attributes:{}}:Fe("generateAbstractIcon",k)||{children:[],attributes:{}},x=S.children,C=S.attributes;return k.children=x,k.attributes=C,c?qe(k):Ye(k)}function Ke(t){var e=t.content,n=t.width,i=t.height,a=t.transform,o=t.title,s=t.extra,c=t.watchable,l=void 0!==c&&c,u=r(r(r({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(u[V]="");var h=r({},s.styles);Nt(a)&&(h["transform"]=Lt({transform:a,startCentered:!0,width:n,height:i}),h["-webkit-transform"]=h["transform"]);var d=It(h);d.length>0&&(u["style"]=d);var f=[];return f.push({tag:"span",attributes:u,children:[e]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}function Je(t){var e=t.content,n=t.title,i=t.extra,a=r(r(r({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),o=It(i.styles);o.length>0&&(a["style"]=o);var s=[];return s.push({tag:"span",attributes:a,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Ze=Gt.styles;function Qe(t){var e=t[0],n=t[1],i=t.slice(4),r=u(i,1),a=r[0],o=null;return o=Array.isArray(a)?{tag:"g",attributes:{class:"".concat(kt.cssPrefix,"-").concat(ft.GROUP)},children:[{tag:"path",attributes:{class:"".concat(kt.cssPrefix,"-").concat(ft.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(kt.cssPrefix,"-").concat(ft.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:e,height:n,icon:o}}var tn={found:!1,width:512,height:512};function en(t,e){J||kt.showMissingIcons||!t||console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function nn(t,e){var n=e;return"fa"===e&&null!==kt.styleDefault&&(e=Ce()),new Promise((function(i,a){Fe("missingIconAbstract");if("fa"===n){var o=Se(t)||{};t=o.iconName||t,e=o.prefix||e}if(t&&e&&Ze[e]&&Ze[e][t]){var s=Ze[e][t];return i(Qe(s))}en(t,e),i(r(r({},tn),{},{icon:kt.showMissingIcons&&t&&Fe("missingIconAbstract")||{}}))}))}var rn=function(){},an=kt.measurePerformance&&$&&$.mark&&$.measure?$:{mark:rn,measure:rn},on='FA "6.3.0"',sn=function(t){return an.mark("".concat(on," ").concat(t," begins")),function(){return cn(t)}},cn=function(t){an.mark("".concat(on," ").concat(t," ends")),an.measure("".concat(on," ").concat(t),"".concat(on," ").concat(t," begins"),"".concat(on," ").concat(t," ends"))},ln={begin:sn,end:cn},un=function(){};function hn(t){var e=t.getAttribute?t.getAttribute(V):null;return"string"===typeof e}function dn(t){var e=t.getAttribute?t.getAttribute(U):null,n=t.getAttribute?t.getAttribute(Y):null;return e&&n}function fn(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(kt.replacementClass)}function pn(){if(!0===kt.autoReplaceSvg)return bn.replace;var t=bn[kt.autoReplaceSvg];return t||bn.replace}function vn(t){return I.createElementNS("http://www.w3.org/2000/svg",t)}function mn(t){return I.createElement(t)}function gn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.ceFn,i=void 0===n?"svg"===t.tag?vn:mn:n;if("string"===typeof t)return I.createTextNode(t);var r=i(t.tag);Object.keys(t.attributes||[]).forEach((function(e){r.setAttribute(e,t.attributes[e])}));var a=t.children||[];return a.forEach((function(t){r.appendChild(gn(t,{ceFn:i}))})),r}function yn(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var bn={replace:function(t){var e=t[0];if(e.parentNode)if(t[1].forEach((function(t){e.parentNode.insertBefore(gn(t),e)})),null===e.getAttribute(V)&&kt.keepOriginalSource){var n=I.createComment(yn(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){var e=t[0],n=t[1];if(~Pt(e).indexOf(kt.replacementClass))return bn.replace(t);var i=new RegExp("".concat(kt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce((function(t,e){return e===kt.replacementClass||e.match(i)?t.toSvg.push(e):t.toNode.push(e),t}),{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var a=n.map((function(t){return Xt(t)})).join("\n");e.setAttribute(V,""),e.innerHTML=a}};function _n(t){t()}function wn(t,e){var n="function"===typeof e?e:un;if(0===t.length)n();else{var i=_n;kt.mutateApproach===X&&(i=R.requestAnimationFrame||_n),i((function(){var e=pn(),i=ln.begin("mutate");t.map(e),i(),n()}))}}var kn=!1;function Sn(){kn=!0}function xn(){kn=!1}var Cn=null;function Dn(t){if(N&&kt.observeMutations){var e=t.treeCallback,n=void 0===e?un:e,i=t.nodeCallback,r=void 0===i?un:i,a=t.pseudoElementsCallback,o=void 0===a?un:a,s=t.observeMutationsRoot,c=void 0===s?I:s;Cn=new N((function(t){if(!kn){var e=Ce();At(t).forEach((function(t){if("childList"===t.type&&t.addedNodes.length>0&&!hn(t.addedNodes[0])&&(kt.searchPseudoElements&&o(t.target),n(t.target)),"attributes"===t.type&&t.target.parentNode&&kt.searchPseudoElements&&o(t.target.parentNode),"attributes"===t.type&&hn(t.target)&&~dt.indexOf(t.attributeName))if("class"===t.attributeName&&dn(t.target)){var i=Ee(Pt(t.target)),a=i.prefix,s=i.iconName;t.target.setAttribute(U,a||e),s&&t.target.setAttribute(Y,s)}else fn(t.target)&&r(t.target)}))}})),L&&Cn.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Tn(){Cn&&Cn.disconnect()}function On(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce((function(t,e){var n=e.split(":"),i=n[0],r=n.slice(1);return i&&r.length>0&&(t[i]=r.join(":").trim()),t}),{})),n}function En(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",r=Ee(Pt(t));return r.prefix||(r.prefix=Ce()),e&&n&&(r.prefix=e,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=we(r.prefix,t.innerText)||_e(r.prefix,te(t.innerText))),!r.iconName&&kt.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=t.firstChild.data)),r}function An(t){var e=At(t.attributes).reduce((function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t}),{}),n=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return kt.autoA11y&&(n?e["aria-labelledby"]="".concat(kt.replacementClass,"-title-").concat(i||Et()):(e["aria-hidden"]="true",e["focusable"]="false")),e}function Pn(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Dt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Mn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=En(t),i=n.iconName,a=n.prefix,o=n.rest,s=An(t),c=$e("parseNodeAttributes",{},t),l=e.styleParser?On(t):[];return r({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:a,transform:Dt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},c)}var Rn=Gt.styles;function In(t){var e="nest"===kt.autoReplaceSvg?Mn(t,{styleParser:!1}):Mn(t);return~e.extra.classes.indexOf(st)?Fe("generateLayersText",t,e):Fe("generateSvgReplacementMutation",t,e)}var Nn=new Set;function $n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!L)return Promise.resolve();var n=I.documentElement.classList,i=function(t){return n.add("".concat(q,"-").concat(t))},r=function(t){return n.remove("".concat(q,"-").concat(t))},a=kt.autoFetchSvg?Nn:tt.map((function(t){return"fa-".concat(t)})).concat(Object.keys(Rn));a.includes("fa")||a.push("fa");var o=[".".concat(st,":not([").concat(V,"])")].concat(a.map((function(t){return".".concat(t,":not([").concat(V,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=At(t.querySelectorAll(o))}catch(pi){}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var c=ln.begin("onTree"),l=s.reduce((function(t,e){try{var n=In(e);n&&t.push(n)}catch(pi){J||"MissingIcon"===pi.name&&console.error(pi)}return t}),[]);return new Promise((function(t,n){Promise.all(l).then((function(n){wn(n,(function(){i("active"),i("complete"),r("pending"),"function"===typeof e&&e(),c(),t()}))})).catch((function(t){c(),n(t)}))}))}function Ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;In(t).then((function(t){t&&wn([t],e)}))}function Fn(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(e||{}).icon?e:Be(e||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Be(a||{})),t(i,r(r({},n),{},{mask:a}))}}tt.map((function(t){Nn.add("fa-".concat(t))})),Object.keys(nt[Z]).map(Nn.add.bind(Nn)),Object.keys(nt[Q]).map(Nn.add.bind(Nn)),Nn=h(Nn);var Bn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?Dt:n,a=e.symbol,o=void 0!==a&&a,s=e.mask,c=void 0===s?null:s,l=e.maskId,u=void 0===l?null:l,h=e.title,d=void 0===h?null:h,f=e.titleId,p=void 0===f?null:f,v=e.classes,m=void 0===v?[]:v,g=e.attributes,y=void 0===g?{}:g,b=e.styles,_=void 0===b?{}:b;if(t){var w=t.prefix,k=t.iconName,S=t.icon;return Ue(r({type:"icon"},t),(function(){return Le("beforeDOMElementCreation",{iconDefinition:t,params:e}),kt.autoA11y&&(d?y["aria-labelledby"]="".concat(kt.replacementClass,"-title-").concat(p||Et()):(y["aria-hidden"]="true",y["focusable"]="false")),Xe({icons:{main:Qe(S),mask:c?Qe(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:k,transform:r(r({},Dt),i),symbol:o,title:d,maskId:u,titleId:p,extra:{attributes:y,styles:_,classes:m}})}))}},jn={mixout:function(){return{icon:Fn(Bn)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=$n,t.nodeCallback=Ln,t}}},provides:function(t){t.i2svg=function(t){var e=t.node,n=void 0===e?I:e,i=t.callback,r=void 0===i?function(){}:i;return $n(n,r)},t.generateSvgReplacementMutation=function(t,e){var n=e.iconName,i=e.title,r=e.titleId,a=e.prefix,o=e.transform,s=e.symbol,c=e.mask,l=e.maskId,h=e.extra;return new Promise((function(e,d){Promise.all([nn(n,a),c.iconName?nn(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(c){var d=u(c,2),f=d[0],p=d[1];e([t,Xe({icons:{main:f,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:i,titleId:r,extra:h,watchable:!0})])})).catch(d)}))},t.generateAbstractIcon=function(t){var e,n=t.children,i=t.attributes,r=t.main,a=t.transform,o=t.styles,s=It(o);return s.length>0&&(i["style"]=s),Nt(a)&&(e=Fe("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(e||r.icon),{children:n,attributes:i}}}},zn={mixout:function(){return{layer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.classes,i=void 0===n?[]:n;return Ue({type:"layer"},(function(){Le("beforeDOMElementCreation",{assembler:t,params:e});var n=[];return t((function(t){Array.isArray(t)?t.map((function(t){n=n.concat(t.abstract)})):n=n.concat(t.abstract)})),[{tag:"span",attributes:{class:["".concat(kt.cssPrefix,"-layers")].concat(h(i)).join(" ")},children:n}]}))}}}},Hn={mixout:function(){return{counter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,i=void 0===n?null:n,r=e.classes,a=void 0===r?[]:r,o=e.attributes,s=void 0===o?{}:o,c=e.styles,l=void 0===c?{}:c;return Ue({type:"counter",content:t},(function(){return Le("beforeDOMElementCreation",{content:t,params:e}),Je({content:t.toString(),title:i,extra:{attributes:s,styles:l,classes:["".concat(kt.cssPrefix,"-layers-counter")].concat(h(a))}})}))}}}},Vn={mixout:function(){return{text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?Dt:n,a=e.title,o=void 0===a?null:a,s=e.classes,c=void 0===s?[]:s,l=e.attributes,u=void 0===l?{}:l,d=e.styles,f=void 0===d?{}:d;return Ue({type:"text",content:t},(function(){return Le("beforeDOMElementCreation",{content:t,params:e}),Ke({content:t,transform:r(r({},Dt),i),title:o,extra:{attributes:u,styles:f,classes:["".concat(kt.cssPrefix,"-layers-text")].concat(h(c))}})}))}}},provides:function(t){t.generateLayersText=function(t,e){var n=e.title,i=e.transform,r=e.extra,a=null,o=null;if(F){var s=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();a=c.width/s,o=c.height/s}return kt.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Promise.resolve([t,Ke({content:t.innerHTML,width:a,height:o,transform:i,title:n,extra:r,watchable:!0})])}}},Gn=new RegExp('"',"ug"),Wn=[1105920,1112319];function Un(t){var e=t.replace(Gn,""),n=ee(e,0),i=n>=Wn[0]&&n<=Wn[1],r=2===e.length&&e[0]===e[1];return{value:te(r?e[0]:e),isSecondary:i||r}}function Yn(t,e){var n="".concat(W).concat(e.replace(":","-"));return new Promise((function(i,a){if(null!==t.getAttribute(n))return i();var o=At(t.children),s=o.filter((function(t){return t.getAttribute(G)===e}))[0],c=R.getComputedStyle(t,e),l=c.getPropertyValue("font-family").match(ct),u=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(s&&!l)return t.removeChild(s),i();if(l&&"none"!==h&&""!==h){var d=c.getPropertyValue("content"),f=~["Sharp"].indexOf(l[2])?Q:Z,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?it[f][l[2].toLowerCase()]:lt[f][u],v=Un(d),m=v.value,g=v.isSecondary,y=l[0].startsWith("FontAwesome"),b=_e(p,m),_=b;if(y){var w=xe(m);w.iconName&&w.prefix&&(b=w.iconName,p=w.prefix)}if(!b||g||s&&s.getAttribute(U)===p&&s.getAttribute(Y)===_)i();else{t.setAttribute(n,_),s&&t.removeChild(s);var k=Pn(),S=k.extra;S.attributes[G]=e,nn(b,p).then((function(a){var o=Xe(r(r({},k),{},{icons:{main:a,mask:De()},prefix:p,iconName:_,extra:S,watchable:!0})),s=I.createElement("svg");"::before"===e?t.insertBefore(s,t.firstChild):t.appendChild(s),s.outerHTML=o.map((function(t){return Xt(t)})).join("\n"),t.removeAttribute(n),i()})).catch(a)}}else i()}))}function qn(t){return Promise.all([Yn(t,"::before"),Yn(t,"::after")])}function Xn(t){return t.parentNode!==document.head&&!~K.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(G)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}function Kn(t){if(L)return new Promise((function(e,n){var i=At(t.querySelectorAll("*")).filter(Xn).map(qn),r=ln.begin("searchPseudoElements");Sn(),Promise.all(i).then((function(){r(),xn(),e()})).catch((function(){r(),xn(),n()}))}))}var Jn={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Kn,t}}},provides:function(t){t.pseudoElements2svg=function(t){var e=t.node,n=void 0===e?I:e;kt.searchPseudoElements&&Kn(n)}}},Zn=!1,Qn={mixout:function(){return{dom:{unwatch:function(){Sn(),Zn=!0}}}},hooks:function(){return{bootstrap:function(){Dn($e("mutationObserverCallbacks",{}))},noAuto:function(){Tn()},watch:function(t){var e=t.observeMutationsRoot;Zn?xn():Dn($e("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}},ti=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r;break}return t}),e)},ei={mixout:function(){return{parse:{transform:function(t){return ti(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-transform");return n&&(t.transform=ti(n)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(t){var e=t.main,n=t.transform,i=t.containerWidth,a=t.iconWidth,o={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),c="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={transform:"".concat(s," ").concat(c," ").concat(l)},h={transform:"translate(".concat(a/2*-1," -256)")},d={outer:o,inner:u,path:h};return{tag:"g",attributes:r({},d.outer),children:[{tag:"g",attributes:r({},d.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:r(r({},e.icon.attributes),d.path)}]}]}}}},ni={x:0,y:0,width:"100%",height:"100%"};function ii(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function ri(t){return"g"===t.tag?t.children:[t]}var ai={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-mask"),i=n?Ee(n.split(" ").map((function(t){return t.trim()}))):De();return i.prefix||(i.prefix=Ce()),t.mask=i,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(t){var e=t.children,n=t.attributes,i=t.main,a=t.mask,o=t.maskId,s=t.transform,c=i.width,l=i.icon,u=a.width,h=a.icon,d=$t({transform:s,containerWidth:u,iconWidth:c}),f={tag:"rect",attributes:r(r({},ni),{},{fill:"white"})},p=l.children?{children:l.children.map(ii)}:{},v={tag:"g",attributes:r({},d.inner),children:[ii(r({tag:l.tag,attributes:r(r({},l.attributes),d.path)},p))]},m={tag:"g",attributes:r({},d.outer),children:[v]},g="mask-".concat(o||Et()),y="clip-".concat(o||Et()),b={tag:"mask",attributes:r(r({},ni),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:ri(h)},b]};return e.push(_,{tag:"rect",attributes:r({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},ni)}),{children:e,attributes:n}}}},oi={provides:function(t){var e=!1;R.matchMedia&&(e=R.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var t=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:r(r({},n),{},{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"})});var a=r(r({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:r(r({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:r(r({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:r(r({},a),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:r(r({},n),{},{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:e?[]:[{tag:"animate",attributes:r(r({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:r(r({},n),{},{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:r(r({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},si={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-symbol"),i=null!==n&&(""===n||n);return t["symbol"]=i,t}}}},ci=[Ht,jn,zn,Hn,Vn,Jn,Qn,ei,ai,oi,si];Ne(ci,{mixoutsTo:Ge});Ge.noAuto;var li=Ge.config,ui=Ge.library,hi=(Ge.dom,Ge.parse),di=(Ge.findIconDefinition,Ge.toHtml,Ge.icon),fi=(Ge.layer,Ge.text);Ge.counter},417:(t,e,n)=>{"use strict";n.d(e,{DBf:()=>h,EQg:()=>i,EdJ:()=>c,EyR:()=>x,FPD:()=>y,LM3:()=>S,Uwo:()=>f,XTR:()=>w,acZ:()=>u,eFW:()=>s,g82:()=>_,gc2:()=>v,jHE:()=>o,lUd:()=>l,onQ:()=>k,paY:()=>d,q7m:()=>p,r8p:()=>b,wn1:()=>g,xHz:()=>r,yOZ:()=>a});var i={prefix:"fas",iconName:"scissors",icon:[512,512,[9984,9986,9988,"cut"],"f0c4","M256 192l-39.5-39.5c4.9-12.6 7.5-26.2 7.5-40.5C224 50.1 173.9 0 112 0S0 50.1 0 112s50.1 112 112 112c14.3 0 27.9-2.7 40.5-7.5L192 256l-39.5 39.5c-12.6-4.9-26.2-7.5-40.5-7.5C50.1 288 0 338.1 0 400s50.1 112 112 112s112-50.1 112-112c0-14.3-2.7-27.9-7.5-40.5L499.2 76.8c7.1-7.1 7.1-18.5 0-25.6c-28.3-28.3-74.1-28.3-102.4 0L256 192zm22.6 150.6L396.8 460.8c28.3 28.3 74.1 28.3 102.4 0c7.1-7.1 7.1-18.5 0-25.6L342.6 278.6l-64 64zM64 112a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm48 240a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},r={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},a={prefix:"fas",iconName:"angle-right",icon:[256,512,[8250],"f105","M246.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L178.7 256 41.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},o={prefix:"fas",iconName:"repeat",icon:[512,512,[128257],"f363","M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z"]},s={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},c={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},l={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M370.3 160H320c-17.7 0-32 14.3-32 32s14.3 32 32 32H448c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L398.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L370.3 160z"]},u={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},h={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},d={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M109.7 160H160c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V64C0 46.3 14.3 32 32 32s32 14.3 32 32v51.2L81.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L109.7 160z"]},f={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M56 472a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0-160a56 56 0 1 1 0-112 56 56 0 1 1 0 112zM0 96a56 56 0 1 1 112 0A56 56 0 1 1 0 96z"]},p={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},v={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 274.7 54.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},m={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},g=m,y={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},b={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M240 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H176V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H384c17.7 0 32-14.3 32-32s-14.3-32-32-32H240V80z"]},_={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},w={prefix:"fas",iconName:"trash-arrow-up",icon:[448,512,["trash-restore"],"f829","M163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128H416L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32 128zm192 64c-6.4 0-12.5 2.5-17 7l-80 80c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39V408c0 13.3 10.7 24 24 24s24-10.7 24-24V273.9l39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-4.5-4.5-10.6-7-17-7z"]},k={prefix:"fas",iconName:"angle-up",icon:[384,512,[8963],"f106","M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"]},S={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"]},x={prefix:"fas",iconName:"angle-left",icon:[256,512,[8249],"f104","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]}},154:(t,e,n)=>{"use strict";function i(t,e){return function(){return t.apply(e,arguments)}}n.d(e,{Z:()=>Be});const{toString:r}=Object.prototype,{getPrototypeOf:a}=Object,o=(t=>e=>{const n=r.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s=t=>(t=t.toLowerCase(),e=>o(e)===t),c=t=>e=>typeof e===t,{isArray:l}=Array,u=c("undefined");function h(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&v(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const d=s("ArrayBuffer");function f(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e}const p=c("string"),v=c("function"),m=c("number"),g=t=>null!==t&&"object"===typeof t,y=t=>!0===t||!1===t,b=t=>{if("object"!==o(t))return!1;const e=a(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},_=s("Date"),w=s("File"),k=s("Blob"),S=s("FileList"),x=t=>g(t)&&v(t.pipe),C=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||v(t.append)&&("formdata"===(e=o(t))||"object"===e&&v(t.toString)&&"[object FormData]"===t.toString()))},D=s("URLSearchParams"),T=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function O(t,e,{allOwnKeys:n=!1}={}){if(null===t||"undefined"===typeof t)return;let i,r;if("object"!==typeof t&&(t=[t]),l(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),a=r.length;let o;for(i=0;i<a;i++)o=r[i],e.call(null,t[o],o,t)}}function E(t,e){e=e.toLowerCase();const n=Object.keys(t);let i,r=n.length;while(r-- >0)if(i=n[r],e===i.toLowerCase())return i;return null}const A=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),P=t=>!u(t)&&t!==A;function M(){const{caseless:t}=P(this)&&this||{},e={},n=(n,i)=>{const r=t&&E(e,i)||i;b(e[r])&&b(n)?e[r]=M(e[r],n):b(n)?e[r]=M({},n):l(n)?e[r]=n.slice():e[r]=n};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&O(arguments[i],n);return e}const R=(t,e,n,{allOwnKeys:r}={})=>(O(e,((e,r)=>{n&&v(e)?t[r]=i(e,n):t[r]=e}),{allOwnKeys:r}),t),I=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),N=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},$=(t,e,n,i)=>{let r,o,s;const c={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),o=r.length;while(o-- >0)s=r[o],i&&!i(s,t,e)||c[s]||(e[s]=t[s],c[s]=!0);t=!1!==n&&a(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},L=(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},F=t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);while(e-- >0)n[e]=t[e];return n},B=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&a(Uint8Array)),j=(t,e)=>{const n=t&&t[Symbol.iterator],i=n.call(t);let r;while((r=i.next())&&!r.done){const n=r.value;e.call(t,n[0],n[1])}},z=(t,e)=>{let n;const i=[];while(null!==(n=t.exec(e)))i.push(n);return i},H=s("HTMLFormElement"),V=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),G=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),W=s("RegExp"),U=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};O(n,((n,r)=>{let a;!1!==(a=e(n,r,t))&&(i[r]=a||n)})),Object.defineProperties(t,i)},Y=t=>{U(t,((e,n)=>{if(v(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];v(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},q=(t,e)=>{const n={},i=t=>{t.forEach((t=>{n[t]=!0}))};return l(t)?i(t):i(String(t).split(e)),n},X=()=>{},K=(t,e)=>(t=+t,Number.isFinite(t)?t:e),J="abcdefghijklmnopqrstuvwxyz",Z="0123456789",Q={DIGIT:Z,ALPHA:J,ALPHA_DIGIT:J+J.toUpperCase()+Z},tt=(t=16,e=Q.ALPHA_DIGIT)=>{let n="";const{length:i}=e;while(t--)n+=e[Math.random()*i|0];return n};function et(t){return!!(t&&v(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const nt=t=>{const e=new Array(10),n=(t,i)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const r=l(t)?[]:{};return O(t,((t,e)=>{const a=n(t,i+1);!u(a)&&(r[e]=a)})),e[i]=void 0,r}}return t};return n(t,0)},it=s("AsyncFunction"),rt=t=>t&&(g(t)||v(t))&&v(t.then)&&v(t.catch),at={isArray:l,isArrayBuffer:d,isBuffer:h,isFormData:C,isArrayBufferView:f,isString:p,isNumber:m,isBoolean:y,isObject:g,isPlainObject:b,isUndefined:u,isDate:_,isFile:w,isBlob:k,isRegExp:W,isFunction:v,isStream:x,isURLSearchParams:D,isTypedArray:B,isFileList:S,forEach:O,merge:M,extend:R,trim:T,stripBOM:I,inherits:N,toFlatObject:$,kindOf:o,kindOfTest:s,endsWith:L,toArray:F,forEachEntry:j,matchAll:z,isHTMLForm:H,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:U,freezeMethods:Y,toObjectSet:q,toCamelCase:V,noop:X,toFiniteNumber:K,findKey:E,global:A,isContextDefined:P,ALPHABET:Q,generateString:tt,isSpecCompliantForm:et,toJSONObject:nt,isAsyncFn:it,isThenable:rt};function ot(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}at.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:at.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const st=ot.prototype,ct={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{ct[t]={value:t}})),Object.defineProperties(ot,ct),Object.defineProperty(st,"isAxiosError",{value:!0}),ot.from=(t,e,n,i,r,a)=>{const o=Object.create(st);return at.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ot.call(o,t.message,e,n,i,r),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const lt=ot,ut=null;function ht(t){return at.isPlainObject(t)||at.isArray(t)}function dt(t){return at.endsWith(t,"[]")?t.slice(0,-2):t}function ft(t,e,n){return t?t.concat(e).map((function(t,e){return t=dt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}function pt(t){return at.isArray(t)&&!t.some(ht)}const vt=at.toFlatObject(at,{},null,(function(t){return/^is[A-Z]/.test(t)}));function mt(t,e,n){if(!at.isObject(t))throw new TypeError("target must be an object");e=e||new(ut||FormData),n=at.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!at.isUndefined(e[t])}));const i=n.metaTokens,r=n.visitor||u,a=n.dots,o=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,c=s&&at.isSpecCompliantForm(e);if(!at.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(at.isDate(t))return t.toISOString();if(!c&&at.isBlob(t))throw new lt("Blob is not supported. Use a Buffer instead.");return at.isArrayBuffer(t)||at.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,r){let s=t;if(t&&!r&&"object"===typeof t)if(at.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(at.isArray(t)&&pt(t)||(at.isFileList(t)||at.endsWith(n,"[]"))&&(s=at.toArray(t)))return n=dt(n),s.forEach((function(t,i){!at.isUndefined(t)&&null!==t&&e.append(!0===o?ft([n],i,a):null===o?n:n+"[]",l(t))})),!1;return!!ht(t)||(e.append(ft(r,n,a),l(t)),!1)}const h=[],d=Object.assign(vt,{defaultVisitor:u,convertValue:l,isVisitable:ht});function f(t,n){if(!at.isUndefined(t)){if(-1!==h.indexOf(t))throw Error("Circular reference detected in "+n.join("."));h.push(t),at.forEach(t,(function(t,i){const a=!(at.isUndefined(t)||null===t)&&r.call(e,t,at.isString(i)?i.trim():i,n,d);!0===a&&f(t,n?n.concat(i):[i])})),h.pop()}}if(!at.isObject(t))throw new TypeError("data must be an object");return f(t),e}const gt=mt;function yt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function bt(t,e){this._pairs=[],t&&gt(t,this,e)}const _t=bt.prototype;_t.append=function(t,e){this._pairs.push([t,e])},_t.toString=function(t){const e=t?function(e){return t.call(this,e,yt)}:yt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const wt=bt;function kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function St(t,e,n){if(!e)return t;const i=n&&n.encode||kt,r=n&&n.serialize;let a;if(a=r?r(e,n):at.isURLSearchParams(e)?e.toString():new wt(e,n).toString(i),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}class xt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){at.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Ct=xt,Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt="undefined"!==typeof URLSearchParams?URLSearchParams:wt,Ot="undefined"!==typeof FormData?FormData:null,Et="undefined"!==typeof Blob?Blob:null,At=(()=>{let t;return("undefined"===typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!==typeof window&&"undefined"!==typeof document)})(),Pt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Mt={isBrowser:!0,classes:{URLSearchParams:Tt,FormData:Ot,Blob:Et},isStandardBrowserEnv:At,isStandardBrowserWebWorkerEnv:Pt,protocols:["http","https","file","blob","url","data"]};function Rt(t,e){return gt(t,new Mt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return Mt.isNode&&at.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function It(t){return at.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function Nt(t){const e={},n=Object.keys(t);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],e[a]=t[a];return e}function $t(t){function e(t,n,i,r){let a=t[r++];const o=Number.isFinite(+a),s=r>=t.length;if(a=!a&&at.isArray(i)?i.length:a,s)return at.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o;i[a]&&at.isObject(i[a])||(i[a]=[]);const c=e(t,n,i[a],r);return c&&at.isArray(i[a])&&(i[a]=Nt(i[a])),!o}if(at.isFormData(t)&&at.isFunction(t.entries)){const n={};return at.forEachEntry(t,((t,i)=>{e(It(t),i,n,0)})),n}return null}const Lt=$t;function Ft(t,e,n){if(at.isString(t))try{return(e||JSON.parse)(t),at.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}const Bt={transitional:Dt,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=at.isObject(t);r&&at.isHTMLForm(t)&&(t=new FormData(t));const a=at.isFormData(t);if(a)return i&&i?JSON.stringify(Lt(t)):t;if(at.isArrayBuffer(t)||at.isBuffer(t)||at.isStream(t)||at.isFile(t)||at.isBlob(t))return t;if(at.isArrayBufferView(t))return t.buffer;if(at.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Rt(t,this.formSerializer).toString();if((o=at.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return gt(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),Ft(t)):t}],transformResponse:[function(t){const e=this.transitional||Bt.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(t&&at.isString(t)&&(n&&!this.responseType||i)){const n=e&&e.silentJSONParsing,a=!n&&i;try{return JSON.parse(t)}catch(r){if(a){if("SyntaxError"===r.name)throw lt.from(r,lt.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mt.classes.FormData,Blob:Mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};at.forEach(["delete","get","head","post","put","patch"],(t=>{Bt.headers[t]={}}));const jt=Bt,zt=at.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ht=t=>{const e={};let n,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!n||e[n]&&zt[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e},Vt=Symbol("internals");function Gt(t){return t&&String(t).trim().toLowerCase()}function Wt(t){return!1===t||null==t?t:at.isArray(t)?t.map(Wt):String(t)}function Ut(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(t))e[i[1]]=i[2];return e}const Yt=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function qt(t,e,n,i,r){return at.isFunction(i)?i.call(this,e,n):(r&&(e=n),at.isString(e)?at.isString(i)?-1!==e.indexOf(i):at.isRegExp(i)?i.test(e):void 0:void 0)}function Xt(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}function Kt(t,e){const n=at.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+n,{value:function(t,n,r){return this[i].call(this,e,t,n,r)},configurable:!0})}))}class Jt{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function r(t,e,n){const r=Gt(e);if(!r)throw new Error("header name must be a non-empty string");const a=at.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||e]=Wt(t))}const a=(t,e)=>at.forEach(t,((t,n)=>r(t,n,e)));return at.isPlainObject(t)||t instanceof this.constructor?a(t,e):at.isString(t)&&(t=t.trim())&&!Yt(t)?a(Ht(t),e):null!=t&&r(e,t,n),this}get(t,e){if(t=Gt(t),t){const n=at.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return Ut(t);if(at.isFunction(e))return e.call(this,t,n);if(at.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Gt(t),t){const n=at.findKey(this,t);return!(!n||void 0===this[n]||e&&!qt(this,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function r(t){if(t=Gt(t),t){const r=at.findKey(n,t);!r||e&&!qt(n,n[r],r,e)||(delete n[r],i=!0)}}return at.isArray(t)?t.forEach(r):r(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;while(n--){const r=e[n];t&&!qt(this,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const e=this,n={};return at.forEach(this,((i,r)=>{const a=at.findKey(n,r);if(a)return e[a]=Wt(i),void delete e[r];const o=t?Xt(r):String(r).trim();o!==r&&delete e[r],e[o]=Wt(i),n[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return at.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&at.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=this[Vt]=this[Vt]={accessors:{}},n=e.accessors,i=this.prototype;function r(t){const e=Gt(t);n[e]||(Kt(i,t),n[e]=!0)}return at.isArray(t)?t.forEach(r):r(t),this}}Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),at.reduceDescriptors(Jt.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),at.freezeMethods(Jt);const Zt=Jt;function Qt(t,e){const n=this||jt,i=e||n,r=Zt.from(i.headers);let a=i.data;return at.forEach(t,(function(t){a=t.call(n,a,r.normalize(),e?e.status:void 0)})),r.normalize(),a}function te(t){return!(!t||!t.__CANCEL__)}function ee(t,e,n){lt.call(this,null==t?"canceled":t,lt.ERR_CANCELED,e,n),this.name="CanceledError"}at.inherits(ee,lt,{__CANCEL__:!0});const ne=ee;function ie(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new lt("Request failed with status code "+n.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const re=Mt.isStandardBrowserEnv?function(){return{write:function(t,e,n,i,r,a){const o=[];o.push(t+"="+encodeURIComponent(e)),at.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),at.isString(i)&&o.push("path="+i),at.isString(r)&&o.push("domain="+r),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ae(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function oe(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function se(t,e){return t&&!ae(e)?oe(t,e):e}const ce=Mt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(n){let i=n;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(t){const e=at.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return function(){return!0}}();function le(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ue(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r,a=0,o=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),l=i[o];r||(r=c),n[a]=s,i[a]=c;let u=o,h=0;while(u!==a)h+=n[u++],u%=t;if(a=(a+1)%t,a===o&&(o=(o+1)%t),c-r<e)return;const d=l&&c-l;return d?Math.round(1e3*h/d):void 0}}const he=ue;function de(t,e){let n=0;const i=he(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,c=i(s),l=a<=o;n=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:r};u[e?"download":"upload"]=!0,t(u)}}const fe="undefined"!==typeof XMLHttpRequest,pe=fe&&function(t){return new Promise((function(e,n){let i=t.data;const r=Zt.from(t.headers).normalize(),a=t.responseType;let o,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}at.isFormData(i)&&(Mt.isStandardBrowserEnv||Mt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.getContentType(/^\s*multipart\/form-data/)?at.isString(s=r.getContentType())&&r.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):r.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(e+":"+n))}const u=se(t.baseURL,t.url);function h(){if(!l)return;const i=Zt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),r=a&&"text"!==a&&"json"!==a?l.response:l.responseText,o={data:r,status:l.status,statusText:l.statusText,headers:i,config:t,request:l};ie((function(t){e(t),c()}),(function(t){n(t),c()}),o),l=null}if(l.open(t.method.toUpperCase(),St(u,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(new lt("Request aborted",lt.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new lt("Network Error",lt.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const i=t.transitional||Dt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new lt(e,i.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,t,l)),l=null},Mt.isStandardBrowserEnv){const e=ce(u)&&t.xsrfCookieName&&re.read(t.xsrfCookieName);e&&r.set(t.xsrfHeaderName,e)}void 0===i&&r.setContentType(null),"setRequestHeader"in l&&at.forEach(r.toJSON(),(function(t,e){l.setRequestHeader(e,t)})),at.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&l.addEventListener("progress",de(t.onDownloadProgress,!0)),"function"===typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",de(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=e=>{l&&(n(!e||e.type?new ne(null,t,l):e),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const d=le(u);d&&-1===Mt.protocols.indexOf(d)?n(new lt("Unsupported protocol "+d+":",lt.ERR_BAD_REQUEST,t)):l.send(i||null)}))},ve={http:ut,xhr:pe};at.forEach(ve,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}}));const me=t=>`- ${t}`,ge=t=>at.isFunction(t)||null===t||!1===t,ye={getAdapter:t=>{t=at.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let a=0;a<e;a++){let e;if(n=t[a],i=n,!ge(n)&&(i=ve[(e=String(n)).toLowerCase()],void 0===i))throw new lt(`Unknown adapter '${e}'`);if(i)break;r[e||"#"+a]=i}if(!i){const t=Object.entries(r).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(me).join("\n"):" "+me(t[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:ve};function be(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ne(null,t)}function _e(t){be(t),t.headers=Zt.from(t.headers),t.data=Qt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=ye.getAdapter(t.adapter||jt.adapter);return e(t).then((function(e){return be(t),e.data=Qt.call(t,t.transformResponse,e),e.headers=Zt.from(e.headers),e}),(function(e){return te(e)||(be(t),e&&e.response&&(e.response.data=Qt.call(t,t.transformResponse,e.response),e.response.headers=Zt.from(e.response.headers))),Promise.reject(e)}))}const we=t=>t instanceof Zt?t.toJSON():t;function ke(t,e){e=e||{};const n={};function i(t,e,n){return at.isPlainObject(t)&&at.isPlainObject(e)?at.merge.call({caseless:n},t,e):at.isPlainObject(e)?at.merge({},e):at.isArray(e)?e.slice():e}function r(t,e,n){return at.isUndefined(e)?at.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function a(t,e){if(!at.isUndefined(e))return i(void 0,e)}function o(t,e){return at.isUndefined(e)?at.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function s(n,r,a){return a in e?i(n,r):a in t?i(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(t,e)=>r(we(t),we(e),!0)};return at.forEach(Object.keys(Object.assign({},t,e)),(function(i){const a=c[i]||r,o=a(t[i],e[i],i);at.isUndefined(o)&&a!==s||(n[i]=o)})),n}const Se="1.6.0",xe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{xe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Ce={};function De(t,e,n){if("object"!==typeof t)throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;while(r-- >0){const a=i[r],o=e[a];if(o){const e=t[a],n=void 0===e||o(e,a,t);if(!0!==n)throw new lt("option "+a+" must be "+n,lt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new lt("Unknown option "+a,lt.ERR_BAD_OPTION)}}xe.transitional=function(t,e,n){function i(t,e){return"[Axios v"+Se+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,a)=>{if(!1===t)throw new lt(i(r," has been removed"+(e?" in "+e:"")),lt.ERR_DEPRECATED);return e&&!Ce[r]&&(Ce[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}};const Te={assertOptions:De,validators:xe},Oe=Te.validators;class Ee{constructor(t){this.defaults=t,this.interceptors={request:new Ct,response:new Ct}}request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=ke(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:r}=e;void 0!==n&&Te.assertOptions(n,{silentJSONParsing:Oe.transitional(Oe.boolean),forcedJSONParsing:Oe.transitional(Oe.boolean),clarifyTimeoutError:Oe.transitional(Oe.boolean)},!1),null!=i&&(at.isFunction(i)?e.paramsSerializer={serialize:i}:Te.assertOptions(i,{encode:Oe.function,serialize:Oe.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=r&&at.merge(r.common,r[e.method]);r&&at.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=Zt.concat(a,r);const o=[];let s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let u,h=0;if(!s){const t=[_e.bind(this),void 0];t.unshift.apply(t,o),t.push.apply(t,c),u=t.length,l=Promise.resolve(e);while(h<u)l=l.then(t[h++],t[h++]);return l}u=o.length;let d=e;h=0;while(h<u){const t=o[h++],e=o[h++];try{d=t(d)}catch(f){e.call(this,f);break}}try{l=_e.call(this,d)}catch(f){return Promise.reject(f)}h=0,u=c.length;while(h<u)l=l.then(c[h++],c[h++]);return l}getUri(t){t=ke(this.defaults,t);const e=se(t.baseURL,t.url);return St(e,t.params,t.paramsSerializer)}}at.forEach(["delete","get","head","options"],(function(t){Ee.prototype[t]=function(e,n){return this.request(ke(n||{},{method:t,url:e,data:(n||{}).data}))}})),at.forEach(["post","put","patch"],(function(t){function e(e){return function(n,i,r){return this.request(ke(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ee.prototype[t]=e(),Ee.prototype[t+"Form"]=e(!0)}));const Ae=Ee;class Pe{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t,i,r){n.reason||(n.reason=new ne(t,i,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new Pe((function(e){t=e}));return{token:e,cancel:t}}}const Me=Pe;function Re(t){return function(e){return t.apply(null,e)}}function Ie(t){return at.isObject(t)&&!0===t.isAxiosError}const Ne={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ne).forEach((([t,e])=>{Ne[e]=t}));const $e=Ne;function Le(t){const e=new Ae(t),n=i(Ae.prototype.request,e);return at.extend(n,Ae.prototype,e,{allOwnKeys:!0}),at.extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return Le(ke(t,e))},n}const Fe=Le(jt);Fe.Axios=Ae,Fe.CanceledError=ne,Fe.CancelToken=Me,Fe.isCancel=te,Fe.VERSION=Se,Fe.toFormData=gt,Fe.AxiosError=lt,Fe.Cancel=Fe.CanceledError,Fe.all=function(t){return Promise.all(t)},Fe.spread=Re,Fe.isAxiosError=Ie,Fe.mergeConfig=ke,Fe.AxiosHeaders=Zt,Fe.formToJSON=t=>Lt(at.isHTMLForm(t)?new FormData(t):t),Fe.getAdapter=ye.getAdapter,Fe.HttpStatusCode=$e,Fe.default=Fe;const Be=Fe},794:(t,e,n)=>{"use strict";n.d(e,{Z:()=>S});var i=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,a=Math.floor,o="[BigNumber Error] ",s=o+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,u=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,f=1e9;function p(t){var e,n,k,S=L.prototype={constructor:L,toString:null,valueOf:null},x=new L(1),C=20,D=4,T=-7,O=21,E=-1e7,A=1e7,P=!1,M=1,R=0,I={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},N="0123456789abcdefghijklmnopqrstuvwxyz",$=!0;function L(t,e){var r,o,c,h,d,f,p,v,m=this;if(!(m instanceof L))return new L(t,e);if(null==e){if(t&&!0===t._isBigNumber)return m.s=t.s,void(!t.c||t.e>A?m.c=m.e=null:t.e<E?m.c=[m.e=0]:(m.e=t.e,m.c=t.c.slice()));if((f="number"==typeof t)&&0*t==0){if(m.s=1/t<0?(t=-t,-1):1,t===~~t){for(h=0,d=t;d>=10;d/=10,h++);return void(h>A?m.c=m.e=null:(m.e=h,m.c=[t]))}v=String(t)}else{if(!i.test(v=String(t)))return k(m,v,f);m.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(h=v.indexOf("."))>-1&&(v=v.replace(".","")),(d=v.search(/e/i))>0?(h<0&&(h=d),h+=+v.slice(d+1),v=v.substring(0,d)):h<0&&(h=v.length)}else{if(y(e,2,N.length,"Base"),10==e&&$)return m=new L(t),z(m,C+m.e+1,D);if(v=String(t),f="number"==typeof t){if(0*t!=0)return k(m,v,f,e);if(m.s=1/t<0?(v=v.slice(1),-1):1,L.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(s+t)}else m.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(r=N.slice(0,e),h=d=0,p=v.length;d<p;d++)if(r.indexOf(o=v.charAt(d))<0){if("."==o){if(d>h){h=p;continue}}else if(!c&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){c=!0,d=-1,h=0;continue}return k(m,String(t),f,e)}f=!1,v=n(v,e,10,m.s),(h=v.indexOf("."))>-1?v=v.replace(".",""):h=v.length}for(d=0;48===v.charCodeAt(d);d++);for(p=v.length;48===v.charCodeAt(--p););if(v=v.slice(d,++p)){if(p-=d,f&&L.DEBUG&&p>15&&(t>u||t!==a(t)))throw Error(s+m.s*t);if((h=h-d-1)>A)m.c=m.e=null;else if(h<E)m.c=[m.e=0];else{if(m.e=h,m.c=[],d=(h+1)%l,h<0&&(d+=l),d<p){for(d&&m.c.push(+v.slice(0,d)),p-=l;d<p;)m.c.push(+v.slice(d,d+=l));d=l-(v=v.slice(d)).length}else d-=p;for(;d--;v+="0");m.c.push(+v)}}else m.c=[m.e=0]}function F(t,e,n,i){var r,a,o,s,c;if(null==n?n=D:y(n,0,8),!t.c)return t.toString();if(r=t.c[0],o=t.e,null==e)c=m(t.c),c=1==i||2==i&&(o<=T||o>=O)?_(c,o):w(c,o,"0");else if(t=z(new L(t),e,n),a=t.e,c=m(t.c),s=c.length,1==i||2==i&&(e<=a||a<=T)){for(;s<e;c+="0",s++);c=_(c,a)}else if(e-=o,c=w(c,a,"0"),a+1>s){if(--e>0)for(c+=".";e--;c+="0");}else if(e+=a-s,e>0)for(a+1==s&&(c+=".");e--;c+="0");return t.s<0&&r?"-"+c:c}function B(t,e){for(var n,i=1,r=new L(t[0]);i<t.length;i++){if(n=new L(t[i]),!n.s){r=n;break}e.call(r,n)&&(r=n)}return r}function j(t,e,n){for(var i=1,r=e.length;!e[--r];e.pop());for(r=e[0];r>=10;r/=10,i++);return(n=i+n*l-1)>A?t.c=t.e=null:n<E?t.c=[t.e=0]:(t.e=n,t.c=e),t}function z(t,e,n,i){var o,s,u,d,f,p,v,m=t.c,g=h;if(m){t:{for(o=1,d=m[0];d>=10;d/=10,o++);if(s=e-o,s<0)s+=l,u=e,f=m[p=0],v=f/g[o-u-1]%10|0;else if(p=r((s+1)/l),p>=m.length){if(!i)break t;for(;m.length<=p;m.push(0));f=v=0,o=1,s%=l,u=s-l+1}else{for(f=d=m[p],o=1;d>=10;d/=10,o++);s%=l,u=s-l+o,v=u<0?0:f/g[o-u-1]%10|0}if(i=i||e<0||null!=m[p+1]||(u<0?f:f%g[o-u-1]),i=n<4?(v||i)&&(0==n||n==(t.s<0?3:2)):v>5||5==v&&(4==n||i||6==n&&(s>0?u>0?f/g[o-u]:0:m[p-1])%10&1||n==(t.s<0?8:7)),e<1||!m[0])return m.length=0,i?(e-=t.e+1,m[0]=g[(l-e%l)%l],t.e=-e||0):m[0]=t.e=0,t;if(0==s?(m.length=p,d=1,p--):(m.length=p+1,d=g[l-s],m[p]=u>0?a(f/g[o-u]%g[u])*d:0),i)for(;;){if(0==p){for(s=1,u=m[0];u>=10;u/=10,s++);for(u=m[0]+=d,d=1;u>=10;u/=10,d++);s!=d&&(t.e++,m[0]==c&&(m[0]=1));break}if(m[p]+=d,m[p]!=c)break;m[p--]=0,d=1}for(s=m.length;0===m[--s];m.pop());}t.e>A?t.c=t.e=null:t.e<E&&(t.c=[t.e=0])}return t}function H(t){var e,n=t.e;return null===n?t.toString():(e=m(t.c),e=n<=T||n>=O?_(e,n):w(e,n,"0"),t.s<0?"-"+e:e)}return L.clone=p,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(o+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(n=t[e],y(n,0,f,e),C=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(n=t[e],y(n,0,8,e),D=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&(n=t[e],n&&n.pop?(y(n[0],-f,0,e),y(n[1],0,f,e),T=n[0],O=n[1]):(y(n,-f,f,e),T=-(O=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if(n=t[e],n&&n.pop)y(n[0],-f,-1,e),y(n[1],1,f,e),E=n[0],A=n[1];else{if(y(n,-f,f,e),!n)throw Error(o+e+" cannot be zero: "+n);E=-(A=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if(n=t[e],n!==!!n)throw Error(o+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!n,Error(o+"crypto unavailable");P=n}else P=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(n=t[e],y(n,0,9,e),M=n),t.hasOwnProperty(e="POW_PRECISION")&&(n=t[e],y(n,0,f,e),R=n),t.hasOwnProperty(e="FORMAT")){if(n=t[e],"object"!=typeof n)throw Error(o+e+" not an object: "+n);I=n}if(t.hasOwnProperty(e="ALPHABET")){if(n=t[e],"string"!=typeof n||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(o+e+" invalid: "+n);$="0123456789"==n.slice(0,10),N=n}}return{DECIMAL_PLACES:C,ROUNDING_MODE:D,EXPONENTIAL_AT:[T,O],RANGE:[E,A],CRYPTO:P,MODULO_MODE:M,POW_PRECISION:R,FORMAT:I,ALPHABET:N}},L.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!L.DEBUG)return!0;var e,n,i=t.c,r=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(i)){if((1===s||-1===s)&&r>=-f&&r<=f&&r===a(r)){if(0===i[0]){if(0===r&&1===i.length)return!0;break t}if(e=(r+1)%l,e<1&&(e+=l),String(i[0]).length==e){for(e=0;e<i.length;e++)if(n=i[e],n<0||n>=c||n!==a(n))break t;if(0!==n)return!0}}}else if(null===i&&null===r&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+t)},L.maximum=L.max=function(){return B(arguments,S.lt)},L.minimum=L.min=function(){return B(arguments,S.gt)},L.random=function(){var t=9007199254740992,e=Math.random()*t&2097151?function(){return a(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,i,s,c,u,d=0,p=[],v=new L(x);if(null==t?t=C:y(t,0,f),c=r(t/l),P)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(c*=2));d<c;)u=131072*n[d]+(n[d+1]>>>11),u>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),n[d]=i[0],n[d+1]=i[1]):(p.push(u%1e14),d+=2);d=c/2}else{if(!crypto.randomBytes)throw P=!1,Error(o+"crypto unavailable");for(n=crypto.randomBytes(c*=7);d<c;)u=281474976710656*(31&n[d])+1099511627776*n[d+1]+4294967296*n[d+2]+16777216*n[d+3]+(n[d+4]<<16)+(n[d+5]<<8)+n[d+6],u>=9e15?crypto.randomBytes(7).copy(n,d):(p.push(u%1e14),d+=7);d=c/7}if(!P)for(;d<c;)u=e(),u<9e15&&(p[d++]=u%1e14);for(c=p[--d],t%=l,c&&t&&(u=h[l-t],p[d]=a(c/u)*u);0===p[d];p.pop(),d--);if(d<0)p=[s=0];else{for(s=-1;0===p[0];p.splice(0,1),s-=l);for(d=1,u=p[0];u>=10;u/=10,d++);d<l&&(s-=l-d)}return v.e=s,v.c=p,v}}(),L.sum=function(){for(var t=1,e=arguments,n=new L(e[0]);t<e.length;)n=n.plus(e[t++]);return n},n=function(){var t="0123456789";function n(t,e,n,i){for(var r,a,o=[0],s=0,c=t.length;s<c;){for(a=o.length;a--;o[a]*=e);for(o[0]+=i.indexOf(t.charAt(s++)),r=0;r<o.length;r++)o[r]>n-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}return function(i,r,a,o,s){var c,l,u,h,d,f,p,v,g=i.indexOf("."),y=C,b=D;for(g>=0&&(h=R,R=0,i=i.replace(".",""),v=new L(r),f=v.pow(i.length-g),R=h,v.c=n(w(m(f.c),f.e,"0"),10,a,t),v.e=v.c.length),p=n(i,r,a,s?(c=N,t):(c=t,N)),u=h=p.length;0==p[--h];p.pop());if(!p[0])return c.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=o,f=e(f,v,y,b,a),p=f.c,d=f.r,u=f.e),l=u+y+1,g=p[l],h=a/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])i=d?w(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=l,d)for(--a;++p[--l]>a;)p[l]=0,l||(++u,p=[1].concat(p));for(h=p.length;!p[--h];);for(g=0,i="";g<=h;i+=c.charAt(p[g++]));i=w(i,u,c.charAt(0))}return i}}(),e=function(){function t(t,e,n){var i,r,a,o,s=0,c=t.length,l=e%d,u=e/d|0;for(t=t.slice();c--;)a=t[c]%d,o=t[c]/d|0,i=u*a+o*l,r=l*a+i%d*d+s,s=(r/n|0)+(i/d|0)+u*o,t[c]=r%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,i){var r,a;if(n!=i)a=n>i?1:-1;else for(r=a=0;r<n;r++)if(t[r]!=e[r]){a=t[r]>e[r]?1:-1;break}return a}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(i,r,o,s,u){var h,d,f,p,m,g,y,b,_,w,k,S,x,C,D,T,O,E=i.s==r.s?1:-1,A=i.c,P=r.c;if(!A||!A[0]||!P||!P[0])return new L(i.s&&r.s&&(A?!P||A[0]!=P[0]:P)?A&&0==A[0]||!P?0*E:E/0:NaN);for(b=new L(E),_=b.c=[],d=i.e-r.e,E=o+d+1,u||(u=c,d=v(i.e/l)-v(r.e/l),E=E/l|0),f=0;P[f]==(A[f]||0);f++);if(P[f]>(A[f]||0)&&d--,E<0)_.push(1),p=!0;else{for(C=A.length,T=P.length,f=0,E+=2,m=a(u/(P[0]+1)),m>1&&(P=t(P,m,u),A=t(A,m,u),T=P.length,C=A.length),x=T,w=A.slice(0,T),k=w.length;k<T;w[k++]=0);O=P.slice(),O=[0].concat(O),D=P[0],P[1]>=u/2&&D++;do{if(m=0,h=e(P,w,T,k),h<0){if(S=w[0],T!=k&&(S=S*u+(w[1]||0)),m=a(S/D),m>1){m>=u&&(m=u-1),g=t(P,m,u),y=g.length,k=w.length;while(1==e(g,w,y,k))m--,n(g,T<y?O:P,y,u),y=g.length,h=1}else 0==m&&(h=m=1),g=P.slice(),y=g.length;if(y<k&&(g=[0].concat(g)),n(w,g,k,u),k=w.length,-1==h)while(e(P,w,T,k)<1)m++,n(w,T<k?O:P,k,u),k=w.length}else 0===h&&(m++,w=[0]);_[f++]=m,w[0]?w[k++]=A[x]||0:(w=[A[x]],k=1)}while((x++<C||null!=w[0])&&E--);p=null!=w[0],_[0]||_.splice(0,1)}if(u==c){for(f=1,E=_[0];E>=10;E/=10,f++);z(b,o+(b.e=f+d*l-1)+1,s,p)}else b.e=d,b.r=+p;return b}}(),k=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,r=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,c,l){var u,h=c?s:s.replace(r,"");if(i.test(h))a.s=isNaN(h)?null:h<0?-1:1;else{if(!c&&(h=h.replace(t,(function(t,e,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=u?t:e})),l&&(u=l,h=h.replace(e,"$1").replace(n,"0.$1")),s!=h))return new L(h,u);if(L.DEBUG)throw Error(o+"Not a"+(l?" base "+l:"")+" number: "+s);a.s=null}a.c=a.e=null}}(),S.absoluteValue=S.abs=function(){var t=new L(this);return t.s<0&&(t.s=1),t},S.comparedTo=function(t,e){return g(this,new L(t,e))},S.decimalPlaces=S.dp=function(t,e){var n,i,r,a=this;if(null!=t)return y(t,0,f),null==e?e=D:y(e,0,8),z(new L(a),t+a.e+1,e);if(!(n=a.c))return null;if(i=((r=n.length-1)-v(this.e/l))*l,r=n[r])for(;r%10==0;r/=10,i--);return i<0&&(i=0),i},S.dividedBy=S.div=function(t,n){return e(this,new L(t,n),C,D)},S.dividedToIntegerBy=S.idiv=function(t,n){return e(this,new L(t,n),0,1)},S.exponentiatedBy=S.pow=function(t,e){var n,i,s,c,u,h,d,f,p,v=this;if(t=new L(t),t.c&&!t.isInteger())throw Error(o+"Exponent not an integer: "+H(t));if(null!=e&&(e=new L(e)),h=t.e>14,!v.c||!v.c[0]||1==v.c[0]&&!v.e&&1==v.c.length||!t.c||!t.c[0])return p=new L(Math.pow(+H(v),h?2-b(t):+H(t))),e?p.mod(e):p;if(d=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new L(NaN);i=!d&&v.isInteger()&&e.isInteger(),i&&(v=v.mod(e))}else{if(t.e>9&&(v.e>0||v.e<-1||(0==v.e?v.c[0]>1||h&&v.c[1]>=24e7:v.c[0]<8e13||h&&v.c[0]<=9999975e7)))return c=v.s<0&&b(t)?-0:0,v.e>-1&&(c=1/c),new L(d?1/c:c);R&&(c=r(R/l+2))}for(h?(n=new L(.5),d&&(t.s=1),f=b(t)):(s=Math.abs(+H(t)),f=s%2),p=new L(x);;){if(f){if(p=p.times(v),!p.c)break;c?p.c.length>c&&(p.c.length=c):i&&(p=p.mod(e))}if(s){if(s=a(s/2),0===s)break;f=s%2}else if(t=t.times(n),z(t,t.e+1,1),t.e>14)f=b(t);else{if(s=+H(t),0===s)break;f=s%2}v=v.times(v),c?v.c&&v.c.length>c&&(v.c.length=c):i&&(v=v.mod(e))}return i?p:(d&&(p=x.div(p)),e?p.mod(e):c?z(p,R,D,u):p)},S.integerValue=function(t){var e=new L(this);return null==t?t=D:y(t,0,8),z(e,e.e+1,t)},S.isEqualTo=S.eq=function(t,e){return 0===g(this,new L(t,e))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(t,e){return g(this,new L(t,e))>0},S.isGreaterThanOrEqualTo=S.gte=function(t,e){return 1===(e=g(this,new L(t,e)))||0===e},S.isInteger=function(){return!!this.c&&v(this.e/l)>this.c.length-2},S.isLessThan=S.lt=function(t,e){return g(this,new L(t,e))<0},S.isLessThanOrEqualTo=S.lte=function(t,e){return-1===(e=g(this,new L(t,e)))||0===e},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(t,e){var n,i,r,a,o=this,s=o.s;if(t=new L(t,e),e=t.s,!s||!e)return new L(NaN);if(s!=e)return t.s=-e,o.plus(t);var u=o.e/l,h=t.e/l,d=o.c,f=t.c;if(!u||!h){if(!d||!f)return d?(t.s=-e,t):new L(f?o:NaN);if(!d[0]||!f[0])return f[0]?(t.s=-e,t):new L(d[0]?o:3==D?-0:0)}if(u=v(u),h=v(h),d=d.slice(),s=u-h){for((a=s<0)?(s=-s,r=d):(h=u,r=f),r.reverse(),e=s;e--;r.push(0));r.reverse()}else for(i=(a=(s=d.length)<(e=f.length))?s:e,s=e=0;e<i;e++)if(d[e]!=f[e]){a=d[e]<f[e];break}if(a&&(r=d,d=f,f=r,t.s=-t.s),e=(i=f.length)-(n=d.length),e>0)for(;e--;d[n++]=0);for(e=c-1;i>s;){if(d[--i]<f[i]){for(n=i;n&&!d[--n];d[n]=e);--d[n],d[i]+=c}d[i]-=f[i]}for(;0==d[0];d.splice(0,1),--h);return d[0]?j(t,d,h):(t.s=3==D?-1:1,t.c=[t.e=0],t)},S.modulo=S.mod=function(t,n){var i,r,a=this;return t=new L(t,n),!a.c||!t.s||t.c&&!t.c[0]?new L(NaN):!t.c||a.c&&!a.c[0]?new L(a):(9==M?(r=t.s,t.s=1,i=e(a,t,0,3),t.s=r,i.s*=r):i=e(a,t,0,M),t=a.minus(i.times(t)),t.c[0]||1!=M||(t.s=a.s),t)},S.multipliedBy=S.times=function(t,e){var n,i,r,a,o,s,u,h,f,p,m,g,y,b,_,w=this,k=w.c,S=(t=new L(t,e)).c;if(!k||!S||!k[0]||!S[0])return!w.s||!t.s||k&&!k[0]&&!S||S&&!S[0]&&!k?t.c=t.e=t.s=null:(t.s*=w.s,k&&S?(t.c=[0],t.e=0):t.c=t.e=null),t;for(i=v(w.e/l)+v(t.e/l),t.s*=w.s,u=k.length,p=S.length,u<p&&(y=k,k=S,S=y,r=u,u=p,p=r),r=u+p,y=[];r--;y.push(0));for(b=c,_=d,r=p;--r>=0;){for(n=0,m=S[r]%_,g=S[r]/_|0,o=u,a=r+o;a>r;)h=k[--o]%_,f=k[o]/_|0,s=g*h+f*m,h=m*h+s%_*_+y[a]+n,n=(h/b|0)+(s/_|0)+g*f,y[a--]=h%b;y[a]=n}return n?++i:y.splice(0,1),j(t,y,i)},S.negated=function(){var t=new L(this);return t.s=-t.s||null,t},S.plus=function(t,e){var n,i=this,r=i.s;if(t=new L(t,e),e=t.s,!r||!e)return new L(NaN);if(r!=e)return t.s=-e,i.minus(t);var a=i.e/l,o=t.e/l,s=i.c,u=t.c;if(!a||!o){if(!s||!u)return new L(r/0);if(!s[0]||!u[0])return u[0]?t:new L(s[0]?i:0*r)}if(a=v(a),o=v(o),s=s.slice(),r=a-o){for(r>0?(o=a,n=u):(r=-r,n=s),n.reverse();r--;n.push(0));n.reverse()}for(r=s.length,e=u.length,r-e<0&&(n=u,u=s,s=n,e=r),r=0;e;)r=(s[--e]=s[e]+u[e]+r)/c|0,s[e]=c===s[e]?0:s[e]%c;return r&&(s=[r].concat(s),++o),j(t,s,o)},S.precision=S.sd=function(t,e){var n,i,r,a=this;if(null!=t&&t!==!!t)return y(t,1,f),null==e?e=D:y(e,0,8),z(new L(a),t,e);if(!(n=a.c))return null;if(r=n.length-1,i=r*l+1,r=n[r]){for(;r%10==0;r/=10,i--);for(r=n[0];r>=10;r/=10,i++);}return t&&a.e+1>i&&(i=a.e+1),i},S.shiftedBy=function(t){return y(t,-u,u),this.times("1e"+t)},S.squareRoot=S.sqrt=function(){var t,n,i,r,a,o=this,s=o.c,c=o.s,l=o.e,u=C+4,h=new L("0.5");if(1!==c||!s||!s[0])return new L(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(c=Math.sqrt(+H(o)),0==c||c==1/0?(n=m(s),(n.length+l)%2==0&&(n+="0"),c=Math.sqrt(+n),l=v((l+1)/2)-(l<0||l%2),c==1/0?n="5e"+l:(n=c.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),i=new L(n)):i=new L(c+""),i.c[0])for(l=i.e,c=l+u,c<3&&(c=0);;)if(a=i,i=h.times(a.plus(e(o,a,u,1))),m(a.c).slice(0,c)===(n=m(i.c)).slice(0,c)){if(i.e<l&&--c,n=n.slice(c-3,c+1),"9999"!=n&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(z(i,i.e+C+2,1),t=!i.times(i).eq(o));break}if(!r&&(z(a,a.e+C+2,0),a.times(a).eq(o))){i=a;break}u+=4,c+=4,r=1}return z(i,i.e+C+1,D,t)},S.toExponential=function(t,e){return null!=t&&(y(t,0,f),t++),F(this,t,e,1)},S.toFixed=function(t,e){return null!=t&&(y(t,0,f),t=t+this.e+1),F(this,t,e)},S.toFormat=function(t,e,n){var i,r=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=I;else if("object"!=typeof n)throw Error(o+"Argument not an object: "+n);if(i=r.toFixed(t,e),r.c){var a,s=i.split("."),c=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",h=s[0],d=s[1],f=r.s<0,p=f?h.slice(1):h,v=p.length;if(l&&(a=c,c=l,l=a,v-=a),c>0&&v>0){for(a=v%c||c,h=p.substr(0,a);a<v;a+=c)h+=u+p.substr(a,c);l>0&&(h+=u+p.slice(a)),f&&(h="-"+h)}i=d?h+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+i+(n.suffix||"")},S.toFraction=function(t){var n,i,r,a,s,c,u,d,f,p,v,g,y=this,b=y.c;if(null!=t&&(u=new L(t),!u.isInteger()&&(u.c||1!==u.s)||u.lt(x)))throw Error(o+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+H(u));if(!b)return new L(y);for(n=new L(x),f=i=new L(x),r=d=new L(x),g=m(b),s=n.e=g.length-y.e-1,n.c[0]=h[(c=s%l)<0?l+c:c],t=!t||u.comparedTo(n)>0?s>0?n:f:u,c=A,A=1/0,u=new L(g),d.c[0]=0;;){if(p=e(u,n,0,1),a=i.plus(p.times(r)),1==a.comparedTo(t))break;i=r,r=a,f=d.plus(p.times(a=f)),d=a,n=u.minus(p.times(a=n)),u=a}return a=e(t.minus(i),r,0,1),d=d.plus(a.times(f)),i=i.plus(a.times(r)),d.s=f.s=y.s,s*=2,v=e(f,r,s,D).minus(y).abs().comparedTo(e(d,i,s,D).minus(y).abs())<1?[f,r]:[d,i],A=c,v},S.toNumber=function(){return+H(this)},S.toPrecision=function(t,e){return null!=t&&y(t,1,f),F(this,t,e,2)},S.toString=function(t){var e,i=this,r=i.s,a=i.e;return null===a?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(null==t?e=a<=T||a>=O?_(m(i.c),a):w(m(i.c),a,"0"):10===t&&$?(i=z(new L(i),C+a+1,D),e=w(m(i.c),i.e,"0")):(y(t,2,N.length,"Base"),e=n(w(m(i.c),a,"0"),10,t,r,!0)),r<0&&i.c[0]&&(e="-"+e)),e},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,S[Symbol.toStringTag]="BigNumber",S[Symbol.for("nodejs.util.inspect.custom")]=S.valueOf,null!=t&&L.set(t),L}function v(t){var e=0|t;return t>0||t===e?e:e-1}function m(t){for(var e,n,i=1,r=t.length,a=t[0]+"";i<r;){for(e=t[i++]+"",n=l-e.length;n--;e="0"+e);a+=e}for(r=a.length;48===a.charCodeAt(--r););return a.slice(0,r+1||1)}function g(t,e){var n,i,r=t.c,a=e.c,o=t.s,s=e.s,c=t.e,l=e.e;if(!o||!s)return null;if(n=r&&!r[0],i=a&&!a[0],n||i)return n?i?0:-s:o;if(o!=s)return o;if(n=o<0,i=c==l,!r||!a)return i?0:!r^n?1:-1;if(!i)return c>l^n?1:-1;for(s=(c=r.length)<(l=a.length)?c:l,o=0;o<s;o++)if(r[o]!=a[o])return r[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function y(t,e,n,i){if(t<e||t>n||t!==a(t))throw Error(o+(i||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function b(t){var e=t.c.length-1;return v(t.e/l)==e&&t.c[e]%2!=0}function _(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function w(t,e,n){var i,r;if(e<0){for(r=n+".";++e;r+=n);t=r+t}else if(i=t.length,++e>i){for(r=n,e-=i;--e;r+=n);t+=r}else e<i&&(t=t.slice(0,e)+"."+t.slice(e));return t}var k=p();const S=k},649:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>rr});var i=Math.PI/180;function r(){return"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window))}const a="undefined"!==typeof global?global:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},o={_global:a,version:"8.3.13",isBrowser:r(),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle(t){return o.angleDeg?t*i:t},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return o["DD"].isDragging},isDragReady(){return!!o["DD"].node},document:a.document,_injectGlobal(t){a.Konva=t}},s=t=>{o[t.prototype.getClassName()]=t};o._injectGlobal(o);class c{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new c(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}}translate(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this}scale(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}rotate(t){var e=Math.cos(t),n=Math.sin(t),i=this.m[0]*e+this.m[2]*n,r=this.m[1]*e+this.m[3]*n,a=this.m[0]*-n+this.m[2]*e,o=this.m[1]*-n+this.m[3]*e;return this.m[0]=i,this.m[1]=r,this.m[2]=a,this.m[3]=o,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,e){var n=this.m[0]+this.m[2]*e,i=this.m[1]+this.m[3]*e,r=this.m[2]+this.m[0]*t,a=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=i,this.m[2]=r,this.m[3]=a,this}multiply(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],i=this.m[0]*t.m[2]+this.m[2]*t.m[3],r=this.m[1]*t.m[2]+this.m[3]*t.m[3],a=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],o=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=a,this.m[5]=o,this}invert(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,i=-this.m[2]*t,r=this.m[0]*t,a=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=a,this.m[5]=o,this}getMatrix(){return this.m}decompose(){var t=this.m[0],e=this.m[1],n=this.m[2],i=this.m[3],r=this.m[4],a=this.m[5],o=t*i-e*n;let s={x:r,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=e){var c=Math.sqrt(t*t+e*e);s.rotation=e>0?Math.acos(t/c):-Math.acos(t/c),s.scaleX=c,s.scaleY=o/c,s.skewX=(t*n+e*i)/o,s.skewY=0}else if(0!=n||0!=i){var l=Math.sqrt(n*n+i*i);s.rotation=Math.PI/2-(i>0?Math.acos(-n/l):-Math.acos(n/l)),s.scaleX=o/l,s.scaleY=l,s.skewX=0,s.skewY=(t*n+e*i)/o}return s.rotation=C._getRotation(s.rotation),s}}var l="[object Array]",u="[object Number]",h="[object String]",d="[object Boolean]",f=Math.PI/180,p=180/Math.PI,v="#",m="",g="0",y="Konva warning: ",b="Konva error: ",_="rgb(",w={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},k=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,S=[];const x="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(t){setTimeout(t,60)},C={_isElement(t){return!(!t||1!=t.nodeType)},_isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject(t){return!!t&&t.constructor===Object},_isArray(t){return Object.prototype.toString.call(t)===l},_isNumber(t){return Object.prototype.toString.call(t)===u&&!isNaN(t)&&isFinite(t)},_isString(t){return Object.prototype.toString.call(t)===h},_isBoolean(t){return Object.prototype.toString.call(t)===d},isObject(t){return t instanceof Object},isValidSelector(t){if("string"!==typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign(t){return 0===t||t>0?1:-1},requestAnimFrame(t){S.push(t),1===S.length&&x((function(){const t=S;S=[],t.forEach((function(t){t()}))}))},createCanvasElement(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch(e){}return t},createImageElement(){return document.createElement("img")},_isInDocument(t){while(t=t.parentNode)if(t==document)return!0;return!1},_urlToImage(t,e){var n=C.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb(t){t=t.replace(v,m);var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor(){var t=(16777215*Math.random()<<0).toString(16);while(t.length<6)t=g+t;return v+t},getRGB(t){var e;return t in w?(e=w[t],{r:e[0],g:e[1],b:e[2]}):t[0]===v?this._hexToRgb(t.substring(1)):t.substr(0,4)===_?(e=k.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA(t){return t=t||"black",C._namedColorToRBA(t)||C._hex3ColorToRGBA(t)||C._hex6ColorToRGBA(t)||C._rgbColorToRGBA(t)||C._rgbaColorToRGBA(t)||C._hslColorToRGBA(t)},_namedColorToRBA(t){var e=w[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(((t,e)=>"%"===t.slice(-1)?3===e?parseInt(t)/100:parseInt(t)/100*255:Number(t)));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){const[e,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),i=Number(n[0])/360,r=Number(n[1])/100,a=Number(n[2])/100;let o,s,c;if(0===r)return c=255*a,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};o=a<.5?a*(1+r):a+r-a*r;const l=2*a-o,u=[0,0,0];for(let t=0;t<3;t++)s=i+1/3*-(t-1),s<0&&s++,s>1&&s--,c=6*s<1?l+6*(o-l)*s:2*s<1?o:3*s<2?l+(o-l)*(2/3-s)*6:l,u[t]=255*c;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray(t){return t.slice(0)},degToRad(t){return t*f},radToDeg(t){return t*p},_degToRad(t){return C.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),C.degToRad(t)},_radToDeg(t){return C.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),C.radToDeg(t)},_getRotation(t){return o.angleDeg?C.radToDeg(t):t},_capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw(t){throw new Error(b+t)},error(t){console.error(b+t)},warn(t){o.showWarnings&&console.warn(y+t)},each(t,e){for(var n in t)e(n,t[n])},_inRange(t,e,n){return e<=t&&t<n},_getProjectionToSegment(t,e,n,i,r,a){var o,s,c,l=(t-n)*(t-n)+(e-i)*(e-i);if(0==l)o=t,s=e,c=(r-n)*(r-n)+(a-i)*(a-i);else{var u=((r-t)*(n-t)+(a-e)*(i-e))/l;u<0?(o=t,s=e,c=(t-r)*(t-r)+(e-a)*(e-a)):u>1?(o=n,s=i,c=(n-r)*(n-r)+(i-a)*(i-a)):(o=t+u*(n-t),s=e+u*(i-e),c=(o-r)*(o-r)+(s-a)*(s-a))}return[o,s,c]},_getProjectionToLine(t,e,n){var i=C.cloneObject(t),r=Number.MAX_VALUE;return e.forEach((function(a,o){if(n||o!==e.length-1){var s=e[(o+1)%e.length],c=C._getProjectionToSegment(a.x,a.y,s.x,s.y,t.x,t.y),l=c[0],u=c[1],h=c[2];h<r&&(i.x=l,i.y=u,r=h)}})),i},_prepareArrayForTween(t,e,n){var i,r=[],a=[];if(t.length>e.length){var o=e;e=t,t=o}for(i=0;i<t.length;i+=2)r.push({x:t[i],y:t[i+1]});for(i=0;i<e.length;i+=2)a.push({x:e[i],y:e[i+1]});var s=[];return a.forEach((function(t){var e=C._getProjectionToLine(t,r,n);s.push(e.x),s.push(e.y)})),s},_prepareToStringify(t){var e;for(var n in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||C._isElement(t[n])){if(!e.configurable)return null;delete t[n]}else if(null===C._prepareToStringify(t[n])){if(!e.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(var n in e)t[n]=e[n];return t},_getFirstPointerId(t){return t.touches?t.changedTouches[0].identifier:t.pointerId||999}};function D(t){return C._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||C._isBoolean(t)?t:Object.prototype.toString.call(t)}function T(t){return t>255?255:t<0?0:Math.round(t)}function O(){if(o.isUnminified)return function(t,e){return C._isNumber(t)||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function E(t){if(o.isUnminified)return function(e,n){let i=C._isNumber(e),r=C._isArray(e)&&e.length==t;return i||r||C.warn(D(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function A(){if(o.isUnminified)return function(t,e){var n=C._isNumber(t),i="auto"===t;return n||i||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function P(){if(o.isUnminified)return function(t,e){return C._isString(t)||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function M(){if(o.isUnminified)return function(t,e){const n=C._isString(t),i="[object CanvasGradient]"===Object.prototype.toString.call(t)||t&&t.addColorStop;return n||i||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function R(){if(o.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(C._isArray(t)?t.forEach((function(t){C._isNumber(t)||C.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")})):C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function I(){if(o.isUnminified)return function(t,e){var n=!0===t||!1===t;return n||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function N(t){if(o.isUnminified)return function(e,n){return void 0===e||null===e||C.isObject(e)||C.warn(D(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}var $="get",L="set";const F={addGetterSetter(t,e,n,i,r){F.addGetter(t,e,n),F.addSetter(t,e,i,r),F.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){var i=$+C._capitalize(e);t.prototype[i]=t.prototype[i]||function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter(t,e,n,i){var r=L+C._capitalize(e);t.prototype[r]||F.overWriteSetter(t,e,n,i)},overWriteSetter(t,e,n,i){var r=L+C._capitalize(e);t.prototype[r]=function(t){return n&&void 0!==t&&null!==t&&(t=n.call(this,t,e)),this._setAttr(e,t),i&&i.call(this),this}},addComponentsGetterSetter(t,e,n,i,r){var a,o,s=n.length,c=C._capitalize,l=$+c(e),u=L+c(e);t.prototype[l]=function(){var t={};for(a=0;a<s;a++)o=n[a],t[o]=this.getAttr(e+c(o));return t};var h=N(n);t.prototype[u]=function(t){var a,o=this.attrs[e];for(a in i&&(t=i.call(this,t)),h&&h.call(this,t,e),t)t.hasOwnProperty(a)&&this._setAttr(e+c(a),t[a]);return t||n.forEach((t=>{this._setAttr(e+c(t),void 0)})),this._fireChangeEvent(e,o,t),r&&r.call(this),this},F.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){var n=C._capitalize(e),i=L+n,r=$+n;t.prototype[e]=function(){return arguments.length?(this[i](arguments[0]),this):this[r]()}},addDeprecatedGetterSetter(t,e,n,i){C.error("Adding deprecated "+e);var r=$+C._capitalize(e),a=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[r]=function(){C.error(a);var t=this.attrs[e];return void 0===t?n:t},F.addSetter(t,e,i,(function(){C.error(a)})),F.addOverloadedGetterSetter(t,e)},backCompat(t,e){C.each(e,(function(e,n){var i=t.prototype[n],r=$+C._capitalize(e),a=L+C._capitalize(e);function o(){i.apply(this,arguments),C.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=o,t.prototype[r]=o,t.prototype[a]=o}))},afterSetFilter(){this._filterUpToDate=!1}};function B(t){var e,n,i=[],r=t.length,a=C;for(e=0;e<r;e++)n=t[e],a._isNumber(n)?n=Math.round(1e3*n)/1e3:a._isString(n)||(n+=""),i.push(n);return i}var j=",",z="(",H=")",V="([",G="])",W=";",U="()",Y="=",q=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],X=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const K=100;class J{constructor(t){this.canvas=t,o.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,e){var n,i,r,a,o=this.traceArr,s=o.length,c="";for(n=0;n<s;n++)i=o[n],r=i.method,r?(a=i.args,c+=r,t?c+=U:C._isArray(a[0])?c+=V+a.join(j)+G:(e&&(a=a.map((t=>"number"===typeof t?Math.floor(t):t))),c+=z+a.join(j)+H)):(c+=i.property,t||(c+=Y+i.val)),c+=W;return c}clearTrace(){this.traceArr=[]}_trace(t){var e,n=this.traceArr;n.push(t),e=n.length,e>=K&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)}_applyLineCap(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)}_applyOpacity(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)}_applyLineJoin(t){var e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}setAttr(t,e){this._context[t]=e}arc(t,e,n,i,r,a){this._context.arc(t,e,n,i,r,a)}arcTo(t,e,n,i,r){this._context.arcTo(t,e,n,i,r)}beginPath(){this._context.beginPath()}bezierCurveTo(t,e,n,i,r,a){this._context.bezierCurveTo(t,e,n,i,r,a)}clearRect(t,e,n,i){this._context.clearRect(t,e,n,i)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(t,e){var n=arguments;return 2===n.length?this._context.createImageData(t,e):1===n.length?this._context.createImageData(t):void 0}createLinearGradient(t,e,n,i){return this._context.createLinearGradient(t,e,n,i)}createPattern(t,e){return this._context.createPattern(t,e)}createRadialGradient(t,e,n,i,r,a){return this._context.createRadialGradient(t,e,n,i,r,a)}drawImage(t,e,n,i,r,a,o,s,c){var l=arguments,u=this._context;3===l.length?u.drawImage(t,e,n):5===l.length?u.drawImage(t,e,n,i,r):9===l.length&&u.drawImage(t,e,n,i,r,a,o,s,c)}ellipse(t,e,n,i,r,a,o,s){this._context.ellipse(t,e,n,i,r,a,o,s)}isPointInPath(t,e){return this._context.isPointInPath(t,e)}fill(t){t?this._context.fill(t):this._context.fill()}fillRect(t,e,n,i){this._context.fillRect(t,e,n,i)}strokeRect(t,e,n,i){this._context.strokeRect(t,e,n,i)}fillText(t,e,n,i){i?this._context.fillText(t,e,n,i):this._context.fillText(t,e,n)}measureText(t){return this._context.measureText(t)}getImageData(t,e,n,i){return this._context.getImageData(t,e,n,i)}lineTo(t,e){this._context.lineTo(t,e)}moveTo(t,e){this._context.moveTo(t,e)}rect(t,e,n,i){this._context.rect(t,e,n,i)}putImageData(t,e,n){this._context.putImageData(t,e,n)}quadraticCurveTo(t,e,n,i){this._context.quadraticCurveTo(t,e,n,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,e){this._context.scale(t,e)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context["mozDash"]=t:"webkitLineDash"in this._context&&(this._context["webkitLineDash"]=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,e,n,i,r,a){this._context.setTransform(t,e,n,i,r,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,e,n,i){this._context.strokeText(t,e,n,i)}transform(t,e,n,i,r,a){this._context.transform(t,e,n,i,r,a)}translate(t,e){this._context.translate(t,e)}_enableTrace(){var t,e,n=this,i=q.length,r=this.setAttr,a=function(t){var i,r=n[t];n[t]=function(){return e=B(Array.prototype.slice.call(arguments,0)),i=r.apply(n,arguments),n._trace({method:t,args:e}),i}};for(t=0;t<i;t++)a(q[t]);n.setAttr=function(){r.apply(n,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}}_applyGlobalCompositeOperation(t){const e=t.attrs.globalCompositeOperation;var n=!e||"source-over"===e;n||this.setAttr("globalCompositeOperation",e)}}X.forEach((function(t){Object.defineProperty(J.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})}));class Z extends J{constructor(t){super(t),this._context=t._canvas.getContext("2d")}_fillColor(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fillRadialGradient(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fill(t){var e=t.fill(),n=t.getFillPriority();if(e&&"color"===n)this._fillColor(t);else{var i=t.getFillPatternImage();if(i&&"pattern"===n)this._fillPattern(t);else{var r=t.getFillLinearGradientColorStops();if(r&&"linear-gradient"===n)this._fillLinearGradient(t);else{var a=t.getFillRadialGradientColorStops();a&&"radial-gradient"===n?this._fillRadialGradient(t):e?this._fillColor(t):i?this._fillPattern(t):r?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}}}}_strokeLinearGradient(t){var e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),r=this.createLinearGradient(e.x,e.y,n.x,n.y);if(i){for(var a=0;a<i.length;a+=2)r.addColorStop(i[a],i[a+1]);this.setAttr("strokeStyle",r)}}_stroke(t){var e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var r=t.getStrokeLinearGradientColorStops();r?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var e,n,i,r=null!==(e=t.getShadowRGBA())&&void 0!==e?e:"black",a=null!==(n=t.getShadowBlur())&&void 0!==n?n:5,o=null!==(i=t.getShadowOffset())&&void 0!==i?i:{x:0,y:0},s=t.getAbsoluteScale(),c=this.canvas.getPixelRatio(),l=s.x*c,u=s.y*c;this.setAttr("shadowColor",r),this.setAttr("shadowBlur",a*Math.min(Math.abs(l),Math.abs(u))),this.setAttr("shadowOffsetX",o.x*l),this.setAttr("shadowOffsetY",o.y*u)}}class Q extends J{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var i=t.hitStrokeWidth(),r="auto"===i?t.strokeWidth():i;this.setAttr("lineWidth",r),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}}var tt;function et(){if(tt)return tt;var t=C.createCanvasElement(),e=t.getContext("2d");return tt=function(){var t=o._global.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}(),tt}class nt{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=t||{},n=e.pixelRatio||o.pixelRatio||et();this.pixelRatio=n,this._canvas=C.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,e){this.setWidth(t||0),this.setHeight(e||0)}toDataURL(t,e){try{return this._canvas.toDataURL(t,e)}catch(n){try{return this._canvas.toDataURL()}catch(i){return C.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}F.addGetterSetter(nt,"pixelRatio",void 0,O());class it extends nt{constructor(t={width:0,height:0}){super(t),this.context=new Z(this),this.setSize(t.width,t.height)}}class rt extends nt{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new Q(this),this.setSize(t.width,t.height)}}const at={get isDragging(){var t=!1;return at._dragElements.forEach((e=>{"dragging"===e.dragStatus&&(t=!0)})),t},justDragged:!1,get node(){var t;return at._dragElements.forEach((e=>{t=e.node})),t},_dragElements:new Map,_drag(t){const e=[];at._dragElements.forEach(((n,i)=>{const{node:r}=n,a=r.getStage();a.setPointersPositions(t),void 0===n.pointerId&&(n.pointerId=C._getFirstPointerId(t));const o=a._changedPointerPositions.find((t=>t.id===n.pointerId));if(o){if("dragging"!==n.dragStatus){var s=r.dragDistance(),c=Math.max(Math.abs(o.x-n.startPointerPos.x),Math.abs(o.y-n.startPointerPos.y));if(c<s)return;if(r.startDrag({evt:t}),!r.isDragging())return}r._setDragPosition(t,n),e.push(r)}})),e.forEach((e=>{e.fire("dragmove",{type:"dragmove",target:e,evt:t},!0)}))},_endDragBefore(t){const e=[];at._dragElements.forEach((n=>{const{node:i}=n,r=i.getStage();t&&r.setPointersPositions(t);const a=r._changedPointerPositions.find((t=>t.id===n.pointerId));if(!a)return;"dragging"!==n.dragStatus&&"stopped"!==n.dragStatus||(at.justDragged=!0,o._mouseListenClick=!1,o._touchListenClick=!1,o._pointerListenClick=!1,n.dragStatus="stopped");const s=n.node.getLayer()||n.node instanceof o.Stage&&n.node;s&&-1===e.indexOf(s)&&e.push(s)})),e.forEach((t=>{t.draw()}))},_endDragAfter(t){at._dragElements.forEach(((e,n)=>{"stopped"===e.dragStatus&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),"dragging"!==e.dragStatus&&at._dragElements.delete(n)}))}};o.isBrowser&&(window.addEventListener("mouseup",at._endDragBefore,!0),window.addEventListener("touchend",at._endDragBefore,!0),window.addEventListener("mousemove",at._drag),window.addEventListener("touchmove",at._drag),window.addEventListener("mouseup",at._endDragAfter,!1),window.addEventListener("touchend",at._endDragAfter,!1));var ot="absoluteOpacity",st="allEventListeners",ct="absoluteTransform",lt="absoluteScale",ut="canvas",ht="Change",dt="children",ft="konva",pt="listening",vt="mouseenter",mt="mouseleave",gt="set",yt="Shape",bt=" ",_t="stage",wt="transform",kt="Stage",St="visible",xt=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(bt);let Ct=1;class Dt{constructor(t){this._id=Ct++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){t!==wt&&t!==ct||!this._cache.get(t)?t?this._cache.delete(t):this._cache.clear():this._cache.get(t).dirty=!0}_getCache(t,e){var n=this._cache.get(t),i=t===wt||t===ct,r=void 0===n||i&&!0===n.dirty;return r&&(n=e.call(this),this._cache.set(t,n)),n}_calculate(t,e,n){if(!this._attachedDepsListeners.get(t)){const n=e.map((t=>t+"Change.konva")).join(bt);this.on(n,(()=>{this._clearCache(t)})),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(ut)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===ct&&this.fire("absoluteTransformChange")}clearCache(){return this._cache.delete(ut),this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var e=t||{},n={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=Math.ceil(e.width||n.width),r=Math.ceil(e.height||n.height),a=e.pixelRatio,o=void 0===e.x?Math.floor(n.x):e.x,s=void 0===e.y?Math.floor(n.y):e.y,c=e.offset||0,l=e.drawBorder||!1,u=e.hitCanvasPixelRatio||1;if(i&&r){i+=2*c+1,r+=2*c+1,o-=c,s-=c;var h=new it({pixelRatio:a,width:i,height:r}),d=new it({pixelRatio:a,width:0,height:0}),f=new rt({pixelRatio:u,width:i,height:r}),p=h.getContext(),v=f.getContext();return f.isCache=!0,h.isCache=!0,this._cache.delete(ut),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(h.getContext()._context.imageSmoothingEnabled=!1,d.getContext()._context.imageSmoothingEnabled=!1),p.save(),v.save(),p.translate(-o,-s),v.translate(-o,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(ot),this._clearSelfAndDescendantCache(lt),this.drawScene(h,this),this.drawHit(f,this),this._isUnderCache=!1,p.restore(),v.restore(),l&&(p.save(),p.beginPath(),p.rect(0,0,i,r),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.set(ut,{scene:h,filter:d,hit:f,x:o,y:s}),this._requestDraw(),this}C.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.")}isCached(){return this._cache.has(ut)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,e){var n,i,r,a,o=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return o.forEach((function(t){var e=s.point(t);void 0===n&&(n=r=e.x,i=a=e.y),n=Math.min(n,e.x),i=Math.min(i,e.y),r=Math.max(r,e.x),a=Math.max(a,e.y)})),{x:n,y:i,width:r-n,height:a-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const e=this._getCanvasCache();t.translate(e.x,e.y);var n=this._getCachedSceneCanvas(),i=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/i,n.height/i),t.restore()}_drawCachedHitCanvas(t){var e=this._getCanvasCache(),n=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t,e,n,i,r=this.filters(),a=this._getCanvasCache(),o=a.scene,s=a.filter,c=s.getContext();if(r){if(!this._filterUpToDate){var l=o.pixelRatio;s.setSize(o.width/o.pixelRatio,o.height/o.pixelRatio);try{for(t=r.length,c.clear(),c.drawImage(o._canvas,0,0,o.getWidth()/l,o.getHeight()/l),e=c.getImageData(0,0,s.getWidth(),s.getHeight()),n=0;n<t;n++)i=r[n],"function"===typeof i?(i.call(this,e),c.putImageData(e,0,0)):C.error("Filter should be type of function, but got "+typeof i+" instead. Please check correct filters")}catch(u){C.error("Unable to apply filter. "+u.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return s}return o}on(t,e){if(this._cache&&this._cache.delete(st),3===arguments.length)return this._delegate.apply(this,arguments);var n,i,r,a,o,s=t.split(bt),c=s.length;for(n=0;n<c;n++)i=s[n],r=i.split("."),a=r[0],o=r[1]||"",this.eventListeners[a]||(this.eventListeners[a]=[]),this.eventListeners[a].push({name:o,handler:e});return this}off(t,e){var n,i,r,a,o,s,c=(t||"").split(bt),l=c.length;if(this._cache&&this._cache.delete(st),!t)for(i in this.eventListeners)this._off(i);for(n=0;n<l;n++)if(r=c[n],a=r.split("."),o=a[0],s=a[1],o)this.eventListeners[o]&&this._off(o,s,e);else for(i in this.eventListeners)this._off(i,s,e);return this}dispatchEvent(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this}addEventListener(t,e){return this.on(t,(function(t){e.call(this,t.evt)})),this}removeEventListener(t){return this.off(t),this}_delegate(t,e,n){var i=this;this.on(t,(function(t){for(var r=t.target.findAncestors(e,!0,i),a=0;a<r.length;a++)t=C.cloneObject(t),t.currentTarget=r[a],n.call(r[a],t)}))}remove(){return this.isDragging()&&this.stopDrag(),at._dragElements["delete"](this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(ct),this._clearSelfAndDescendantCache(ot),this._clearSelfAndDescendantCache(lt),this._clearSelfAndDescendantCache(_t),this._clearSelfAndDescendantCache(St),this._clearSelfAndDescendantCache(pt)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this}getAttr(t){var e="get"+C._capitalize(t);return C._isFunction(this[e])?this[e]():this.attrs[t]}getAncestors(){var t=this.getParent(),e=[];while(t)e.push(t),t=t.getParent();return e}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges((()=>{var e,n;if(!t)return this;for(e in t)e!==dt&&(n=gt+C._capitalize(e),C._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]))})),this}isListening(){return this._getCache(pt,this._isListening)}_isListening(t){const e=this.listening();if(!e)return!1;const n=this.getParent();return!n||n===t||this===t||n._isListening(t)}isVisible(){return this._getCache(St,this._isVisible)}_isVisible(t){const e=this.visible();if(!e)return!1;const n=this.getParent();return!n||n===t||this===t||n._isVisible(t)}shouldDrawHit(t,e=!1){if(t)return this._isVisible(t)&&this._isListening(t);var n=this.getLayer(),i=!1;at._dragElements.forEach((t=>{"dragging"===t.dragStatus&&("Stage"===t.node.nodeType||t.node.getLayer()===n)&&(i=!0)}));var r=!e&&!o.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!r}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t,e,n,i,r=this.getDepth(),a=this,o=0;function s(c){for(t=[],e=c.length,n=0;n<e;n++)i=c[n],o++,i.nodeType!==yt&&(t=t.concat(i.getChildren().slice())),i._id===a._id&&(n=e);t.length>0&&t[0].getDepth()<=r&&s(t)}return a.nodeType!==kt&&s(a.getStage().getChildren()),o}getDepth(){var t=0,e=this.parent;while(e)t++,e=e.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(wt),this._clearSelfAndDescendantCache(ct)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges((()=>{this.x(t.x),this.y(t.y)})),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var t=this.getStage().getPointerPosition();if(!t)return null;var e=this.getAbsoluteTransform().copy();return e.invert(),e.point(t)}getAbsolutePosition(t){let e=!1,n=this.parent;while(n){if(n.isCached()){e=!0;break}n=n.parent}e&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),r=new c,a=this.offset();return r.m=i.slice(),r.translate(a.x,a.y),r.getTranslation()}setAbsolutePosition(t){var e=this._clearTransform();this.attrs.x=e.x,this.attrs.y=e.y,delete e.x,delete e.y,this._clearCache(wt);var n=this._getAbsoluteTransform().copy();return n.invert(),n.translate(t.x,t.y),t={x:this.attrs.x+n.getTranslation().x,y:this.attrs.y+n.getTranslation().y},this._setTransform(e),this.setPosition({x:t.x,y:t.y}),this._clearCache(wt),this._clearSelfAndDescendantCache(ct),this}_setTransform(t){var e;for(e in t)this.attrs[e]=t[e]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var e=t.x,n=t.y,i=this.x(),r=this.y();return void 0!==e&&(i+=e),void 0!==n&&(r+=n),this.setPosition({x:i,y:r}),this}_eachAncestorReverse(t,e){var n,i,r=[],a=this.getParent();if(!e||e._id!==this._id){r.unshift(this);while(a&&(!e||a._id!==e._id))r.unshift(a),a=a.parent;for(n=r.length,i=0;i<n;i++)t(r[i])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return C.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1&&(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return C.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return C.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return C.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(t){if(!this.parent)return C.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&C.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(ot,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t,e,n,i,r,a={},o=this.getAttrs();for(t in a.attrs={},o)e=o[t],r=C.isObject(e)&&!C._isPlainObject(e)&&!C._isArray(e),r||(n="function"===typeof this[t]&&this[t],delete o[t],i=n?n.call(this):null,o[t]=e,i!==e&&(a.attrs[t]=e));return a.className=this.getClassName(),C._prepareToStringify(a)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,e,n){var i=[];e&&this._isMatch(t)&&i.push(this);var r=this.parent;while(r){if(r===n)return i;r._isMatch(t)&&i.push(r),r=r.parent}return i}isAncestorOf(t){return!1}findAncestor(t,e,n){return this.findAncestors(t,e,n)[0]}_isMatch(t){if(!t)return!1;if("function"===typeof t)return t(this);var e,n,i=t.replace(/ /g,"").split(","),r=i.length;for(e=0;e<r;e++)if(n=i[e],C.isValidSelector(n)||(C.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),C.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),C.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(_t,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():void 0}fire(t,e={},n){return e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(ct,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var e;if(t)return e=new c,this._eachAncestorReverse((function(t){var n=t.transformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())}),t),e;e=this._cache.get(ct)||new c,this.parent?this.parent.getAbsoluteTransform().copyInto(e):e.reset();var n=this.transformsEnabled();if("all"===n)e.multiply(this.getTransform());else if("position"===n){const t=this.attrs.x||0,n=this.attrs.y||0,i=this.attrs.offsetX||0,r=this.attrs.offsetY||0;e.translate(t-i,n-r)}return e.dirty=!1,e}getAbsoluteScale(t){var e=this;while(e)e._isUnderCache&&(t=e),e=e.getParent();const n=this.getAbsoluteTransform(t),i=n.decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(wt,this._getTransform)}_getTransform(){var t,e,n=this._cache.get(wt)||new c;n.reset();var i=this.x(),r=this.y(),a=o.getAngle(this.rotation()),s=null!==(t=this.attrs.scaleX)&&void 0!==t?t:1,l=null!==(e=this.attrs.scaleY)&&void 0!==e?e:1,u=this.attrs.skewX||0,h=this.attrs.skewY||0,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return 0===i&&0===r||n.translate(i,r),0!==a&&n.rotate(a),0===u&&0===h||n.skew(u,h),1===s&&1===l||n.scale(s,l),0===d&&0===f||n.translate(-1*d,-1*f),n.dirty=!1,n}clone(t){var e,n,i,r,a,o=C.cloneObject(this.attrs);for(e in t)o[e]=t[e];var s=new this.constructor(o);for(e in this.eventListeners)for(n=this.eventListeners[e],i=n.length,r=0;r<i;r++)a=n[r],a.name.indexOf(ft)<0&&(s.eventListeners[e]||(s.eventListeners[e]=[]),s.eventListeners[e].push(a));return s}_toKonvaCanvas(t){t=t||{};var e=this.getClientRect(),n=this.getStage(),i=void 0!==t.x?t.x:Math.floor(e.x),r=void 0!==t.y?t.y:Math.floor(e.y),a=t.pixelRatio||1,o=new it({width:t.width||Math.ceil(e.width)||(n?n.width():0),height:t.height||Math.ceil(e.height)||(n?n.height():0),pixelRatio:a}),s=o.getContext();return!1===t.imageSmoothingEnabled&&(s._context.imageSmoothingEnabled=!1),s.save(),(i||r)&&s.translate(-1*i,-1*r),this.drawScene(o),s.restore(),o}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var e=t.mimeType||null,n=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(i),i}toImage(t){return new Promise(((e,n)=>{try{const n=null===t||void 0===t?void 0:t.callback;n&&delete t.callback,C._urlToImage(this.toDataURL(t),(function(t){e(t),null===n||void 0===n||n(t)}))}catch(i){n(i)}}))}toBlob(t){return new Promise(((e,n)=>{try{const n=null===t||void 0===t?void 0:t.callback;n&&delete t.callback,this.toCanvas(t).toBlob((t=>{e(t),null===n||void 0===n||n(t)}))}catch(i){n(i)}}))}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():o.dragDistance}_off(t,e,n){var i,r,a,o=this.eventListeners[t];for(i=0;i<o.length;i++)if(r=o[i].name,a=o[i].handler,("konva"!==r||"konva"===e)&&(!e||r===e)&&(!n||n===a)){if(o.splice(i,1),0===o.length){delete this.eventListeners[t];break}i--}}_fireChangeEvent(t,e,n){this._fire(t+ht,{oldVal:e,newVal:n})}addName(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.name(n)}return this}hasName(t){if(!t)return!1;const e=this.name();if(!e)return!1;var n=(e||"").split(/\s/g);return-1!==n.indexOf(t)}removeName(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.name(e.join(" "))),this}setAttr(t,e){var n=this[gt+C._capitalize(t)];return C._isFunction(n)?n.call(this,e):this._setAttr(t,e),this}_requestDraw(){if(o.autoDrawEnabled){const t=this.getLayer()||this.getStage();null===t||void 0===t||t.batchDraw()}}_setAttr(t,e){var n=this.attrs[t];(n!==e||C.isObject(e))&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._shouldFireChangeEvents&&this._fireChangeEvent(t,n,e),this._requestDraw())}_setComponentAttr(t,e,n){var i;void 0!==n&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,i,n))}_fireAndBubble(t,e,n){e&&this.nodeType===yt&&(e.target=this);var i=(t===vt||t===mt)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n);if(!i){this._fire(t,e);var r=(t===vt||t===mt)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n):this._fireAndBubble.call(this.parent,t,e))}}_getProtoListeners(t){let e=this._cache.get(st);if(!e){e={};let t=Object.getPrototypeOf(this);while(t)if(t.eventListeners){for(var n in t.eventListeners){const i=t.eventListeners[n],r=e[n]||[];e[n]=i.concat(r)}t=Object.getPrototypeOf(t)}else t=Object.getPrototypeOf(t);this._cache.set(st,e)}return e[t]}_fire(t,e){e=e||{},e.currentTarget=this,e.type=t;const n=this._getProtoListeners(t);if(n)for(var i=0;i<n.length;i++)n[i].handler.call(this,e);const r=this.eventListeners[t];if(r)for(i=0;i<r.length;i++)r[i].handler.call(this,e)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var e=t?t.pointerId:void 0,n=this.getStage(),i=this.getAbsolutePosition(),r=n._getPointerById(e)||n._changedPointerPositions[0]||i;at._dragElements.set(this._id,{node:this,startPointerPos:r,offset:{x:r.x-i.x,y:r.y-i.y},dragStatus:"ready",pointerId:e})}startDrag(t,e=!0){at._dragElements.has(this._id)||this._createDragElement(t);const n=at._dragElements.get(this._id);n.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},e)}_setDragPosition(t,e){const n=this.getStage()._getPointerById(e.pointerId);if(n){var i={x:n.x-e.offset.x,y:n.y-e.offset.y},r=this.dragBoundFunc();if(void 0!==r){const e=r.call(this,i,t);e?i=e:C.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const e=at._dragElements.get(this._id);e&&(e.dragStatus="stopped"),at._endDragBefore(t),at._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=at._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(t){var e=void 0!==t.evt["button"],n=!e||o.dragButtons.indexOf(t.evt["button"])>=0;if(n&&!this.isDragging()){var i=!1;at._dragElements.forEach((t=>{this.isAncestorOf(t.node)&&(i=!0)})),i||this._createDragElement(t)}}))}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const e=at._dragElements.get(this._id),n=e&&"dragging"===e.dragStatus,i=e&&"ready"===e.dragStatus;n?this.stopDrag():i&&at._dragElements["delete"](this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const e=this.getStage();if(!e)return!1;const n={x:-t.x,y:-t.y,width:e.width()+2*t.x,height:e.height()+2*t.y};return C.haveIntersection(n,this.getClientRect())}static create(t,e){return C._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)}static _createNode(t,e){var n,i,r,a=Dt.prototype.getClassName.call(t),s=t.children;e&&(t.attrs.container=e),o[a]||(C.warn('Can not find a node with class name "'+a+'". Fallback to "Shape".'),a="Shape");const c=o[a];if(n=new c(t.attrs),s)for(i=s.length,r=0;r<i;r++)n.add(Dt._createNode(s[r]));return n}}Dt.prototype.nodeType="Node",Dt.prototype._attrsAffectingSize=[],Dt.prototype.eventListeners={},Dt.prototype.on.call(Dt.prototype,xt,(function(){this._batchingTransformChange?this._needClearTransformCache=!0:(this._clearCache(wt),this._clearSelfAndDescendantCache(ct))})),Dt.prototype.on.call(Dt.prototype,"visibleChange.konva",(function(){this._clearSelfAndDescendantCache(St)})),Dt.prototype.on.call(Dt.prototype,"listeningChange.konva",(function(){this._clearSelfAndDescendantCache(pt)})),Dt.prototype.on.call(Dt.prototype,"opacityChange.konva",(function(){this._clearSelfAndDescendantCache(ot)}));const Tt=F.addGetterSetter;Tt(Dt,"zIndex"),Tt(Dt,"absolutePosition"),Tt(Dt,"position"),Tt(Dt,"x",0,O()),Tt(Dt,"y",0,O()),Tt(Dt,"globalCompositeOperation","source-over",P()),Tt(Dt,"opacity",1,O()),Tt(Dt,"name","",P()),Tt(Dt,"id","",P()),Tt(Dt,"rotation",0,O()),F.addComponentsGetterSetter(Dt,"scale",["x","y"]),Tt(Dt,"scaleX",1,O()),Tt(Dt,"scaleY",1,O()),F.addComponentsGetterSetter(Dt,"skew",["x","y"]),Tt(Dt,"skewX",0,O()),Tt(Dt,"skewY",0,O()),F.addComponentsGetterSetter(Dt,"offset",["x","y"]),Tt(Dt,"offsetX",0,O()),Tt(Dt,"offsetY",0,O()),Tt(Dt,"dragDistance",null,O()),Tt(Dt,"width",0,O()),Tt(Dt,"height",0,O()),Tt(Dt,"listening",!0,I()),Tt(Dt,"preventDefault",!0,I()),Tt(Dt,"filters",null,(function(t){return this._filterUpToDate=!1,t})),Tt(Dt,"visible",!0,I()),Tt(Dt,"transformsEnabled","all",P()),Tt(Dt,"size"),Tt(Dt,"dragBoundFunc"),Tt(Dt,"draggable",!1,I()),F.backCompat(Dt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class Ot extends Dt{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const e=this.children||[];var n=[];return e.forEach((function(e){t(e)&&n.push(e)})),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((t=>{t.parent=null,t.index=0,t.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((t=>{t.parent=null,t.index=0,t.destroy()})),this.children=[],this._requestDraw(),this}add(...t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}var n=t[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0}_generalFind(t,e){var n=[];return this._descendants((i=>{const r=i._isMatch(t);return r&&n.push(i),!(!r||!e)})),n}_descendants(t){let e=!1;const n=this.getChildren();for(const i of n){if(e=t(i),e)return!0;if(i.hasChildren()&&(e=i._descendants(t),e))return!0}return!1}toObject(){var t=Dt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach((e=>{t.children.push(e.toObject())})),t}isAncestorOf(t){var e=t.getParent();while(e){if(e._id===this._id)return!0;e=e.getParent()}return!1}clone(t){var e=Dt.prototype.clone.call(this,t);return this.getChildren().forEach((function(t){e.add(t.clone())})),e}getAllIntersections(t){var e=[];return this.find("Shape").forEach((function(n){n.isVisible()&&n.intersects(t)&&e.push(n)})),e}_clearSelfAndDescendantCache(t){var e;super._clearSelfAndDescendantCache(t),this.isCached()||null===(e=this.children)||void 0===e||e.forEach((function(e){e._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;null===(t=this.children)||void 0===t||t.forEach((function(t,e){t.index=e})),this._requestDraw()}drawScene(t,e){var n=this.getLayer(),i=t||n&&n.getCanvas(),r=i&&i.getContext(),a=this._getCanvasCache(),o=a&&a.scene,s=i&&i.isCache;if(!this.isVisible()&&!s)return this;if(o){r.save();var c=this.getAbsoluteTransform(e).getMatrix();r.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedSceneCanvas(r),r.restore()}else this._drawChildren("drawScene",i,e);return this}drawHit(t,e){if(!this.shouldDrawHit(e))return this;var n=this.getLayer(),i=t||n&&n.hitCanvas,r=i&&i.getContext(),a=this._getCanvasCache(),o=a&&a.hit;if(o){r.save();var s=this.getAbsoluteTransform(e).getMatrix();r.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(r),r.restore()}else this._drawChildren("drawHit",i,e);return this}_drawChildren(t,e,n){var i,r=e&&e.getContext(),a=this.clipWidth(),o=this.clipHeight(),s=this.clipFunc(),c=a&&o||s;const l=n===this;if(c){r.save();var u=this.getAbsoluteTransform(n),h=u.getMatrix();if(r.transform(h[0],h[1],h[2],h[3],h[4],h[5]),r.beginPath(),s)s.call(this,r,this);else{var d=this.clipX(),f=this.clipY();r.rect(d,f,a,o)}r.clip(),h=u.copy().invert().getMatrix(),r.transform(h[0],h[1],h[2],h[3],h[4],h[5])}var p=!l&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===t;p&&(r.save(),r._applyGlobalCompositeOperation(this)),null===(i=this.children)||void 0===i||i.forEach((function(i){i[t](e,n)})),p&&r.restore(),c&&r.restore()}getClientRect(t){var e;t=t||{};var n,i,r,a,o=t.skipTransform,s=t.relativeTo,c={x:1/0,y:1/0,width:0,height:0},l=this;null===(e=this.children)||void 0===e||e.forEach((function(e){if(e.visible()){var o=e.getClientRect({relativeTo:l,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===o.width&&0===o.height||(void 0===n?(n=o.x,i=o.y,r=o.x+o.width,a=o.y+o.height):(n=Math.min(n,o.x),i=Math.min(i,o.y),r=Math.max(r,o.x+o.width),a=Math.max(a,o.y+o.height)))}}));for(var u=this.find("Shape"),h=!1,d=0;d<u.length;d++){var f=u[d];if(f._isVisible(this)){h=!0;break}}return c=h&&void 0!==n?{x:n,y:i,width:r-n,height:a-i}:{x:0,y:0,width:0,height:0},o?c:this._transformedRect(c,s)}}F.addComponentsGetterSetter(Ot,"clip",["x","y","width","height"]),F.addGetterSetter(Ot,"clipX",void 0,O()),F.addGetterSetter(Ot,"clipY",void 0,O()),F.addGetterSetter(Ot,"clipWidth",void 0,O()),F.addGetterSetter(Ot,"clipHeight",void 0,O()),F.addGetterSetter(Ot,"clipFunc");const Et=new Map,At=void 0!==o._global.PointerEvent;function Pt(t){return Et.get(t)}function Mt(t){return{evt:t,pointerId:t.pointerId}}function Rt(t,e){return Et.get(t)===e}function It(t,e){Nt(t);const n=e.getStage();n&&(Et.set(t,e),At&&e._fire("gotpointercapture",Mt(new PointerEvent("gotpointercapture"))))}function Nt(t,e){const n=Et.get(t);if(!n)return;const i=n.getStage();i&&i.content,Et.delete(t),At&&n._fire("lostpointercapture",Mt(new PointerEvent("lostpointercapture")))}var $t="Stage",Lt="string",Ft="px",Bt="mouseout",jt="mouseleave",zt="mouseover",Ht="mouseenter",Vt="mousemove",Gt="mousedown",Wt="mouseup",Ut="pointermove",Yt="pointerdown",qt="pointerup",Xt="pointercancel",Kt="lostpointercapture",Jt="pointerout",Zt="pointerleave",Qt="pointerover",te="pointerenter",ee="contextmenu",ne="touchstart",ie="touchend",re="touchmove",ae="touchcancel",oe="wheel",se=5,ce=[[Ht,"_pointerenter"],[Gt,"_pointerdown"],[Vt,"_pointermove"],[Wt,"_pointerup"],[jt,"_pointerleave"],[ne,"_pointerdown"],[re,"_pointermove"],[ie,"_pointerup"],[ae,"_pointercancel"],[zt,"_pointerover"],[oe,"_wheel"],[ee,"_contextmenu"],[Yt,"_pointerdown"],[Ut,"_pointermove"],[qt,"_pointerup"],[Xt,"_pointercancel"],[Kt,"_lostpointercapture"]];const le={mouse:{[Jt]:Bt,[Zt]:jt,[Qt]:zt,[te]:Ht,[Ut]:Vt,[Yt]:Gt,[qt]:Wt,[Xt]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Jt]:"touchout",[Zt]:"touchleave",[Qt]:"touchover",[te]:"touchenter",[Ut]:re,[Yt]:ne,[qt]:ie,[Xt]:ae,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Jt]:Jt,[Zt]:Zt,[Qt]:Qt,[te]:te,[Ut]:Ut,[Yt]:Yt,[qt]:qt,[Xt]:Xt,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},ue=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",he=t=>{const e=ue(t);return"pointer"===e?o.pointerEventsEnabled&&le.pointer:"touch"===e?le.touch:"mouse"===e?le.mouse:void 0};function de(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&C.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}const fe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",pe=[];class ve extends Ot{constructor(t){super(de(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),pe.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(()=>{de(this.attrs)})),this._checkVisibility()}_validateAdd(t){const e="Layer"===t.getType(),n="FastLayer"===t.getType(),i=e||n;i||C["throw"]("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===Lt){if("."===t.charAt(0)){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var n;n="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(n)}if(!t)throw"Can not find container in document with id "+n}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this}clone(t){return t||(t={}),t.container="undefined"!==typeof document&&document.createElement("div"),Ot.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&C._isInDocument(t)&&this.container().removeChild(t);var e=pe.indexOf(this);return e>-1&&pe.splice(e,1),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(C.warn(fe),null)}_getPointerById(t){return this._pointerPositions.find((e=>e.id===t))}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t=t||{},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var e=new it({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),n=e.getContext()._context,i=this.children;return(t.x||t.y)&&n.translate(-1*t.x,-1*t.y),i.forEach((function(e){if(e.isVisible()){var i=e._toKonvaCanvas(t);n.drawImage(i._canvas,t.x,t.y,i.getWidth()/i.getPixelRatio(),i.getHeight()/i.getPixelRatio())}})),e}getIntersection(t){if(!t)return null;var e,n=this.children,i=n.length,r=i-1;for(e=r;e>=0;e--){const i=n[e].getIntersection(t);if(i)return i}return null}_resizeDOM(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+Ft,this.content.style.height=e+Ft),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.forEach((n=>{n.setSize({width:t,height:e}),n.draw()}))}add(t,...e){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}super.add(t);var i=this.children.length;return i>se&&C.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),o.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return Rt(t,this)}setPointerCapture(t){It(t,this)}releaseCapture(t){Nt(t,this)}getLayers(){return this.children}_bindContentEvents(){o.isBrowser&&ce.forEach((([t,e])=>{this.content.addEventListener(t,(t=>{this[e](t)}),{passive:!1})}))}_pointerenter(t){this.setPointersPositions(t);const e=he(t.type);this._fire(e.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const e=he(t.type);this._fire(e.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let e=this[t+"targetShape"];return e&&!e.getStage()&&(e=null),e}_pointerleave(t){const e=he(t.type),n=ue(t.type);if(e){this.setPointersPositions(t);var i=this._getTargetShape(n),r=!at.isDragging||o.hitOnDragEnabled;i&&r?(i._fireAndBubble(e.pointerout,{evt:t}),i._fireAndBubble(e.pointerleave,{evt:t}),this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this[n+"targetShape"]=null):r&&(this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(e.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){const e=he(t.type),n=ue(t.type);if(e){this.setPointersPositions(t);var i=!1;this._changedPointerPositions.forEach((r=>{var a=this.getIntersection(r);at.justDragged=!1,o["_"+n+"ListenClick"]=!0;const s=a&&a.isListening();if(!s)return;o.capturePointerEventsEnabled&&a.setPointerCapture(r.id),this[n+"ClickStartShape"]=a,a._fireAndBubble(e.pointerdown,{evt:t,pointerId:r.id}),i=!0;const c=t.type.indexOf("touch")>=0;a.preventDefault()&&t.cancelable&&c&&t.preventDefault()})),i||this._fire(e.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){const e=he(t.type),n=ue(t.type);if(!e)return;at.isDragging&&at.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t);var i=!at.isDragging||o.hitOnDragEnabled;if(!i)return;var r={};let a=!1;var s=this._getTargetShape(n);this._changedPointerPositions.forEach((i=>{const o=Pt(i.id)||this.getIntersection(i),c=i.id,l={evt:t,pointerId:c};var u=s!==o;if(u&&s&&(s._fireAndBubble(e.pointerout,Object.assign({},l),o),s._fireAndBubble(e.pointerleave,Object.assign({},l),o)),o){if(r[o._id])return;r[o._id]=!0}o&&o.isListening()?(a=!0,u&&(o._fireAndBubble(e.pointerover,Object.assign({},l),s),o._fireAndBubble(e.pointerenter,Object.assign({},l),s),this[n+"targetShape"]=o),o._fireAndBubble(e.pointermove,Object.assign({},l))):s&&(this._fire(e.pointerover,{evt:t,target:this,currentTarget:this,pointerId:c}),this[n+"targetShape"]=null)})),a||this._fire(e.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const e=he(t.type),n=ue(t.type);if(!e)return;this.setPointersPositions(t);const i=this[n+"ClickStartShape"],r=this[n+"ClickEndShape"];var a={};let s=!1;this._changedPointerPositions.forEach((c=>{const l=Pt(c.id)||this.getIntersection(c);if(l){if(l.releaseCapture(c.id),a[l._id])return;a[l._id]=!0}const u=c.id,h={evt:t,pointerId:u};let d=!1;o["_"+n+"InDblClickWindow"]?(d=!0,clearTimeout(this[n+"DblTimeout"])):at.justDragged||(o["_"+n+"InDblClickWindow"]=!0,clearTimeout(this[n+"DblTimeout"])),this[n+"DblTimeout"]=setTimeout((function(){o["_"+n+"InDblClickWindow"]=!1}),o.dblClickWindow),l&&l.isListening()?(s=!0,this[n+"ClickEndShape"]=l,l._fireAndBubble(e.pointerup,Object.assign({},h)),o["_"+n+"ListenClick"]&&i&&i===l&&(l._fireAndBubble(e.pointerclick,Object.assign({},h)),d&&r&&r===l&&l._fireAndBubble(e.pointerdblclick,Object.assign({},h)))):(this[n+"ClickEndShape"]=null,o["_"+n+"ListenClick"]&&this._fire(e.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:u}),d&&this._fire(e.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:u}))})),s||this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o["_"+n+"ListenClick"]=!1,t.cancelable&&"touch"!==n&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(ee,{evt:t}):this._fire(ee,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(oe,{evt:t}):this._fire(oe,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const e=Pt(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(qt,Mt(t)),Nt(t.pointerId)}_lostpointercapture(t){Nt(t.pointerId)}setPointersPositions(t){var e=this._getContentPosition(),n=null,i=null;t=t||window.event,void 0!==t.touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,(t=>{this._pointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})})),Array.prototype.forEach.call(t.changedTouches||t.touches,(t=>{this._changedPointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})}))):(n=(t.clientX-e.left)/e.scaleX,i=(t.clientY-e.top)/e.scaleY,this.pointerPos={x:n,y:i},this._pointerPositions=[{x:n,y:i,id:C._getFirstPointerId(t)}],this._changedPointerPositions=[{x:n,y:i,id:C._getFirstPointerId(t)}])}_setPointerPosition(t){C.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new it({width:this.width(),height:this.height()}),this.bufferHitCanvas=new rt({pixelRatio:1,width:this.width(),height:this.height()}),o.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return C.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach((function(t){t.batchDraw()})),this}}ve.prototype.nodeType=$t,s(ve),F.addGetterSetter(ve,"container");var me="hasShadow",ge="shadowRGBA",ye="patternImage",be="linearGradient",_e="radialGradient";let we;function ke(){return we||(we=C.createCanvasElement().getContext("2d"),we)}const Se={};function xe(t){t.fill()}function Ce(t){t.stroke()}function De(t){t.fill()}function Te(t){t.stroke()}function Oe(){this._clearCache(me)}function Ee(){this._clearCache(ge)}function Ae(){this._clearCache(ye)}function Pe(){this._clearCache(be)}function Me(){this._clearCache(_e)}class Re extends Dt{constructor(t){let e;super(t);while(1)if(e=C.getRandomColor(),e&&!(e in Se))break;this.colorKey=e,Se[e]=this}getContext(){return C.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return C.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this["_sceneFunc"]}getHitFunc(){return this.attrs.hitFunc||this["_hitFunc"]}hasShadow(){return this._getCache(me,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(ye,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var t=ke();const e=t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(e&&e.setTransform){const t=new c;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(o.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=t.getMatrix(),i="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);e.setTransform(i)}return e}}_getLinearGradient(){return this._getCache(be,this.__getLinearGradient)}__getLinearGradient(){var t=this.fillLinearGradientColorStops();if(t){for(var e=ke(),n=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),r=e.createLinearGradient(n.x,n.y,i.x,i.y),a=0;a<t.length;a+=2)r.addColorStop(t[a],t[a+1]);return r}}_getRadialGradient(){return this._getCache(_e,this.__getRadialGradient)}__getRadialGradient(){var t=this.fillRadialGradientColorStops();if(t){for(var e=ke(),n=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),r=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius()),a=0;a<t.length;a+=2)r.addColorStop(t[a],t[a+1]);return r}}getShadowRGBA(){return this._getCache(ge,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var t=C.colorToRGBA(this.shadowColor());return t?"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")":void 0}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){var e,n=this.getStage(),i=n.bufferHitCanvas;return i.getContext().clear(),this.drawHit(i,null,!0),e=i.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0}destroy(){return Dt.prototype.destroy.call(this),delete Se[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var e;if(!this.getStage())return!1;const n=null===(e=this.attrs.perfectDrawEnabled)||void 0===e||e;if(!n)return!1;const i=t||this.hasFill(),r=this.hasStroke(),a=1!==this.getAbsoluteOpacity();if(i&&r&&a)return!0;const o=this.hasShadow(),s=this.shadowForStrokeEnabled();return!!(i&&r&&o&&s)}setStrokeHitEnabled(t){C.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){const e=t.skipTransform,n=t.relativeTo,i=this.getSelfRect(),r=!t.skipStroke&&this.hasStroke(),a=r&&this.strokeWidth()||0,o=i.width+a,s=i.height+a,c=!t.skipShadow&&this.hasShadow(),l=c?this.shadowOffsetX():0,u=c?this.shadowOffsetY():0,h=o+Math.abs(l),d=s+Math.abs(u),f=c&&this.shadowBlur()||0,p=h+2*f,v=d+2*f,m={width:p,height:v,x:-(a/2+f)+Math.min(l,0)+i.x,y:-(a/2+f)+Math.min(u,0)+i.y};return e?m:this._transformedRect(m,n)}drawScene(t,e){var n,i,r,a=this.getLayer(),o=t||a.getCanvas(),s=o.getContext(),c=this._getCanvasCache(),l=this.getSceneFunc(),u=this.hasShadow(),h=o.isCache,d=e===this;if(!this.isVisible()&&!d)return this;if(c){s.save();var f=this.getAbsoluteTransform(e).getMatrix();return s.transform(f[0],f[1],f[2],f[3],f[4],f[5]),this._drawCachedSceneCanvas(s),s.restore(),this}if(!l)return this;if(s.save(),this._useBufferCanvas()&&!h){n=this.getStage(),i=n.bufferCanvas,r=i.getContext(),r.clear(),r.save(),r._applyLineJoin(this);var p=this.getAbsoluteTransform(e).getMatrix();r.transform(p[0],p[1],p[2],p[3],p[4],p[5]),l.call(this,r,this),r.restore();var v=i.pixelRatio;u&&s._applyShadow(this),s._applyOpacity(this),s._applyGlobalCompositeOperation(this),s.drawImage(i._canvas,0,0,i.width/v,i.height/v)}else{if(s._applyLineJoin(this),!d){p=this.getAbsoluteTransform(e).getMatrix();s.transform(p[0],p[1],p[2],p[3],p[4],p[5]),s._applyOpacity(this),s._applyGlobalCompositeOperation(this)}u&&s._applyShadow(this),l.call(this,s,this)}return s.restore(),this}drawHit(t,e,n=!1){if(!this.shouldDrawHit(e,n))return this;var i=this.getLayer(),r=t||i.hitCanvas,a=r&&r.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._getCanvasCache(),c=s&&s.hit;if(this.colorKey||C.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),c){a.save();var l=this.getAbsoluteTransform(e).getMatrix();return a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!o)return this;a.save(),a._applyLineJoin(this);const u=this===e;if(!u){var h=this.getAbsoluteTransform(e).getMatrix();a.transform(h[0],h[1],h[2],h[3],h[4],h[5])}return o.call(this,a,this),a.restore(),this}drawHitFromCache(t=0){var e,n,i,r,a,o,s=this._getCanvasCache(),c=this._getCachedSceneCanvas(),l=s.hit,u=l.getContext(),h=l.getWidth(),d=l.getHeight();u.clear(),u.drawImage(c._canvas,0,0,h,d);try{for(e=u.getImageData(0,0,h,d),n=e.data,i=n.length,r=C._hexToRgb(this.colorKey),a=0;a<i;a+=4)o=n[a+3],o>t?(n[a]=r.r,n[a+1]=r.g,n[a+2]=r.b,n[a+3]=255):n[a+3]=0;u.putImageData(e,0,0)}catch(f){C.error("Unable to draw hit graph from cached scene canvas. "+f.message)}return this}hasPointerCapture(t){return Rt(t,this)}setPointerCapture(t){It(t,this)}releaseCapture(t){Nt(t,this)}}Re.prototype._fillFunc=xe,Re.prototype._strokeFunc=Ce,Re.prototype._fillFuncHit=De,Re.prototype._strokeFuncHit=Te,Re.prototype._centroid=!1,Re.prototype.nodeType="Shape",s(Re),Re.prototype.eventListeners={},Re.prototype.on.call(Re.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",Oe),Re.prototype.on.call(Re.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",Ee),Re.prototype.on.call(Re.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",Ae),Re.prototype.on.call(Re.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",Pe),Re.prototype.on.call(Re.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",Me),F.addGetterSetter(Re,"stroke",void 0,M()),F.addGetterSetter(Re,"strokeWidth",2,O()),F.addGetterSetter(Re,"fillAfterStrokeEnabled",!1),F.addGetterSetter(Re,"hitStrokeWidth","auto",A()),F.addGetterSetter(Re,"strokeHitEnabled",!0,I()),F.addGetterSetter(Re,"perfectDrawEnabled",!0,I()),F.addGetterSetter(Re,"shadowForStrokeEnabled",!0,I()),F.addGetterSetter(Re,"lineJoin"),F.addGetterSetter(Re,"lineCap"),F.addGetterSetter(Re,"sceneFunc"),F.addGetterSetter(Re,"hitFunc"),F.addGetterSetter(Re,"dash"),F.addGetterSetter(Re,"dashOffset",0,O()),F.addGetterSetter(Re,"shadowColor",void 0,P()),F.addGetterSetter(Re,"shadowBlur",0,O()),F.addGetterSetter(Re,"shadowOpacity",1,O()),F.addComponentsGetterSetter(Re,"shadowOffset",["x","y"]),F.addGetterSetter(Re,"shadowOffsetX",0,O()),F.addGetterSetter(Re,"shadowOffsetY",0,O()),F.addGetterSetter(Re,"fillPatternImage"),F.addGetterSetter(Re,"fill",void 0,M()),F.addGetterSetter(Re,"fillPatternX",0,O()),F.addGetterSetter(Re,"fillPatternY",0,O()),F.addGetterSetter(Re,"fillLinearGradientColorStops"),F.addGetterSetter(Re,"strokeLinearGradientColorStops"),F.addGetterSetter(Re,"fillRadialGradientStartRadius",0),F.addGetterSetter(Re,"fillRadialGradientEndRadius",0),F.addGetterSetter(Re,"fillRadialGradientColorStops"),F.addGetterSetter(Re,"fillPatternRepeat","repeat"),F.addGetterSetter(Re,"fillEnabled",!0),F.addGetterSetter(Re,"strokeEnabled",!0),F.addGetterSetter(Re,"shadowEnabled",!0),F.addGetterSetter(Re,"dashEnabled",!0),F.addGetterSetter(Re,"strokeScaleEnabled",!0),F.addGetterSetter(Re,"fillPriority","color"),F.addComponentsGetterSetter(Re,"fillPatternOffset",["x","y"]),F.addGetterSetter(Re,"fillPatternOffsetX",0,O()),F.addGetterSetter(Re,"fillPatternOffsetY",0,O()),F.addComponentsGetterSetter(Re,"fillPatternScale",["x","y"]),F.addGetterSetter(Re,"fillPatternScaleX",1,O()),F.addGetterSetter(Re,"fillPatternScaleY",1,O()),F.addComponentsGetterSetter(Re,"fillLinearGradientStartPoint",["x","y"]),F.addComponentsGetterSetter(Re,"strokeLinearGradientStartPoint",["x","y"]),F.addGetterSetter(Re,"fillLinearGradientStartPointX",0),F.addGetterSetter(Re,"strokeLinearGradientStartPointX",0),F.addGetterSetter(Re,"fillLinearGradientStartPointY",0),F.addGetterSetter(Re,"strokeLinearGradientStartPointY",0),F.addComponentsGetterSetter(Re,"fillLinearGradientEndPoint",["x","y"]),F.addComponentsGetterSetter(Re,"strokeLinearGradientEndPoint",["x","y"]),F.addGetterSetter(Re,"fillLinearGradientEndPointX",0),F.addGetterSetter(Re,"strokeLinearGradientEndPointX",0),F.addGetterSetter(Re,"fillLinearGradientEndPointY",0),F.addGetterSetter(Re,"strokeLinearGradientEndPointY",0),F.addComponentsGetterSetter(Re,"fillRadialGradientStartPoint",["x","y"]),F.addGetterSetter(Re,"fillRadialGradientStartPointX",0),F.addGetterSetter(Re,"fillRadialGradientStartPointY",0),F.addComponentsGetterSetter(Re,"fillRadialGradientEndPoint",["x","y"]),F.addGetterSetter(Re,"fillRadialGradientEndPointX",0),F.addGetterSetter(Re,"fillRadialGradientEndPointY",0),F.addGetterSetter(Re,"fillPatternRotation",0),F.backCompat(Re,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var Ie="#",Ne="beforeDraw",$e="draw",Le=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Fe=Le.length;class Be extends Ot{constructor(t){super(t),this.canvas=new it,this.hitCanvas=new rt({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){const t=this.canvas._canvas;return t.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[t+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Dt.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=Dt.prototype.moveUp.call(this);if(!t)return!1;var e=this.getStage();return!(!e||!e.content)&&(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Dt.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Dt.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Dt.prototype.remove.call(this),t&&t.parentNode&&C._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:e}){return this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e),this._setSmoothEnabled(),this}_validateAdd(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&C["throw"]("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),Dt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){const t=this.visible();this.canvas._canvas.style.display=t?"block":"none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){C.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){C.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,C.requestAnimFrame((()=>{this.draw(),this._waitingForDraw=!1}))),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;var e=1,n=!1;while(1){for(let i=0;i<Fe;i++){const r=Le[i],a=this._getIntersection({x:t.x+r.x*e,y:t.y+r.y*e}),o=a.shape;if(o)return o;if(n=!!a.antialiased,!a.antialiased)break}if(!n)return null;e+=1}}_getIntersection(t){const e=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*e),Math.round(t.y*e),1,1).data,i=n[3];if(255===i){const t=C._rgbToHex(n[0],n[1],n[2]),e=Se[Ie+t];return e?{shape:e}:{antialiased:!0}}return i>0?{antialiased:!0}:{}}drawScene(t,e){var n=this.getLayer(),i=t||n&&n.getCanvas();return this._fire(Ne,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),Ot.prototype.drawScene.call(this,i,e),this._fire($e,{node:this}),this}drawHit(t,e){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ot.prototype.drawHit.call(this,i,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){C.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return C.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(this.parent&&this.parent["content"]){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}}Be.prototype.nodeType="Layer",s(Be),F.addGetterSetter(Be,"imageSmoothingEnabled",!0),F.addGetterSetter(Be,"clearBeforeDraw",!0),F.addGetterSetter(Be,"hitGraphEnabled",!0,I());class je extends Be{constructor(t){super(t),this.listening(!1),C.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}je.prototype.nodeType="FastLayer",s(je);class ze extends Ot{_validateAdd(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&C["throw"]("You may only add groups and shapes to groups.")}}ze.prototype.nodeType="Group",s(ze);var He=function(){return a.performance&&a.performance.now?function(){return a.performance.now()}:function(){return(new Date).getTime()}}();class Ve{constructor(t,e){this.id=Ve.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:He(),frameRate:0},this.func=t,this.setLayers(e)}setLayers(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this}getLayers(){return this.layers}addLayer(t){var e,n=this.layers,i=n.length;for(e=0;e<i;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){var t,e=Ve,n=e.animations,i=n.length;for(t=0;t<i;t++)if(n[t].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=He(),Ve._addAnimation(this),this}stop(){return Ve._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){var e,n=t.id,i=this.animations,r=i.length;for(e=0;e<r;e++)if(i[e].id===n){this.animations.splice(e,1);break}}static _runFrames(){var t,e,n,i,r,a,o,s,c,l={},u=this.animations;for(i=0;i<u.length;i++)if(t=u[i],e=t.layers,n=t.func,t._updateFrameObject(He()),a=e.length,c=!n||!1!==n.call(t,t.frame),c)for(r=0;r<a;r++)o=e[r],void 0!==o._id&&(l[o._id]=o);for(s in l)l.hasOwnProperty(s)&&l[s].batchDraw()}static _animationLoop(){var t=Ve;t.animations.length?(t._runFrames(),C.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,C.requestAnimFrame(this._animationLoop))}}Ve.animations=[],Ve.animIdCounter=0,Ve.animRunning=!1;var Ge={node:1,duration:1,easing:1,onFinish:1,yoyo:1},We=1,Ue=2,Ye=3,qe=0,Xe=["fill","stroke","shadowColor"];class Ke{constructor(t,e,n,i,r,a,o){this.prop=t,this.propFunc=e,this.begin=i,this._pos=i,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=r-this.begin,this.pause()}fire(t){var e=this[t];e&&e()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=Ue,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=Ye,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;this.state===Ue?this.setTime(t):this.state===Ye&&this.setTime(this.duration-t)}pause(){this.state=We,this.fire("onPause")}getTimer(){return(new Date).getTime()}}class Je{constructor(t){var e,n,i=this,r=t.node,a=r._id,s=t.easing||Ze.Linear,c=!!t.yoyo;e="undefined"===typeof t.duration?.3:0===t.duration?.001:t.duration,this.node=r,this._id=qe++;var l=r.getLayer()||(r instanceof o.Stage?r.getLayers():null);for(n in l||C.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Ve((function(){i.tween.onEnterFrame()}),l),this.tween=new Ke(n,(function(t){i._tweenFunc(t)}),s,0,1,1e3*e,c),this._addListeners(),Je.attrs[a]||(Je.attrs[a]={}),Je.attrs[a][this._id]||(Je.attrs[a][this._id]={}),Je.tweens[a]||(Je.tweens[a]={}),t)void 0===Ge[n]&&this._addAttr(n,t[n]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,e){var n,i,r,a,o,s,c,l,u=this.node,h=u._id;if(r=Je.tweens[h][t],r&&delete Je.attrs[h][r][t],n=u.getAttr(t),C._isArray(e))if(i=[],o=Math.max(e.length,n.length),"points"===t&&e.length!==n.length&&(e.length>n.length?(c=n,n=C._prepareArrayForTween(n,e,u.closed())):(s=e,e=C._prepareArrayForTween(e,n,u.closed()))),0===t.indexOf("fill"))for(a=0;a<o;a++)if(a%2===0)i.push(e[a]-n[a]);else{var d=C.colorToRGBA(n[a]);l=C.colorToRGBA(e[a]),n[a]=d,i.push({r:l.r-d.r,g:l.g-d.g,b:l.b-d.b,a:l.a-d.a})}else for(a=0;a<o;a++)i.push(e[a]-n[a]);else-1!==Xe.indexOf(t)?(n=C.colorToRGBA(n),l=C.colorToRGBA(e),i={r:l.r-n.r,g:l.g-n.g,b:l.b-n.b,a:l.a-n.a}):i=e-n;Je.attrs[h][this._id][t]={start:n,diff:i,end:e,trueEnd:s,trueStart:c},Je.tweens[h][t]=this._id}_tweenFunc(t){var e,n,i,r,a,o,s,c,l=this.node,u=Je.attrs[l._id][this._id];for(e in u){if(n=u[e],i=n.start,r=n.diff,c=n.end,C._isArray(i))if(a=[],s=Math.max(i.length,c.length),0===e.indexOf("fill"))for(o=0;o<s;o++)o%2===0?a.push((i[o]||0)+r[o]*t):a.push("rgba("+Math.round(i[o].r+r[o].r*t)+","+Math.round(i[o].g+r[o].g*t)+","+Math.round(i[o].b+r[o].b*t)+","+(i[o].a+r[o].a*t)+")");else for(o=0;o<s;o++)a.push((i[o]||0)+r[o]*t);else a=-1!==Xe.indexOf(e)?"rgba("+Math.round(i.r+r.r*t)+","+Math.round(i.g+r.g*t)+","+Math.round(i.b+r.b*t)+","+(i.a+r.a*t)+")":i+r*t;l.setAttr(e,a)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,e=Je.attrs[t._id][this._id];e.points&&e.points.trueEnd&&t.setAttr("points",e.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,e=Je.attrs[t._id][this._id];e.points&&e.points.trueStart&&t.points(e.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(1e3*t),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t,e=this.node._id,n=this._id,i=Je.tweens[e];for(t in this.pause(),i)delete Je.tweens[e][t];delete Je.attrs[e][n]}}Je.attrs={},Je.tweens={},Dt.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};var n=new Je(t);n.play()};const Ze={BackEaseIn(t,e,n,i){var r=1.70158;return n*(t/=i)*t*((r+1)*t-r)+e},BackEaseOut(t,e,n,i){var r=1.70158;return n*((t=t/i-1)*t*((r+1)*t+r)+1)+e},BackEaseInOut(t,e,n,i){var r=1.70158;return(t/=i/2)<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},ElasticEaseIn(t,e,n,i,r,a){var o=0;return 0===t?e:1===(t/=i)?e+n:(a||(a=.3*i),!r||r<Math.abs(n)?(r=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)+e)},ElasticEaseOut(t,e,n,i,r,a){var o=0;return 0===t?e:1===(t/=i)?e+n:(a||(a=.3*i),!r||r<Math.abs(n)?(r=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/r),r*Math.pow(2,-10*t)*Math.sin((t*i-o)*(2*Math.PI)/a)+n+e)},ElasticEaseInOut(t,e,n,i,r,a){var o=0;return 0===t?e:2===(t/=i/2)?e+n:(a||(a=i*(.3*1.5)),!r||r<Math.abs(n)?(r=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*-.5+e:r*Math.pow(2,-10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*.5+n+e)},BounceEaseOut(t,e,n,i){return(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn(t,e,n,i){return n-Ze.BounceEaseOut(i-t,0,n,i)+e},BounceEaseInOut(t,e,n,i){return t<i/2?.5*Ze.BounceEaseIn(2*t,0,n,i)+e:.5*Ze.BounceEaseOut(2*t-i,0,n,i)+.5*n+e},EaseIn(t,e,n,i){return n*(t/=i)*t+e},EaseOut(t,e,n,i){return-n*(t/=i)*(t-2)+e},EaseInOut(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn(t,e,n,i){return n*(t/=i)*t*t*t*t+e},StrongEaseOut(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e},StrongEaseInOut(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear(t,e,n,i){return n*t/i+e}},Qe=C._assign(o,{Util:C,Transform:c,Node:Dt,Container:Ot,Stage:ve,stages:pe,Layer:Be,FastLayer:je,Group:ze,DD:at,Shape:Re,shapes:Se,Animation:Ve,Tween:Je,Easings:Ze,Context:J,Canvas:nt});class tn extends Re{_sceneFunc(t){var e=o.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),e=this.outerRadius(),n=this.clockwise(),i=o.getAngle(n?360-this.angle():this.angle()),r=Math.cos(Math.min(i,Math.PI)),a=1,s=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),l=r*(r>0?t:e),u=a*(a>0?e:t),h=s*(s>0?t:e),d=c*(c>0?e:t);return{x:l,y:n?-1*d:h,width:u-l,height:d-h}}}function en(t,e,n,i,r,a,o){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(i-e,2)),c=Math.sqrt(Math.pow(r-n,2)+Math.pow(a-i,2)),l=o*s/(s+c),u=o*c/(s+c),h=n-l*(r-t),d=i-l*(a-e),f=n+u*(r-t),p=i+u*(a-e);return[h,d,f,p]}function nn(t,e){var n,i,r=t.length,a=[];for(n=2;n<r-2;n+=2)i=en(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],e),isNaN(i[0])||(a.push(i[0]),a.push(i[1]),a.push(t[n]),a.push(t[n+1]),a.push(i[2]),a.push(i[3]));return a}tn.prototype._centroid=!0,tn.prototype.className="Arc",tn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],s(tn),F.addGetterSetter(tn,"innerRadius",0,O()),F.addGetterSetter(tn,"outerRadius",0,O()),F.addGetterSetter(tn,"angle",0,O()),F.addGetterSetter(tn,"clockwise",!1,I());class rn extends Re{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(t){var e,n,i,r=this.points(),a=r.length,o=this.tension(),s=this.closed(),c=this.bezier();if(a){if(t.beginPath(),t.moveTo(r[0],r[1]),0!==o&&a>4){e=this.getTensionPoints(),n=e.length,i=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);while(i<n-2)t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);s||t.quadraticCurveTo(e[n-2],e[n-1],r[a-2],r[a-1])}else if(c){i=2;while(i<a)t.bezierCurveTo(r[i++],r[i++],r[i++],r[i++],r[i++],r[i++])}else for(i=2;i<a;i+=2)t.lineTo(r[i],r[i+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():nn(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),e=t.length,n=this.tension(),i=en(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),r=en(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),a=nn(t,n),o=[i[2],i[3]].concat(a).concat([r[0],r[1],t[e-2],t[e-1],r[2],r[3],i[0],i[1],t[0],t[1]]);return o}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};t=0!==this.tension()?[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:this.points();for(var e,n,i=t[0],r=t[0],a=t[1],o=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],i=Math.min(i,e),r=Math.max(r,e),a=Math.min(a,n),o=Math.max(o,n);return{x:i,y:a,width:r-i,height:o-a}}}rn.prototype.className="Line",rn.prototype._attrsAffectingSize=["points","bezier","tension"],s(rn),F.addGetterSetter(rn,"closed",!1),F.addGetterSetter(rn,"bezier",!1),F.addGetterSetter(rn,"tension",0,O()),F.addGetterSetter(rn,"points",[],R());class an extends Re{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=an.parsePathData(this.data()),this.pathLength=0;for(var e=0;e<this.dataArray.length;++e)this.pathLength+=this.dataArray[e].pathLength;this.on("dataChange.konva",(function(){this.dataArray=an.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength}))}_sceneFunc(t){var e=this.dataArray;t.beginPath();for(var n=!1,i=0;i<e.length;i++){var r=e[i].command,a=e[i].points;switch(r){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],h=a[5],d=a[6],f=a[7],p=c>l?c:l,v=c>l?1:c/l,m=c>l?l/c:1;t.translate(o,s),t.rotate(d),t.scale(v,m),t.arc(0,0,p,u,u+h,1-f),t.scale(1/v,1/m),t.rotate(-d),t.translate(-o,-s);break;case"z":n=!0,t.closePath();break}}n||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach((function(e){if("A"===e.command){var n=e.points[4],i=e.points[5],r=e.points[4]+i,a=Math.PI/180;if(Math.abs(n-r)<a&&(a=Math.abs(n-r)),i<0)for(let i=n-a;i>r;i-=a){const n=an.getPointOnEllipticalArc(e.points[0],e.points[1],e.points[2],e.points[3],i,0);t.push(n.x,n.y)}else for(let i=n+a;i<r;i+=a){const n=an.getPointOnEllipticalArc(e.points[0],e.points[1],e.points[2],e.points[3],i,0);t.push(n.x,n.y)}}else if("C"===e.command)for(let o=0;o<=1;o+=.01){const n=an.getPointOnCubicBezier(o,e.start.x,e.start.y,e.points[0],e.points[1],e.points[2],e.points[3],e.points[4],e.points[5]);t.push(n.x,n.y)}else t=t.concat(e.points)}));for(var e,n,i=t[0],r=t[0],a=t[1],o=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],isNaN(e)||(i=Math.min(i,e),r=Math.max(r,e)),isNaN(n)||(a=Math.min(a,n),o=Math.max(o,n));return{x:i,y:a,width:r-i,height:o-a}}getLength(){return this.pathLength}getPointAtLength(t){var e,n=0,i=this.dataArray.length;if(!i)return null;while(n<i&&t>this.dataArray[n].pathLength)t-=this.dataArray[n].pathLength,++n;if(n===i)return e=this.dataArray[n-1].points.slice(-2),{x:e[0],y:e[1]};if(t<.01)return e=this.dataArray[n].points.slice(0,2),{x:e[0],y:e[1]};var r=this.dataArray[n],a=r.points;switch(r.command){case"L":return an.getPointOnLine(t,r.start.x,r.start.y,a[0],a[1]);case"C":return an.getPointOnCubicBezier(t/r.pathLength,r.start.x,r.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return an.getPointOnQuadraticBezier(t/r.pathLength,r.start.x,r.start.y,a[0],a[1],a[2],a[3]);case"A":var o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],h=a[5],d=a[6];return u+=h*t/r.pathLength,an.getPointOnEllipticalArc(o,s,c,l,u,d)}return null}static getLineLength(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))}static getPointOnLine(t,e,n,i,r,a,o){void 0===a&&(a=e),void 0===o&&(o=n);var s=(r-n)/(i-e+1e-8),c=Math.sqrt(t*t/(1+s*s));i<e&&(c*=-1);var l,u=s*c;if(i===e)l={x:a,y:o+u};else if((o-n)/(a-e+1e-8)===s)l={x:a+c,y:o+u};else{var h,d,f=this.getLineLength(e,n,i,r),p=(a-e)*(i-e)+(o-n)*(r-n);p/=f*f,h=e+p*(i-e),d=n+p*(r-n);var v=this.getLineLength(a,o,h,d),m=Math.sqrt(t*t-v*v);c=Math.sqrt(m*m/(1+s*s)),i<e&&(c*=-1),u=s*c,l={x:h+c,y:d+u}}return l}static getPointOnCubicBezier(t,e,n,i,r,a,o,s,c){function l(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function h(t){return 3*t*(1-t)*(1-t)}function d(t){return(1-t)*(1-t)*(1-t)}var f=s*l(t)+a*u(t)+i*h(t)+e*d(t),p=c*l(t)+o*u(t)+r*h(t)+n*d(t);return{x:f,y:p}}static getPointOnQuadraticBezier(t,e,n,i,r,a,o){function s(t){return t*t}function c(t){return 2*t*(1-t)}function l(t){return(1-t)*(1-t)}var u=a*s(t)+i*c(t)+e*l(t),h=o*s(t)+r*c(t)+n*l(t);return{x:u,y:h}}static getPointOnEllipticalArc(t,e,n,i,r,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(r),y:i*Math.sin(r)};return{x:t+(c.x*o-c.y*s),y:e+(c.x*s+c.y*o)}}static parsePathData(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)e=e.replace(new RegExp(n[i],"g"),"|"+n[i]);var r,a=e.split("|"),o=[],s=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(i=1;i<a.length;i++){var h=a[i],d=h.charAt(0);h=h.slice(1),s.length=0;while(r=u.exec(h))s.push(r[0]);for(var f=[],p=0,v=s.length;p<v;p++)if("00"!==s[p]){var m=parseFloat(s[p]);isNaN(m)?f.push(0):f.push(m)}else f.push(0,0);while(f.length>0){if(isNaN(f[0]))break;var g,y,b,_,w,k,S,x,C,D,T=null,O=[],E=c,A=l;switch(d){case"l":c+=f.shift(),l+=f.shift(),T="L",O.push(c,l);break;case"L":c=f.shift(),l=f.shift(),O.push(c,l);break;case"m":var P=f.shift(),M=f.shift();if(c+=P,l+=M,T="M",o.length>2&&"z"===o[o.length-1].command)for(var R=o.length-2;R>=0;R--)if("M"===o[R].command){c=o[R].points[0]+P,l=o[R].points[1]+M;break}O.push(c,l),d="l";break;case"M":c=f.shift(),l=f.shift(),T="M",O.push(c,l),d="L";break;case"h":c+=f.shift(),T="L",O.push(c,l);break;case"H":c=f.shift(),T="L",O.push(c,l);break;case"v":l+=f.shift(),T="L",O.push(c,l);break;case"V":l=f.shift(),T="L",O.push(c,l);break;case"C":O.push(f.shift(),f.shift(),f.shift(),f.shift()),c=f.shift(),l=f.shift(),O.push(c,l);break;case"c":O.push(c+f.shift(),l+f.shift(),c+f.shift(),l+f.shift()),c+=f.shift(),l+=f.shift(),T="C",O.push(c,l);break;case"S":y=c,b=l,g=o[o.length-1],"C"===g.command&&(y=c+(c-g.points[2]),b=l+(l-g.points[3])),O.push(y,b,f.shift(),f.shift()),c=f.shift(),l=f.shift(),T="C",O.push(c,l);break;case"s":y=c,b=l,g=o[o.length-1],"C"===g.command&&(y=c+(c-g.points[2]),b=l+(l-g.points[3])),O.push(y,b,c+f.shift(),l+f.shift()),c+=f.shift(),l+=f.shift(),T="C",O.push(c,l);break;case"Q":O.push(f.shift(),f.shift()),c=f.shift(),l=f.shift(),O.push(c,l);break;case"q":O.push(c+f.shift(),l+f.shift()),c+=f.shift(),l+=f.shift(),T="Q",O.push(c,l);break;case"T":y=c,b=l,g=o[o.length-1],"Q"===g.command&&(y=c+(c-g.points[0]),b=l+(l-g.points[1])),c=f.shift(),l=f.shift(),T="Q",O.push(y,b,c,l);break;case"t":y=c,b=l,g=o[o.length-1],"Q"===g.command&&(y=c+(c-g.points[0]),b=l+(l-g.points[1])),c+=f.shift(),l+=f.shift(),T="Q",O.push(y,b,c,l);break;case"A":_=f.shift(),w=f.shift(),k=f.shift(),S=f.shift(),x=f.shift(),C=c,D=l,c=f.shift(),l=f.shift(),T="A",O=this.convertEndpointToCenterParameterization(C,D,c,l,S,x,_,w,k);break;case"a":_=f.shift(),w=f.shift(),k=f.shift(),S=f.shift(),x=f.shift(),C=c,D=l,c+=f.shift(),l+=f.shift(),T="A",O=this.convertEndpointToCenterParameterization(C,D,c,l,S,x,_,w,k);break}o.push({command:T||d,points:O,start:{x:E,y:A},pathLength:this.calcLength(E,A,T||d,O)})}"z"!==d&&"Z"!==d||o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(t,e,n,i){var r,a,o,s,c=an;switch(n){case"L":return c.getLineLength(t,e,i[0],i[1]);case"C":for(r=0,a=c.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),s=.01;s<=1;s+=.01)o=c.getPointOnCubicBezier(s,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;return r;case"Q":for(r=0,a=c.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),s=.01;s<=1;s+=.01)o=c.getPointOnQuadraticBezier(s,t,e,i[0],i[1],i[2],i[3]),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;return r;case"A":r=0;var l=i[4],u=i[5],h=i[4]+u,d=Math.PI/180;if(Math.abs(l-h)<d&&(d=Math.abs(l-h)),a=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),u<0)for(s=l-d;s>h;s-=d)o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],s,0),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=l+d;s<h;s+=d)o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],s,0),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),r+=c.getLineLength(a.x,a.y,o.x,o.y),r}return 0}static convertEndpointToCenterParameterization(t,e,n,i,r,a,o,s,c){var l=c*(Math.PI/180),u=Math.cos(l)*(t-n)/2+Math.sin(l)*(e-i)/2,h=-1*Math.sin(l)*(t-n)/2+Math.cos(l)*(e-i)/2,d=u*u/(o*o)+h*h/(s*s);d>1&&(o*=Math.sqrt(d),s*=Math.sqrt(d));var f=Math.sqrt((o*o*(s*s)-o*o*(h*h)-s*s*(u*u))/(o*o*(h*h)+s*s*(u*u)));r===a&&(f*=-1),isNaN(f)&&(f=0);var p=f*o*h/s,v=f*-s*u/o,m=(t+n)/2+Math.cos(l)*p-Math.sin(l)*v,g=(e+i)/2+Math.sin(l)*p+Math.cos(l)*v,y=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},b=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))},_=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))},w=_([1,0],[(u-p)/o,(h-v)/s]),k=[(u-p)/o,(h-v)/s],S=[(-1*u-p)/o,(-1*h-v)/s],x=_(k,S);return b(k,S)<=-1&&(x=Math.PI),b(k,S)>=1&&(x=0),0===a&&x>0&&(x-=2*Math.PI),1===a&&x<0&&(x+=2*Math.PI),[m,g,o,s,w,x,l,a]}}an.prototype.className="Path",an.prototype._attrsAffectingSize=["data"],s(an),F.addGetterSetter(an,"data");class on extends rn{_sceneFunc(t){super._sceneFunc(t);var e=2*Math.PI,n=this.points(),i=n,r=0!==this.tension()&&n.length>4;r&&(i=this.getTensionPoints());var a,o,s=this.pointerLength(),c=n.length;if(r){const t=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],n[c-2],n[c-1]],e=an.calcLength(i[i.length-4],i[i.length-3],"C",t),r=an.getPointOnQuadraticBezier(Math.min(1,1-s/e),t[0],t[1],t[2],t[3],t[4],t[5]);a=n[c-2]-r.x,o=n[c-1]-r.y}else a=n[c-2]-n[c-4],o=n[c-1]-n[c-3];var l=(Math.atan2(o,a)+e)%e,u=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[c-2],n[c-1]),t.rotate(l),t.moveTo(0,0),t.lineTo(-s,u/2),t.lineTo(-s,-u/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),r?(a=(i[0]+i[2])/2-n[0],o=(i[1]+i[3])/2-n[1]):(a=n[2]-n[0],o=n[3]-n[1]),t.rotate((Math.atan2(-o,-a)+e)%e),t.moveTo(0,0),t.lineTo(-s,u/2),t.lineTo(-s,-u/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var e=this.dashEnabled();e&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),e&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),e=this.pointerWidth()/2;return{x:t.x-e,y:t.y-e,width:t.width+2*e,height:t.height+2*e}}}on.prototype.className="Arrow",s(on),F.addGetterSetter(on,"pointerLength",10,O()),F.addGetterSetter(on,"pointerWidth",10,O()),F.addGetterSetter(on,"pointerAtBeginning",!1),F.addGetterSetter(on,"pointerAtEnding",!0);class sn extends Re{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}sn.prototype._centroid=!0,sn.prototype.className="Circle",sn.prototype._attrsAffectingSize=["radius"],s(sn),F.addGetterSetter(sn,"radius",0,O());class cn extends Re{_sceneFunc(t){var e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}cn.prototype.className="Ellipse",cn.prototype._centroid=!0,cn.prototype._attrsAffectingSize=["radiusX","radiusY"],s(cn),F.addComponentsGetterSetter(cn,"radius",["x","y"]),F.addGetterSetter(cn,"radiusX",0,O()),F.addGetterSetter(cn,"radiusY",0,O());class ln extends Re{constructor(t){super(t),this.on("imageChange.konva",(()=>{this._setImageLoad()})),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&4===t.readyState||t&&t["addEventListener"]&&t["addEventListener"]("load",(()=>{this._requestDraw()}))}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const e=this.getWidth(),n=this.getHeight(),i=this.attrs.image;let r;if(i){const t=this.attrs.cropWidth,a=this.attrs.cropHeight;r=t&&a?[i,this.cropX(),this.cropY(),t,a,0,0,e,n]:[i,0,0,e,n]}(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)),i&&t.drawImage.apply(t,r)}_hitFunc(t){var e=this.width(),n=this.height();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,e;return null!==(t=this.attrs.width)&&void 0!==t?t:null===(e=this.image())||void 0===e?void 0:e.width}getHeight(){var t,e;return null!==(t=this.attrs.height)&&void 0!==t?t:null===(e=this.image())||void 0===e?void 0:e.height}static fromURL(t,e,n=null){var i=C.createImageElement();i.onload=function(){var t=new ln({image:i});e(t)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}}ln.prototype.className="Image",s(ln),F.addGetterSetter(ln,"image"),F.addComponentsGetterSetter(ln,"crop",["x","y","width","height"]),F.addGetterSetter(ln,"cropX",0,O()),F.addGetterSetter(ln,"cropY",0,O()),F.addGetterSetter(ln,"cropWidth",0,O()),F.addGetterSetter(ln,"cropHeight",0,O());var un=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],hn="Change.konva",dn="none",fn="up",pn="right",vn="down",mn="left",gn=un.length;class yn extends ze{constructor(t){super(t),this.on("add.konva",(function(t){this._addListeners(t.child),this._sync()}))}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var e,n=this,i=function(){n._sync()};for(e=0;e<gn;e++)t.on(un[e]+hn,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t,e,n,i,r,a,o,s=this.getText(),c=this.getTag();if(s&&c){switch(t=s.width(),e=s.height(),n=c.pointerDirection(),i=c.pointerWidth(),o=c.pointerHeight(),r=0,a=0,n){case fn:r=t/2,a=-1*o;break;case pn:r=t+i,a=e/2;break;case vn:r=t/2,a=e+o;break;case mn:r=-1*i,a=e/2;break}c.setAttrs({x:-1*r,y:-1*a,width:t,height:e}),s.setAttrs({x:-1*r,y:-1*a})}}}yn.prototype.className="Label",s(yn);class bn extends Re{_sceneFunc(t){var e=this.width(),n=this.height(),i=this.pointerDirection(),r=this.pointerWidth(),a=this.pointerHeight(),o=this.cornerRadius();let s=0,c=0,l=0,u=0;"number"===typeof o?s=c=l=u=Math.min(o,e/2,n/2):(s=Math.min(o[0]||0,e/2,n/2),c=Math.min(o[1]||0,e/2,n/2),u=Math.min(o[2]||0,e/2,n/2),l=Math.min(o[3]||0,e/2,n/2)),t.beginPath(),t.moveTo(s,0),i===fn&&(t.lineTo((e-r)/2,0),t.lineTo(e/2,-1*a),t.lineTo((e+r)/2,0)),t.lineTo(e-c,0),t.arc(e-c,c,c,3*Math.PI/2,0,!1),i===pn&&(t.lineTo(e,(n-a)/2),t.lineTo(e+r,n/2),t.lineTo(e,(n+a)/2)),t.lineTo(e,n-u),t.arc(e-u,n-u,u,0,Math.PI/2,!1),i===vn&&(t.lineTo((e+r)/2,n),t.lineTo(e/2,n+a),t.lineTo((e-r)/2,n)),t.lineTo(l,n),t.arc(l,n-l,l,Math.PI/2,Math.PI,!1),i===mn&&(t.lineTo(0,(n+a)/2),t.lineTo(-1*r,n/2),t.lineTo(0,(n-a)/2)),t.lineTo(0,s),t.arc(s,s,s,Math.PI,3*Math.PI/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,e=0,n=this.pointerWidth(),i=this.pointerHeight(),r=this.pointerDirection(),a=this.width(),o=this.height();return r===fn?(e-=i,o+=i):r===vn?o+=i:r===mn?(t-=1.5*n,a+=n):r===pn&&(a+=1.5*n),{x:t,y:e,width:a,height:o}}}bn.prototype.className="Tag",s(bn),F.addGetterSetter(bn,"pointerDirection",dn),F.addGetterSetter(bn,"pointerWidth",0,O()),F.addGetterSetter(bn,"pointerHeight",0,O()),F.addGetterSetter(bn,"cornerRadius",0,E(4));class _n extends Re{_sceneFunc(t){var e=this.cornerRadius(),n=this.width(),i=this.height();if(t.beginPath(),e){let r=0,a=0,o=0,s=0;"number"===typeof e?r=a=o=s=Math.min(e,n/2,i/2):(r=Math.min(e[0]||0,n/2,i/2),a=Math.min(e[1]||0,n/2,i/2),s=Math.min(e[2]||0,n/2,i/2),o=Math.min(e[3]||0,n/2,i/2)),t.moveTo(r,0),t.lineTo(n-a,0),t.arc(n-a,a,a,3*Math.PI/2,0,!1),t.lineTo(n,i-s),t.arc(n-s,i-s,s,0,Math.PI/2,!1),t.lineTo(o,i),t.arc(o,i-o,o,Math.PI/2,Math.PI,!1),t.lineTo(0,r),t.arc(r,r,r,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,n,i);t.closePath(),t.fillStrokeShape(this)}}_n.prototype.className="Rect",s(_n),F.addGetterSetter(_n,"cornerRadius",0,E(4));class wn extends Re{_sceneFunc(t){const e=this._getPoints();t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var n=1;n<e.length;n++)t.lineTo(e[n].x,e[n].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,e=this.attrs.radius||0,n=[];for(var i=0;i<t;i++)n.push({x:e*Math.sin(2*i*Math.PI/t),y:-1*e*Math.cos(2*i*Math.PI/t)});return n}getSelfRect(){const t=this._getPoints();var e=t[0].x,n=t[0].y,i=t[0].x,r=t[0].y;return t.forEach((t=>{e=Math.min(e,t.x),n=Math.max(n,t.x),i=Math.min(i,t.y),r=Math.max(r,t.y)})),{x:e,y:i,width:n-e,height:r-i}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}wn.prototype.className="RegularPolygon",wn.prototype._centroid=!0,wn.prototype._attrsAffectingSize=["radius"],s(wn),F.addGetterSetter(wn,"radius",0,O()),F.addGetterSetter(wn,"sides",0,O());var kn=2*Math.PI;class Sn extends Re{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,kn,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),kn,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Sn.prototype.className="Ring",Sn.prototype._centroid=!0,Sn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],s(Sn),F.addGetterSetter(Sn,"innerRadius",0,O()),F.addGetterSetter(Sn,"outerRadius",0,O());class xn extends Re{constructor(t){super(t),this._updated=!0,this.anim=new Ve((()=>{var t=this._updated;return this._updated=!1,t})),this.on("animationChange.konva",(function(){this.frameIndex(0)})),this.on("frameIndexChange.konva",(function(){this._updated=!0})),this.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}))}_sceneFunc(t){var e=this.animation(),n=this.frameIndex(),i=4*n,r=this.animations()[e],a=this.frameOffsets(),o=r[i+0],s=r[i+1],c=r[i+2],l=r[i+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,c,l),t.closePath(),t.fillStrokeShape(this)),u)if(a){var h=a[e],d=2*n;t.drawImage(u,o,s,c,l,h[d+0],h[d+1],c,l)}else t.drawImage(u,o,s,c,l,0,0,c,l)}_hitFunc(t){var e=this.animation(),n=this.frameIndex(),i=4*n,r=this.animations()[e],a=this.frameOffsets(),o=r[i+2],s=r[i+3];if(t.beginPath(),a){var c=a[e],l=2*n;t.rect(c[l+0],c[l+1],o,s)}else t.rect(0,0,o,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval((function(){t._updateIndex()}),1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),e=this.animation(),n=this.animations(),i=n[e],r=i.length/4;t<r-1?this.frameIndex(t+1):this.frameIndex(0)}}xn.prototype.className="Sprite",s(xn),F.addGetterSetter(xn,"animation"),F.addGetterSetter(xn,"animations"),F.addGetterSetter(xn,"frameOffsets"),F.addGetterSetter(xn,"image"),F.addGetterSetter(xn,"frameIndex",0,O()),F.addGetterSetter(xn,"frameRate",17,O()),F.backCompat(xn,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Cn extends Re{_sceneFunc(t){var e=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var r=1;r<2*i;r++){var a=r%2===0?n:e,o=a*Math.sin(r*Math.PI/i),s=-1*a*Math.cos(r*Math.PI/i);t.lineTo(o,s)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}function Dn(t){return Array.from(t)}Cn.prototype.className="Star",Cn.prototype._centroid=!0,Cn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],s(Cn),F.addGetterSetter(Cn,"numPoints",5,O()),F.addGetterSetter(Cn,"innerRadius",0,O()),F.addGetterSetter(Cn,"outerRadius",0,O());var Tn,On="auto",En="center",An="justify",Pn="Change.konva",Mn="2d",Rn="-",In="left",Nn="text",$n="Text",Ln="top",Fn="bottom",Bn="middle",jn="normal",zn="px ",Hn=" ",Vn="right",Gn="word",Wn="char",Un="none",Yn="…",qn=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Xn=qn.length;function Kn(t){return t.split(",").map((t=>{t=t.trim();const e=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!n&&(t=`"${t}"`),t})).join(", ")}function Jn(){return Tn||(Tn=C.createCanvasElement().getContext(Mn),Tn)}function Zn(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Qn(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function ti(t){return t=t||{},t.fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}class ei extends Re{constructor(t){super(ti(t)),this._partialTextX=0,this._partialTextY=0;for(var e=0;e<Xn;e++)this.on(qn[e]+Pn,this._setTextData);this._setTextData()}_sceneFunc(t){var e=this.textArr,n=e.length;if(this.text()){var i,r=this.padding(),a=this.fontSize(),o=this.lineHeight()*a,s=this.verticalAlign(),c=0,l=this.align(),u=this.getWidth(),h=this.letterSpacing(),d=this.fill(),f=this.textDecoration(),p=-1!==f.indexOf("underline"),v=-1!==f.indexOf("line-through"),m=0,g=(m=o/2,0),y=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",Bn),t.setAttr("textAlign",In),s===Bn?c=(this.getHeight()-n*o-2*r)/2:s===Fn&&(c=this.getHeight()-n*o-2*r),t.translate(r,c+r),i=0;i<n;i++){g=0,y=0;var b,_,w,k=e[i],S=k.text,x=k.width,C=k.lastInParagraph;if(t.save(),l===Vn?g+=u-x-2*r:l===En&&(g+=(u-x-2*r)/2),p&&(t.save(),t.beginPath(),t.moveTo(g,m+y+Math.round(a/2)),b=S.split(" ").length-1,_=0===b,w=l===An&&C&&!_?u-2*r:x,t.lineTo(g+Math.round(w),m+y+Math.round(a/2)),t.lineWidth=a/15,t.strokeStyle=d,t.stroke(),t.restore()),v&&(t.save(),t.beginPath(),t.moveTo(g,m+y),b=S.split(" ").length-1,_=0===b,w=l===An&&C&&!_?u-2*r:x,t.lineTo(g+Math.round(w),m+y),t.lineWidth=a/15,t.strokeStyle=d,t.stroke(),t.restore()),0!==h||l===An){b=S.split(" ").length-1;for(var D=Dn(S),T=0;T<D.length;T++){var O=D[T];" "!==O||C||l!==An||(g+=(u-2*r-x)/b),this._partialTextX=g,this._partialTextY=m+y,this._partialText=O,t.fillStrokeShape(this),g+=this.measureSize(O).width+h}}else this._partialTextX=g,this._partialTextY=m+y,this._partialText=S,t.fillStrokeShape(this);t.restore(),n>1&&(m+=o)}}}_hitFunc(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}setText(t){var e=C._isString(t)?t:null===t||void 0===t?"":t+"";return this._setAttr(Nn,e),this}getWidth(){var t=this.attrs.width===On||void 0===this.attrs.width;return t?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){var t=this.attrs.height===On||void 0===this.attrs.height;return t?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return C.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var e,n=Jn(),i=this.fontSize();return n.save(),n.font=this._getContextFont(),e=n.measureText(t),n.restore(),{width:e.width,height:i}}_getContextFont(){return this.fontStyle()+Hn+this.fontVariant()+Hn+(this.fontSize()+zn)+Kn(this.fontFamily())}_addTextLine(t){this.align()===An&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e,lastInParagraph:!1})}_getTextWidth(t){var e=this.letterSpacing(),n=t.length;return Jn().measureText(t).width+(n?e*(n-1):0)}_setTextData(){var t=this.text().split("\n"),e=+this.fontSize(),n=0,i=this.lineHeight()*e,r=this.attrs.width,a=this.attrs.height,o=r!==On&&void 0!==r,s=a!==On&&void 0!==a,c=this.padding(),l=r-2*c,u=a-2*c,h=0,d=this.wrap(),f=d!==Un,p=d!==Wn&&f,v=this.ellipsis();this.textArr=[],Jn().font=this._getContextFont();for(var m=v?this._getTextWidth(Yn):0,g=0,y=t.length;g<y;++g){var b=t[g],_=this._getTextWidth(b);if(o&&_>l)while(b.length>0){var w=0,k=b.length,S="",x=0;while(w<k){var C=w+k>>>1,D=b.slice(0,C+1),T=this._getTextWidth(D)+m;T<=l?(w=C+1,S=D,x=T):k=C}if(!S)break;if(p){var O,E=b[S.length],A=E===Hn||E===Rn;O=A&&x<=l?S.length:Math.max(S.lastIndexOf(Hn),S.lastIndexOf(Rn))+1,O>0&&(w=O,S=S.slice(0,w),x=this._getTextWidth(S))}S=S.trimRight(),this._addTextLine(S),n=Math.max(n,x),h+=i;var P=this._shouldHandleEllipsis(h);if(P){this._tryToAddEllipsisToLastLine();break}if(b=b.slice(w),b=b.trimLeft(),b.length>0&&(_=this._getTextWidth(b),_<=l)){this._addTextLine(b),h+=i,n=Math.max(n,_);break}}else this._addTextLine(b),h+=i,n=Math.max(n,_),this._shouldHandleEllipsis(h)&&g<y-1&&this._tryToAddEllipsisToLastLine();if(s&&h+i>u)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=e,this.textWidth=n}_shouldHandleEllipsis(t){var e=+this.fontSize(),n=this.lineHeight()*e,i=this.attrs.height,r=i!==On&&void 0!==i,a=this.padding(),o=i-2*a,s=this.wrap(),c=s!==Un;return!c||r&&t+n>o}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,e=t!==On&&void 0!==t,n=this.padding(),i=t-2*n,r=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(a&&r){if(e){var o=this._getTextWidth(a.text+Yn)<i;o||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Yn)}}getStrokeScaleEnabled(){return!0}}ei.prototype._fillFunc=Zn,ei.prototype._strokeFunc=Qn,ei.prototype.className=$n,ei.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],s(ei),F.overWriteSetter(ei,"width",A()),F.overWriteSetter(ei,"height",A()),F.addGetterSetter(ei,"fontFamily","Arial"),F.addGetterSetter(ei,"fontSize",12,O()),F.addGetterSetter(ei,"fontStyle",jn),F.addGetterSetter(ei,"fontVariant",jn),F.addGetterSetter(ei,"padding",0,O()),F.addGetterSetter(ei,"align",In),F.addGetterSetter(ei,"verticalAlign",Ln),F.addGetterSetter(ei,"lineHeight",1,O()),F.addGetterSetter(ei,"wrap",Gn),F.addGetterSetter(ei,"ellipsis",!1,I()),F.addGetterSetter(ei,"letterSpacing",0,O()),F.addGetterSetter(ei,"text","",P()),F.addGetterSetter(ei,"textDecoration","");var ni="",ii="normal";function ri(t){t.fillText(this.partialText,0,0)}function ai(t){t.strokeText(this.partialText,0,0)}class oi extends Re{constructor(t){super(t),this.dummyCanvas=C.createCanvasElement(),this.dataArray=[],this.dataArray=an.parsePathData(this.attrs.data),this.on("dataChange.konva",(function(){this.dataArray=an.parsePathData(this.attrs.data),this._setTextData()})),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),i=this.fontSize(),r=this.glyphInfo;"underline"===e&&t.beginPath();for(var a=0;a<r.length;a++){t.save();var o=r[a].p0;t.translate(o.x,o.y),t.rotate(r[a].rotation),this.partialText=r[a].text,t.fillStrokeShape(this),"underline"===e&&(0===a&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var i=0;i<e.length;i++){var r=e[i].p1;t.lineTo(r.x,r.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return C.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return ei.prototype.setText.call(this,t)}_getContextFont(){return ei.prototype._getContextFont.call(this)}_getTextSize(t){var e=this.dummyCanvas,n=e.getContext("2d");n.save(),n.font=this._getContextFont();var i=n.measureText(t);return n.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var t=this,e=this._getTextSize(this.attrs.text),n=this.letterSpacing(),i=this.align(),r=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var o=0,s=0;s<t.dataArray.length;s++)t.dataArray[s].pathLength>0&&(o+=t.dataArray[s].pathLength);var c=0;"center"===i&&(c=Math.max(0,o/2-a/2)),"right"===i&&(c=Math.max(0,o-a));for(var l,u,h,d=Dn(this.text()),f=this.text().split(" ").length-1,p=-1,v=0,m=function(){v=0;for(var e=t.dataArray,n=p+1;n<e.length;n++){if(e[n].pathLength>0)return p=n,e[n];"M"===e[n].command&&(l={x:e[n].points[0],y:e[n].points[1]})}return{}},g=function(e){var r=t._getTextSize(e).width+n;" "===e&&"justify"===i&&(r+=(o-a)/f);var s=0,c=0;u=void 0;while(Math.abs(r-s)/r>.01&&c<20){c++;var d=s;while(void 0===h)h=m(),h&&d+h.pathLength<r&&(d+=h.pathLength,h=void 0);if(0===Object.keys(h).length||void 0===l)return;var p=!1;switch(h.command){case"L":an.getLineLength(l.x,l.y,h.points[0],h.points[1])>r?u=an.getPointOnLine(r,l.x,l.y,h.points[0],h.points[1],l.x,l.y):h=void 0;break;case"A":var g=h.points[4],y=h.points[5],b=h.points[4]+y;0===v?v=g+1e-8:r>s?v+=Math.PI/180*y/Math.abs(y):v-=Math.PI/360*y/Math.abs(y),(y<0&&v<b||y>=0&&v>b)&&(v=b,p=!0),u=an.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],v,h.points[6]);break;case"C":0===v?v=r>h.pathLength?1e-8:r/h.pathLength:r>s?v+=(r-s)/h.pathLength/2:v=Math.max(v-(s-r)/h.pathLength/2,0),v>1&&(v=1,p=!0),u=an.getPointOnCubicBezier(v,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3],h.points[4],h.points[5]);break;case"Q":0===v?v=r/h.pathLength:r>s?v+=(r-s)/h.pathLength:v-=(s-r)/h.pathLength,v>1&&(v=1,p=!0),u=an.getPointOnQuadraticBezier(v,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3]);break}void 0!==u&&(s=an.getLineLength(l.x,l.y,u.x,u.y)),p&&(p=!1,h=void 0)}},y="C",b=t._getTextSize(y).width+n,_=c/b-1,w=0;w<_;w++){if(g(y),void 0===l||void 0===u)break;l=u}for(var k=0;k<d.length;k++){if(g(d[k]),void 0===l||void 0===u)break;var S=an.getLineLength(l.x,l.y,u.x,u.y),x=0;if(r)try{x=r(d[k-1],d[k])*this.fontSize()}catch(T){x=0}l.x+=x,u.x+=x,this.textWidth+=x;var C=an.getPointOnLine(x+S/2,l.x,l.y,u.x,u.y),D=Math.atan2(u.y-l.y,u.x-l.x);this.glyphInfo.push({transposeX:C.x,transposeY:C.y,text:d[k],rotation:D,p0:l,p1:u}),l=u}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach((function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)}));for(var e,n,i=t[0]||0,r=t[0]||0,a=t[1]||0,o=t[1]||0,s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],i=Math.min(i,e),r=Math.max(r,e),a=Math.min(a,n),o=Math.max(o,n);var c=this.fontSize();return{x:i-c/2,y:a-c/2,width:r-i+c,height:o-a+c}}}oi.prototype._fillFunc=ri,oi.prototype._strokeFunc=ai,oi.prototype._fillFuncHit=ri,oi.prototype._strokeFuncHit=ai,oi.prototype.className="TextPath",oi.prototype._attrsAffectingSize=["text","fontSize","data"],s(oi),F.addGetterSetter(oi,"data"),F.addGetterSetter(oi,"fontFamily","Arial"),F.addGetterSetter(oi,"fontSize",12,O()),F.addGetterSetter(oi,"fontStyle",ii),F.addGetterSetter(oi,"align","left"),F.addGetterSetter(oi,"letterSpacing",0,O()),F.addGetterSetter(oi,"textBaseline","middle"),F.addGetterSetter(oi,"fontVariant",ii),F.addGetterSetter(oi,"text",ni),F.addGetterSetter(oi,"textDecoration",null),F.addGetterSetter(oi,"kerningFunc",null);var si="tr-konva",ci=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map((t=>t+`.${si}`)).join(" "),li="nodesRect",ui=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],hi={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const di="ontouchstart"in o._global;function fi(t,e){if("rotater"===t)return"crosshair";e+=C.degToRad(hi[t]||0);var n=(C.radToDeg(e)%360+360)%360;return C._inRange(n,337.5,360)||C._inRange(n,0,22.5)?"ns-resize":C._inRange(n,22.5,67.5)?"nesw-resize":C._inRange(n,67.5,112.5)?"ew-resize":C._inRange(n,112.5,157.5)?"nwse-resize":C._inRange(n,157.5,202.5)?"ns-resize":C._inRange(n,202.5,247.5)?"nesw-resize":C._inRange(n,247.5,292.5)?"ew-resize":C._inRange(n,292.5,337.5)?"nwse-resize":(C.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var pi=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],vi=1e8;function mi(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function gi(t,e,n){const i=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),r=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return Object.assign(Object.assign({},t),{rotation:t.rotation+e,x:i,y:r})}function yi(t,e){const n=mi(t);return gi(t,e,n)}function bi(t,e,n){let i=e;for(let r=0;r<t.length;r++){const a=o.getAngle(t[r]),s=Math.abs(a-e)%(2*Math.PI),c=Math.min(s,2*Math.PI-s);c<n&&(i=a)}return i}class _i extends ze{constructor(t){super(t),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(ci,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return C.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return si+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,1===t.length&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((t=>{const e=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()},n=t._attrsAffectingSize.map((t=>t+"Change."+this._getEventNamespace())).join(" ");t.on(n,e),t.on(ui.map((t=>t+`.${this._getEventNamespace()}`)).join(" "),e),t.on(`absoluteTransformChange.${this._getEventNamespace()}`,e),this._proxyDrag(t)})),this._resetTransformCache();var e=!!this.findOne(".top-left");return e&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,(n=>{e=t.getAbsolutePosition(),this.isDragging()||t===this.findOne(".back")||this.startDrag(n,!1)})),t.on(`dragmove.${this._getEventNamespace()}`,(n=>{if(!e)return;const i=t.getAbsolutePosition(),r=i.x-e.x,a=i.y-e.y;this.nodes().forEach((e=>{if(e===t)return;if(e.isDragging())return;const i=e.getAbsolutePosition();e.setAbsolutePosition({x:i.x+r,y:i.y+a}),e.startDrag(n)})),e=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((t=>{t.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(li),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(li,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),s=i.x*r.x-t.offsetX()*r.x,c=i.y*r.y-t.offsetY()*r.y;const l=(o.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI),u={x:a.x+s*Math.cos(l)+c*Math.sin(-l),y:a.y+c*Math.cos(l)+s*Math.sin(l),width:i.width*r.x,height:i.height*r.y,rotation:l};return gi(u,-o.getAngle(e),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-vi,y:-vi,width:0,height:0,rotation:0};const e=[];this.nodes().map((t=>{const n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],r=t.getAbsoluteTransform();i.forEach((function(t){var n=r.point(t);e.push(n)}))}));const n=new c;var i,r,a,s;n.rotate(-o.getAngle(this.rotation())),e.forEach((function(t){var e=n.point(t);void 0===i&&(i=a=e.x,r=s=e.y),i=Math.min(i,e.x),r=Math.min(r,e.y),a=Math.max(a,e.x),s=Math.max(s,e.y)})),n.invert();const l=n.point({x:i,y:r});return{x:l.x,y:l.y,width:a-i,height:s-r,rotation:o.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),pi.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")}_createAnchor(t){var e=new _n({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:di?10:"auto"}),n=this;e.on("mousedown touchstart",(function(t){n._handleMouseDown(t)})),e.on("dragstart",(t=>{e.stopDrag(),t.cancelBubble=!0})),e.on("dragend",(t=>{t.cancelBubble=!0})),e.on("mouseenter",(()=>{var n=o.getAngle(this.rotation()),i=fi(t,n);e.getStage().content&&(e.getStage().content.style.cursor=i),this._cursorChange=!0})),e.on("mouseout",(()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(e)}_createBack(){var t=new Re({name:"back",width:0,height:0,draggable:!0,sceneFunc(t){var e=this.getParent(),n=e.padding();t.beginPath(),t.rect(-n,-n,this.width()+2*n,this.height()+2*n),t.moveTo(this.width()/2,-n),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateAnchorOffset()*C._sign(this.height())-n),t.fillStrokeShape(this)},hitFunc:(t,e)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();t.beginPath(),t.rect(-n,-n,e.width()+2*n,e.height()+2*n),t.fillStrokeShape(e)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",(t=>{t.cancelBubble=!0})),t.on("dragmove",(t=>{t.cancelBubble=!0})),t.on("dragend",(t=>{t.cancelBubble=!0})),this.on("dragmove",(t=>{this.update()}))}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),n=e.width,i=e.height,r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/r),this.cos=Math.abs(n/r),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var a=t.target.getAbsolutePosition(),o=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-a.x,y:o.y-a.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach((e=>{e._fire("transformstart",{evt:t.evt,target:e})}))}_handleMouseMove(t){var e,n,i,r=this.findOne("."+this._movingAnchorName),a=r.getStage();a.setPointersPositions(t);const s=a.getPointerPosition();let c={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const l=r.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(l,c,t)),r.setAbsolutePosition(c);const u=r.getAbsolutePosition();if(l.x!==u.x||l.y!==u.y)if("rotater"!==this._movingAnchorName){var h=this.keepRatio()||t.shiftKey,d=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(h){var f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(f.y-r.y(),2));var p=this.findOne(".top-left").x()>f.x?-1:1,v=this.findOne(".top-left").y()>f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,this.findOne(".top-left").x(f.x-e),this.findOne(".top-left").y(f.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(h){f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(f.y-r.y(),2));p=this.findOne(".top-right").x()<f.x?-1:1,v=this.findOne(".top-right").y()>f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,this.findOne(".top-right").x(f.x+e),this.findOne(".top-right").y(f.y-n)}var m=r.position();this.findOne(".top-left").y(m.y),this.findOne(".bottom-right").x(m.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(h){f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(r.y()-f.y,2));p=f.x<r.x()?-1:1,v=r.y()<f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,r.x(f.x-e),r.y(f.y+n)}m=r.position(),this.findOne(".top-left").x(m.x),this.findOne(".bottom-right").y(m.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(r.y());else if("bottom-right"===this._movingAnchorName){if(h){f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(r.y()-f.y,2));p=this.findOne(".bottom-right").x()<f.x?-1:1,v=this.findOne(".bottom-right").y()<f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,this.findOne(".bottom-right").x(f.x+e),this.findOne(".bottom-right").y(f.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));d=this.centeredScaling()||t.altKey;if(d){var g=this.findOne(".top-left"),y=this.findOne(".bottom-right"),b=g.x(),_=g.y(),w=this.getWidth()-y.x(),k=this.getHeight()-y.y();y.move({x:-b,y:-_}),g.move({x:w,y:k})}var S=this.findOne(".top-left").getAbsolutePosition();e=S.x,n=S.y;var x=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),C=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:n,width:x,height:C,rotation:o.getAngle(this.rotation())},t)}else{var D=this._getNodeRect();e=r.x()-D.width/2,n=-r.y()+D.height/2;let i=Math.atan2(-n,e)+Math.PI/2;D.height<0&&(i-=Math.PI);var T=o.getAngle(this.rotation());const a=T+i,s=o.getAngle(this.rotationSnapTolerance()),c=bi(this.rotationSnaps(),a,s),l=c-D.rotation,u=yi(D,l);this._fitNodesInto(u,t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var e=this.getNode();this._fire("transformend",{evt:t,target:e}),e&&this._nodes.forEach((e=>{e._fire("transformend",{evt:t,target:e})})),this._movingAnchorName=null}}_fitNodesInto(t,e){var n=this._getNodeRect();const i=1;if(C._inRange(t.width,2*-this.padding()-i,i))return void this.update();if(C._inRange(t.height,2*-this.padding()-i,i))return void this.update();const r=this.flipEnabled();var a=new c;if(a.rotate(o.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const e=a.point({x:2*-this.padding(),y:0});if(t.x+=e.x,t.y+=e.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,!r)return void this.update()}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const e=a.point({x:2*this.padding(),y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.width+=2*this.padding(),!r)return void this.update()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const e=a.point({x:0,y:2*-this.padding()});if(t.x+=e.x,t.y+=e.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding(),!r)return void this.update()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const e=a.point({x:0,y:2*this.padding()});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding(),!r)return void this.update()}if(this.boundBoxFunc()){const e=this.boundBoxFunc()(n,t);e?t=e:C.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,l=new c;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/s,n.height/s);const u=new c;u.translate(t.x,t.y),u.rotate(t.rotation),u.scale(t.width/s,t.height/s);const h=u.multiply(l.invert());this._nodes.forEach((t=>{var n;const i=t.getParent().getAbsoluteTransform(),r=t.getTransform().copy();r.translate(t.offsetX(),t.offsetY());const a=new c;a.multiply(i.copy().invert()).multiply(h).multiply(i).multiply(r);const o=a.decompose();t.setAttrs(o),this._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t}),null===(n=t.getLayer())||void 0===n||n.batchDraw()})),this.rotation(C._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){const n=this.findOne(t);n.setAttrs(e)}update(){var t,e=this._getNodeRect();this.rotation(C._getRotation(e.rotation));var n=e.width,i=e.height,r=this.enabledAnchors(),a=this.resizeEnabled(),o=this.padding(),s=this.anchorSize();this.find("._anchor").forEach((t=>{t.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+o,offsetY:s/2+o,visible:a&&r.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+o,visible:a&&r.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-o,offsetY:s/2+o,visible:a&&r.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:s/2+o,visible:a&&r.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:s/2-o,visible:a&&r.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:s/2+o,offsetY:s/2-o,visible:a&&r.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:s/2-o,visible:a&&r.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:s/2-o,offsetY:s/2-o,visible:a&&r.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*C._sign(i)-o,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),null===(t=this.getLayer())||void 0===t||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),ze.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Dt.prototype.toObject.call(this)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}function wi(t){return t instanceof Array||C.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach((function(t){-1===pi.indexOf(t)&&C.warn("Unknown anchor name: "+t+". Available names are: "+pi.join(", "))})),t||[]}_i.prototype.className="Transformer",s(_i),F.addGetterSetter(_i,"enabledAnchors",pi,wi),F.addGetterSetter(_i,"flipEnabled",!0,I()),F.addGetterSetter(_i,"resizeEnabled",!0),F.addGetterSetter(_i,"anchorSize",10,O()),F.addGetterSetter(_i,"rotateEnabled",!0),F.addGetterSetter(_i,"rotationSnaps",[]),F.addGetterSetter(_i,"rotateAnchorOffset",50,O()),F.addGetterSetter(_i,"rotationSnapTolerance",5,O()),F.addGetterSetter(_i,"borderEnabled",!0),F.addGetterSetter(_i,"anchorStroke","rgb(0, 161, 255)"),F.addGetterSetter(_i,"anchorStrokeWidth",1,O()),F.addGetterSetter(_i,"anchorFill","white"),F.addGetterSetter(_i,"anchorCornerRadius",0,O()),F.addGetterSetter(_i,"borderStroke","rgb(0, 161, 255)"),F.addGetterSetter(_i,"borderStrokeWidth",1,O()),F.addGetterSetter(_i,"borderDash"),F.addGetterSetter(_i,"keepRatio",!0),F.addGetterSetter(_i,"centeredScaling",!1),F.addGetterSetter(_i,"ignoreStroke",!1),F.addGetterSetter(_i,"padding",0,O()),F.addGetterSetter(_i,"node"),F.addGetterSetter(_i,"nodes"),F.addGetterSetter(_i,"boundBoxFunc"),F.addGetterSetter(_i,"anchorDragBoundFunc"),F.addGetterSetter(_i,"shouldOverdrawWholeArea",!1),F.addGetterSetter(_i,"useSingleNodeRotation",!0),F.backCompat(_i,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class ki extends Re{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,o.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}function Si(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}ki.prototype.className="Wedge",ki.prototype._centroid=!0,ki.prototype._attrsAffectingSize=["radius"],s(ki),F.addGetterSetter(ki,"radius",0,O()),F.addGetterSetter(ki,"angle",0,O()),F.addGetterSetter(ki,"clockwise",!1),F.backCompat(ki,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var xi=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Ci=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Di(t,e){var n,i,r,a,o,s,c,l,u,h,d,f,p,v,m,g,y,b,_,w,k,S,x,C,D=t.data,T=t.width,O=t.height,E=e+e+1,A=T-1,P=O-1,M=e+1,R=M*(M+1)/2,I=new Si,N=null,$=I,L=null,F=null,B=xi[e],j=Ci[e];for(r=1;r<E;r++)$=$.next=new Si,r===M&&(N=$);for($.next=I,c=s=0,i=0;i<O;i++){for(g=y=b=_=l=u=h=d=0,f=M*(w=D[s]),p=M*(k=D[s+1]),v=M*(S=D[s+2]),m=M*(x=D[s+3]),l+=R*w,u+=R*k,h+=R*S,d+=R*x,$=I,r=0;r<M;r++)$.r=w,$.g=k,$.b=S,$.a=x,$=$.next;for(r=1;r<M;r++)a=s+((A<r?A:r)<<2),l+=($.r=w=D[a])*(C=M-r),u+=($.g=k=D[a+1])*C,h+=($.b=S=D[a+2])*C,d+=($.a=x=D[a+3])*C,g+=w,y+=k,b+=S,_+=x,$=$.next;for(L=I,F=N,n=0;n<T;n++)D[s+3]=x=d*B>>j,0!==x?(x=255/x,D[s]=(l*B>>j)*x,D[s+1]=(u*B>>j)*x,D[s+2]=(h*B>>j)*x):D[s]=D[s+1]=D[s+2]=0,l-=f,u-=p,h-=v,d-=m,f-=L.r,p-=L.g,v-=L.b,m-=L.a,a=c+((a=n+e+1)<A?a:A)<<2,g+=L.r=D[a],y+=L.g=D[a+1],b+=L.b=D[a+2],_+=L.a=D[a+3],l+=g,u+=y,h+=b,d+=_,L=L.next,f+=w=F.r,p+=k=F.g,v+=S=F.b,m+=x=F.a,g-=w,y-=k,b-=S,_-=x,F=F.next,s+=4;c+=T}for(n=0;n<T;n++){for(y=b=_=g=u=h=d=l=0,s=n<<2,f=M*(w=D[s]),p=M*(k=D[s+1]),v=M*(S=D[s+2]),m=M*(x=D[s+3]),l+=R*w,u+=R*k,h+=R*S,d+=R*x,$=I,r=0;r<M;r++)$.r=w,$.g=k,$.b=S,$.a=x,$=$.next;for(o=T,r=1;r<=e;r++)s=o+n<<2,l+=($.r=w=D[s])*(C=M-r),u+=($.g=k=D[s+1])*C,h+=($.b=S=D[s+2])*C,d+=($.a=x=D[s+3])*C,g+=w,y+=k,b+=S,_+=x,$=$.next,r<P&&(o+=T);for(s=n,L=I,F=N,i=0;i<O;i++)a=s<<2,D[a+3]=x=d*B>>j,x>0?(x=255/x,D[a]=(l*B>>j)*x,D[a+1]=(u*B>>j)*x,D[a+2]=(h*B>>j)*x):D[a]=D[a+1]=D[a+2]=0,l-=f,u-=p,h-=v,d-=m,f-=L.r,p-=L.g,v-=L.b,m-=L.a,a=n+((a=i+M)<P?a:P)*T<<2,l+=g+=L.r=D[a],u+=y+=L.g=D[a+1],h+=b+=L.b=D[a+2],d+=_+=L.a=D[a+3],L=L.next,f+=w=F.r,p+=k=F.g,v+=S=F.b,m+=x=F.a,g-=w,y-=k,b-=S,_-=x,F=F.next,s+=T}}const Ti=function(t){var e=Math.round(this.blurRadius());e>0&&Di(t,e)};F.addGetterSetter(Dt,"blurRadius",0,O(),F.afterSetFilter);const Oi=function(t){var e,n=255*this.brightness(),i=t.data,r=i.length;for(e=0;e<r;e+=4)i[e]+=n,i[e+1]+=n,i[e+2]+=n};F.addGetterSetter(Dt,"brightness",0,O(),F.afterSetFilter);const Ei=function(t){var e,n=Math.pow((this.contrast()+100)/100,2),i=t.data,r=i.length,a=150,o=150,s=150;for(e=0;e<r;e+=4)a=i[e],o=i[e+1],s=i[e+2],a/=255,a-=.5,a*=n,a+=.5,a*=255,o/=255,o-=.5,o*=n,o+=.5,o*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,i[e]=a,i[e+1]=o,i[e+2]=s};F.addGetterSetter(Dt,"contrast",0,O(),F.afterSetFilter);const Ai=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),i=this.embossDirection(),r=this.embossBlend(),a=0,o=0,s=t.data,c=t.width,l=t.height,u=4*c,h=l;switch(i){case"top-left":a=-1,o=-1;break;case"top":a=-1,o=0;break;case"top-right":a=-1,o=1;break;case"right":a=0,o=1;break;case"bottom-right":a=1,o=1;break;case"bottom":a=1,o=0;break;case"bottom-left":a=1,o=-1;break;case"left":a=0,o=-1;break;default:C.error("Unknown emboss direction: "+i)}do{var d=(h-1)*u,f=a;h+f<1&&(f=0),h+f>l&&(f=0);var p=(h-1+f)*c*4,v=c;do{var m=d+4*(v-1),g=o;v+g<1&&(g=0),v+g>c&&(g=0);var y=p+4*(v-1+g),b=s[m]-s[y],_=s[m+1]-s[y+1],w=s[m+2]-s[y+2],k=b,S=k>0?k:-k,x=_>0?_:-_,D=w>0?w:-w;if(x>S&&(k=_),D>S&&(k=w),k*=e,r){var T=s[m]+k,O=s[m+1]+k,E=s[m+2]+k;s[m]=T>255?255:T<0?0:T,s[m+1]=O>255?255:O<0?0:O,s[m+2]=E>255?255:E<0?0:E}else{var A=n-k;A<0?A=0:A>255&&(A=255),s[m]=s[m+1]=s[m+2]=A}}while(--v)}while(--h)};function Pi(t,e,n,i,r){var a,o=n-e,s=r-i;return 0===o?i+s/2:0===s?i:(a=(t-e)/o,a=s*a+i,a)}F.addGetterSetter(Dt,"embossStrength",.5,O(),F.afterSetFilter),F.addGetterSetter(Dt,"embossWhiteLevel",.5,O(),F.afterSetFilter),F.addGetterSetter(Dt,"embossDirection","top-left",null,F.afterSetFilter),F.addGetterSetter(Dt,"embossBlend",!1,null,F.afterSetFilter);const Mi=function(t){var e,n,i,r,a=t.data,o=a.length,s=a[0],c=s,l=a[1],u=l,h=a[2],d=h,f=this.enhance();if(0!==f){for(r=0;r<o;r+=4)e=a[r+0],e<s?s=e:e>c&&(c=e),n=a[r+1],n<l?l=n:n>u&&(u=n),i=a[r+2],i<h?h=i:i>d&&(d=i);var p,v,m,g,y,b,_,w,k;for(c===s&&(c=255,s=0),u===l&&(u=255,l=0),d===h&&(d=255,h=0),f>0?(v=c+f*(255-c),m=s-f*(s-0),y=u+f*(255-u),b=l-f*(l-0),w=d+f*(255-d),k=h-f*(h-0)):(p=.5*(c+s),v=c+f*(c-p),m=s+f*(s-p),g=.5*(u+l),y=u+f*(u-g),b=l+f*(l-g),_=.5*(d+h),w=d+f*(d-_),k=h+f*(h-_)),r=0;r<o;r+=4)a[r+0]=Pi(a[r+0],s,c,m,v),a[r+1]=Pi(a[r+1],l,u,b,y),a[r+2]=Pi(a[r+2],h,d,k,w)}};F.addGetterSetter(Dt,"enhance",0,O(),F.afterSetFilter);const Ri=function(t){var e,n,i=t.data,r=i.length;for(e=0;e<r;e+=4)n=.34*i[e]+.5*i[e+1]+.16*i[e+2],i[e]=n,i[e+1]=n,i[e+2]=n};F.addGetterSetter(Dt,"hue",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"saturation",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"luminance",0,O(),F.afterSetFilter);const Ii=function(t){var e,n,i,r,a,o=t.data,s=o.length,c=1,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,h=127*this.luminance(),d=c*l*Math.cos(u*Math.PI/180),f=c*l*Math.sin(u*Math.PI/180),p=.299*c+.701*d+.167*f,v=.587*c-.587*d+.33*f,m=.114*c-.114*d-.497*f,g=.299*c-.299*d-.328*f,y=.587*c+.413*d+.035*f,b=.114*c-.114*d+.293*f,_=.299*c-.3*d+1.25*f,w=.587*c-.586*d-1.05*f,k=.114*c+.886*d-.2*f;for(e=0;e<s;e+=4)n=o[e+0],i=o[e+1],r=o[e+2],a=o[e+3],o[e+0]=p*n+v*i+m*r+h,o[e+1]=g*n+y*i+b*r+h,o[e+2]=_*n+w*i+k*r+h,o[e+3]=a},Ni=function(t){var e,n,i,r,a,o=t.data,s=o.length,c=Math.pow(2,this.value()),l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,h=c*l*Math.cos(u*Math.PI/180),d=c*l*Math.sin(u*Math.PI/180),f=.299*c+.701*h+.167*d,p=.587*c-.587*h+.33*d,v=.114*c-.114*h-.497*d,m=.299*c-.299*h-.328*d,g=.587*c+.413*h+.035*d,y=.114*c-.114*h+.293*d,b=.299*c-.3*h+1.25*d,_=.587*c-.586*h-1.05*d,w=.114*c+.886*h-.2*d;for(e=0;e<s;e+=4)n=o[e+0],i=o[e+1],r=o[e+2],a=o[e+3],o[e+0]=f*n+p*i+v*r,o[e+1]=m*n+g*i+y*r,o[e+2]=b*n+_*i+w*r,o[e+3]=a};F.addGetterSetter(Dt,"hue",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"saturation",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"value",0,O(),F.afterSetFilter);const $i=function(t){var e,n=t.data,i=n.length;for(e=0;e<i;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]};var Li=function(t,e,n){var i,r,a,o,s=t.data,c=e.data,l=t.width,u=t.height,h=n.polarCenterX||l/2,d=n.polarCenterY||u/2,f=0,p=0,v=0,m=0,g=Math.sqrt(h*h+d*d);r=l-h,a=u-d,o=Math.sqrt(r*r+a*a),g=o>g?o:g;var y,b,_,w,k=u,S=l,x=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(_=Math.sin(b*x),w=Math.cos(b*x),y=0;y<k;y+=1)r=Math.floor(h+g*y/k*w),a=Math.floor(d+g*y/k*_),i=4*(a*l+r),f=s[i+0],p=s[i+1],v=s[i+2],m=s[i+3],i=4*(b+y*l),c[i+0]=f,c[i+1]=p,c[i+2]=v,c[i+3]=m},Fi=function(t,e,n){var i,r,a,o,s,c,l=t.data,u=e.data,h=t.width,d=t.height,f=n.polarCenterX||h/2,p=n.polarCenterY||d/2,v=0,m=0,g=0,y=0,b=Math.sqrt(f*f+p*p);r=h-f,a=d-p,c=Math.sqrt(r*r+a*a),b=c>b?c:b;var _,w,k,S,x=d,C=h,D=n.polarRotation||0;for(r=0;r<h;r+=1)for(a=0;a<d;a+=1)o=r-f,s=a-p,_=Math.sqrt(o*o+s*s)*x/b,w=(180*Math.atan2(s,o)/Math.PI+360+D)%360,w=w*C/360,k=Math.floor(w),S=Math.floor(_),i=4*(S*h+k),v=l[i+0],m=l[i+1],g=l[i+2],y=l[i+3],i=4*(a*h+r),u[i+0]=v,u[i+1]=m,u[i+2]=g,u[i+3]=y};const Bi=function(t){var e,n,i,r,a,o,s,c,l,u,h=t.width,d=t.height,f=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),v=Math.floor(h*(p%360)/360);if(!(f<1)){var m=C.createCanvasElement();m.width=h,m.height=d;var g=m.getContext("2d").getImageData(0,0,h,d);Li(t,g,{polarCenterX:h/2,polarCenterY:d/2});var y=h/Math.pow(2,f);while(y<=8)y*=2,f-=1;y=Math.ceil(y);var b=y,_=0,w=b,k=1;for(v+y>h&&(_=b,w=0,k=-1),n=0;n<d;n+=1)for(e=_;e!==w;e+=k)i=Math.round(e+v)%h,l=4*(h*n+i),a=g.data[l+0],o=g.data[l+1],s=g.data[l+2],c=g.data[l+3],u=4*(h*n+e),g.data[u+0]=a,g.data[u+1]=o,g.data[u+2]=s,g.data[u+3]=c;for(n=0;n<d;n+=1)for(b=Math.floor(y),r=0;r<f;r+=1){for(e=0;e<b+1;e+=1)l=4*(h*n+e),a=g.data[l+0],o=g.data[l+1],s=g.data[l+2],c=g.data[l+3],u=4*(h*n+2*b-e-1),g.data[u+0]=a,g.data[u+1]=o,g.data[u+2]=s,g.data[u+3]=c;b*=2}Fi(g,t,{polarRotation:0})}};function ji(t,e,n){var i=4*(n*t.width+e),r=[];return r.push(t.data[i++],t.data[i++],t.data[i++],t.data[i++]),r}function zi(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function Hi(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function Vi(t,e){var n=ji(t,0,0),i=ji(t,t.width-1,0),r=ji(t,0,t.height-1),a=ji(t,t.width-1,t.height-1),o=e||10;if(zi(n,i)<o&&zi(i,a)<o&&zi(a,r)<o&&zi(r,n)<o){for(var s=Hi([i,n,a,r]),c=[],l=0;l<t.width*t.height;l++){var u=zi(s,[t.data[4*l],t.data[4*l+1],t.data[4*l+2]]);c[l]=u<o?0:255}return c}}function Gi(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function Wi(t,e,n){for(var i=[1,1,1,1,0,1,1,1,1],r=Math.round(Math.sqrt(i.length)),a=Math.floor(r/2),o=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var l=s*e+c,u=0,h=0;h<r;h++)for(var d=0;d<r;d++){var f=s+h-a,p=c+d-a;if(f>=0&&f<n&&p>=0&&p<e){var v=f*e+p,m=i[h*r+d];u+=t[v]*m}}o[l]=2040===u?255:0}return o}function Ui(t,e,n){for(var i=[1,1,1,1,1,1,1,1,1],r=Math.round(Math.sqrt(i.length)),a=Math.floor(r/2),o=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var l=s*e+c,u=0,h=0;h<r;h++)for(var d=0;d<r;d++){var f=s+h-a,p=c+d-a;if(f>=0&&f<n&&p>=0&&p<e){var v=f*e+p,m=i[h*r+d];u+=t[v]*m}}o[l]=u>=1020?255:0}return o}function Yi(t,e,n){for(var i=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],r=Math.round(Math.sqrt(i.length)),a=Math.floor(r/2),o=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var l=s*e+c,u=0,h=0;h<r;h++)for(var d=0;d<r;d++){var f=s+h-a,p=c+d-a;if(f>=0&&f<n&&p>=0&&p<e){var v=f*e+p,m=i[h*r+d];u+=t[v]*m}}o[l]=u}return o}F.addGetterSetter(Dt,"kaleidoscopePower",2,O(),F.afterSetFilter),F.addGetterSetter(Dt,"kaleidoscopeAngle",0,O(),F.afterSetFilter);const qi=function(t){var e=this.threshold(),n=Vi(t,e);return n&&(n=Wi(n,t.width,t.height),n=Ui(n,t.width,t.height),n=Yi(n,t.width,t.height),Gi(t,n)),t};F.addGetterSetter(Dt,"threshold",0,O(),F.afterSetFilter);const Xi=function(t){var e,n=255*this.noise(),i=t.data,r=i.length,a=n/2;for(e=0;e<r;e+=4)i[e+0]+=a-2*a*Math.random(),i[e+1]+=a-2*a*Math.random(),i[e+2]+=a-2*a*Math.random()};F.addGetterSetter(Dt,"noise",.2,O(),F.afterSetFilter);const Ki=function(t){var e,n,i,r,a,o,s,c,l,u,h,d,f,p,v=Math.ceil(this.pixelSize()),m=t.width,g=t.height,y=Math.ceil(m/v),b=Math.ceil(g/v),_=t.data;if(v<=0)C.error("pixelSize value can not be <= 0");else for(d=0;d<y;d+=1)for(f=0;f<b;f+=1){for(r=0,a=0,o=0,s=0,c=d*v,l=c+v,u=f*v,h=u+v,p=0,e=c;e<l;e+=1)if(!(e>=m))for(n=u;n<h;n+=1)n>=g||(i=4*(m*n+e),r+=_[i+0],a+=_[i+1],o+=_[i+2],s+=_[i+3],p+=1);for(r/=p,a/=p,o/=p,s/=p,e=c;e<l;e+=1)if(!(e>=m))for(n=u;n<h;n+=1)n>=g||(i=4*(m*n+e),_[i+0]=r,_[i+1]=a,_[i+2]=o,_[i+3]=s)}};F.addGetterSetter(Dt,"pixelSize",8,O(),F.afterSetFilter);const Ji=function(t){var e,n=Math.round(254*this.levels())+1,i=t.data,r=i.length,a=255/n;for(e=0;e<r;e+=1)i[e]=Math.floor(i[e]/a)*a};F.addGetterSetter(Dt,"levels",.5,O(),F.afterSetFilter);const Zi=function(t){var e,n,i=t.data,r=i.length,a=this.red(),o=this.green(),s=this.blue();for(e=0;e<r;e+=4)n=(.34*i[e]+.5*i[e+1]+.16*i[e+2])/255,i[e]=n*a,i[e+1]=n*o,i[e+2]=n*s,i[e+3]=i[e+3]};F.addGetterSetter(Dt,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"blue",0,T,F.afterSetFilter);const Qi=function(t){var e,n,i=t.data,r=i.length,a=this.red(),o=this.green(),s=this.blue(),c=this.alpha();for(e=0;e<r;e+=4)n=1-c,i[e]=a*c+i[e]*n,i[e+1]=o*c+i[e+1]*n,i[e+2]=s*c+i[e+2]*n};F.addGetterSetter(Dt,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"blue",0,T,F.afterSetFilter),F.addGetterSetter(Dt,"alpha",1,(function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t}));const tr=function(t){var e,n,i,r,a=t.data,o=a.length;for(e=0;e<o;e+=4)n=a[e+0],i=a[e+1],r=a[e+2],a[e+0]=Math.min(255,.393*n+.769*i+.189*r),a[e+1]=Math.min(255,.349*n+.686*i+.168*r),a[e+2]=Math.min(255,.272*n+.534*i+.131*r)},er=function(t){var e=t.data,n=t.width,i=t.height,r=4*n,a=i;do{var o=(a-1)*r,s=n;do{var c=o+4*(s-1),l=e[c],u=e[c+1],h=e[c+2];l>127&&(l=255-l),u>127&&(u=255-u),h>127&&(h=255-h),e[c]=l,e[c+1]=u,e[c+2]=h}while(--s)}while(--a)},nr=function(t){var e,n=255*this.threshold(),i=t.data,r=i.length;for(e=0;e<r;e+=1)i[e]=i[e]<n?0:255};F.addGetterSetter(Dt,"threshold",.5,O(),F.afterSetFilter);const ir=Qe.Util._assign(Qe,{Arc:tn,Arrow:on,Circle:sn,Ellipse:cn,Image:ln,Label:yn,Tag:bn,Line:rn,Path:an,Rect:_n,RegularPolygon:wn,Ring:Sn,Sprite:xn,Star:Cn,Text:ei,TextPath:oi,Transformer:_i,Wedge:ki,Filters:{Blur:Ti,Brighten:Oi,Contrast:Ei,Emboss:Ai,Enhance:Mi,Grayscale:Ri,HSL:Ii,HSV:Ni,Invert:$i,Kaleidoscope:Bi,Mask:qi,Noise:Xi,Pixelate:Ki,Posterize:Ji,RGB:Zi,RGBA:Qi,Sepia:tr,Solarize:er,Threshold:nr}}),rr=ir}}]);
46
+ function i(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,{Se:()=>N,ZP:()=>X,nv:()=>$,rn:()=>R});var r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},a=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){a&&(t._devtoolHook=a,a.emit("vuex:init",t),a.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){a.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){a.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){return t.filter(e)[0]}function c(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=s(e,(function(e){return e.original===t}));if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(n){i[n]=c(t[n],e)})),i}function l(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function u(t){return null!==t&&"object"===typeof t}function h(t){return t&&"function"===typeof t.then}function d(t,e){return function(){return t(e)}}var f=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(t,e){this._children[t]=e},f.prototype.removeChild=function(t){delete this._children[t]},f.prototype.getChild=function(t){return this._children[t]},f.prototype.hasChild=function(t){return t in this._children},f.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},f.prototype.forEachChild=function(t){l(this._children,t)},f.prototype.forEachGetter=function(t){this._rawModule.getters&&l(this._rawModule.getters,t)},f.prototype.forEachAction=function(t){this._rawModule.actions&&l(this._rawModule.actions,t)},f.prototype.forEachMutation=function(t){this._rawModule.mutations&&l(this._rawModule.mutations,t)},Object.defineProperties(f.prototype,p);var v=function(t){this.register([],t,!1)};function m(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;m(t.concat(i),e.getChild(i),n.modules[i])}}v.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},v.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},v.prototype.update=function(t){m([],this.root,t)},v.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new f(e,n);if(0===t.length)this.root=r;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],r)}e.modules&&l(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},v.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},v.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var g;var y=function(t){var e=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(t,e){return s.call(r,t,e)},this.commit=function(t,e,n){return c.call(r,t,e,n)},this.strict=i;var l=this._modules.root.state;S(this,l,[],this._modules.root),k(this,l),n.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:g.config.devtools;u&&o(this)},b={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function w(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;S(t,n,[],t._modules.root,!0),k(t,n,e)}function k(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,a={};l(r,(function(e,n){a[n]=d(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var o=g.config.silent;g.config.silent=!0,t._vm=new g({data:{$$state:e},computed:a}),g.config.silent=o,t.strict&&E(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),g.nextTick((function(){return i.$destroy()})))}function S(t,e,n,i,r){var a=!n.length,o=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=i),!a&&!r){var s=A(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){g.set(s,c,i.state)}))}var l=i.context=x(t,o,n);i.forEachMutation((function(e,n){var i=o+n;D(t,i,e,l)})),i.forEachAction((function(e,n){var i=e.root?n:o+n,r=e.handler||e;T(t,i,r,l)})),i.forEachGetter((function(e,n){var i=o+n;O(t,i,e,l)})),i.forEachChild((function(i,a){S(t,e,n.concat(a),i,r)}))}function x(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var a=P(n,i,r),o=a.payload,s=a.options,c=a.type;return s&&s.root||(c=e+c),t.dispatch(c,o)},commit:i?t.commit:function(n,i,r){var a=P(n,i,r),o=a.payload,s=a.options,c=a.type;s&&s.root||(c=e+c),t.commit(c,o,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return A(t.state,n)}}}),r}function C(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var a=r.slice(i);Object.defineProperty(n,a,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function D(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}function T(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return h(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}function O(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)})}function E(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function P(t,e,n){return u(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function M(t){g&&t===g||(g=t,i(g))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){0},y.prototype.commit=function(t,e,n){var i=this,r=P(t,e,n),a=r.type,o=r.payload,s=(r.options,{type:a,payload:o}),c=this._mutations[a];c&&(this._withCommit((function(){c.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},y.prototype.dispatch=function(t,e){var n=this,i=P(t,e),r=i.type,a=i.payload,o={type:r,payload:a},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(t){return t(a)}))):s[0](a);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,n.state)}))}catch(l){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,n.state,t)}))}catch(l){0}e(t)}))}))}},y.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},y.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},y.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},y.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),S(this,this.state,t,this._modules.get(t),n.preserveState),k(this,this.state)},y.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=A(e.state,t.slice(0,-1));g.delete(n,t[t.length-1])})),w(this)},y.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},y.prototype.hotUpdate=function(t){this._modules.update(t),w(this,!0)},y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(y.prototype,b);var R=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=z(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),I=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var a=z(this.$store,"mapMutations",t);if(!a)return;i=a.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),N=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),$=j((function(t,e){var n={};return F(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var a=z(this.$store,"mapActions",t);if(!a)return;i=a.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),L=function(t){return{mapState:R.bind(null,t),mapGetters:N.bind(null,t),mapMutations:I.bind(null,t),mapActions:$.bind(null,t)}};function F(t){return B(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function B(t){return Array.isArray(t)||u(t)}function j(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function z(t,e,n){var i=t._modulesNamespaceMap[n];return i}function H(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var r=t.mutationTransformer;void 0===r&&(r=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var o=t.actionTransformer;void 0===o&&(o=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var l=t.logActions;void 0===l&&(l=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var h=c(t.state);"undefined"!==typeof u&&(s&&t.subscribe((function(t,a){var o=c(a);if(n(t,h,o)){var s=W(),l=r(t),d="mutation "+t.type+s;V(u,d,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",i(o)),G(u)}h=o})),l&&t.subscribeAction((function(t,n){if(a(t,n)){var i=W(),r=o(t),s="action "+t.type+i;V(u,s,e),u.log("%c action","color: #03A9F4; font-weight: bold",r),G(u)}})))}}function V(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(r){t.log(e)}}function G(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function W(){var t=new Date;return" @ "+Y(t.getHours(),2)+":"+Y(t.getMinutes(),2)+":"+Y(t.getSeconds(),2)+"."+Y(t.getMilliseconds(),3)}function U(t,e){return new Array(e+1).join(t)}function Y(t,e){return U("0",e-t.toString().length)+t}var q={Store:y,install:M,version:"3.6.2",mapState:R,mapMutations:I,mapGetters:N,mapActions:$,createNamespacedHelpers:L,createLogger:H};const X=q},636:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return a="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},a(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return f(t)||v(t,e)||m(t,e)||b()}function h(t){return d(t)||p(t)||m(t)||y()}function d(t){if(Array.isArray(t))return g(t)}function f(t){if(Array.isArray(t))return t}function p(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function v(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(i=n.next()).done);o=!0)if(a.push(i.value),e&&a.length===e)break}catch(c){s=!0,r=c}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw r}}return a}}function m(t,e){if(t){if("string"===typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Qc:()=>hi,fL:()=>fi,qv:()=>di,vI:()=>ui,vc:()=>li});var _=function(){},w={},k={},S=null,x={mark:_,measure:_};try{"undefined"!==typeof window&&(w=window),"undefined"!==typeof document&&(k=document),"undefined"!==typeof MutationObserver&&(S=MutationObserver),"undefined"!==typeof performance&&(x=performance)}catch(pi){}var C,D,T,O,E,A=w.navigator||{},P=A.userAgent,M=void 0===P?"":P,R=w,I=k,N=S,$=x,L=(R.document,!!I.documentElement&&!!I.head&&"function"===typeof I.addEventListener&&"function"===typeof I.createElement),F=~M.indexOf("MSIE")||~M.indexOf("Trident/"),B="___FONT_AWESOME___",j=16,z="fa",H="svg-inline--fa",V="data-fa-i2svg",G="data-fa-pseudo-element",W="data-fa-pseudo-element-pending",U="data-prefix",Y="data-icon",q="fontawesome-i2svg",X="async",K=["HTML","HEAD","STYLE","SCRIPT"],J=function(){try{return!0}catch(pi){return!1}}(),Z="classic",Q="sharp",tt=[Z,Q];function et(t){return new Proxy(t,{get:function(t,e){return e in t?t[e]:t[Z]}})}var nt=et((C={},l(C,Z,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),l(C,Q,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),C)),it=et((D={},l(D,Z,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),l(D,Q,{solid:"fass",regular:"fasr"}),D)),rt=et((T={},l(T,Z,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),l(T,Q,{fass:"fa-solid",fasr:"fa-regular"}),T)),at=et((O={},l(O,Z,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),l(O,Q,{"fa-solid":"fass","fa-regular":"fasr"}),O)),ot=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,st="fa-layers-text",ct=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,lt=et((E={},l(E,Z,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),l(E,Q,{900:"fass",400:"fasr"}),E)),ut=[1,2,3,4,5,6,7,8,9,10],ht=ut.concat([11,12,13,14,15,16,17,18,19,20]),dt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ft={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pt=new Set;Object.keys(it[Z]).map(pt.add.bind(pt)),Object.keys(it[Q]).map(pt.add.bind(pt));var vt=[].concat(tt,h(pt),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ft.GROUP,ft.SWAP_OPACITY,ft.PRIMARY,ft.SECONDARY]).concat(ut.map((function(t){return"".concat(t,"x")}))).concat(ht.map((function(t){return"w-".concat(t)}))),mt=R.FontAwesomeConfig||{};function gt(t){var e=I.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function yt(t){return""===t||"false"!==t&&("true"===t||t)}if(I&&"function"===typeof I.querySelector){var bt=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["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"]];bt.forEach((function(t){var e=u(t,2),n=e[0],i=e[1],r=yt(gt(n));void 0!==r&&null!==r&&(mt[i]=r)}))}var _t={styleDefault:"solid",familyDefault:"classic",cssPrefix:z,replacementClass:H,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};mt.familyPrefix&&(mt.cssPrefix=mt.familyPrefix);var wt=r(r({},_t),mt);wt.autoReplaceSvg||(wt.observeMutations=!1);var kt={};Object.keys(_t).forEach((function(t){Object.defineProperty(kt,t,{enumerable:!0,set:function(e){wt[t]=e,St.forEach((function(t){return t(kt)}))},get:function(){return wt[t]}})})),Object.defineProperty(kt,"familyPrefix",{enumerable:!0,set:function(t){wt.cssPrefix=t,St.forEach((function(t){return t(kt)}))},get:function(){return wt.cssPrefix}}),R.FontAwesomeConfig=kt;var St=[];function xt(t){return St.push(t),function(){St.splice(St.indexOf(t),1)}}var Ct=j,Dt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tt(t){if(t&&L){var e=I.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=I.head.childNodes,i=null,r=n.length-1;r>-1;r--){var a=n[r],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=a)}return I.head.insertBefore(e,i),t}}var Ot="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Et(){var t=12,e="";while(t-- >0)e+=Ot[62*Math.random()|0];return e}function At(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Pt(t){return t.classList?At(t.classList):(t.getAttribute("class")||"").split(" ").filter((function(t){return t}))}function Mt(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Rt(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(Mt(t[n]),'" ')}),"").trim()}function It(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")}),"")}function Nt(t){return t.size!==Dt.size||t.x!==Dt.x||t.y!==Dt.y||t.rotate!==Dt.rotate||t.flipX||t.flipY}function $t(t){var e=t.transform,n=t.containerWidth,i=t.iconWidth,r={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*e.x,", ").concat(32*e.y,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),c={transform:"".concat(a," ").concat(o," ").concat(s)},l={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:c,path:l}}function Lt(t){var e=t.transform,n=t.width,i=void 0===n?j:n,r=t.height,a=void 0===r?j:r,o=t.startCentered,s=void 0!==o&&o,c="";return c+=s&&F?"translate(".concat(e.x/Ct-i/2,"em, ").concat(e.y/Ct-a/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/Ct,"em), calc(-50% + ").concat(e.y/Ct,"em)) "):"translate(".concat(e.x/Ct,"em, ").concat(e.y/Ct,"em) "),c+="scale(".concat(e.size/Ct*(e.flipX?-1:1),", ").concat(e.size/Ct*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var Ft=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\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-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: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\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-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\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: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\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@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 -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\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 z-index: var(--fa-stack-z-index, auto);\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: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Bt(){var t=z,e=H,n=kt.cssPrefix,i=kt.replacementClass,r=Ft;if(n!==t||i!==e){var a=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");r=r.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(i))}return r}var jt=!1;function zt(){kt.autoAddCss&&!jt&&(Tt(Bt()),jt=!0)}var Ht={mixout:function(){return{dom:{css:Bt,insertCss:zt}}},hooks:function(){return{beforeDOMElementCreation:function(){zt()},beforeI2svg:function(){zt()}}}},Vt=R||{};Vt[B]||(Vt[B]={}),Vt[B].styles||(Vt[B].styles={}),Vt[B].hooks||(Vt[B].hooks={}),Vt[B].shims||(Vt[B].shims=[]);var Gt=Vt[B],Wt=[],Ut=function t(){I.removeEventListener("DOMContentLoaded",t),Yt=1,Wt.map((function(t){return t()}))},Yt=!1;function qt(t){L&&(Yt?setTimeout(t,0):Wt.push(t))}function Xt(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,a=void 0===r?[]:r;return"string"===typeof t?Mt(t):"<".concat(e," ").concat(Rt(i),">").concat(a.map(Xt).join(""),"</").concat(e,">")}function Kt(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}L&&(Yt=(I.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(I.readyState),Yt||I.addEventListener("DOMContentLoaded",Ut));var Jt=function(t,e){return function(n,i,r,a){return t.call(e,n,i,r,a)}},Zt=function(t,e,n,i){var r,a,o,s=Object.keys(t),c=s.length,l=void 0!==i?Jt(e,i):e;for(void 0===n?(r=1,o=t[s[0]]):(r=0,o=n);r<c;r++)a=s[r],o=l(o,t[a],a,t);return o};function Qt(t){var e=[],n=0,i=t.length;while(n<i){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&r)<<10)+(1023&a)+65536):(e.push(r),n--)}else e.push(r)}return e}function te(t){var e=Qt(t);return 1===e.length?e[0].toString(16):null}function ee(t,e){var n,i=t.length,r=t.charCodeAt(e);return r>=55296&&r<=56319&&i>e+1&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}function ne(t){return Object.keys(t).reduce((function(e,n){var i=t[n],r=!!i.icon;return r?e[i.iconName]=i.icon:e[n]=i,e}),{})}function ie(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,a=void 0!==i&&i,o=ne(e);"function"!==typeof Gt.hooks.addPack||a?Gt.styles[t]=r(r({},Gt.styles[t]||{}),o):Gt.hooks.addPack(t,ne(e)),"fas"===t&&ie("fa",e)}var re,ae,oe,se=Gt.styles,ce=Gt.shims,le=(re={},l(re,Z,Object.values(rt[Z])),l(re,Q,Object.values(rt[Q])),re),ue=null,he={},de={},fe={},pe={},ve={},me=(ae={},l(ae,Z,Object.keys(nt[Z])),l(ae,Q,Object.keys(nt[Q])),ae);function ge(t){return~vt.indexOf(t)}function ye(t,e){var n=e.split("-"),i=n[0],r=n.slice(1).join("-");return i!==t||""===r||ge(r)?null:r}var be=function(){var t=function(t){return Zt(se,(function(e,n,i){return e[i]=Zt(n,t,{}),e}),{})};he=t((function(t,e,n){if(e[3]&&(t[e[3]]=n),e[2]){var i=e[2].filter((function(t){return"number"===typeof t}));i.forEach((function(e){t[e.toString(16)]=n}))}return t})),de=t((function(t,e,n){if(t[n]=n,e[2]){var i=e[2].filter((function(t){return"string"===typeof t}));i.forEach((function(e){t[e]=n}))}return t})),ve=t((function(t,e,n){var i=e[2];return t[n]=n,i.forEach((function(e){t[e]=n})),t}));var e="far"in se||kt.autoFetchSvg,n=Zt(ce,(function(t,n){var i=n[0],r=n[1],a=n[2];return"far"!==r||e||(r="fas"),"string"===typeof i&&(t.names[i]={prefix:r,iconName:a}),"number"===typeof i&&(t.unicodes[i.toString(16)]={prefix:r,iconName:a}),t}),{names:{},unicodes:{}});fe=n.names,pe=n.unicodes,ue=Te(kt.styleDefault,{family:kt.familyDefault})};function _e(t,e){return(he[t]||{})[e]}function we(t,e){return(de[t]||{})[e]}function ke(t,e){return(ve[t]||{})[e]}function Se(t){return fe[t]||{prefix:null,iconName:null}}function xe(t){var e=pe[t],n=_e("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ce(){return ue}xt((function(t){ue=Te(t.styleDefault,{family:kt.familyDefault})})),be();var De=function(){return{prefix:null,iconName:null,rest:[]}};function Te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.family,i=void 0===n?Z:n,r=nt[i][t],a=it[i][t]||it[i][r],o=t in Gt.styles?t:null;return a||o||null}var Oe=(oe={},l(oe,Z,Object.keys(rt[Z])),l(oe,Q,Object.keys(rt[Q])),oe);function Ee(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.skipLookups,r=void 0!==i&&i,a=(e={},l(e,Z,"".concat(kt.cssPrefix,"-").concat(Z)),l(e,Q,"".concat(kt.cssPrefix,"-").concat(Q)),e),o=null,s=Z;(t.includes(a[Z])||t.some((function(t){return Oe[Z].includes(t)})))&&(s=Z),(t.includes(a[Q])||t.some((function(t){return Oe[Q].includes(t)})))&&(s=Q);var c=t.reduce((function(t,e){var n=ye(kt.cssPrefix,e);if(se[e]?(e=le[s].includes(e)?at[s][e]:e,o=e,t.prefix=e):me[s].indexOf(e)>-1?(o=e,t.prefix=Te(e,{family:s})):n?t.iconName=n:e!==kt.replacementClass&&e!==a[Z]&&e!==a[Q]&&t.rest.push(e),!r&&t.prefix&&t.iconName){var i="fa"===o?Se(t.iconName):{},c=ke(t.prefix,t.iconName);i.prefix&&(o=null),t.iconName=i.iconName||c||t.iconName,t.prefix=i.prefix||t.prefix,"far"!==t.prefix||se["far"]||!se["fas"]||kt.autoFetchSvg||(t.prefix="fas")}return t}),De());return(t.includes("fa-brands")||t.includes("fab"))&&(c.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(c.prefix="fad"),c.prefix||s!==Q||!se["fass"]&&!kt.autoFetchSvg||(c.prefix="fass",c.iconName=ke(c.prefix,c.iconName)||c.iconName),"fa"!==c.prefix&&"fa"!==o||(c.prefix=Ce()||"fas"),c}var Ae=function(){function t(){o(this,t),this.definitions={}}return c(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(e){t.definitions[e]=r(r({},t.definitions[e]||{}),a[e]),ie(e,a[e]);var n=rt[Z][e];n&&ie(n,a[e]),be()}))}},{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 i=n[e],r=i.prefix,a=i.iconName,o=i.icon,s=o[2];t[r]||(t[r]={}),s.length>0&&s.forEach((function(e){"string"===typeof e&&(t[r][e]=o)})),t[r][a]=o})),t}}]),t}(),Pe=[],Me={},Re={},Ie=Object.keys(Re);function Ne(t,e){var n=e.mixoutsTo;return Pe=t,Me={},Object.keys(Re).forEach((function(t){-1===Ie.indexOf(t)&&delete Re[t]})),Pe.forEach((function(t){var e=t.mixout?t.mixout():{};if(Object.keys(e).forEach((function(t){"function"===typeof e[t]&&(n[t]=e[t]),"object"===a(e[t])&&Object.keys(e[t]).forEach((function(i){n[t]||(n[t]={}),n[t][i]=e[t][i]}))})),t.hooks){var i=t.hooks();Object.keys(i).forEach((function(t){Me[t]||(Me[t]=[]),Me[t].push(i[t])}))}t.provides&&t.provides(Re)})),n}function $e(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var a=Me[t]||[];return a.forEach((function(t){e=t.apply(null,[e].concat(i))})),e}function Le(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=Me[t]||[];r.forEach((function(t){t.apply(null,n)}))}function Fe(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return Re[t]?Re[t].apply(null,e):void 0}function Be(t){"fa"===t.prefix&&(t.prefix="fas");var e=t.iconName,n=t.prefix||Ce();if(e)return e=ke(n,e)||e,Kt(je.definitions,n,e)||Kt(Gt.styles,n,e)}var je=new Ae,ze=function(){kt.autoReplaceSvg=!1,kt.observeMutations=!1,Le("noAuto")},He={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return L?(Le("beforeI2svg",t),Fe("pseudoElements2svg",t),Fe("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot;!1===kt.autoReplaceSvg&&(kt.autoReplaceSvg=!0),kt.observeMutations=!0,qt((function(){We({autoReplaceSvgRoot:e}),Le("watch",t)}))}},Ve={icon:function(t){if(null===t)return null;if("object"===a(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ke(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=Te(t[0]);return{prefix:n,iconName:ke(n,e)||e}}if("string"===typeof t&&(t.indexOf("".concat(kt.cssPrefix,"-"))>-1||t.match(ot))){var i=Ee(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ce(),iconName:ke(i.prefix,i.iconName)||i.iconName}}if("string"===typeof t){var r=Ce();return{prefix:r,iconName:ke(r,t)||t}}}},Ge={noAuto:ze,config:kt,dom:He,parse:Ve,library:je,findIconDefinition:Be,toHtml:Xt},We=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=void 0===e?I:e;(Object.keys(Gt.styles).length>0||kt.autoFetchSvg)&&L&&kt.autoReplaceSvg&&Ge.dom.i2svg({node:n})};function Ue(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return Xt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(L){var e=I.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Ye(t){var e=t.children,n=t.main,i=t.mask,a=t.attributes,o=t.styles,s=t.transform;if(Nt(s)&&n.found&&!i.found){var c=n.width,l=n.height,u={x:c/l/2,y:.5};a["style"]=It(r(r({},o),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:a,children:e}]}function qe(t){var e=t.prefix,n=t.iconName,i=t.children,a=t.attributes,o=t.symbol,s=!0===o?"".concat(e,"-").concat(kt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:r(r({},a),{},{id:s}),children:i}]}]}function Xe(t){var e=t.icons,n=e.main,i=e.mask,a=t.prefix,o=t.iconName,s=t.transform,c=t.symbol,l=t.title,u=t.maskId,h=t.titleId,d=t.extra,f=t.watchable,p=void 0!==f&&f,v=i.found?i:n,m=v.width,g=v.height,y="fak"===a,b=[kt.replacementClass,o?"".concat(kt.cssPrefix,"-").concat(o):""].filter((function(t){return-1===d.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(d.classes).join(" "),_={children:[],attributes:r(r({},d.attributes),{},{"data-prefix":a,"data-icon":o,class:b,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};p&&(_.attributes[V]=""),l&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(h||Et())},children:[l]}),delete _.attributes.title);var k=r(r({},_),{},{prefix:a,iconName:o,main:n,mask:i,maskId:u,transform:s,symbol:c,styles:r(r({},w),d.styles)}),S=i.found&&n.found?Fe("generateAbstractMask",k)||{children:[],attributes:{}}:Fe("generateAbstractIcon",k)||{children:[],attributes:{}},x=S.children,C=S.attributes;return k.children=x,k.attributes=C,c?qe(k):Ye(k)}function Ke(t){var e=t.content,n=t.width,i=t.height,a=t.transform,o=t.title,s=t.extra,c=t.watchable,l=void 0!==c&&c,u=r(r(r({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(u[V]="");var h=r({},s.styles);Nt(a)&&(h["transform"]=Lt({transform:a,startCentered:!0,width:n,height:i}),h["-webkit-transform"]=h["transform"]);var d=It(h);d.length>0&&(u["style"]=d);var f=[];return f.push({tag:"span",attributes:u,children:[e]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}function Je(t){var e=t.content,n=t.title,i=t.extra,a=r(r(r({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),o=It(i.styles);o.length>0&&(a["style"]=o);var s=[];return s.push({tag:"span",attributes:a,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Ze=Gt.styles;function Qe(t){var e=t[0],n=t[1],i=t.slice(4),r=u(i,1),a=r[0],o=null;return o=Array.isArray(a)?{tag:"g",attributes:{class:"".concat(kt.cssPrefix,"-").concat(ft.GROUP)},children:[{tag:"path",attributes:{class:"".concat(kt.cssPrefix,"-").concat(ft.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(kt.cssPrefix,"-").concat(ft.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:e,height:n,icon:o}}var tn={found:!1,width:512,height:512};function en(t,e){J||kt.showMissingIcons||!t||console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function nn(t,e){var n=e;return"fa"===e&&null!==kt.styleDefault&&(e=Ce()),new Promise((function(i,a){Fe("missingIconAbstract");if("fa"===n){var o=Se(t)||{};t=o.iconName||t,e=o.prefix||e}if(t&&e&&Ze[e]&&Ze[e][t]){var s=Ze[e][t];return i(Qe(s))}en(t,e),i(r(r({},tn),{},{icon:kt.showMissingIcons&&t&&Fe("missingIconAbstract")||{}}))}))}var rn=function(){},an=kt.measurePerformance&&$&&$.mark&&$.measure?$:{mark:rn,measure:rn},on='FA "6.3.0"',sn=function(t){return an.mark("".concat(on," ").concat(t," begins")),function(){return cn(t)}},cn=function(t){an.mark("".concat(on," ").concat(t," ends")),an.measure("".concat(on," ").concat(t),"".concat(on," ").concat(t," begins"),"".concat(on," ").concat(t," ends"))},ln={begin:sn,end:cn},un=function(){};function hn(t){var e=t.getAttribute?t.getAttribute(V):null;return"string"===typeof e}function dn(t){var e=t.getAttribute?t.getAttribute(U):null,n=t.getAttribute?t.getAttribute(Y):null;return e&&n}function fn(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(kt.replacementClass)}function pn(){if(!0===kt.autoReplaceSvg)return bn.replace;var t=bn[kt.autoReplaceSvg];return t||bn.replace}function vn(t){return I.createElementNS("http://www.w3.org/2000/svg",t)}function mn(t){return I.createElement(t)}function gn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.ceFn,i=void 0===n?"svg"===t.tag?vn:mn:n;if("string"===typeof t)return I.createTextNode(t);var r=i(t.tag);Object.keys(t.attributes||[]).forEach((function(e){r.setAttribute(e,t.attributes[e])}));var a=t.children||[];return a.forEach((function(t){r.appendChild(gn(t,{ceFn:i}))})),r}function yn(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var bn={replace:function(t){var e=t[0];if(e.parentNode)if(t[1].forEach((function(t){e.parentNode.insertBefore(gn(t),e)})),null===e.getAttribute(V)&&kt.keepOriginalSource){var n=I.createComment(yn(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){var e=t[0],n=t[1];if(~Pt(e).indexOf(kt.replacementClass))return bn.replace(t);var i=new RegExp("".concat(kt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce((function(t,e){return e===kt.replacementClass||e.match(i)?t.toSvg.push(e):t.toNode.push(e),t}),{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var a=n.map((function(t){return Xt(t)})).join("\n");e.setAttribute(V,""),e.innerHTML=a}};function _n(t){t()}function wn(t,e){var n="function"===typeof e?e:un;if(0===t.length)n();else{var i=_n;kt.mutateApproach===X&&(i=R.requestAnimationFrame||_n),i((function(){var e=pn(),i=ln.begin("mutate");t.map(e),i(),n()}))}}var kn=!1;function Sn(){kn=!0}function xn(){kn=!1}var Cn=null;function Dn(t){if(N&&kt.observeMutations){var e=t.treeCallback,n=void 0===e?un:e,i=t.nodeCallback,r=void 0===i?un:i,a=t.pseudoElementsCallback,o=void 0===a?un:a,s=t.observeMutationsRoot,c=void 0===s?I:s;Cn=new N((function(t){if(!kn){var e=Ce();At(t).forEach((function(t){if("childList"===t.type&&t.addedNodes.length>0&&!hn(t.addedNodes[0])&&(kt.searchPseudoElements&&o(t.target),n(t.target)),"attributes"===t.type&&t.target.parentNode&&kt.searchPseudoElements&&o(t.target.parentNode),"attributes"===t.type&&hn(t.target)&&~dt.indexOf(t.attributeName))if("class"===t.attributeName&&dn(t.target)){var i=Ee(Pt(t.target)),a=i.prefix,s=i.iconName;t.target.setAttribute(U,a||e),s&&t.target.setAttribute(Y,s)}else fn(t.target)&&r(t.target)}))}})),L&&Cn.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Tn(){Cn&&Cn.disconnect()}function On(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce((function(t,e){var n=e.split(":"),i=n[0],r=n.slice(1);return i&&r.length>0&&(t[i]=r.join(":").trim()),t}),{})),n}function En(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",r=Ee(Pt(t));return r.prefix||(r.prefix=Ce()),e&&n&&(r.prefix=e,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=we(r.prefix,t.innerText)||_e(r.prefix,te(t.innerText))),!r.iconName&&kt.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=t.firstChild.data)),r}function An(t){var e=At(t.attributes).reduce((function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t}),{}),n=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return kt.autoA11y&&(n?e["aria-labelledby"]="".concat(kt.replacementClass,"-title-").concat(i||Et()):(e["aria-hidden"]="true",e["focusable"]="false")),e}function Pn(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Dt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Mn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=En(t),i=n.iconName,a=n.prefix,o=n.rest,s=An(t),c=$e("parseNodeAttributes",{},t),l=e.styleParser?On(t):[];return r({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:a,transform:Dt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},c)}var Rn=Gt.styles;function In(t){var e="nest"===kt.autoReplaceSvg?Mn(t,{styleParser:!1}):Mn(t);return~e.extra.classes.indexOf(st)?Fe("generateLayersText",t,e):Fe("generateSvgReplacementMutation",t,e)}var Nn=new Set;function $n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!L)return Promise.resolve();var n=I.documentElement.classList,i=function(t){return n.add("".concat(q,"-").concat(t))},r=function(t){return n.remove("".concat(q,"-").concat(t))},a=kt.autoFetchSvg?Nn:tt.map((function(t){return"fa-".concat(t)})).concat(Object.keys(Rn));a.includes("fa")||a.push("fa");var o=[".".concat(st,":not([").concat(V,"])")].concat(a.map((function(t){return".".concat(t,":not([").concat(V,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=At(t.querySelectorAll(o))}catch(pi){}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var c=ln.begin("onTree"),l=s.reduce((function(t,e){try{var n=In(e);n&&t.push(n)}catch(pi){J||"MissingIcon"===pi.name&&console.error(pi)}return t}),[]);return new Promise((function(t,n){Promise.all(l).then((function(n){wn(n,(function(){i("active"),i("complete"),r("pending"),"function"===typeof e&&e(),c(),t()}))})).catch((function(t){c(),n(t)}))}))}function Ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;In(t).then((function(t){t&&wn([t],e)}))}function Fn(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(e||{}).icon?e:Be(e||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Be(a||{})),t(i,r(r({},n),{},{mask:a}))}}tt.map((function(t){Nn.add("fa-".concat(t))})),Object.keys(nt[Z]).map(Nn.add.bind(Nn)),Object.keys(nt[Q]).map(Nn.add.bind(Nn)),Nn=h(Nn);var Bn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?Dt:n,a=e.symbol,o=void 0!==a&&a,s=e.mask,c=void 0===s?null:s,l=e.maskId,u=void 0===l?null:l,h=e.title,d=void 0===h?null:h,f=e.titleId,p=void 0===f?null:f,v=e.classes,m=void 0===v?[]:v,g=e.attributes,y=void 0===g?{}:g,b=e.styles,_=void 0===b?{}:b;if(t){var w=t.prefix,k=t.iconName,S=t.icon;return Ue(r({type:"icon"},t),(function(){return Le("beforeDOMElementCreation",{iconDefinition:t,params:e}),kt.autoA11y&&(d?y["aria-labelledby"]="".concat(kt.replacementClass,"-title-").concat(p||Et()):(y["aria-hidden"]="true",y["focusable"]="false")),Xe({icons:{main:Qe(S),mask:c?Qe(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:k,transform:r(r({},Dt),i),symbol:o,title:d,maskId:u,titleId:p,extra:{attributes:y,styles:_,classes:m}})}))}},jn={mixout:function(){return{icon:Fn(Bn)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=$n,t.nodeCallback=Ln,t}}},provides:function(t){t.i2svg=function(t){var e=t.node,n=void 0===e?I:e,i=t.callback,r=void 0===i?function(){}:i;return $n(n,r)},t.generateSvgReplacementMutation=function(t,e){var n=e.iconName,i=e.title,r=e.titleId,a=e.prefix,o=e.transform,s=e.symbol,c=e.mask,l=e.maskId,h=e.extra;return new Promise((function(e,d){Promise.all([nn(n,a),c.iconName?nn(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(c){var d=u(c,2),f=d[0],p=d[1];e([t,Xe({icons:{main:f,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:i,titleId:r,extra:h,watchable:!0})])})).catch(d)}))},t.generateAbstractIcon=function(t){var e,n=t.children,i=t.attributes,r=t.main,a=t.transform,o=t.styles,s=It(o);return s.length>0&&(i["style"]=s),Nt(a)&&(e=Fe("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(e||r.icon),{children:n,attributes:i}}}},zn={mixout:function(){return{layer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.classes,i=void 0===n?[]:n;return Ue({type:"layer"},(function(){Le("beforeDOMElementCreation",{assembler:t,params:e});var n=[];return t((function(t){Array.isArray(t)?t.map((function(t){n=n.concat(t.abstract)})):n=n.concat(t.abstract)})),[{tag:"span",attributes:{class:["".concat(kt.cssPrefix,"-layers")].concat(h(i)).join(" ")},children:n}]}))}}}},Hn={mixout:function(){return{counter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,i=void 0===n?null:n,r=e.classes,a=void 0===r?[]:r,o=e.attributes,s=void 0===o?{}:o,c=e.styles,l=void 0===c?{}:c;return Ue({type:"counter",content:t},(function(){return Le("beforeDOMElementCreation",{content:t,params:e}),Je({content:t.toString(),title:i,extra:{attributes:s,styles:l,classes:["".concat(kt.cssPrefix,"-layers-counter")].concat(h(a))}})}))}}}},Vn={mixout:function(){return{text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?Dt:n,a=e.title,o=void 0===a?null:a,s=e.classes,c=void 0===s?[]:s,l=e.attributes,u=void 0===l?{}:l,d=e.styles,f=void 0===d?{}:d;return Ue({type:"text",content:t},(function(){return Le("beforeDOMElementCreation",{content:t,params:e}),Ke({content:t,transform:r(r({},Dt),i),title:o,extra:{attributes:u,styles:f,classes:["".concat(kt.cssPrefix,"-layers-text")].concat(h(c))}})}))}}},provides:function(t){t.generateLayersText=function(t,e){var n=e.title,i=e.transform,r=e.extra,a=null,o=null;if(F){var s=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();a=c.width/s,o=c.height/s}return kt.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Promise.resolve([t,Ke({content:t.innerHTML,width:a,height:o,transform:i,title:n,extra:r,watchable:!0})])}}},Gn=new RegExp('"',"ug"),Wn=[1105920,1112319];function Un(t){var e=t.replace(Gn,""),n=ee(e,0),i=n>=Wn[0]&&n<=Wn[1],r=2===e.length&&e[0]===e[1];return{value:te(r?e[0]:e),isSecondary:i||r}}function Yn(t,e){var n="".concat(W).concat(e.replace(":","-"));return new Promise((function(i,a){if(null!==t.getAttribute(n))return i();var o=At(t.children),s=o.filter((function(t){return t.getAttribute(G)===e}))[0],c=R.getComputedStyle(t,e),l=c.getPropertyValue("font-family").match(ct),u=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(s&&!l)return t.removeChild(s),i();if(l&&"none"!==h&&""!==h){var d=c.getPropertyValue("content"),f=~["Sharp"].indexOf(l[2])?Q:Z,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?it[f][l[2].toLowerCase()]:lt[f][u],v=Un(d),m=v.value,g=v.isSecondary,y=l[0].startsWith("FontAwesome"),b=_e(p,m),_=b;if(y){var w=xe(m);w.iconName&&w.prefix&&(b=w.iconName,p=w.prefix)}if(!b||g||s&&s.getAttribute(U)===p&&s.getAttribute(Y)===_)i();else{t.setAttribute(n,_),s&&t.removeChild(s);var k=Pn(),S=k.extra;S.attributes[G]=e,nn(b,p).then((function(a){var o=Xe(r(r({},k),{},{icons:{main:a,mask:De()},prefix:p,iconName:_,extra:S,watchable:!0})),s=I.createElement("svg");"::before"===e?t.insertBefore(s,t.firstChild):t.appendChild(s),s.outerHTML=o.map((function(t){return Xt(t)})).join("\n"),t.removeAttribute(n),i()})).catch(a)}}else i()}))}function qn(t){return Promise.all([Yn(t,"::before"),Yn(t,"::after")])}function Xn(t){return t.parentNode!==document.head&&!~K.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(G)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}function Kn(t){if(L)return new Promise((function(e,n){var i=At(t.querySelectorAll("*")).filter(Xn).map(qn),r=ln.begin("searchPseudoElements");Sn(),Promise.all(i).then((function(){r(),xn(),e()})).catch((function(){r(),xn(),n()}))}))}var Jn={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Kn,t}}},provides:function(t){t.pseudoElements2svg=function(t){var e=t.node,n=void 0===e?I:e;kt.searchPseudoElements&&Kn(n)}}},Zn=!1,Qn={mixout:function(){return{dom:{unwatch:function(){Sn(),Zn=!0}}}},hooks:function(){return{bootstrap:function(){Dn($e("mutationObserverCallbacks",{}))},noAuto:function(){Tn()},watch:function(t){var e=t.observeMutationsRoot;Zn?xn():Dn($e("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}},ti=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r;break}return t}),e)},ei={mixout:function(){return{parse:{transform:function(t){return ti(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-transform");return n&&(t.transform=ti(n)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(t){var e=t.main,n=t.transform,i=t.containerWidth,a=t.iconWidth,o={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),c="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={transform:"".concat(s," ").concat(c," ").concat(l)},h={transform:"translate(".concat(a/2*-1," -256)")},d={outer:o,inner:u,path:h};return{tag:"g",attributes:r({},d.outer),children:[{tag:"g",attributes:r({},d.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:r(r({},e.icon.attributes),d.path)}]}]}}}},ni={x:0,y:0,width:"100%",height:"100%"};function ii(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function ri(t){return"g"===t.tag?t.children:[t]}var ai={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-mask"),i=n?Ee(n.split(" ").map((function(t){return t.trim()}))):De();return i.prefix||(i.prefix=Ce()),t.mask=i,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(t){var e=t.children,n=t.attributes,i=t.main,a=t.mask,o=t.maskId,s=t.transform,c=i.width,l=i.icon,u=a.width,h=a.icon,d=$t({transform:s,containerWidth:u,iconWidth:c}),f={tag:"rect",attributes:r(r({},ni),{},{fill:"white"})},p=l.children?{children:l.children.map(ii)}:{},v={tag:"g",attributes:r({},d.inner),children:[ii(r({tag:l.tag,attributes:r(r({},l.attributes),d.path)},p))]},m={tag:"g",attributes:r({},d.outer),children:[v]},g="mask-".concat(o||Et()),y="clip-".concat(o||Et()),b={tag:"mask",attributes:r(r({},ni),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:ri(h)},b]};return e.push(_,{tag:"rect",attributes:r({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},ni)}),{children:e,attributes:n}}}},oi={provides:function(t){var e=!1;R.matchMedia&&(e=R.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var t=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:r(r({},n),{},{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"})});var a=r(r({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:r(r({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:r(r({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:r(r({},a),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:r(r({},n),{},{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:e?[]:[{tag:"animate",attributes:r(r({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:r(r({},n),{},{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:r(r({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},si={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-symbol"),i=null!==n&&(""===n||n);return t["symbol"]=i,t}}}},ci=[Ht,jn,zn,Hn,Vn,Jn,Qn,ei,ai,oi,si];Ne(ci,{mixoutsTo:Ge});Ge.noAuto;var li=Ge.config,ui=Ge.library,hi=(Ge.dom,Ge.parse),di=(Ge.findIconDefinition,Ge.toHtml,Ge.icon),fi=(Ge.layer,Ge.text);Ge.counter},417:(t,e,n)=>{"use strict";n.d(e,{DBf:()=>h,EQg:()=>i,EdJ:()=>c,EyR:()=>C,FPD:()=>b,LM3:()=>x,Uwo:()=>f,XTR:()=>k,acZ:()=>u,eFW:()=>s,g82:()=>w,gc2:()=>v,jHE:()=>o,lUd:()=>l,nNP:()=>m,onQ:()=>S,paY:()=>d,q7m:()=>p,r8p:()=>_,wn1:()=>y,xHz:()=>r,yOZ:()=>a});var i={prefix:"fas",iconName:"scissors",icon:[512,512,[9984,9986,9988,"cut"],"f0c4","M256 192l-39.5-39.5c4.9-12.6 7.5-26.2 7.5-40.5C224 50.1 173.9 0 112 0S0 50.1 0 112s50.1 112 112 112c14.3 0 27.9-2.7 40.5-7.5L192 256l-39.5 39.5c-12.6-4.9-26.2-7.5-40.5-7.5C50.1 288 0 338.1 0 400s50.1 112 112 112s112-50.1 112-112c0-14.3-2.7-27.9-7.5-40.5L499.2 76.8c7.1-7.1 7.1-18.5 0-25.6c-28.3-28.3-74.1-28.3-102.4 0L256 192zm22.6 150.6L396.8 460.8c28.3 28.3 74.1 28.3 102.4 0c7.1-7.1 7.1-18.5 0-25.6L342.6 278.6l-64 64zM64 112a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm48 240a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},r={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},a={prefix:"fas",iconName:"angle-right",icon:[256,512,[8250],"f105","M246.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L178.7 256 41.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},o={prefix:"fas",iconName:"repeat",icon:[512,512,[128257],"f363","M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z"]},s={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},c={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},l={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M370.3 160H320c-17.7 0-32 14.3-32 32s14.3 32 32 32H448c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L398.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L370.3 160z"]},u={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},h={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},d={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M109.7 160H160c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V64C0 46.3 14.3 32 32 32s32 14.3 32 32v51.2L81.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L109.7 160z"]},f={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M56 472a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0-160a56 56 0 1 1 0-112 56 56 0 1 1 0 112zM0 96a56 56 0 1 1 112 0A56 56 0 1 1 0 96z"]},p={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},v={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 274.7 54.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},m={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M562.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L405.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C189.5 251.2 196 330 246 380c56.5 56.5 148 56.5 204.5 0L562.8 267.7zM43.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C57 372 57 321 88.5 289.5L200.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C416.5 260.8 410 182 360 132c-56.5-56.5-148-56.5-204.5 0L43.2 244.3z"]},g={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},y=g,b={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},_={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M240 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H176V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H384c17.7 0 32-14.3 32-32s-14.3-32-32-32H240V80z"]},w={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},k={prefix:"fas",iconName:"trash-arrow-up",icon:[448,512,["trash-restore"],"f829","M163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128H416L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32 128zm192 64c-6.4 0-12.5 2.5-17 7l-80 80c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39V408c0 13.3 10.7 24 24 24s24-10.7 24-24V273.9l39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-4.5-4.5-10.6-7-17-7z"]},S={prefix:"fas",iconName:"angle-up",icon:[384,512,[8963],"f106","M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"]},x={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zm0 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM48 304c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm464-48c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM142.9 437c18.7-18.7 18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zm0-294.2c18.7-18.7 18.7-49.1 0-67.9S93.7 56.2 75 75s-18.7 49.1 0 67.9s49.1 18.7 67.9 0zM369.1 437c18.7 18.7 49.1 18.7 67.9 0s18.7-49.1 0-67.9s-49.1-18.7-67.9 0s-18.7 49.1 0 67.9z"]},C={prefix:"fas",iconName:"angle-left",icon:[256,512,[8249],"f104","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]}},154:(t,e,n)=>{"use strict";function i(t,e){return function(){return t.apply(e,arguments)}}n.d(e,{Z:()=>Be});const{toString:r}=Object.prototype,{getPrototypeOf:a}=Object,o=(t=>e=>{const n=r.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s=t=>(t=t.toLowerCase(),e=>o(e)===t),c=t=>e=>typeof e===t,{isArray:l}=Array,u=c("undefined");function h(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&v(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const d=s("ArrayBuffer");function f(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e}const p=c("string"),v=c("function"),m=c("number"),g=t=>null!==t&&"object"===typeof t,y=t=>!0===t||!1===t,b=t=>{if("object"!==o(t))return!1;const e=a(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},_=s("Date"),w=s("File"),k=s("Blob"),S=s("FileList"),x=t=>g(t)&&v(t.pipe),C=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||v(t.append)&&("formdata"===(e=o(t))||"object"===e&&v(t.toString)&&"[object FormData]"===t.toString()))},D=s("URLSearchParams"),T=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function O(t,e,{allOwnKeys:n=!1}={}){if(null===t||"undefined"===typeof t)return;let i,r;if("object"!==typeof t&&(t=[t]),l(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),a=r.length;let o;for(i=0;i<a;i++)o=r[i],e.call(null,t[o],o,t)}}function E(t,e){e=e.toLowerCase();const n=Object.keys(t);let i,r=n.length;while(r-- >0)if(i=n[r],e===i.toLowerCase())return i;return null}const A=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),P=t=>!u(t)&&t!==A;function M(){const{caseless:t}=P(this)&&this||{},e={},n=(n,i)=>{const r=t&&E(e,i)||i;b(e[r])&&b(n)?e[r]=M(e[r],n):b(n)?e[r]=M({},n):l(n)?e[r]=n.slice():e[r]=n};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&O(arguments[i],n);return e}const R=(t,e,n,{allOwnKeys:r}={})=>(O(e,((e,r)=>{n&&v(e)?t[r]=i(e,n):t[r]=e}),{allOwnKeys:r}),t),I=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),N=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},$=(t,e,n,i)=>{let r,o,s;const c={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),o=r.length;while(o-- >0)s=r[o],i&&!i(s,t,e)||c[s]||(e[s]=t[s],c[s]=!0);t=!1!==n&&a(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},L=(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},F=t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);while(e-- >0)n[e]=t[e];return n},B=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&a(Uint8Array)),j=(t,e)=>{const n=t&&t[Symbol.iterator],i=n.call(t);let r;while((r=i.next())&&!r.done){const n=r.value;e.call(t,n[0],n[1])}},z=(t,e)=>{let n;const i=[];while(null!==(n=t.exec(e)))i.push(n);return i},H=s("HTMLFormElement"),V=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),G=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),W=s("RegExp"),U=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};O(n,((n,r)=>{let a;!1!==(a=e(n,r,t))&&(i[r]=a||n)})),Object.defineProperties(t,i)},Y=t=>{U(t,((e,n)=>{if(v(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];v(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},q=(t,e)=>{const n={},i=t=>{t.forEach((t=>{n[t]=!0}))};return l(t)?i(t):i(String(t).split(e)),n},X=()=>{},K=(t,e)=>(t=+t,Number.isFinite(t)?t:e),J="abcdefghijklmnopqrstuvwxyz",Z="0123456789",Q={DIGIT:Z,ALPHA:J,ALPHA_DIGIT:J+J.toUpperCase()+Z},tt=(t=16,e=Q.ALPHA_DIGIT)=>{let n="";const{length:i}=e;while(t--)n+=e[Math.random()*i|0];return n};function et(t){return!!(t&&v(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const nt=t=>{const e=new Array(10),n=(t,i)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const r=l(t)?[]:{};return O(t,((t,e)=>{const a=n(t,i+1);!u(a)&&(r[e]=a)})),e[i]=void 0,r}}return t};return n(t,0)},it=s("AsyncFunction"),rt=t=>t&&(g(t)||v(t))&&v(t.then)&&v(t.catch),at={isArray:l,isArrayBuffer:d,isBuffer:h,isFormData:C,isArrayBufferView:f,isString:p,isNumber:m,isBoolean:y,isObject:g,isPlainObject:b,isUndefined:u,isDate:_,isFile:w,isBlob:k,isRegExp:W,isFunction:v,isStream:x,isURLSearchParams:D,isTypedArray:B,isFileList:S,forEach:O,merge:M,extend:R,trim:T,stripBOM:I,inherits:N,toFlatObject:$,kindOf:o,kindOfTest:s,endsWith:L,toArray:F,forEachEntry:j,matchAll:z,isHTMLForm:H,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:U,freezeMethods:Y,toObjectSet:q,toCamelCase:V,noop:X,toFiniteNumber:K,findKey:E,global:A,isContextDefined:P,ALPHABET:Q,generateString:tt,isSpecCompliantForm:et,toJSONObject:nt,isAsyncFn:it,isThenable:rt};function ot(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}at.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:at.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const st=ot.prototype,ct={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{ct[t]={value:t}})),Object.defineProperties(ot,ct),Object.defineProperty(st,"isAxiosError",{value:!0}),ot.from=(t,e,n,i,r,a)=>{const o=Object.create(st);return at.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ot.call(o,t.message,e,n,i,r),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const lt=ot,ut=null;function ht(t){return at.isPlainObject(t)||at.isArray(t)}function dt(t){return at.endsWith(t,"[]")?t.slice(0,-2):t}function ft(t,e,n){return t?t.concat(e).map((function(t,e){return t=dt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}function pt(t){return at.isArray(t)&&!t.some(ht)}const vt=at.toFlatObject(at,{},null,(function(t){return/^is[A-Z]/.test(t)}));function mt(t,e,n){if(!at.isObject(t))throw new TypeError("target must be an object");e=e||new(ut||FormData),n=at.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!at.isUndefined(e[t])}));const i=n.metaTokens,r=n.visitor||u,a=n.dots,o=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,c=s&&at.isSpecCompliantForm(e);if(!at.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(at.isDate(t))return t.toISOString();if(!c&&at.isBlob(t))throw new lt("Blob is not supported. Use a Buffer instead.");return at.isArrayBuffer(t)||at.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,r){let s=t;if(t&&!r&&"object"===typeof t)if(at.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(at.isArray(t)&&pt(t)||(at.isFileList(t)||at.endsWith(n,"[]"))&&(s=at.toArray(t)))return n=dt(n),s.forEach((function(t,i){!at.isUndefined(t)&&null!==t&&e.append(!0===o?ft([n],i,a):null===o?n:n+"[]",l(t))})),!1;return!!ht(t)||(e.append(ft(r,n,a),l(t)),!1)}const h=[],d=Object.assign(vt,{defaultVisitor:u,convertValue:l,isVisitable:ht});function f(t,n){if(!at.isUndefined(t)){if(-1!==h.indexOf(t))throw Error("Circular reference detected in "+n.join("."));h.push(t),at.forEach(t,(function(t,i){const a=!(at.isUndefined(t)||null===t)&&r.call(e,t,at.isString(i)?i.trim():i,n,d);!0===a&&f(t,n?n.concat(i):[i])})),h.pop()}}if(!at.isObject(t))throw new TypeError("data must be an object");return f(t),e}const gt=mt;function yt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function bt(t,e){this._pairs=[],t&&gt(t,this,e)}const _t=bt.prototype;_t.append=function(t,e){this._pairs.push([t,e])},_t.toString=function(t){const e=t?function(e){return t.call(this,e,yt)}:yt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const wt=bt;function kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function St(t,e,n){if(!e)return t;const i=n&&n.encode||kt,r=n&&n.serialize;let a;if(a=r?r(e,n):at.isURLSearchParams(e)?e.toString():new wt(e,n).toString(i),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}class xt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){at.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Ct=xt,Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt="undefined"!==typeof URLSearchParams?URLSearchParams:wt,Ot="undefined"!==typeof FormData?FormData:null,Et="undefined"!==typeof Blob?Blob:null,At=(()=>{let t;return("undefined"===typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!==typeof window&&"undefined"!==typeof document)})(),Pt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Mt={isBrowser:!0,classes:{URLSearchParams:Tt,FormData:Ot,Blob:Et},isStandardBrowserEnv:At,isStandardBrowserWebWorkerEnv:Pt,protocols:["http","https","file","blob","url","data"]};function Rt(t,e){return gt(t,new Mt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return Mt.isNode&&at.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function It(t){return at.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function Nt(t){const e={},n=Object.keys(t);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],e[a]=t[a];return e}function $t(t){function e(t,n,i,r){let a=t[r++];const o=Number.isFinite(+a),s=r>=t.length;if(a=!a&&at.isArray(i)?i.length:a,s)return at.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o;i[a]&&at.isObject(i[a])||(i[a]=[]);const c=e(t,n,i[a],r);return c&&at.isArray(i[a])&&(i[a]=Nt(i[a])),!o}if(at.isFormData(t)&&at.isFunction(t.entries)){const n={};return at.forEachEntry(t,((t,i)=>{e(It(t),i,n,0)})),n}return null}const Lt=$t;function Ft(t,e,n){if(at.isString(t))try{return(e||JSON.parse)(t),at.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}const Bt={transitional:Dt,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=at.isObject(t);r&&at.isHTMLForm(t)&&(t=new FormData(t));const a=at.isFormData(t);if(a)return i&&i?JSON.stringify(Lt(t)):t;if(at.isArrayBuffer(t)||at.isBuffer(t)||at.isStream(t)||at.isFile(t)||at.isBlob(t))return t;if(at.isArrayBufferView(t))return t.buffer;if(at.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Rt(t,this.formSerializer).toString();if((o=at.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return gt(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),Ft(t)):t}],transformResponse:[function(t){const e=this.transitional||Bt.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(t&&at.isString(t)&&(n&&!this.responseType||i)){const n=e&&e.silentJSONParsing,a=!n&&i;try{return JSON.parse(t)}catch(r){if(a){if("SyntaxError"===r.name)throw lt.from(r,lt.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mt.classes.FormData,Blob:Mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};at.forEach(["delete","get","head","post","put","patch"],(t=>{Bt.headers[t]={}}));const jt=Bt,zt=at.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ht=t=>{const e={};let n,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!n||e[n]&&zt[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e},Vt=Symbol("internals");function Gt(t){return t&&String(t).trim().toLowerCase()}function Wt(t){return!1===t||null==t?t:at.isArray(t)?t.map(Wt):String(t)}function Ut(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(t))e[i[1]]=i[2];return e}const Yt=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function qt(t,e,n,i,r){return at.isFunction(i)?i.call(this,e,n):(r&&(e=n),at.isString(e)?at.isString(i)?-1!==e.indexOf(i):at.isRegExp(i)?i.test(e):void 0:void 0)}function Xt(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}function Kt(t,e){const n=at.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+n,{value:function(t,n,r){return this[i].call(this,e,t,n,r)},configurable:!0})}))}class Jt{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function r(t,e,n){const r=Gt(e);if(!r)throw new Error("header name must be a non-empty string");const a=at.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||e]=Wt(t))}const a=(t,e)=>at.forEach(t,((t,n)=>r(t,n,e)));return at.isPlainObject(t)||t instanceof this.constructor?a(t,e):at.isString(t)&&(t=t.trim())&&!Yt(t)?a(Ht(t),e):null!=t&&r(e,t,n),this}get(t,e){if(t=Gt(t),t){const n=at.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return Ut(t);if(at.isFunction(e))return e.call(this,t,n);if(at.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Gt(t),t){const n=at.findKey(this,t);return!(!n||void 0===this[n]||e&&!qt(this,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function r(t){if(t=Gt(t),t){const r=at.findKey(n,t);!r||e&&!qt(n,n[r],r,e)||(delete n[r],i=!0)}}return at.isArray(t)?t.forEach(r):r(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;while(n--){const r=e[n];t&&!qt(this,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const e=this,n={};return at.forEach(this,((i,r)=>{const a=at.findKey(n,r);if(a)return e[a]=Wt(i),void delete e[r];const o=t?Xt(r):String(r).trim();o!==r&&delete e[r],e[o]=Wt(i),n[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return at.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&at.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=this[Vt]=this[Vt]={accessors:{}},n=e.accessors,i=this.prototype;function r(t){const e=Gt(t);n[e]||(Kt(i,t),n[e]=!0)}return at.isArray(t)?t.forEach(r):r(t),this}}Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),at.reduceDescriptors(Jt.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),at.freezeMethods(Jt);const Zt=Jt;function Qt(t,e){const n=this||jt,i=e||n,r=Zt.from(i.headers);let a=i.data;return at.forEach(t,(function(t){a=t.call(n,a,r.normalize(),e?e.status:void 0)})),r.normalize(),a}function te(t){return!(!t||!t.__CANCEL__)}function ee(t,e,n){lt.call(this,null==t?"canceled":t,lt.ERR_CANCELED,e,n),this.name="CanceledError"}at.inherits(ee,lt,{__CANCEL__:!0});const ne=ee;function ie(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new lt("Request failed with status code "+n.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const re=Mt.isStandardBrowserEnv?function(){return{write:function(t,e,n,i,r,a){const o=[];o.push(t+"="+encodeURIComponent(e)),at.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),at.isString(i)&&o.push("path="+i),at.isString(r)&&o.push("domain="+r),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ae(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function oe(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function se(t,e){return t&&!ae(e)?oe(t,e):e}const ce=Mt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(n){let i=n;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(t){const e=at.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return function(){return!0}}();function le(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ue(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r,a=0,o=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),l=i[o];r||(r=c),n[a]=s,i[a]=c;let u=o,h=0;while(u!==a)h+=n[u++],u%=t;if(a=(a+1)%t,a===o&&(o=(o+1)%t),c-r<e)return;const d=l&&c-l;return d?Math.round(1e3*h/d):void 0}}const he=ue;function de(t,e){let n=0;const i=he(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,c=i(s),l=a<=o;n=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:r};u[e?"download":"upload"]=!0,t(u)}}const fe="undefined"!==typeof XMLHttpRequest,pe=fe&&function(t){return new Promise((function(e,n){let i=t.data;const r=Zt.from(t.headers).normalize(),a=t.responseType;let o,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}at.isFormData(i)&&(Mt.isStandardBrowserEnv||Mt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.getContentType(/^\s*multipart\/form-data/)?at.isString(s=r.getContentType())&&r.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):r.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(e+":"+n))}const u=se(t.baseURL,t.url);function h(){if(!l)return;const i=Zt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),r=a&&"text"!==a&&"json"!==a?l.response:l.responseText,o={data:r,status:l.status,statusText:l.statusText,headers:i,config:t,request:l};ie((function(t){e(t),c()}),(function(t){n(t),c()}),o),l=null}if(l.open(t.method.toUpperCase(),St(u,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(new lt("Request aborted",lt.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new lt("Network Error",lt.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const i=t.transitional||Dt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new lt(e,i.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,t,l)),l=null},Mt.isStandardBrowserEnv){const e=ce(u)&&t.xsrfCookieName&&re.read(t.xsrfCookieName);e&&r.set(t.xsrfHeaderName,e)}void 0===i&&r.setContentType(null),"setRequestHeader"in l&&at.forEach(r.toJSON(),(function(t,e){l.setRequestHeader(e,t)})),at.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&l.addEventListener("progress",de(t.onDownloadProgress,!0)),"function"===typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",de(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=e=>{l&&(n(!e||e.type?new ne(null,t,l):e),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const d=le(u);d&&-1===Mt.protocols.indexOf(d)?n(new lt("Unsupported protocol "+d+":",lt.ERR_BAD_REQUEST,t)):l.send(i||null)}))},ve={http:ut,xhr:pe};at.forEach(ve,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}}));const me=t=>`- ${t}`,ge=t=>at.isFunction(t)||null===t||!1===t,ye={getAdapter:t=>{t=at.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let a=0;a<e;a++){let e;if(n=t[a],i=n,!ge(n)&&(i=ve[(e=String(n)).toLowerCase()],void 0===i))throw new lt(`Unknown adapter '${e}'`);if(i)break;r[e||"#"+a]=i}if(!i){const t=Object.entries(r).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(me).join("\n"):" "+me(t[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:ve};function be(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ne(null,t)}function _e(t){be(t),t.headers=Zt.from(t.headers),t.data=Qt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=ye.getAdapter(t.adapter||jt.adapter);return e(t).then((function(e){return be(t),e.data=Qt.call(t,t.transformResponse,e),e.headers=Zt.from(e.headers),e}),(function(e){return te(e)||(be(t),e&&e.response&&(e.response.data=Qt.call(t,t.transformResponse,e.response),e.response.headers=Zt.from(e.response.headers))),Promise.reject(e)}))}const we=t=>t instanceof Zt?t.toJSON():t;function ke(t,e){e=e||{};const n={};function i(t,e,n){return at.isPlainObject(t)&&at.isPlainObject(e)?at.merge.call({caseless:n},t,e):at.isPlainObject(e)?at.merge({},e):at.isArray(e)?e.slice():e}function r(t,e,n){return at.isUndefined(e)?at.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function a(t,e){if(!at.isUndefined(e))return i(void 0,e)}function o(t,e){return at.isUndefined(e)?at.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function s(n,r,a){return a in e?i(n,r):a in t?i(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(t,e)=>r(we(t),we(e),!0)};return at.forEach(Object.keys(Object.assign({},t,e)),(function(i){const a=c[i]||r,o=a(t[i],e[i],i);at.isUndefined(o)&&a!==s||(n[i]=o)})),n}const Se="1.6.0",xe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{xe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Ce={};function De(t,e,n){if("object"!==typeof t)throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;while(r-- >0){const a=i[r],o=e[a];if(o){const e=t[a],n=void 0===e||o(e,a,t);if(!0!==n)throw new lt("option "+a+" must be "+n,lt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new lt("Unknown option "+a,lt.ERR_BAD_OPTION)}}xe.transitional=function(t,e,n){function i(t,e){return"[Axios v"+Se+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,a)=>{if(!1===t)throw new lt(i(r," has been removed"+(e?" in "+e:"")),lt.ERR_DEPRECATED);return e&&!Ce[r]&&(Ce[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}};const Te={assertOptions:De,validators:xe},Oe=Te.validators;class Ee{constructor(t){this.defaults=t,this.interceptors={request:new Ct,response:new Ct}}request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=ke(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:r}=e;void 0!==n&&Te.assertOptions(n,{silentJSONParsing:Oe.transitional(Oe.boolean),forcedJSONParsing:Oe.transitional(Oe.boolean),clarifyTimeoutError:Oe.transitional(Oe.boolean)},!1),null!=i&&(at.isFunction(i)?e.paramsSerializer={serialize:i}:Te.assertOptions(i,{encode:Oe.function,serialize:Oe.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=r&&at.merge(r.common,r[e.method]);r&&at.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=Zt.concat(a,r);const o=[];let s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let u,h=0;if(!s){const t=[_e.bind(this),void 0];t.unshift.apply(t,o),t.push.apply(t,c),u=t.length,l=Promise.resolve(e);while(h<u)l=l.then(t[h++],t[h++]);return l}u=o.length;let d=e;h=0;while(h<u){const t=o[h++],e=o[h++];try{d=t(d)}catch(f){e.call(this,f);break}}try{l=_e.call(this,d)}catch(f){return Promise.reject(f)}h=0,u=c.length;while(h<u)l=l.then(c[h++],c[h++]);return l}getUri(t){t=ke(this.defaults,t);const e=se(t.baseURL,t.url);return St(e,t.params,t.paramsSerializer)}}at.forEach(["delete","get","head","options"],(function(t){Ee.prototype[t]=function(e,n){return this.request(ke(n||{},{method:t,url:e,data:(n||{}).data}))}})),at.forEach(["post","put","patch"],(function(t){function e(e){return function(n,i,r){return this.request(ke(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ee.prototype[t]=e(),Ee.prototype[t+"Form"]=e(!0)}));const Ae=Ee;class Pe{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t,i,r){n.reason||(n.reason=new ne(t,i,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new Pe((function(e){t=e}));return{token:e,cancel:t}}}const Me=Pe;function Re(t){return function(e){return t.apply(null,e)}}function Ie(t){return at.isObject(t)&&!0===t.isAxiosError}const Ne={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ne).forEach((([t,e])=>{Ne[e]=t}));const $e=Ne;function Le(t){const e=new Ae(t),n=i(Ae.prototype.request,e);return at.extend(n,Ae.prototype,e,{allOwnKeys:!0}),at.extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return Le(ke(t,e))},n}const Fe=Le(jt);Fe.Axios=Ae,Fe.CanceledError=ne,Fe.CancelToken=Me,Fe.isCancel=te,Fe.VERSION=Se,Fe.toFormData=gt,Fe.AxiosError=lt,Fe.Cancel=Fe.CanceledError,Fe.all=function(t){return Promise.all(t)},Fe.spread=Re,Fe.isAxiosError=Ie,Fe.mergeConfig=ke,Fe.AxiosHeaders=Zt,Fe.formToJSON=t=>Lt(at.isHTMLForm(t)?new FormData(t):t),Fe.getAdapter=ye.getAdapter,Fe.HttpStatusCode=$e,Fe.default=Fe;const Be=Fe},794:(t,e,n)=>{"use strict";n.d(e,{Z:()=>S});var i=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,a=Math.floor,o="[BigNumber Error] ",s=o+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,u=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,f=1e9;function p(t){var e,n,k,S=L.prototype={constructor:L,toString:null,valueOf:null},x=new L(1),C=20,D=4,T=-7,O=21,E=-1e7,A=1e7,P=!1,M=1,R=0,I={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},N="0123456789abcdefghijklmnopqrstuvwxyz",$=!0;function L(t,e){var r,o,c,h,d,f,p,v,m=this;if(!(m instanceof L))return new L(t,e);if(null==e){if(t&&!0===t._isBigNumber)return m.s=t.s,void(!t.c||t.e>A?m.c=m.e=null:t.e<E?m.c=[m.e=0]:(m.e=t.e,m.c=t.c.slice()));if((f="number"==typeof t)&&0*t==0){if(m.s=1/t<0?(t=-t,-1):1,t===~~t){for(h=0,d=t;d>=10;d/=10,h++);return void(h>A?m.c=m.e=null:(m.e=h,m.c=[t]))}v=String(t)}else{if(!i.test(v=String(t)))return k(m,v,f);m.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(h=v.indexOf("."))>-1&&(v=v.replace(".","")),(d=v.search(/e/i))>0?(h<0&&(h=d),h+=+v.slice(d+1),v=v.substring(0,d)):h<0&&(h=v.length)}else{if(y(e,2,N.length,"Base"),10==e&&$)return m=new L(t),z(m,C+m.e+1,D);if(v=String(t),f="number"==typeof t){if(0*t!=0)return k(m,v,f,e);if(m.s=1/t<0?(v=v.slice(1),-1):1,L.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(s+t)}else m.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(r=N.slice(0,e),h=d=0,p=v.length;d<p;d++)if(r.indexOf(o=v.charAt(d))<0){if("."==o){if(d>h){h=p;continue}}else if(!c&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){c=!0,d=-1,h=0;continue}return k(m,String(t),f,e)}f=!1,v=n(v,e,10,m.s),(h=v.indexOf("."))>-1?v=v.replace(".",""):h=v.length}for(d=0;48===v.charCodeAt(d);d++);for(p=v.length;48===v.charCodeAt(--p););if(v=v.slice(d,++p)){if(p-=d,f&&L.DEBUG&&p>15&&(t>u||t!==a(t)))throw Error(s+m.s*t);if((h=h-d-1)>A)m.c=m.e=null;else if(h<E)m.c=[m.e=0];else{if(m.e=h,m.c=[],d=(h+1)%l,h<0&&(d+=l),d<p){for(d&&m.c.push(+v.slice(0,d)),p-=l;d<p;)m.c.push(+v.slice(d,d+=l));d=l-(v=v.slice(d)).length}else d-=p;for(;d--;v+="0");m.c.push(+v)}}else m.c=[m.e=0]}function F(t,e,n,i){var r,a,o,s,c;if(null==n?n=D:y(n,0,8),!t.c)return t.toString();if(r=t.c[0],o=t.e,null==e)c=m(t.c),c=1==i||2==i&&(o<=T||o>=O)?_(c,o):w(c,o,"0");else if(t=z(new L(t),e,n),a=t.e,c=m(t.c),s=c.length,1==i||2==i&&(e<=a||a<=T)){for(;s<e;c+="0",s++);c=_(c,a)}else if(e-=o,c=w(c,a,"0"),a+1>s){if(--e>0)for(c+=".";e--;c+="0");}else if(e+=a-s,e>0)for(a+1==s&&(c+=".");e--;c+="0");return t.s<0&&r?"-"+c:c}function B(t,e){for(var n,i=1,r=new L(t[0]);i<t.length;i++){if(n=new L(t[i]),!n.s){r=n;break}e.call(r,n)&&(r=n)}return r}function j(t,e,n){for(var i=1,r=e.length;!e[--r];e.pop());for(r=e[0];r>=10;r/=10,i++);return(n=i+n*l-1)>A?t.c=t.e=null:n<E?t.c=[t.e=0]:(t.e=n,t.c=e),t}function z(t,e,n,i){var o,s,u,d,f,p,v,m=t.c,g=h;if(m){t:{for(o=1,d=m[0];d>=10;d/=10,o++);if(s=e-o,s<0)s+=l,u=e,f=m[p=0],v=f/g[o-u-1]%10|0;else if(p=r((s+1)/l),p>=m.length){if(!i)break t;for(;m.length<=p;m.push(0));f=v=0,o=1,s%=l,u=s-l+1}else{for(f=d=m[p],o=1;d>=10;d/=10,o++);s%=l,u=s-l+o,v=u<0?0:f/g[o-u-1]%10|0}if(i=i||e<0||null!=m[p+1]||(u<0?f:f%g[o-u-1]),i=n<4?(v||i)&&(0==n||n==(t.s<0?3:2)):v>5||5==v&&(4==n||i||6==n&&(s>0?u>0?f/g[o-u]:0:m[p-1])%10&1||n==(t.s<0?8:7)),e<1||!m[0])return m.length=0,i?(e-=t.e+1,m[0]=g[(l-e%l)%l],t.e=-e||0):m[0]=t.e=0,t;if(0==s?(m.length=p,d=1,p--):(m.length=p+1,d=g[l-s],m[p]=u>0?a(f/g[o-u]%g[u])*d:0),i)for(;;){if(0==p){for(s=1,u=m[0];u>=10;u/=10,s++);for(u=m[0]+=d,d=1;u>=10;u/=10,d++);s!=d&&(t.e++,m[0]==c&&(m[0]=1));break}if(m[p]+=d,m[p]!=c)break;m[p--]=0,d=1}for(s=m.length;0===m[--s];m.pop());}t.e>A?t.c=t.e=null:t.e<E&&(t.c=[t.e=0])}return t}function H(t){var e,n=t.e;return null===n?t.toString():(e=m(t.c),e=n<=T||n>=O?_(e,n):w(e,n,"0"),t.s<0?"-"+e:e)}return L.clone=p,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(o+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(n=t[e],y(n,0,f,e),C=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(n=t[e],y(n,0,8,e),D=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&(n=t[e],n&&n.pop?(y(n[0],-f,0,e),y(n[1],0,f,e),T=n[0],O=n[1]):(y(n,-f,f,e),T=-(O=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if(n=t[e],n&&n.pop)y(n[0],-f,-1,e),y(n[1],1,f,e),E=n[0],A=n[1];else{if(y(n,-f,f,e),!n)throw Error(o+e+" cannot be zero: "+n);E=-(A=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if(n=t[e],n!==!!n)throw Error(o+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!n,Error(o+"crypto unavailable");P=n}else P=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(n=t[e],y(n,0,9,e),M=n),t.hasOwnProperty(e="POW_PRECISION")&&(n=t[e],y(n,0,f,e),R=n),t.hasOwnProperty(e="FORMAT")){if(n=t[e],"object"!=typeof n)throw Error(o+e+" not an object: "+n);I=n}if(t.hasOwnProperty(e="ALPHABET")){if(n=t[e],"string"!=typeof n||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(o+e+" invalid: "+n);$="0123456789"==n.slice(0,10),N=n}}return{DECIMAL_PLACES:C,ROUNDING_MODE:D,EXPONENTIAL_AT:[T,O],RANGE:[E,A],CRYPTO:P,MODULO_MODE:M,POW_PRECISION:R,FORMAT:I,ALPHABET:N}},L.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!L.DEBUG)return!0;var e,n,i=t.c,r=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(i)){if((1===s||-1===s)&&r>=-f&&r<=f&&r===a(r)){if(0===i[0]){if(0===r&&1===i.length)return!0;break t}if(e=(r+1)%l,e<1&&(e+=l),String(i[0]).length==e){for(e=0;e<i.length;e++)if(n=i[e],n<0||n>=c||n!==a(n))break t;if(0!==n)return!0}}}else if(null===i&&null===r&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+t)},L.maximum=L.max=function(){return B(arguments,S.lt)},L.minimum=L.min=function(){return B(arguments,S.gt)},L.random=function(){var t=9007199254740992,e=Math.random()*t&2097151?function(){return a(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,i,s,c,u,d=0,p=[],v=new L(x);if(null==t?t=C:y(t,0,f),c=r(t/l),P)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(c*=2));d<c;)u=131072*n[d]+(n[d+1]>>>11),u>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),n[d]=i[0],n[d+1]=i[1]):(p.push(u%1e14),d+=2);d=c/2}else{if(!crypto.randomBytes)throw P=!1,Error(o+"crypto unavailable");for(n=crypto.randomBytes(c*=7);d<c;)u=281474976710656*(31&n[d])+1099511627776*n[d+1]+4294967296*n[d+2]+16777216*n[d+3]+(n[d+4]<<16)+(n[d+5]<<8)+n[d+6],u>=9e15?crypto.randomBytes(7).copy(n,d):(p.push(u%1e14),d+=7);d=c/7}if(!P)for(;d<c;)u=e(),u<9e15&&(p[d++]=u%1e14);for(c=p[--d],t%=l,c&&t&&(u=h[l-t],p[d]=a(c/u)*u);0===p[d];p.pop(),d--);if(d<0)p=[s=0];else{for(s=-1;0===p[0];p.splice(0,1),s-=l);for(d=1,u=p[0];u>=10;u/=10,d++);d<l&&(s-=l-d)}return v.e=s,v.c=p,v}}(),L.sum=function(){for(var t=1,e=arguments,n=new L(e[0]);t<e.length;)n=n.plus(e[t++]);return n},n=function(){var t="0123456789";function n(t,e,n,i){for(var r,a,o=[0],s=0,c=t.length;s<c;){for(a=o.length;a--;o[a]*=e);for(o[0]+=i.indexOf(t.charAt(s++)),r=0;r<o.length;r++)o[r]>n-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}return function(i,r,a,o,s){var c,l,u,h,d,f,p,v,g=i.indexOf("."),y=C,b=D;for(g>=0&&(h=R,R=0,i=i.replace(".",""),v=new L(r),f=v.pow(i.length-g),R=h,v.c=n(w(m(f.c),f.e,"0"),10,a,t),v.e=v.c.length),p=n(i,r,a,s?(c=N,t):(c=t,N)),u=h=p.length;0==p[--h];p.pop());if(!p[0])return c.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=o,f=e(f,v,y,b,a),p=f.c,d=f.r,u=f.e),l=u+y+1,g=p[l],h=a/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])i=d?w(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=l,d)for(--a;++p[--l]>a;)p[l]=0,l||(++u,p=[1].concat(p));for(h=p.length;!p[--h];);for(g=0,i="";g<=h;i+=c.charAt(p[g++]));i=w(i,u,c.charAt(0))}return i}}(),e=function(){function t(t,e,n){var i,r,a,o,s=0,c=t.length,l=e%d,u=e/d|0;for(t=t.slice();c--;)a=t[c]%d,o=t[c]/d|0,i=u*a+o*l,r=l*a+i%d*d+s,s=(r/n|0)+(i/d|0)+u*o,t[c]=r%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,i){var r,a;if(n!=i)a=n>i?1:-1;else for(r=a=0;r<n;r++)if(t[r]!=e[r]){a=t[r]>e[r]?1:-1;break}return a}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(i,r,o,s,u){var h,d,f,p,m,g,y,b,_,w,k,S,x,C,D,T,O,E=i.s==r.s?1:-1,A=i.c,P=r.c;if(!A||!A[0]||!P||!P[0])return new L(i.s&&r.s&&(A?!P||A[0]!=P[0]:P)?A&&0==A[0]||!P?0*E:E/0:NaN);for(b=new L(E),_=b.c=[],d=i.e-r.e,E=o+d+1,u||(u=c,d=v(i.e/l)-v(r.e/l),E=E/l|0),f=0;P[f]==(A[f]||0);f++);if(P[f]>(A[f]||0)&&d--,E<0)_.push(1),p=!0;else{for(C=A.length,T=P.length,f=0,E+=2,m=a(u/(P[0]+1)),m>1&&(P=t(P,m,u),A=t(A,m,u),T=P.length,C=A.length),x=T,w=A.slice(0,T),k=w.length;k<T;w[k++]=0);O=P.slice(),O=[0].concat(O),D=P[0],P[1]>=u/2&&D++;do{if(m=0,h=e(P,w,T,k),h<0){if(S=w[0],T!=k&&(S=S*u+(w[1]||0)),m=a(S/D),m>1){m>=u&&(m=u-1),g=t(P,m,u),y=g.length,k=w.length;while(1==e(g,w,y,k))m--,n(g,T<y?O:P,y,u),y=g.length,h=1}else 0==m&&(h=m=1),g=P.slice(),y=g.length;if(y<k&&(g=[0].concat(g)),n(w,g,k,u),k=w.length,-1==h)while(e(P,w,T,k)<1)m++,n(w,T<k?O:P,k,u),k=w.length}else 0===h&&(m++,w=[0]);_[f++]=m,w[0]?w[k++]=A[x]||0:(w=[A[x]],k=1)}while((x++<C||null!=w[0])&&E--);p=null!=w[0],_[0]||_.splice(0,1)}if(u==c){for(f=1,E=_[0];E>=10;E/=10,f++);z(b,o+(b.e=f+d*l-1)+1,s,p)}else b.e=d,b.r=+p;return b}}(),k=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,r=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,c,l){var u,h=c?s:s.replace(r,"");if(i.test(h))a.s=isNaN(h)?null:h<0?-1:1;else{if(!c&&(h=h.replace(t,(function(t,e,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=u?t:e})),l&&(u=l,h=h.replace(e,"$1").replace(n,"0.$1")),s!=h))return new L(h,u);if(L.DEBUG)throw Error(o+"Not a"+(l?" base "+l:"")+" number: "+s);a.s=null}a.c=a.e=null}}(),S.absoluteValue=S.abs=function(){var t=new L(this);return t.s<0&&(t.s=1),t},S.comparedTo=function(t,e){return g(this,new L(t,e))},S.decimalPlaces=S.dp=function(t,e){var n,i,r,a=this;if(null!=t)return y(t,0,f),null==e?e=D:y(e,0,8),z(new L(a),t+a.e+1,e);if(!(n=a.c))return null;if(i=((r=n.length-1)-v(this.e/l))*l,r=n[r])for(;r%10==0;r/=10,i--);return i<0&&(i=0),i},S.dividedBy=S.div=function(t,n){return e(this,new L(t,n),C,D)},S.dividedToIntegerBy=S.idiv=function(t,n){return e(this,new L(t,n),0,1)},S.exponentiatedBy=S.pow=function(t,e){var n,i,s,c,u,h,d,f,p,v=this;if(t=new L(t),t.c&&!t.isInteger())throw Error(o+"Exponent not an integer: "+H(t));if(null!=e&&(e=new L(e)),h=t.e>14,!v.c||!v.c[0]||1==v.c[0]&&!v.e&&1==v.c.length||!t.c||!t.c[0])return p=new L(Math.pow(+H(v),h?2-b(t):+H(t))),e?p.mod(e):p;if(d=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new L(NaN);i=!d&&v.isInteger()&&e.isInteger(),i&&(v=v.mod(e))}else{if(t.e>9&&(v.e>0||v.e<-1||(0==v.e?v.c[0]>1||h&&v.c[1]>=24e7:v.c[0]<8e13||h&&v.c[0]<=9999975e7)))return c=v.s<0&&b(t)?-0:0,v.e>-1&&(c=1/c),new L(d?1/c:c);R&&(c=r(R/l+2))}for(h?(n=new L(.5),d&&(t.s=1),f=b(t)):(s=Math.abs(+H(t)),f=s%2),p=new L(x);;){if(f){if(p=p.times(v),!p.c)break;c?p.c.length>c&&(p.c.length=c):i&&(p=p.mod(e))}if(s){if(s=a(s/2),0===s)break;f=s%2}else if(t=t.times(n),z(t,t.e+1,1),t.e>14)f=b(t);else{if(s=+H(t),0===s)break;f=s%2}v=v.times(v),c?v.c&&v.c.length>c&&(v.c.length=c):i&&(v=v.mod(e))}return i?p:(d&&(p=x.div(p)),e?p.mod(e):c?z(p,R,D,u):p)},S.integerValue=function(t){var e=new L(this);return null==t?t=D:y(t,0,8),z(e,e.e+1,t)},S.isEqualTo=S.eq=function(t,e){return 0===g(this,new L(t,e))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(t,e){return g(this,new L(t,e))>0},S.isGreaterThanOrEqualTo=S.gte=function(t,e){return 1===(e=g(this,new L(t,e)))||0===e},S.isInteger=function(){return!!this.c&&v(this.e/l)>this.c.length-2},S.isLessThan=S.lt=function(t,e){return g(this,new L(t,e))<0},S.isLessThanOrEqualTo=S.lte=function(t,e){return-1===(e=g(this,new L(t,e)))||0===e},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(t,e){var n,i,r,a,o=this,s=o.s;if(t=new L(t,e),e=t.s,!s||!e)return new L(NaN);if(s!=e)return t.s=-e,o.plus(t);var u=o.e/l,h=t.e/l,d=o.c,f=t.c;if(!u||!h){if(!d||!f)return d?(t.s=-e,t):new L(f?o:NaN);if(!d[0]||!f[0])return f[0]?(t.s=-e,t):new L(d[0]?o:3==D?-0:0)}if(u=v(u),h=v(h),d=d.slice(),s=u-h){for((a=s<0)?(s=-s,r=d):(h=u,r=f),r.reverse(),e=s;e--;r.push(0));r.reverse()}else for(i=(a=(s=d.length)<(e=f.length))?s:e,s=e=0;e<i;e++)if(d[e]!=f[e]){a=d[e]<f[e];break}if(a&&(r=d,d=f,f=r,t.s=-t.s),e=(i=f.length)-(n=d.length),e>0)for(;e--;d[n++]=0);for(e=c-1;i>s;){if(d[--i]<f[i]){for(n=i;n&&!d[--n];d[n]=e);--d[n],d[i]+=c}d[i]-=f[i]}for(;0==d[0];d.splice(0,1),--h);return d[0]?j(t,d,h):(t.s=3==D?-1:1,t.c=[t.e=0],t)},S.modulo=S.mod=function(t,n){var i,r,a=this;return t=new L(t,n),!a.c||!t.s||t.c&&!t.c[0]?new L(NaN):!t.c||a.c&&!a.c[0]?new L(a):(9==M?(r=t.s,t.s=1,i=e(a,t,0,3),t.s=r,i.s*=r):i=e(a,t,0,M),t=a.minus(i.times(t)),t.c[0]||1!=M||(t.s=a.s),t)},S.multipliedBy=S.times=function(t,e){var n,i,r,a,o,s,u,h,f,p,m,g,y,b,_,w=this,k=w.c,S=(t=new L(t,e)).c;if(!k||!S||!k[0]||!S[0])return!w.s||!t.s||k&&!k[0]&&!S||S&&!S[0]&&!k?t.c=t.e=t.s=null:(t.s*=w.s,k&&S?(t.c=[0],t.e=0):t.c=t.e=null),t;for(i=v(w.e/l)+v(t.e/l),t.s*=w.s,u=k.length,p=S.length,u<p&&(y=k,k=S,S=y,r=u,u=p,p=r),r=u+p,y=[];r--;y.push(0));for(b=c,_=d,r=p;--r>=0;){for(n=0,m=S[r]%_,g=S[r]/_|0,o=u,a=r+o;a>r;)h=k[--o]%_,f=k[o]/_|0,s=g*h+f*m,h=m*h+s%_*_+y[a]+n,n=(h/b|0)+(s/_|0)+g*f,y[a--]=h%b;y[a]=n}return n?++i:y.splice(0,1),j(t,y,i)},S.negated=function(){var t=new L(this);return t.s=-t.s||null,t},S.plus=function(t,e){var n,i=this,r=i.s;if(t=new L(t,e),e=t.s,!r||!e)return new L(NaN);if(r!=e)return t.s=-e,i.minus(t);var a=i.e/l,o=t.e/l,s=i.c,u=t.c;if(!a||!o){if(!s||!u)return new L(r/0);if(!s[0]||!u[0])return u[0]?t:new L(s[0]?i:0*r)}if(a=v(a),o=v(o),s=s.slice(),r=a-o){for(r>0?(o=a,n=u):(r=-r,n=s),n.reverse();r--;n.push(0));n.reverse()}for(r=s.length,e=u.length,r-e<0&&(n=u,u=s,s=n,e=r),r=0;e;)r=(s[--e]=s[e]+u[e]+r)/c|0,s[e]=c===s[e]?0:s[e]%c;return r&&(s=[r].concat(s),++o),j(t,s,o)},S.precision=S.sd=function(t,e){var n,i,r,a=this;if(null!=t&&t!==!!t)return y(t,1,f),null==e?e=D:y(e,0,8),z(new L(a),t,e);if(!(n=a.c))return null;if(r=n.length-1,i=r*l+1,r=n[r]){for(;r%10==0;r/=10,i--);for(r=n[0];r>=10;r/=10,i++);}return t&&a.e+1>i&&(i=a.e+1),i},S.shiftedBy=function(t){return y(t,-u,u),this.times("1e"+t)},S.squareRoot=S.sqrt=function(){var t,n,i,r,a,o=this,s=o.c,c=o.s,l=o.e,u=C+4,h=new L("0.5");if(1!==c||!s||!s[0])return new L(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(c=Math.sqrt(+H(o)),0==c||c==1/0?(n=m(s),(n.length+l)%2==0&&(n+="0"),c=Math.sqrt(+n),l=v((l+1)/2)-(l<0||l%2),c==1/0?n="5e"+l:(n=c.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),i=new L(n)):i=new L(c+""),i.c[0])for(l=i.e,c=l+u,c<3&&(c=0);;)if(a=i,i=h.times(a.plus(e(o,a,u,1))),m(a.c).slice(0,c)===(n=m(i.c)).slice(0,c)){if(i.e<l&&--c,n=n.slice(c-3,c+1),"9999"!=n&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(z(i,i.e+C+2,1),t=!i.times(i).eq(o));break}if(!r&&(z(a,a.e+C+2,0),a.times(a).eq(o))){i=a;break}u+=4,c+=4,r=1}return z(i,i.e+C+1,D,t)},S.toExponential=function(t,e){return null!=t&&(y(t,0,f),t++),F(this,t,e,1)},S.toFixed=function(t,e){return null!=t&&(y(t,0,f),t=t+this.e+1),F(this,t,e)},S.toFormat=function(t,e,n){var i,r=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=I;else if("object"!=typeof n)throw Error(o+"Argument not an object: "+n);if(i=r.toFixed(t,e),r.c){var a,s=i.split("."),c=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",h=s[0],d=s[1],f=r.s<0,p=f?h.slice(1):h,v=p.length;if(l&&(a=c,c=l,l=a,v-=a),c>0&&v>0){for(a=v%c||c,h=p.substr(0,a);a<v;a+=c)h+=u+p.substr(a,c);l>0&&(h+=u+p.slice(a)),f&&(h="-"+h)}i=d?h+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+i+(n.suffix||"")},S.toFraction=function(t){var n,i,r,a,s,c,u,d,f,p,v,g,y=this,b=y.c;if(null!=t&&(u=new L(t),!u.isInteger()&&(u.c||1!==u.s)||u.lt(x)))throw Error(o+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+H(u));if(!b)return new L(y);for(n=new L(x),f=i=new L(x),r=d=new L(x),g=m(b),s=n.e=g.length-y.e-1,n.c[0]=h[(c=s%l)<0?l+c:c],t=!t||u.comparedTo(n)>0?s>0?n:f:u,c=A,A=1/0,u=new L(g),d.c[0]=0;;){if(p=e(u,n,0,1),a=i.plus(p.times(r)),1==a.comparedTo(t))break;i=r,r=a,f=d.plus(p.times(a=f)),d=a,n=u.minus(p.times(a=n)),u=a}return a=e(t.minus(i),r,0,1),d=d.plus(a.times(f)),i=i.plus(a.times(r)),d.s=f.s=y.s,s*=2,v=e(f,r,s,D).minus(y).abs().comparedTo(e(d,i,s,D).minus(y).abs())<1?[f,r]:[d,i],A=c,v},S.toNumber=function(){return+H(this)},S.toPrecision=function(t,e){return null!=t&&y(t,1,f),F(this,t,e,2)},S.toString=function(t){var e,i=this,r=i.s,a=i.e;return null===a?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(null==t?e=a<=T||a>=O?_(m(i.c),a):w(m(i.c),a,"0"):10===t&&$?(i=z(new L(i),C+a+1,D),e=w(m(i.c),i.e,"0")):(y(t,2,N.length,"Base"),e=n(w(m(i.c),a,"0"),10,t,r,!0)),r<0&&i.c[0]&&(e="-"+e)),e},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,S[Symbol.toStringTag]="BigNumber",S[Symbol.for("nodejs.util.inspect.custom")]=S.valueOf,null!=t&&L.set(t),L}function v(t){var e=0|t;return t>0||t===e?e:e-1}function m(t){for(var e,n,i=1,r=t.length,a=t[0]+"";i<r;){for(e=t[i++]+"",n=l-e.length;n--;e="0"+e);a+=e}for(r=a.length;48===a.charCodeAt(--r););return a.slice(0,r+1||1)}function g(t,e){var n,i,r=t.c,a=e.c,o=t.s,s=e.s,c=t.e,l=e.e;if(!o||!s)return null;if(n=r&&!r[0],i=a&&!a[0],n||i)return n?i?0:-s:o;if(o!=s)return o;if(n=o<0,i=c==l,!r||!a)return i?0:!r^n?1:-1;if(!i)return c>l^n?1:-1;for(s=(c=r.length)<(l=a.length)?c:l,o=0;o<s;o++)if(r[o]!=a[o])return r[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function y(t,e,n,i){if(t<e||t>n||t!==a(t))throw Error(o+(i||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function b(t){var e=t.c.length-1;return v(t.e/l)==e&&t.c[e]%2!=0}function _(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function w(t,e,n){var i,r;if(e<0){for(r=n+".";++e;r+=n);t=r+t}else if(i=t.length,++e>i){for(r=n,e-=i;--e;r+=n);t+=r}else e<i&&(t=t.slice(0,e)+"."+t.slice(e));return t}var k=p();const S=k},649:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>rr});var i=Math.PI/180;function r(){return"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window))}const a="undefined"!==typeof global?global:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},o={_global:a,version:"8.3.13",isBrowser:r(),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle(t){return o.angleDeg?t*i:t},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return o["DD"].isDragging},isDragReady(){return!!o["DD"].node},document:a.document,_injectGlobal(t){a.Konva=t}},s=t=>{o[t.prototype.getClassName()]=t};o._injectGlobal(o);class c{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new c(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}}translate(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this}scale(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}rotate(t){var e=Math.cos(t),n=Math.sin(t),i=this.m[0]*e+this.m[2]*n,r=this.m[1]*e+this.m[3]*n,a=this.m[0]*-n+this.m[2]*e,o=this.m[1]*-n+this.m[3]*e;return this.m[0]=i,this.m[1]=r,this.m[2]=a,this.m[3]=o,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,e){var n=this.m[0]+this.m[2]*e,i=this.m[1]+this.m[3]*e,r=this.m[2]+this.m[0]*t,a=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=i,this.m[2]=r,this.m[3]=a,this}multiply(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],i=this.m[0]*t.m[2]+this.m[2]*t.m[3],r=this.m[1]*t.m[2]+this.m[3]*t.m[3],a=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],o=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=a,this.m[5]=o,this}invert(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,i=-this.m[2]*t,r=this.m[0]*t,a=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=i,this.m[3]=r,this.m[4]=a,this.m[5]=o,this}getMatrix(){return this.m}decompose(){var t=this.m[0],e=this.m[1],n=this.m[2],i=this.m[3],r=this.m[4],a=this.m[5],o=t*i-e*n;let s={x:r,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=e){var c=Math.sqrt(t*t+e*e);s.rotation=e>0?Math.acos(t/c):-Math.acos(t/c),s.scaleX=c,s.scaleY=o/c,s.skewX=(t*n+e*i)/o,s.skewY=0}else if(0!=n||0!=i){var l=Math.sqrt(n*n+i*i);s.rotation=Math.PI/2-(i>0?Math.acos(-n/l):-Math.acos(n/l)),s.scaleX=o/l,s.scaleY=l,s.skewX=0,s.skewY=(t*n+e*i)/o}return s.rotation=C._getRotation(s.rotation),s}}var l="[object Array]",u="[object Number]",h="[object String]",d="[object Boolean]",f=Math.PI/180,p=180/Math.PI,v="#",m="",g="0",y="Konva warning: ",b="Konva error: ",_="rgb(",w={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},k=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,S=[];const x="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(t){setTimeout(t,60)},C={_isElement(t){return!(!t||1!=t.nodeType)},_isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject(t){return!!t&&t.constructor===Object},_isArray(t){return Object.prototype.toString.call(t)===l},_isNumber(t){return Object.prototype.toString.call(t)===u&&!isNaN(t)&&isFinite(t)},_isString(t){return Object.prototype.toString.call(t)===h},_isBoolean(t){return Object.prototype.toString.call(t)===d},isObject(t){return t instanceof Object},isValidSelector(t){if("string"!==typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign(t){return 0===t||t>0?1:-1},requestAnimFrame(t){S.push(t),1===S.length&&x((function(){const t=S;S=[],t.forEach((function(t){t()}))}))},createCanvasElement(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch(e){}return t},createImageElement(){return document.createElement("img")},_isInDocument(t){while(t=t.parentNode)if(t==document)return!0;return!1},_urlToImage(t,e){var n=C.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb(t){t=t.replace(v,m);var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor(){var t=(16777215*Math.random()<<0).toString(16);while(t.length<6)t=g+t;return v+t},getRGB(t){var e;return t in w?(e=w[t],{r:e[0],g:e[1],b:e[2]}):t[0]===v?this._hexToRgb(t.substring(1)):t.substr(0,4)===_?(e=k.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA(t){return t=t||"black",C._namedColorToRBA(t)||C._hex3ColorToRGBA(t)||C._hex6ColorToRGBA(t)||C._rgbColorToRGBA(t)||C._rgbaColorToRGBA(t)||C._hslColorToRGBA(t)},_namedColorToRBA(t){var e=w[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(((t,e)=>"%"===t.slice(-1)?3===e?parseInt(t)/100:parseInt(t)/100*255:Number(t)));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){const[e,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),i=Number(n[0])/360,r=Number(n[1])/100,a=Number(n[2])/100;let o,s,c;if(0===r)return c=255*a,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};o=a<.5?a*(1+r):a+r-a*r;const l=2*a-o,u=[0,0,0];for(let t=0;t<3;t++)s=i+1/3*-(t-1),s<0&&s++,s>1&&s--,c=6*s<1?l+6*(o-l)*s:2*s<1?o:3*s<2?l+(o-l)*(2/3-s)*6:l,u[t]=255*c;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray(t){return t.slice(0)},degToRad(t){return t*f},radToDeg(t){return t*p},_degToRad(t){return C.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),C.degToRad(t)},_radToDeg(t){return C.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),C.radToDeg(t)},_getRotation(t){return o.angleDeg?C.radToDeg(t):t},_capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw(t){throw new Error(b+t)},error(t){console.error(b+t)},warn(t){o.showWarnings&&console.warn(y+t)},each(t,e){for(var n in t)e(n,t[n])},_inRange(t,e,n){return e<=t&&t<n},_getProjectionToSegment(t,e,n,i,r,a){var o,s,c,l=(t-n)*(t-n)+(e-i)*(e-i);if(0==l)o=t,s=e,c=(r-n)*(r-n)+(a-i)*(a-i);else{var u=((r-t)*(n-t)+(a-e)*(i-e))/l;u<0?(o=t,s=e,c=(t-r)*(t-r)+(e-a)*(e-a)):u>1?(o=n,s=i,c=(n-r)*(n-r)+(i-a)*(i-a)):(o=t+u*(n-t),s=e+u*(i-e),c=(o-r)*(o-r)+(s-a)*(s-a))}return[o,s,c]},_getProjectionToLine(t,e,n){var i=C.cloneObject(t),r=Number.MAX_VALUE;return e.forEach((function(a,o){if(n||o!==e.length-1){var s=e[(o+1)%e.length],c=C._getProjectionToSegment(a.x,a.y,s.x,s.y,t.x,t.y),l=c[0],u=c[1],h=c[2];h<r&&(i.x=l,i.y=u,r=h)}})),i},_prepareArrayForTween(t,e,n){var i,r=[],a=[];if(t.length>e.length){var o=e;e=t,t=o}for(i=0;i<t.length;i+=2)r.push({x:t[i],y:t[i+1]});for(i=0;i<e.length;i+=2)a.push({x:e[i],y:e[i+1]});var s=[];return a.forEach((function(t){var e=C._getProjectionToLine(t,r,n);s.push(e.x),s.push(e.y)})),s},_prepareToStringify(t){var e;for(var n in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||C._isElement(t[n])){if(!e.configurable)return null;delete t[n]}else if(null===C._prepareToStringify(t[n])){if(!e.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(var n in e)t[n]=e[n];return t},_getFirstPointerId(t){return t.touches?t.changedTouches[0].identifier:t.pointerId||999}};function D(t){return C._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||C._isBoolean(t)?t:Object.prototype.toString.call(t)}function T(t){return t>255?255:t<0?0:Math.round(t)}function O(){if(o.isUnminified)return function(t,e){return C._isNumber(t)||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function E(t){if(o.isUnminified)return function(e,n){let i=C._isNumber(e),r=C._isArray(e)&&e.length==t;return i||r||C.warn(D(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function A(){if(o.isUnminified)return function(t,e){var n=C._isNumber(t),i="auto"===t;return n||i||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function P(){if(o.isUnminified)return function(t,e){return C._isString(t)||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function M(){if(o.isUnminified)return function(t,e){const n=C._isString(t),i="[object CanvasGradient]"===Object.prototype.toString.call(t)||t&&t.addColorStop;return n||i||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function R(){if(o.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(C._isArray(t)?t.forEach((function(t){C._isNumber(t)||C.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")})):C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function I(){if(o.isUnminified)return function(t,e){var n=!0===t||!1===t;return n||C.warn(D(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function N(t){if(o.isUnminified)return function(e,n){return void 0===e||null===e||C.isObject(e)||C.warn(D(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}var $="get",L="set";const F={addGetterSetter(t,e,n,i,r){F.addGetter(t,e,n),F.addSetter(t,e,i,r),F.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){var i=$+C._capitalize(e);t.prototype[i]=t.prototype[i]||function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter(t,e,n,i){var r=L+C._capitalize(e);t.prototype[r]||F.overWriteSetter(t,e,n,i)},overWriteSetter(t,e,n,i){var r=L+C._capitalize(e);t.prototype[r]=function(t){return n&&void 0!==t&&null!==t&&(t=n.call(this,t,e)),this._setAttr(e,t),i&&i.call(this),this}},addComponentsGetterSetter(t,e,n,i,r){var a,o,s=n.length,c=C._capitalize,l=$+c(e),u=L+c(e);t.prototype[l]=function(){var t={};for(a=0;a<s;a++)o=n[a],t[o]=this.getAttr(e+c(o));return t};var h=N(n);t.prototype[u]=function(t){var a,o=this.attrs[e];for(a in i&&(t=i.call(this,t)),h&&h.call(this,t,e),t)t.hasOwnProperty(a)&&this._setAttr(e+c(a),t[a]);return t||n.forEach((t=>{this._setAttr(e+c(t),void 0)})),this._fireChangeEvent(e,o,t),r&&r.call(this),this},F.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){var n=C._capitalize(e),i=L+n,r=$+n;t.prototype[e]=function(){return arguments.length?(this[i](arguments[0]),this):this[r]()}},addDeprecatedGetterSetter(t,e,n,i){C.error("Adding deprecated "+e);var r=$+C._capitalize(e),a=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[r]=function(){C.error(a);var t=this.attrs[e];return void 0===t?n:t},F.addSetter(t,e,i,(function(){C.error(a)})),F.addOverloadedGetterSetter(t,e)},backCompat(t,e){C.each(e,(function(e,n){var i=t.prototype[n],r=$+C._capitalize(e),a=L+C._capitalize(e);function o(){i.apply(this,arguments),C.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=o,t.prototype[r]=o,t.prototype[a]=o}))},afterSetFilter(){this._filterUpToDate=!1}};function B(t){var e,n,i=[],r=t.length,a=C;for(e=0;e<r;e++)n=t[e],a._isNumber(n)?n=Math.round(1e3*n)/1e3:a._isString(n)||(n+=""),i.push(n);return i}var j=",",z="(",H=")",V="([",G="])",W=";",U="()",Y="=",q=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],X=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const K=100;class J{constructor(t){this.canvas=t,o.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,e){var n,i,r,a,o=this.traceArr,s=o.length,c="";for(n=0;n<s;n++)i=o[n],r=i.method,r?(a=i.args,c+=r,t?c+=U:C._isArray(a[0])?c+=V+a.join(j)+G:(e&&(a=a.map((t=>"number"===typeof t?Math.floor(t):t))),c+=z+a.join(j)+H)):(c+=i.property,t||(c+=Y+i.val)),c+=W;return c}clearTrace(){this.traceArr=[]}_trace(t){var e,n=this.traceArr;n.push(t),e=n.length,e>=K&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)}_applyLineCap(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)}_applyOpacity(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)}_applyLineJoin(t){var e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}setAttr(t,e){this._context[t]=e}arc(t,e,n,i,r,a){this._context.arc(t,e,n,i,r,a)}arcTo(t,e,n,i,r){this._context.arcTo(t,e,n,i,r)}beginPath(){this._context.beginPath()}bezierCurveTo(t,e,n,i,r,a){this._context.bezierCurveTo(t,e,n,i,r,a)}clearRect(t,e,n,i){this._context.clearRect(t,e,n,i)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(t,e){var n=arguments;return 2===n.length?this._context.createImageData(t,e):1===n.length?this._context.createImageData(t):void 0}createLinearGradient(t,e,n,i){return this._context.createLinearGradient(t,e,n,i)}createPattern(t,e){return this._context.createPattern(t,e)}createRadialGradient(t,e,n,i,r,a){return this._context.createRadialGradient(t,e,n,i,r,a)}drawImage(t,e,n,i,r,a,o,s,c){var l=arguments,u=this._context;3===l.length?u.drawImage(t,e,n):5===l.length?u.drawImage(t,e,n,i,r):9===l.length&&u.drawImage(t,e,n,i,r,a,o,s,c)}ellipse(t,e,n,i,r,a,o,s){this._context.ellipse(t,e,n,i,r,a,o,s)}isPointInPath(t,e){return this._context.isPointInPath(t,e)}fill(t){t?this._context.fill(t):this._context.fill()}fillRect(t,e,n,i){this._context.fillRect(t,e,n,i)}strokeRect(t,e,n,i){this._context.strokeRect(t,e,n,i)}fillText(t,e,n,i){i?this._context.fillText(t,e,n,i):this._context.fillText(t,e,n)}measureText(t){return this._context.measureText(t)}getImageData(t,e,n,i){return this._context.getImageData(t,e,n,i)}lineTo(t,e){this._context.lineTo(t,e)}moveTo(t,e){this._context.moveTo(t,e)}rect(t,e,n,i){this._context.rect(t,e,n,i)}putImageData(t,e,n){this._context.putImageData(t,e,n)}quadraticCurveTo(t,e,n,i){this._context.quadraticCurveTo(t,e,n,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,e){this._context.scale(t,e)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context["mozDash"]=t:"webkitLineDash"in this._context&&(this._context["webkitLineDash"]=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,e,n,i,r,a){this._context.setTransform(t,e,n,i,r,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,e,n,i){this._context.strokeText(t,e,n,i)}transform(t,e,n,i,r,a){this._context.transform(t,e,n,i,r,a)}translate(t,e){this._context.translate(t,e)}_enableTrace(){var t,e,n=this,i=q.length,r=this.setAttr,a=function(t){var i,r=n[t];n[t]=function(){return e=B(Array.prototype.slice.call(arguments,0)),i=r.apply(n,arguments),n._trace({method:t,args:e}),i}};for(t=0;t<i;t++)a(q[t]);n.setAttr=function(){r.apply(n,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}}_applyGlobalCompositeOperation(t){const e=t.attrs.globalCompositeOperation;var n=!e||"source-over"===e;n||this.setAttr("globalCompositeOperation",e)}}X.forEach((function(t){Object.defineProperty(J.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})}));class Z extends J{constructor(t){super(t),this._context=t._canvas.getContext("2d")}_fillColor(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fillRadialGradient(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fill(t){var e=t.fill(),n=t.getFillPriority();if(e&&"color"===n)this._fillColor(t);else{var i=t.getFillPatternImage();if(i&&"pattern"===n)this._fillPattern(t);else{var r=t.getFillLinearGradientColorStops();if(r&&"linear-gradient"===n)this._fillLinearGradient(t);else{var a=t.getFillRadialGradientColorStops();a&&"radial-gradient"===n?this._fillRadialGradient(t):e?this._fillColor(t):i?this._fillPattern(t):r?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}}}}_strokeLinearGradient(t){var e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),r=this.createLinearGradient(e.x,e.y,n.x,n.y);if(i){for(var a=0;a<i.length;a+=2)r.addColorStop(i[a],i[a+1]);this.setAttr("strokeStyle",r)}}_stroke(t){var e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var r=t.getStrokeLinearGradientColorStops();r?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var e,n,i,r=null!==(e=t.getShadowRGBA())&&void 0!==e?e:"black",a=null!==(n=t.getShadowBlur())&&void 0!==n?n:5,o=null!==(i=t.getShadowOffset())&&void 0!==i?i:{x:0,y:0},s=t.getAbsoluteScale(),c=this.canvas.getPixelRatio(),l=s.x*c,u=s.y*c;this.setAttr("shadowColor",r),this.setAttr("shadowBlur",a*Math.min(Math.abs(l),Math.abs(u))),this.setAttr("shadowOffsetX",o.x*l),this.setAttr("shadowOffsetY",o.y*u)}}class Q extends J{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var i=t.hitStrokeWidth(),r="auto"===i?t.strokeWidth():i;this.setAttr("lineWidth",r),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}}var tt;function et(){if(tt)return tt;var t=C.createCanvasElement(),e=t.getContext("2d");return tt=function(){var t=o._global.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}(),tt}class nt{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=t||{},n=e.pixelRatio||o.pixelRatio||et();this.pixelRatio=n,this._canvas=C.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,e){this.setWidth(t||0),this.setHeight(e||0)}toDataURL(t,e){try{return this._canvas.toDataURL(t,e)}catch(n){try{return this._canvas.toDataURL()}catch(i){return C.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}F.addGetterSetter(nt,"pixelRatio",void 0,O());class it extends nt{constructor(t={width:0,height:0}){super(t),this.context=new Z(this),this.setSize(t.width,t.height)}}class rt extends nt{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new Q(this),this.setSize(t.width,t.height)}}const at={get isDragging(){var t=!1;return at._dragElements.forEach((e=>{"dragging"===e.dragStatus&&(t=!0)})),t},justDragged:!1,get node(){var t;return at._dragElements.forEach((e=>{t=e.node})),t},_dragElements:new Map,_drag(t){const e=[];at._dragElements.forEach(((n,i)=>{const{node:r}=n,a=r.getStage();a.setPointersPositions(t),void 0===n.pointerId&&(n.pointerId=C._getFirstPointerId(t));const o=a._changedPointerPositions.find((t=>t.id===n.pointerId));if(o){if("dragging"!==n.dragStatus){var s=r.dragDistance(),c=Math.max(Math.abs(o.x-n.startPointerPos.x),Math.abs(o.y-n.startPointerPos.y));if(c<s)return;if(r.startDrag({evt:t}),!r.isDragging())return}r._setDragPosition(t,n),e.push(r)}})),e.forEach((e=>{e.fire("dragmove",{type:"dragmove",target:e,evt:t},!0)}))},_endDragBefore(t){const e=[];at._dragElements.forEach((n=>{const{node:i}=n,r=i.getStage();t&&r.setPointersPositions(t);const a=r._changedPointerPositions.find((t=>t.id===n.pointerId));if(!a)return;"dragging"!==n.dragStatus&&"stopped"!==n.dragStatus||(at.justDragged=!0,o._mouseListenClick=!1,o._touchListenClick=!1,o._pointerListenClick=!1,n.dragStatus="stopped");const s=n.node.getLayer()||n.node instanceof o.Stage&&n.node;s&&-1===e.indexOf(s)&&e.push(s)})),e.forEach((t=>{t.draw()}))},_endDragAfter(t){at._dragElements.forEach(((e,n)=>{"stopped"===e.dragStatus&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),"dragging"!==e.dragStatus&&at._dragElements.delete(n)}))}};o.isBrowser&&(window.addEventListener("mouseup",at._endDragBefore,!0),window.addEventListener("touchend",at._endDragBefore,!0),window.addEventListener("mousemove",at._drag),window.addEventListener("touchmove",at._drag),window.addEventListener("mouseup",at._endDragAfter,!1),window.addEventListener("touchend",at._endDragAfter,!1));var ot="absoluteOpacity",st="allEventListeners",ct="absoluteTransform",lt="absoluteScale",ut="canvas",ht="Change",dt="children",ft="konva",pt="listening",vt="mouseenter",mt="mouseleave",gt="set",yt="Shape",bt=" ",_t="stage",wt="transform",kt="Stage",St="visible",xt=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(bt);let Ct=1;class Dt{constructor(t){this._id=Ct++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){t!==wt&&t!==ct||!this._cache.get(t)?t?this._cache.delete(t):this._cache.clear():this._cache.get(t).dirty=!0}_getCache(t,e){var n=this._cache.get(t),i=t===wt||t===ct,r=void 0===n||i&&!0===n.dirty;return r&&(n=e.call(this),this._cache.set(t,n)),n}_calculate(t,e,n){if(!this._attachedDepsListeners.get(t)){const n=e.map((t=>t+"Change.konva")).join(bt);this.on(n,(()=>{this._clearCache(t)})),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(ut)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===ct&&this.fire("absoluteTransformChange")}clearCache(){return this._cache.delete(ut),this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var e=t||{},n={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=Math.ceil(e.width||n.width),r=Math.ceil(e.height||n.height),a=e.pixelRatio,o=void 0===e.x?Math.floor(n.x):e.x,s=void 0===e.y?Math.floor(n.y):e.y,c=e.offset||0,l=e.drawBorder||!1,u=e.hitCanvasPixelRatio||1;if(i&&r){i+=2*c+1,r+=2*c+1,o-=c,s-=c;var h=new it({pixelRatio:a,width:i,height:r}),d=new it({pixelRatio:a,width:0,height:0}),f=new rt({pixelRatio:u,width:i,height:r}),p=h.getContext(),v=f.getContext();return f.isCache=!0,h.isCache=!0,this._cache.delete(ut),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(h.getContext()._context.imageSmoothingEnabled=!1,d.getContext()._context.imageSmoothingEnabled=!1),p.save(),v.save(),p.translate(-o,-s),v.translate(-o,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(ot),this._clearSelfAndDescendantCache(lt),this.drawScene(h,this),this.drawHit(f,this),this._isUnderCache=!1,p.restore(),v.restore(),l&&(p.save(),p.beginPath(),p.rect(0,0,i,r),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.set(ut,{scene:h,filter:d,hit:f,x:o,y:s}),this._requestDraw(),this}C.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.")}isCached(){return this._cache.has(ut)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,e){var n,i,r,a,o=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return o.forEach((function(t){var e=s.point(t);void 0===n&&(n=r=e.x,i=a=e.y),n=Math.min(n,e.x),i=Math.min(i,e.y),r=Math.max(r,e.x),a=Math.max(a,e.y)})),{x:n,y:i,width:r-n,height:a-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const e=this._getCanvasCache();t.translate(e.x,e.y);var n=this._getCachedSceneCanvas(),i=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/i,n.height/i),t.restore()}_drawCachedHitCanvas(t){var e=this._getCanvasCache(),n=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t,e,n,i,r=this.filters(),a=this._getCanvasCache(),o=a.scene,s=a.filter,c=s.getContext();if(r){if(!this._filterUpToDate){var l=o.pixelRatio;s.setSize(o.width/o.pixelRatio,o.height/o.pixelRatio);try{for(t=r.length,c.clear(),c.drawImage(o._canvas,0,0,o.getWidth()/l,o.getHeight()/l),e=c.getImageData(0,0,s.getWidth(),s.getHeight()),n=0;n<t;n++)i=r[n],"function"===typeof i?(i.call(this,e),c.putImageData(e,0,0)):C.error("Filter should be type of function, but got "+typeof i+" instead. Please check correct filters")}catch(u){C.error("Unable to apply filter. "+u.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return s}return o}on(t,e){if(this._cache&&this._cache.delete(st),3===arguments.length)return this._delegate.apply(this,arguments);var n,i,r,a,o,s=t.split(bt),c=s.length;for(n=0;n<c;n++)i=s[n],r=i.split("."),a=r[0],o=r[1]||"",this.eventListeners[a]||(this.eventListeners[a]=[]),this.eventListeners[a].push({name:o,handler:e});return this}off(t,e){var n,i,r,a,o,s,c=(t||"").split(bt),l=c.length;if(this._cache&&this._cache.delete(st),!t)for(i in this.eventListeners)this._off(i);for(n=0;n<l;n++)if(r=c[n],a=r.split("."),o=a[0],s=a[1],o)this.eventListeners[o]&&this._off(o,s,e);else for(i in this.eventListeners)this._off(i,s,e);return this}dispatchEvent(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this}addEventListener(t,e){return this.on(t,(function(t){e.call(this,t.evt)})),this}removeEventListener(t){return this.off(t),this}_delegate(t,e,n){var i=this;this.on(t,(function(t){for(var r=t.target.findAncestors(e,!0,i),a=0;a<r.length;a++)t=C.cloneObject(t),t.currentTarget=r[a],n.call(r[a],t)}))}remove(){return this.isDragging()&&this.stopDrag(),at._dragElements["delete"](this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(ct),this._clearSelfAndDescendantCache(ot),this._clearSelfAndDescendantCache(lt),this._clearSelfAndDescendantCache(_t),this._clearSelfAndDescendantCache(St),this._clearSelfAndDescendantCache(pt)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this}getAttr(t){var e="get"+C._capitalize(t);return C._isFunction(this[e])?this[e]():this.attrs[t]}getAncestors(){var t=this.getParent(),e=[];while(t)e.push(t),t=t.getParent();return e}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges((()=>{var e,n;if(!t)return this;for(e in t)e!==dt&&(n=gt+C._capitalize(e),C._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]))})),this}isListening(){return this._getCache(pt,this._isListening)}_isListening(t){const e=this.listening();if(!e)return!1;const n=this.getParent();return!n||n===t||this===t||n._isListening(t)}isVisible(){return this._getCache(St,this._isVisible)}_isVisible(t){const e=this.visible();if(!e)return!1;const n=this.getParent();return!n||n===t||this===t||n._isVisible(t)}shouldDrawHit(t,e=!1){if(t)return this._isVisible(t)&&this._isListening(t);var n=this.getLayer(),i=!1;at._dragElements.forEach((t=>{"dragging"===t.dragStatus&&("Stage"===t.node.nodeType||t.node.getLayer()===n)&&(i=!0)}));var r=!e&&!o.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!r}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t,e,n,i,r=this.getDepth(),a=this,o=0;function s(c){for(t=[],e=c.length,n=0;n<e;n++)i=c[n],o++,i.nodeType!==yt&&(t=t.concat(i.getChildren().slice())),i._id===a._id&&(n=e);t.length>0&&t[0].getDepth()<=r&&s(t)}return a.nodeType!==kt&&s(a.getStage().getChildren()),o}getDepth(){var t=0,e=this.parent;while(e)t++,e=e.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(wt),this._clearSelfAndDescendantCache(ct)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges((()=>{this.x(t.x),this.y(t.y)})),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var t=this.getStage().getPointerPosition();if(!t)return null;var e=this.getAbsoluteTransform().copy();return e.invert(),e.point(t)}getAbsolutePosition(t){let e=!1,n=this.parent;while(n){if(n.isCached()){e=!0;break}n=n.parent}e&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),r=new c,a=this.offset();return r.m=i.slice(),r.translate(a.x,a.y),r.getTranslation()}setAbsolutePosition(t){var e=this._clearTransform();this.attrs.x=e.x,this.attrs.y=e.y,delete e.x,delete e.y,this._clearCache(wt);var n=this._getAbsoluteTransform().copy();return n.invert(),n.translate(t.x,t.y),t={x:this.attrs.x+n.getTranslation().x,y:this.attrs.y+n.getTranslation().y},this._setTransform(e),this.setPosition({x:t.x,y:t.y}),this._clearCache(wt),this._clearSelfAndDescendantCache(ct),this}_setTransform(t){var e;for(e in t)this.attrs[e]=t[e]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var e=t.x,n=t.y,i=this.x(),r=this.y();return void 0!==e&&(i+=e),void 0!==n&&(r+=n),this.setPosition({x:i,y:r}),this}_eachAncestorReverse(t,e){var n,i,r=[],a=this.getParent();if(!e||e._id!==this._id){r.unshift(this);while(a&&(!e||a._id!==e._id))r.unshift(a),a=a.parent;for(n=r.length,i=0;i<n;i++)t(r[i])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return C.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1&&(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return C.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return C.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return C.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(t){if(!this.parent)return C.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&C.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(ot,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t,e,n,i,r,a={},o=this.getAttrs();for(t in a.attrs={},o)e=o[t],r=C.isObject(e)&&!C._isPlainObject(e)&&!C._isArray(e),r||(n="function"===typeof this[t]&&this[t],delete o[t],i=n?n.call(this):null,o[t]=e,i!==e&&(a.attrs[t]=e));return a.className=this.getClassName(),C._prepareToStringify(a)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,e,n){var i=[];e&&this._isMatch(t)&&i.push(this);var r=this.parent;while(r){if(r===n)return i;r._isMatch(t)&&i.push(r),r=r.parent}return i}isAncestorOf(t){return!1}findAncestor(t,e,n){return this.findAncestors(t,e,n)[0]}_isMatch(t){if(!t)return!1;if("function"===typeof t)return t(this);var e,n,i=t.replace(/ /g,"").split(","),r=i.length;for(e=0;e<r;e++)if(n=i[e],C.isValidSelector(n)||(C.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),C.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),C.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(_t,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():void 0}fire(t,e={},n){return e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(ct,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var e;if(t)return e=new c,this._eachAncestorReverse((function(t){var n=t.transformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())}),t),e;e=this._cache.get(ct)||new c,this.parent?this.parent.getAbsoluteTransform().copyInto(e):e.reset();var n=this.transformsEnabled();if("all"===n)e.multiply(this.getTransform());else if("position"===n){const t=this.attrs.x||0,n=this.attrs.y||0,i=this.attrs.offsetX||0,r=this.attrs.offsetY||0;e.translate(t-i,n-r)}return e.dirty=!1,e}getAbsoluteScale(t){var e=this;while(e)e._isUnderCache&&(t=e),e=e.getParent();const n=this.getAbsoluteTransform(t),i=n.decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(wt,this._getTransform)}_getTransform(){var t,e,n=this._cache.get(wt)||new c;n.reset();var i=this.x(),r=this.y(),a=o.getAngle(this.rotation()),s=null!==(t=this.attrs.scaleX)&&void 0!==t?t:1,l=null!==(e=this.attrs.scaleY)&&void 0!==e?e:1,u=this.attrs.skewX||0,h=this.attrs.skewY||0,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return 0===i&&0===r||n.translate(i,r),0!==a&&n.rotate(a),0===u&&0===h||n.skew(u,h),1===s&&1===l||n.scale(s,l),0===d&&0===f||n.translate(-1*d,-1*f),n.dirty=!1,n}clone(t){var e,n,i,r,a,o=C.cloneObject(this.attrs);for(e in t)o[e]=t[e];var s=new this.constructor(o);for(e in this.eventListeners)for(n=this.eventListeners[e],i=n.length,r=0;r<i;r++)a=n[r],a.name.indexOf(ft)<0&&(s.eventListeners[e]||(s.eventListeners[e]=[]),s.eventListeners[e].push(a));return s}_toKonvaCanvas(t){t=t||{};var e=this.getClientRect(),n=this.getStage(),i=void 0!==t.x?t.x:Math.floor(e.x),r=void 0!==t.y?t.y:Math.floor(e.y),a=t.pixelRatio||1,o=new it({width:t.width||Math.ceil(e.width)||(n?n.width():0),height:t.height||Math.ceil(e.height)||(n?n.height():0),pixelRatio:a}),s=o.getContext();return!1===t.imageSmoothingEnabled&&(s._context.imageSmoothingEnabled=!1),s.save(),(i||r)&&s.translate(-1*i,-1*r),this.drawScene(o),s.restore(),o}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var e=t.mimeType||null,n=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(i),i}toImage(t){return new Promise(((e,n)=>{try{const n=null===t||void 0===t?void 0:t.callback;n&&delete t.callback,C._urlToImage(this.toDataURL(t),(function(t){e(t),null===n||void 0===n||n(t)}))}catch(i){n(i)}}))}toBlob(t){return new Promise(((e,n)=>{try{const n=null===t||void 0===t?void 0:t.callback;n&&delete t.callback,this.toCanvas(t).toBlob((t=>{e(t),null===n||void 0===n||n(t)}))}catch(i){n(i)}}))}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():o.dragDistance}_off(t,e,n){var i,r,a,o=this.eventListeners[t];for(i=0;i<o.length;i++)if(r=o[i].name,a=o[i].handler,("konva"!==r||"konva"===e)&&(!e||r===e)&&(!n||n===a)){if(o.splice(i,1),0===o.length){delete this.eventListeners[t];break}i--}}_fireChangeEvent(t,e,n){this._fire(t+ht,{oldVal:e,newVal:n})}addName(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.name(n)}return this}hasName(t){if(!t)return!1;const e=this.name();if(!e)return!1;var n=(e||"").split(/\s/g);return-1!==n.indexOf(t)}removeName(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.name(e.join(" "))),this}setAttr(t,e){var n=this[gt+C._capitalize(t)];return C._isFunction(n)?n.call(this,e):this._setAttr(t,e),this}_requestDraw(){if(o.autoDrawEnabled){const t=this.getLayer()||this.getStage();null===t||void 0===t||t.batchDraw()}}_setAttr(t,e){var n=this.attrs[t];(n!==e||C.isObject(e))&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._shouldFireChangeEvents&&this._fireChangeEvent(t,n,e),this._requestDraw())}_setComponentAttr(t,e,n){var i;void 0!==n&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,i,n))}_fireAndBubble(t,e,n){e&&this.nodeType===yt&&(e.target=this);var i=(t===vt||t===mt)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n);if(!i){this._fire(t,e);var r=(t===vt||t===mt)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n):this._fireAndBubble.call(this.parent,t,e))}}_getProtoListeners(t){let e=this._cache.get(st);if(!e){e={};let t=Object.getPrototypeOf(this);while(t)if(t.eventListeners){for(var n in t.eventListeners){const i=t.eventListeners[n],r=e[n]||[];e[n]=i.concat(r)}t=Object.getPrototypeOf(t)}else t=Object.getPrototypeOf(t);this._cache.set(st,e)}return e[t]}_fire(t,e){e=e||{},e.currentTarget=this,e.type=t;const n=this._getProtoListeners(t);if(n)for(var i=0;i<n.length;i++)n[i].handler.call(this,e);const r=this.eventListeners[t];if(r)for(i=0;i<r.length;i++)r[i].handler.call(this,e)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var e=t?t.pointerId:void 0,n=this.getStage(),i=this.getAbsolutePosition(),r=n._getPointerById(e)||n._changedPointerPositions[0]||i;at._dragElements.set(this._id,{node:this,startPointerPos:r,offset:{x:r.x-i.x,y:r.y-i.y},dragStatus:"ready",pointerId:e})}startDrag(t,e=!0){at._dragElements.has(this._id)||this._createDragElement(t);const n=at._dragElements.get(this._id);n.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},e)}_setDragPosition(t,e){const n=this.getStage()._getPointerById(e.pointerId);if(n){var i={x:n.x-e.offset.x,y:n.y-e.offset.y},r=this.dragBoundFunc();if(void 0!==r){const e=r.call(this,i,t);e?i=e:C.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const e=at._dragElements.get(this._id);e&&(e.dragStatus="stopped"),at._endDragBefore(t),at._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=at._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(t){var e=void 0!==t.evt["button"],n=!e||o.dragButtons.indexOf(t.evt["button"])>=0;if(n&&!this.isDragging()){var i=!1;at._dragElements.forEach((t=>{this.isAncestorOf(t.node)&&(i=!0)})),i||this._createDragElement(t)}}))}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const e=at._dragElements.get(this._id),n=e&&"dragging"===e.dragStatus,i=e&&"ready"===e.dragStatus;n?this.stopDrag():i&&at._dragElements["delete"](this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const e=this.getStage();if(!e)return!1;const n={x:-t.x,y:-t.y,width:e.width()+2*t.x,height:e.height()+2*t.y};return C.haveIntersection(n,this.getClientRect())}static create(t,e){return C._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)}static _createNode(t,e){var n,i,r,a=Dt.prototype.getClassName.call(t),s=t.children;e&&(t.attrs.container=e),o[a]||(C.warn('Can not find a node with class name "'+a+'". Fallback to "Shape".'),a="Shape");const c=o[a];if(n=new c(t.attrs),s)for(i=s.length,r=0;r<i;r++)n.add(Dt._createNode(s[r]));return n}}Dt.prototype.nodeType="Node",Dt.prototype._attrsAffectingSize=[],Dt.prototype.eventListeners={},Dt.prototype.on.call(Dt.prototype,xt,(function(){this._batchingTransformChange?this._needClearTransformCache=!0:(this._clearCache(wt),this._clearSelfAndDescendantCache(ct))})),Dt.prototype.on.call(Dt.prototype,"visibleChange.konva",(function(){this._clearSelfAndDescendantCache(St)})),Dt.prototype.on.call(Dt.prototype,"listeningChange.konva",(function(){this._clearSelfAndDescendantCache(pt)})),Dt.prototype.on.call(Dt.prototype,"opacityChange.konva",(function(){this._clearSelfAndDescendantCache(ot)}));const Tt=F.addGetterSetter;Tt(Dt,"zIndex"),Tt(Dt,"absolutePosition"),Tt(Dt,"position"),Tt(Dt,"x",0,O()),Tt(Dt,"y",0,O()),Tt(Dt,"globalCompositeOperation","source-over",P()),Tt(Dt,"opacity",1,O()),Tt(Dt,"name","",P()),Tt(Dt,"id","",P()),Tt(Dt,"rotation",0,O()),F.addComponentsGetterSetter(Dt,"scale",["x","y"]),Tt(Dt,"scaleX",1,O()),Tt(Dt,"scaleY",1,O()),F.addComponentsGetterSetter(Dt,"skew",["x","y"]),Tt(Dt,"skewX",0,O()),Tt(Dt,"skewY",0,O()),F.addComponentsGetterSetter(Dt,"offset",["x","y"]),Tt(Dt,"offsetX",0,O()),Tt(Dt,"offsetY",0,O()),Tt(Dt,"dragDistance",null,O()),Tt(Dt,"width",0,O()),Tt(Dt,"height",0,O()),Tt(Dt,"listening",!0,I()),Tt(Dt,"preventDefault",!0,I()),Tt(Dt,"filters",null,(function(t){return this._filterUpToDate=!1,t})),Tt(Dt,"visible",!0,I()),Tt(Dt,"transformsEnabled","all",P()),Tt(Dt,"size"),Tt(Dt,"dragBoundFunc"),Tt(Dt,"draggable",!1,I()),F.backCompat(Dt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class Ot extends Dt{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const e=this.children||[];var n=[];return e.forEach((function(e){t(e)&&n.push(e)})),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((t=>{t.parent=null,t.index=0,t.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((t=>{t.parent=null,t.index=0,t.destroy()})),this.children=[],this._requestDraw(),this}add(...t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}var n=t[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0}_generalFind(t,e){var n=[];return this._descendants((i=>{const r=i._isMatch(t);return r&&n.push(i),!(!r||!e)})),n}_descendants(t){let e=!1;const n=this.getChildren();for(const i of n){if(e=t(i),e)return!0;if(i.hasChildren()&&(e=i._descendants(t),e))return!0}return!1}toObject(){var t=Dt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach((e=>{t.children.push(e.toObject())})),t}isAncestorOf(t){var e=t.getParent();while(e){if(e._id===this._id)return!0;e=e.getParent()}return!1}clone(t){var e=Dt.prototype.clone.call(this,t);return this.getChildren().forEach((function(t){e.add(t.clone())})),e}getAllIntersections(t){var e=[];return this.find("Shape").forEach((function(n){n.isVisible()&&n.intersects(t)&&e.push(n)})),e}_clearSelfAndDescendantCache(t){var e;super._clearSelfAndDescendantCache(t),this.isCached()||null===(e=this.children)||void 0===e||e.forEach((function(e){e._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;null===(t=this.children)||void 0===t||t.forEach((function(t,e){t.index=e})),this._requestDraw()}drawScene(t,e){var n=this.getLayer(),i=t||n&&n.getCanvas(),r=i&&i.getContext(),a=this._getCanvasCache(),o=a&&a.scene,s=i&&i.isCache;if(!this.isVisible()&&!s)return this;if(o){r.save();var c=this.getAbsoluteTransform(e).getMatrix();r.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedSceneCanvas(r),r.restore()}else this._drawChildren("drawScene",i,e);return this}drawHit(t,e){if(!this.shouldDrawHit(e))return this;var n=this.getLayer(),i=t||n&&n.hitCanvas,r=i&&i.getContext(),a=this._getCanvasCache(),o=a&&a.hit;if(o){r.save();var s=this.getAbsoluteTransform(e).getMatrix();r.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(r),r.restore()}else this._drawChildren("drawHit",i,e);return this}_drawChildren(t,e,n){var i,r=e&&e.getContext(),a=this.clipWidth(),o=this.clipHeight(),s=this.clipFunc(),c=a&&o||s;const l=n===this;if(c){r.save();var u=this.getAbsoluteTransform(n),h=u.getMatrix();if(r.transform(h[0],h[1],h[2],h[3],h[4],h[5]),r.beginPath(),s)s.call(this,r,this);else{var d=this.clipX(),f=this.clipY();r.rect(d,f,a,o)}r.clip(),h=u.copy().invert().getMatrix(),r.transform(h[0],h[1],h[2],h[3],h[4],h[5])}var p=!l&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===t;p&&(r.save(),r._applyGlobalCompositeOperation(this)),null===(i=this.children)||void 0===i||i.forEach((function(i){i[t](e,n)})),p&&r.restore(),c&&r.restore()}getClientRect(t){var e;t=t||{};var n,i,r,a,o=t.skipTransform,s=t.relativeTo,c={x:1/0,y:1/0,width:0,height:0},l=this;null===(e=this.children)||void 0===e||e.forEach((function(e){if(e.visible()){var o=e.getClientRect({relativeTo:l,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===o.width&&0===o.height||(void 0===n?(n=o.x,i=o.y,r=o.x+o.width,a=o.y+o.height):(n=Math.min(n,o.x),i=Math.min(i,o.y),r=Math.max(r,o.x+o.width),a=Math.max(a,o.y+o.height)))}}));for(var u=this.find("Shape"),h=!1,d=0;d<u.length;d++){var f=u[d];if(f._isVisible(this)){h=!0;break}}return c=h&&void 0!==n?{x:n,y:i,width:r-n,height:a-i}:{x:0,y:0,width:0,height:0},o?c:this._transformedRect(c,s)}}F.addComponentsGetterSetter(Ot,"clip",["x","y","width","height"]),F.addGetterSetter(Ot,"clipX",void 0,O()),F.addGetterSetter(Ot,"clipY",void 0,O()),F.addGetterSetter(Ot,"clipWidth",void 0,O()),F.addGetterSetter(Ot,"clipHeight",void 0,O()),F.addGetterSetter(Ot,"clipFunc");const Et=new Map,At=void 0!==o._global.PointerEvent;function Pt(t){return Et.get(t)}function Mt(t){return{evt:t,pointerId:t.pointerId}}function Rt(t,e){return Et.get(t)===e}function It(t,e){Nt(t);const n=e.getStage();n&&(Et.set(t,e),At&&e._fire("gotpointercapture",Mt(new PointerEvent("gotpointercapture"))))}function Nt(t,e){const n=Et.get(t);if(!n)return;const i=n.getStage();i&&i.content,Et.delete(t),At&&n._fire("lostpointercapture",Mt(new PointerEvent("lostpointercapture")))}var $t="Stage",Lt="string",Ft="px",Bt="mouseout",jt="mouseleave",zt="mouseover",Ht="mouseenter",Vt="mousemove",Gt="mousedown",Wt="mouseup",Ut="pointermove",Yt="pointerdown",qt="pointerup",Xt="pointercancel",Kt="lostpointercapture",Jt="pointerout",Zt="pointerleave",Qt="pointerover",te="pointerenter",ee="contextmenu",ne="touchstart",ie="touchend",re="touchmove",ae="touchcancel",oe="wheel",se=5,ce=[[Ht,"_pointerenter"],[Gt,"_pointerdown"],[Vt,"_pointermove"],[Wt,"_pointerup"],[jt,"_pointerleave"],[ne,"_pointerdown"],[re,"_pointermove"],[ie,"_pointerup"],[ae,"_pointercancel"],[zt,"_pointerover"],[oe,"_wheel"],[ee,"_contextmenu"],[Yt,"_pointerdown"],[Ut,"_pointermove"],[qt,"_pointerup"],[Xt,"_pointercancel"],[Kt,"_lostpointercapture"]];const le={mouse:{[Jt]:Bt,[Zt]:jt,[Qt]:zt,[te]:Ht,[Ut]:Vt,[Yt]:Gt,[qt]:Wt,[Xt]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Jt]:"touchout",[Zt]:"touchleave",[Qt]:"touchover",[te]:"touchenter",[Ut]:re,[Yt]:ne,[qt]:ie,[Xt]:ae,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Jt]:Jt,[Zt]:Zt,[Qt]:Qt,[te]:te,[Ut]:Ut,[Yt]:Yt,[qt]:qt,[Xt]:Xt,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},ue=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",he=t=>{const e=ue(t);return"pointer"===e?o.pointerEventsEnabled&&le.pointer:"touch"===e?le.touch:"mouse"===e?le.mouse:void 0};function de(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&C.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}const fe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",pe=[];class ve extends Ot{constructor(t){super(de(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),pe.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(()=>{de(this.attrs)})),this._checkVisibility()}_validateAdd(t){const e="Layer"===t.getType(),n="FastLayer"===t.getType(),i=e||n;i||C["throw"]("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===Lt){if("."===t.charAt(0)){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var n;n="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(n)}if(!t)throw"Can not find container in document with id "+n}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this}clone(t){return t||(t={}),t.container="undefined"!==typeof document&&document.createElement("div"),Ot.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&C._isInDocument(t)&&this.container().removeChild(t);var e=pe.indexOf(this);return e>-1&&pe.splice(e,1),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(C.warn(fe),null)}_getPointerById(t){return this._pointerPositions.find((e=>e.id===t))}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t=t||{},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var e=new it({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),n=e.getContext()._context,i=this.children;return(t.x||t.y)&&n.translate(-1*t.x,-1*t.y),i.forEach((function(e){if(e.isVisible()){var i=e._toKonvaCanvas(t);n.drawImage(i._canvas,t.x,t.y,i.getWidth()/i.getPixelRatio(),i.getHeight()/i.getPixelRatio())}})),e}getIntersection(t){if(!t)return null;var e,n=this.children,i=n.length,r=i-1;for(e=r;e>=0;e--){const i=n[e].getIntersection(t);if(i)return i}return null}_resizeDOM(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+Ft,this.content.style.height=e+Ft),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.forEach((n=>{n.setSize({width:t,height:e}),n.draw()}))}add(t,...e){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}super.add(t);var i=this.children.length;return i>se&&C.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),o.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return Rt(t,this)}setPointerCapture(t){It(t,this)}releaseCapture(t){Nt(t,this)}getLayers(){return this.children}_bindContentEvents(){o.isBrowser&&ce.forEach((([t,e])=>{this.content.addEventListener(t,(t=>{this[e](t)}),{passive:!1})}))}_pointerenter(t){this.setPointersPositions(t);const e=he(t.type);this._fire(e.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const e=he(t.type);this._fire(e.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let e=this[t+"targetShape"];return e&&!e.getStage()&&(e=null),e}_pointerleave(t){const e=he(t.type),n=ue(t.type);if(e){this.setPointersPositions(t);var i=this._getTargetShape(n),r=!at.isDragging||o.hitOnDragEnabled;i&&r?(i._fireAndBubble(e.pointerout,{evt:t}),i._fireAndBubble(e.pointerleave,{evt:t}),this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this[n+"targetShape"]=null):r&&(this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(e.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){const e=he(t.type),n=ue(t.type);if(e){this.setPointersPositions(t);var i=!1;this._changedPointerPositions.forEach((r=>{var a=this.getIntersection(r);at.justDragged=!1,o["_"+n+"ListenClick"]=!0;const s=a&&a.isListening();if(!s)return;o.capturePointerEventsEnabled&&a.setPointerCapture(r.id),this[n+"ClickStartShape"]=a,a._fireAndBubble(e.pointerdown,{evt:t,pointerId:r.id}),i=!0;const c=t.type.indexOf("touch")>=0;a.preventDefault()&&t.cancelable&&c&&t.preventDefault()})),i||this._fire(e.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){const e=he(t.type),n=ue(t.type);if(!e)return;at.isDragging&&at.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t);var i=!at.isDragging||o.hitOnDragEnabled;if(!i)return;var r={};let a=!1;var s=this._getTargetShape(n);this._changedPointerPositions.forEach((i=>{const o=Pt(i.id)||this.getIntersection(i),c=i.id,l={evt:t,pointerId:c};var u=s!==o;if(u&&s&&(s._fireAndBubble(e.pointerout,Object.assign({},l),o),s._fireAndBubble(e.pointerleave,Object.assign({},l),o)),o){if(r[o._id])return;r[o._id]=!0}o&&o.isListening()?(a=!0,u&&(o._fireAndBubble(e.pointerover,Object.assign({},l),s),o._fireAndBubble(e.pointerenter,Object.assign({},l),s),this[n+"targetShape"]=o),o._fireAndBubble(e.pointermove,Object.assign({},l))):s&&(this._fire(e.pointerover,{evt:t,target:this,currentTarget:this,pointerId:c}),this[n+"targetShape"]=null)})),a||this._fire(e.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const e=he(t.type),n=ue(t.type);if(!e)return;this.setPointersPositions(t);const i=this[n+"ClickStartShape"],r=this[n+"ClickEndShape"];var a={};let s=!1;this._changedPointerPositions.forEach((c=>{const l=Pt(c.id)||this.getIntersection(c);if(l){if(l.releaseCapture(c.id),a[l._id])return;a[l._id]=!0}const u=c.id,h={evt:t,pointerId:u};let d=!1;o["_"+n+"InDblClickWindow"]?(d=!0,clearTimeout(this[n+"DblTimeout"])):at.justDragged||(o["_"+n+"InDblClickWindow"]=!0,clearTimeout(this[n+"DblTimeout"])),this[n+"DblTimeout"]=setTimeout((function(){o["_"+n+"InDblClickWindow"]=!1}),o.dblClickWindow),l&&l.isListening()?(s=!0,this[n+"ClickEndShape"]=l,l._fireAndBubble(e.pointerup,Object.assign({},h)),o["_"+n+"ListenClick"]&&i&&i===l&&(l._fireAndBubble(e.pointerclick,Object.assign({},h)),d&&r&&r===l&&l._fireAndBubble(e.pointerdblclick,Object.assign({},h)))):(this[n+"ClickEndShape"]=null,o["_"+n+"ListenClick"]&&this._fire(e.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:u}),d&&this._fire(e.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:u}))})),s||this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o["_"+n+"ListenClick"]=!1,t.cancelable&&"touch"!==n&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(ee,{evt:t}):this._fire(ee,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(oe,{evt:t}):this._fire(oe,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const e=Pt(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(qt,Mt(t)),Nt(t.pointerId)}_lostpointercapture(t){Nt(t.pointerId)}setPointersPositions(t){var e=this._getContentPosition(),n=null,i=null;t=t||window.event,void 0!==t.touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,(t=>{this._pointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})})),Array.prototype.forEach.call(t.changedTouches||t.touches,(t=>{this._changedPointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})}))):(n=(t.clientX-e.left)/e.scaleX,i=(t.clientY-e.top)/e.scaleY,this.pointerPos={x:n,y:i},this._pointerPositions=[{x:n,y:i,id:C._getFirstPointerId(t)}],this._changedPointerPositions=[{x:n,y:i,id:C._getFirstPointerId(t)}])}_setPointerPosition(t){C.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new it({width:this.width(),height:this.height()}),this.bufferHitCanvas=new rt({pixelRatio:1,width:this.width(),height:this.height()}),o.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return C.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach((function(t){t.batchDraw()})),this}}ve.prototype.nodeType=$t,s(ve),F.addGetterSetter(ve,"container");var me="hasShadow",ge="shadowRGBA",ye="patternImage",be="linearGradient",_e="radialGradient";let we;function ke(){return we||(we=C.createCanvasElement().getContext("2d"),we)}const Se={};function xe(t){t.fill()}function Ce(t){t.stroke()}function De(t){t.fill()}function Te(t){t.stroke()}function Oe(){this._clearCache(me)}function Ee(){this._clearCache(ge)}function Ae(){this._clearCache(ye)}function Pe(){this._clearCache(be)}function Me(){this._clearCache(_e)}class Re extends Dt{constructor(t){let e;super(t);while(1)if(e=C.getRandomColor(),e&&!(e in Se))break;this.colorKey=e,Se[e]=this}getContext(){return C.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return C.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this["_sceneFunc"]}getHitFunc(){return this.attrs.hitFunc||this["_hitFunc"]}hasShadow(){return this._getCache(me,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(ye,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var t=ke();const e=t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(e&&e.setTransform){const t=new c;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(o.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=t.getMatrix(),i="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);e.setTransform(i)}return e}}_getLinearGradient(){return this._getCache(be,this.__getLinearGradient)}__getLinearGradient(){var t=this.fillLinearGradientColorStops();if(t){for(var e=ke(),n=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),r=e.createLinearGradient(n.x,n.y,i.x,i.y),a=0;a<t.length;a+=2)r.addColorStop(t[a],t[a+1]);return r}}_getRadialGradient(){return this._getCache(_e,this.__getRadialGradient)}__getRadialGradient(){var t=this.fillRadialGradientColorStops();if(t){for(var e=ke(),n=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),r=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius()),a=0;a<t.length;a+=2)r.addColorStop(t[a],t[a+1]);return r}}getShadowRGBA(){return this._getCache(ge,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var t=C.colorToRGBA(this.shadowColor());return t?"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")":void 0}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){var e,n=this.getStage(),i=n.bufferHitCanvas;return i.getContext().clear(),this.drawHit(i,null,!0),e=i.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0}destroy(){return Dt.prototype.destroy.call(this),delete Se[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var e;if(!this.getStage())return!1;const n=null===(e=this.attrs.perfectDrawEnabled)||void 0===e||e;if(!n)return!1;const i=t||this.hasFill(),r=this.hasStroke(),a=1!==this.getAbsoluteOpacity();if(i&&r&&a)return!0;const o=this.hasShadow(),s=this.shadowForStrokeEnabled();return!!(i&&r&&o&&s)}setStrokeHitEnabled(t){C.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){const e=t.skipTransform,n=t.relativeTo,i=this.getSelfRect(),r=!t.skipStroke&&this.hasStroke(),a=r&&this.strokeWidth()||0,o=i.width+a,s=i.height+a,c=!t.skipShadow&&this.hasShadow(),l=c?this.shadowOffsetX():0,u=c?this.shadowOffsetY():0,h=o+Math.abs(l),d=s+Math.abs(u),f=c&&this.shadowBlur()||0,p=h+2*f,v=d+2*f,m={width:p,height:v,x:-(a/2+f)+Math.min(l,0)+i.x,y:-(a/2+f)+Math.min(u,0)+i.y};return e?m:this._transformedRect(m,n)}drawScene(t,e){var n,i,r,a=this.getLayer(),o=t||a.getCanvas(),s=o.getContext(),c=this._getCanvasCache(),l=this.getSceneFunc(),u=this.hasShadow(),h=o.isCache,d=e===this;if(!this.isVisible()&&!d)return this;if(c){s.save();var f=this.getAbsoluteTransform(e).getMatrix();return s.transform(f[0],f[1],f[2],f[3],f[4],f[5]),this._drawCachedSceneCanvas(s),s.restore(),this}if(!l)return this;if(s.save(),this._useBufferCanvas()&&!h){n=this.getStage(),i=n.bufferCanvas,r=i.getContext(),r.clear(),r.save(),r._applyLineJoin(this);var p=this.getAbsoluteTransform(e).getMatrix();r.transform(p[0],p[1],p[2],p[3],p[4],p[5]),l.call(this,r,this),r.restore();var v=i.pixelRatio;u&&s._applyShadow(this),s._applyOpacity(this),s._applyGlobalCompositeOperation(this),s.drawImage(i._canvas,0,0,i.width/v,i.height/v)}else{if(s._applyLineJoin(this),!d){p=this.getAbsoluteTransform(e).getMatrix();s.transform(p[0],p[1],p[2],p[3],p[4],p[5]),s._applyOpacity(this),s._applyGlobalCompositeOperation(this)}u&&s._applyShadow(this),l.call(this,s,this)}return s.restore(),this}drawHit(t,e,n=!1){if(!this.shouldDrawHit(e,n))return this;var i=this.getLayer(),r=t||i.hitCanvas,a=r&&r.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._getCanvasCache(),c=s&&s.hit;if(this.colorKey||C.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),c){a.save();var l=this.getAbsoluteTransform(e).getMatrix();return a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!o)return this;a.save(),a._applyLineJoin(this);const u=this===e;if(!u){var h=this.getAbsoluteTransform(e).getMatrix();a.transform(h[0],h[1],h[2],h[3],h[4],h[5])}return o.call(this,a,this),a.restore(),this}drawHitFromCache(t=0){var e,n,i,r,a,o,s=this._getCanvasCache(),c=this._getCachedSceneCanvas(),l=s.hit,u=l.getContext(),h=l.getWidth(),d=l.getHeight();u.clear(),u.drawImage(c._canvas,0,0,h,d);try{for(e=u.getImageData(0,0,h,d),n=e.data,i=n.length,r=C._hexToRgb(this.colorKey),a=0;a<i;a+=4)o=n[a+3],o>t?(n[a]=r.r,n[a+1]=r.g,n[a+2]=r.b,n[a+3]=255):n[a+3]=0;u.putImageData(e,0,0)}catch(f){C.error("Unable to draw hit graph from cached scene canvas. "+f.message)}return this}hasPointerCapture(t){return Rt(t,this)}setPointerCapture(t){It(t,this)}releaseCapture(t){Nt(t,this)}}Re.prototype._fillFunc=xe,Re.prototype._strokeFunc=Ce,Re.prototype._fillFuncHit=De,Re.prototype._strokeFuncHit=Te,Re.prototype._centroid=!1,Re.prototype.nodeType="Shape",s(Re),Re.prototype.eventListeners={},Re.prototype.on.call(Re.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",Oe),Re.prototype.on.call(Re.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",Ee),Re.prototype.on.call(Re.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",Ae),Re.prototype.on.call(Re.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",Pe),Re.prototype.on.call(Re.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",Me),F.addGetterSetter(Re,"stroke",void 0,M()),F.addGetterSetter(Re,"strokeWidth",2,O()),F.addGetterSetter(Re,"fillAfterStrokeEnabled",!1),F.addGetterSetter(Re,"hitStrokeWidth","auto",A()),F.addGetterSetter(Re,"strokeHitEnabled",!0,I()),F.addGetterSetter(Re,"perfectDrawEnabled",!0,I()),F.addGetterSetter(Re,"shadowForStrokeEnabled",!0,I()),F.addGetterSetter(Re,"lineJoin"),F.addGetterSetter(Re,"lineCap"),F.addGetterSetter(Re,"sceneFunc"),F.addGetterSetter(Re,"hitFunc"),F.addGetterSetter(Re,"dash"),F.addGetterSetter(Re,"dashOffset",0,O()),F.addGetterSetter(Re,"shadowColor",void 0,P()),F.addGetterSetter(Re,"shadowBlur",0,O()),F.addGetterSetter(Re,"shadowOpacity",1,O()),F.addComponentsGetterSetter(Re,"shadowOffset",["x","y"]),F.addGetterSetter(Re,"shadowOffsetX",0,O()),F.addGetterSetter(Re,"shadowOffsetY",0,O()),F.addGetterSetter(Re,"fillPatternImage"),F.addGetterSetter(Re,"fill",void 0,M()),F.addGetterSetter(Re,"fillPatternX",0,O()),F.addGetterSetter(Re,"fillPatternY",0,O()),F.addGetterSetter(Re,"fillLinearGradientColorStops"),F.addGetterSetter(Re,"strokeLinearGradientColorStops"),F.addGetterSetter(Re,"fillRadialGradientStartRadius",0),F.addGetterSetter(Re,"fillRadialGradientEndRadius",0),F.addGetterSetter(Re,"fillRadialGradientColorStops"),F.addGetterSetter(Re,"fillPatternRepeat","repeat"),F.addGetterSetter(Re,"fillEnabled",!0),F.addGetterSetter(Re,"strokeEnabled",!0),F.addGetterSetter(Re,"shadowEnabled",!0),F.addGetterSetter(Re,"dashEnabled",!0),F.addGetterSetter(Re,"strokeScaleEnabled",!0),F.addGetterSetter(Re,"fillPriority","color"),F.addComponentsGetterSetter(Re,"fillPatternOffset",["x","y"]),F.addGetterSetter(Re,"fillPatternOffsetX",0,O()),F.addGetterSetter(Re,"fillPatternOffsetY",0,O()),F.addComponentsGetterSetter(Re,"fillPatternScale",["x","y"]),F.addGetterSetter(Re,"fillPatternScaleX",1,O()),F.addGetterSetter(Re,"fillPatternScaleY",1,O()),F.addComponentsGetterSetter(Re,"fillLinearGradientStartPoint",["x","y"]),F.addComponentsGetterSetter(Re,"strokeLinearGradientStartPoint",["x","y"]),F.addGetterSetter(Re,"fillLinearGradientStartPointX",0),F.addGetterSetter(Re,"strokeLinearGradientStartPointX",0),F.addGetterSetter(Re,"fillLinearGradientStartPointY",0),F.addGetterSetter(Re,"strokeLinearGradientStartPointY",0),F.addComponentsGetterSetter(Re,"fillLinearGradientEndPoint",["x","y"]),F.addComponentsGetterSetter(Re,"strokeLinearGradientEndPoint",["x","y"]),F.addGetterSetter(Re,"fillLinearGradientEndPointX",0),F.addGetterSetter(Re,"strokeLinearGradientEndPointX",0),F.addGetterSetter(Re,"fillLinearGradientEndPointY",0),F.addGetterSetter(Re,"strokeLinearGradientEndPointY",0),F.addComponentsGetterSetter(Re,"fillRadialGradientStartPoint",["x","y"]),F.addGetterSetter(Re,"fillRadialGradientStartPointX",0),F.addGetterSetter(Re,"fillRadialGradientStartPointY",0),F.addComponentsGetterSetter(Re,"fillRadialGradientEndPoint",["x","y"]),F.addGetterSetter(Re,"fillRadialGradientEndPointX",0),F.addGetterSetter(Re,"fillRadialGradientEndPointY",0),F.addGetterSetter(Re,"fillPatternRotation",0),F.backCompat(Re,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var Ie="#",Ne="beforeDraw",$e="draw",Le=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Fe=Le.length;class Be extends Ot{constructor(t){super(t),this.canvas=new it,this.hitCanvas=new rt({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){const t=this.canvas._canvas;return t.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[t+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Dt.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=Dt.prototype.moveUp.call(this);if(!t)return!1;var e=this.getStage();return!(!e||!e.content)&&(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Dt.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Dt.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Dt.prototype.remove.call(this),t&&t.parentNode&&C._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:e}){return this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e),this._setSmoothEnabled(),this}_validateAdd(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&C["throw"]("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),Dt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){const t=this.visible();this.canvas._canvas.style.display=t?"block":"none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){C.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){C.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,C.requestAnimFrame((()=>{this.draw(),this._waitingForDraw=!1}))),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;var e=1,n=!1;while(1){for(let i=0;i<Fe;i++){const r=Le[i],a=this._getIntersection({x:t.x+r.x*e,y:t.y+r.y*e}),o=a.shape;if(o)return o;if(n=!!a.antialiased,!a.antialiased)break}if(!n)return null;e+=1}}_getIntersection(t){const e=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*e),Math.round(t.y*e),1,1).data,i=n[3];if(255===i){const t=C._rgbToHex(n[0],n[1],n[2]),e=Se[Ie+t];return e?{shape:e}:{antialiased:!0}}return i>0?{antialiased:!0}:{}}drawScene(t,e){var n=this.getLayer(),i=t||n&&n.getCanvas();return this._fire(Ne,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),Ot.prototype.drawScene.call(this,i,e),this._fire($e,{node:this}),this}drawHit(t,e){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ot.prototype.drawHit.call(this,i,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){C.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return C.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(this.parent&&this.parent["content"]){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}}Be.prototype.nodeType="Layer",s(Be),F.addGetterSetter(Be,"imageSmoothingEnabled",!0),F.addGetterSetter(Be,"clearBeforeDraw",!0),F.addGetterSetter(Be,"hitGraphEnabled",!0,I());class je extends Be{constructor(t){super(t),this.listening(!1),C.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}je.prototype.nodeType="FastLayer",s(je);class ze extends Ot{_validateAdd(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&C["throw"]("You may only add groups and shapes to groups.")}}ze.prototype.nodeType="Group",s(ze);var He=function(){return a.performance&&a.performance.now?function(){return a.performance.now()}:function(){return(new Date).getTime()}}();class Ve{constructor(t,e){this.id=Ve.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:He(),frameRate:0},this.func=t,this.setLayers(e)}setLayers(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this}getLayers(){return this.layers}addLayer(t){var e,n=this.layers,i=n.length;for(e=0;e<i;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){var t,e=Ve,n=e.animations,i=n.length;for(t=0;t<i;t++)if(n[t].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=He(),Ve._addAnimation(this),this}stop(){return Ve._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){var e,n=t.id,i=this.animations,r=i.length;for(e=0;e<r;e++)if(i[e].id===n){this.animations.splice(e,1);break}}static _runFrames(){var t,e,n,i,r,a,o,s,c,l={},u=this.animations;for(i=0;i<u.length;i++)if(t=u[i],e=t.layers,n=t.func,t._updateFrameObject(He()),a=e.length,c=!n||!1!==n.call(t,t.frame),c)for(r=0;r<a;r++)o=e[r],void 0!==o._id&&(l[o._id]=o);for(s in l)l.hasOwnProperty(s)&&l[s].batchDraw()}static _animationLoop(){var t=Ve;t.animations.length?(t._runFrames(),C.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,C.requestAnimFrame(this._animationLoop))}}Ve.animations=[],Ve.animIdCounter=0,Ve.animRunning=!1;var Ge={node:1,duration:1,easing:1,onFinish:1,yoyo:1},We=1,Ue=2,Ye=3,qe=0,Xe=["fill","stroke","shadowColor"];class Ke{constructor(t,e,n,i,r,a,o){this.prop=t,this.propFunc=e,this.begin=i,this._pos=i,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=r-this.begin,this.pause()}fire(t){var e=this[t];e&&e()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=Ue,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=Ye,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;this.state===Ue?this.setTime(t):this.state===Ye&&this.setTime(this.duration-t)}pause(){this.state=We,this.fire("onPause")}getTimer(){return(new Date).getTime()}}class Je{constructor(t){var e,n,i=this,r=t.node,a=r._id,s=t.easing||Ze.Linear,c=!!t.yoyo;e="undefined"===typeof t.duration?.3:0===t.duration?.001:t.duration,this.node=r,this._id=qe++;var l=r.getLayer()||(r instanceof o.Stage?r.getLayers():null);for(n in l||C.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Ve((function(){i.tween.onEnterFrame()}),l),this.tween=new Ke(n,(function(t){i._tweenFunc(t)}),s,0,1,1e3*e,c),this._addListeners(),Je.attrs[a]||(Je.attrs[a]={}),Je.attrs[a][this._id]||(Je.attrs[a][this._id]={}),Je.tweens[a]||(Je.tweens[a]={}),t)void 0===Ge[n]&&this._addAttr(n,t[n]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,e){var n,i,r,a,o,s,c,l,u=this.node,h=u._id;if(r=Je.tweens[h][t],r&&delete Je.attrs[h][r][t],n=u.getAttr(t),C._isArray(e))if(i=[],o=Math.max(e.length,n.length),"points"===t&&e.length!==n.length&&(e.length>n.length?(c=n,n=C._prepareArrayForTween(n,e,u.closed())):(s=e,e=C._prepareArrayForTween(e,n,u.closed()))),0===t.indexOf("fill"))for(a=0;a<o;a++)if(a%2===0)i.push(e[a]-n[a]);else{var d=C.colorToRGBA(n[a]);l=C.colorToRGBA(e[a]),n[a]=d,i.push({r:l.r-d.r,g:l.g-d.g,b:l.b-d.b,a:l.a-d.a})}else for(a=0;a<o;a++)i.push(e[a]-n[a]);else-1!==Xe.indexOf(t)?(n=C.colorToRGBA(n),l=C.colorToRGBA(e),i={r:l.r-n.r,g:l.g-n.g,b:l.b-n.b,a:l.a-n.a}):i=e-n;Je.attrs[h][this._id][t]={start:n,diff:i,end:e,trueEnd:s,trueStart:c},Je.tweens[h][t]=this._id}_tweenFunc(t){var e,n,i,r,a,o,s,c,l=this.node,u=Je.attrs[l._id][this._id];for(e in u){if(n=u[e],i=n.start,r=n.diff,c=n.end,C._isArray(i))if(a=[],s=Math.max(i.length,c.length),0===e.indexOf("fill"))for(o=0;o<s;o++)o%2===0?a.push((i[o]||0)+r[o]*t):a.push("rgba("+Math.round(i[o].r+r[o].r*t)+","+Math.round(i[o].g+r[o].g*t)+","+Math.round(i[o].b+r[o].b*t)+","+(i[o].a+r[o].a*t)+")");else for(o=0;o<s;o++)a.push((i[o]||0)+r[o]*t);else a=-1!==Xe.indexOf(e)?"rgba("+Math.round(i.r+r.r*t)+","+Math.round(i.g+r.g*t)+","+Math.round(i.b+r.b*t)+","+(i.a+r.a*t)+")":i+r*t;l.setAttr(e,a)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,e=Je.attrs[t._id][this._id];e.points&&e.points.trueEnd&&t.setAttr("points",e.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,e=Je.attrs[t._id][this._id];e.points&&e.points.trueStart&&t.points(e.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(1e3*t),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t,e=this.node._id,n=this._id,i=Je.tweens[e];for(t in this.pause(),i)delete Je.tweens[e][t];delete Je.attrs[e][n]}}Je.attrs={},Je.tweens={},Dt.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};var n=new Je(t);n.play()};const Ze={BackEaseIn(t,e,n,i){var r=1.70158;return n*(t/=i)*t*((r+1)*t-r)+e},BackEaseOut(t,e,n,i){var r=1.70158;return n*((t=t/i-1)*t*((r+1)*t+r)+1)+e},BackEaseInOut(t,e,n,i){var r=1.70158;return(t/=i/2)<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},ElasticEaseIn(t,e,n,i,r,a){var o=0;return 0===t?e:1===(t/=i)?e+n:(a||(a=.3*i),!r||r<Math.abs(n)?(r=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)+e)},ElasticEaseOut(t,e,n,i,r,a){var o=0;return 0===t?e:1===(t/=i)?e+n:(a||(a=.3*i),!r||r<Math.abs(n)?(r=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/r),r*Math.pow(2,-10*t)*Math.sin((t*i-o)*(2*Math.PI)/a)+n+e)},ElasticEaseInOut(t,e,n,i,r,a){var o=0;return 0===t?e:2===(t/=i/2)?e+n:(a||(a=i*(.3*1.5)),!r||r<Math.abs(n)?(r=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*-.5+e:r*Math.pow(2,-10*(t-=1))*Math.sin((t*i-o)*(2*Math.PI)/a)*.5+n+e)},BounceEaseOut(t,e,n,i){return(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn(t,e,n,i){return n-Ze.BounceEaseOut(i-t,0,n,i)+e},BounceEaseInOut(t,e,n,i){return t<i/2?.5*Ze.BounceEaseIn(2*t,0,n,i)+e:.5*Ze.BounceEaseOut(2*t-i,0,n,i)+.5*n+e},EaseIn(t,e,n,i){return n*(t/=i)*t+e},EaseOut(t,e,n,i){return-n*(t/=i)*(t-2)+e},EaseInOut(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn(t,e,n,i){return n*(t/=i)*t*t*t*t+e},StrongEaseOut(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e},StrongEaseInOut(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear(t,e,n,i){return n*t/i+e}},Qe=C._assign(o,{Util:C,Transform:c,Node:Dt,Container:Ot,Stage:ve,stages:pe,Layer:Be,FastLayer:je,Group:ze,DD:at,Shape:Re,shapes:Se,Animation:Ve,Tween:Je,Easings:Ze,Context:J,Canvas:nt});class tn extends Re{_sceneFunc(t){var e=o.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),e=this.outerRadius(),n=this.clockwise(),i=o.getAngle(n?360-this.angle():this.angle()),r=Math.cos(Math.min(i,Math.PI)),a=1,s=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),l=r*(r>0?t:e),u=a*(a>0?e:t),h=s*(s>0?t:e),d=c*(c>0?e:t);return{x:l,y:n?-1*d:h,width:u-l,height:d-h}}}function en(t,e,n,i,r,a,o){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(i-e,2)),c=Math.sqrt(Math.pow(r-n,2)+Math.pow(a-i,2)),l=o*s/(s+c),u=o*c/(s+c),h=n-l*(r-t),d=i-l*(a-e),f=n+u*(r-t),p=i+u*(a-e);return[h,d,f,p]}function nn(t,e){var n,i,r=t.length,a=[];for(n=2;n<r-2;n+=2)i=en(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],e),isNaN(i[0])||(a.push(i[0]),a.push(i[1]),a.push(t[n]),a.push(t[n+1]),a.push(i[2]),a.push(i[3]));return a}tn.prototype._centroid=!0,tn.prototype.className="Arc",tn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],s(tn),F.addGetterSetter(tn,"innerRadius",0,O()),F.addGetterSetter(tn,"outerRadius",0,O()),F.addGetterSetter(tn,"angle",0,O()),F.addGetterSetter(tn,"clockwise",!1,I());class rn extends Re{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(t){var e,n,i,r=this.points(),a=r.length,o=this.tension(),s=this.closed(),c=this.bezier();if(a){if(t.beginPath(),t.moveTo(r[0],r[1]),0!==o&&a>4){e=this.getTensionPoints(),n=e.length,i=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);while(i<n-2)t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);s||t.quadraticCurveTo(e[n-2],e[n-1],r[a-2],r[a-1])}else if(c){i=2;while(i<a)t.bezierCurveTo(r[i++],r[i++],r[i++],r[i++],r[i++],r[i++])}else for(i=2;i<a;i+=2)t.lineTo(r[i],r[i+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():nn(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),e=t.length,n=this.tension(),i=en(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),r=en(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),a=nn(t,n),o=[i[2],i[3]].concat(a).concat([r[0],r[1],t[e-2],t[e-1],r[2],r[3],i[0],i[1],t[0],t[1]]);return o}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};t=0!==this.tension()?[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:this.points();for(var e,n,i=t[0],r=t[0],a=t[1],o=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],i=Math.min(i,e),r=Math.max(r,e),a=Math.min(a,n),o=Math.max(o,n);return{x:i,y:a,width:r-i,height:o-a}}}rn.prototype.className="Line",rn.prototype._attrsAffectingSize=["points","bezier","tension"],s(rn),F.addGetterSetter(rn,"closed",!1),F.addGetterSetter(rn,"bezier",!1),F.addGetterSetter(rn,"tension",0,O()),F.addGetterSetter(rn,"points",[],R());class an extends Re{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=an.parsePathData(this.data()),this.pathLength=0;for(var e=0;e<this.dataArray.length;++e)this.pathLength+=this.dataArray[e].pathLength;this.on("dataChange.konva",(function(){this.dataArray=an.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength}))}_sceneFunc(t){var e=this.dataArray;t.beginPath();for(var n=!1,i=0;i<e.length;i++){var r=e[i].command,a=e[i].points;switch(r){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],h=a[5],d=a[6],f=a[7],p=c>l?c:l,v=c>l?1:c/l,m=c>l?l/c:1;t.translate(o,s),t.rotate(d),t.scale(v,m),t.arc(0,0,p,u,u+h,1-f),t.scale(1/v,1/m),t.rotate(-d),t.translate(-o,-s);break;case"z":n=!0,t.closePath();break}}n||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach((function(e){if("A"===e.command){var n=e.points[4],i=e.points[5],r=e.points[4]+i,a=Math.PI/180;if(Math.abs(n-r)<a&&(a=Math.abs(n-r)),i<0)for(let i=n-a;i>r;i-=a){const n=an.getPointOnEllipticalArc(e.points[0],e.points[1],e.points[2],e.points[3],i,0);t.push(n.x,n.y)}else for(let i=n+a;i<r;i+=a){const n=an.getPointOnEllipticalArc(e.points[0],e.points[1],e.points[2],e.points[3],i,0);t.push(n.x,n.y)}}else if("C"===e.command)for(let o=0;o<=1;o+=.01){const n=an.getPointOnCubicBezier(o,e.start.x,e.start.y,e.points[0],e.points[1],e.points[2],e.points[3],e.points[4],e.points[5]);t.push(n.x,n.y)}else t=t.concat(e.points)}));for(var e,n,i=t[0],r=t[0],a=t[1],o=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],isNaN(e)||(i=Math.min(i,e),r=Math.max(r,e)),isNaN(n)||(a=Math.min(a,n),o=Math.max(o,n));return{x:i,y:a,width:r-i,height:o-a}}getLength(){return this.pathLength}getPointAtLength(t){var e,n=0,i=this.dataArray.length;if(!i)return null;while(n<i&&t>this.dataArray[n].pathLength)t-=this.dataArray[n].pathLength,++n;if(n===i)return e=this.dataArray[n-1].points.slice(-2),{x:e[0],y:e[1]};if(t<.01)return e=this.dataArray[n].points.slice(0,2),{x:e[0],y:e[1]};var r=this.dataArray[n],a=r.points;switch(r.command){case"L":return an.getPointOnLine(t,r.start.x,r.start.y,a[0],a[1]);case"C":return an.getPointOnCubicBezier(t/r.pathLength,r.start.x,r.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return an.getPointOnQuadraticBezier(t/r.pathLength,r.start.x,r.start.y,a[0],a[1],a[2],a[3]);case"A":var o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],h=a[5],d=a[6];return u+=h*t/r.pathLength,an.getPointOnEllipticalArc(o,s,c,l,u,d)}return null}static getLineLength(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))}static getPointOnLine(t,e,n,i,r,a,o){void 0===a&&(a=e),void 0===o&&(o=n);var s=(r-n)/(i-e+1e-8),c=Math.sqrt(t*t/(1+s*s));i<e&&(c*=-1);var l,u=s*c;if(i===e)l={x:a,y:o+u};else if((o-n)/(a-e+1e-8)===s)l={x:a+c,y:o+u};else{var h,d,f=this.getLineLength(e,n,i,r),p=(a-e)*(i-e)+(o-n)*(r-n);p/=f*f,h=e+p*(i-e),d=n+p*(r-n);var v=this.getLineLength(a,o,h,d),m=Math.sqrt(t*t-v*v);c=Math.sqrt(m*m/(1+s*s)),i<e&&(c*=-1),u=s*c,l={x:h+c,y:d+u}}return l}static getPointOnCubicBezier(t,e,n,i,r,a,o,s,c){function l(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function h(t){return 3*t*(1-t)*(1-t)}function d(t){return(1-t)*(1-t)*(1-t)}var f=s*l(t)+a*u(t)+i*h(t)+e*d(t),p=c*l(t)+o*u(t)+r*h(t)+n*d(t);return{x:f,y:p}}static getPointOnQuadraticBezier(t,e,n,i,r,a,o){function s(t){return t*t}function c(t){return 2*t*(1-t)}function l(t){return(1-t)*(1-t)}var u=a*s(t)+i*c(t)+e*l(t),h=o*s(t)+r*c(t)+n*l(t);return{x:u,y:h}}static getPointOnEllipticalArc(t,e,n,i,r,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(r),y:i*Math.sin(r)};return{x:t+(c.x*o-c.y*s),y:e+(c.x*s+c.y*o)}}static parsePathData(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)e=e.replace(new RegExp(n[i],"g"),"|"+n[i]);var r,a=e.split("|"),o=[],s=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(i=1;i<a.length;i++){var h=a[i],d=h.charAt(0);h=h.slice(1),s.length=0;while(r=u.exec(h))s.push(r[0]);for(var f=[],p=0,v=s.length;p<v;p++)if("00"!==s[p]){var m=parseFloat(s[p]);isNaN(m)?f.push(0):f.push(m)}else f.push(0,0);while(f.length>0){if(isNaN(f[0]))break;var g,y,b,_,w,k,S,x,C,D,T=null,O=[],E=c,A=l;switch(d){case"l":c+=f.shift(),l+=f.shift(),T="L",O.push(c,l);break;case"L":c=f.shift(),l=f.shift(),O.push(c,l);break;case"m":var P=f.shift(),M=f.shift();if(c+=P,l+=M,T="M",o.length>2&&"z"===o[o.length-1].command)for(var R=o.length-2;R>=0;R--)if("M"===o[R].command){c=o[R].points[0]+P,l=o[R].points[1]+M;break}O.push(c,l),d="l";break;case"M":c=f.shift(),l=f.shift(),T="M",O.push(c,l),d="L";break;case"h":c+=f.shift(),T="L",O.push(c,l);break;case"H":c=f.shift(),T="L",O.push(c,l);break;case"v":l+=f.shift(),T="L",O.push(c,l);break;case"V":l=f.shift(),T="L",O.push(c,l);break;case"C":O.push(f.shift(),f.shift(),f.shift(),f.shift()),c=f.shift(),l=f.shift(),O.push(c,l);break;case"c":O.push(c+f.shift(),l+f.shift(),c+f.shift(),l+f.shift()),c+=f.shift(),l+=f.shift(),T="C",O.push(c,l);break;case"S":y=c,b=l,g=o[o.length-1],"C"===g.command&&(y=c+(c-g.points[2]),b=l+(l-g.points[3])),O.push(y,b,f.shift(),f.shift()),c=f.shift(),l=f.shift(),T="C",O.push(c,l);break;case"s":y=c,b=l,g=o[o.length-1],"C"===g.command&&(y=c+(c-g.points[2]),b=l+(l-g.points[3])),O.push(y,b,c+f.shift(),l+f.shift()),c+=f.shift(),l+=f.shift(),T="C",O.push(c,l);break;case"Q":O.push(f.shift(),f.shift()),c=f.shift(),l=f.shift(),O.push(c,l);break;case"q":O.push(c+f.shift(),l+f.shift()),c+=f.shift(),l+=f.shift(),T="Q",O.push(c,l);break;case"T":y=c,b=l,g=o[o.length-1],"Q"===g.command&&(y=c+(c-g.points[0]),b=l+(l-g.points[1])),c=f.shift(),l=f.shift(),T="Q",O.push(y,b,c,l);break;case"t":y=c,b=l,g=o[o.length-1],"Q"===g.command&&(y=c+(c-g.points[0]),b=l+(l-g.points[1])),c+=f.shift(),l+=f.shift(),T="Q",O.push(y,b,c,l);break;case"A":_=f.shift(),w=f.shift(),k=f.shift(),S=f.shift(),x=f.shift(),C=c,D=l,c=f.shift(),l=f.shift(),T="A",O=this.convertEndpointToCenterParameterization(C,D,c,l,S,x,_,w,k);break;case"a":_=f.shift(),w=f.shift(),k=f.shift(),S=f.shift(),x=f.shift(),C=c,D=l,c+=f.shift(),l+=f.shift(),T="A",O=this.convertEndpointToCenterParameterization(C,D,c,l,S,x,_,w,k);break}o.push({command:T||d,points:O,start:{x:E,y:A},pathLength:this.calcLength(E,A,T||d,O)})}"z"!==d&&"Z"!==d||o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(t,e,n,i){var r,a,o,s,c=an;switch(n){case"L":return c.getLineLength(t,e,i[0],i[1]);case"C":for(r=0,a=c.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),s=.01;s<=1;s+=.01)o=c.getPointOnCubicBezier(s,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;return r;case"Q":for(r=0,a=c.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),s=.01;s<=1;s+=.01)o=c.getPointOnQuadraticBezier(s,t,e,i[0],i[1],i[2],i[3]),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;return r;case"A":r=0;var l=i[4],u=i[5],h=i[4]+u,d=Math.PI/180;if(Math.abs(l-h)<d&&(d=Math.abs(l-h)),a=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),u<0)for(s=l-d;s>h;s-=d)o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],s,0),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=l+d;s<h;s+=d)o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],s,0),r+=c.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),r+=c.getLineLength(a.x,a.y,o.x,o.y),r}return 0}static convertEndpointToCenterParameterization(t,e,n,i,r,a,o,s,c){var l=c*(Math.PI/180),u=Math.cos(l)*(t-n)/2+Math.sin(l)*(e-i)/2,h=-1*Math.sin(l)*(t-n)/2+Math.cos(l)*(e-i)/2,d=u*u/(o*o)+h*h/(s*s);d>1&&(o*=Math.sqrt(d),s*=Math.sqrt(d));var f=Math.sqrt((o*o*(s*s)-o*o*(h*h)-s*s*(u*u))/(o*o*(h*h)+s*s*(u*u)));r===a&&(f*=-1),isNaN(f)&&(f=0);var p=f*o*h/s,v=f*-s*u/o,m=(t+n)/2+Math.cos(l)*p-Math.sin(l)*v,g=(e+i)/2+Math.sin(l)*p+Math.cos(l)*v,y=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},b=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))},_=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))},w=_([1,0],[(u-p)/o,(h-v)/s]),k=[(u-p)/o,(h-v)/s],S=[(-1*u-p)/o,(-1*h-v)/s],x=_(k,S);return b(k,S)<=-1&&(x=Math.PI),b(k,S)>=1&&(x=0),0===a&&x>0&&(x-=2*Math.PI),1===a&&x<0&&(x+=2*Math.PI),[m,g,o,s,w,x,l,a]}}an.prototype.className="Path",an.prototype._attrsAffectingSize=["data"],s(an),F.addGetterSetter(an,"data");class on extends rn{_sceneFunc(t){super._sceneFunc(t);var e=2*Math.PI,n=this.points(),i=n,r=0!==this.tension()&&n.length>4;r&&(i=this.getTensionPoints());var a,o,s=this.pointerLength(),c=n.length;if(r){const t=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],n[c-2],n[c-1]],e=an.calcLength(i[i.length-4],i[i.length-3],"C",t),r=an.getPointOnQuadraticBezier(Math.min(1,1-s/e),t[0],t[1],t[2],t[3],t[4],t[5]);a=n[c-2]-r.x,o=n[c-1]-r.y}else a=n[c-2]-n[c-4],o=n[c-1]-n[c-3];var l=(Math.atan2(o,a)+e)%e,u=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[c-2],n[c-1]),t.rotate(l),t.moveTo(0,0),t.lineTo(-s,u/2),t.lineTo(-s,-u/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),r?(a=(i[0]+i[2])/2-n[0],o=(i[1]+i[3])/2-n[1]):(a=n[2]-n[0],o=n[3]-n[1]),t.rotate((Math.atan2(-o,-a)+e)%e),t.moveTo(0,0),t.lineTo(-s,u/2),t.lineTo(-s,-u/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var e=this.dashEnabled();e&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),e&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),e=this.pointerWidth()/2;return{x:t.x-e,y:t.y-e,width:t.width+2*e,height:t.height+2*e}}}on.prototype.className="Arrow",s(on),F.addGetterSetter(on,"pointerLength",10,O()),F.addGetterSetter(on,"pointerWidth",10,O()),F.addGetterSetter(on,"pointerAtBeginning",!1),F.addGetterSetter(on,"pointerAtEnding",!0);class sn extends Re{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}sn.prototype._centroid=!0,sn.prototype.className="Circle",sn.prototype._attrsAffectingSize=["radius"],s(sn),F.addGetterSetter(sn,"radius",0,O());class cn extends Re{_sceneFunc(t){var e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}cn.prototype.className="Ellipse",cn.prototype._centroid=!0,cn.prototype._attrsAffectingSize=["radiusX","radiusY"],s(cn),F.addComponentsGetterSetter(cn,"radius",["x","y"]),F.addGetterSetter(cn,"radiusX",0,O()),F.addGetterSetter(cn,"radiusY",0,O());class ln extends Re{constructor(t){super(t),this.on("imageChange.konva",(()=>{this._setImageLoad()})),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&4===t.readyState||t&&t["addEventListener"]&&t["addEventListener"]("load",(()=>{this._requestDraw()}))}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const e=this.getWidth(),n=this.getHeight(),i=this.attrs.image;let r;if(i){const t=this.attrs.cropWidth,a=this.attrs.cropHeight;r=t&&a?[i,this.cropX(),this.cropY(),t,a,0,0,e,n]:[i,0,0,e,n]}(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)),i&&t.drawImage.apply(t,r)}_hitFunc(t){var e=this.width(),n=this.height();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,e;return null!==(t=this.attrs.width)&&void 0!==t?t:null===(e=this.image())||void 0===e?void 0:e.width}getHeight(){var t,e;return null!==(t=this.attrs.height)&&void 0!==t?t:null===(e=this.image())||void 0===e?void 0:e.height}static fromURL(t,e,n=null){var i=C.createImageElement();i.onload=function(){var t=new ln({image:i});e(t)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}}ln.prototype.className="Image",s(ln),F.addGetterSetter(ln,"image"),F.addComponentsGetterSetter(ln,"crop",["x","y","width","height"]),F.addGetterSetter(ln,"cropX",0,O()),F.addGetterSetter(ln,"cropY",0,O()),F.addGetterSetter(ln,"cropWidth",0,O()),F.addGetterSetter(ln,"cropHeight",0,O());var un=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],hn="Change.konva",dn="none",fn="up",pn="right",vn="down",mn="left",gn=un.length;class yn extends ze{constructor(t){super(t),this.on("add.konva",(function(t){this._addListeners(t.child),this._sync()}))}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var e,n=this,i=function(){n._sync()};for(e=0;e<gn;e++)t.on(un[e]+hn,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t,e,n,i,r,a,o,s=this.getText(),c=this.getTag();if(s&&c){switch(t=s.width(),e=s.height(),n=c.pointerDirection(),i=c.pointerWidth(),o=c.pointerHeight(),r=0,a=0,n){case fn:r=t/2,a=-1*o;break;case pn:r=t+i,a=e/2;break;case vn:r=t/2,a=e+o;break;case mn:r=-1*i,a=e/2;break}c.setAttrs({x:-1*r,y:-1*a,width:t,height:e}),s.setAttrs({x:-1*r,y:-1*a})}}}yn.prototype.className="Label",s(yn);class bn extends Re{_sceneFunc(t){var e=this.width(),n=this.height(),i=this.pointerDirection(),r=this.pointerWidth(),a=this.pointerHeight(),o=this.cornerRadius();let s=0,c=0,l=0,u=0;"number"===typeof o?s=c=l=u=Math.min(o,e/2,n/2):(s=Math.min(o[0]||0,e/2,n/2),c=Math.min(o[1]||0,e/2,n/2),u=Math.min(o[2]||0,e/2,n/2),l=Math.min(o[3]||0,e/2,n/2)),t.beginPath(),t.moveTo(s,0),i===fn&&(t.lineTo((e-r)/2,0),t.lineTo(e/2,-1*a),t.lineTo((e+r)/2,0)),t.lineTo(e-c,0),t.arc(e-c,c,c,3*Math.PI/2,0,!1),i===pn&&(t.lineTo(e,(n-a)/2),t.lineTo(e+r,n/2),t.lineTo(e,(n+a)/2)),t.lineTo(e,n-u),t.arc(e-u,n-u,u,0,Math.PI/2,!1),i===vn&&(t.lineTo((e+r)/2,n),t.lineTo(e/2,n+a),t.lineTo((e-r)/2,n)),t.lineTo(l,n),t.arc(l,n-l,l,Math.PI/2,Math.PI,!1),i===mn&&(t.lineTo(0,(n+a)/2),t.lineTo(-1*r,n/2),t.lineTo(0,(n-a)/2)),t.lineTo(0,s),t.arc(s,s,s,Math.PI,3*Math.PI/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,e=0,n=this.pointerWidth(),i=this.pointerHeight(),r=this.pointerDirection(),a=this.width(),o=this.height();return r===fn?(e-=i,o+=i):r===vn?o+=i:r===mn?(t-=1.5*n,a+=n):r===pn&&(a+=1.5*n),{x:t,y:e,width:a,height:o}}}bn.prototype.className="Tag",s(bn),F.addGetterSetter(bn,"pointerDirection",dn),F.addGetterSetter(bn,"pointerWidth",0,O()),F.addGetterSetter(bn,"pointerHeight",0,O()),F.addGetterSetter(bn,"cornerRadius",0,E(4));class _n extends Re{_sceneFunc(t){var e=this.cornerRadius(),n=this.width(),i=this.height();if(t.beginPath(),e){let r=0,a=0,o=0,s=0;"number"===typeof e?r=a=o=s=Math.min(e,n/2,i/2):(r=Math.min(e[0]||0,n/2,i/2),a=Math.min(e[1]||0,n/2,i/2),s=Math.min(e[2]||0,n/2,i/2),o=Math.min(e[3]||0,n/2,i/2)),t.moveTo(r,0),t.lineTo(n-a,0),t.arc(n-a,a,a,3*Math.PI/2,0,!1),t.lineTo(n,i-s),t.arc(n-s,i-s,s,0,Math.PI/2,!1),t.lineTo(o,i),t.arc(o,i-o,o,Math.PI/2,Math.PI,!1),t.lineTo(0,r),t.arc(r,r,r,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,n,i);t.closePath(),t.fillStrokeShape(this)}}_n.prototype.className="Rect",s(_n),F.addGetterSetter(_n,"cornerRadius",0,E(4));class wn extends Re{_sceneFunc(t){const e=this._getPoints();t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var n=1;n<e.length;n++)t.lineTo(e[n].x,e[n].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,e=this.attrs.radius||0,n=[];for(var i=0;i<t;i++)n.push({x:e*Math.sin(2*i*Math.PI/t),y:-1*e*Math.cos(2*i*Math.PI/t)});return n}getSelfRect(){const t=this._getPoints();var e=t[0].x,n=t[0].y,i=t[0].x,r=t[0].y;return t.forEach((t=>{e=Math.min(e,t.x),n=Math.max(n,t.x),i=Math.min(i,t.y),r=Math.max(r,t.y)})),{x:e,y:i,width:n-e,height:r-i}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}wn.prototype.className="RegularPolygon",wn.prototype._centroid=!0,wn.prototype._attrsAffectingSize=["radius"],s(wn),F.addGetterSetter(wn,"radius",0,O()),F.addGetterSetter(wn,"sides",0,O());var kn=2*Math.PI;class Sn extends Re{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,kn,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),kn,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Sn.prototype.className="Ring",Sn.prototype._centroid=!0,Sn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],s(Sn),F.addGetterSetter(Sn,"innerRadius",0,O()),F.addGetterSetter(Sn,"outerRadius",0,O());class xn extends Re{constructor(t){super(t),this._updated=!0,this.anim=new Ve((()=>{var t=this._updated;return this._updated=!1,t})),this.on("animationChange.konva",(function(){this.frameIndex(0)})),this.on("frameIndexChange.konva",(function(){this._updated=!0})),this.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}))}_sceneFunc(t){var e=this.animation(),n=this.frameIndex(),i=4*n,r=this.animations()[e],a=this.frameOffsets(),o=r[i+0],s=r[i+1],c=r[i+2],l=r[i+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,c,l),t.closePath(),t.fillStrokeShape(this)),u)if(a){var h=a[e],d=2*n;t.drawImage(u,o,s,c,l,h[d+0],h[d+1],c,l)}else t.drawImage(u,o,s,c,l,0,0,c,l)}_hitFunc(t){var e=this.animation(),n=this.frameIndex(),i=4*n,r=this.animations()[e],a=this.frameOffsets(),o=r[i+2],s=r[i+3];if(t.beginPath(),a){var c=a[e],l=2*n;t.rect(c[l+0],c[l+1],o,s)}else t.rect(0,0,o,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval((function(){t._updateIndex()}),1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),e=this.animation(),n=this.animations(),i=n[e],r=i.length/4;t<r-1?this.frameIndex(t+1):this.frameIndex(0)}}xn.prototype.className="Sprite",s(xn),F.addGetterSetter(xn,"animation"),F.addGetterSetter(xn,"animations"),F.addGetterSetter(xn,"frameOffsets"),F.addGetterSetter(xn,"image"),F.addGetterSetter(xn,"frameIndex",0,O()),F.addGetterSetter(xn,"frameRate",17,O()),F.backCompat(xn,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Cn extends Re{_sceneFunc(t){var e=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var r=1;r<2*i;r++){var a=r%2===0?n:e,o=a*Math.sin(r*Math.PI/i),s=-1*a*Math.cos(r*Math.PI/i);t.lineTo(o,s)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}function Dn(t){return Array.from(t)}Cn.prototype.className="Star",Cn.prototype._centroid=!0,Cn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],s(Cn),F.addGetterSetter(Cn,"numPoints",5,O()),F.addGetterSetter(Cn,"innerRadius",0,O()),F.addGetterSetter(Cn,"outerRadius",0,O());var Tn,On="auto",En="center",An="justify",Pn="Change.konva",Mn="2d",Rn="-",In="left",Nn="text",$n="Text",Ln="top",Fn="bottom",Bn="middle",jn="normal",zn="px ",Hn=" ",Vn="right",Gn="word",Wn="char",Un="none",Yn="…",qn=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Xn=qn.length;function Kn(t){return t.split(",").map((t=>{t=t.trim();const e=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!n&&(t=`"${t}"`),t})).join(", ")}function Jn(){return Tn||(Tn=C.createCanvasElement().getContext(Mn),Tn)}function Zn(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Qn(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function ti(t){return t=t||{},t.fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}class ei extends Re{constructor(t){super(ti(t)),this._partialTextX=0,this._partialTextY=0;for(var e=0;e<Xn;e++)this.on(qn[e]+Pn,this._setTextData);this._setTextData()}_sceneFunc(t){var e=this.textArr,n=e.length;if(this.text()){var i,r=this.padding(),a=this.fontSize(),o=this.lineHeight()*a,s=this.verticalAlign(),c=0,l=this.align(),u=this.getWidth(),h=this.letterSpacing(),d=this.fill(),f=this.textDecoration(),p=-1!==f.indexOf("underline"),v=-1!==f.indexOf("line-through"),m=0,g=(m=o/2,0),y=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",Bn),t.setAttr("textAlign",In),s===Bn?c=(this.getHeight()-n*o-2*r)/2:s===Fn&&(c=this.getHeight()-n*o-2*r),t.translate(r,c+r),i=0;i<n;i++){g=0,y=0;var b,_,w,k=e[i],S=k.text,x=k.width,C=k.lastInParagraph;if(t.save(),l===Vn?g+=u-x-2*r:l===En&&(g+=(u-x-2*r)/2),p&&(t.save(),t.beginPath(),t.moveTo(g,m+y+Math.round(a/2)),b=S.split(" ").length-1,_=0===b,w=l===An&&C&&!_?u-2*r:x,t.lineTo(g+Math.round(w),m+y+Math.round(a/2)),t.lineWidth=a/15,t.strokeStyle=d,t.stroke(),t.restore()),v&&(t.save(),t.beginPath(),t.moveTo(g,m+y),b=S.split(" ").length-1,_=0===b,w=l===An&&C&&!_?u-2*r:x,t.lineTo(g+Math.round(w),m+y),t.lineWidth=a/15,t.strokeStyle=d,t.stroke(),t.restore()),0!==h||l===An){b=S.split(" ").length-1;for(var D=Dn(S),T=0;T<D.length;T++){var O=D[T];" "!==O||C||l!==An||(g+=(u-2*r-x)/b),this._partialTextX=g,this._partialTextY=m+y,this._partialText=O,t.fillStrokeShape(this),g+=this.measureSize(O).width+h}}else this._partialTextX=g,this._partialTextY=m+y,this._partialText=S,t.fillStrokeShape(this);t.restore(),n>1&&(m+=o)}}}_hitFunc(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}setText(t){var e=C._isString(t)?t:null===t||void 0===t?"":t+"";return this._setAttr(Nn,e),this}getWidth(){var t=this.attrs.width===On||void 0===this.attrs.width;return t?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){var t=this.attrs.height===On||void 0===this.attrs.height;return t?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return C.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var e,n=Jn(),i=this.fontSize();return n.save(),n.font=this._getContextFont(),e=n.measureText(t),n.restore(),{width:e.width,height:i}}_getContextFont(){return this.fontStyle()+Hn+this.fontVariant()+Hn+(this.fontSize()+zn)+Kn(this.fontFamily())}_addTextLine(t){this.align()===An&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e,lastInParagraph:!1})}_getTextWidth(t){var e=this.letterSpacing(),n=t.length;return Jn().measureText(t).width+(n?e*(n-1):0)}_setTextData(){var t=this.text().split("\n"),e=+this.fontSize(),n=0,i=this.lineHeight()*e,r=this.attrs.width,a=this.attrs.height,o=r!==On&&void 0!==r,s=a!==On&&void 0!==a,c=this.padding(),l=r-2*c,u=a-2*c,h=0,d=this.wrap(),f=d!==Un,p=d!==Wn&&f,v=this.ellipsis();this.textArr=[],Jn().font=this._getContextFont();for(var m=v?this._getTextWidth(Yn):0,g=0,y=t.length;g<y;++g){var b=t[g],_=this._getTextWidth(b);if(o&&_>l)while(b.length>0){var w=0,k=b.length,S="",x=0;while(w<k){var C=w+k>>>1,D=b.slice(0,C+1),T=this._getTextWidth(D)+m;T<=l?(w=C+1,S=D,x=T):k=C}if(!S)break;if(p){var O,E=b[S.length],A=E===Hn||E===Rn;O=A&&x<=l?S.length:Math.max(S.lastIndexOf(Hn),S.lastIndexOf(Rn))+1,O>0&&(w=O,S=S.slice(0,w),x=this._getTextWidth(S))}S=S.trimRight(),this._addTextLine(S),n=Math.max(n,x),h+=i;var P=this._shouldHandleEllipsis(h);if(P){this._tryToAddEllipsisToLastLine();break}if(b=b.slice(w),b=b.trimLeft(),b.length>0&&(_=this._getTextWidth(b),_<=l)){this._addTextLine(b),h+=i,n=Math.max(n,_);break}}else this._addTextLine(b),h+=i,n=Math.max(n,_),this._shouldHandleEllipsis(h)&&g<y-1&&this._tryToAddEllipsisToLastLine();if(s&&h+i>u)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=e,this.textWidth=n}_shouldHandleEllipsis(t){var e=+this.fontSize(),n=this.lineHeight()*e,i=this.attrs.height,r=i!==On&&void 0!==i,a=this.padding(),o=i-2*a,s=this.wrap(),c=s!==Un;return!c||r&&t+n>o}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,e=t!==On&&void 0!==t,n=this.padding(),i=t-2*n,r=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(a&&r){if(e){var o=this._getTextWidth(a.text+Yn)<i;o||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Yn)}}getStrokeScaleEnabled(){return!0}}ei.prototype._fillFunc=Zn,ei.prototype._strokeFunc=Qn,ei.prototype.className=$n,ei.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],s(ei),F.overWriteSetter(ei,"width",A()),F.overWriteSetter(ei,"height",A()),F.addGetterSetter(ei,"fontFamily","Arial"),F.addGetterSetter(ei,"fontSize",12,O()),F.addGetterSetter(ei,"fontStyle",jn),F.addGetterSetter(ei,"fontVariant",jn),F.addGetterSetter(ei,"padding",0,O()),F.addGetterSetter(ei,"align",In),F.addGetterSetter(ei,"verticalAlign",Ln),F.addGetterSetter(ei,"lineHeight",1,O()),F.addGetterSetter(ei,"wrap",Gn),F.addGetterSetter(ei,"ellipsis",!1,I()),F.addGetterSetter(ei,"letterSpacing",0,O()),F.addGetterSetter(ei,"text","",P()),F.addGetterSetter(ei,"textDecoration","");var ni="",ii="normal";function ri(t){t.fillText(this.partialText,0,0)}function ai(t){t.strokeText(this.partialText,0,0)}class oi extends Re{constructor(t){super(t),this.dummyCanvas=C.createCanvasElement(),this.dataArray=[],this.dataArray=an.parsePathData(this.attrs.data),this.on("dataChange.konva",(function(){this.dataArray=an.parsePathData(this.attrs.data),this._setTextData()})),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),i=this.fontSize(),r=this.glyphInfo;"underline"===e&&t.beginPath();for(var a=0;a<r.length;a++){t.save();var o=r[a].p0;t.translate(o.x,o.y),t.rotate(r[a].rotation),this.partialText=r[a].text,t.fillStrokeShape(this),"underline"===e&&(0===a&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var i=0;i<e.length;i++){var r=e[i].p1;t.lineTo(r.x,r.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return C.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return ei.prototype.setText.call(this,t)}_getContextFont(){return ei.prototype._getContextFont.call(this)}_getTextSize(t){var e=this.dummyCanvas,n=e.getContext("2d");n.save(),n.font=this._getContextFont();var i=n.measureText(t);return n.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var t=this,e=this._getTextSize(this.attrs.text),n=this.letterSpacing(),i=this.align(),r=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var o=0,s=0;s<t.dataArray.length;s++)t.dataArray[s].pathLength>0&&(o+=t.dataArray[s].pathLength);var c=0;"center"===i&&(c=Math.max(0,o/2-a/2)),"right"===i&&(c=Math.max(0,o-a));for(var l,u,h,d=Dn(this.text()),f=this.text().split(" ").length-1,p=-1,v=0,m=function(){v=0;for(var e=t.dataArray,n=p+1;n<e.length;n++){if(e[n].pathLength>0)return p=n,e[n];"M"===e[n].command&&(l={x:e[n].points[0],y:e[n].points[1]})}return{}},g=function(e){var r=t._getTextSize(e).width+n;" "===e&&"justify"===i&&(r+=(o-a)/f);var s=0,c=0;u=void 0;while(Math.abs(r-s)/r>.01&&c<20){c++;var d=s;while(void 0===h)h=m(),h&&d+h.pathLength<r&&(d+=h.pathLength,h=void 0);if(0===Object.keys(h).length||void 0===l)return;var p=!1;switch(h.command){case"L":an.getLineLength(l.x,l.y,h.points[0],h.points[1])>r?u=an.getPointOnLine(r,l.x,l.y,h.points[0],h.points[1],l.x,l.y):h=void 0;break;case"A":var g=h.points[4],y=h.points[5],b=h.points[4]+y;0===v?v=g+1e-8:r>s?v+=Math.PI/180*y/Math.abs(y):v-=Math.PI/360*y/Math.abs(y),(y<0&&v<b||y>=0&&v>b)&&(v=b,p=!0),u=an.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],v,h.points[6]);break;case"C":0===v?v=r>h.pathLength?1e-8:r/h.pathLength:r>s?v+=(r-s)/h.pathLength/2:v=Math.max(v-(s-r)/h.pathLength/2,0),v>1&&(v=1,p=!0),u=an.getPointOnCubicBezier(v,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3],h.points[4],h.points[5]);break;case"Q":0===v?v=r/h.pathLength:r>s?v+=(r-s)/h.pathLength:v-=(s-r)/h.pathLength,v>1&&(v=1,p=!0),u=an.getPointOnQuadraticBezier(v,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3]);break}void 0!==u&&(s=an.getLineLength(l.x,l.y,u.x,u.y)),p&&(p=!1,h=void 0)}},y="C",b=t._getTextSize(y).width+n,_=c/b-1,w=0;w<_;w++){if(g(y),void 0===l||void 0===u)break;l=u}for(var k=0;k<d.length;k++){if(g(d[k]),void 0===l||void 0===u)break;var S=an.getLineLength(l.x,l.y,u.x,u.y),x=0;if(r)try{x=r(d[k-1],d[k])*this.fontSize()}catch(T){x=0}l.x+=x,u.x+=x,this.textWidth+=x;var C=an.getPointOnLine(x+S/2,l.x,l.y,u.x,u.y),D=Math.atan2(u.y-l.y,u.x-l.x);this.glyphInfo.push({transposeX:C.x,transposeY:C.y,text:d[k],rotation:D,p0:l,p1:u}),l=u}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach((function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)}));for(var e,n,i=t[0]||0,r=t[0]||0,a=t[1]||0,o=t[1]||0,s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],i=Math.min(i,e),r=Math.max(r,e),a=Math.min(a,n),o=Math.max(o,n);var c=this.fontSize();return{x:i-c/2,y:a-c/2,width:r-i+c,height:o-a+c}}}oi.prototype._fillFunc=ri,oi.prototype._strokeFunc=ai,oi.prototype._fillFuncHit=ri,oi.prototype._strokeFuncHit=ai,oi.prototype.className="TextPath",oi.prototype._attrsAffectingSize=["text","fontSize","data"],s(oi),F.addGetterSetter(oi,"data"),F.addGetterSetter(oi,"fontFamily","Arial"),F.addGetterSetter(oi,"fontSize",12,O()),F.addGetterSetter(oi,"fontStyle",ii),F.addGetterSetter(oi,"align","left"),F.addGetterSetter(oi,"letterSpacing",0,O()),F.addGetterSetter(oi,"textBaseline","middle"),F.addGetterSetter(oi,"fontVariant",ii),F.addGetterSetter(oi,"text",ni),F.addGetterSetter(oi,"textDecoration",null),F.addGetterSetter(oi,"kerningFunc",null);var si="tr-konva",ci=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map((t=>t+`.${si}`)).join(" "),li="nodesRect",ui=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],hi={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const di="ontouchstart"in o._global;function fi(t,e){if("rotater"===t)return"crosshair";e+=C.degToRad(hi[t]||0);var n=(C.radToDeg(e)%360+360)%360;return C._inRange(n,337.5,360)||C._inRange(n,0,22.5)?"ns-resize":C._inRange(n,22.5,67.5)?"nesw-resize":C._inRange(n,67.5,112.5)?"ew-resize":C._inRange(n,112.5,157.5)?"nwse-resize":C._inRange(n,157.5,202.5)?"ns-resize":C._inRange(n,202.5,247.5)?"nesw-resize":C._inRange(n,247.5,292.5)?"ew-resize":C._inRange(n,292.5,337.5)?"nwse-resize":(C.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var pi=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],vi=1e8;function mi(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function gi(t,e,n){const i=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),r=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return Object.assign(Object.assign({},t),{rotation:t.rotation+e,x:i,y:r})}function yi(t,e){const n=mi(t);return gi(t,e,n)}function bi(t,e,n){let i=e;for(let r=0;r<t.length;r++){const a=o.getAngle(t[r]),s=Math.abs(a-e)%(2*Math.PI),c=Math.min(s,2*Math.PI-s);c<n&&(i=a)}return i}class _i extends ze{constructor(t){super(t),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(ci,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return C.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return si+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,1===t.length&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((t=>{const e=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()},n=t._attrsAffectingSize.map((t=>t+"Change."+this._getEventNamespace())).join(" ");t.on(n,e),t.on(ui.map((t=>t+`.${this._getEventNamespace()}`)).join(" "),e),t.on(`absoluteTransformChange.${this._getEventNamespace()}`,e),this._proxyDrag(t)})),this._resetTransformCache();var e=!!this.findOne(".top-left");return e&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,(n=>{e=t.getAbsolutePosition(),this.isDragging()||t===this.findOne(".back")||this.startDrag(n,!1)})),t.on(`dragmove.${this._getEventNamespace()}`,(n=>{if(!e)return;const i=t.getAbsolutePosition(),r=i.x-e.x,a=i.y-e.y;this.nodes().forEach((e=>{if(e===t)return;if(e.isDragging())return;const i=e.getAbsolutePosition();e.setAbsolutePosition({x:i.x+r,y:i.y+a}),e.startDrag(n)})),e=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((t=>{t.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(li),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(li,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),s=i.x*r.x-t.offsetX()*r.x,c=i.y*r.y-t.offsetY()*r.y;const l=(o.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI),u={x:a.x+s*Math.cos(l)+c*Math.sin(-l),y:a.y+c*Math.cos(l)+s*Math.sin(l),width:i.width*r.x,height:i.height*r.y,rotation:l};return gi(u,-o.getAngle(e),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-vi,y:-vi,width:0,height:0,rotation:0};const e=[];this.nodes().map((t=>{const n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],r=t.getAbsoluteTransform();i.forEach((function(t){var n=r.point(t);e.push(n)}))}));const n=new c;var i,r,a,s;n.rotate(-o.getAngle(this.rotation())),e.forEach((function(t){var e=n.point(t);void 0===i&&(i=a=e.x,r=s=e.y),i=Math.min(i,e.x),r=Math.min(r,e.y),a=Math.max(a,e.x),s=Math.max(s,e.y)})),n.invert();const l=n.point({x:i,y:r});return{x:l.x,y:l.y,width:a-i,height:s-r,rotation:o.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),pi.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")}_createAnchor(t){var e=new _n({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:di?10:"auto"}),n=this;e.on("mousedown touchstart",(function(t){n._handleMouseDown(t)})),e.on("dragstart",(t=>{e.stopDrag(),t.cancelBubble=!0})),e.on("dragend",(t=>{t.cancelBubble=!0})),e.on("mouseenter",(()=>{var n=o.getAngle(this.rotation()),i=fi(t,n);e.getStage().content&&(e.getStage().content.style.cursor=i),this._cursorChange=!0})),e.on("mouseout",(()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(e)}_createBack(){var t=new Re({name:"back",width:0,height:0,draggable:!0,sceneFunc(t){var e=this.getParent(),n=e.padding();t.beginPath(),t.rect(-n,-n,this.width()+2*n,this.height()+2*n),t.moveTo(this.width()/2,-n),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateAnchorOffset()*C._sign(this.height())-n),t.fillStrokeShape(this)},hitFunc:(t,e)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();t.beginPath(),t.rect(-n,-n,e.width()+2*n,e.height()+2*n),t.fillStrokeShape(e)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",(t=>{t.cancelBubble=!0})),t.on("dragmove",(t=>{t.cancelBubble=!0})),t.on("dragend",(t=>{t.cancelBubble=!0})),this.on("dragmove",(t=>{this.update()}))}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),n=e.width,i=e.height,r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/r),this.cos=Math.abs(n/r),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var a=t.target.getAbsolutePosition(),o=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-a.x,y:o.y-a.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach((e=>{e._fire("transformstart",{evt:t.evt,target:e})}))}_handleMouseMove(t){var e,n,i,r=this.findOne("."+this._movingAnchorName),a=r.getStage();a.setPointersPositions(t);const s=a.getPointerPosition();let c={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const l=r.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(l,c,t)),r.setAbsolutePosition(c);const u=r.getAbsolutePosition();if(l.x!==u.x||l.y!==u.y)if("rotater"!==this._movingAnchorName){var h=this.keepRatio()||t.shiftKey,d=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(h){var f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(f.y-r.y(),2));var p=this.findOne(".top-left").x()>f.x?-1:1,v=this.findOne(".top-left").y()>f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,this.findOne(".top-left").x(f.x-e),this.findOne(".top-left").y(f.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(h){f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(f.y-r.y(),2));p=this.findOne(".top-right").x()<f.x?-1:1,v=this.findOne(".top-right").y()>f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,this.findOne(".top-right").x(f.x+e),this.findOne(".top-right").y(f.y-n)}var m=r.position();this.findOne(".top-left").y(m.y),this.findOne(".bottom-right").x(m.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(h){f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(f.x-r.x(),2)+Math.pow(r.y()-f.y,2));p=f.x<r.x()?-1:1,v=r.y()<f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,r.x(f.x-e),r.y(f.y+n)}m=r.position(),this.findOne(".top-left").x(m.x),this.findOne(".bottom-right").y(m.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(r.y());else if("bottom-right"===this._movingAnchorName){if(h){f=d?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(r.x()-f.x,2)+Math.pow(r.y()-f.y,2));p=this.findOne(".bottom-right").x()<f.x?-1:1,v=this.findOne(".bottom-right").y()<f.y?-1:1;e=i*this.cos*p,n=i*this.sin*v,this.findOne(".bottom-right").x(f.x+e),this.findOne(".bottom-right").y(f.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));d=this.centeredScaling()||t.altKey;if(d){var g=this.findOne(".top-left"),y=this.findOne(".bottom-right"),b=g.x(),_=g.y(),w=this.getWidth()-y.x(),k=this.getHeight()-y.y();y.move({x:-b,y:-_}),g.move({x:w,y:k})}var S=this.findOne(".top-left").getAbsolutePosition();e=S.x,n=S.y;var x=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),C=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:n,width:x,height:C,rotation:o.getAngle(this.rotation())},t)}else{var D=this._getNodeRect();e=r.x()-D.width/2,n=-r.y()+D.height/2;let i=Math.atan2(-n,e)+Math.PI/2;D.height<0&&(i-=Math.PI);var T=o.getAngle(this.rotation());const a=T+i,s=o.getAngle(this.rotationSnapTolerance()),c=bi(this.rotationSnaps(),a,s),l=c-D.rotation,u=yi(D,l);this._fitNodesInto(u,t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var e=this.getNode();this._fire("transformend",{evt:t,target:e}),e&&this._nodes.forEach((e=>{e._fire("transformend",{evt:t,target:e})})),this._movingAnchorName=null}}_fitNodesInto(t,e){var n=this._getNodeRect();const i=1;if(C._inRange(t.width,2*-this.padding()-i,i))return void this.update();if(C._inRange(t.height,2*-this.padding()-i,i))return void this.update();const r=this.flipEnabled();var a=new c;if(a.rotate(o.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const e=a.point({x:2*-this.padding(),y:0});if(t.x+=e.x,t.y+=e.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,!r)return void this.update()}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const e=a.point({x:2*this.padding(),y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.width+=2*this.padding(),!r)return void this.update()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const e=a.point({x:0,y:2*-this.padding()});if(t.x+=e.x,t.y+=e.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding(),!r)return void this.update()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const e=a.point({x:0,y:2*this.padding()});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding(),!r)return void this.update()}if(this.boundBoxFunc()){const e=this.boundBoxFunc()(n,t);e?t=e:C.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,l=new c;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/s,n.height/s);const u=new c;u.translate(t.x,t.y),u.rotate(t.rotation),u.scale(t.width/s,t.height/s);const h=u.multiply(l.invert());this._nodes.forEach((t=>{var n;const i=t.getParent().getAbsoluteTransform(),r=t.getTransform().copy();r.translate(t.offsetX(),t.offsetY());const a=new c;a.multiply(i.copy().invert()).multiply(h).multiply(i).multiply(r);const o=a.decompose();t.setAttrs(o),this._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t}),null===(n=t.getLayer())||void 0===n||n.batchDraw()})),this.rotation(C._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){const n=this.findOne(t);n.setAttrs(e)}update(){var t,e=this._getNodeRect();this.rotation(C._getRotation(e.rotation));var n=e.width,i=e.height,r=this.enabledAnchors(),a=this.resizeEnabled(),o=this.padding(),s=this.anchorSize();this.find("._anchor").forEach((t=>{t.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+o,offsetY:s/2+o,visible:a&&r.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+o,visible:a&&r.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-o,offsetY:s/2+o,visible:a&&r.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:s/2+o,visible:a&&r.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:s/2-o,visible:a&&r.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:s/2+o,offsetY:s/2-o,visible:a&&r.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:s/2-o,visible:a&&r.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:s/2-o,offsetY:s/2-o,visible:a&&r.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*C._sign(i)-o,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),null===(t=this.getLayer())||void 0===t||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),ze.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Dt.prototype.toObject.call(this)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}function wi(t){return t instanceof Array||C.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach((function(t){-1===pi.indexOf(t)&&C.warn("Unknown anchor name: "+t+". Available names are: "+pi.join(", "))})),t||[]}_i.prototype.className="Transformer",s(_i),F.addGetterSetter(_i,"enabledAnchors",pi,wi),F.addGetterSetter(_i,"flipEnabled",!0,I()),F.addGetterSetter(_i,"resizeEnabled",!0),F.addGetterSetter(_i,"anchorSize",10,O()),F.addGetterSetter(_i,"rotateEnabled",!0),F.addGetterSetter(_i,"rotationSnaps",[]),F.addGetterSetter(_i,"rotateAnchorOffset",50,O()),F.addGetterSetter(_i,"rotationSnapTolerance",5,O()),F.addGetterSetter(_i,"borderEnabled",!0),F.addGetterSetter(_i,"anchorStroke","rgb(0, 161, 255)"),F.addGetterSetter(_i,"anchorStrokeWidth",1,O()),F.addGetterSetter(_i,"anchorFill","white"),F.addGetterSetter(_i,"anchorCornerRadius",0,O()),F.addGetterSetter(_i,"borderStroke","rgb(0, 161, 255)"),F.addGetterSetter(_i,"borderStrokeWidth",1,O()),F.addGetterSetter(_i,"borderDash"),F.addGetterSetter(_i,"keepRatio",!0),F.addGetterSetter(_i,"centeredScaling",!1),F.addGetterSetter(_i,"ignoreStroke",!1),F.addGetterSetter(_i,"padding",0,O()),F.addGetterSetter(_i,"node"),F.addGetterSetter(_i,"nodes"),F.addGetterSetter(_i,"boundBoxFunc"),F.addGetterSetter(_i,"anchorDragBoundFunc"),F.addGetterSetter(_i,"shouldOverdrawWholeArea",!1),F.addGetterSetter(_i,"useSingleNodeRotation",!0),F.backCompat(_i,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class ki extends Re{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,o.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}function Si(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}ki.prototype.className="Wedge",ki.prototype._centroid=!0,ki.prototype._attrsAffectingSize=["radius"],s(ki),F.addGetterSetter(ki,"radius",0,O()),F.addGetterSetter(ki,"angle",0,O()),F.addGetterSetter(ki,"clockwise",!1),F.backCompat(ki,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var xi=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Ci=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Di(t,e){var n,i,r,a,o,s,c,l,u,h,d,f,p,v,m,g,y,b,_,w,k,S,x,C,D=t.data,T=t.width,O=t.height,E=e+e+1,A=T-1,P=O-1,M=e+1,R=M*(M+1)/2,I=new Si,N=null,$=I,L=null,F=null,B=xi[e],j=Ci[e];for(r=1;r<E;r++)$=$.next=new Si,r===M&&(N=$);for($.next=I,c=s=0,i=0;i<O;i++){for(g=y=b=_=l=u=h=d=0,f=M*(w=D[s]),p=M*(k=D[s+1]),v=M*(S=D[s+2]),m=M*(x=D[s+3]),l+=R*w,u+=R*k,h+=R*S,d+=R*x,$=I,r=0;r<M;r++)$.r=w,$.g=k,$.b=S,$.a=x,$=$.next;for(r=1;r<M;r++)a=s+((A<r?A:r)<<2),l+=($.r=w=D[a])*(C=M-r),u+=($.g=k=D[a+1])*C,h+=($.b=S=D[a+2])*C,d+=($.a=x=D[a+3])*C,g+=w,y+=k,b+=S,_+=x,$=$.next;for(L=I,F=N,n=0;n<T;n++)D[s+3]=x=d*B>>j,0!==x?(x=255/x,D[s]=(l*B>>j)*x,D[s+1]=(u*B>>j)*x,D[s+2]=(h*B>>j)*x):D[s]=D[s+1]=D[s+2]=0,l-=f,u-=p,h-=v,d-=m,f-=L.r,p-=L.g,v-=L.b,m-=L.a,a=c+((a=n+e+1)<A?a:A)<<2,g+=L.r=D[a],y+=L.g=D[a+1],b+=L.b=D[a+2],_+=L.a=D[a+3],l+=g,u+=y,h+=b,d+=_,L=L.next,f+=w=F.r,p+=k=F.g,v+=S=F.b,m+=x=F.a,g-=w,y-=k,b-=S,_-=x,F=F.next,s+=4;c+=T}for(n=0;n<T;n++){for(y=b=_=g=u=h=d=l=0,s=n<<2,f=M*(w=D[s]),p=M*(k=D[s+1]),v=M*(S=D[s+2]),m=M*(x=D[s+3]),l+=R*w,u+=R*k,h+=R*S,d+=R*x,$=I,r=0;r<M;r++)$.r=w,$.g=k,$.b=S,$.a=x,$=$.next;for(o=T,r=1;r<=e;r++)s=o+n<<2,l+=($.r=w=D[s])*(C=M-r),u+=($.g=k=D[s+1])*C,h+=($.b=S=D[s+2])*C,d+=($.a=x=D[s+3])*C,g+=w,y+=k,b+=S,_+=x,$=$.next,r<P&&(o+=T);for(s=n,L=I,F=N,i=0;i<O;i++)a=s<<2,D[a+3]=x=d*B>>j,x>0?(x=255/x,D[a]=(l*B>>j)*x,D[a+1]=(u*B>>j)*x,D[a+2]=(h*B>>j)*x):D[a]=D[a+1]=D[a+2]=0,l-=f,u-=p,h-=v,d-=m,f-=L.r,p-=L.g,v-=L.b,m-=L.a,a=n+((a=i+M)<P?a:P)*T<<2,l+=g+=L.r=D[a],u+=y+=L.g=D[a+1],h+=b+=L.b=D[a+2],d+=_+=L.a=D[a+3],L=L.next,f+=w=F.r,p+=k=F.g,v+=S=F.b,m+=x=F.a,g-=w,y-=k,b-=S,_-=x,F=F.next,s+=T}}const Ti=function(t){var e=Math.round(this.blurRadius());e>0&&Di(t,e)};F.addGetterSetter(Dt,"blurRadius",0,O(),F.afterSetFilter);const Oi=function(t){var e,n=255*this.brightness(),i=t.data,r=i.length;for(e=0;e<r;e+=4)i[e]+=n,i[e+1]+=n,i[e+2]+=n};F.addGetterSetter(Dt,"brightness",0,O(),F.afterSetFilter);const Ei=function(t){var e,n=Math.pow((this.contrast()+100)/100,2),i=t.data,r=i.length,a=150,o=150,s=150;for(e=0;e<r;e+=4)a=i[e],o=i[e+1],s=i[e+2],a/=255,a-=.5,a*=n,a+=.5,a*=255,o/=255,o-=.5,o*=n,o+=.5,o*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,i[e]=a,i[e+1]=o,i[e+2]=s};F.addGetterSetter(Dt,"contrast",0,O(),F.afterSetFilter);const Ai=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),i=this.embossDirection(),r=this.embossBlend(),a=0,o=0,s=t.data,c=t.width,l=t.height,u=4*c,h=l;switch(i){case"top-left":a=-1,o=-1;break;case"top":a=-1,o=0;break;case"top-right":a=-1,o=1;break;case"right":a=0,o=1;break;case"bottom-right":a=1,o=1;break;case"bottom":a=1,o=0;break;case"bottom-left":a=1,o=-1;break;case"left":a=0,o=-1;break;default:C.error("Unknown emboss direction: "+i)}do{var d=(h-1)*u,f=a;h+f<1&&(f=0),h+f>l&&(f=0);var p=(h-1+f)*c*4,v=c;do{var m=d+4*(v-1),g=o;v+g<1&&(g=0),v+g>c&&(g=0);var y=p+4*(v-1+g),b=s[m]-s[y],_=s[m+1]-s[y+1],w=s[m+2]-s[y+2],k=b,S=k>0?k:-k,x=_>0?_:-_,D=w>0?w:-w;if(x>S&&(k=_),D>S&&(k=w),k*=e,r){var T=s[m]+k,O=s[m+1]+k,E=s[m+2]+k;s[m]=T>255?255:T<0?0:T,s[m+1]=O>255?255:O<0?0:O,s[m+2]=E>255?255:E<0?0:E}else{var A=n-k;A<0?A=0:A>255&&(A=255),s[m]=s[m+1]=s[m+2]=A}}while(--v)}while(--h)};function Pi(t,e,n,i,r){var a,o=n-e,s=r-i;return 0===o?i+s/2:0===s?i:(a=(t-e)/o,a=s*a+i,a)}F.addGetterSetter(Dt,"embossStrength",.5,O(),F.afterSetFilter),F.addGetterSetter(Dt,"embossWhiteLevel",.5,O(),F.afterSetFilter),F.addGetterSetter(Dt,"embossDirection","top-left",null,F.afterSetFilter),F.addGetterSetter(Dt,"embossBlend",!1,null,F.afterSetFilter);const Mi=function(t){var e,n,i,r,a=t.data,o=a.length,s=a[0],c=s,l=a[1],u=l,h=a[2],d=h,f=this.enhance();if(0!==f){for(r=0;r<o;r+=4)e=a[r+0],e<s?s=e:e>c&&(c=e),n=a[r+1],n<l?l=n:n>u&&(u=n),i=a[r+2],i<h?h=i:i>d&&(d=i);var p,v,m,g,y,b,_,w,k;for(c===s&&(c=255,s=0),u===l&&(u=255,l=0),d===h&&(d=255,h=0),f>0?(v=c+f*(255-c),m=s-f*(s-0),y=u+f*(255-u),b=l-f*(l-0),w=d+f*(255-d),k=h-f*(h-0)):(p=.5*(c+s),v=c+f*(c-p),m=s+f*(s-p),g=.5*(u+l),y=u+f*(u-g),b=l+f*(l-g),_=.5*(d+h),w=d+f*(d-_),k=h+f*(h-_)),r=0;r<o;r+=4)a[r+0]=Pi(a[r+0],s,c,m,v),a[r+1]=Pi(a[r+1],l,u,b,y),a[r+2]=Pi(a[r+2],h,d,k,w)}};F.addGetterSetter(Dt,"enhance",0,O(),F.afterSetFilter);const Ri=function(t){var e,n,i=t.data,r=i.length;for(e=0;e<r;e+=4)n=.34*i[e]+.5*i[e+1]+.16*i[e+2],i[e]=n,i[e+1]=n,i[e+2]=n};F.addGetterSetter(Dt,"hue",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"saturation",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"luminance",0,O(),F.afterSetFilter);const Ii=function(t){var e,n,i,r,a,o=t.data,s=o.length,c=1,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,h=127*this.luminance(),d=c*l*Math.cos(u*Math.PI/180),f=c*l*Math.sin(u*Math.PI/180),p=.299*c+.701*d+.167*f,v=.587*c-.587*d+.33*f,m=.114*c-.114*d-.497*f,g=.299*c-.299*d-.328*f,y=.587*c+.413*d+.035*f,b=.114*c-.114*d+.293*f,_=.299*c-.3*d+1.25*f,w=.587*c-.586*d-1.05*f,k=.114*c+.886*d-.2*f;for(e=0;e<s;e+=4)n=o[e+0],i=o[e+1],r=o[e+2],a=o[e+3],o[e+0]=p*n+v*i+m*r+h,o[e+1]=g*n+y*i+b*r+h,o[e+2]=_*n+w*i+k*r+h,o[e+3]=a},Ni=function(t){var e,n,i,r,a,o=t.data,s=o.length,c=Math.pow(2,this.value()),l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,h=c*l*Math.cos(u*Math.PI/180),d=c*l*Math.sin(u*Math.PI/180),f=.299*c+.701*h+.167*d,p=.587*c-.587*h+.33*d,v=.114*c-.114*h-.497*d,m=.299*c-.299*h-.328*d,g=.587*c+.413*h+.035*d,y=.114*c-.114*h+.293*d,b=.299*c-.3*h+1.25*d,_=.587*c-.586*h-1.05*d,w=.114*c+.886*h-.2*d;for(e=0;e<s;e+=4)n=o[e+0],i=o[e+1],r=o[e+2],a=o[e+3],o[e+0]=f*n+p*i+v*r,o[e+1]=m*n+g*i+y*r,o[e+2]=b*n+_*i+w*r,o[e+3]=a};F.addGetterSetter(Dt,"hue",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"saturation",0,O(),F.afterSetFilter),F.addGetterSetter(Dt,"value",0,O(),F.afterSetFilter);const $i=function(t){var e,n=t.data,i=n.length;for(e=0;e<i;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]};var Li=function(t,e,n){var i,r,a,o,s=t.data,c=e.data,l=t.width,u=t.height,h=n.polarCenterX||l/2,d=n.polarCenterY||u/2,f=0,p=0,v=0,m=0,g=Math.sqrt(h*h+d*d);r=l-h,a=u-d,o=Math.sqrt(r*r+a*a),g=o>g?o:g;var y,b,_,w,k=u,S=l,x=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(_=Math.sin(b*x),w=Math.cos(b*x),y=0;y<k;y+=1)r=Math.floor(h+g*y/k*w),a=Math.floor(d+g*y/k*_),i=4*(a*l+r),f=s[i+0],p=s[i+1],v=s[i+2],m=s[i+3],i=4*(b+y*l),c[i+0]=f,c[i+1]=p,c[i+2]=v,c[i+3]=m},Fi=function(t,e,n){var i,r,a,o,s,c,l=t.data,u=e.data,h=t.width,d=t.height,f=n.polarCenterX||h/2,p=n.polarCenterY||d/2,v=0,m=0,g=0,y=0,b=Math.sqrt(f*f+p*p);r=h-f,a=d-p,c=Math.sqrt(r*r+a*a),b=c>b?c:b;var _,w,k,S,x=d,C=h,D=n.polarRotation||0;for(r=0;r<h;r+=1)for(a=0;a<d;a+=1)o=r-f,s=a-p,_=Math.sqrt(o*o+s*s)*x/b,w=(180*Math.atan2(s,o)/Math.PI+360+D)%360,w=w*C/360,k=Math.floor(w),S=Math.floor(_),i=4*(S*h+k),v=l[i+0],m=l[i+1],g=l[i+2],y=l[i+3],i=4*(a*h+r),u[i+0]=v,u[i+1]=m,u[i+2]=g,u[i+3]=y};const Bi=function(t){var e,n,i,r,a,o,s,c,l,u,h=t.width,d=t.height,f=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),v=Math.floor(h*(p%360)/360);if(!(f<1)){var m=C.createCanvasElement();m.width=h,m.height=d;var g=m.getContext("2d").getImageData(0,0,h,d);Li(t,g,{polarCenterX:h/2,polarCenterY:d/2});var y=h/Math.pow(2,f);while(y<=8)y*=2,f-=1;y=Math.ceil(y);var b=y,_=0,w=b,k=1;for(v+y>h&&(_=b,w=0,k=-1),n=0;n<d;n+=1)for(e=_;e!==w;e+=k)i=Math.round(e+v)%h,l=4*(h*n+i),a=g.data[l+0],o=g.data[l+1],s=g.data[l+2],c=g.data[l+3],u=4*(h*n+e),g.data[u+0]=a,g.data[u+1]=o,g.data[u+2]=s,g.data[u+3]=c;for(n=0;n<d;n+=1)for(b=Math.floor(y),r=0;r<f;r+=1){for(e=0;e<b+1;e+=1)l=4*(h*n+e),a=g.data[l+0],o=g.data[l+1],s=g.data[l+2],c=g.data[l+3],u=4*(h*n+2*b-e-1),g.data[u+0]=a,g.data[u+1]=o,g.data[u+2]=s,g.data[u+3]=c;b*=2}Fi(g,t,{polarRotation:0})}};function ji(t,e,n){var i=4*(n*t.width+e),r=[];return r.push(t.data[i++],t.data[i++],t.data[i++],t.data[i++]),r}function zi(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function Hi(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function Vi(t,e){var n=ji(t,0,0),i=ji(t,t.width-1,0),r=ji(t,0,t.height-1),a=ji(t,t.width-1,t.height-1),o=e||10;if(zi(n,i)<o&&zi(i,a)<o&&zi(a,r)<o&&zi(r,n)<o){for(var s=Hi([i,n,a,r]),c=[],l=0;l<t.width*t.height;l++){var u=zi(s,[t.data[4*l],t.data[4*l+1],t.data[4*l+2]]);c[l]=u<o?0:255}return c}}function Gi(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function Wi(t,e,n){for(var i=[1,1,1,1,0,1,1,1,1],r=Math.round(Math.sqrt(i.length)),a=Math.floor(r/2),o=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var l=s*e+c,u=0,h=0;h<r;h++)for(var d=0;d<r;d++){var f=s+h-a,p=c+d-a;if(f>=0&&f<n&&p>=0&&p<e){var v=f*e+p,m=i[h*r+d];u+=t[v]*m}}o[l]=2040===u?255:0}return o}function Ui(t,e,n){for(var i=[1,1,1,1,1,1,1,1,1],r=Math.round(Math.sqrt(i.length)),a=Math.floor(r/2),o=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var l=s*e+c,u=0,h=0;h<r;h++)for(var d=0;d<r;d++){var f=s+h-a,p=c+d-a;if(f>=0&&f<n&&p>=0&&p<e){var v=f*e+p,m=i[h*r+d];u+=t[v]*m}}o[l]=u>=1020?255:0}return o}function Yi(t,e,n){for(var i=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],r=Math.round(Math.sqrt(i.length)),a=Math.floor(r/2),o=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var l=s*e+c,u=0,h=0;h<r;h++)for(var d=0;d<r;d++){var f=s+h-a,p=c+d-a;if(f>=0&&f<n&&p>=0&&p<e){var v=f*e+p,m=i[h*r+d];u+=t[v]*m}}o[l]=u}return o}F.addGetterSetter(Dt,"kaleidoscopePower",2,O(),F.afterSetFilter),F.addGetterSetter(Dt,"kaleidoscopeAngle",0,O(),F.afterSetFilter);const qi=function(t){var e=this.threshold(),n=Vi(t,e);return n&&(n=Wi(n,t.width,t.height),n=Ui(n,t.width,t.height),n=Yi(n,t.width,t.height),Gi(t,n)),t};F.addGetterSetter(Dt,"threshold",0,O(),F.afterSetFilter);const Xi=function(t){var e,n=255*this.noise(),i=t.data,r=i.length,a=n/2;for(e=0;e<r;e+=4)i[e+0]+=a-2*a*Math.random(),i[e+1]+=a-2*a*Math.random(),i[e+2]+=a-2*a*Math.random()};F.addGetterSetter(Dt,"noise",.2,O(),F.afterSetFilter);const Ki=function(t){var e,n,i,r,a,o,s,c,l,u,h,d,f,p,v=Math.ceil(this.pixelSize()),m=t.width,g=t.height,y=Math.ceil(m/v),b=Math.ceil(g/v),_=t.data;if(v<=0)C.error("pixelSize value can not be <= 0");else for(d=0;d<y;d+=1)for(f=0;f<b;f+=1){for(r=0,a=0,o=0,s=0,c=d*v,l=c+v,u=f*v,h=u+v,p=0,e=c;e<l;e+=1)if(!(e>=m))for(n=u;n<h;n+=1)n>=g||(i=4*(m*n+e),r+=_[i+0],a+=_[i+1],o+=_[i+2],s+=_[i+3],p+=1);for(r/=p,a/=p,o/=p,s/=p,e=c;e<l;e+=1)if(!(e>=m))for(n=u;n<h;n+=1)n>=g||(i=4*(m*n+e),_[i+0]=r,_[i+1]=a,_[i+2]=o,_[i+3]=s)}};F.addGetterSetter(Dt,"pixelSize",8,O(),F.afterSetFilter);const Ji=function(t){var e,n=Math.round(254*this.levels())+1,i=t.data,r=i.length,a=255/n;for(e=0;e<r;e+=1)i[e]=Math.floor(i[e]/a)*a};F.addGetterSetter(Dt,"levels",.5,O(),F.afterSetFilter);const Zi=function(t){var e,n,i=t.data,r=i.length,a=this.red(),o=this.green(),s=this.blue();for(e=0;e<r;e+=4)n=(.34*i[e]+.5*i[e+1]+.16*i[e+2])/255,i[e]=n*a,i[e+1]=n*o,i[e+2]=n*s,i[e+3]=i[e+3]};F.addGetterSetter(Dt,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"blue",0,T,F.afterSetFilter);const Qi=function(t){var e,n,i=t.data,r=i.length,a=this.red(),o=this.green(),s=this.blue(),c=this.alpha();for(e=0;e<r;e+=4)n=1-c,i[e]=a*c+i[e]*n,i[e+1]=o*c+i[e+1]*n,i[e+2]=s*c+i[e+2]*n};F.addGetterSetter(Dt,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),F.addGetterSetter(Dt,"blue",0,T,F.afterSetFilter),F.addGetterSetter(Dt,"alpha",1,(function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t}));const tr=function(t){var e,n,i,r,a=t.data,o=a.length;for(e=0;e<o;e+=4)n=a[e+0],i=a[e+1],r=a[e+2],a[e+0]=Math.min(255,.393*n+.769*i+.189*r),a[e+1]=Math.min(255,.349*n+.686*i+.168*r),a[e+2]=Math.min(255,.272*n+.534*i+.131*r)},er=function(t){var e=t.data,n=t.width,i=t.height,r=4*n,a=i;do{var o=(a-1)*r,s=n;do{var c=o+4*(s-1),l=e[c],u=e[c+1],h=e[c+2];l>127&&(l=255-l),u>127&&(u=255-u),h>127&&(h=255-h),e[c]=l,e[c+1]=u,e[c+2]=h}while(--s)}while(--a)},nr=function(t){var e,n=255*this.threshold(),i=t.data,r=i.length;for(e=0;e<r;e+=1)i[e]=i[e]<n?0:255};F.addGetterSetter(Dt,"threshold",.5,O(),F.afterSetFilter);const ir=Qe.Util._assign(Qe,{Arc:tn,Arrow:on,Circle:sn,Ellipse:cn,Image:ln,Label:yn,Tag:bn,Line:rn,Path:an,Rect:_n,RegularPolygon:wn,Ring:Sn,Sprite:xn,Star:Cn,Text:ei,TextPath:oi,Transformer:_i,Wedge:ki,Filters:{Blur:Ti,Brighten:Oi,Contrast:Ei,Emboss:Ai,Enhance:Mi,Grayscale:Ri,HSL:Ii,HSV:Ni,Invert:$i,Kaleidoscope:Bi,Mask:qi,Noise:Xi,Pixelate:Ki,Posterize:Ji,RGB:Zi,RGBA:Qi,Sepia:tr,Solarize:er,Threshold:nr}}),rr=ir}}]);
47
47
  //# sourceMappingURL=chunk-vendors.js.map