vendor: 29,250 bytes, lines 1-2
1/*! For license information please see 173-2a1a9dfccc3903890f32.js.LICENSE.txt */ 2(self.webpackChunk=self.webpackChunk||[]).push([[173],{58800(e,t,n){"use strict";n.d(t,{ze:()=>Ee});var i=n(15523);function r(e,t){return e>>t||1}var s=function(){function e(e){this.maxStringLength=1024,this.maxObjectLength=128,this.maxArrayLength=128,this.maxDepth=8,this.keys=[],this.keysBlocklist=[],this.keysAllowlist=[],this.seen=[];var t=e.level||0;this.keysBlocklist=e.keysBlocklist||[],this.keysAllowlist=e.keysAllowlist||[],this.maxStringLength=r(this.maxStringLength,t),this.maxObjectLength=r(this.maxObjectLength,t),this.maxArrayLength=r(this.maxArrayLength,t),this.maxDepth=r(this.maxDepth,t)}return e.prototype.truncate=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=0),null===e||void 0===e)return e;switch(typeof e){case"boolean":case"number":case"function":return e;case"string":return this.truncateString(e);case"object":break;default:return this.truncateString(String(e))}if(e instanceof String)return this.truncateString(e.toString());if(e instanceof Boolean||e instanceof Number||e instanceof Date||e instanceof RegExp)return e;if(e instanceof Error)return this.truncateString(e.toString());if(this.seen.indexOf(e)>=0)return"[Circular ".concat(this.getPath(e),"]");var i=function(e){var t=Object.prototype.toString.apply(e);return t.slice(8,-1)}(e);if(++n>this.maxDepth)return"[Truncated ".concat(i,"]");switch(this.keys.push(t),this.seen.push(e),i){case"Array":return this.truncateArray(e,n);case"Object":return this.truncateObject(e,n);default:var r=this.maxDepth;this.maxDepth=0;var s=this.truncateObject(e,n);return s.__type=i,this.maxDepth=r,s}},e.prototype.getPath=function(e){for(var t=this.seen.indexOf(e),n=[this.keys[t]],i=t;i>=0;i--){var r=this.seen[i];r&&a(r,n[0])===e&&(e=r,n.unshift(this.keys[i]))}return"~"+n.join(".")},e.prototype.truncateString=function(e){return e.length>this.maxStringLength?e.slice(0,this.maxStringLength)+"...":e},e.prototype.truncateArray=function(e,t){void 0===t&&(t=0);for(var n=0,i=[],r=0;r<e.length;r++){var s=e[r];if(i.push(this.truncate(s,r.toString(),t)),++n>=this.maxArrayLength)break}return i},e.prototype.truncateObject=function(e,t){void 0===t&&(t=0);var n=0,i={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!this.filterKey(r,i)){var s=a(e,r);if(void 0!==s&&"function"!==typeof s&&(i[r]=this.truncate(s,r,t),++n>=this.maxObjectLength))break}return i},e.prototype.filterKey=function(e,t){return!!(this.keysAllowlist.length>0&&!l(e,this.keysAllowlist)||0===this.keysAllowlist.length&&l(e,this.keysBlocklist))&&(t[e]="[Filtered]",!0)},e}();function o(e,t){return void 0===t&&(t={}),new s(t).truncate(e)}function a(e,t){try{return e[t]}catch(n){return}}function l(e,t){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(r===e)return!0;if(r instanceof RegExp&&e.match(r))return!0}return!1}var c=function(){function e(e,t,n){this._dur=0,this._level=0,this._metric=e,this.name=t,this.startTime=n||new Date}return e.prototype.end=function(e){this.endTime=e||new Date,this._dur+=this.endTime.getTime()-this.startTime.getTime(),this._metric._incGroup(this.name,this._dur),this._metric=null},e.prototype._pause=function(){if(!this._paused()){var e=new Date;this._dur+=e.getTime()-this.startTime.getTime(),this.startTime=null}},e.prototype._resume=function(){this._paused()&&(this.startTime=new Date)},e.prototype._paused=function(){return null==this.startTime},e}(),u=function(){function e(){this._spans={},this._groups={},this.startTime=new Date}return e.prototype.end=function(e){this.endTime||(this.endTime=e||new Date)},e.prototype.isRecording=function(){return!0},e.prototype.startSpan=function(e,t){var n=this._spans[e];n?n._level++:(n=new c(this,e,t),this._spans[e]=n)},e.prototype.endSpan=function(e,t){var n=this._spans[e];n?n._level>0?n._level--:(n.end(t),delete this._spans[n.name]):console.error("airbrake: span=%s does not exist",e)},e.prototype._incGroup=function(e,t){this._groups[e]=(this._groups[e]||0)+t},e.prototype._duration=function(){return this.endTime||(this.endTime=new Date),this.endTime.getTime()-this.startTime.getTime()},e}(),h=function(){function e(){}return e.prototype.isRecording=function(){return!1},e.prototype.startSpan=function(e,t){},e.prototype.endSpan=function(e,t){},e.prototype._incGroup=function(e,t){},e}(),d=function(){return d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},f=function(){function e(){this._noopMetric=new h,this._context={},this._historyMaxLen=20,this._history=[]}return e.prototype.clone=function(){var t=new e;return t._context=d({},this._context),t._history=this._history.slice(),t},e.prototype.setContext=function(e){this._context=d(d({},this._context),e)},e.prototype.context=function(){var e=d({},this._context);return this._history.length>0&&(e.history=this._history.slice()),e},e.prototype.pushHistory=function(e){this._isDupState(e)?this._lastRecord.num?this._lastRecord.num++:this._lastRecord.num=2:(e.date||(e.date=new Date),this._history.push(e),this._lastRecord=e,this._history.length>this._historyMaxLen&&(this._history=this._history.slice(-this._historyMaxLen)))},e.prototype._isDupState=function(e){if(!this._lastRecord)return!1;for(var t in e)if(e.hasOwnProperty(t)&&"date"!==t&&e[t]!==this._lastRecord[t])return!1;return!0},e.prototype.routeMetric=function(){return this._routeMetric||this._noopMetric},e.prototype.setRouteMetric=function(e){this._routeMetric=e},e.prototype.queueMetric=function(){return this._queueMetric||this._noopMetric},e.prototype.setQueueMetric=function(e){this._queueMetric=e},e}(),p=n(14263),m=n.n(p),g="object"===typeof console&&console.warn;function v(e){try{return m().parse(e)}catch(t){g&&e.stack&&console.warn("ErrorStackParser:",t.toString(),e.stack)}return e.fileName?[e]:[]}function y(e){var t=[];if(e.noStack)t.push({function:e.functionName||"",file:e.fileName||"",line:e.lineNumber||0,column:e.columnNumber||0});else{var n=v(e);if(0===n.length)try{throw new Error("fake")}catch(o){(n=v(o)).shift(),n.shift()}for(var i=0,r=n;i<r.length;i++){var s=r[i];t.push({function:s.functionName||"",file:s.fileName||"",line:s.lineNumber||0,column:s.columnNumber||0})}}return{type:e.name?e.name:"",message:e.message?String(e.message):String(e),backtrace:t}}var b=new RegExp(["^","\\[(\\$.+)\\]","\\s","([\\s\\S]+)","$"].join(""));function w(e){var t=e.errors[0];if(""!==t.type&&"Error"!==t.type)return e;var n=t.message.match(b);return null!==n&&(t.type=n[1],t.message=n[2]),e}var S=["Script error","Script error.","InvalidAccessError"];function _(e){var t=e.errors[0];if(""===t.type&&-1!==S.indexOf(t.message))return null;if(t.backtrace&&t.backtrace.length>0&&"<anonymous>"===t.backtrace[0].file)return null;return e}var E=new RegExp(["^","Uncaught\\s","(.+?)",":\\s","(.+)","$"].join(""));function O(e){var t=e.errors[0];if(""!==t.type&&"Error"!==t.type)return e;var n=t.message.match(E);return null!==n&&(t.type=n[1],t.message=n[2]),e}var k=n(34807),A=n.n(k),C={unauthorized:new Error("airbrake: unauthorized: project id or key are wrong"),ipRateLimited:new Error("airbrake: IP is rate limited")},x=0;function P(e){if(Date.now()/1e3<x)return i.A.reject(C.ipRateLimited);var t={method:e.method,body:e.body,headers:e.headers};return A()(e.url,t).then((function(e){if(401===e.status)throw C.unauthorized;if(429===e.status){var t=e.headers.get("X-RateLimit-Delay");if(!t)throw C.ipRateLimited;var n=parseInt(t,10);throw n>0&&(x=Date.now()/1e3+n),C.ipRateLimited}if(204===e.status)return{json:null};if(404===e.status)throw new Error("404 Not Found");return e.status>=200&&e.status<300?e.json().then((function(e){return{json:e}})):e.status>=400&&e.status<500?e.json().then((function(e){throw new Error(e.message)})):e.text().then((function(t){throw new Error("airbrake: fetch: unexpected response: code=".concat(e.status," body='").concat(t,"'"))}))}))}function T(e){return function(t){return function(e,t){if(Date.now()/1e3<N)return i.A.reject(C.ipRateLimited);return new i.A((function(n,i){t({url:e.url,method:e.method,body:e.body,headers:{"content-type":"application/json"},timeout:e.timeout},(function(e,t,r){if(e)i(e);else{if(!t.statusCode)return e=new Error("airbrake: request: response statusCode is ".concat(t.statusCode)),void i(e);if(401!==t.statusCode)if(429!==t.statusCode)if(204!==t.statusCode)if(t.statusCode>=200&&t.statusCode<300){var s=void 0;try{s=JSON.parse(r)}catch(c){return void i(c)}n(s)}else{if(t.statusCode>=400&&t.statusCode<500){s=void 0;try{s=JSON.parse(r)}catch(c){return void i(c)}return e=new Error(s.message),void i(e)}r=r.trim(),e=new Error("airbrake: node: unexpected response: code=".concat(t.statusCode," body='").concat(r,"'")),i(e)}else n({json:null});else{i(C.ipRateLimited);var o=t.headers["x-ratelimit-delay"];if(!o)return;var a=void 0;if("string"===typeof o)a=o;else{if(!(o instanceof Array))return;a=o[0]}var l=parseInt(a,10);l>0&&(N=Date.now()/1e3+l)}else i(C.unauthorized)}}))}))}(t,e)}}var N=0;function L(e){return e.request?T(e.request):P}var F,D,M=(F=function(e,t){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},F(e,t)},function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),R=!1;try{D=n(23007),R=!0}catch(ke){}var j=function(){function e(){this.count=0,this.sum=0,this.sumsq=0,this._td=new D.Digest}return e.prototype.add=function(e){0===e&&(e=1e-5),this.count+=1,this.sum+=e,this.sumsq+=e*e,this._td&&this._td.push(e)},e.prototype.toJSON=function(){return{count:this.count,sum:this.sum,sumsq:this.sumsq,tdigestCentroids:I(this._td)}},e}(),B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.groups={},t}return M(t,e),t.prototype.addGroups=function(e,t){for(var n in this.add(e),t)t.hasOwnProperty(n)&&this.addGroup(n,t[n])},t.prototype.addGroup=function(e,t){var n=this.groups[e];n||(n=new j,this.groups[e]=n),n.add(t)},t.prototype.toJSON=function(){return{count:this.count,sum:this.sum,sumsq:this.sumsq,tdigestCentroids:I(this._td),groups:this.groups}},t}(j);function I(e){var t=[],n=[];return e.centroids.each((function(e){t.push(e.mean),n.push(e.n)})),{mean:t,count:n}}var V=function(){return V=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},V.apply(this,arguments)},z=function(){function e(e){void 0===e&&(e=""),this.method="",this.route="",this.query="",this.func="",this.file="",this.line=0,this.startTime=new Date,this.query=e}return e.prototype._duration=function(){return this.endTime||(this.endTime=new Date),this.endTime.getTime()-this.startTime.getTime()},e}(),U=function(){function e(e){this._m={},this._opt=e,this._url="".concat(e.host,"/api/v5/projects/").concat(e.projectId,"/queries-stats?key=").concat(e.projectKey),this._requester=L(e)}return e.prototype.start=function(e){return void 0===e&&(e=""),new z(e)},e.prototype.notify=function(e){var t=this;if(R&&this._opt.performanceStats&&this._opt.queryStats){var n=e._duration(),i=new Date(6e4*Math.floor(e.startTime.getTime()/6e4)),r={method:e.method,route:e.route,query:e.query,func:e.func,file:e.file,line:e.line,time:i},s=JSON.stringify(r),o=this._m[s];o||(o=new j,this._m[s]=o),o.add(n),this._timer||(this._timer=setTimeout((function(){t._flush()}),15e3))}},e.prototype._flush=function(){var e=[];for(var t in this._m)if(this._m.hasOwnProperty(t)){var n=JSON.parse(t),i=V(V({},n),this._m[t].toJSON());e.push(i)}this._m={},this._timer=null;var r=JSON.stringify({environment:this._opt.environment,queries:e}),s={method:"POST",url:this._url,body:r};this._requester(s).then((function(e){})).catch((function(e){console.error&&console.error("can not report queries stats",e)}))},e}(),H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(){return q=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},q.apply(this,arguments)},W=function(e){function t(t){var n=e.call(this)||this;return n.queue=t,n.startTime=new Date,n}return H(t,e),t}(u),$=function(){function e(e){this._m={},this._opt=e,this._url="".concat(e.host,"/api/v5/projects/").concat(e.projectId,"/queues-stats?key=").concat(e.projectKey),this._requester=L(e)}return e.prototype.notify=function(e){var t=this;if(R&&this._opt.performanceStats&&this._opt.queueStats){var n=e._duration();0===n&&(n=1e-5);var i=new Date(6e4*Math.floor(e.startTime.getTime()/6e4)),r={queue:e.queue,time:i},s=JSON.stringify(r),o=this._m[s];o||(o=new B,this._m[s]=o),o.addGroups(n,e._groups),this._timer||(this._timer=setTimeout((function(){t._flush()}),15e3))}},e.prototype._flush=function(){var e=[];for(var t in this._m)if(this._m.hasOwnProperty(t)){var n=JSON.parse(t),i=q(q({},n),this._m[t].toJSON());e.push(i)}this._m={},this._timer=null;var r=JSON.stringify({environment:this._opt.environment,queues:e}),s={method:"POST",url:this._url,body:r};this._requester(s).then((function(e){})).catch((function(e){console.error&&console.error("can not report queues breakdowns",e)}))},e}(),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),G=function(){return G=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},G.apply(this,arguments)},Z=function(e){function t(t,n,i,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=0),void 0===r&&(r="");var s=e.call(this)||this;return s.method=t,s.route=n,s.statusCode=i,s.contentType=r,s.startTime=new Date,s}return K(t,e),t}(u),Y=function(){function e(e){this._m={},this._opt=e,this._url="".concat(e.host,"/api/v5/projects/").concat(e.projectId,"/routes-stats?key=").concat(e.projectKey),this._requester=L(e)}return e.prototype.notify=function(e){var t=this;if(R&&this._opt.performanceStats){var n=e._duration(),i=new Date(6e4*Math.floor(e.startTime.getTime()/6e4)),r={method:e.method,route:e.route,statusCode:e.statusCode,time:i},s=JSON.stringify(r),o=this._m[s];o||(o=new j,this._m[s]=o),o.add(n),this._timer||(this._timer=setTimeout((function(){t._flush()}),15e3))}},e.prototype._flush=function(){var e=[];for(var t in this._m)if(this._m.hasOwnProperty(t)){var n=JSON.parse(t),i=G(G({},n),this._m[t].toJSON());e.push(i)}this._m={},this._timer=null;var r=JSON.stringify({environment:this._opt.environment,routes:e}),s={method:"POST",url:this._url,body:r};this._requester(s).then((function(e){})).catch((function(e){console.error&&console.error("can not report routes stats",e)}))},e}(),X=function(){function e(e){this._m={},this._opt=e,this._url="".concat(e.host,"/api/v5/projects/").concat(e.projectId,"/routes-breakdowns?key=").concat(e.projectKey),this._requester=L(e)}return e.prototype.notify=function(e){var t=this;if(R&&this._opt.performanceStats&&!(e.statusCode<200||e.statusCode>=300&&e.statusCode<400||404===e.statusCode||0===Object.keys(e._groups).length)){var n=e._duration();0===n&&(n=1e-5);var i=new Date(6e4*Math.floor(e.startTime.getTime()/6e4)),r={method:e.method,route:e.route,responseType:this._responseType(e),time:i},s=JSON.stringify(r),o=this._m[s];o||(o=new B,this._m[s]=o),o.addGroups(n,e._groups),this._timer||(this._timer=setTimeout((function(){t._flush()}),15e3))}},e.prototype._flush=function(){var e=[];for(var t in this._m)if(this._m.hasOwnProperty(t)){var n=JSON.parse(t),i=G(G({},n),this._m[t].toJSON());e.push(i)}this._m={},this._timer=null;var r=JSON.stringify({environment:this._opt.environment,routes:e}),s={method:"POST",url:this._url,body:r};this._requester(s).then((function(e){})).catch((function(e){console.error&&console.error("can not report routes breakdowns",e)}))},e.prototype._responseType=function(e){if(e.statusCode>=500)return"5xx";if(e.statusCode>=400)return"4xx";if(!e.contentType)return"";var t=e.contentType.split(";")[0].split("/");return t[t.length-1]},e}(),J="airbrake-js/browser",Q="2.1.9",ee=function(){return ee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ee.apply(this,arguments)},te={notifier_name:J,notifier_version:Q,os:"undefined"!==typeof window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:void 0,language:"JavaScript"},ne="errors",ie=function(){function e(e){this._opt=e,this._requester=L(e),this._data=new re(e.projectId,{project_id:null,poll_sec:0,updated_at:0,config_route:"",settings:[]}),this._origErrorNotifications=e.errorNotifications,this._origPerformanceStats=e.performanceStats}return e.prototype.poll=function(){var e=this,t=setInterval((function(){e._doRequest(),clearInterval(t)}),0);return setInterval(this._doRequest.bind(this),6e5)},e.prototype._doRequest=function(){var e=this;this._requester(this._requestParams(this._opt)).then((function(t){e._data.merge(t.json),e._opt.host=e._data.errorHost(),e._opt.apmHost=e._data.apmHost(),e._processErrorNotifications(e._data),e._processPerformanceStats(e._data)})).catch((function(e){}))},e.prototype._requestParams=function(e){return{method:"GET",url:this._pollUrl(e),headers:{Accept:"application/json","Cache-Control":"no-cache,no-store"}}},e.prototype._pollUrl=function(e){for(var t=this._data.configRoute(e.remoteConfigHost),n="?",i=0,r=this._entries(te);i<r.length;i++){var s=r[i],o=s[0],a=s[1];n+="&".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(a))}return t+n},e.prototype._processErrorNotifications=function(e){this._origErrorNotifications&&(this._opt.errorNotifications=e.errorNotifications())},e.prototype._processPerformanceStats=function(e){this._origPerformanceStats&&(this._opt.performanceStats=e.performanceStats())},e.prototype._entries=function(e){for(var t=Object.keys(e),n=t.length,i=new Array(n);n--;)i[n]=[t[n],e[t[n]]];return i},e}(),re=function(){function e(e,t){this._projectId=e,this._data=t}return e.prototype.merge=function(e){this._data=ee(ee({},this._data),e)},e.prototype.configRoute=function(e){var t=e.replace(/\/$/,""),n=this._data.config_route;return null===n||void 0===n||""===n?"".concat(t,"/").concat("2020-06-18","/config/").concat(this._projectId,"/config.json"):"".concat(t,"/").concat(n)},e.prototype.errorNotifications=function(){var e=this._findSetting(ne);return null===e||e.enabled},e.prototype.performanceStats=function(){var e=this._findSetting("apm");return null===e||e.enabled},e.prototype.errorHost=function(){var e=this._findSetting(ne);return null===e?null:e.endpoint},e.prototype.apmHost=function(){var e=this._findSetting("apm");return null===e?null:e.endpoint},e.prototype._findSetting=function(e){var t=this._data.settings;if(null===t||void 0===t)return null;var n=t.find((function(t){return t.name===e}));return void 0===n?null:n},e}(),se=function(){return se=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},se.apply(this,arguments)},oe=function(){function e(e){var t,n,i=this;if(this._filters=[],this._performanceFilters=[],this._scope=new f,this._onClose=[],!e.projectId||!e.projectKey)throw new Error("airbrake: projectId and projectKey are required");if(this._opt=e,this._opt.host=this._opt.host||"https://api.airbrake.io",this._opt.remoteConfigHost=this._opt.remoteConfigHost||"https://notifier-configs.airbrake.io",this._opt.apmHost=this._opt.apmHost||"https://api.airbrake.io",this._opt.timeout=this._opt.timeout||1e4,this._opt.keysBlocklist=this._opt.keysBlocklist||[/password/,/secret/],this._url="".concat(this._opt.host,"/api/v3/projects/").concat(this._opt.projectId,"/notices?key=").concat(this._opt.projectKey),this._opt.errorNotifications=!1!==this._opt.errorNotifications,this._opt.performanceStats=!1!==this._opt.performanceStats,this._opt.queryStats=!1!==this._opt.queryStats,this._opt.queueStats=!1!==this._opt.queueStats,this._opt.remoteConfig=!1!==this._opt.remoteConfig,this._processor=this._opt.processor||y,this._requester=L(this._opt),this.addFilter(_),this.addFilter((function(e){var i=JSON.stringify(e.errors);return i===t?null:(n&&clearTimeout(n),t=i,n=setTimeout((function(){t=""}),1e3),e)})),this.addFilter(O),this.addFilter(w),this.addFilter((function(e){return e.context.notifier={name:J,version:Q,url:"https://github.com/airbrake/airbrake-js/tree/master/packages/browser"},i._opt.environment&&(e.context.environment=i._opt.environment),e})),this.routes=new ae(this),this.queues=new le(this),this.queries=new U(this._opt),this._opt.remoteConfig){var r=new ie(this._opt).poll();this._onClose.push((function(){return clearInterval(r)}))}}return e.prototype.close=function(){for(var e=0,t=this._onClose;e<t.length;e++){(0,t[e])()}},e.prototype.scope=function(){return this._scope},e.prototype.setActiveScope=function(e){this._scope=e},e.prototype.addFilter=function(e){this._filters.push(e)},e.prototype.addPerformanceFilter=function(e){this._performanceFilters.push(e)},e.prototype.notify=function(e){"object"===typeof e&&null!==e&&"error"in e||(e={error:e}),this.handleFalseyError(e);var t=this.newNotice(e);if(!this._opt.errorNotifications)return t.error=new Error("airbrake: not sending this error, errorNotifications is disabled err=".concat(JSON.stringify(e.error))),i.A.resolve(t);var n=this._processor(e.error);t.errors.push(n);for(var r=0,s=this._filters;r<s.length;r++){var o=(0,s[r])(t);if(null===o)return t.error=new Error("airbrake: error is filtered"),i.A.resolve(t);t=o}return t.context||(t.context={}),t.context.language="JavaScript",this._sendNotice(t)},e.prototype.handleFalseyError=function(e){Number.isNaN(e.error)?e.error=new Error("NaN"):void 0===e.error?e.error=new Error("undefined"):""===e.error?e.error=new Error("<empty string>"):null===e.error&&(e.error=new Error("null"))},e.prototype.newNotice=function(e){return{errors:[],context:se(se({severity:"error"},this.scope().context()),e.context),params:e.params||{},environment:e.environment||{},session:e.session||{}}},e.prototype._sendNotice=function(e){var t=function(e,t){var n=void 0===t?{}:t,i=n.maxLength,r=void 0===i?64e3:i,a=n.keysBlocklist,l=void 0===a?[]:a,c=n.keysAllowlist,u=void 0===c?[]:c;if(e.errors)for(var h=0;h<e.errors.length;h++){var d=new s({keysBlocklist:l,keysAllowlist:u});e.errors[h]=d.truncate(e.errors[h])}for(var f="",p=["params","environment","session"],m=0;m<8;m++){for(var g={level:m,keysBlocklist:l,keysAllowlist:u},v=0,y=p;v<y.length;v++)(E=e[_=y[v]])&&(e[_]=o(E,g));if((f=JSON.stringify(e)).length<r)return f}var b={json:f.slice(0,Math.floor(r/2))+"..."};p.push("errors");for(var w=0,S=p;w<S.length;w++){var _,E;(E=e[_=S[w]])&&(f=JSON.stringify(E),b[_]=f.length)}var O=new Error("airbrake: notice exceeds max length and can't be truncated");throw O.params=b,O}(e,{keysBlocklist:this._opt.keysBlocklist});if(this._opt.reporter){if("function"===typeof this._opt.reporter)return this._opt.reporter(e);console.warn("airbrake: options.reporter must be a function")}var n={method:"POST",url:this._url,body:t};return this._requester(n).then((function(t){return e.id=t.json.id,e.url=t.json.url,e})).catch((function(t){return e.error=t,e}))},e.prototype.wrap=function(e,t){if(void 0===t&&(t=[]),e._airbrake)return e;var n=this,i=function(){var t=Array.prototype.slice.call(arguments),i=n._wrapArguments(t);try{return e.apply(this,i)}catch(ke){throw n.notify({error:ke,params:{arguments:t}}),n._ignoreNextWindowError(),ke}};for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);for(var s=0,o=t;s<o.length;s++){r=o[s];e.hasOwnProperty(r)&&(i[r]=e[r])}return i._airbrake=!0,i.inner=e,i},e.prototype._wrapArguments=function(e){for(var t=0;t<e.length;t++){var n=e[t];"function"===typeof n&&(e[t]=this.wrap(n))}return e},e.prototype._ignoreNextWindowError=function(){},e.prototype.call=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.wrap(e).apply(this,Array.prototype.slice.call(arguments,1))},e}(),ae=function(){function e(e){this._notifier=e,this._routes=new Y(e._opt),this._breakdowns=new X(e._opt),this._opt=e._opt}return e.prototype.start=function(e,t,n,i){void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n=0),void 0===i&&(i="");var r=new Z(e,t,n,i);if(!this._opt.performanceStats)return r;var s=this._notifier.scope().clone();return s.setContext({httpMethod:e,route:t}),s.setRouteMetric(r),this._notifier.setActiveScope(s),r},e.prototype.notify=function(e){if(this._opt.performanceStats){e.end();for(var t=0,n=this._notifier._performanceFilters;t<n.length;t++){if(null===(0,n[t])(e))return}this._routes.notify(e),this._breakdowns.notify(e)}},e}(),le=function(){function e(e){this._notifier=e,this._queues=new $(e._opt),this._opt=e._opt}return e.prototype.start=function(e){var t=new W(e);if(!this._opt.performanceStats)return t;var n=this._notifier.scope().clone();return n.setContext({queue:e}),n.setQueueMetric(t),this._notifier.setActiveScope(n),t},e.prototype.notify=function(e){this._opt.performanceStats&&(e.end(),this._queues.notify(e))},e}();function ce(e){return window.navigator&&window.navigator.userAgent&&(e.context.userAgent=window.navigator.userAgent),window.location&&(e.context.url=String(window.location),e.context.rootDirectory=window.location.protocol+"//"+window.location.host),e}var ue=["debug","log","info","warn","error"];var he=["type","name","src"];function de(e){var t=function(e){return function(t){var n=pe(t,"target");if(n){var i={type:t.type};try{i.target=function(e){var t=10,n=[],i=e;for(;i;){var r=fe(i);if(""!==r&&(n.push(r),n.length>t))break;i=i.parentNode}if(0===n.length)return String(e);return n.reverse().join(" > ")}(n)}catch(ke){i.target="<".concat(String(ke),">")}e.scope().pushHistory(i)}}}(e);window.addEventListener&&(window.addEventListener("load",t),window.addEventListener("error",(function(e){pe(e,"error")||t(e)}),!0)),"object"===typeof document&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",t),document.addEventListener("click",t),document.addEventListener("keypress",t))}function fe(e){if(!e)return"";var t=[];if(e.tagName&&t.push(e.tagName.toLowerCase()),e.id&&(t.push("#"),t.push(e.id)),e.classList&&Array.from)t.push("."),t.push(Array.from(e.classList).join("."));else if(e.className){var n=function(e){if(e.split)return e.split(" ").join(".");if(e.baseVal&&e.baseVal.split)return e.baseVal.split(" ").join(".");return console.error("unsupported HTMLElement.className type",typeof e),""}(e.className);""!==n&&(t.push("."),t.push(n))}if(e.getAttribute)for(var i=0,r=he;i<r.length;i++){var s=r[i],o=e.getAttribute(s);o&&t.push("[".concat(s,'="').concat(o,'"]'))}return t.join("")}function pe(e,t){try{return e[t]}catch(n){return null}}var me="";function ge(){return document.location&&document.location.pathname}function ve(e,t){var n=t.indexOf("://");n>=0?(n=(t=t.slice(n+3)).indexOf("/"),t=n>=0?t.slice(n):"/"):"/"!==t.charAt(0)&&(t="/"+t),e.scope().pushHistory({type:"location",from:me,to:t}),me=t}function ye(e){var t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(n,i,r,s,o){0===e._ignoreNextXHR&&(this.__state={type:"xhr",method:n,url:i}),t.apply(this,arguments)};var n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(t){var i=this.onreadystatechange;return this.onreadystatechange=function(t){var n,r;if(4===this.readyState&&this.__state&&((r=(n=this).__state).statusCode=n.status,r.duration=(new Date).getTime()-r.date.getTime(),e.scope().pushHistory(r)),i)return i.apply(this,arguments)},this.__state&&(this.__state.date=new Date),n.apply(this,arguments)}}var be=function(){return be=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},be.apply(this,arguments)};function we(e){var t=Se.bind(e);window.addEventListener("unhandledrejection",t),e._onClose.push((function(){window.removeEventListener("unhandledrejection",t)}))}function Se(e){var t=e.reason||e.detail&&e.detail.reason;if(t){var n=t.message||String(t);n.indexOf&&0===n.indexOf("airbrake: ")||("object"===typeof t&&void 0!==t.error?this.notify(be(be({},t),{context:{unhandledRejection:!0}
2})):this.notify({error:t,context:{unhandledRejection:!0}}))}}var _e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ee=function(e){function t(t){var n=e.call(this,t)||this;return n.offline=!1,n.todo=[],n._ignoreWindowError=0,n._ignoreNextXHR=0,"undefined"===typeof window||(n.addFilter(ce),window.addEventListener&&(n.onOnline=n.onOnline.bind(n),window.addEventListener("online",n.onOnline),n.onOffline=n.onOffline.bind(n),window.addEventListener("offline",n.onOffline),n._onClose.push((function(){window.removeEventListener("online",n.onOnline),window.removeEventListener("offline",n.onOffline)}))),n._instrument(t.instrumentation)),n}return _e(t,e),t.prototype._instrument=function(e){var t,n,i;if(void 0===e&&(e={}),void 0===e.console&&(e.console=!((t=this._opt.environment)&&t.startsWith&&t.startsWith("dev"))),Oe(e.onerror)){var r=this,s=window.onerror;window.onerror=function(){s&&s.apply(this,arguments),r.onerror.apply(r,arguments)}}de(this),Oe(e.fetch)&&"function"===typeof fetch&&(n=this,i=window.fetch,window.fetch=function(e,t){var r={type:"xhr",date:new Date};return r.method=t&&t.method?t.method:"GET","string"===typeof e?r.url=e:(r.method=e.method,r.url=e.url),n._ignoreNextXHR++,setTimeout((function(){return n._ignoreNextXHR--})),i.apply(this,arguments).then((function(e){return r.statusCode=e.status,r.duration=(new Date).getTime()-r.date.getTime(),n.scope().pushHistory(r),e})).catch((function(e){throw r.error=e,r.duration=(new Date).getTime()-r.date.getTime(),n.scope().pushHistory(r),e}))}),Oe(e.history)&&"object"===typeof history&&function(e){me=ge();var t=window.onpopstate;window.onpopstate=function(n){var i=ge();if(i&&ve(e,i),t)return t.apply(this,arguments)};var n=history.pushState;history.pushState=function(t,i,r){r&&ve(e,r.toString()),n.apply(this,arguments)}}(this),Oe(e.console)&&"object"===typeof console&&function(e){for(var t=function(t){if(!(t in console))return"continue";var n=console[t],i=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n.apply(console,i),e.scope().pushHistory({type:"log",severity:t,arguments:i})};i.inner=n,console[t]=i},n=0,i=ue;n<i.length;n++)t(i[n])}(this),Oe(e.xhr)&&"undefined"!==typeof XMLHttpRequest&&ye(this),Oe(e.unhandledrejection)&&"function"===typeof addEventListener&&we(this)},t.prototype.notify=function(t){var n=this;return this.offline?new i.A((function(e,i){for(n.todo.push({err:t,resolve:e,reject:i});n.todo.length>100;){var r=n.todo.shift();if(void 0===r)break;r.resolve({error:new Error("airbrake: offline queue is too large")})}})):e.prototype.notify.call(this,t)},t.prototype.onOnline=function(){this.offline=!1;for(var e=function(e){t.notify(e.err).then((function(t){e.resolve(t)}))},t=this,n=0,i=this.todo;n<i.length;n++){e(i[n])}this.todo=[]},t.prototype.onOffline=function(){this.offline=!0},t.prototype.onerror=function(e,t,n,i,r){this._ignoreWindowError>0||(r?this.notify({error:r,context:{windowError:!0}}):t&&n&&this.notify({error:{message:e,fileName:t,lineNumber:n,columnNumber:i,noStack:!0},context:{windowError:!0}}))},t.prototype._ignoreNextWindowError=function(){var e=this;this._ignoreWindowError++,setTimeout((function(){return e._ignoreWindowError--}))},t}(oe);function Oe(e){return void 0===e||!0===e}},34807(e,t){var n="undefined"!==typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
2]"],l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!==typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,i=f(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=p(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=u(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,i,r=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),y.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];S.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(O){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(i,s){var o=new b(e,n);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
2h((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;i(new S(r,n))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",l)}),a.send("undefined"===typeof o._bodyInit?null:o._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=d,e.Request=b,e.Response=S),t.Headers=d,t.Request=b,t.Response=S,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},22899(e,t,n){"use strict";function i(e){return e.keys().map((t=>function(e,t){const n=function(e){const t=(e.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(t)return t.replace(/_/g,"-").replace(/\//g,"--")}(t);if(n)return function(e,t){const n=e.default;if("function"==typeof n)return{identifier:t,controllerConstructor:n}}(e(t),n)}(e,t))).filter((e=>e))}n.d(t,{Ux:()=>i})},52891(e,t,n){"use strict";n.d(t,{lg:()=>Q,xI:()=>ce});class i{constructor(e,t,n){this.eventTarget=e,this.eventName=t,this.eventOptions=n,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(e){this.unorderedBindings.add(e)}bindingDisconnected(e){this.unorderedBindings.delete(e)}handleEvent(e){const t=function(e){if("immediatePropagationStopped"in e)return e;{const{stopImmediatePropagation:t}=e;return Object.assign(e,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,t.call(this)}})}}(e);for(const n of this.bindings){if(t.immediatePropagationStopped)break;n.handleEvent(t)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort(((e,t)=>{const n=e.index,i=t.index;return n<i?-1:n>i?1:0}))}}
2class r{constructor(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach((e=>e.connect())))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach((e=>e.disconnect())))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce(((e,t)=>e.concat(Array.from(t.values()))),[])}bindingConnected(e){this.fetchEventListenerForBinding(e).bindingConnected(e)}bindingDisconnected(e,t=!1){this.fetchEventListenerForBinding(e).bindingDisconnected(e),t&&this.clearEventListenersForBinding(e)}handleError(e,t,n={}){this.application.handleError(e,`Error ${t}`,n)}clearEventListenersForBinding(e){const t=this.fetchEventListenerForBinding(e);t.hasBindings()||(t.disconnect(),this.removeMappedEventListenerFor(e))}removeMappedEventListenerFor(e){const{eventTarget:t,eventName:n,eventOptions:i}=e,r=this.fetchEventListenerMapForEventTarget(t),s=this.cacheKey(n,i);r.delete(s),0==r.size&&this.eventListenerMaps.delete(t)}fetchEventListenerForBinding(e){const{eventTarget:t,eventName:n,eventOptions:i}=e;return this.fetchEventListener(t,n,i)}fetchEventListener(e,t,n){const i=this.fetchEventListenerMapForEventTarget(e),r=this.cacheKey(t,n);let s=i.get(r);return s||(s=this.createEventListener(e,t,n),i.set(r,s)),s}createEventListener(e,t,n){const r=new i(e,t,n);return this.started&&r.connect(),r}fetchEventListenerMapForEventTarget(e){let t=this.eventListenerMaps.get(e);return t||(t=new Map,this.eventListenerMaps.set(e,t)),t}cacheKey(e,t){const n=[e];return Object.keys(t).sort().forEach((e=>{n.push(`${t[e]?"":"!"}${e}`)})),n.join(":")}}const s={stop:({event:e,value:t})=>(t&&e.stopPropagation(),!0),prevent:({event:e,value:t})=>(t&&e.preventDefault(),!0),self:({event:e,value:t,element:n})=>!t||n===e.target},o=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function a(e){return"window"==e?window:"document"==e?document:void 0}function l(e){return e.replace(/(?:[_-])([a-z0-9])/g,((e,t)=>t.toUpperCase()))}function c(e){return l(e.replace(/--/g,"-").replace(/__/g,"_"))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e){return e.replace(/([A-Z])/g,((e,t)=>`-${t.toLowerCase()}`))}function d(e){return null!==e&&void 0!==e}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const p=["meta","ctrl","alt","shift"];class m{constructor(e,t,n,i){this.element=e,this.index=t,this.eventTarget=n.eventTarget||e,this.eventName=n.eventName||function(e){const t=e.tagName.toLowerCase();if(t in g)return g[t](e)}(e)||v("missing event name"),this.eventOptions=n.eventOptions||{},this.identifier=n.identifier||v("missing identifier"),this.methodName=n.methodName||v("missing method name"),this.keyFilter=n.keyFilter||"",this.schema=i}static forToken(e,t){return new this(e.element,e.index,function(e){const t=e.trim().match(o)||[];let n=t[2],i=t[3];return i&&!["keydown","keyup","keypress"].includes(n)&&(n+=`.${i}`,i=""),{eventTarget:a(t[4]),eventName:n,eventOptions:t[7]?(r=t[7],r.split(":").reduce(((e,t)=>Object.assign(e,{[t.replace(/^!/,"")]:!/^!/.test(t)})),{})):{},identifier:t[5],methodName:t[6],keyFilter:t[1]||i};var r}(e.content),t)}toString(){const e=this.keyFilter?`.${this.keyFilter}`:"",t=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${e}${t}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(e){if(!this.keyFilter)return!1;const t=this.keyFilter.split("+");if(this.keyFilterDissatisfied(e,t))return!0;const n=t.filter((e=>!p.includes(e)))[0];return!!n&&(f(this.keyMappings,n)||v(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[n].toLowerCase()!==e.key.toLowerCase())}shouldIgnoreMouseEvent(e){if(!this.keyFilter)return!1;const t=[this.keyFilter];return!!this.keyFilterDissatisfied(e,t)}get params(){const e={},t=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:n,value:i}of Array.from(this.element.attributes)){const r=n.match(t),s=r&&r[1];s&&(e[l(s)]=y(i))}return e}get eventTargetName(){return(e=this.eventTarget)==window?"window":e==document?"document":void 0;var e}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(e,t){const[n,i,r,s]=p.map((e=>t.includes(e)));return e.metaKey!==n||e.ctrlKey!==i||e.altKey!==r||e.shiftKey!==s}}const g={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:e=>"submit"==e.getAttribute("type")?"click":"input",select:()=>"change",textarea:()=>"input"};function v(e){throw new Error(e)}function y(e){try{return JSON.parse(e)}catch(t){return e}}class b{constructor(e,t){this.context=e,this.action=t}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}
2get identifier(){return this.context.identifier}handleEvent(e){const t=this.prepareActionEvent(e);this.willBeInvokedByEvent(e)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}get eventName(){return this.action.eventName}get method(){const e=this.controller[this.methodName];if("function"==typeof e)return e;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(e){const{element:t}=this.action,{actionDescriptorFilters:n}=this.context.application,{controller:i}=this.context;let r=!0;for(const[s,o]of Object.entries(this.eventOptions))if(s in n){const a=n[s];r=r&&a({name:s,value:o,event:e,element:t,controller:i})}return r}prepareActionEvent(e){return Object.assign(e,{params:this.action.params})}invokeWithEvent(e){const{target:t,currentTarget:n}=e;try{this.method.call(this.controller,e),this.context.logDebugActivity(this.methodName,{event:e,target:t,currentTarget:n,action:this.methodName})}catch(v){const{identifier:n,controller:i,element:r,index:s}=this,o={identifier:n,controller:i,element:r,index:s,event:e};this.context.handleError(v,`invoking action "${this.action}"`,o)}}willBeInvokedByEvent(e){const t=e.target;return!(e instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(e))&&(!(e instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(e))&&(this.element===t||(t instanceof Element&&this.element.contains(t)?this.scope.containsElement(t):this.scope.containsElement(this.action.element))))}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}}class w{constructor(e,t){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver((e=>this.processMutations(e)))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&(this.mutationObserver.disconnect(),this.started=!1),e(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const e=new Set(this.matchElementsInTree());for(const t of Array.from(this.elements))e.has(t)||this.removeElement(t);for(const t of Array.from(e))this.addElement(t)}}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){"attributes"==e.type?this.processAttributeChange(e.target,e.attributeName):"childList"==e.type&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,t){this.elements.has(e)?this.delegate.elementAttributeChanged&&this.matchElement(e)?this.delegate.elementAttributeChanged(e,t):this.removeElement(e):this.matchElement(e)&&this.addElement(e)}processRemovedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.processTree(e,this.removeElement)}}processAddedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.elementIsActive(e)&&this.processTree(e,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,t){for(const n of this.matchElementsInTree(e))t.call(this,n)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected==this.element.isConnected&&this.element.contains(e)}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}}class S{constructor(e,t,n){this.attributeName=t,this.delegate=n,this.elementObserver=new w(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){const t=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(this.selector));return t.concat(n)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,t){this.delegate.elementAttributeValueChanged&&this.attributeName==t&&this.delegate.elementAttributeValueChanged(e,t)}}function _(e,t,n){O(e,t).add(n)}function E(e,t,n){O(e,t).delete(n),function(e,t){const n=e.get(t);null!=n&&0==n.size&&e.delete(t)}(e,t)}function O(e,t){let n=e.get(t);return n||(n=new Set,e.set(t,n)),n}class k{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce(((e,t)=>e.concat(Array.from(t))),[])}get size(){return Array.from(this.valuesByKey.values()).reduce(((e,t)=>e+t.size),0)}add(e,t){_(this.valuesByKey,e,t)}delete(e,t){E(this.valuesByKey,e,t)}has(e,t){const n=this.valuesByKey.get(e);return null!=n&&n.has(t)}hasKey(e){return this.valuesByKey.has(e)}hasValue(e){return Array.from(this.valuesByKey.values()).some((t=>t.has(e)))}getValuesForKey(e){const t=this.valuesByKey.get(e);return t?Array.from(t):[]}getKeysForValue(e){return Array.from(this.valuesByKey).filter((([t,n])=>n.has(e))).map((([e,t])=>e))}}class A{constructor(e,t,n,i){this._selector=t,this.details=i,this.elementObserver=new w(e,this),this.delegate=n,this.matchesByElement=new k}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(e){this._selector=e,this.refresh()}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}
2get element(){return this.elementObserver.element}matchElement(e){const{selector:t}=this;if(t){const n=e.matches(t);return this.delegate.selectorMatchElement?n&&this.delegate.selectorMatchElement(e,this.details):n}return!1}matchElementsInTree(e){const{selector:t}=this;if(t){const n=this.matchElement(e)?[e]:[],i=Array.from(e.querySelectorAll(t)).filter((e=>this.matchElement(e)));return n.concat(i)}return[]}elementMatched(e){const{selector:t}=this;t&&this.selectorMatched(e,t)}elementUnmatched(e){const t=this.matchesByElement.getKeysForValue(e);for(const n of t)this.selectorUnmatched(e,n)}elementAttributeChanged(e,t){const{selector:n}=this;if(n){const t=this.matchElement(e),i=this.matchesByElement.has(n,e);t&&!i?this.selectorMatched(e,n):!t&&i&&this.selectorUnmatched(e,n)}}selectorMatched(e,t){this.delegate.selectorMatched(e,t,this.details),this.matchesByElement.add(t,e)}selectorUnmatched(e,t){this.delegate.selectorUnmatched(e,t,this.details),this.matchesByElement.delete(t,e)}}class C{constructor(e,t){this.element=e,this.delegate=t,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver((e=>this.processMutations(e)))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const e of this.knownAttributeNames)this.refreshAttribute(e,null)}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){const t=e.attributeName;t&&this.refreshAttribute(t,e.oldValue)}refreshAttribute(e,t){const n=this.delegate.getStringMapKeyForAttribute(e);if(null!=n){this.stringMap.has(e)||this.stringMapKeyAdded(n,e);const i=this.element.getAttribute(e);if(this.stringMap.get(e)!=i&&this.stringMapValueChanged(i,n,t),null==i){const t=this.stringMap.get(e);this.stringMap.delete(e),t&&this.stringMapKeyRemoved(n,e,t)}else this.stringMap.set(e,i)}}stringMapKeyAdded(e,t){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,t)}stringMapValueChanged(e,t,n){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,t,n)}stringMapKeyRemoved(e,t,n){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,t,n)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map((e=>e.name))}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class x{constructor(e,t,n){this.attributeObserver=new S(e,t,this),this.delegate=n,this.tokensByElement=new k}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(e){this.attributeObserver.pause(e)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(e){this.tokensMatched(this.readTokensForElement(e))}elementAttributeValueChanged(e){const[t,n]=this.refreshTokensForElement(e);this.tokensUnmatched(t),this.tokensMatched(n)}elementUnmatchedAttribute(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))}tokensMatched(e){e.forEach((e=>this.tokenMatched(e)))}tokensUnmatched(e){e.forEach((e=>this.tokenUnmatched(e)))}tokenMatched(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)}tokenUnmatched(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)}refreshTokensForElement(e){const t=this.tokensByElement.getValuesForKey(e),n=this.readTokensForElement(e),i=function(e,t){const n=Math.max(e.length,t.length);return Array.from({length:n},((n,i)=>[e[i],t[i]]))}(t,n).findIndex((([e,t])=>{return i=t,!((n=e)&&i&&n.index==i.index&&n.content==i.content);var n,i}));return-1==i?[[],[]]:[t.slice(i),n.slice(i)]}readTokensForElement(e){const t=this.attributeName;return function(e,t,n){return e.trim().split(/\s+/).filter((e=>e.length)).map(((e,i)=>({element:t,attributeName:n,content:e,index:i})))}(e.getAttribute(t)||"",e,t)}}class P{constructor(e,t,n){this.tokenListObserver=new x(e,t,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}
vendor: 1,657 bytes, line 2
2get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(e){const{element:t}=e,{value:n}=this.fetchParseResultForToken(e);n&&(this.fetchValuesByTokenForElement(t).set(e,n),this.delegate.elementMatchedValue(t,n))}tokenUnmatched(e){const{element:t}=e,{value:n}=this.fetchParseResultForToken(e);n&&(this.fetchValuesByTokenForElement(t).delete(e),this.delegate.elementUnmatchedValue(t,n))}fetchParseResultForToken(e){let t=this.parseResultsByToken.get(e);return t||(t=this.parseToken(e),this.parseResultsByToken.set(e,t)),t}fetchValuesByTokenForElement(e){let t=this.valuesByTokenByElement.get(e);return t||(t=new Map,this.valuesByTokenByElement.set(e,t)),t}parseToken(e){try{return{value:this.delegate.parseValueForToken(e)}}catch(v){return{error:v}}}}class T{constructor(e,t){this.context=e,this.delegate=t,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new P(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(e){const t=new b(this.context,e);this.bindingsByAction.set(e,t),this.delegate.bindingConnected(t)}disconnectAction(e){const t=this.bindingsByAction.get(e);t&&(this.bindingsByAction.delete(e),this.delegate.bindingDisconnected(t))}
2disconnectAllActions(){this.bindings.forEach((e=>this.delegate.bindingDisconnected(e,!0))),this.bindingsByAction.clear()}parseValueForToken(e){const t=m.forToken(e,this.schema);if(t.identifier==this.identifier)return t}elementMatchedValue(e,t){this.connectAction(t)}elementUnmatchedValue(e,t){this.disconnectAction(t)}}class N{constructor(e,t){this.context=e,this.receiver=t,this.stringMapObserver=new C(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(e){if(e in this.valueDescriptorMap)return this.valueDescriptorMap[e].name}stringMapKeyAdded(e,t){const n=this.valueDescriptorMap[t];this.hasValue(e)||this.invokeChangedCallback(e,n.writer(this.receiver[e]),n.writer(n.defaultValue))}stringMapValueChanged(e,t,n){const i=this.valueDescriptorNameMap[t];null!==e&&(null===n&&(n=i.writer(i.defaultValue)),this.invokeChangedCallback(t,e,n))}stringMapKeyRemoved(e,t,n){const i=this.valueDescriptorNameMap[e];this.hasValue(e)?this.invokeChangedCallback(e,i.writer(this.receiver[e]),n):this.invokeChangedCallback(e,i.writer(i.defaultValue),n)}invokeChangedCallbacksForDefaultValues(){for(const{key:e,name:t,defaultValue:n,writer:i}of this.valueDescriptors)void 0==n||this.controller.data.has(e)||this.invokeChangedCallback(t,i(n),void 0)}invokeChangedCallback(e,t,n){const i=`${e}Changed`,r=this.receiver[i];if("function"==typeof r){const i=this.valueDescriptorNameMap[e];try{const e=i.reader(t);let s=n;n&&(s=i.reader(n)),r.call(this.receiver,e,s)}catch(v){throw v instanceof TypeError&&(v.message=`Stimulus Value "${this.context.identifier}.${i.name}" - ${v.message}`),v}}}get valueDescriptors(){const{valueDescriptorMap:e}=this;return Object.keys(e).map((t=>e[t]))}get valueDescriptorNameMap(){const e={};return Object.keys(this.valueDescriptorMap).forEach((t=>{const n=this.valueDescriptorMap[t];e[n.name]=n})),e}hasValue(e){const t=`has${u(this.valueDescriptorNameMap[e].name)}`;return this.receiver[t]}}class L{constructor(e,t){this.context=e,this.delegate=t,this.targetsByName=new k}start(){this.tokenListObserver||(this.tokenListObserver=new x(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:e,content:t}){this.scope.containsElement(e)&&this.connectTarget(e,t)}tokenUnmatched({element:e,content:t}){this.disconnectTarget(e,t)}connectTarget(e,t){var n;this.targetsByName.has(t,e)||(this.targetsByName.add(t,e),null===(n=this.tokenListObserver)||void 0===n||n.pause((()=>this.delegate.targetConnected(e,t))))}disconnectTarget(e,t){var n;this.targetsByName.has(t,e)&&(this.targetsByName.delete(t,e),null===(n=this.tokenListObserver)||void 0===n||n.pause((()=>this.delegate.targetDisconnected(e,t))))}disconnectAllTargets(){for(const e of this.targetsByName.keys)for(const t of this.targetsByName.getValuesForKey(e))this.disconnectTarget(t,e)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function F(e,t){const n=M(e);return Array.from(n.reduce(((e,n)=>(function(e,t){const n=e[t];return Array.isArray(n)?n:[]}(n,t).forEach((t=>e.add(t))),e)),new Set))}function D(e,t){return M(e).reduce(((e,n)=>(e.push(...function(e,t){const n=e[t];return n?Object.keys(n).map((e=>[e,n[e]])):[]}(n,t)),e)),[])}function M(e){const t=[];for(;e;)t.push(e),e=Object.getPrototypeOf(e);return t.reverse()}class R{constructor(e,t){this.started=!1,this.context=e,this.delegate=t,this.outletsByName=new k,this.outletElementsByName=new k,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach((e=>{this.setupSelectorObserverForOutlet(e),this.setupAttributeObserverForOutlet(e)}
2)),this.started=!0,this.dependentContexts.forEach((e=>e.refresh())))}refresh(){this.selectorObserverMap.forEach((e=>e.refresh())),this.attributeObserverMap.forEach((e=>e.refresh()))}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach((e=>e.stop())),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach((e=>e.stop())),this.attributeObserverMap.clear())}selectorMatched(e,t,{outletName:n}){const i=this.getOutlet(e,n);i&&this.connectOutlet(i,e,n)}selectorUnmatched(e,t,{outletName:n}){const i=this.getOutletFromMap(e,n);i&&this.disconnectOutlet(i,e,n)}selectorMatchElement(e,{outletName:t}){const n=this.selector(t),i=this.hasOutlet(e,t),r=e.matches(`[${this.schema.controllerAttribute}~=${t}]`);return!!n&&(i&&r&&e.matches(n))}elementMatchedAttribute(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}elementAttributeValueChanged(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}elementUnmatchedAttribute(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}connectOutlet(e,t,n){var i;this.outletElementsByName.has(n,t)||(this.outletsByName.add(n,e),this.outletElementsByName.add(n,t),null===(i=this.selectorObserverMap.get(n))||void 0===i||i.pause((()=>this.delegate.outletConnected(e,t,n))))}disconnectOutlet(e,t,n){var i;this.outletElementsByName.has(n,t)&&(this.outletsByName.delete(n,e),this.outletElementsByName.delete(n,t),null===(i=this.selectorObserverMap.get(n))||void 0===i||i.pause((()=>this.delegate.outletDisconnected(e,t,n))))}disconnectAllOutlets(){for(const e of this.outletElementsByName.keys)for(const t of this.outletElementsByName.getValuesForKey(e))for(const n of this.outletsByName.getValuesForKey(e))this.disconnectOutlet(n,t,e)}updateSelectorObserverForOutlet(e){const t=this.selectorObserverMap.get(e);t&&(t.selector=this.selector(e))}setupSelectorObserverForOutlet(e){const t=this.selector(e),n=new A(document.body,t,this,{outletName:e});this.selectorObserverMap.set(e,n),n.start()}setupAttributeObserverForOutlet(e){const t=this.attributeNameForOutletName(e),n=new S(this.scope.element,t,this);this.attributeObserverMap.set(e,n),n.start()}selector(e){return this.scope.outlets.getSelectorForOutletName(e)}attributeNameForOutletName(e){return this.scope.schema.outletAttributeForScope(this.identifier,e)}getOutletNameFromOutletAttributeName(e){return this.outletDefinitions.find((t=>this.attributeNameForOutletName(t)===e))}get outletDependencies(){const e=new k;return this.router.modules.forEach((t=>{F(t.definition.controllerConstructor,"outlets").forEach((n=>e.add(n,t.identifier)))})),e}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const e=this.dependentControllerIdentifiers;return this.router.contexts.filter((t=>e.includes(t.identifier)))}hasOutlet(e,t){return!!this.getOutlet(e,t)||!!this.getOutletFromMap(e,t)}getOutlet(e,t){return this.application.getControllerForElementAndIdentifier(e,t)}getOutletFromMap(e,t){return this.outletsByName.getValuesForKey(t).find((t=>t.element===e))}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class j{constructor(e,t){this.logDebugActivity=(e,t={})=>{const{identifier:n,controller:i,element:r}=this;t=Object.assign({identifier:n,controller:i,element:r},t),this.application.logDebugActivity(this.identifier,e,t)},this.module=e,this.scope=t,this.controller=new e.controllerConstructor(this),this.bindingObserver=new T(this,this.dispatcher),this.valueObserver=new N(this,this.controller),this.targetObserver=new L(this,this),this.outletObserver=new R(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(v){this.handleError(v,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(v){this.handleError(v,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(v){this.handleError(v,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}
2get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(e,t,n={}){const{identifier:i,controller:r,element:s}=this;n=Object.assign({identifier:i,controller:r,element:s},n),this.application.handleError(e,`Error ${t}`,n)}targetConnected(e,t){this.invokeControllerMethod(`${t}TargetConnected`,e)}targetDisconnected(e,t){this.invokeControllerMethod(`${t}TargetDisconnected`,e)}outletConnected(e,t,n){this.invokeControllerMethod(`${c(n)}OutletConnected`,e,t)}outletDisconnected(e,t,n){this.invokeControllerMethod(`${c(n)}OutletDisconnected`,e,t)}invokeControllerMethod(e,...t){const n=this.controller;"function"==typeof n[e]&&n[e](...t)}}function B(e){return function(e,t){const n=V(e),i=function(e,t){return I(t).reduce(((n,i)=>{const r=function(e,t,n){const i=Object.getOwnPropertyDescriptor(e,n);if(!i||!("value"in i)){const e=Object.getOwnPropertyDescriptor(t,n).value;return i&&(e.get=i.get||e.get,e.set=i.set||e.set),e}}(e,t,i);return r&&Object.assign(n,{[i]:r}),n}),{})}(e.prototype,t);return Object.defineProperties(n.prototype,i),n}(e,function(e){const t=F(e,"blessings");return t.reduce(((t,n)=>{const i=n(e);for(const e in i){const n=t[e]||{};t[e]=Object.assign(n,i[e])}return t}),{})}(e))}const I="function"==typeof Object.getOwnPropertySymbols?e=>[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]:Object.getOwnPropertyNames,V=(()=>{function e(e){function t(){return Reflect.construct(e,arguments,new.target)}return t.prototype=Object.create(e.prototype,{constructor:{value:t}}),Reflect.setPrototypeOf(t,e),t}try{return function(){const t=e((function(){this.a.call(this)}));t.prototype.a=function(){},new t}(),e}catch(v){return e=>class extends e{}}})();class z{constructor(e,t){this.application=e,this.definition=function(e){return{identifier:e.identifier,controllerConstructor:B(e.controllerConstructor)}}(t),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(e){const t=this.fetchContextForScope(e);this.connectedContexts.add(t),t.connect()}disconnectContextForScope(e){const t=this.contextsByScope.get(e);t&&(this.connectedContexts.delete(t),t.disconnect())}fetchContextForScope(e){let t=this.contextsByScope.get(e);return t||(t=new j(this,e),this.contextsByScope.set(e,t)),t}}class U{constructor(e){this.scope=e}has(e){return this.data.has(this.getDataKey(e))}get(e){return this.getAll(e)[0]}getAll(e){const t=this.data.get(this.getDataKey(e))||"";return t.match(/[^\s]+/g)||[]}getAttributeName(e){return this.data.getAttributeNameForKey(this.getDataKey(e))}getDataKey(e){return`${e}-class`}get data(){return this.scope.data}}class H{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(e){const t=this.getAttributeNameForKey(e);return this.element.getAttribute(t)}set(e,t){const n=this.getAttributeNameForKey(e);return this.element.setAttribute(n,t),this.get(e)}has(e){const t=this.getAttributeNameForKey(e);return this.element.hasAttribute(t)}delete(e){if(this.has(e)){const t=this.getAttributeNameForKey(e);return this.element.removeAttribute(t),!0}return!1}getAttributeNameForKey(e){return`data-${this.identifier}-${h(e)}`}}class q{constructor(e){this.warnedKeysByObject=new WeakMap,this.logger=e}warn(e,t,n){let i=this.warnedKeysByObject.get(e);i||(i=new Set,this.warnedKeysByObject.set(e,i)),i.has(t)||(i.add(t),this.logger.warn(n,e))}}function W(e,t){return`[${e}~="${t}"]`}class ${constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce(((e,t)=>e||this.findTarget(t)||this.findLegacyTarget(t)),void 0)}findAll(...e){return e.reduce(((e,t)=>[...e,...this.findAllTargets(t),...this.findAllLegacyTargets(t)]),[])}findTarget(e){const t=this.getSelectorForTargetName(e);return this.scope.findElement(t)}findAllTargets(e){const t=this.getSelectorForTargetName(e);return this.scope.findAllElements(t)}getSelectorForTargetName(e){return W(this.schema.targetAttributeForScope(this.identifier),e)}findLegacyTarget(e){const t=this.getLegacySelectorForTargetName(e);return this.deprecate(this.scope.findElement(t),e)}findAllLegacyTargets(e){const t=this.getLegacySelectorForTargetName(e);return this.scope.findAllElements(t).map((t=>this.deprecate(t,e)))}getLegacySelectorForTargetName(e){const t=`${this.identifier}.${e}`;return W(this.schema.targetAttribute,t)}deprecate(e,t){if(e){const{identifier:n}=this,i=this.schema.targetAttribute,r=this.schema.targetAttributeForScope(n);this.guide.warn(e,`target:${t}`,`Please replace ${i}="${n}.${t}" with ${r}="${t}". The ${i} attribute is deprecated and will be removed in a future version of Stimulus.`)}return e}get guide(){return this.scope.guide}}class K{constructor(e,t){this.scope=e,this.controllerElement=t}
2get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce(((e,t)=>e||this.findOutlet(t)),void 0)}findAll(...e){return e.reduce(((e,t)=>[...e,...this.findAllOutlets(t)]),[])}getSelectorForOutletName(e){const t=this.schema.outletAttributeForScope(this.identifier,e);return this.controllerElement.getAttribute(t)}findOutlet(e){const t=this.getSelectorForOutletName(e);if(t)return this.findElement(t,e)}findAllOutlets(e){const t=this.getSelectorForOutletName(e);return t?this.findAllElements(t,e):[]}findElement(e,t){return this.scope.queryElements(e).filter((n=>this.matchesElement(n,e,t)))[0]}findAllElements(e,t){return this.scope.queryElements(e).filter((n=>this.matchesElement(n,e,t)))}matchesElement(e,t,n){const i=e.getAttribute(this.scope.schema.controllerAttribute)||"";return e.matches(t)&&i.split(" ").includes(n)}}class G{constructor(e,t,n,i){this.targets=new $(this),this.classes=new U(this),this.data=new H(this),this.containsElement=e=>e.closest(this.controllerSelector)===this.element,this.schema=e,this.element=t,this.identifier=n,this.guide=new q(i),this.outlets=new K(this.documentScope,t)}findElement(e){return this.element.matches(e)?this.element:this.queryElements(e).find(this.containsElement)}findAllElements(e){return[...this.element.matches(e)?[this.element]:[],...this.queryElements(e).filter(this.containsElement)]}queryElements(e){return Array.from(this.element.querySelectorAll(e))}get controllerSelector(){return W(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new G(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class Z{constructor(e,t,n){this.element=e,this.schema=t,this.delegate=n,this.valueListObserver=new P(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(e){const{element:t,content:n}=e;return this.parseValueForElementAndIdentifier(t,n)}parseValueForElementAndIdentifier(e,t){const n=this.fetchScopesByIdentifierForElement(e);let i=n.get(t);return i||(i=this.delegate.createScopeForElementAndIdentifier(e,t),n.set(t,i)),i}elementMatchedValue(e,t){const n=(this.scopeReferenceCounts.get(t)||0)+1;this.scopeReferenceCounts.set(t,n),1==n&&this.delegate.scopeConnected(t)}elementUnmatchedValue(e,t){const n=this.scopeReferenceCounts.get(t);n&&(this.scopeReferenceCounts.set(t,n-1),1==n&&this.delegate.scopeDisconnected(t))}fetchScopesByIdentifierForElement(e){let t=this.scopesByIdentifierByElement.get(e);return t||(t=new Map,this.scopesByIdentifierByElement.set(e,t)),t}}class Y{constructor(e){this.application=e,this.scopeObserver=new Z(this.element,this.schema,this),this.scopesByIdentifier=new k,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce(((e,t)=>e.concat(t.contexts)),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(e){this.unloadIdentifier(e.identifier);const t=new z(this.application,e);this.connectModule(t);const n=e.controllerConstructor.afterLoad;n&&n.call(e.controllerConstructor,e.identifier,this.application)}unloadIdentifier(e){const t=this.modulesByIdentifier.get(e);t&&this.disconnectModule(t)}getContextForElementAndIdentifier(e,t){const n=this.modulesByIdentifier.get(t);if(n)return n.contexts.find((t=>t.element==e))}proposeToConnectScopeForElementAndIdentifier(e,t){const n=this.scopeObserver.parseValueForElementAndIdentifier(e,t);n?this.scopeObserver.elementMatchedValue(n.element,n):console.error(`Couldn't find or create scope for identifier: "${t}" and element:`,e)}handleError(e,t,n){this.application.handleError(e,t,n)}createScopeForElementAndIdentifier(e,t){return new G(this.schema,e,t,this.logger)}scopeConnected(e){this.scopesByIdentifier.add(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.connectContextForScope(e)}scopeDisconnected(e){this.scopesByIdentifier.delete(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.disconnectContextForScope(e)}connectModule(e){this.modulesByIdentifier.set(e.identifier,e);this.scopesByIdentifier.getValuesForKey(e.identifier).forEach((t=>e.connectContextForScope(t)))}disconnectModule(e){this.modulesByIdentifier.delete(e.identifier);this.scopesByIdentifier.getValuesForKey(e.identifier).forEach((t=>e.disconnectContextForScope(t)))}}const X={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:e=>`data-${e}-target`,outletAttributeForScope:(e,t)=>`data-${e}-${t}
2-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},J("abcdefghijklmnopqrstuvwxyz".split("").map((e=>[e,e])))),J("0123456789".split("").map((e=>[e,e]))))};function J(e){return e.reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{})}class Q{constructor(e=document.documentElement,t=X){this.logger=console,this.debug=!1,this.logDebugActivity=(e,t,n={})=>{this.debug&&this.logFormattedMessage(e,t,n)},this.element=e,this.schema=t,this.dispatcher=new r(this),this.router=new Y(this),this.actionDescriptorFilters=Object.assign({},s)}static start(e,t){const n=new this(e,t);return n.start(),n}async start(){await new Promise((e=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",(()=>e())):e()})),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(e,t){this.load({identifier:e,controllerConstructor:t})}registerActionOption(e,t){this.actionDescriptorFilters[e]=t}load(e,...t){(Array.isArray(e)?e:[e,...t]).forEach((e=>{e.controllerConstructor.shouldLoad&&this.router.loadDefinition(e)}))}unload(e,...t){(Array.isArray(e)?e:[e,...t]).forEach((e=>this.router.unloadIdentifier(e)))}get controllers(){return this.router.contexts.map((e=>e.controller))}getControllerForElementAndIdentifier(e,t){const n=this.router.getContextForElementAndIdentifier(e,t);return n?n.controller:null}handleError(e,t,n){var i;this.logger.error("%s\n\n%o\n\n%o",t,e,n),null===(i=window.onerror)||void 0===i||i.call(window,t,"",0,0,e)}logFormattedMessage(e,t,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}}function ee(e,t,n){return e.application.getControllerForElementAndIdentifier(t,n)}function te(e,t,n){let i=ee(e,t,n);return i||(e.application.router.proposeToConnectScopeForElementAndIdentifier(t,n),i=ee(e,t,n),i||void 0)}function ne([e,t],n){return function(e){const{token:t,typeDefinition:n}=e,i=`${h(t)}-value`,r=function(e){const{controller:t,token:n,typeDefinition:i}=e,r={controller:t,token:n,typeObject:i},s=function(e){const{controller:t,token:n,typeObject:i}=e,r=d(i.type),s=d(i.default),o=r&&s,a=r&&!s,l=!r&&s,c=ie(i.type),u=re(e.typeObject.default);if(a)return c;if(l)return u;if(c!==u){throw new Error(`The specified default value for the Stimulus Value "${t?`${t}.${n}`:n}" must match the defined type "${c}". The provided default value of "${i.default}" is of type "${u}".`)}if(o)return c}(r),o=re(i),a=ie(i),l=s||o||a;if(l)return l;const c=t?`${t}.${i}`:n;throw new Error(`Unknown value type "${c}" for "${n}" value`)}(e);return{type:r,key:i,name:l(i),get defaultValue(){return function(e){const t=ie(e);if(t)return se[t];const n=f(e,"default"),i=f(e,"type"),r=e;if(n)return r.default;if(i){const{type:e}=r,t=ie(e);if(t)return se[t]}return e}(n)},get hasCustomDefaultValue(){return void 0!==re(n)},reader:oe[r],writer:ae[r]||ae.default}}({controller:n,token:e,typeDefinition:t})}function ie(e){switch(e){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function re(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(e)?"array":"[object Object]"===Object.prototype.toString.call(e)?"object":void 0}const se={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},oe={array(e){const t=JSON.parse(e);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${e}" of type "${re(t)}"`);return t},boolean:e=>!("0"==e||"false"==String(e).toLowerCase()),number:e=>Number(e.replace(/_/g,"")),object(e){const t=JSON.parse(e);if(null===t||"object"!=typeof t||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${e}" of type "${re(t)}"`);return t},string:e=>e},ae={default:function(e){return`${e}`},array:le,object:le};function le(e){return JSON.stringify(e)}class ce{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}
2get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:n={},prefix:i=this.identifier,bubbles:r=!0,cancelable:s=!0}={}){const o=new CustomEvent(i?`${i}:${e}`:e,{detail:n,bubbles:r,cancelable:s});return t.dispatchEvent(o),o}}ce.blessings=[function(e){return F(e,"classes").reduce(((e,t)=>{return Object.assign(e,(n=t,{[`${n}Class`]:{get(){const{classes:e}=this;if(e.has(n))return e.get(n);{const t=e.getAttributeName(n);throw new Error(`Missing attribute "${t}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${u(n)}Class`]:{get(){return this.classes.has(n)}}}));var n}),{})},function(e){return F(e,"targets").reduce(((e,t)=>{return Object.assign(e,(n=t,{[`${n}Target`]:{get(){const e=this.targets.find(n);if(e)return e;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${u(n)}Target`]:{get(){return this.targets.has(n)}}}));var n}),{})},function(e){const t=D(e,"values"),n={valueDescriptorMap:{get(){return t.reduce(((e,t)=>{const n=ne(t,this.identifier),i=this.data.getAttributeNameForKey(n.key);return Object.assign(e,{[i]:n})}),{})}}};return t.reduce(((e,t)=>Object.assign(e,function(e,t){const n=ne(e,t),{key:i,name:r,reader:s,writer:o}=n;return{[r]:{get(){const e=this.data.get(i);return null!==e?s(e):n.defaultValue},set(e){void 0===e?this.data.delete(i):this.data.set(i,o(e))}},[`has${u(r)}`]:{get(){return this.data.has(i)||n.hasCustomDefaultValue}}}}(t))),n)},function(e){return F(e,"outlets").reduce(((e,t)=>Object.assign(e,function(e){const t=c(e);return{[`${t}Outlet`]:{get(){const t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t){const n=te(this,t,e);if(n)return n;throw new Error(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${t}Outlets`]:{get(){const t=this.outlets.findAll(e);return t.length>0?t.map((t=>{const n=te(this,t,e);if(n)return n;console.warn(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`,t)})).filter((e=>e)):[]}},[`${t}OutletElement`]:{get(){const t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t)return t;throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(e)}},[`has${u(t)}Outlet`]:{get(){return this.outlets.has(e)}}}}(t))),{})}],ce.targets=[],ce.outlets=[],ce.values={}},8559(e,t,n){"use strict";var i={};n.r(i),n.d(i,{FetchEnctype:()=>Z,FetchMethod:()=>K,FetchRequest:()=>Y,FetchResponse:()=>U,FrameElement:()=>s,FrameLoadingStyle:()=>r,FrameRenderer:()=>we,PageRenderer:()=>vt,PageSnapshot:()=>Le,StreamActions:()=>Ut,StreamElement:()=>Ht,StreamSourceElement:()=>qt,cache:()=>At,config:()=>L,connectStreamSource:()=>Nt,disconnectStreamSource:()=>Lt,fetch:()=>W,fetchEnctypeFromString:()=>G,fetchMethodFromString:()=>$,isSafe:()=>X,morphBodyElements:()=>jt,morphChildren:()=>Ee,morphElements:()=>_e,morphTurboFrameElements:()=>Bt,navigator:()=>Ct,registerAdapter:()=>Pt,renderStreamMessage:()=>Ft,session:()=>kt,setConfirmMethod:()=>Mt,setFormMode:()=>Rt,setProgressBarDelay:()=>Dt,start:()=>xt,visit:()=>Tt});const r={eager:"eager",lazy:"lazy"};class s extends HTMLElement{static delegateConstructor=void 0;loaded=Promise.resolve();static get observedAttributes(){return["disabled","loading","src"]}constructor(){super(),this.delegate=new s.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(e){"loading"==e?this.delegate.loadingStyleChanged():"src"==e?this.delegate.sourceURLChanged():"disabled"==e&&this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get refresh(){return this.getAttribute("refresh")}set refresh(e){e?this.setAttribute("refresh",e):this.removeAttribute("refresh")}get shouldReloadWithMorph(){return this.src&&"morph"===this.refresh}get loading(){return function(e){if("lazy"===e.toLowerCase())return r.lazy;return r.eager}(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){return this.ownerDocument?.documentElement?.hasAttribute("data-turbo-preview")}}const o={enabled:!0,progressBarDelay:500,unvisitableExtensions:new Set([".7z",".aac",".apk",".avi",".bmp",".bz2",".css",".csv",".deb",".dmg",".doc",".docx",".exe",".gif",".gz",".heic",".heif",".ico",".iso",".jpeg",".jpg",".js",".json",".m4a",".mkv",".mov",".mp3",".mp4",".mpeg",".mpg",".msi",".ogg",".ogv",".pdf",".pkg",".png",".ppt",".pptx",".rar",".rtf",".svg",".tar",".tif",".tiff",".txt",".wav",".webm",".webp",".wma",".wmv",".xls",".xlsx",".xml",".zip"])};function a(e){if("false"==e.getAttribute("data-turbo-eval"))return e;{const t=document.createElement("script"),n=O();return n&&(t.nonce=n),t.textContent=e.textContent,t.async=!1,function(e,t){for(const{name:n,value:i}of t.attributes)e.setAttribute(n,i)}(t,e),t}}function l(e,{target:t,cancelable:n,detail:i}={}){const r=new CustomEvent(e,{cancelable:n,bubbles:!0,composed:!0,detail:i});return t&&t.isConnected?t.dispatchEvent(r):document.documentElement.dispatchEvent(r),r}function c(e){e.preventDefault(),e.stopImmediatePropagation()}function u(){return"hidden"===document.visibilityState?d():h()}function h(){return new Promise((e=>requestAnimationFrame((()=>e()))))}function d(){return new Promise((e=>setTimeout((()=>e()),0)))}function f(e=""){return(new DOMParser).parseFromString(e,"text/html")}function p(e,...t){const n=function(e,t){return e.reduce(((e,n,i)=>e+n+(void 0==t[i]?"":t[i])),"")}(e,t).replace(/^\n/,"").split("\n"),i=n[0].match(/^\s+/),r=i?i[0].length:0;return n.map((e=>e.slice(r))).join("\n")}function m(){return Array.from({length:36}).map(((e,t)=>8==t||13==t||18==t||23==t?"-":14==t?"4":19==t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(16*Math.random()).toString(16))).join("")}function g(e,...t){for(const n of t.map((t=>t?.getAttribute(e))))if("string"==typeof n)return n;return null}function v(...e){for(const t of e)"turbo-frame"==t.localName&&t.setAttribute("busy",""),t.setAttribute("aria-busy","true")}function y(...e){for(const t of e)"turbo-frame"==t.localName&&t.removeAttribute("busy"),t.removeAttribute("aria-busy")}function b(e,t=2e3){return new Promise((n=>{const i=()=>{e.removeEventListener("error",i),e.removeEventListener("load",i),n()};e.addEventListener("load",i,{once:!0}),e.addEventListener("error",i,{once:!0}),setTimeout(n,t)}))}function w(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function S(...e){const t=g("data-turbo-action",...e);return function(e){return"advance"==e||"replace"==e||"restore"==e}(t)?t:null}function _(e){return document.querySelector(`meta[name="${e}"]`)}function E(e){const t=_(e);return t&&t.content}function O(){const e=_("csp-nonce");if(e){const{nonce:t,content:n}=e;return""==t?n:t}}function k(e,t){if(e instanceof Element)return e.closest(t)||k(e.assignedSlot||e.getRootNode()?.host,t)}function A(e){return!!e&&null==e.closest("[inert], :disabled, [hidden], details:not([open]), dialog:not([open])")&&"function"==typeof e.focus}function C(e){return Array.from(e.querySelectorAll("[autofocus]")).find(A)}function x(e){if("_blank"===e)return!1;if(e){for(const t of document.getElementsByName(e))if(t instanceof HTMLIFrameElement)return!1;return!0}return!0}function P(e){const t=k(e,"a[href], a[xlink\\:href]");if(!t)return null;if(t.href.startsWith("#"))return null;if(t.hasAttribute("download"))return null;const n=t.getAttribute("target");return n&&"_self"!==n?null:t}const T={"aria-disabled":{beforeSubmit:e=>{e.setAttribute("aria-disabled","true"),e.addEventListener("click",c)},afterSubmit:e=>{e.removeAttribute("aria-disabled"),e.removeEventListener("click",c)}},disabled:{beforeSubmit:e=>e.disabled=!0,afterSubmit:e=>e.disabled=!1}};const N=new class{#e=null;constructor(e){Object.assign(this,e)}get submitter(){return this.#e}set submitter(e){this.#e=T[e]||e}}({mode:"on",submitter:"disabled"}),L={drive:o,forms:N};function F(e){return new URL(e.toString(),document.baseURI)}function D(e){let t;return e.hash?e.hash.slice(1):(t=e.href.match(/#(.*)$/))?t[1]:void 0}function M(e,t){return F(t?.getAttribute("formaction")||e.getAttribute("action")||e.action)}function R(e){return(function(e){return function(e){return e.pathname.split("/").slice(1)}(e).slice(-1)[0]}(e).match(/\.[^.]*$/)||[])[0]||""}function j(e,t){return function(e,t){const n=z(t.origin+t.pathname);return z(e.href)===n||e.href.startsWith(n)}(e,t)&&!L.drive.unvisitableExtensions.has(R(e))}function B(e){return F(e.getAttribute("href")||"")}function I(e){return function(e){const t=D(e);return null!=t?e.href.slice(0,-(t.length+1)):e.href}(e)}function V(e,t){return F(e).href==F(t).href}function z(e){return e.endsWith("/")?e:e+"/"}class U{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return F(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}}class H extends Set{constructor(e){super(),this.maxSize=e}add(e){if(this.size>=this.maxSize){const e=this.values().next().value;this.delete(e)}super.add(e)}}const q=new H(20);function W(e,t={}){const n=new Headers(t.headers||{}),i=m();return q.add(i),n.append("X-Turbo-Request-Id",i),window.fetch(e,{...t,headers:n})}function $(e){switch(e.toLowerCase()){case"get":return K.get;case"post":return K.post;case"put":return K.put;case"patch":return K.patch;case"delete":return K.delete}}const K={get:"get",post:"post",put:"put",patch:"patch",delete:"delete"};function G(e){switch(e.toLowerCase()){case Z.multipart:return Z.multipart;case Z.plain:return Z.plain;default:return Z.urlEncoded}}const Z={urlEncoded:"application/x-www-form-urlencoded",multipart:"multipart/form-data",plain:"text/plain"};class Y{abortController=new AbortController;#t=e=>{};constructor(e,t,n,i=new URLSearchParams,r=null,s=Z.urlEncoded){const[o,a]=J(F(n),t,i,s);this.delegate=e,this.url=o,this.target=r,this.fetchOptions={credentials:"same-origin",redirect:"follow",method:t.toUpperCase(),headers:{...this.defaultHeaders}
2,body:a,signal:this.abortSignal,referrer:this.delegate.referrer?.href},this.enctype=s}get method(){return this.fetchOptions.method}set method(e){const t=this.isSafe?this.url.searchParams:this.fetchOptions.body||new FormData,n=$(e)||K.get;this.url.search="";const[i,r]=J(this.url,n,t,this.enctype);this.url=i,this.fetchOptions.body=r,this.fetchOptions.method=n.toUpperCase()}get headers(){return this.fetchOptions.headers}set headers(e){this.fetchOptions.headers=e}get body(){return this.isSafe?this.url.searchParams:this.fetchOptions.body}set body(e){this.fetchOptions.body=e}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){const{fetchOptions:e}=this;this.delegate.prepareRequest(this);const t=await this.#n(e);try{this.delegate.requestStarted(this),t.detail.fetchRequest?this.response=t.detail.fetchRequest.response:this.response=W(this.url.href,e);const n=await this.response;return await this.receive(n)}catch(n){if("AbortError"!==n.name)throw this.#i(n)&&this.delegate.requestErrored(this,n),n}finally{this.delegate.requestFinished(this)}}async receive(e){const t=new U(e);return l("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return X(this.method)}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}async#n(e){const t=new Promise((e=>this.#t=e)),n=l("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.#t},target:this.target});return this.url=n.detail.url,n.defaultPrevented&&await t,n}#i(e){return!l("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented}}function X(e){return $(e)==K.get}function J(e,t,n,i){const r=Array.from(n).length>0?new URLSearchParams(Q(n)):e.searchParams;return X(t)?[ee(e,r),null]:i==Z.urlEncoded?[e,r]:[e,n]}function Q(e){const t=[];for(const[n,i]of e)i instanceof File||t.push([n,i]);return t}function ee(e,t){const n=new URLSearchParams(Q(t));return e.search=n.toString(),e}class te{started=!1;constructor(e,t){this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}intersect=e=>{const t=e.slice(-1)[0];t?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)}}class ne{static contentType="text/vnd.turbo-stream.html";static wrap(e){return"string"==typeof e?new this(function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e)):e}constructor(e){this.fragment=function(e){for(const t of e.querySelectorAll("turbo-stream")){const e=document.importNode(t,!0);for(const t of e.templateElement.content.querySelectorAll("script"))t.replaceWith(a(t));t.replaceWith(e)}return e}(e)}}const ie=e=>e;class re{keys=[];entries={};#r;constructor(e,t=ie){this.size=e,this.#r=t}has(e){return this.#r(e)in this.entries}get(e){if(this.has(e)){const t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){for(const e of Object.keys(this.entries))this.evict(e)}read(e){return this.entries[this.#r(e)]}write(e,t){this.entries[this.#r(e)]=t}touch(e){e=this.#r(e);const t=this.keys.indexOf(e);t>-1&&this.keys.splice(t,1),this.keys.unshift(e),this.trim()}trim(){for(const e of this.keys.splice(this.size))this.evict(e)}evict(e){delete this.entries[e]}}const se=1e4,oe=new class extends re{#s=null;#o={};constructor(e=1,t=100){super(e,I),this.prefetchDelay=t}putLater(e,t,n){this.#s=setTimeout((()=>{t.perform(),this.put(e,t,n),this.#s=null}),this.prefetchDelay)}put(e,t,n=se){super.put(e,t),this.#o[I(e)]=new Date((new Date).getTime()+n)}clear(){super.clear(),this.#s&&clearTimeout(this.#s)}evict(e){super.evict(e),delete this.#o[e]}has(e){if(super.has(e)){const t=this.#o[I(e)];return t&&t>Date.now()}return!1}},ae={initialized:"initialized",requesting:"requesting",waiting:"waiting",receiving:"receiving",stopping:"stopping",stopped:"stopped"};class le{state=ae.initialized;static confirmMethod(e){return Promise.resolve(confirm(e))}constructor(e,t,n,i=!1){const r=function(e,t){const n=t?.getAttribute("formmethod")||e.getAttribute("method")||"";return $(n.toLowerCase())||K.get}(t,n),s=function(e,t){const n=F(e);X(t)&&(n.search="");return n}(function(e,t){const n="string"===typeof e.action?e.action:null;return t?.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||n||""}(t,n),r),o=function(e,t){const n=new FormData(e),i=t?.getAttribute("name"),r=t?.getAttribute("value");i&&n.append(i,r||"");return n}(t,n),a=function(e,t){return G(t?.getAttribute("formenctype")||e.enctype)}(t,n);this.delegate=e,this.formElement=t,this.submitter=n,this.fetchRequest=new Y(this,r,s,o,t,a),this.mustRedirect=i}get method(){return this.fetchRequest.method}set method(e){this.fetchRequest.method=e}get action(){return this.fetchRequest.url.toString()}set action(e){this.fetchRequest.url=F(e)}get body(){return this.fetchRequest.body}get enctype(){return this.fetchRequest.enctype}get isSafe(){return this.fetchRequest.isSafe}get location(){return this.fetchRequest.url}async start(){const{initialized:e,requesting:t}=ae,n=g("data-turbo-confirm",this.submitter,this.formElement);if("string"===typeof n){const e="function"===typeof L.forms.confirm?L.forms.confirm:le.confirmMethod;if(!await e(n,this.formElement,this.submitter))return}if(this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){const{stopping:e,stopped:t}=ae;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){const t=function(e){if(null!=e){const t=(document.cookie?document.cookie.split("; "):[]).find((t=>t.startsWith(e)));if(t){const e=t.split("=").slice(1).join("=");return e?decodeURIComponent(e):void 0}}}
2(E("csrf-param"))||E("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(ne.contentType)}requestStarted(e){this.state=ae.waiting,this.submitter&&L.forms.submitter.beforeSubmit(this.submitter),this.setSubmitsWith(),v(this.formElement),l("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){oe.clear(),this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(oe.clear(),this.requestMustRedirect(e)&&function(e){return 200==e.statusCode&&!e.redirected}(t)){const e=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,e)}else this.state=ae.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){this.state=ae.stopped,this.submitter&&L.forms.submitter.afterSubmit(this.submitter),this.resetSubmitterText(),y(this.formElement),l("turbo:submit-end",{target:this.formElement,detail:{formSubmission:this,...this.result}}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(this.submitter&&this.submitsWith)if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){const e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}resetSubmitterText(){if(this.submitter&&this.originalSubmitText)if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){this.submitter.value=this.originalSubmitText}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||function(e,...t){return t.some((t=>t&&t.hasAttribute(e)))}("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){return this.submitter?.getAttribute("data-turbo-submits-with")}}class ce{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return null!=this.getElementForAnchor(e)}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){return C(this.element)}get permanentElements(){return he(this.element)}getPermanentElementById(e){return ue(this.element,e)}getPermanentElementMapForSnapshot(e){const t={};for(const n of this.permanentElements){const{id:i}=n,r=e.getPermanentElementById(i);r&&(t[i]=[n,r])}return t}}function ue(e,t){return e.querySelector(`#${t}[data-turbo-permanent]`)}function he(e){return e.querySelectorAll("[id][data-turbo-permanent]")}class de{started=!1;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)};submitBubbled=e=>{if(!e.defaultPrevented){const t=e.target instanceof HTMLFormElement?e.target:void 0,n=e.submitter||void 0;t&&function(e,t){const n=t?.getAttribute("formmethod")||e.getAttribute("method");return"dialog"!=n}(t,n)&&function(e,t){const n=t?.getAttribute("formtarget")||e.getAttribute("target");return x(n)}(t,n)&&this.delegate.willSubmitForm(t,n)&&(e.preventDefault(),e.stopImmediatePropagation(),this.delegate.formSubmitted(t,n))}}}class fe{#a=e=>{};#l=e=>{};constructor(e,t){this.delegate=e,this.element=t}scrollToAnchor(e){const t=this.snapshot.getElementForAnchor(e);t?(this.focusElement(t),this.scrollToElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(D(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}
2async render(e){const{isPreview:t,shouldRender:n,willRender:i,newSnapshot:r}=e,s=i;if(n)try{this.renderPromise=new Promise((e=>this.#a=e)),this.renderer=e,await this.prepareToRenderSnapshot(e);const n=new Promise((e=>this.#l=e)),i={resume:this.#l,render:this.renderer.renderElement,renderMethod:this.renderer.renderMethod};this.delegate.allowsImmediateRender(r,i)||await n,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(r,t,this.renderer.renderMethod),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.#a(void 0),delete this.renderPromise}else s&&this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}markVisitDirection(e){this.element.setAttribute("data-turbo-visit-direction",e)}unmarkVisitDirection(){this.element.removeAttribute("data-turbo-visit-direction")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}}class pe extends fe{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new ce(this.element)}}class me{constructor(e,t){this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}clickBubbled=e=>{this.clickEventIsSignificant(e)?this.clickEvent=e:delete this.clickEvent};linkClicked=e=>{this.clickEvent&&this.clickEventIsSignificant(e)&&this.delegate.shouldInterceptLinkClick(e.target,e.detail.url,e.detail.originalEvent)&&(this.clickEvent.preventDefault(),e.preventDefault(),this.delegate.linkClickIntercepted(e.target,e.detail.url,e.detail.originalEvent)),delete this.clickEvent};willVisit=e=>{delete this.clickEvent};clickEventIsSignificant(e){const t=e.composed?e.target?.parentElement:e.target,n=P(t)||t;return n instanceof Element&&n.closest("turbo-frame, html")==this.element}}class ge{started=!1;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)};clickBubbled=e=>{if(e instanceof MouseEvent&&this.clickEventIsSignificant(e)){const t=P(e.composedPath&&e.composedPath()[0]||e.target);if(t&&x(t.target)){const n=B(t);this.delegate.willFollowLinkToLocation(t,n,e)&&(e.preventDefault(),this.delegate.followedLinkToLocation(t,n))}}};clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}}class ve{constructor(e,t){this.delegate=e,this.linkInterceptor=new ge(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}canPrefetchRequestToLocation(e,t){return!1}prefetchAndCacheRequestToLocation(e,t){}willFollowLinkToLocation(e,t,n){return this.delegate.willSubmitFormLinkToLocation(e,t,n)&&(e.hasAttribute("data-turbo-method")||e.hasAttribute("data-turbo-stream"))}followedLinkToLocation(e,t){const n=document.createElement("form");for(const[l,c]of t.searchParams)n.append(Object.assign(document.createElement("input"),{type:"hidden",name:l,value:c}));const i=Object.assign(t,{search:""});n.setAttribute("data-turbo","true"),n.setAttribute("action",i.href),n.setAttribute("hidden","");const r=e.getAttribute("data-turbo-method");r&&n.setAttribute("method",r);const s=e.getAttribute("data-turbo-frame");s&&n.setAttribute("data-turbo-frame",s);const o=S(e);o&&n.setAttribute("data-turbo-action",o);const a=e.getAttribute("data-turbo-confirm");a&&n.setAttribute("data-turbo-confirm",a);e.hasAttribute("data-turbo-stream")&&n.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,n),document.body.appendChild(n),n.addEventListener("turbo:submit-end",(()=>n.remove()),{once:!0}),requestAnimationFrame((()=>n.requestSubmit()))}}
2class ye{static async preservingPermanentElements(e,t,n){const i=new this(e,t);i.enter(),await n(),i.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(const e in this.permanentElementMap){const[t,n]=this.permanentElementMap[e];this.delegate.enteringBardo(t,n),this.replaceNewPermanentElementWithPlaceholder(n)}}leave(){for(const e in this.permanentElementMap){const[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){const t=function(e){const t=document.createElement("meta");return t.setAttribute("name","turbo-permanent-placeholder"),t.setAttribute("content",e.id),t}(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){const t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){const t=this.getPlaceholderById(e.id);t?.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find((t=>t.content==e))}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}}class be{#c=null;static renderElement(e,t){}constructor(e,t,n,i=!0){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.willRender=i,this.renderElement=this.constructor.renderElement,this.promise=new Promise(((e,t)=>this.resolvingFunctions={resolve:e,reject:t}))}get shouldRender(){return!0}get shouldAutofocus(){return!0}get reloadReason(){}prepareToRender(){}render(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await ye.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){if(this.shouldAutofocus){const e=this.connectedSnapshot.firstAutofocusableElement;e&&e.focus()}}enteringBardo(e){this.#c||e.contains(this.currentSnapshot.activeElement)&&(this.#c=this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(this.#c)&&this.#c instanceof HTMLElement&&(this.#c.focus(),this.#c=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}get renderMethod(){return"replace"}}class we extends be{static renderElement(e,t){const n=document.createRange();n.selectNodeContents(e),n.deleteContents();const i=t,r=i.ownerDocument?.createRange();r&&(r.selectNodeContents(i),e.appendChild(r.extractContents()))}constructor(e,t,n,i,r,s=!0){super(t,n,i,r,s),this.delegate=e}get shouldRender(){return!0}async render(){await u(),this.preservingPermanentElements((()=>{this.loadFrameElement()})),this.scrollFrameIntoView(),await u(),this.focusFirstAutofocusableElement(),await u(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){const n=this.currentElement.firstElementChild,i=(e=this.currentElement.getAttribute("data-autoscroll-block"),t="end","end"==e||"start"==e||"center"==e||"nearest"==e?e:t),r=function(e,t){return"auto"==e||"smooth"==e?e:t}(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(n)return n.scrollIntoView({block:i,behavior:r}),!0}var e,t;return!1}activateScriptElements(){for(const e of this.newScriptElements){const t=a(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}}var Se=function(){const e=()=>{},t={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:e,afterNodeAdded:e,beforeNodeMorphed:e,afterNodeMorphed:e,beforeNodeRemoved:e,afterNodeRemoved:e,beforeAttributeUpdated:e},head:{style:"merge",shouldPreserve:e=>"true"===e.getAttribute("im-preserve"),shouldReAppend:e=>"true"===e.getAttribute("im-re-append"),shouldRemove:e,afterHeadMorphed:e},restoreFocus:!0};const n=function(){function e(e,t,n,r){if(!1===r.callbacks.beforeNodeAdded(t))return null;if(r.idMap.has(t)){const s=document.createElement(t.tagName);return e.insertBefore(s,n),i(s,t,r),r.callbacks.afterNodeAdded(s),s}{const i=document.importNode(t,!0);return e.insertBefore(i,n),r.callbacks.afterNodeAdded(i),i}}const t=function(){function e(e,t,n){let i=e.idMap.get(t),r=e.idMap.get(n);if(!r||!i)return!1;for(const s of i)if(r.has(s))return!0;return!1}function t(e,t){const n=e,i=t;return n.nodeType===i.nodeType&&n.tagName===i.tagName&&(!n.getAttribute?.("id")||n.getAttribute?.("id")===i.getAttribute?.("id"))}return function(n,i,r,s){let o=null,a=i.nextSibling,l=0,c=r;for(;c&&c!=s;){if(t(c,i)){if(e(n,c,i))return c;null===o&&(n.idMap.has(c)||(o=c))}if(null===o&&a&&t(c,a)&&(l++,a=a.nextSibling,l>=2&&(o=void 0)),n.activeElementAndParents.includes(c))break;c=c.nextSibling}return o||null}}();function n(e,t){if(e.idMap.has(t))o(e.pantry,t,null);else{if(!1===e.callbacks.beforeNodeRemoved(t))return;t.parentNode?.removeChild(t),e.callbacks.afterNodeRemoved(t)}}function r(e,t,i){let r=t;for(;r&&r!==i;){let t=r;r=r.nextSibling,n(e,t)}return r}function s(e,t,n,i){const r=i.target.getAttribute?.("id")===t&&i.target||i.target.querySelector(`[id="${t}"]`)||i.pantry.querySelector(`[id="${t}"]`);return function(e,t){const n=e.getAttribute("id");for(;e=e.parentNode;){let i=t.idMap.get(e);i&&(i.delete(n),i.size||t.idMap.delete(e))}}(r,i),o(e,r,n),r}function o(e,t,n){if(e.moveBefore)try{e.moveBefore(t,n)}catch(i){e.insertBefore(t,n)}else e.insertBefore(t,n)}return function(o,a,l,c=null,u=null){a instanceof HTMLTemplateElement&&l instanceof HTMLTemplateElement&&(a=a.content,l=l.content),c||=a.firstChild;for(const n of l.childNodes){if(c&&c!=u){const e=t(o,n,c,u);if(e){e!==c&&r(o,c,e),i(e,n,o),c=e.nextSibling;continue}}if(n instanceof Element){const e=n.getAttribute("id");if(o.persistentIds.has(e)){const t=s(a,e,c,o);i(t,n,o),c=t.nextSibling;continue}}const l=e(a,n,c,o);l&&(c=l.nextSibling)}for(;c&&c!=u;){const e=c;c=c.nextSibling,n(o,e)}}}(),i=function(){function e(e,n,i,r){const s=n[i];if(s!==e[i]){const o=t(i,e,"update",r);o||(e[i]=n[i]),s?o||e.setAttribute(i,""):t(i,e,"remove",r)||e.removeAttribute(i)}}function t(e,t,n,i){return!("value"!==e||!i.ignoreActiveValue||t!==document.activeElement)||!1===i.callbacks.beforeAttributeUpdated(e,t,n)}function i(e,t){return!!t.ignoreActiveValue&&e===document.activeElement&&e!==document.body}return function(s,o,a){return a.ignoreActive&&s===document.activeElement?null:(!1===a.callbacks.beforeNodeMorphed(s,o)||(s instanceof HTMLHeadElement&&a.head.ignore||(s instanceof HTMLHeadElement&&"morph"!==a.head.style?r(s,o,a):(!function(n,r,s){let o=r.nodeType;if(1===o){const o=n,a=r,l=o.attributes,c=a.attributes;for(const e of c)t(e.name,o,"update",s)||o.getAttribute(e.name)!==e.value&&o.setAttribute(e.name,e.value);for(let e=l.length-1;0<=e;e--){const n=l[e];
vendor: 5,244 bytes, line 2
2if(n&&!a.hasAttribute(n.name)){if(t(n.name,o,"remove",s))continue;o.removeAttribute(n.name)}}i(o,s)||function(n,i,r){if(n instanceof HTMLInputElement&&i instanceof HTMLInputElement&&"file"!==i.type){let s=i.value,o=n.value;e(n,i,"checked",r),e(n,i,"disabled",r),i.hasAttribute("value")?o!==s&&(t("value",n,"update",r)||(n.setAttribute("value",s),n.value=s)):t("value",n,"remove",r)||(n.value="",n.removeAttribute("value"))}else if(n instanceof HTMLOptionElement&&i instanceof HTMLOptionElement)e(n,i,"selected",r);else if(n instanceof HTMLTextAreaElement&&i instanceof HTMLTextAreaElement){let e=i.value,s=n.value;if(t("value",n,"update",r))return;e!==s&&(n.value=e),n.firstChild&&n.firstChild.nodeValue!==e&&(n.firstChild.nodeValue=e)}}(o,a,s)}8!==o&&3!==o||n.nodeValue!==r.nodeValue&&(n.nodeValue=r.nodeValue)}(s,o,a),i(s,a)||n(a,s,o))),a.callbacks.afterNodeMorphed(s,o)),s)}}();function r(e,t,n){let i=[],r=[],s=[],o=[],a=new Map;for(const c of t.children)a.set(c.outerHTML,c);for(const c of e.children){let e=a.has(c.outerHTML),t=n.head.shouldReAppend(c),i=n.head.shouldPreserve(c);e||i?t?r.push(c):(a.delete(c.outerHTML),s.push(c)):"append"===n.head.style?t&&(r.push(c),o.push(c)):!1!==n.head.shouldRemove(c)&&r.push(c)}o.push(...a.values());let l=[];for(const c of o){let t=document.createRange().createContextualFragment(c.outerHTML).firstChild;if(!1!==n.callbacks.beforeNodeAdded(t)){if("href"in t&&t.href||"src"in t&&t.src){let e,n=new Promise((function(t){e=t}));t.addEventListener("load",(function(){e()})),l.push(n)}e.appendChild(t),n.callbacks.afterNodeAdded(t),i.push(t)}}for(const c of r)!1!==n.callbacks.beforeNodeRemoved(c)&&(e.removeChild(c),n.callbacks.afterNodeRemoved(c));return n.head.afterHeadMorphed(e,{added:i,kept:s,removed:r}),l}const s=function(){function e(){const e=document.createElement("div");return e.hidden=!0,document.body.insertAdjacentElement("afterend",e),e}function n(e){let t=[],n=document.activeElement;if("BODY"!==n?.tagName&&e.contains(n))for(;n&&(t.push(n),n!==e);)n=n.parentElement;return t}function i(e){let t=Array.from(e.querySelectorAll("[id]"));return e.getAttribute?.("id")&&t.push(e),t}function r(e,t,n,i){for(const r of i){const i=r.getAttribute("id");if(t.has(i)){let t=r;for(;t;){let r=e.get(t);if(null==r&&(r=new Set,e.set(t,r)),r.add(i),t===n)break;t=t.parentElement}}}}return function(s,o,a){const{persistentIds:l,idMap:c}=function(e,t){const n=i(e),s=i(t),o=function(e,t){let n=new Set,i=new Map;for(const{id:s,tagName:o}of e)i.has(s)?n.add(s):i.set(s,o);let r=new Set;for(const{id:s,tagName:o}of t)r.has(s)?n.add(s):i.get(s)===o&&r.add(s);for(const s of n)r.delete(s);return r}(n,s);let a=new Map;r(a,o,e,n);const l=t.__idiomorphRoot||t;return r(a,o,l,s),{persistentIds:o,idMap:a}}(s,o),u=function(e){let n=Object.assign({},t);return Object.assign(n,e),n.callbacks=Object.assign({},t.callbacks,e.callbacks),n.head=Object.assign({},t.head,e.head),n}(a),h=u.morphStyle||"outerHTML";if(!["innerHTML","outerHTML"].includes(h))throw`Do not understand how to morph style ${h}`;return{target:s,newContent:o,config:u,morphStyle:h,ignoreActive:u.ignoreActive,ignoreActiveValue:u.ignoreActiveValue,restoreFocus:u.restoreFocus,idMap:c,persistentIds:l,pantry:e(),activeElementAndParents:n(s),callbacks:u.callbacks,head:u.head}}}(),{normalizeElement:o,normalizeParent:a}=function(){const e=new WeakSet;class t{constructor(e){this.originalNode=e,this.realParentNode=e.parentNode,this.previousSibling=e.previousSibling,this.nextSibling=e.nextSibling}get childNodes(){const e=[];let t=this.previousSibling?this.previousSibling.nextSibling:this.realParentNode.firstChild;for(;t&&t!=this.nextSibling;)e.push(t),t=t.nextSibling;return e}querySelectorAll(e){return this.childNodes.reduce(((t,n)=>{if(n instanceof Element){n.matches(e)&&t.push(n);const i=n.querySelectorAll(e);for(let e=0;e<i.length;e++)t.push(i[e])}return t}),[])}insertBefore(e,t){return this.realParentNode.insertBefore(e,t)}moveBefore(e,t){return this.realParentNode.moveBefore(e,t)}get __idiomorphRoot(){return this.originalNode}}return{normalizeElement:function(e){return e instanceof Document?e.documentElement:e},normalizeParent:function n(i){if(null==i)return document.createElement("div");if("string"===typeof i)return n(function(t){let n=new DOMParser,i=t.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(i.match(/<\/html>/)||i.match(/<\/head>/)||i.match(/<\/body>/)){let r=n.parseFromString(t,"text/html");if(i.match(/<\/html>/))return e.add(r),r;{let t=r.firstChild;return t&&e.add(t),t}}{let i=n.parseFromString("<body><template>"+t+"</template></body>","text/html").body.querySelector("template").content;return e.add(i),i}}(i));if(e.has(i))return i;if(i instanceof Node){if(i.parentNode)return new t(i);{const e=document.createElement("div");return e.append(i),e}}{const e=document.createElement("div");for(const t of[...i])e.append(t);return e}}}}();return{morph:function(e,t,i={}){e=o(e);const l=a(t),c=s(e,l,i),u=function(e,t){if(!e.config.restoreFocus)return t();let n=document.activeElement;if(!(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement))return t();const{id:i,selectionStart:r,selectionEnd:s}=n,o=t();i&&i!==document.activeElement?.getAttribute("id")&&(n=e.target.querySelector(`[id="${i}
2"]`),n?.focus());n&&!n.selectionEnd&&s&&n.setSelectionRange(r,s);return o}(c,(()=>function(e,t,n,i){if(e.head.block){const s=t.querySelector("head"),o=n.querySelector("head");if(s&&o){const t=r(s,o,e);return Promise.all(t).then((()=>{const t=Object.assign(e,{head:{block:!1,ignore:!0}});return i(t)}))}}return i(e)}(c,e,l,(t=>"innerHTML"===t.morphStyle?(n(t,e,l),Array.from(e.childNodes)):function(e,t,i){const r=a(t);return n(e,r,i,t,t.nextSibling),Array.from(r.childNodes)}(t,e,l)))));return c.pantry.remove(),u},defaults:t}}();function _e(e,t,{callbacks:n,...i}={}){Se.morph(e,t,{...i,callbacks:new Ae(n)})}function Ee(e,t,n={}){_e(e,t.childNodes,{...n,morphStyle:"innerHTML"})}function Oe(e,t){return e instanceof s&&e.shouldReloadWithMorph&&(!t||function(e,t){return t instanceof Element&&"TURBO-FRAME"===t.nodeName&&e.id===t.id&&(!t.getAttribute("src")||V(e.src,t.getAttribute("src")))}(e,t))&&!e.closest("[data-turbo-permanent]")}function ke(e){return e.parentElement.closest("turbo-frame[src][refresh=morph]")}class Ae{#u;constructor({beforeNodeMorphed:e}={}){this.#u=e||(()=>!0)}beforeNodeAdded=e=>!(e.id&&e.hasAttribute("data-turbo-permanent")&&document.getElementById(e.id));beforeNodeMorphed=(e,t)=>{if(e instanceof Element){if(!e.hasAttribute("data-turbo-permanent")&&this.#u(e,t)){return!l("turbo:before-morph-element",{cancelable:!0,target:e,detail:{currentElement:e,newElement:t}}).defaultPrevented}return!1}};beforeAttributeUpdated=(e,t,n)=>!l("turbo:before-morph-attribute",{cancelable:!0,target:t,detail:{attributeName:e,mutationType:n}}).defaultPrevented;beforeNodeRemoved=e=>this.beforeNodeMorphed(e);afterNodeMorphed=(e,t)=>{e instanceof Element&&l("turbo:morph-element",{target:e,detail:{currentElement:e,newElement:t}})}}class Ce extends we{static renderElement(e,t){l("turbo:before-frame-morph",{target:e,detail:{currentElement:e,newElement:t}}),Ee(e,t,{callbacks:{beforeNodeMorphed:(t,n)=>!Oe(t,n)||ke(t)!==e||(t.reload(),!1)}})}async preservingPermanentElements(e){return await e()}}class xe{static animationDuration=300;static get defaultCSS(){return p` 3 .turbo-progress-bar { 4 position: fixed; 5 display: block; 6 top: 0; 7 left: 0; 8 height: 3px; 9 background: #0076ff; 10 z-index: 2147483647; 11 transition: 12 width ${xe.animationDuration}ms ease-out, 13 opacity ${xe.animationDuration/2}ms ${xe.animationDuration/2}ms ease-in; 14 transform: translate3d(0, 0, 0); 15 } 16 `}hiding=!1;value=0;visible=!1;constructor(){this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement((()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1})))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,1.5*xe.animationDuration)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,xe.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}trickle=()=>{this.setValue(this.value+Math.random()/100)};refresh(){requestAnimationFrame((()=>{this.progressElement.style.width=10+90*this.value+"%"}))}createStylesheetElement(){const e=document.createElement("style");e.type="text/css",e.textContent=xe.defaultCSS;const t=O();return t&&(e.nonce=t),e}createProgressElement(){const e=document.createElement("div");return e.className="turbo-progress-bar",e}}class Pe extends ce{detailsByOuterHTML=this.children.filter((e=>!function(e){const t=e.localName;return"noscript"==t}(e))).map((e=>function(e){e.hasAttribute("nonce")&&e.setAttribute("nonce","");return e}(e))).reduce(((e,t)=>{const{outerHTML:n}=t,i=n in e?e[n]:{type:Te(t),tracked:Ne(t),elements:[]};return{...e,[n]:{...i,elements:[...i.elements,t]}}}),{});get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter((e=>this.detailsByOuterHTML[e].tracked)).join("")}getScriptElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("script",e)}getStylesheetElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",e)}getElementsMatchingTypeNotInSnapshot(e,t){return Object.keys(this.detailsByOuterHTML).filter((e=>!(e in t.detailsByOuterHTML))).map((e=>this.detailsByOuterHTML[e])).filter((({type:t})=>t==e)).map((({elements:[e]})=>e))}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce(((e,t)=>{const{type:n,tracked:i,elements:r}=this.detailsByOuterHTML[t];return null!=n||i?r.length>1?[...e,...r.slice(1)]:e:[...e,...r]}),[])}getMetaValue(e){const t=this.findMetaElementByName(e);return t?t.getAttribute("content"):null}findMetaElementByName(e){return Object.keys(this.detailsByOuterHTML).reduce(((t,n)=>{const{elements:[i]}=this.detailsByOuterHTML[n];return function(e,t){const n=e.localName;return"meta"==n&&e.getAttribute("name")==t}(i,e)?i:t}),0)}}function Te(e){return function(e){const t=e.localName;return"script"==t}
16(e)?"script":function(e){const t=e.localName;return"style"==t||"link"==t&&"stylesheet"==e.getAttribute("rel")}(e)?"stylesheet":void 0}function Ne(e){return"reload"==e.getAttribute("data-turbo-track")}class Le extends ce{static fromHTMLString(e=""){return this.fromDocument(f(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({documentElement:e,body:t,head:n}){return new this(e,t,new Pe(n))}constructor(e,t,n){super(t),this.documentElement=e,this.headSnapshot=n}clone(){const e=this.element.cloneNode(!0),t=this.element.querySelectorAll("select"),n=e.querySelectorAll("select");for(const[i,r]of t.entries()){const e=n[i];for(const t of e.selectedOptions)t.selected=!1;for(const t of r.selectedOptions)e.options[t.index].selected=!0}for(const i of e.querySelectorAll('input[type="password"]'))i.value="";for(const i of e.querySelectorAll("noscript"))i.remove();return new Le(this.documentElement,e,this.headSnapshot)}get lang(){return this.documentElement.getAttribute("lang")}get dir(){return this.documentElement.getAttribute("dir")}get headElement(){return this.headSnapshot.element}get rootLocation(){return F(this.getSetting("root")??"/")}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return"no-preview"!=this.cacheControlValue}get isCacheable(){return"no-cache"!=this.cacheControlValue}get isVisitable(){return"reload"!=this.getSetting("visit-control")}get prefersViewTransitions(){return("true"===this.getSetting("view-transition")||"same-origin"===this.headSnapshot.getMetaValue("view-transition"))&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}get refreshMethod(){return this.getSetting("refresh-method")}get refreshScroll(){return this.getSetting("refresh-scroll")}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}}class Fe{#h=!1;#d=Promise.resolve();renderChange(e,t){return e&&this.viewTransitionsAvailable&&!this.#h?(this.#h=!0,this.#d=this.#d.then((async()=>{await document.startViewTransition(t).finished}))):this.#d=this.#d.then(t),this.#d}get viewTransitionsAvailable(){return document.startViewTransition}}const De={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1,refresh:{}},Me="visitStart",Re="requestStart",je="requestEnd",Be="visitEnd",Ie="initialized",Ve="started",ze="canceled",Ue="failed",He="completed",qe=0,We=-1,$e=-2,Ke={advance:"forward",restore:"back",replace:"none"};class Ge{identifier=m();timingMetrics={};followedRedirect=!1;historyChanged=!1;scrolled=!1;shouldCacheSnapshot=!0;acceptsStreamResponse=!1;snapshotCached=!1;state=Ie;viewTransitioner=new Fe;constructor(e,t,n,i={}){this.delegate=e,this.location=t,this.restorationIdentifier=n||m();const{action:r,historyChanged:s,referrer:o,snapshot:a,snapshotHTML:l,response:c,visitCachedSnapshot:u,willRender:h,updateHistory:d,shouldCacheSnapshot:f,acceptsStreamResponse:p,direction:g,refresh:v}={...De,...i};this.action=r,this.historyChanged=s,this.referrer=o,this.snapshot=a,this.snapshotHTML=l,this.response=c,this.isPageRefresh=this.view.isPageRefresh(this),this.visitCachedSnapshot=u,this.willRender=h,this.updateHistory=d,this.scrolled=!h,this.shouldCacheSnapshot=f,this.acceptsStreamResponse=p,this.direction=g||Ke[r],this.refresh=v}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}start(){this.state==Ie&&(this.recordTimingMetric(Me),this.state=Ve,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==Ve&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=ze)}complete(){this.state==Ve&&(this.recordTimingMetric(Be),this.adapter.visitCompleted(this),this.state=He,this.followRedirect(),this.followedRedirect||this.delegate.visitCompleted(this))}fail(){this.state==Ve&&(this.state=Ue,this.adapter.visitFailed(this),this.delegate.visitCompleted(this))}changeHistory(){if(!this.historyChanged&&this.updateHistory){const e=w(this.location.href===this.referrer?.href?"replace":this.action);this.history.update(e,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new Y(this,K.get,this.location),this.request.perform())}
16simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(Re),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){const{statusCode:t}=e;Ze(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(je),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){const{statusCode:e,responseHTML:t}=this.response;this.render((async()=>{if(this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,Ze(e)&&null!=t){const e=Le.fromHTMLString(t);await this.renderPageSnapshot(e,!1),this.adapter.visitRendered(this),this.complete()}else await this.view.renderError(Le.fromHTMLString(t),this),this.adapter.visitRendered(this),this.fail()}))}}getCachedSnapshot(){const e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!D(this.location)||e.hasAnchor(D(this.location)))&&("restore"==this.action||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return Le.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return null!=this.getCachedSnapshot()}loadCachedSnapshot(){const e=this.getCachedSnapshot();if(e){const t=this.shouldIssueRequest();this.render((async()=>{this.cacheSnapshot(),this.isPageRefresh?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.renderPageSnapshot(e,t),this.adapter.visitRendered(this),t||this.complete())}))}}followRedirect(){this.redirectedToLocation&&!this.followedRedirect&&this.response?.redirected&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}prepareRequest(e){this.acceptsStreamResponse&&e.acceptResponseType(ne.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){const n=await t.responseHTML,{redirected:i,statusCode:r}=t;void 0==n?this.recordResponse({statusCode:$e,redirected:i}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:r,responseHTML:n,redirected:i}))}async requestFailedWithResponse(e,t){const n=await t.responseHTML,{redirected:i,statusCode:r}=t;void 0==n?this.recordResponse({statusCode:$e,redirected:i}):this.recordResponse({statusCode:r,responseHTML:n,redirected:i})}requestErrored(e,t){this.recordResponse({statusCode:qe,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){this.scrolled||this.view.forceReloaded||this.view.shouldPreserveScrollPosition(this)||("restore"==this.action?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.scrolled=!0)}scrollToRestoredPosition(){const{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){const e=D(this.location);if(null!=e)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=(new Date).getTime()}getTimingMetrics(){return{...this.timingMetrics}}hasPreloadedResponse(){return"object"==typeof this.response}shouldIssueRequest(){return"restore"==this.action?!this.hasCachedSnapshot():this.willRender}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then((e=>e&&this.visitCachedSnapshot(e))),this.snapshotCached=!0)}async render(e){this.cancelRender(),await new Promise((e=>{this.frame="hidden"===document.visibilityState?setTimeout((()=>e()),0):requestAnimationFrame((()=>e()))})),await e(),delete this.frame}async renderPageSnapshot(e,t){await this.viewTransitioner.renderChange(this.view.shouldTransitionTo(e),(async()=>{await this.view.renderPage(e,t,this.willRender,this),this.performScroll()}))}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}}function Ze(e){return e>=200&&e<300}class Ye{progressBar=new xe;constructor(e){this.session=e}visitProposedToLocation(e,t){j(e,this.navigator.rootLocation)?this.navigator.startVisit(e,t?.restorationIdentifier||m(),t):window.location.href=e.toString()}visitStarted(e){this.location=e.location,this.redirectedToLocation=null,e.loadCachedSnapshot(),e.issueRequest()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!=e.action?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse(),e.response.redirected&&(this.redirectedToLocation=e.redirectedToLocation)}visitRequestFailedWithStatusCode(e,t){switch(t){case qe:case We:case $e:return this.reload({reason:"request_failed",context:{statusCode:t}});default:return e.loadResponse()}}visitRequestFinished(e){}visitCompleted(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}pageInvalidated(e){this.reload(e)}visitFailed(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitRendered(e){}linkPrefetchingIsEnabledForLocation(e){return!0}
16formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),null!=this.visitProgressBarTimeout&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){null==this.formProgressBarTimeout&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),null!=this.formProgressBarTimeout&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}showProgressBar=()=>{this.progressBar.show()};reload(e){l("turbo:reload",{detail:e}),window.location.href=(this.redirectedToLocation||this.location)?.toString()||window.location.href}get navigator(){return this.session.navigator}}class Xe{selector="[data-turbo-temporary]";started=!1;start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}removeTemporaryElements=e=>{for(const t of this.temporaryElements)t.remove()};get temporaryElements(){return[...document.querySelectorAll(this.selector)]}}class Je{constructor(e,t){this.session=e,this.element=t,this.linkInterceptor=new me(this,t),this.formSubmitObserver=new de(this,t)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(e,t,n){return this.#f(e)}linkClickIntercepted(e,t,n){const i=this.#p(e);i&&i.delegate.linkClickIntercepted(e,t,n)}willSubmitForm(e,t){return null==e.closest("turbo-frame")&&this.#m(e,t)&&this.#f(e,t)}formSubmitted(e,t){const n=this.#p(e,t);n&&n.delegate.formSubmitted(e,t)}#m(e,t){const n=M(e,t),i=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),r=F(i?.content??"/");return this.#f(e,t)&&j(n,r)}#f(e,t){if(e instanceof HTMLFormElement?this.session.submissionIsNavigatable(e,t):this.session.elementIsNavigatable(e)){const n=this.#p(e,t);return!!n&&n!=e.closest("turbo-frame")}return!1}#p(e,t){const n=t?.getAttribute("data-turbo-frame")||e.getAttribute("data-turbo-frame");if(n&&"_top"!=n){const e=this.element.querySelector(`#${n}:not([disabled])`);if(e instanceof s)return e}}}class Qe{location;restorationIdentifier=m();restorationData={};started=!1;currentIndex=0;constructor(e){this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),this.currentIndex=history.state?.turbo?.restorationIndex||0,this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,n=m()){e===history.pushState&&++this.currentIndex;const i={turbo:{restorationIdentifier:n,restorationIndex:this.currentIndex}};e.call(history,i,"",t.href),this.location=t,this.restorationIdentifier=n}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){const{restorationIdentifier:t}=this,n=this.restorationData[t];this.restorationData[t]={...n,...e}}assumeControlOfScrollRestoration(){this.previousScrollRestoration||(this.previousScrollRestoration=history.scrollRestoration??"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}onPopState=e=>{const{turbo:t}=e.state||{};if(this.location=new URL(window.location.href),t){const{restorationIdentifier:e,restorationIndex:n}=t;this.restorationIdentifier=e;const i=n>this.currentIndex?"forward":"back";this.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(this.location,e,i),this.currentIndex=n}else this.currentIndex++,this.delegate.historyPoppedWithEmptyState(this.location)}}class et{started=!1;#g=null;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||("loading"===this.eventTarget.readyState?this.eventTarget.addEventListener("DOMContentLoaded",this.#v,{once:!0}):this.#v())}stop(){this.started&&(this.eventTarget.removeEventListener("mouseenter",this.#y,{
16capture:!0,passive:!0}),this.eventTarget.removeEventListener("mouseleave",this.#b,{capture:!0,passive:!0}),this.eventTarget.removeEventListener("turbo:before-fetch-request",this.#w,!0),this.started=!1)}#v=()=>{this.eventTarget.addEventListener("mouseenter",this.#y,{capture:!0,passive:!0}),this.eventTarget.addEventListener("mouseleave",this.#b,{capture:!0,passive:!0}),this.eventTarget.addEventListener("turbo:before-fetch-request",this.#w,!0),this.started=!0};#y=e=>{if("false"===E("turbo-prefetch"))return;const t=e.target;if(t.matches&&t.matches("a[href]:not([target^=_]):not([download])")&&this.#S(t)){const e=t,n=B(e);if(this.delegate.canPrefetchRequestToLocation(e,n)){this.#g=e;const i=new Y(this,K.get,n,new URLSearchParams,t);i.fetchOptions.priority="low",oe.putLater(n,i,this.#_)}}};#b=e=>{e.target===this.#g&&this.#E()};#E=()=>{oe.clear(),this.#g=null};#w=e=>{if("FORM"!==e.target.tagName&&"GET"===e.detail.fetchOptions.method){const t=oe.get(e.detail.url);t&&(e.detail.fetchRequest=t),oe.clear()}};prepareRequest(e){const t=e.target;e.headers["X-Sec-Purpose"]="prefetch";const n=t.closest("turbo-frame"),i=t.getAttribute("data-turbo-frame")||n?.getAttribute("target")||n?.id;i&&"_top"!==i&&(e.headers["Turbo-Frame"]=i)}requestSucceededWithResponse(){}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}get#_(){return Number(E("turbo-prefetch-cache-time"))||se}#S(e){return!!e.getAttribute("href")&&(!tt(e)&&(!nt(e)&&(!it(e)&&(!rt(e)&&!ot(e)))))}}const tt=e=>e.origin!==document.location.origin||!["http:","https:"].includes(e.protocol)||e.hasAttribute("target"),nt=e=>e.pathname+e.search===document.location.pathname+document.location.search||e.href.startsWith("#"),it=e=>{if("false"===e.getAttribute("data-turbo-prefetch"))return!0;if("false"===e.getAttribute("data-turbo"))return!0;const t=k(e,"[data-turbo-prefetch]");return!(!t||"false"!==t.getAttribute("data-turbo-prefetch"))},rt=e=>{const t=e.getAttribute("data-turbo-method");return!(!t||"get"===t.toLowerCase())||(!!st(e)||(!!e.hasAttribute("data-turbo-confirm")||!!e.hasAttribute("data-turbo-stream")))},st=e=>e.hasAttribute("data-remote")||e.hasAttribute("data-behavior")||e.hasAttribute("data-confirm")||e.hasAttribute("data-method"),ot=e=>l("turbo:before-prefetch",{target:e,cancelable:!0}).defaultPrevented;class at{constructor(e){this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&this.delegate.visitProposedToLocation(e,t)}startVisit(e,t,n={}){this.stop(),this.currentVisit=new Ge(this,F(e),t,{referrer:this.location,...n}),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new le(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get rootLocation(){return this.view.snapshot.rootLocation}get history(){return this.delegate.history}formSubmissionStarted(e){"function"===typeof this.adapter.formSubmissionStarted&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){const n=await t.responseHTML;if(n){const i=e.isSafe;i||this.view.clearSnapshotCache();const{statusCode:r,redirected:s}=t,o={action:this.#O(e,t),shouldCacheSnapshot:i,response:{statusCode:r,responseHTML:n,redirected:s}};this.proposeVisit(t.location,o)}}}async formSubmissionFailedWithResponse(e,t){const n=await t.responseHTML;if(n){const e=Le.fromHTMLString(n);t.serverError?await this.view.renderError(e,this.currentVisit):await this.view.renderPage(e,!1,!0,this.currentVisit),"preserve"!==e.refreshScroll&&this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){"function"===typeof this.adapter.formSubmissionFinished&&this.adapter.formSubmissionFinished(e)}linkPrefetchingIsEnabledForLocation(e){return"function"!==typeof this.adapter.linkPrefetchingIsEnabledForLocation||this.adapter.linkPrefetchingIsEnabledForLocation(e)}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e),delete this.currentVisit}locationWithActionIsSamePage(e,t){return!1}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}#O(e,t){const{submitter:n,formElement:i}=e;return S(n,i)||this.#k(t)}#k(e){return e.redirected&&e.location.href===this.location?.href?"replace":"advance"}}const lt=0,ct=1,ut=2,ht=3;class dt{stage=lt;started=!1;constructor(e){this.delegate=e}start(){this.started||(this.stage==lt&&(this.stage=ct),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}interpretReadyState=()=>{const{readyState:e}=this;
16"interactive"==e?this.pageIsInteractive():"complete"==e&&this.pageIsComplete()};pageIsInteractive(){this.stage==ct&&(this.stage=ut,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==ut&&(this.stage=ht,this.delegate.pageLoaded())}pageWillUnload=()=>{this.delegate.pageWillUnload()};get readyState(){return document.readyState}}class ft{started=!1;constructor(e){this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})};updatePosition(e){this.delegate.scrollPositionChanged(e)}}class pt{render({fragment:e}){ye.preservingPermanentElements(this,function(e){const t=he(document.documentElement),n={};for(const i of t){const{id:t}=i;for(const r of e.querySelectorAll("turbo-stream")){const e=ue(r.templateElement.content,t);e&&(n[t]=[i,e])}}return n}(e),(()=>{!async function(e,t){const n=`turbo-stream-autofocus-${m()}`,i=e.querySelectorAll("turbo-stream"),r=function(e){for(const t of e){const e=C(t.templateElement.content);if(e)return e}return null}(i);let s=null;r&&(s=r.id?r.id:n,r.id=s);t(),await u();if((null==document.activeElement||document.activeElement==document.body)&&s){const e=document.getElementById(s);A(e)&&e.focus(),e&&e.id==n&&e.removeAttribute("id")}}(e,(()=>{!async function(e){const[t,n]=await async function(e,t){const n=t();return e(),await h(),[n,t()]}(e,(()=>document.activeElement)),i=t&&t.id;if(i){const e=document.getElementById(i);A(e)&&e!=n&&e.focus()}}((()=>{document.documentElement.appendChild(e)}))}))}))}enteringBardo(e,t){t.replaceWith(e.cloneNode(!0))}leavingBardo(){}}class mt{sources=new Set;#A=!1;constructor(e){this.delegate=e}start(){this.#A||(this.#A=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.#A&&(this.#A=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}inspectFetchResponse=e=>{const t=function(e){const t=e.detail?.fetchResponse;if(t instanceof U)return t}(e);t&&function(e){const t=e.contentType??"";return t.startsWith(ne.contentType)}(t)&&(e.preventDefault(),this.receiveMessageResponse(t))};receiveMessageEvent=e=>{this.#A&&"string"==typeof e.data&&this.receiveMessageHTML(e.data)};async receiveMessageResponse(e){const t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(ne.wrap(e))}}class gt extends be{static renderElement(e,t){const{documentElement:n,body:i}=document;n.replaceChild(t,i)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){const{documentElement:e,head:t}=document;e.replaceChild(this.newHead,t),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(const e of this.scriptElements){const t=e.parentNode;if(t){const n=a(e);t.replaceChild(n,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}}class vt extends be{static renderElement(e,t){document.body&&t instanceof HTMLBodyElement?document.body.replaceWith(t):document.documentElement.appendChild(t)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){return this.newSnapshot.isVisitable?this.trackedElementsAreIdentical?void 0:{reason:"tracked_element_mismatch"}:{reason:"turbo_visit_control_is_reload"}}async prepareToRender(){this.#C(),await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}
16get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}#C(){const{documentElement:e}=this.currentSnapshot,{dir:t,lang:n}=this.newSnapshot;n?e.setAttribute("lang",n):e.removeAttribute("lang"),t?e.setAttribute("dir",t):e.removeAttribute("dir")}async mergeHead(){const e=this.mergeProvisionalElements(),t=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await e,await t,this.willRender&&this.removeUnusedDynamicStylesheetElements()}async replaceBody(){await this.preservingPermanentElements((async()=>{this.activateNewBody(),await this.assignNewBody()}))}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){const e=[];for(const t of this.newHeadStylesheetElements)e.push(b(t)),document.head.appendChild(t);await Promise.all(e)}copyNewHeadScriptElements(){for(const e of this.newHeadScriptElements)document.head.appendChild(a(e))}removeUnusedDynamicStylesheetElements(){for(const e of this.unusedDynamicStylesheetElements)document.head.removeChild(e)}async mergeProvisionalElements(){const e=[...this.newHeadProvisionalElements];for(const t of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(t,e)||document.head.removeChild(t);for(const t of e)document.head.appendChild(t)}isCurrentElementInElementList(e,t){for(const[n,i]of t.entries()){if("TITLE"==e.tagName){if("TITLE"!=i.tagName)continue;if(e.innerHTML==i.innerHTML)return t.splice(n,1),!0}if(i.isEqualNode(e))return t.splice(n,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(const e of this.currentHeadProvisionalElements)document.head.removeChild(e)}copyNewHeadProvisionalElements(){for(const e of this.newHeadProvisionalElements)document.head.appendChild(e)}activateNewBody(){document.adoptNode(this.newElement),this.removeNoscriptElements(),this.activateNewBodyScriptElements()}removeNoscriptElements(){for(const e of this.newElement.querySelectorAll("noscript"))e.remove()}activateNewBodyScriptElements(){for(const e of this.newBodyScriptElements){const t=a(e);e.replaceWith(t)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get unusedDynamicStylesheetElements(){return this.oldHeadStylesheetElements.filter((e=>"dynamic"===e.getAttribute("data-turbo-track")))}get oldHeadStylesheetElements(){return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}}class yt extends vt{static renderElement(e,t){_e(e,t,{callbacks:{beforeNodeMorphed:(e,t)=>!(Oe(e,t)&&!ke(e))||(e.reload(),!1)}}),l("turbo:morph",{detail:{currentElement:e,newElement:t}})}async preservingPermanentElements(e){return await e()}get renderMethod(){return"morph"}get shouldAutofocus(){return!1}}class bt extends re{constructor(e){super(e,I)}get snapshots(){return this.entries}}class wt extends fe{snapshotCache=new bt(10);lastRenderedLocation=new URL(location.href);forceReloaded=!1;shouldTransitionTo(e){return this.snapshot.prefersViewTransitions&&e.prefersViewTransitions}renderPage(e,t=!1,n=!0,i){const r=new(this.isPageRefresh(i)&&"morph"===(i?.refresh?.method||this.snapshot.refreshMethod)?yt:vt)(this.snapshot,e,t,n);return r.shouldRender?i?.changeHistory():this.forceReloaded=!0,this.render(r)}renderError(e,t){t?.changeHistory();const n=new gt(this.snapshot,e,!1);return this.render(n)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(e=this.snapshot){if(e.isCacheable){this.delegate.viewWillCacheSnapshot();const{lastRenderedLocation:t}=this;await d();const n=e.clone();return this.snapshotCache.put(t,n),n}}getCachedSnapshotForLocation(e){return this.snapshotCache.get(e)}isPageRefresh(e){return!e||this.lastRenderedLocation.pathname===e.location.pathname&&"replace"===e.action}shouldPreserveScrollPosition(e){return this.isPageRefresh(e)&&"preserve"===(e?.refresh?.scroll||this.snapshot.refreshScroll)}get snapshot(){return Le.fromElement(this.element)}}class St{selector="a[data-turbo-preload]";constructor(e,t){this.delegate=e,this.snapshotCache=t}start(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",this.#x):this.preloadOnLoadLinksForView(document.body)}stop(){document.removeEventListener("DOMContentLoaded",this.#x)}preloadOnLoadLinksForView(e){for(const t of e.querySelectorAll(this.selector))this.delegate.shouldPreloadLink(t)&&this.preloadURL(t)}async preloadURL(e){const t=new URL(e.href);if(this.snapshotCache.has(t))return;const n=new Y(this,K.get,t,new URLSearchParams,e);await n.perform()}prepareRequest(e){e.headers["X-Sec-Purpose"]="prefetch"}async requestSucceededWithResponse(e,t){try{const n=await t.responseHTML,i=Le.fromHTMLString(n);this.snapshotCache.put(e.url,i)}catch(n){}}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}#x=()=>{this.preloadOnLoadLinksForView(document.body)}}class _t{constructor(e){this.session=e}clear(){this.session.clearCache()}resetCacheControl(){this.#P("")}exemptPageFromCache(){this.#P("no-cache")}exemptPageFromPreview(){this.#P("no-preview")}#P(e){!function(e,t){let n=_(e);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)}("turbo-cache-control",e)}}function Et(e){Object.defineProperties(e,Ot)}const Ot={absoluteURL:{get(){return this.toString()}}},kt=new class{navigator=new at(this);history=new Qe(this);view=new wt(this,document.documentElement);adapter=new Ye(this);
16pageObserver=new dt(this);cacheObserver=new Xe;linkPrefetchObserver=new et(this,document);linkClickObserver=new ge(this,window);formSubmitObserver=new de(this,document);scrollObserver=new ft(this);streamObserver=new mt(this);formLinkClickObserver=new ve(this,document.documentElement);frameRedirector=new Je(this,document.documentElement);streamMessageRenderer=new pt;cache=new _t(this);enabled=!0;started=!1;#T=150;constructor(e){this.recentRequests=e,this.preloader=new St(this,this.view.snapshotCache),this.debouncedRefresh=this.refresh,this.pageRefreshDebouncePeriod=this.pageRefreshDebouncePeriod}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.linkPrefetchObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.linkPrefetchObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.preloader.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){const n=t.frame?document.getElementById(t.frame):null;if(n instanceof s){const i=t.action||S(n);n.delegate.proposeVisitIfNavigatedWithAction(n,i),n.src=e.toString()}else this.navigator.proposeVisit(F(e),t)}refresh(e,t={}){t="string"===typeof t?{requestId:t}:t;const{method:n,requestId:i,scroll:r}=t,s=i&&this.recentRequests.has(i),o=e===document.baseURI;s||this.navigator.currentVisit||!o||this.visit(e,{action:"replace",shouldCacheSnapshot:!1,refresh:{method:n,scroll:r}})}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){this.streamMessageRenderer.render(ne.wrap(e))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){console.warn("Please replace `session.setProgressBarDelay(delay)` with `session.progressBarDelay = delay`. The function is deprecated and will be removed in a future version of Turbo.`"),this.progressBarDelay=e}set progressBarDelay(e){L.drive.progressBarDelay=e}get progressBarDelay(){return L.drive.progressBarDelay}set drive(e){L.drive.enabled=e}get drive(){return L.drive.enabled}set formMode(e){L.forms.mode=e}get formMode(){return L.forms.mode}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}get pageRefreshDebouncePeriod(){return this.#T}set pageRefreshDebouncePeriod(e){this.refresh=function(e,t){let n=null;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}(this.debouncedRefresh.bind(this),e),this.#T=e}shouldPreloadLink(e){const t=e.hasAttribute("data-turbo-method"),n=e.hasAttribute("data-turbo-stream"),i=e.getAttribute("data-turbo-frame"),r="_top"==i?null:document.getElementById(i)||k(e,"turbo-frame:not([disabled])");if(t||n||r instanceof s)return!1;{const t=new URL(e.href);return this.elementIsNavigatable(e)&&j(t,this.snapshot.rootLocation)}}historyPoppedToLocationWithRestorationIdentifierAndDirection(e,t,n){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0,direction:n}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}historyPoppedWithEmptyState(e){this.history.replace(e),this.view.lastRenderedLocation=e,this.view.cacheSnapshot()}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willSubmitFormLinkToLocation(e,t){return this.elementIsNavigatable(e)&&j(t,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}canPrefetchRequestToLocation(e,t){return this.elementIsNavigatable(e)&&j(t,this.snapshot.rootLocation)&&this.navigator.linkPrefetchingIsEnabledForLocation(t)}willFollowLinkToLocation(e,t,n){return this.elementIsNavigatable(e)&&j(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t,n)}followedLinkToLocation(e,t){const n=this.getActionForLink(e),i=e.hasAttribute("data-turbo-stream");this.visit(t.href,{action:n,acceptsStreamResponse:i})}allowsVisitingLocationWithAction(e,t){return this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){Et(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){e.acceptsStreamResponse||(v(document.documentElement),this.view.markVisitDirection(e.direction)),Et(e.location),this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){this.view.unmarkVisitDirection(),y(document.documentElement),this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}willSubmitForm(e,t){const n=M(e,t);return this.submissionIsNavigatable(e,t)&&j(F(n),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}
16pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){const n=this.notifyApplicationBeforeRender(e,t),{defaultPrevented:i,detail:{render:r}}=n;return this.view.renderer&&r&&(this.view.renderer.renderElement=r),!i}viewRenderedSnapshot(e,t,n){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender(n)}preloadOnLoadLinksForView(e){this.preloader.preloadOnLoadLinksForView(e)}viewInvalidated(e){this.adapter.pageInvalidated(e)}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t,n){return!this.notifyApplicationAfterClickingLinkToLocation(e,t,n).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t,n){return l("turbo:click",{target:e,detail:{url:t.href,originalEvent:n},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return l("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return l("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return l("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return l("turbo:before-render",{detail:{newBody:e,...t},cancelable:!0})}notifyApplicationAfterRender(e){return l("turbo:render",{detail:{renderMethod:e}})}notifyApplicationAfterPageLoad(e={}){return l("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterFrameLoad(e){return l("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return l("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}submissionIsNavigatable(e,t){if("off"==L.forms.mode)return!1;{const n=!t||this.elementIsNavigatable(t);return"optin"==L.forms.mode?n&&null!=e.closest('[data-turbo="true"]'):n&&this.elementIsNavigatable(e)}}elementIsNavigatable(e){const t=k(e,"[data-turbo]"),n=k(e,"turbo-frame");return L.drive.enabled||n?!t||"false"!=t.getAttribute("data-turbo"):!!t&&"true"==t.getAttribute("data-turbo")}getActionForLink(e){return S(e)||"advance"}get snapshot(){return this.view.snapshot}}(q),{cache:At,navigator:Ct}=kt;function xt(){kt.start()}function Pt(e){kt.registerAdapter(e)}function Tt(e,t){kt.visit(e,t)}function Nt(e){kt.connectStreamSource(e)}function Lt(e){kt.disconnectStreamSource(e)}function Ft(e){kt.renderStreamMessage(e)}function Dt(e){console.warn("Please replace `Turbo.setProgressBarDelay(delay)` with `Turbo.config.drive.progressBarDelay = delay`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),L.drive.progressBarDelay=e}function Mt(e){console.warn("Please replace `Turbo.setConfirmMethod(confirmMethod)` with `Turbo.config.forms.confirm = confirmMethod`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),L.forms.confirm=e}function Rt(e){console.warn("Please replace `Turbo.setFormMode(mode)` with `Turbo.config.forms.mode = mode`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),L.forms.mode=e}function jt(e,t){yt.renderElement(e,t)}function Bt(e,t){Ce.renderElement(e,t)}var It=Object.freeze({__proto__:null,PageRenderer:vt,PageSnapshot:Le,FrameRenderer:we,fetch:W,config:L,session:kt,cache:At,navigator:Ct,start:xt,registerAdapter:Pt,visit:Tt,connectStreamSource:Nt,disconnectStreamSource:Lt,renderStreamMessage:Ft,setProgressBarDelay:Dt,setConfirmMethod:Mt,setFormMode:Rt,morphBodyElements:jt,morphTurboFrameElements:Bt,morphChildren:Ee,morphElements:_e});class Vt extends Error{}function zt(e,t){if(e){const n=e.getAttribute("src");if(null!=n&&null!=t&&V(n,t))throw new Error(`Matching <turbo-frame id="${e.id}"> element has a source URL which references itself`);if(e.ownerDocument!==document&&(e=document.importNode(e,!0)),e instanceof s)return e.connectedCallback(),e.disconnectedCallback(),e}}const Ut={after(){this.removeDuplicateTargetSiblings(),this.targetElements.forEac
16h((e=>e.parentElement?.insertBefore(this.templateContent,e.nextSibling)))},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((e=>e.append(this.templateContent)))},before(){this.removeDuplicateTargetSiblings(),this.targetElements.forEach((e=>e.parentElement?.insertBefore(this.templateContent,e)))},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((e=>e.prepend(this.templateContent)))},remove(){this.targetElements.forEach((e=>e.remove()))},replace(){const e=this.getAttribute("method");this.targetElements.forEach((t=>{"morph"===e?_e(t,this.templateContent):t.replaceWith(this.templateContent)}))},update(){const e=this.getAttribute("method");this.targetElements.forEach((t=>{"morph"===e?Ee(t,this.templateContent):(t.innerHTML="",t.append(this.templateContent))}))},refresh(){const e=this.getAttribute("method"),t=this.requestId,n=this.getAttribute("scroll");kt.refresh(this.baseURI,{method:e,requestId:t,scroll:n})}};class Ht extends HTMLElement{static async renderElement(e){await e.performAction()}async connectedCallback(){try{await this.render()}catch(e){console.error(e)}finally{this.disconnect()}}async render(){return this.renderPromise??=(async()=>{const e=this.beforeRenderEvent;this.dispatchEvent(e)&&(await u(),await e.detail.render(this))})()}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach((e=>e.remove()))}get duplicateChildren(){const e=this.targetElements.flatMap((e=>[...e.children])).filter((e=>!!e.getAttribute("id"))),t=[...this.templateContent?.children||[]].filter((e=>!!e.getAttribute("id"))).map((e=>e.getAttribute("id")));return e.filter((e=>t.includes(e.getAttribute("id"))))}removeDuplicateTargetSiblings(){this.duplicateSiblings.forEach((e=>e.remove()))}get duplicateSiblings(){const e=this.targetElements.flatMap((e=>[...e.parentElement.children])).filter((e=>!!e.id)),t=[...this.templateContent?.children||[]].filter((e=>!!e.id)).map((e=>e.id));return e.filter((e=>t.includes(e.id)))}get performAction(){if(this.action){const e=Ut[this.action];if(e)return e;this.#N("unknown action")}this.#N("action attribute is missing")}get targetElements(){return this.target?this.targetElementsById:this.targets?this.targetElementsByQuery:void this.#N("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(null===this.firstElementChild){const e=this.ownerDocument.createElement("template");return this.appendChild(e),e}if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.#N("first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}get requestId(){return this.getAttribute("request-id")}#N(e){throw new Error(`${this.description}: ${e}`)}get description(){return(this.outerHTML.match(/<[^>]+>/)??[])[0]??"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:Ht.renderElement}})}get targetElementsById(){const e=this.ownerDocument?.getElementById(this.target);return null!==e?[e]:[]}get targetElementsByQuery(){const e=this.ownerDocument?.querySelectorAll(this.targets);return 0!==e.length?Array.prototype.slice.call(e):[]}}class qt extends HTMLElement{streamSource=null;connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),Nt(this.streamSource)}disconnectedCallback(){this.streamSource&&(this.streamSource.close(),Lt(this.streamSource))}get src(){return this.getAttribute("src")||""}}let Wt;async function $t(){return Wt||Kt(async function(){const{createConsumer:e}=await n.e(76).then((()=>n(47140)));return e()}().then(Kt))}function Kt(e){return Wt=e}function Gt(e){return e&&"object"===typeof e?e instanceof Date||e instanceof RegExp?e:Array.isArray(e)?e.map(Gt):Object.keys(e).reduce((function(t,n){return t[n[0].toLowerCase()+n.slice(1).replace(/([A-Z]+)/g,(function(e,t){return"_"+t.toLowerCase()}))]=Gt(e[n]),t}),{}):e}s.delegateConstructor=class{fetchResponseLoaded=e=>Promise.resolve();#L=null;#F=()=>{};#D=!1;#M=!1;#R=new Set;#j=!1;action=null;constructor(e){this.element=e,this.view=new pe(this,this.element),this.appearanceObserver=new te(this,this.element),this.formLinkClickObserver=new ve(this,this.element),this.linkInterceptor=new me(this,this.element),this.restorationIdentifier=m(),this.formSubmitObserver=new de(this,this.element)}connect(){this.#D||(this.#D=!0,this.loadingStyle==r.lazy?this.appearanceObserver.start():this.#B(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){this.#D&&(this.#D=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop(),this.element.hasAttribute("recurse")||this.#L?.cancel())}disabledChanged(){this.disabled?this.#L?.cancel():this.loadingStyle==r.eager&&this.#B()}sourceURLChanged(){this.#I("src")||(this.sourceURL||this.#L?.cancel(),this.element.isConnected&&(this.complete=!1),(this.loadingStyle==r.eager||this.#M)&&this.#B())}sourceURLReloaded(){const{refresh:e,src:t}=this.element;return this.#j=t&&"morph"===e,this.element.removeAttribute("complete"),this.element.src=null,this.element.src=t,this.element.loaded}loadingStyleChanged(){this.loadingStyle==r.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.#B())}async#B(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=this.#V(F(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.#M=!0)}async loadResponse(e){(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url);try{const t=await e.responseHTML;if(t){const n=f(t);Le.fromDocument(n).isVisitable?await this.#z(e,n):await this.#U(e)}}finally{this.#j=!1,this.fetchResponseLoaded=()=>Promise.resolve()}}elementAppearedInViewport(e){this.proposeVisitIfNavigatedWithAction(e,S(e)),this.#B()}willSubmitFormLinkToLocation(e){return this.#H(e)}submittedFormLinkToLocation(e,t,n){const i=this.#p(e);i&&n.setAttribute("data-turbo-frame",i.id)}shouldInterceptLinkClick(e,t,n){return this.#H(e)}linkClickIntercepted(e,t){this.#q(e,t)}willSubmitForm(e,t){return e.closest("turbo-frame")==this.element&&this.#H(e,t)}formSubmitted(e,t){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new le(this,e,t);const{fetchRequest:n}=this.formSubmission,i=this.#p(e,t);this.prepareRequest(n,i),this.formSubmission.start()}
16prepareRequest(e,t=this){e.headers["Turbo-Frame"]=t.id,this.currentNavigationElement?.hasAttribute("data-turbo-stream")&&e.acceptResponseType(ne.contentType)}requestStarted(e){v(this.element)}requestPreventedHandlingResponse(e,t){this.#F()}async requestSucceededWithResponse(e,t){await this.loadResponse(t),this.#F()}async requestFailedWithResponse(e,t){await this.loadResponse(t),this.#F()}requestErrored(e,t){console.error(t),this.#F()}requestFinished(e){y(this.element)}formSubmissionStarted({formElement:e}){v(e,this.#p(e))}formSubmissionSucceededWithResponse(e,t){const n=this.#p(e.formElement,e.submitter);n.delegate.proposeVisitIfNavigatedWithAction(n,S(e.submitter,e.formElement,n)),n.delegate.loadResponse(t),e.isSafe||kt.clearCache()}formSubmissionFailedWithResponse(e,t){this.element.delegate.loadResponse(t),kt.clearCache()}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished({formElement:e}){y(e,this.#p(e))}allowsImmediateRender({element:e},t){const n=l("turbo:before-frame-render",{target:this.element,detail:{newFrame:e,...t},cancelable:!0}),{defaultPrevented:i,detail:{render:r}}=n;return this.view.renderer&&r&&(this.view.renderer.renderElement=r),!i}viewRenderedSnapshot(e,t,n){}preloadOnLoadLinksForView(e){kt.preloadOnLoadLinksForView(e)}viewInvalidated(){}willRenderFrame(e,t){this.previousFrameElement=e.cloneNode(!0)}visitCachedSnapshot=({element:e})=>{const t=e.querySelector("#"+this.element.id);t&&this.previousFrameElement&&t.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement};async#z(e,t){const n=await this.extractForeignFrameElement(t.body),i=this.#j?Ce:we;if(n){const t=new ce(n),r=new i(this,this.view.snapshot,t,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(r),this.complete=!0,kt.frameRendered(e,this.element),kt.frameLoaded(this.element),await this.fetchResponseLoaded(e)}else this.#W(e)&&this.#$(e)}async#V(e){const t=new Y(this,K.get,e,new URLSearchParams,this.element);return this.#L?.cancel(),this.#L=t,new Promise((e=>{this.#F=()=>{this.#F=()=>{},this.#L=null,e()},t.perform()}))}#q(e,t,n){const i=this.#p(e,n);i.delegate.proposeVisitIfNavigatedWithAction(i,S(n,e,i)),this.#K(e,(()=>{i.src=t}))}proposeVisitIfNavigatedWithAction(e,t=null){if(this.action=t,this.action){const t=Le.fromElement(e).clone(),{visitCachedSnapshot:n}=e.delegate;e.delegate.fetchResponseLoaded=async i=>{if(e.src){const{statusCode:r,redirected:s}=i,o={response:{statusCode:r,redirected:s,responseHTML:await i.responseHTML},visitCachedSnapshot:n,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:t};this.action&&(o.action=this.action),kt.visit(e.src,o)}}}}changeHistory(){if(this.action){const e=w(this.action);kt.history.update(e,F(this.element.src||""),this.restorationIdentifier)}}async#U(e){console.warn(`The response (${e.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await this.#G(e.response)}#W(e){this.element.setAttribute("complete","");const t=e.response;return!l("turbo:frame-missing",{target:this.element,detail:{response:t,visit:async(e,t)=>{e instanceof Response?this.#G(e):kt.visit(e,t)}},cancelable:!0}).defaultPrevented}#$(e){this.view.missing(),this.#Z(e)}#Z(e){const t=`The response (${e.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new Vt(t)}async#G(e){const t=new U(e),n=await t.responseHTML,{location:i,redirected:r,statusCode:s}=t;return kt.visit(i,{response:{redirected:r,statusCode:s,responseHTML:n}})}#p(e,t){const n=g("data-turbo-frame",t,e)||this.element.getAttribute("target"),i=this.#Y(n);return i instanceof s?i:this.element}async extractForeignFrameElement(e){let t;const n=CSS.escape(this.id);try{if(t=zt(e.querySelector(`turbo-frame#${n}`),this.sourceURL),t)return t;if(t=zt(e.querySelector(`turbo-frame[src][recurse~=${n}]`),this.sourceURL),t)return await t.loaded,await this.extractForeignFrameElement(t)}catch(i){return console.error(i),new s}return null}#X(e,t){return j(F(M(e,t)),this.rootLocation)}#H(e,t){const n=g("data-turbo-frame",t,e)||this.element.getAttribute("target");if(e instanceof HTMLFormElement&&!this.#X(e,t))return!1;if(!this.enabled||"_top"==n)return!1;if(n){const e=this.#Y(n);if(e)return!e.disabled;if("_parent"==n)return!1}return!!kt.elementIsNavigatable(e)&&!(t&&!kt.elementIsNavigatable(t))}
16get id(){return this.element.id}get disabled(){return this.element.disabled}get enabled(){return!this.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(e){this.#J("src",(()=>{this.element.src=e??null}))}get loadingStyle(){return this.element.loading}get isLoading(){return void 0!==this.formSubmission||void 0!==this.#F()}get complete(){return this.element.hasAttribute("complete")}set complete(e){e?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")}get isActive(){return this.element.isActive&&this.#D}get rootLocation(){const e=this.element.ownerDocument.querySelector('meta[name="turbo-root"]');return F(e?.content??"/")}#I(e){return this.#R.has(e)}#J(e,t){this.#R.add(e),t(),this.#R.delete(e)}#K(e,t){this.currentNavigationElement=e,t(),delete this.currentNavigationElement}#Y(e){if(null!=e){const t="_parent"===e?this.element.parentElement.closest("turbo-frame"):document.getElementById(e);if(t instanceof s)return t}}},void 0===customElements.get("turbo-frame")&&customElements.define("turbo-frame",s),void 0===customElements.get("turbo-stream")&&customElements.define("turbo-stream",Ht),void 0===customElements.get("turbo-stream-source")&&customElements.define("turbo-stream-source",qt),(()=>{const e=document.currentScript;if(!e)return;if(e.hasAttribute("data-turbo-suppress-warning"))return;let t=e.parentElement;for(;t;){if(t==document.body)return console.warn(p` 17 You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do! 18 19 Load your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change. 20 21 For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements 22 23 —— 24 Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s 25 `,e.outerHTML);t=t.parentElement}})(),window.Turbo={...It,StreamActions:Ut},xt();class Zt extends HTMLElement{static observedAttributes=["channel","signed-stream-name"];async connectedCallback(){Nt(this),this.subscription=await async function(e,t){const{subscriptions:n}=await $t();return n.create(e,t)}(this.channel,{received:this.dispatchMessageEvent.bind(this),connected:this.subscriptionConnected.bind(this),disconnected:this.subscriptionDisconnected.bind(this)})}disconnectedCallback(){Lt(this),this.subscription&&this.subscription.unsubscribe(),this.subscriptionDisconnected()}attributeChangedCallback(){this.subscription&&(this.disconnectedCallback(),this.connectedCallback())}dispatchMessageEvent(e){const t=new MessageEvent("message",{data:e});return this.dispatchEvent(t)}subscriptionConnected(){this.setAttribute("connected","")}subscriptionDisconnected(){this.removeAttribute("connected")}get channel(){return{channel:this.getAttribute("channel"),signed_stream_name:this.getAttribute("signed-stream-name"),...Gt({...this.dataset})}}}void 0===customElements.get("turbo-cable-stream-source")&&customElements.define("turbo-cable-stream-source",Zt),window.Turbo=i,addEventListener("turbo:before-fetch-request",(function(e){if(e.target instanceof HTMLFormElement){const{target:t,detail:{fetchOptions:n}}=e;t.addEventListener("turbo:submit-start",(({detail:{formSubmission:{submitter:e}}})=>{const i=function(e){return e instanceof FormData||e instanceof URLSearchParams}(n.body)?n.body:new URLSearchParams,r=function(e,t,n){const i=function(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?"_method"===e.name?e.value:e.hasAttribute("formmethod")?e.formMethod:null:null}(e),r=t.get("_method"),s=n.getAttribute("method")||"get";return"string"==typeof i?i:"string"==typeof r?r:s}(e,i,t);/get/i.test(r)||(/post/i.test(r)?i.delete("_method"):i.set("_method",r),n.method="post")}),{once:!0})}}))},90711(e,t,n){"use strict";n.d(t,{n4:()=>S,UD:()=>w});var i=n(86354),r=n(30222),s=n(58979),o=n(5581);var a=n(67604),l=n(50793),c=n(19760),u=n(10134),h=n(36906);function d(e,t,n){void 0===n&&(n=!1);var d,f,p=(0,o.sb)(t),m=(0,o.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,h.LI)(t.width)/e.offsetWidth||1,i=(0,h.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),g=(0,c.A)(t),v=(0,i.A)(e,m,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(p||!p&&!n)&&(("body"!==(0,a.A)(t)||(0,u.A)(g))&&(y=(d=t)!==(0,s.A)(d)&&(0,o.sb)(d)?{scrollLeft:(f=d).scrollLeft,scrollTop:f.scrollTop}:(0,r.A)(d)),(0,o.sb)(t)?((b=(0,i.A)(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):g&&(b.x=(0,l.A)(g))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}var f=n(6979),p=n(75867),m=n(88579),g=n(14278);function v(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
25h((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var y={placement:"bottom",modifiers:[],strategy:"absolute"};function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function w(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,s=void 0===r?y:r;return function(e,t,n){void 0===n&&(n=s);var r,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},y,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,h={state:l,setOptions:function(n){var r="function"===typeof n?n(l.options):n;w(),l.options=Object.assign({},s,l.options,r),l.scrollParents={reference:(0,o.vq)(e)?(0,p.A)(e):e.contextElement?(0,p.A)(e.contextElement):[],popper:(0,p.A)(t)};var a,u,d=function(e){var t=v(e);return g.GM.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(i,l.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"===typeof r){var s=r({state:l,name:t,instance:h,options:i}),o=function(){};c.push(s||o)}})),h.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(b(t,n)){l.rects={reference:d(t,(0,m.A)(n),"fixed"===l.options.strategy),popper:(0,f.A)(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var r=l.orderedModifiers[i],s=r.fn,o=r.options,a=void 0===o?{}:o,c=r.name;"function"===typeof s&&(l=s({state:l,options:a,name:c,instance:h})||l)}else l.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(e){h.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(r())}))}))),a}),destroy:function(){w(),u=!0}};if(!b(e,t))return h;
25function w(){c.forEach((function(e){return e()})),c=[]}return h.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),h}}var S=w()},85446(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(5581);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},86354(e,t,n){"use strict";n.d(t,{A:()=>a});var i=n(5581),r=n(36906),s=n(58979),o=n(22283);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,c=1;t&&(0,i.sb)(e)&&(l=e.offsetWidth>0&&(0,r.LI)(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,r.LI)(a.height)/e.offsetHeight||1);var u=((0,i.vq)(e)?(0,s.A)(e):window).visualViewport,h=!(0,o.A)()&&n,d=(a.left+(h&&u?u.offsetLeft:0))/l,f=(a.top+(h&&u?u.offsetTop:0))/c,p=a.width/l,m=a.height/c;return{width:p,height:m,top:f,right:d+p,bottom:f+m,left:d,x:d,y:f}}},40271(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(58979);function r(e){return(0,i.A)(e).getComputedStyle(e)}},19760(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(5581);function r(e){return(((0,i.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6979(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(86354);function r(e){var t=(0,i.A)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},67604(e,t,n){"use strict";function i(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:()=>i})},88579(e,t,n){"use strict";n.d(t,{A:()=>h});var i=n(58979),r=n(67604),s=n(40271),o=n(5581);function a(e){return["table","td","th"].indexOf((0,r.A)(e))>=0}var l=n(52083),c=n(72398);function u(e){return(0,o.sb)(e)&&"fixed"!==(0,s.A)(e).position?e.offsetParent:null}function h(e){for(var t=(0,i.A)(e),n=u(e);n&&a(n)&&"static"===(0,s.A)(n).position;)n=u(n);return n&&("html"===(0,r.A)(n)||"body"===(0,r.A)(n)&&"static"===(0,s.A)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.A)());if(/Trident/i.test((0,c.A)())&&(0,o.sb)(e)&&"fixed"===(0,s.A)(e).position)return null;var n=(0,l.A)(e);for((0,o.Ng)(n)&&(n=n.host);(0,o.sb)(n)&&["html","body"].indexOf((0,r.A)(n))<0;){var i=(0,s.A)(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}},52083(e,t,n){"use strict";n.d(t,{A:()=>o});var i=n(67604),r=n(19760),s=n(5581);function o(e){return"html"===(0,i.A)(e)?e:e.assignedSlot||e.parentNode||((0,s.Ng)(e)?e.host:null)||(0,r.A)(e)}},58979(e,t,n){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:()=>i})},30222(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(58979);function r(e){var t=(0,i.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},50793(e,t,n){"use strict";n.d(t,{A:()=>o});var i=n(86354),r=n(19760),s=n(30222);function o(e){return(0,i.A)((0,r.A)(e)).left+(0,s.A)(e).scrollLeft}},5581(e,t,n){"use strict";n.d(t,{Ng:()=>o,sb:()=>s,vq:()=>r});var i=n(58979);function r(e){return e instanceof(0,i.A)(e).Element||e instanceof Element}function s(e){return e instanceof(0,i.A)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!==typeof ShadowRoot&&(e instanceof(0,i.A)(e).ShadowRoot||e instanceof ShadowRoot)}},22283(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(72398);function r(){return!/^((?!chrome|android).)*safari/i.test((0,i.A)())}},10134(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(40271);function r(e){var t=(0,i.A)(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}},75867(e,t,n){"use strict";n.d(t,{A:()=>c});var i=n(52083),r=n(10134),s=n(67604),o=n(5581);function a(e){return["html","body","#document"].indexOf((0,s.A)(e))>=0?e.ownerDocument.body:(0,o.sb)(e)&&(0,r.A)(e)?e:a((0,i.A)(e))}var l=n(58979);function c(e,t){var n;void 0===t&&(t=[]);var s=a(e),o=s===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.A)(s),h=o?[u].concat(u.visualVie
25wport||[],(0,r.A)(s)?s:[]):s,d=t.concat(h);return o?d:d.concat(c((0,i.A)(h)))}},14278(e,t,n){"use strict";n.d(t,{DD:()=>g,EP:()=>_,GM:()=>A,LF:()=>y,LG:()=>w,M9:()=>O,Mn:()=>i,OM:()=>l,Ol:()=>m,R9:()=>d,SE:()=>k,WY:()=>h,_N:()=>u,ci:()=>v,iW:()=>S,ir:()=>p,kb:()=>o,ni:()=>c,pA:()=>E,pG:()=>s,qZ:()=>a,sQ:()=>r,v5:()=>b,xf:()=>f});var i="top",r="bottom",s="right",o="left",a="auto",l=[i,r,s,o],c="start",u="end",h="clippingParents",d="viewport",f="popper",p="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),g=[].concat(l,[a]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),v="beforeRead",y="read",b="afterRead",w="beforeMain",S="main",_="afterMain",E="beforeWrite",O="write",k="afterWrite",A=[v,y,b,w,S,_,E,O,k]},16607(e,t,n){"use strict";var i=n(67604),r=n(5581);const s={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},o=t.elements[e];(0,r.sb)(o)&&(0,i.A)(o)&&(Object.assign(o.style,n),Object.keys(s).forEach((function(e){var t=s[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.sb)(s)&&(0,i.A)(s)&&(Object.assign(s.style,a),Object.keys(o).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]};n.d(t,["A",0,s])},78256(e,t,n){"use strict";var i=n(32632),r=n(6979),s=n(85446),o=n(88579),a=n(39703),l=n(86523),c=n(54318),u=n(71007),h=n(14278);const d={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,d=e.options,f=n.elements.arrow,p=n.modifiersData.popperOffsets,m=(0,i.A)(n.placement),g=(0,a.A)(m),v=[h.kb,h.pG].indexOf(m)>=0?"height":"width";if(f&&p){var y=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.A)("number"!==typeof e?e:(0,u.A)(e,h.OM))}(d.padding,n),b=(0,r.A)(f),w="y"===g?h.Mn:h.kb,S="y"===g?h.sQ:h.pG,_=n.rects.reference[v]+n.rects.reference[g]-p[g]-n.rects.popper[v],E=p[g]-n.rects.reference[g],O=(0,o.A)(f),k=O?"y"===g?O.clientHeight||0:O.clientWidth||0:0,A=_/2-E/2,C=y[w],x=k-b[v]-y[S],P=k/2-b[v]/2+A,T=(0,l.u)(C,P,x),N=g;n.modifiersData[s]=((t={})[N]=T,t.centerOffset=T-P,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&(0,s.A)(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};n.d(t,["A",0,d])},1262(e,t,n){"use strict";var i=n(14278),r=n(88579),s=n(58979),o=n(19760),a=n(40271),l=n(32632),c=n(98101),u=n(36906),h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(e){var t,n=e.popper,l=e.popperRect,c=e.placement,d=e.variation,f=e.offsets,p=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,y=e.isFixed,b=f.x,w=void 0===b?0:b,S=f.y,_=void 0===S?0:S,E="function"===typeof v?v({x:w,y:_}):{x:w,y:_};w=E.x,_=E.y;var O=f.hasOwnProperty("x"),k=f.hasOwnProperty("y"),A=i.kb,C=i.Mn,x=window;if(g){var P=(0,r.A)(n),T="clientHeight",N="clientWidth";if(P===(0,s.A)(n)&&(P=(0,o.A)(n),"static"!==(0,a.A)(P).position&&"absolute"===p&&(T="scrollHeight",N="scrollWidth")),c===i.Mn||(c===i.kb||c===i.pG)&&d===i._N)C=i.sQ,_-=(y&&P===x&&x.visualViewport?x.visualViewport.height:P[T])-l.height,_*=m?1:-1;if(c===i.kb||(c===i.Mn||c===i.sQ)&&d===i._N)A=i.pG,w-=(y&&P===x&&x.visualViewport?x.visualViewport.width:P[N])-l.width,w*=m?1:-1}var L,F=Object.assign({position:p},g&&h),D=!0===v?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:(0,u.LI)(n*r)/r||0,y:(0,u.LI)(i*r)/r||0}}({x:w,y:_},(0,s.A)(n)):{x:w,y:_};return w=D.x,_=D.y,m?Object.assign({},F,((L={})[C]=k?"0":"",L[A]=O?"0":"",L.transform=(x.devicePixelRatio||1)<=1?"translate("+w+"px, "+_+"px)":"translate3d("+w+"px, "+_+"px, 0)",L)):Object.assign({},F,((t={})[C]=k?_+"px":"",t[A]=O?w+"px":"",t.transform="",t))}const f={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,u=void 0===a||a,h={placement:(0,l.A)(t.placement),variation:(0,c.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,d(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roun
25dOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,d(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};n.d(t,["A",0,f])},59068(e,t,n){"use strict";var i=n(58979),r={passive:!0};const s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,s=e.options,o=s.scroll,a=void 0===o||o,l=s.resize,c=void 0===l||l,u=(0,i.A)(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&h.forEach((function(e){e.addEventListener("scroll",n.update,r)})),c&&u.addEventListener("resize",n.update,r),function(){a&&h.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),c&&u.removeEventListener("resize",n.update,r)}},data:{}};n.d(t,["A",0,s])},80644(e,t,n){"use strict";n.d(t,{A:()=>h});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return i[e]}))}var s=n(32632),o={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,(function(e){return o[e]}))}var l=n(46397),c=n(98101),u=n(14278);const h={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,h=void 0===o||o,d=n.altAxis,f=void 0===d||d,p=n.fallbackPlacements,m=n.padding,g=n.boundary,v=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,w=void 0===b||b,S=n.allowedAutoPlacements,_=t.options.placement,E=(0,s.A)(_),O=p||(E===_||!w?[r(_)]:function(e){if((0,s.A)(e)===u.qZ)return[];var t=r(e);return[a(e),t,a(t)]}(_)),k=[_].concat(O).reduce((function(e,n){return e.concat((0,s.A)(n)===u.qZ?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,h=n.flipVariations,d=n.allowedAutoPlacements,f=void 0===d?u.DD:d,p=(0,c.A)(i),m=p?h?u.Ol:u.Ol.filter((function(e){return(0,c.A)(e)===p})):u.OM,g=m.filter((function(e){return f.indexOf(e)>=0}));0===g.length&&(g=m);var v=g.reduce((function(t,n){return t[n]=(0,l.A)(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[(0,s.A)(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}(t,{placement:n,boundary:g,rootBoundary:v,padding:m,flipVariations:w,allowedAutoPlacements:S}):n)}),[]),A=t.rects.reference,C=t.rects.popper,x=new Map,P=!0,T=k[0],N=0;N<k.length;N++){var L=k[N],F=(0,s.A)(L),D=(0,c.A)(L)===u.ni,M=[u.Mn,u.sQ].indexOf(F)>=0,R=M?"width":"height",j=(0,l.A)(t,{placement:L,boundary:g,rootBoundary:v,altBoundary:y,padding:m}),B=M?D?u.pG:u.kb:D?u.sQ:u.Mn;A[R]>C[R]&&(B=r(B));var I=r(B),V=[];if(h&&V.push(j[F]<=0),f&&V.push(j[B]<=0,j[I]<=0),V.every((function(e){return e}))){T=L,P=!1;break}x.set(L,V)}if(P)for(var z=function(e){var t=k.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},U=w?3:1;U>0;U--){if("break"===z(U))break}t.placement!==T&&(t.modifiersData[i]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}}
25,89081(e,t,n){"use strict";var i=n(14278),r=n(46397);function s(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function o(e){return[i.Mn,i.pG,i.sQ,i.kb].some((function(t){return e[t]>=0}))}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,r.A)(t,{elementContext:"reference"}),u=(0,r.A)(t,{altBoundary:!0}),h=s(c,i),d=s(u,a,l),f=o(h),p=o(d);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}};n.d(t,["A",0,a])},18490(e,t,n){"use strict";var i=n(32632),r=n(14278);const s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,s=e.name,o=n.offset,a=void 0===o?[0,0]:o,l=r.DD.reduce((function(e,n){return e[n]=function(e,t,n){var s=(0,i.A)(e),o=[r.kb,r.Mn].indexOf(s)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[r.kb,r.pG].indexOf(s)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,a),e}),{}),c=l[t.placement],u=c.x,h=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=h),t.modifiersData[s]=l}};n.d(t,["A",0,s])},85059(e,t,n){"use strict";var i=n(1815);const r={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,i.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};n.d(t,["A",0,r])},10192(e,t,n){"use strict";n.d(t,{A:()=>f});var i=n(14278),r=n(32632),s=n(39703);var o=n(86523),a=n(6979),l=n(88579),c=n(46397),u=n(98101),h=n(67364),d=n(36906);const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,f=e.name,p=n.mainAxis,m=void 0===p||p,g=n.altAxis,v=void 0!==g&&g,y=n.boundary,b=n.rootBoundary,w=n.altBoundary,S=n.padding,_=n.tether,E=void 0===_||_,O=n.tetherOffset,k=void 0===O?0:O,A=(0,c.A)(t,{boundary:y,rootBoundary:b,padding:S,altBoundary:w}),C=(0,r.A)(t.placement),x=(0,u.A)(t.placement),P=!x,T=(0,s.A)(C),N="x"===T?"y":"x",L=t.modifiersData.popperOffsets,F=t.rects.reference,D=t.rects.popper,M="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,R="number"===typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(L){if(m){var I,V="y"===T?i.Mn:i.kb,z="y"===T?i.sQ:i.pG,U="y"===T?"height":"width",H=L[T],q=H+A[V],W=H-A[z],$=E?-D[U]/2:0,K=x===i.ni?F[U]:D[U],G=x===i.ni?-D[U]:-F[U],Z=t.elements.arrow,Y=E&&Z?(0,a.A)(Z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.A)(),J=X[V],Q=X[z],ee=(0,o.u)(0,F[U],Y[U]),te=P?F[U]/2-$-ee-J-R.mainAxis:K-ee-J-R.mainAxis,ne=P?-F[U]/2+$+ee+Q+R.mainAxis:G+ee+Q+R.mainAxis,ie=t.elements.arrow&&(0,l.A)(t.elements.arrow),re=ie?"y"===T?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(I=null==j?void 0:j[T])?I:0,oe=H+te-se-re,ae=H+ne-se,le=(0,o.u)(E?(0,d.jk)(q,oe):q,H,E?(0,d.T9)(W,ae):W);L[T]=le,B[T]=le-H}if(v){var ce,ue="x"===T?i.Mn:i.kb,he="x"===T?i.sQ:i.pG,de=L[N],fe="y"===N?"height":"width",pe=de+A[ue],me=de-A[he],ge=-1!==[i.Mn,i.kb].indexOf(C),ve=null!=(ce=null==j?void 0:j[N])?ce:0,ye=ge?pe:de-F[fe]-D[fe]-ve+R.altAxis,be=ge?de+F[fe]+D[fe]-ve-R.altAxis:me,we=E&&ge?(0,o.P)(ye,de,be):(0,o.u)(E?ye:pe,de,E?be:me);L[N]=we,B[N]=we-de}t.modifiersData[f]=B}},requiresIfExists:["offset"]}},71576(e,t,n){"use strict";n.d(t,{n:()=>p});var i=n(90711),r=n(59068),s=n(85059),o=n(1262),a=n(16607),l=n(18490),c=n(80644),u=n(10192),h=n(78256),d=n(89081),f=[r.A,s.A,o.A,a.A,l.A,c.A,u.A,h.A,d.A],p=(0,i.UD)({defaultModifiers:f})},1815(e,t,n){"use strict";n.d(t,{A:()=>a});var i=n(32632),r=n(98101),s=n(39703),o=n(14278);function a(e){var t,n=e.reference,a=e.element,l=e.placement,c=l?(0,i.A)(l):null,u=l?(0,r.A)(l):null,h=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2;switch(c){case o.Mn:t={x:h,y:n.y-a.height};break;case o.sQ:t={x:h,y:n.y+n.height};break;case o.pG:t={x:n.x+n.width,y:d};break;case o.kb:t={x:n.x-a.width,y:d};break;default:t={x:n.x,y:n.y}}var f=c?(0,s.A)(c):null;if(null!=f){var p="y"===f?"height":"width";
25switch(u){case o.ni:t[f]=t[f]-(n[p]/2-a[p]/2);break;case o._N:t[f]=t[f]+(n[p]/2-a[p]/2)}}return t}},46397(e,t,n){"use strict";n.d(t,{A:()=>O});var i=n(14278),r=n(58979),s=n(19760),o=n(50793),a=n(22283);var l=n(40271),c=n(30222),u=n(36906);var h=n(75867),d=n(88579),f=n(5581),p=n(86354),m=n(52083),g=n(85446),v=n(67604);function y(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b(e,t,n){return t===i.R9?y(function(e,t){var n=(0,r.A)(e),i=(0,s.A)(e),l=n.visualViewport,c=i.clientWidth,u=i.clientHeight,h=0,d=0;if(l){c=l.width,u=l.height;var f=(0,a.A)();(f||!f&&"fixed"===t)&&(h=l.offsetLeft,d=l.offsetTop)}return{width:c,height:u,x:h+(0,o.A)(e),y:d}}(e,n)):(0,f.vq)(t)?function(e,t){var n=(0,p.A)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):y(function(e){var t,n=(0,s.A)(e),i=(0,c.A)(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=(0,u.T9)(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),h=(0,u.T9)(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),d=-i.scrollLeft+(0,o.A)(e),f=-i.scrollTop;return"rtl"===(0,l.A)(r||n).direction&&(d+=(0,u.T9)(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:h,x:d,y:f}}((0,s.A)(e)))}function w(e,t,n,i){var r="clippingParents"===t?function(e){var t=(0,h.A)((0,m.A)(e)),n=["absolute","fixed"].indexOf((0,l.A)(e).position)>=0&&(0,f.sb)(e)?(0,d.A)(e):e;return(0,f.vq)(n)?t.filter((function(e){return(0,f.vq)(e)&&(0,g.A)(e,n)&&"body"!==(0,v.A)(e)})):[]}(e):[].concat(t),s=[].concat(r,[n]),o=s[0],a=s.reduce((function(t,n){var r=b(e,n,i);return t.top=(0,u.T9)(r.top,t.top),t.right=(0,u.jk)(r.right,t.right),t.bottom=(0,u.jk)(r.bottom,t.bottom),t.left=(0,u.T9)(r.left,t.left),t}),b(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var S=n(1815),_=n(54318),E=n(71007);function O(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,l=void 0===a?e.strategy:a,c=n.boundary,u=void 0===c?i.WY:c,h=n.rootBoundary,d=void 0===h?i.R9:h,m=n.elementContext,g=void 0===m?i.xf:m,v=n.altBoundary,b=void 0!==v&&v,O=n.padding,k=void 0===O?0:O,A=(0,_.A)("number"!==typeof k?k:(0,E.A)(k,i.OM)),C=g===i.xf?i.ir:i.xf,x=e.rects.popper,P=e.elements[b?C:g],T=w((0,f.vq)(P)?P:P.contextElement||(0,s.A)(e.elements.popper),u,d,l),N=(0,p.A)(e.elements.reference),L=(0,S.A)({reference:N,element:x,strategy:"absolute",placement:o}),F=y(Object.assign({},x,L)),D=g===i.xf?F:N,M={top:T.top-D.top+A.top,bottom:D.bottom-T.bottom+A.bottom,left:T.left-D.left+A.left,right:D.right-T.right+A.right},R=e.modifiersData.offset;if(g===i.xf&&R){var j=R[o];Object.keys(M).forEach((function(e){var t=[i.pG,i.sQ].indexOf(e)>=0?1:-1,n=[i.Mn,i.sQ].indexOf(e)>=0?"y":"x";M[e]+=j[n]*t}))}return M}},71007(e,t,n){"use strict";function i(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{A:()=>i})},32632(e,t,n){"use strict";function i(e){return e.split("-")[0]}n.d(t,{A:()=>i})},67364(e,t,n){"use strict";function i(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:()=>i})},39703(e,t,n){"use strict";function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:()=>i})},98101(e,t,n){"use strict";function i(e){return e.split("-")[1]}n.d(t,{A:()=>i})},36906(e,t,n){"use strict";n.d(t,{LI:()=>s,T9:()=>i,jk:()=>r});var i=Math.max,r=Math.min,s=Math.round},54318(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(67364);function r(e){return Object.assign({},(0,i.A)(),e)}},72398(e,t,n){"use strict";function i(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{A:()=>i})},86523(e,t,n){"use strict";n.d(t,{P:()=>s,u:()=>r});var i=n(36906);function r(e,t,n){return(0,i.T9)(e,(0,i.jk)(t,n))}function s(e,t,n){var i=r(e,t,n);return i>n?n:i}},63261(e,t,n){"use strict";n.d(t,{do:()=>f});var i={exports:{}};i.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],i=e[1],r=e[2],s=e[3];i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&r|~i&s)+t[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&r)+t[1]-389564586|0)<<12|s>>>20)+n|0)&n|~s&i)+t[2]+606105819|0)<<17|r>>>15)+s|0)&s|~r&n)+t[3]-1044525330|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&r|~i&s)+t[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&r)+t[5]+1200080426|0)<<12|s>>>20)+n|0)&n|~s&i)+t[6]-1473231341|0)<<17|r>>>15)+s|0)&s|~r&n)+t[7]-45705983|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&r|~i&s)+t[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&r)+t[9]-1958414417|0)<<12|s>>>
vendor: 7,976 bytes, line 25
2520)+n|0)&n|~s&i)+t[10]-42063|0)<<17|r>>>15)+s|0)&s|~r&n)+t[11]-1990404162|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&r|~i&s)+t[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&r)+t[13]-40341101|0)<<12|s>>>20)+n|0)&n|~s&i)+t[14]-1502002290|0)<<17|r>>>15)+s|0)&s|~r&n)+t[15]+1236535329|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&s|r&~s)+t[1]-165796510|0)<<5|n>>>27)+i|0)&r|i&~r)+t[6]-1069501632|0)<<9|s>>>23)+n|0)&i|n&~i)+t[11]+643717713|0)<<14|r>>>18)+s|0)&n|s&~n)+t[0]-373897302|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&s|r&~s)+t[5]-701558691|0)<<5|n>>>27)+i|0)&r|i&~r)+t[10]+38016083|0)<<9|s>>>23)+n|0)&i|n&~i)+t[15]-660478335|0)<<14|r>>>18)+s|0)&n|s&~n)+t[4]-405537848|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&s|r&~s)+t[9]+568446438|0)<<5|n>>>27)+i|0)&r|i&~r)+t[14]-1019803690|0)<<9|s>>>23)+n|0)&i|n&~i)+t[3]-187363961|0)<<14|r>>>18)+s|0)&n|s&~n)+t[8]+1163531501|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i&s|r&~s)+t[13]-1444681467|0)<<5|n>>>27)+i|0)&r|i&~r)+t[2]-51403784|0)<<9|s>>>23)+n|0)&i|n&~i)+t[7]+1735328473|0)<<14|r>>>18)+s|0)&n|s&~n)+t[12]-1926607734|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i^r^s)+t[5]-378558|0)<<4|n>>>28)+i|0)^i^r)+t[8]-2022574463|0)<<11|s>>>21)+n|0)^n^i)+t[11]+1839030562|0)<<16|r>>>16)+s|0)^s^n)+t[14]-35309556|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i^r^s)+t[1]-1530992060|0)<<4|n>>>28)+i|0)^i^r)+t[4]+1272893353|0)<<11|s>>>21)+n|0)^n^i)+t[7]-155497632|0)<<16|r>>>16)+s|0)^s^n)+t[10]-1094730640|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i^r^s)+t[13]+681279174|0)<<4|n>>>28)+i|0)^i^r)+t[0]-358537222|0)<<11|s>>>21)+n|0)^n^i)+t[3]-722521979|0)<<16|r>>>16)+s|0)^s^n)+t[6]+76029189|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((s=((s+=((n=((n+=(i^r^s)+t[9]-640364487|0)<<4|n>>>28)+i|0)^i^r)+t[12]-421815835|0)<<11|s>>>21)+n|0)^n^i)+t[15]+530742520|0)<<16|r>>>16)+s|0)^s^n)+t[2]-995338651|0)<<23|i>>>9)+r|0,i=((i+=((s=((s+=(i^((n=((n+=(r^(i|~s))+t[0]-198630844|0)<<6|n>>>26)+i|0)|~r))+t[7]+1126891415|0)<<10|s>>>22)+n|0)^((r=((r+=(n^(s|~i))+t[14]-1416354905|0)<<15|r>>>17)+s|0)|~n))+t[5]-57434055|0)<<21|i>>>11)+r|0,i=((i+=((s=((s+=(i^((n=((n+=(r^(i|~s))+t[12]+1700485571|0)<<6|n>>>26)+i|0)|~r))+t[3]-1894986606|0)<<10|s>>>22)+n|0)^((r=((r+=(n^(s|~i))+t[10]-1051523|0)<<15|r>>>17)+s|0)|~n))+t[1]-2054922799|0)<<21|i>>>11)+r|0,i=((i+=((s=((s+=(i^((n=((n+=(r^(i|~s))+t[8]+1873313359|0)<<6|n>>>26)+i|0)|~r))+t[15]-30611744|0)<<10|s>>>22)+n|0)^((r=((r+=(n^(s|~i))+t[6]-1560198380|0)<<15|r>>>17)+s|0)|~n))+t[13]+1309151649|0)<<21|i>>>11)+r|0,i=((i+=((s=((s+=(i^((n=((n+=(r^(i|~s))+t[4]-145523070|0)<<6|n>>>26)+i|0)|~r))+t[11]-1120210379|0)<<10|s>>>22)+n|0)^((r=((r+=(n^(s|~i))+t[2]+718787259|0)<<15|r>>>17)+s|0)|~n))+t[9]-343485551|0)<<21|i>>>11)+r|0,e[0]=n+e[0]|0,e[1]=i+e[1]|0,e[2]=r+e[2]|0,e[3]=s+e[3]|0}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function s(e){var t,r,s,o,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,i(e.substring(t-64,t)));for(r=(e=e.substring(t-64)).length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)s[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(n(u,s),t=0;t<16;t+=1)s[t]=0;return o=(o=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(o[2],16),l=parseInt(o[1],16)||0,s[14]=a,s[15]=l,n(u,s),u}function o(e){var t,i,s,o,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,r(e.subarray(t-64,t)));for(i=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)s[t>>2]|=e[t]<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(n(u,s),t=0;t<16;t+=1)s[t]=0;return o=(o=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(o[2],16),l=parseInt(o[1],16)||0,s[14]=a,s[15]=l,n(u,s),u}function a(e){var n,i="";for(n=0;n<4;n+=1)i+=t[e>>8*n+4&15]+t[e>>8*n&15];return i}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,i=e.length,r=new ArrayBuffer(i),s=new Uint8Array(r);for(n=0;n<i;n+=1)s[n]=e.charCodeAt(n);return t?s:r}function h(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function d(e,t,n){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e)),i.set(new Uint8Array(t),e.byteLength),n?i:i.buffer}function f(e){var t,n=[],i=e.length;for(t=0;t<i-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return l(s("hello")),"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,i){var r,s,o,a,l=this.byteLength,c=t(n,l),u=l;return i!==e&&(u=t(i,l)),c>u?new ArrayBuffer(0):(r=u-c,s=new ArrayBuffer(r),o=new Uint8Array(s),a=new Uint8Array(this,c,r),o.set(a),s)}}(),p.prototype.append=function(e){return this.appendBinary(c(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)n(this._hash,i(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,i=this._buff,r=i.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)s[t>>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(s,r),n=l(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var i,r,s,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(n(this._hash,e),o=0;o<16;o+=1)e[o]=0;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(i[2],16),s=parseInt(i[1],16)||0,e[14]=r,e[15]=s,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(c(e),t)},p.hashBinary=function(e,t){var n=l(s(e));return t?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,i=d(this._buff.buffer,e,!0),s=i.length;for(this._length+=e.byteLength,t=64;t<=s;t+=64)n(this._hash,r(i.subarray(t-64,t)));return this._buff=t-64<s?new Uint8Array(i.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,i=this._buff,r=i.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)s[t>>2]|=i[t]<<(t%4<<3);return this._finish(s,r),n=l(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=h(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=l(o(new Uint8Array(e)));return t?f(n):n},p}();var r=i.exports;const s=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice;class o{static create(e,t){new o(e).create(t)}constructor(e){this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}create(e){this.callback=e,this.md5Buffer=new r.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(e=>this.fileReaderDidLoad(e))),this.fileReader.addEventListener("error",(e=>this.fileReaderDidError(e))),this.readNextChunk()}
25fileReaderDidLoad(e){if(this.md5Buffer.append(e.target.result),!this.readNextChunk()){const e=this.md5Buffer.end(!0),t=btoa(e);this.callback(null,t)}}fileReaderDidError(e){this.callback(`Error reading ${this.file.name}`)}readNextChunk(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){const e=this.chunkIndex*this.chunkSize,t=Math.min(e+this.chunkSize,this.file.size),n=s.call(this.file,e,t);return this.fileReader.readAsArrayBuffer(n),this.chunkIndex++,!0}return!1}}function a(e,t){return"string"==typeof e&&(t=e,e=document),e.querySelector(t)}function l(e,t,n={}){const{disabled:i}=e,{bubbles:r,cancelable:s,detail:o}=n,a=document.createEvent("Event");a.initEvent(t,r||!0,s||!0),a.detail=o||{};try{e.disabled=!1,e.dispatchEvent(a)}finally{e.disabled=i}return a}function c(e){return Array.isArray(e)?e:Array.from?Array.from(e):[].slice.call(e)}class u{constructor(e,t,n,i={}){this.file=e,this.attributes={filename:e.name,content_type:e.type||"application/octet-stream",byte_size:e.size,checksum:t},this.xhr=new XMLHttpRequest,this.xhr.open("POST",n,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEac
25h((e=>{this.xhr.setRequestHeader(e,i[e])}));const r=function(e){const t=a(document.head,`meta[name="${e}"]`);if(t)return t.getAttribute("content")}("csrf-token");void 0!=r&&this.xhr.setRequestHeader("X-CSRF-Token",r),this.xhr.addEventListener("load",(e=>this.requestDidLoad(e))),this.xhr.addEventListener("error",(e=>this.requestDidError(e)))}get status(){return this.xhr.status}get response(){const{responseType:e,response:t}=this.xhr;return"json"==e?t:JSON.parse(t)}create(e){this.callback=e,this.xhr.send(JSON.stringify({blob:this.attributes}))}requestDidLoad(e){if(this.status>=200&&this.status<300){const{response:e}=this,{direct_upload:t}=e;delete e.direct_upload,this.attributes=e,this.directUploadData=t,this.callback(null,this.toJSON())}else this.requestDidError(e)}requestDidError(e){this.callback(`Error creating Blob for "${this.file.name}". Status: ${this.status}`)}toJSON(){const e={};for(const t in this.attributes)e[t]=this.attributes[t];return e}}class h{constructor(e){this.blob=e,this.file=e.file;const{url:t,headers:n}=e.directUploadData;this.xhr=new XMLHttpRequest,this.xhr.open("PUT",t,!0),this.xhr.responseType="text";for(const i in n)this.xhr.setRequestHeader(i,n[i]);this.xhr.addEventListener("load",(e=>this.requestDidLoad(e))),this.xhr.addEventListener("error",(e=>this.requestDidError(e)))}create(e){this.callback=e,this.xhr.send(this.file.slice())}requestDidLoad(e){const{status:t,response:n}=this.xhr;t>=200&&t<300?this.callback(null,n):this.requestDidError(e)}requestDidError(e){this.callback(`Error storing "${this.file.name}". Status: ${this.xhr.status}`)}}let d=0;class f{constructor(e,t,n,i={}){this.id=++d,this.file=e,this.url=t,this.delegate=n,this.customHeaders=i}create(e){o.create(this.file,((t,n)=>{if(t)return void e(t);const i=new u(this.file,n,this.url,this.customHeaders);p(this.delegate,"directUploadWillCreateBlobWithXHR",i.xhr),i.create((t=>{if(t)e(t);else{const t=new h(i);p(this.delegate,"directUploadWillStoreFileWithXHR",t.xhr),t.create((t=>{t?e(t):e(null,i.toJSON())}))}}))}))}}function p(e,t,...n){if(e&&"function"==typeof e[t])return e[t](...n)}class m{constructor(e,t){this.input=e,this.file=t,this.directUpload=new f(this.file,this.url,this),this.dispatch("initialize")}start(e){const t=document.createElement("input");t.type="hidden",t.name=this.input.name,this.input.insertAdjacentElement("beforebegin",t),this.dispatch("start"),this.directUpload.create(((n,i)=>{n?(t.parentNode.removeChild(t),this.dispatchError(n)):t.value=i.signed_id,this.dispatch("end"),e(n)}))}uploadRequestDidProgress(e){const t=e.loaded/e.total*90;t&&this.dispatch("progress",{progress:t})}get url(){return this.input.getAttribute("data-direct-upload-url")}dispatch(e,t={}){return t.file=this.file,t.id=this.directUpload.id,l(this.input,`direct-upload:${e}`,{detail:t})}dispatchError(e){this.dispatch("error",{error:e}).defaultPrevented||alert(e)}directUploadWillCreateBlobWithXHR(e){this.dispatch("before-blob-request",{xhr:e})}directUploadWillStoreFileWithXHR(e){this.dispatch("before-storage-request",{xhr:e}),e.upload.addEventListener("progress",(e=>this.uploadRequestDidProgress(e))),e.upload.addEventListener("loadend",(()=>{this.simulateResponseProgress(e)}))}simulateResponseProgress(e){let t=90;const n=Date.now(),i=()=>{const r=Date.now()-n,s=this.estimateResponseTime(),o=Math.min(r/s,1);t=90+9*o,this.dispatch("progress",{progress:t}),e.readyState!==XMLHttpRequest.DONE&&t<99&&requestAnimationFrame(i)};e.addEventListener("loadend",(()=>{this.dispatch("progress",{progress:100})})),requestAnimationFrame(i)}estimateResponseTime(){const e=this.file.size,t=1048576;return e<t?1e3:e<10*t?2e3:3e3+e/t*50}}class g{constructor(e){var t,n;this.form=e,this.inputs=(t=e,n="input[type=file][data-direct-upload-url]:not([disabled])","string"==typeof t&&(n=t,t=document),c(t.querySelectorAll(n))).filter((e=>e.files.length))}start(e){const t=this.createDirectUploadControllers(),n=()=>{const i=t.shift();i?i.start((t=>{t?(e(t),this.dispatch("end")):n()})):(e(),this.dispatch("end"))};this.dispatch("start"),n()}createDirectUploadControllers(){const e=[];
25return this.inputs.forEach((t=>{c(t.files).forEach((n=>{const i=new m(t,n);e.push(i)}))})),e}dispatch(e,t={}){return l(this.form,`direct-uploads:${e}`,{detail:t})}}const v="data-direct-uploads-processing",y=new WeakMap;let b=!1;function w(e){const t=e.target.closest("button, input");t&&"submit"===t.type&&t.form&&y.set(t.form,t)}function S(e){E(e)}function _(e){"FORM"==e.target.tagName&&E(e)}function E(e){const t=e.target;if(t.hasAttribute(v))return void e.preventDefault();const n=new g(t),{inputs:i}=n;i.length&&(e.preventDefault(),t.setAttribute(v,""),i.forEach(O),n.start((e=>{t.removeAttribute(v),e?i.forEach(k):function(e){let t=y.get(e)||a(e,"input[type=submit], button[type=submit]");if(t){const{disabled:e}=t;t.disabled=!1,t.focus(),t.click(),t.disabled=e}else t=document.createElement("input"),t.type="submit",t.style.display="none",e.appendChild(t),t.click(),e.removeChild(t);y.delete(e)}(t)})))}function O(e){e.disabled=!0}function k(e){e.disabled=!1}setTimeout((function(){window.ActiveStorage&&(b||(b=!0,document.addEventListener("click",w,!0),document.addEventListener("submit",S,!0),document.addEventListener("ajax:before",_)))}),1)},84604(e,t,n){"use strict";n.d(t,{Jt:()=>a,bE:()=>l});class i{constructor(e){this.response=e}get statusCode(){return this.response.status}get redirected(){return this.response.redirected}get ok(){return this.response.ok}get unauthenticated(){return 401===this.statusCode}get unprocessableEntity(){return 422===this.statusCode}get authenticationURL(){return this.response.headers.get("WWW-Authenticate")}get contentType(){return(this.response.headers.get("Content-Type")||"").replace(/;.*$/,"")}get headers(){return this.response.headers}get html(){return this.contentType.match(/^(application|text)\/(html|xhtml\+xml)$/)?this.text:Promise.reject(new Error(`Expected an HTML response but got "${this.contentType}" instead`))}get json(){return this.contentType.match(/^application\/.*json$/)?this.responseJson||(this.responseJson=this.response.json()):Promise.reject(new Error(`Expected a JSON response but got "${this.contentType}" instead`))}get text(){return this.responseText||(this.responseText=this.response.text())}get isTurboStream(){return this.contentType.match(/^text\/vnd\.turbo-stream\.html/)}get isScript(){return this.contentType.match(/\b(?:java|ecma)script\b/)}async renderTurboStream(){if(!this.isTurboStream)return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`));window.Turbo?await window.Turbo.renderStreamMessage(await this.text):console.warn("You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js")}async activeScript(){if(!this.isScript)return Promise.reject(new Error(`Expected a Script response but got "${this.contentType}" instead`));{const e=document.createElement("script"),t=document.querySelector("meta[name=csp-nonce]");if(t){const n=""===t.nonce?t.content:t.nonce;n&&e.setAttribute("nonce",n)}e.innerHTML=await this.text,document.body.appendChild(e)}}}class r{static register(e){this.interceptor=e}static get(){return this.interceptor}static reset(){this.interceptor=void 0}}function s(e){const t=document.head.querySelector(`meta[name="${e}"]`);return t&&t.content}class o{constructor(e,t,n={}){this.method=e,this.options=n,this.originalUrl=t.toString()}async perform(){try{const e=r.get();e&&await e(this)}catch(n){console.error(n)}const e=window.Turbo?window.Turbo.fetch:window.fetch,t=new i(await e(this.url,this.fetchOptions));if(t.unauthenticated&&t.authenticationURL)return Promise.reject(window.location.href=t.authenticationURL);t.isScript&&await t.activeScript();return(t.ok||t.unprocessableEntity)&&t.isTurboStream&&await t.renderTurboStream(),t}addHeader(e,t){const n=this.additionalHeaders;n[e]=t,this.options.headers=n}sameHostname(){if(!this.originalUrl.startsWith("http:")&&!this.originalUrl.startsWith("https:"))return!0;try{return new URL(this.originalUrl).hostname===window.location.hostname}catch(e){return!0}}get fetchOptions(){return{method:this.method.toUpperCase(),headers:this.headers,body:this.formattedBody,signal:this.signal,credentials:this.credentials,redirect:this.redirect,keepalive:this.keepalive}}get headers(){const e={"X-Requested-With":"XMLHttpRequest","Content-Type":this.contentType,Accept:this.accept};return this.sameHostname()&&(e["X-CSRF-Token"]=this.csrfToken),function(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=i)}return t}(Object.assign(e,this.additionalHeaders))}get csrfToken(){return function(e){const t=document.cookie?document.cookie.split("; "):[],n=`${encodeURIComponent(e)}=`,i=t.find((e=>
25e.startsWith(n)));if(i){const e=i.split("=").slice(1).join("=");if(e)return decodeURIComponent(e)}}(s("csrf-param"))||s("csrf-token")}get contentType(){return this.options.contentType?this.options.contentType:null==this.body||this.body instanceof window.FormData?void 0:this.body instanceof window.File?this.body.type:"application/json"}get accept(){switch(this.responseKind){case"html":return"text/html, application/xhtml+xml";case"turbo-stream":return"text/vnd.turbo-stream.html, text/html, application/xhtml+xml";case"json":return"application/json, application/vnd.api+json";case"script":return"text/javascript, application/javascript";default:return"*/*"}}get body(){return this.options.body}get query(){const e=(this.originalUrl.split("?")[1]||"").split("#")[0],t=new URLSearchParams(e);let n=this.options.query;var i;n instanceof window.FormData?(i=n,n=[...i].reduce(((e,[t,n])=>e.concat("string"===typeof n?[[t,n]]:[])),[])):n=n instanceof window.URLSearchParams?n.entries():Object.entries(n||{}),function(e,t){for(const[n,i]of t)i instanceof window.File||(e.has(n)&&!n.includes("[]")?(e.delete(n),e.set(n,i)):e.append(n,i))}(t,n);const r=t.toString();return r.length>0?`?${r}`:""}get url(){return this.originalUrl.split("?")[0].split("#")[0]+this.query}get responseKind(){return this.options.responseKind||"html"}get signal(){return this.options.signal}get redirect(){return this.options.redirect||"follow"}get credentials(){return this.options.credentials||"same-origin"}get keepalive(){return this.options.keepalive||!1}get additionalHeaders(){return this.options.headers||{}}get formattedBody(){const e="[object String]"===Object.prototype.toString.call(this.body);return"application/json"===this.headers["Content-Type"]&&!e?JSON.stringify(this.body):this.body}}async function a(e,t){return new o("get",e,t).perform()}async function l(e,t){return new o("post",e,t).perform()}},38850(e){var t;t=()=>(()=>{var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>le});var n={allowedTagList:["b","caption","cite","code","const","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","input","ins","kdb","label","li","option","output","p","q","s","sample","span","strong","td","th","u"]};Object.freeze(n.allowedTagList),Object.defineProperty(n,"allowedTagList",{configurable:!1,writable:!1}),n.fromCharCodeKeyCode={0:"LaunchCalculator",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",91:"OS",92:"OSRight",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",173:"-",182:"MyComputer",183:"MyCalculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Meta",225:"AltGraph"},Object.freeze(n.fromCharCodeKeyCode),Object.defineProperty(n,"fromCharCodeKeyCode",{configurable:!1,writable:!1}),n.keyName={Unidentified:"Unidentified",AndroidDefault:"AndroidDefault",Alt:"Alt",AltGr:"AltGraph",CapsLock:"CapsLock",Ctrl:"Control",Fn:"Fn",FnLock:"FnLock",Hyper:"Hyper",Meta:"Meta",OSLeft:"OS",OSRight:"OS",Command:"OS",NumLock:"NumLock",ScrollLock:"ScrollLock",Shift:"Shift",Super:"Super",Symbol:"Symbol",SymbolLock:"SymbolLock",Enter:"Enter",Tab:"Tab",Space:" ",LeftArrow:"ArrowLeft",UpArrow:"ArrowUp",RightArrow:"ArrowRight",DownArrow:"ArrowDown",End:"End",Home:"Home",PageUp:"PageUp",PageDown:"PageDown",Backspace:"Backspace",Clear:"Clear",Copy:"Copy",CrSel:"CrSel",Cut:"Cut",Delete:"Delete",EraseEof:"EraseEof",ExSel:"ExSel",Insert:"Insert",Paste:"Paste",Redo:"Redo",Undo:"Undo",Accept:"Accept",Again:"Again",Attn:"Attn",Cancel:"Cancel",ContextMenu:"C
25ontextMenu",Esc:"Escape",Execute:"Execute",Find:"Find",Finish:"Finish",Help:"Help",Pause:"Pause",Play:"Play",Props:"Props",Select:"Select",ZoomIn:"ZoomIn",ZoomOut:"ZoomOut",BrightnessDown:"BrightnessDown",BrightnessUp:"BrightnessUp",Eject:"Eject",LogOff:"LogOff",Power:"Power",PowerOff:"PowerOff",PrintScreen:"PrintScreen",Hibernate:"Hibernate",Standby:"Standby",WakeUp:"WakeUp",Compose:"Compose",Dead:"Dead",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",Print:"Print",num0:"0",num1:"1",num2:"2",num3:"3",num4:"4",num5:"5",num6:"6",num7:"7",num8:"8",num9:"9",a:"a",b:"b",c:"c",d:"d",e:"e",f:"f",g:"g",h:"h",i:"i",j:"j",k:"k",l:"l",m:"m",n:"n",o:"o",p:"p",q:"q",r:"r",s:"s",t:"t",u:"u",v:"v",w:"w",x:"x",y:"y",z:"z",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",Semicolon:";",Equal:"=",Comma:",",Hyphen:"-",Minus:"-",Plus:"+",Dot:".",Slash:"/",Backquote:"`",LeftParenthesis:"(",RightParenthesis:")",LeftBracket:"[",RightBracket:"]",Backslash:"\\",Quote:"'",numpad0:"0",numpad1:"1",numpad2:"2",numpad3:"3",numpad4:"4",numpad5:"5",numpad6:"6",numpad7:"7",numpad8:"8",numpad9:"9",NumpadDot:".",NumpadDotAlt:",",NumpadMultiply:"*",NumpadPlus:"+",NumpadMinus:"-",NumpadSubtract:"-",NumpadSlash:"/",NumpadDotObsoleteBrowsers:"Decimal",NumpadMultiplyObsoleteBrowsers:"Multiply",NumpadPlusObsoleteBrowsers:"Add",NumpadMinusObsoleteBrowsers:"Subtract",NumpadSlashObsoleteBrowsers:"Divide",_allFnKeys:["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],_someNonPrintableKeys:["Tab","Enter","Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight","Pause","CapsLock","Escape"],_directionKeys:["PageUp","PageDown","End","Home","ArrowDown","ArrowLeft","ArrowRight","ArrowUp"]},Object.freeze(n.keyName._allFnKeys),Object.freeze(n.keyName._someNonPrintableKeys),Object.freeze(n.keyName._directionKeys),Object.freeze(n.keyName),Object.defineProperty(n,"keyName",{configurable:!1,writable:!1}),Object.freeze(n);const i=n;function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(this,arguments)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===c(r)?r:String(r)),i)}var r}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"isNull",value:function(e){return null===e}},{key:"isUndefined",value:function(e){return void 0===e}},{key:"isUndefinedOrNullOrEmpty",value:function(e){return null==e||""===e}},{key:"isString",value:function(e){return"string"==typeof e||e instanceof String}},{key:"isEmptyString",value:function(e){return""===e}},{key:"isBoolean",value:function(e){return"boolean"==typeof e}},{key:"isTrueOrFalseString",value:function(e){var t=String(e).toLowerCase();return"true"===t||"false"===t}},{key:"isObject",value:function(e){return"object"===c(e)&&null!==e&&!Array.isArray(e)}},{key:"isEmptyObj",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}},{key:"isNumberStrict",value:function(e){return"number"==typeof e}},{key:"isNumber",value:function(e){return!this.isArray(e)&&!isNaN(parseFloat(e))&&isFinite(e)}},{key:"isDigit",value:function(e){return/\d/.test(e)}},{key:"isNumberOrArabic",value:function(e){var t=this.arabicToLatinNumbers(e,!1,!0,!0);return this.isNumber(t)}},{key:"isInt",value:function(e){return"number"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)}},{key:"isFunction",value:function(e){return"function"==typeof e}},{key:"contains",value:function(e,t){return!(!this.isString(e)||!this.isString(t)||""===e||""===t)&&-1!==e.indexOf(t)}},{key:"isInArray",value:function(e,t){return!(!this.isArray(t)||t===[]||this.isUndefined(e))&&-1!==t.indexOf(e)}},{key:"isArray",value:function(e){if("[object Array]"===Object.prototype.toString.call([]))return Array.isArray(e)||"object"===c(e)&&"[object Array]"===Object.prototype.toString.call(e);throw new Error("toString message changed for Object Array")}},{key:"isElement",value:function(e){return"undefined"!=typeof Element&&e instanceof Element}},{key:"isInputElement",value:function(e){return this.isElement(e)&&"input"===e.tagName.toLowerCase()}},{key:"decimalPlaces",value:function(e){var t=o(e.split("."),2)[1];return this.isUndefined(t)?0:t.length}},{key:"indexFirstNonZeroDecimalPlace",value:function(e){var t=o(String(Math.abs(e)).split("."),2)[1];if(this.isUndefined(t))return 0;var n=t.lastIndexOf("0");return-1===n?n=0:n+=2,n}},{key:"keyCodeNumber",value:function(e){return void 0===e.which?e.keyCode:e.which}},{key:"character",value:function(t){var n;if("Unidentified"===t.key||void 0===t.key||this.isSeleniumBot()){var r=this.keyCodeNumber(t);if(229===r)return i.keyName.AndroidDefault;var s=i.fromCharCodeKeyCode[r];
vendor: 10,849 bytes, line 25
25n=e.isUndefinedOrNullOrEmpty(s)?String.fromCharCode(r):s}else switch(t.key){case"Add":n=i.keyName.NumpadPlus;break;case"Apps":n=i.keyName.ContextMenu;break;case"Crsel":n=i.keyName.CrSel;break;case"Decimal":n=t.char?t.char:i.keyName.NumpadDot;break;case"Del":n=i.keyName.Delete;break;case"Divide":n=i.keyName.NumpadSlash;break;case"Down":n=i.keyName.DownArrow;break;case"Esc":n=i.keyName.Esc;break;case"Exsel":n=i.keyName.ExSel;break;case"Left":n=i.keyName.LeftArrow;break;case"Meta":case"Super":n=i.keyName.OSLeft;break;case"Multiply":n=i.keyName.NumpadMultiply;break;case"Right":n=i.keyName.RightArrow;break;case"Spacebar":n=i.keyName.Space;break;case"Subtract":n=i.keyName.NumpadMinus;break;case"Up":n=i.keyName.UpArrow;break;default:n=t.key}return n}},{key:"browser",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"ie",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===n[1]&&null!==(e=t.match(/\b(OPR|Edge)\/(\d+)/))?{name:e[1].replace("OPR","opera"),version:e[2]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0].toLowerCase(),version:n[1]})}},{key:"isSeleniumBot",value:function(){return!0===window.navigator.webdriver}},{key:"isNegative",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t===n||""!==t&&(e.isNumber(t)?t<0:i?this.contains(t,n):this.isNegativeStrict(t,n))}},{key:"isNegativeStrict",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.charAt(0)===t}},{key:"isNegativeWithBrackets",value:function(e,t,n){return e.charAt(0)===t&&this.contains(e,n)}},{key:"isZeroOrHasNoValue",value:function(e){return!/[1-9]/g.test(e)}},{key:"setRawNegativeSign",value:function(e){return this.isNegativeStrict(e,"-")?e:"-".concat(e)}},{key:"replaceCharAt",value:function(e,t,n){return"".concat(e.substr(0,t)).concat(n).concat(e.substr(t+n.length))}},{key:"clampToRangeLimits",value:function(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}},{key:"countNumberCharactersOnTheCaretLeftSide",value:function(e,t,n){for(var i=new RegExp("[0-9".concat(n,"-]")),r=0,s=0;s<t;s++)i.test(e[s])&&r++;return r}},{key:"findCaretPositionInFormattedNumber",value:function(e,t,n,i){var r,s=n.length,o=e.length,a=0;for(r=0;r<s&&a<o&&a<t;r++)(e[a]===n[r]||"."===e[a]&&n[r]===i)&&a++;return r}},{key:"countCharInText",value:function(e,t){for(var n=0,i=0;i<t.length;i++)t[i]===e&&n++;return n}},{key:"convertCharacterCountToIndexPosition",value:function(e){return Math.max(e,e-1)}},{key:"getElementSelection",value:function(e){var t,n={};try{t=this.isUndefined(e.selectionStart)}catch(r){t=!1}try{if(t){var i=window.getSelection().getRangeAt(0);n.start=i.startOffset,n.end=i.endOffset,n.length=n.end-n.start}else n.start=e.selectionStart,n.end=e.selectionEnd,n.length=n.end-n.start}catch(r){n.start=0,n.end=0,n.length=0}return n}},{key:"setElementSelection",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.isUndefinedOrNullOrEmpty(i)&&(i=n),this.isInputElement(t))t.setSelectionRange(n,i);else if(!e.isNull(t.firstChild)){var r=document.createRange();r.setStart(t.firstChild,n),r.setEnd(t.firstChild,i);var s=window.getSelection();s.removeAllRanges(),s.addRange(r)}}},{key:"throwError",value:function(e){throw new Error(e)}},{key:"warning",value:function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&console.warn("Warning: ".concat(e))}},{key:"isWheelEvent",value:function(e){return e instanceof WheelEvent}},{key:"isWheelUpEvent",value:function(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),e.deltaY<0}},{key:"isWheelDownEvent",value:function(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),e.deltaY>0}},{key:"isWheelEventWithZeroDeltaY",value:function(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)&&0===e.deltaY}},{key:"forceDecimalPlaces",value:function(e,t){var n=o(String(e).split("."),2),i=n[0],r=n[1];return r?"".concat(i,".").concat(r.substr(0,t)):e}},{key:"roundToNearest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return 0===e?0:(0===t&&this.throwError("The `stepPlace` used to round is equal to `0`. This value must not be equal to zero."),Math.round(e/t)*t)}},{key:"modifyAndRoundToNearestAuto",value:function(e,t,n){e=Number(this.forceDecimalPlaces(e,n));var i=Math.abs(e);if(i>=0&&i<1){var r,s=Math.pow(10,-n);if(0===e)return t?s:-s;var o,a=n,l=this.indexFirstNonZeroDecimalPlace(e);return r=l>=a-1?s:Math.pow(10,-(l+1)),o=t?e+r:e-r,this.roundToNearest(o,r)}e=parseInt(e,10);var c,u=Math.abs(e).toString().length;switch(u){case 1:c=0;break;case 2:case 3:c=1;break;case 4:case 5:c=2;break;default:c=u-3}var h,d=Math.pow(10,c);return(h=t?e+d:e-d)<=10&&h>=-10?h:this.roundToNearest(h,d)}},{key:"addAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!0,t)}},{key:"subtractAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!1,t)}},{key:"arabicToLatinNumbers",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isNull(e))return e;var r=e.toString();if(""===r)return e;if(null===r.match(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u06f4\u06f5\u06f6]/g))return t&&(r=Number(r)),r;n&&(r=r.replace(/\u066b/,".")),i&&(r=r.replace(/\u066c/g,"")),r=r.replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g,(function(e){return e.charCodeAt(0)-1632})).replace(/[\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9]/g,(function(e){return e.charCodeAt(0)-1776}));var s=Number(r);return isNaN(s)?s:(t&&(r=s),r)}},{key:"triggerEvent",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];window.CustomEvent?t=new CustomEvent(e,{detail:i,bubbles:r,cancelable:s}):(t=document.createEvent("CustomEvent")).initCustomEvent(e,r,s,{detail:i}),n.dispatchEvent(t)}},{key:"parseStr",value:function(t){if(e.isUndefinedOrNullOrEmpty(t))return{s:1,e:0,c:[0]};var n,i,r,s,o={};if(0===t&&1/t<0&&(t="-0"),t=t.toString(),this.isNegativeStrict(t,"-")?(t=t.slice(1),o.s=-1):o.s=1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),n<0&&(n=t.length),(i=-1===t.search(/[1-9]/i)?t.length:t.search(/[1-9]/i))===(r=t.length))o.e=0,o.c=[0];else{for(s=r-1;"0"===t.charAt(s);s-=1)r-=1;for(r-=1,o.e=n-i-1,o.c=[],n=0;i<=r;i+=1)o.c[n]=+t.charAt(i),n+=1}return o}},{key:"testMinMax",value:function(e,t){var n=t.c,i=e.c,r=t.s,s=e.s,o=t.e,a=e.e;if(!n[0]||!i[0])return n[0]?r:i[0]?-s:0;if(r!==s)return r;var l=r<0;if(o!==a)return o>a^l?1:-1;for(r=-1,s=(o=n.length)<(a=i.length)?o:a,r+=1;r<s;r+=1)if(n[r]!==i[r])return n[r]>i[r]^l?1:-1;return o===a?0:o>a^l?1:-1}},{key:"randomString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return Math.random().toString(36).substr(2,e)}},{key:"domElement",value:function(t){return e.isString(t)?document.querySelector(t):t}},{key:"getElementValue",value:function(e){return"input"===e.tagName.toLowerCase()?e.value:this.text(e)}},{key:"setElementValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;"input"===e.tagName.toLowerCase()?e.value=t:e.textContent=t}},{key:"setInvalidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Invalid";(""===t||this.isNull(t))&&this.throwError("Cannot set the invalid state with an empty message."),e.setCustomValidity(t)}},{key:"setValidState",value:function(e){e.setCustomValidity("")}},{key:"cloneObject",value:function(e){return s({},e)}},{key:"camelize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(this.isNull(e))return null;n&&(e=e.replace(/^data-/,""));var r=e.split(t).map((function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}));return r=r.join(""),i&&(r="".concat(r.charAt(0).toLowerCase()).concat(r.slice(1))),r}},{key:"text",value:function(e){var t=e.nodeType;return t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e.textContent:t===Node.TEXT_NODE?e.nodeValue:""}},{key:"setText",value:function(e,t){var n=e.nodeType;n!==Node.ELEMENT_NODE&&n!==Node.DOCUMENT_NODE&&n!==Node.DOCUMENT_FRAGMENT_NODE||(e.textContent=t)}},{key:"filterOut",value:function(e,t){var n=this;return e.filter((function(e){return!n.isInArray(e,t)}))}},{key:"trimPaddedZerosFromDecimalPlaces",value:function(e){if(""===(e=String(e)))return"";var t=o(e.split("."),2),n=t[0],i=t[1];if(this.isUndefinedOrNullOrEmpty(i))return n;var r=i.replace(/0+$/g,"");return""===r?n:"".concat(n,".").concat(r)}},{key:"getHoveredElement",value:function(){var e=r(document.querySelectorAll(":hover"));return e[e.length-1]}},{key:"arrayTrim",value:function(e,t){var n=e.length;return 0===n||t>n?e:t<0?[]:(e.length=parseInt(t,10),e)}},{key:"arrayUnique",value:function(){var e;return r(new Set((e=[]).concat.apply(e,arguments)))}},{key:"mergeMaps",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Map(t.reduce((function(e,t){return e.concat(r(t))}),[]))}},{key:"objectKeyLookup",value:function(e,t){var n=Object.entries(e).find((function(e){return e[1]===t})),i=null;return void 0!==n&&(i=n[0]),i}},{key:"insertAt",value:function(e,t,n){if(n>(e=String(e)).length)throw new Error("The given index is out of the string range.");if(1!==t.length)throw new Error("The given string `char` should be only one character long.");return""===e&&0===n?t:"".concat(e.slice(0,n)).concat(t).concat(e.slice(n))}},{key:"scientificToDecimal",value:function(e){var t=Number(e);if(isNaN(t))return NaN;if(e=String(e),!this.contains(e,"e")&&!this.contains(e,"E"))return e;var n=o(e.split(/e/i),2),i=n[0],r=n[1],s=i<0;s&&(i=i.replace("-",""));var a=+r<0;a&&(r=r.replace("-",""));var l,c=o(i.split(/\./),2),u=c[0],h=c[1];return a?(l=u.length>r?this.insertAt(u,".",u.length-r):"0.".concat("0".repeat(r-u.length)).concat(u),l="".concat(l).concat(h||"")):h?(i="".concat(u).
vendor: 12,104 bytes, line 25
25concat(h),l=r<h.length?this.insertAt(i,".",+r+u.length):"".concat(i).concat("0".repeat(r-h.length))):(i=i.replace(".",""),l="".concat(i).concat("0".repeat(Number(r)))),s&&(l="-".concat(l)),l}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===d(r)?r:String(r)),i)}var r}var p=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===t)throw new Error("Invalid AST")}var t,n;return t=e,(n=[{key:"evaluate",value:function(e){if(null==e)throw new Error("Invalid AST sub-tree");if("number"===e.type)return e.value;if("unaryMinus"===e.type)return-this.evaluate(e.left);var t=this.evaluate(e.left),n=this.evaluate(e.right);switch(e.type){case"op_+":return Number(t)+Number(n);case"op_-":return t-n;case"op_*":return t*n;case"op_/":return t/n;default:throw new Error("Invalid operator '".concat(e.type,"'"))}}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==m(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===m(r)?r:String(r)),i)}var r}var v=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"createNode",value:function(t,n,i){var r=new e;return r.type=t,r.left=n,r.right=i,r}},{key:"createUnaryNode",value:function(t){var n=new e;return n.type="unaryMinus",n.left=t,n.right=null,n}},{key:"createLeaf",value:function(t){var n=new e;return n.type="number",n.value=t,n}}],null&&g(t.prototype,null),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==y(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===y(r)?r:String(r)),i)}var r}var w=function(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.value=n,this.symbol=i}));function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==S(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===S(r)?r:String(r)),i)}var r}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.text=t,this.textLength=t.length,this.index=0,this.token=new w("Error",0,0)}var t,n;return t=e,n=[{key:"_skipSpaces",value:function(){for(;" "===this.text[this.index]&&this.index<=this.textLength;)this.index++}},{key:"getIndex",value:function(){return this.index}},{key:"getNextToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".";if(this._skipSpaces(),this.textLength===this.index)return this.token.type="EOT",this.token;if(h.isDigit(this.text[this.index]))return this.token.type="num",this.token.value=this._getNumber(e),this.token;switch(this.token.type="Error",this.text[this.index]){case"+":this.token.type="+";break;case"-":this.token.type="-";break;case"*":this.token.type="*";break;case"/":this.token.type="/";break;case"(":this.token.type="(";break;case")":this.token.type=")"}if("Error"===this.token.type)throw new Error("Unexpected token '".concat(this.token.symbol,"' at position '").concat(this.token.index,"' in the token function"));return this.token.symbol=this.text[this.index],this.index++,this.token}},{key:"_getNumber",value:function(e){this._skipSpaces();for(var t=this.index;this.index<=this.textLength&&h.isDigit(this.text[this.index]);)this.index++;for(this.text[this.index]===e&&this.index++;this.index<=this.textLength&&h.isDigit(this.text[this.index]);)this.index++;if(this.index===t)throw new Error("No number has been found while it was expected");return this.text.substring(t,this.index).replace(e,".")}}],n&&_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e){if("object"!==O(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===O(r)?r:String(r)),i)}var r}var A=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.text=t,this.decimalCharacter=n,this.lexer=new E(t),this.token=this.lexer.getNextToken(this.decimalCharacter),this._exp()}var t,n;return t=e,(n=[{key:"_exp",value:function(){var e=this._term(),t=this._moreExp();return v.createNode("op_+",e,t)}},{key:"_moreExp",value:function(){var e,t;switch(this.token.type){case"+":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),v.createNode("op_+",t,e);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),v.createNode("op_-",t,e)}return v.createLeaf(0)}},{key:"_term",value:function(){var e=this._factor(),t=this._moreTerms();return v.createNode("op_*",e,t)}},{key:"_moreTerms",value:function(){var e,t;switch(this.token.type){case"*":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),v.createNode("op_*",t,e);case"/":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),v.createNode("op_/",t,e)}return v.createLeaf(1)}},{key:"_factor",value:function(){var e,t,n;switch(this.token.type){case"num":return n=this.token.value,this.token=this.lexer.getNextToken(this.decimalCharacter),v.createLeaf(n);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),t=this._factor(),v.createUnaryNode(t);case"(":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._exp(),this._match(")"),e;default:throw new Error("Unexpected token '".concat(this.token.symbol,"' with type '").concat(this.token.type,"' at position '").concat(this.token.index,"' in the factor function"))}}},{key:"_match",value:function(e){var t=this.lexer.getIndex()-1;if(this.text[t]!==e)throw new Error("Unexpected token '".concat(this.token.symbol,"' at position '").concat(t,"' in the match function"));this.token=this.lexer.getNextToken(this.decimalCharacter)}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function C(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},N.apply(this,arguments)}function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function F(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,M(i.key),i)}}function D(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){var t=function(e){if("object"!==L(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===L(t)?t:String(t)}var R,j=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var s=e._setArgumentsValues(n,i,r),o=s.domElement,a=s.initialValue,l=s.userOptions;if(this.domElement=o,this.defaultRawValue="",this._setSettings(l,!1),this._checkElement(),this.savedCancellableValue=null,this.historyTable=[],this.historyTableIndex=-1,this.onGoingRedo=!1,this.parentForm=this._getParentForm(
vendor: 10,309 bytes, line 25
25),!this.runOnce&&this.settings.formatOnPageLoad)this._formatDefaultValueOnPageLoad(a);else{var c;if(h.isNull(a))switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.min:c=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:c=this.settings.maximumValue;break;case e.options.emptyInputBehavior.zero:c="0";break;case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:case e.options.emptyInputBehavior.always:c="";break;case e.options.emptyInputBehavior.null:c=null;break;default:c=this.settings.emptyInputBehavior}else c=a;this._setElementAndRawValue(c)}this.runOnce=!0,this.hasEventListeners=!1,(this.isInputElement||this.isContentEditable)&&(this.settings.noEventListeners||this._createEventListeners(),this._setWritePermissions(!0)),this._saveInitialValues(a),this.storageNamePrefix="AUTO_",this._setPersistentStorageName(),this.validState=!0,this.isFocused=!1,this.isWheelEvent=!1,this.isDropEvent=!1,this.isEditing=!1,this.rawValueOnFocus=void 0,this.internalModification=!1,this.attributeToWatch=this._getAttributeToWatch(),this.getterSetter=Object.getOwnPropertyDescriptor(this.domElement.__proto__,this.attributeToWatch),this._addWatcher(),this.settings.createLocalList&&this._createLocalList(),this.constructor._addToGlobalList(this),this.global={set:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.autoNumericLocalList.forEach((function(t){t.set(e,n)}))},setUnformatted:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.autoNumericLocalList.forEach((function(t){t.setUnformatted(e,n)}))},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach((function(e){n.push(e.get())})),t._executeCallback(n,e),n},getNumericString:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach((function(e){n.push(e.getNumericString())})),t._executeCallback(n,e),n},getFormatted:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach((function(e){n.push(e.getFormatted())})),t._executeCallback(n,e),n},getNumber:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach((function(e){n.push(e.getNumber())})),t._executeCallback(n,e),n},getLocalized:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach((function(e){n.push(e.getLocalized())})),t._executeCallback(n,e),n},reformat:function(){t.autoNumericLocalList.forEach((function(e){e.reformat()}))},unformat:function(){t.autoNumericLocalList.forEach((function(e){e.unformat()}))},unformatLocalized:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t.autoNumericLocalList.forEach((function(t){t.unformatLocalized(e)}))},update:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.autoNumericLocalList.forEach((function(e){e.update.apply(e,n)}))},isPristine:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=!0;return t.autoNumericLocalList.forEach((function(t){n&&!t.isPristine(e)&&(n=!1)})),n},clear:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.autoNumericLocalList.forEach((function(t){t.clear(e)}))},remove:function(){t.autoNumericLocalList.forEach((function(e){e.remove()}))},wipe:function(){t.autoNumericLocalList.forEach((function(e){e.wipe()}))},nuke:function(){t.autoNumericLocalList.forEach((function(e){e.nuke()}))},has:function(n){return n instanceof e?t.autoNumericLocalList.has(n.node()):t.autoNumericLocalList.has(n)},addObject:function(n){var i,r;n instanceof e?(i=n.node(),r=n):(i=n,r=e.getAutoNumericElement(i)),t._hasLocalList()||t._createLocalList();var s,o=r._getLocalList();0===o.size&&(r._createLocalList(),o=r._getLocalList()),o instanceof Map?s=h.mergeMaps(t._getLocalList(),o):(t._addToLocalList(i,r),s=t._getLocalList()),s.forEach((function(e){e._setLocalList(s)}))},removeObject:function(n){var i,r,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n instanceof e?(i=n.node(),r=n):(i=n,r=e.getAutoNumericElement(i));var o=t.autoNumericLocalList;t.autoNumericLocalList.delete(i),o.forEach((function(e){e._setLocalList(t.autoNumericLocalList)})),s||i!==t.node()?r._createLocalList():r._setLocalList(new Map)},empty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.autoNumericLocalList.forEach((function(t){e?t._createLocalList():t._setLocalList(new Map)}))},elements:function(){var e=[];return t.autoNumericLocalList.forEach((function(t){e.push(t.node())})),e},getList:function(){return t.autoNumericLocalList},size:function(){return t.autoNumericLocalList.size}},this.options={reset:function(){return t.settings={rawValue:t.defaultRawValue},t.update(e.defaultSettings),t},allowDecimalPadding:function(e){return t.update({allowDecimalPadding:e}),t},alwaysAllowDecimalCharacter:function(e){return t.update({alwaysAllowDecimalCharacter:e}),t},caretPositionOnFocus:function(e){return t.settings.caretPositionOnFocus=e,t},createLocalList:function(e){return t.settings.createLocalList=e,t.settings.createLocalList?t._hasLocalList()||t._createLocalList():t._deleteLocalList(),t},currencySymbol:function(e){return t.update({currencySymbol:e}),t},currencySymbolPlacement:function(e){return t.update({currencySymbolPlacement:e}),t},decimalCharacter:function(e){return t.update({decimalCharacter:e}),t},decimalCharacterAlternative:function(e){return t.settings.decimalCharacterAlternative=e,t},decimalPlaces:function(e){return h.warning("Using `options.decimalPlaces()` instead of calling the specific `options.decimalPlacesRawValue()`, `options.decimalPlacesShownOnFocus()` and `options.decimalPlacesShownOnBlur()` methods will reset those options.\nPlease call the specific methods if you do not want to reset those.",t.settings.showWarnings),t.update({decimalPlaces:e}),t},decimalPlacesRawValue:function(e){return t.update({decimalPlacesRawValue:e}),t},decimalPlacesShownOnBlur:function(e){return t.update({decimalPlacesShownOnBlur:e}),t},decimalPlacesShownOnFocus:function(e){return t.update({decimalPlacesShownOnFocus:e}),t},defaultValueOverride:function(e){return t.update({defaultValueOverride:e}),t},digitalGroupSpacing:function(e){return t.update({digitalGroupSpacing:e}),t},digitGroupSeparator:function(e){return t.update({digitGroupSeparator:e}),t},divisorWhenUnfocused:function(e){return t.update({divisorWhenUnfocused:e}),t},emptyInputBehavior:function(n){return null===t.rawValue&&n!==e.options.emptyInputBehavior.null&&(h.warning("You are trying to modify the `emptyInputBehavior` option to something different than `'null'` (".concat(n,"), but the element raw value is currently set to `null`. This would result in an invalid `rawValue`. In order to fix that, the element value has been changed to the empty string `''`."),t.settings.showWarnings),t.rawValue=""),t.update({emptyInputBehavior:n}),t},eventBubbles:function(e){return t.settings.eventBubbles=e,t},eventIsCancelable:function(e){return t.settings.eventIsCancelable=e,t},failOnUnknownOption:function(e){return t.settings.failOnUnknownOption=e,t},formatOnPageLoad:function(e){return t.settings.formatOnPageLoad=e,t},formulaMode:function(e){return t.settings.formulaMode=e,t},historySize:function(e){return t.settings.historySize=e,t},invalidClass:function(e){return t.settings.invalidClass=e,t},isCancellable:function(e){return t.settings.isCancellable=e,t},leadingZero:function(e){return t.update({leadingZero:e}),t},maximumValue:function(e){return t.update({maximumValue:e}),t},minimumValue:function(e){return t.update({minimumValue:e}),t},modifyValueOnUpDownArrow:function(e){return t.settings.modifyValueOnUpDownArrow=e,t},modifyValueOnWheel:function(e){return t.settings.modifyValueOnWheel=e,t},negativeBracketsTypeOnBlur:function(e){return t.update({negativeBracketsTypeOnBlur:e}),t},negativePositiveSignPlacement:function(e){return t.update({negativePositiveSignPlacement:e}),t},negativeSignCharacter:function(e){return t.update({negativeSignCharacter:e}),t},negativePositiveSignBehavior:function(e){return t.settings.negativePositiveSignBehavior=e,t},noEventListeners:function(n){return n===e.options.noEventListeners.noEvents&&t.settings.noEventListeners===e.options.noEventListeners.addEvents&&t._removeEventListeners(),t.update({noEventListeners:n}),t},onInvalidPaste:function(e){return t.settings.onInvalidPaste=e,t},outputFormat:function(e){return t.settings.outputFormat=e,t},overrideMinMaxLimits:function(e){return t.update({overrideMinMaxLimits:e}),t},positiveSignCharacter:function(e){return t.update({positiveSignCharacter:e}),t},rawValueDivisor:function(e){return t.update({rawValueDivisor:e}),t},readOnly:function(e){return t.settings.readOnly=e,t._setWritePermissions(),t},roundingMethod:function(e){return t.update({roundingMethod:e}),t},saveValueToSessionStorage:function(e){return t.update({saveValueToSessionStorage:e}),t},symbolWhenUnfocused:function(e){return t.update({symbolWhenUnfocused:e}),t},selectNumberOnly:function(e){return t.settings.selectNumberOnly=e,t},selectOnFocus:function(e){return t.settings.selectOnFocus=e,t},serializeSpaces:function(e){return t.settings.serializeSpaces=e,t},showOnlyNumbersOnFocus:function(e){return t.update({showOnlyNumbersOnFocus:e}),t},showPositiveSign:function(e){return t.update({showPositiveSign:e}),t},showWarnings:function(e){return t.settings.showWarnings=e,t},styleRules:function(e){return t.update({styleRules:e}),t},suffixText:function(e){return t.update({suffixText:e}),t},unformatOnHover:function(e){return t.settings.unformatOnHover=e,t},unformatOnSubmit:function(e){return t.settings.unformatOnSubmit=e,t},upDownStep:function(e){return t.settings.upDownStep=e,t},valuesToStrings:function(e){return t.update({valuesToStrings:e}),t},watchExternalChanges:function(e){return t.update({watchExternalChanges:e}),t},wheelOn:function(e){return t.settings.wheelOn=e,t},wheelStep:function(e){return t.settings.wheelStep=e,t}},this._triggerEvent(e.events.initialized,this.domElement,{newValue:h.getElementValue(this.domElement),newRawValue:this.rawValue,error:null,aNElement:this})}var t,n,r;return t=e,n
vendor: 7,250 bytes, line 25
25=[{key:"_saveInitialValues",value:function(e){this.initialValueHtmlAttribute=h.scientificToDecimal(this.domElement.getAttribute("value")),h.isNull(this.initialValueHtmlAttribute)&&(this.initialValueHtmlAttribute=""),this.initialValue=e,h.isNull(this.initialValue)&&(this.initialValue="")}},{key:"_createEventListeners",value:function(){var t=this;this.formulaMode=!1,this.compositioning=!1,this._onFocusInFunc=function(e){t._onFocusIn(e)},this._onFocusInAndMouseEnterFunc=function(e){t._onFocusInAndMouseEnter(e)},this._onFocusFunc=function(){t._onFocus()},this._onKeydownFunc=function(e){t._onKeydown(e)},this._onKeypressFunc=function(e){t._onKeypress(e)},this._onKeyupFunc=function(e){t._onKeyup(e)},this._onFocusOutAndMouseLeaveFunc=function(e){t._onFocusOutAndMouseLeave(e)},this._onPasteFunc=function(e){t._onPaste(e)},this._onWheelFunc=function(e){t._onWheel(e)},this._onDropFunc=function(e){t._onDrop(e)},this._onKeydownGlobalFunc=function(e){t._onKeydownGlobal(e)},this._onKeyupGlobalFunc=function(e){t._onKeyupGlobal(e)},this._onCompositionstartFunc=function(e){t._onCompositionstart(e)},this._onCompositionendFunc=function(e){t._onCompositionend(e)},this.domElement.addEventListener("focusin",this._onFocusInFunc,!1),this.domElement.addEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("focus",this._onFocusFunc,!1),this.domElement.addEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("keydown",this._onKeydownFunc,!1),this.domElement.addEventListener("keypress",this._onKeypressFunc,!1),this.domElement.addEventListener("keyup",this._onKeyupFunc,!1),this.domElement.addEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("paste",this._onPasteFunc,!1),this.domElement.addEventListener("wheel",this._onWheelFunc,!1),this.domElement.addEventListener("drop",this._onDropFunc,!1),this.domElement.addEventListener("compositionstart",this._onCompositionstartFunc,!1),this.domElement.addEventListener("compositionend",this._onCompositionendFunc,!1),this._setupFormListener(),this.hasEventListeners=!0,e._doesGlobalListExists()||(document.addEventListener("keydown",this._onKeydownGlobalFunc,!1),document.addEventListener("keyup",this._onKeyupGlobalFunc,!1))}},{key:"_removeEventListeners",value:function(){this.domElement.removeEventListener("focusin",this._onFocusInFunc,!1),this.domElement.removeEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("focus",this._onFocusFunc,!1),this.domElement.removeEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("keydown",this._onKeydownFunc,!1),this.domElement.removeEventListener("keypress",this._onKeypressFunc,!1),this.domElement.removeEventListener("keyup",this._onKeyupFunc,!1),this.domElement.removeEventListener("paste",this._onPasteFunc,!1),this.domElement.removeEventListener("wheel",this._onWheelFunc,!1),this.domElement.removeEventListener("drop",this._onDropFunc,!1),this.domElement.removeEventListener("compositionstart",this._onCompositionstartFunc,!1),this.domElement.removeEventListener("compositionend",this._onCompositionendFunc,!1),this._removeFormListener(),this.hasEventListeners=!1,document.removeEventListener("keydown",this._onKeydownGlobalFunc,!1),document.removeEventListener("keyup",this._onKeyupGlobalFunc,!1)}},{key:"_updateEventListeners",value:function(){this.settings.noEventListeners||this.hasEventListeners||this._createEventListeners(),this.settings.noEventListeners&&this.hasEventListeners&&this._removeEventListeners()}},{key:"_setupFormListener",value:function(){var e=this;h.isNull(this.parentForm)||(this._onFormSubmitFunc=function(){e._onFormSubmit()},this._onFormResetFunc=function(){e._onFormReset()},this._hasParentFormCounter()?this._incrementParentFormCounter():(this._initializeFormCounterToOne(),this.parentForm.addEventListener("submit",this._onFormSubmitFunc,!1),this.parentForm.addEventListener("reset",this._onFormResetFunc,!1),this._storeFormHandlerFunction()))}},{key:"_removeFormListener",value:function(){if(!h.isNull(this.parentForm)){var e=this._getParentFormCounter();1===e?(this.parentForm.removeEventListener("submit",this._getFormHandlerFunction().submitFn,!1),this.parentForm.removeEventListener("reset",this._getFormHandlerFunction().resetFn,!1),this._removeFormDataSetInfo()):e>1?this._decrementParentFormCounter():h.throwError("The AutoNumeric object count on the form is incoherent.")}}},{key:"_hasParentFormCounter",value:function(){return"anCount"in this.parentForm.dataset}},{key:"_getParentFormCounter",value:function(){return Number(this.parentForm.dataset.anCount)}},{key:"_initializeFormCounterToOne",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._getFormElement(e).dataset.anCount=1}},{key:"_incrementParentFormCounter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._getFormElement(e).dataset.anCount++}},{key:"_decrementParentFormCounter",value:function(){this.parentForm.dataset.anCount--}},{key:"_hasFormHandlerFunction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"anFormHandler"in this._getFormElement(e).dataset}},{key:"_getFormElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return h.isNull(e)?this.parentForm:e}},{key:"_storeFormHandlerFunction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.constructor._doesFormHandlerListExists()||this.constructor._createFormHandlerList();var t=h.randomString();this._getFormElement(e).dataset.anFormHandler=t,window.aNFormHandlerMap.set(t,{submitFn:this._onFormSubmitFunc,resetFn:this._onFormResetFunc})}},{key:"_getFormHandlerKey",value:function(){this._hasFormHandlerFunction()||h.throwError("Unable to retrieve the form handler name");var e=this.parentForm.dataset.anFormHandler;return""===e&&h.throwError("The form handler name is invalid"),e}},{key:"_getFormHandlerFunction",value:function(){var e=this._getFormHandlerKey();return window.aNFormHandlerMap.get(e)}},{key:"_removeFormDataSetInfo",value:function(){this._decrementParentFormCounter(),window.aNFormHandlerMap.delete(this._getFormHandlerKey()),this.parentForm.removeAttribute("data-an-count"),this.parentForm.removeAttribute("data-an-form-handler")}},{key:"_setWritePermissions",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.domElement.readOnly||this.settings.readOnly?this._setReadOnly():this._setReadWrite()}},{key:"_setReadOnly",value:function(){this.isInputElement?this.domElement.readOnly=!0:this.domElement.setAttribute("contenteditable",!1)}},{key:"_setReadWrite",value:function(){this.isInputElement?this.domElement.readOnly=!1:this.domElement.setAttribute("contenteditable",!0)}},{key:"_addWatcher",value:function(){var e=this;if(!h.isUndefined(this.getterSetter)){var t=this.getterSetter,
vendor: 27,988 bytes, line 25
25n=t.set,i=t.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return i.call(e.domElement)},set:function(t){n.call(e.domElement,t),e.settings.watchExternalChanges&&!e.internalModification&&e.set(t)}})}}},{key:"_removeWatcher",value:function(){var e=this;if(!h.isUndefined(this.getterSetter)){var t=this.getterSetter,n=t.set,i=t.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return i.call(e.domElement)},set:function(t){n.call(e.domElement,t)}})}}},{key:"_getAttributeToWatch",value:function(){var e;if(this.isInputElement)e="value";else{var t=this.domElement.nodeType;t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e="textContent":t===Node.TEXT_NODE&&(e="nodeValue")}return e}},{key:"_historyTableAdd",value:function(){var e=0===this.historyTable.length;if(e||this.rawValue!==this._historyTableCurrentValueUsed()){var t=!0;if(!e){var n=this.historyTableIndex+1;n<this.historyTable.length&&this.rawValue===this.historyTable[n].value?t=!1:h.arrayTrim(this.historyTable,this.historyTableIndex+1)}if(this.historyTableIndex++,t){var i=h.getElementSelection(this.domElement);this.selectionStart=i.start,this.selectionEnd=i.end,this.historyTable.push({value:this.rawValue,start:this.selectionStart+1,end:this.selectionEnd+1}),this.historyTable.length>1&&(this.historyTable[this.historyTableIndex-1].start=this.selectionStart,this.historyTable[this.historyTableIndex-1].end=this.selectionEnd)}this.historyTable.length>this.settings.historySize&&this._historyTableForget()}}},{key:"_historyTableUndoOrRedo",value:function(){var e;if(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?(e=this.historyTableIndex+1<this.historyTable.length)&&this.historyTableIndex++:(e=this.historyTableIndex>0)&&this.historyTableIndex--,e){var t=this.historyTable[this.historyTableIndex];this.set(t.value,null,!1),h.setElementSelection(this.domElement,t.start,t.end)}}},{key:"_historyTableUndo",value:function(){this._historyTableUndoOrRedo(!0)}},{key:"_historyTableRedo",value:function(){this._historyTableUndoOrRedo(!1)}},{key:"_historyTableForget",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=[],n=0;n<e;n++)t.push(this.historyTable.shift()),this.historyTableIndex--,this.historyTableIndex<0&&(this.historyTableIndex=0);return 1===t.length?t[0]:t}},{key:"_historyTableCurrentValueUsed",value:function(){var e=this.historyTableIndex;return e<0&&(e=0),h.isUndefinedOrNullOrEmpty(this.historyTable[e])?"":this.historyTable[e].value}},{key:"_parseStyleRules",value:function(){var e=this;h.isUndefinedOrNullOrEmpty(this.settings.styleRules)||""===this.rawValue||(h.isUndefinedOrNullOrEmpty(this.settings.styleRules.positive)||(this.rawValue>=0?this._addCSSClass(this.settings.styleRules.positive):this._removeCSSClass(this.settings.styleRules.positive)),h.isUndefinedOrNullOrEmpty(this.settings.styleRules.negative)||(this.rawValue<0?this._addCSSClass(this.settings.styleRules.negative):this._removeCSSClass(this.settings.styleRules.negative)),h.isUndefinedOrNullOrEmpty(this.settings.styleRules.ranges)||0===this.settings.styleRules.ranges.length||this.settings.styleRules.ranges.forEach((function(t){e.rawValue>=t.min&&e.rawValue<t.max?e._addCSSClass(t.class):e._removeCSSClass(t.class)})),h.isUndefinedOrNullOrEmpty(this.settings.styleRules.userDefined)||0===this.settings.styleRules.userDefined.length||this.settings.styleRules.userDefined.forEach((function(t){if(h.isFunction(t.callback))if(h.isString(t.classes))t.callback(e.rawValue)?e._addCSSClass(t.classes):e._removeCSSClass(t.classes);else if(h.isArray(t.classes))if(2===t.classes.length)t.callback(e.rawValue)?(e._addCSSClass(t.classes[0]),e._removeCSSClass(t.classes[1])):(e._removeCSSClass(t.classes[0]),e._addCSSClass(t.classes[1]));else if(t.classes.length>2){var n=t.callback(e.rawValue);h.isArray(n)?t.classes.forEach((function(t,i){h.isInArray(i,n)?e._addCSSClass(t):e._removeCSSClass(t)})):h.isInt(n)?t.classes.forEach((function(t,i){i===n?e._addCSSClass(t):e._removeCSSClass(t)})):h.isNull(n)?t.classes.forEach((function(t){e._removeCSSClass(t)})):h.throwError("The callback result is not an array nor a valid array index, ".concat(L(n)," given."))}else h.throwError("The classes attribute is not valid for the `styleRules` option.");else h.isUndefinedOrNullOrEmpty(t.classes)?t.callback(e):h.throwError("The callback/classes structure is not valid for the `styleRules` option.");else h.warning("The given `styleRules` callback is not a function, ".concat(L(t.callback)," given."),e.settings.showWarnings)})))}},{key:"_addCSSClass",value:function(e){this.domElement.classList.add(e)}},{key:"_removeCSSClass",value:function(e){this.domElement.classList.remove(e)}},{key:"update",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Array.isArray(n)&&Array.isArray(n[0])&&(n=n[0]);var r=h.cloneObject(this.settings),s=this.rawValue,o={};h.isUndefinedOrNullOrEmpty(n)||0===n.length?o=null:n.length>=1&&n.forEach((function(t){e.constructor._isPreDefinedOptionValid(t)&&(t=e.constructor._getOptionObject(t)),N(o,t)}));try{this._setSettings(o,!0),this._setWritePermissions(),this._updateEventListeners(),this.set(s)}catch(a){return this._setSettings(r,!0),h.throwError("Unable to update the settings, those are invalid: [".concat(a,"]")),this}return this}},{key:"getSettings",value:function(){return this.settings}},{key:"set",value:function(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(h.isUndefined(t))return h.warning("You are trying to set an 'undefined' value ; an error could have occurred.",this.settings.showWarnings),this;if(h.isNull(r)||this._setSettings(r,!0),null===t&&this.settings.emptyInputBehavior!==e.options.emptyInputBehavior.null)return h.warning("You are trying to set the `null` value while the `emptyInputBehavior` option is set to ".concat(this.settings.emptyInputBehavior,". If you want to be able to set the `null` value, you need to change the 'emptyInputBehavior' option to `'null'`."),this.settings.showWarnings),this;if(null===t)return this._setElementAndRawValue(null,null,s),this._saveValueToPersistentStorage(),this;if(n=this.constructor._toNumericValue(t,this.settings),isNaN(Number(n)))return h.warning("The value you are trying to set results in `NaN`. The element value is set to the empty string instead.",this.settings.showWarnings),this.setValue("",s),this;if(""===n)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.zero:n=0;break;case e.options.emptyInputBehavior.min:n=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:n=this.settings.maximumValue;break;default:h.isNumber(this.settings.emptyInputBehavior)&&(n=Number(this.settings.emptyInputBehavior))}if(""!==n){var o=x(this.constructor._checkIfInRangeWithOverrideOption(n,this.settings),2),a=o[0],l=o[1];if(a&&l&&this.settings.valuesToStrings&&this._checkValuesToStrings(n))return this._setElementAndRawValue(this.settings.valuesToStrings[n],n,s),this._saveValueToPersistentStorage(),this;if(h.isZeroOrHasNoValue(n)&&(n="0"),a&&l){var c=this.constructor._roundRawValue(n,this.settings);return c=this._trimLeadingAndTrailingZeros(c.replace(this.settings.decimalCharacter,".")),n=this._getRawValueToFormat(n),this.isFocused?n=this.constructor._roundFormattedValueShownOnFocus(n,this.settings):(this.settings.divisorWhenUnfocused&&(n=(n/=this.settings.divisorWhenUnfocused).toString()),n=this.constructor._roundFormattedValueShownOnBlur(n,this.settings)),n=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(n,this.settings),n=this.constructor._addGroupSeparators(n,this.settings,this.isFocused,this.rawValue,c),!this.isFocused&&this.settings.symbolWhenUnfocused&&(n="".concat(n).concat(this.settings.symbolWhenUnfocused)),(this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._saveValueToPersistentStorage(),this._setElementAndRawValue(n,c,s),this._setValidOrInvalidState(c),this}return this._triggerRangeEvents(a,l),h.throwError("The value [".concat(n,"] being set falls outside of the minimumValue [").concat(this.settings.minimumValue,"] and maximumValue [").concat(this.settings.maximumValue,"] range set for this element")),this._removeValueFromPersistentStorage(),this.setValue("",s),this}return i=this.settings.emptyInputBehavior===e.options.emptyInputBehavior.always?this.settings.currencySymbol:"",this._setElementAndRawValue(i,"",s),this}},{key:"setUnformatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e||h.isUndefined(e))return this;h.isNull(t)||this._setSettings(t,!0);var n=this.constructor._removeBrackets(e,this.settings),i=this.constructor._stripAllNonNumberCharacters(n,this.settings,!0,this.isFocused);return h.isNumber(i)||h.throwError("The value is not a valid one, it's not a numeric string nor a recognized currency."),this.constructor._isWithinRangeWithOverrideOption(i,this.settings)?this.setValue(e):h.throwError("The value is out of the range limits [".concat(this.settings.minimumValue,", ").concat(this.settings.maximumValue,"].")),this}},{key:"setValue",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._setElementAndRawValue(e,t),this}},{key:"_setRawValue",value:function(t){var n=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.rawValue!==t){var r=this.rawValue;this.rawValue=t,!h.isNull(this.settings.rawValueDivisor)&&0!==this.settings.rawValueDivisor&&""!==t&&null!==t&&this._isUserManuallyEditingTheValue()&&(this.rawValue/=this.settings.rawValueDivisor),this._triggerEvent(e.events.rawValueModified,this.domElement,{oldRawValue:r,newRawValue:this.rawValue,isPristine:this.isPristine(!0),error:null,aNElement:this}),this._parseStyleRules(),i&&window.requestAnimationFrame((function(){return n._historyTableAdd()}))}}},{key:"_setElementValue",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=h.getElementValue(this.domElement);return t!==i&&(this.internalModification=!0,h.setElementValue(this.domElement,t),this.internalModification=!1,n&&this._triggerEvent(e.events.formatted,this.domElement,{oldValue:i,newValue:t,oldRawValue:this.rawValue,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this})),this}},{key:"_setElementAndRawValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return h.isNull(t)?t=e:h.isBoolean(t)&&(n=t,t=e),this._setElementValue(e),this._setRawValue(t,n),this}},{key:"_getRawValueToFormat",value:function(e){return h.isNull(this.settings.rawValueDivisor)||0===this.settings.rawValueDivisor||""===e||null===e?e:e*this.settings.rawValueDivisor}},{key:"_checkValuesToStrings",value:function(e){return this.constructor._checkValuesToStringsArray(e,this.valuesToStringsKeys)}},{key:"_isUserManuallyEditingTheValue",value:function(){return this.isFocused&&this.isEditing||this.isDropEvent}},{key:"_executeCallback",value:function(e,t){!h.isNull(t)&&h.isFunction(t)&&t(e,this)}},{key:"_triggerEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;h.triggerEvent(e,t,n,this.settings.eventBubbles,this.settings.eventIsCancelable)}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.getNumericString(e)}},{key:"getNumericString",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=h.isNull(this.rawValue)?null:h.trimPaddedZerosFromDecimalPlaces(this.rawValue),this._executeCallback(e,t),e}},{key:"getFormatted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;"value"in this.domElement||"textContent"in this.domElement||h.throwError("Unable to get the formatted string from the element.");var t=h.getElementValue(this.domElement);return this._executeCallback(t,e),t}},{key:"getNumber",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=null===this.rawValue?null:this.constructor._toLocale(this.getNumericString(),"number",this.settings),this._executeCallback(e,t),e}},{key:"getLocalized",value:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h.isFunction(i)&&h.isNull(r)&&(r=i,i=null),""!=(t=h.isEmptyString(this.rawValue)?"":""+Number(this.rawValue))&&0===Number(t)&&this.settings.leadingZero!==e.options.leadingZero.keep&&(t="0"),n=h.isNull(i)?this.settings.outputFormat:i;var s=this.constructor._toLocale(t,n,this.settings);return this._executeCallback(s,r),s}},{key:"reformat",value:function(){return this.set(this.rawValue),this}},{key:"unformat",value:function(){return this._setElementValue(this.getNumericString()),this}},{key:"unformatLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._setElementValue(this.getLocalized(e)),this}},{key:"isPristine",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.initialValueHtmlAttribute===this.getFormatted():this.initialValue===this.getNumericString()}},{key:"select",value:function(){return this.settings.selectNumberOnly?this.selectNumber():this._defaultSelectAll(),this}},{key:"_defaultSelectAll",value:function(){h.setElementSelection(this.domElement,0,h.getElementValue(this.domElement).length)}},{key:"selectNumber",value:function(){var t,n,i=h.getElementValue(this.domElement),r=i.length,s=this.settings.currencySymbol.length,o=this.settings.currencySymbolPlacement,a=h.isNegative(i,this.settings.negativeSignCharacter)?1:0,l=this.settings.suffixText.length;if(t=o===e.options.currencySymbolPlacement.suffix?0:this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left&&1===a&&s>0?s+1:s,o===e.options.currencySymbolPlacement.prefix)n=r-l;else switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:n=r-(l+s);break;case e.options.negativePositiveSignPlacement.right:n=s>0?r-(s+a+l):r-(s+l);break;default:n=r-(s+l)}return h.setElementSelection(this.domElement,t,n),this}},{key:"selectInteger",value:function(){var t=0,n=this.rawValue>=0;this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.prefix&&(this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none)||(this.settings.showPositiveSign&&n||!n&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left)&&(t+=1),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&(t+=this.settings.currencySymbol.length);var i=h.getElementValue(this.domElement),r=i.indexOf(this.settings.decimalCharacter);return-1===r&&(r=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?i.length-this.settings.currencySymbol.length:i.length,n||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.suffix&&this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.suffix||(r-=1),r-=this.settings.suffixText.length),h.setElementSelection(this.domElement,t,r),this}},{key:"selectDecimal",value:function(){var e,t,n=h.getElementValue(this.domElement).indexOf(this.settings.decimalCharacter);return-1===n?(n=0,e=0):(n+=1,t=this.isFocused?this.settings.decimalPlacesShownOnFocus:this.settings.decimalPlacesShownOnBlur,e=n+Number(t)),h.setElementSelection(this.domElement,n,e),this}},{key:"node",value:function(){return this.domElement}},{key:"parent",value:function(){return this.domElement.parentNode}},{key:"detach",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=h.isNull(t)?this.domElement:t.node(),this._removeFromLocalList(e),this}},{key:"attach",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._addToLocalList(e.node()),t&&e.update(this.settings),this}},{key:"formatOther",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._formatOrUnformatOther(!0,e,t)}},{key:"unformatOther",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._formatOrUnformatOther(!1,e,t)}},{key:"_formatOrUnformatOther",value:function(t,n){var i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i=h.isNull(s)?this.settings:this._cloneAndMergeSettings(s),h.isElement(n)){var o=h.getElementValue(n);return r=t?e.format(o,i):e.unformat(o,i),h.setElementValue(n,r),null}return t?e.format(n,i):e.unformat(n,i)}},{key:"init",value:function(t){var n=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!1,s=[];if(h.isString(t)?s=C(document.querySelectorAll(t)):h.isElement(t)?(s.push(t),r=!0):h.isArray(t)?s=t:h.throwError("The given parameters to the 'init' function are invalid."),0===s.length)return h.warning("No valid DOM elements were given hence no AutoNumeric object were instantiated.",!0),[];var o=this._getLocalList(),a=[];return s.forEach((function(t){var r=n.settings.createLocalList;i&&(n.settings.createLocalList=!1);var s=new e(t,h.getElementValue(t),n.settings);i&&(s._setLocalList(o),n._addToLocalList(t,s),n.settings.createLocalList=r),a.push(s)})),r?a[0]:a}},{key:"clear",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]){var t={emptyInputBehavior:e.options.emptyInputBehavior.focus};this.set("",t)}else this.set("");return this}},{key:"remove",value:function(){this._removeValueFromPersistentStorage(),this._removeEventListeners(),this._removeWatcher(),this._removeFromLocalList(this.domElement),this.constructor._removeFromGlobalList(this)}},{key:"wipe",value:function(){this._setElementValue("",!1),this.remove()}},{key:"nuke",value:function(){this.remove(),this.domElement.parentNode.removeChild(this.domElement)}},{key:"form",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||h.isUndefinedOrNullOrEmpty(this.parentForm)){var e=this._getParentForm();if(!h.isNull(e)&&e!==this.parentForm){var t=this._getFormAutoNumericChildren(this.parentForm);this.parentForm.dataset.anCount=t.length,this._hasFormHandlerFunction(e)?this._incrementParentFormCounter(e):(this._storeFormHandlerFunction(e),this._initializeFormCounterToOne(e))}this.parentForm=e}return this.parentForm}},{key:"_getFormAutoNumericChildren",value:function(e){var t=this,n=C(e.elements),i=this._getContenteditableElements(e);return h.arrayUnique(n,i).filter((function(e){return t.constructor.isManagedByAutoNumeric(e)}))}},{key:"_getContenteditableElements",value:function(e){if(h.isUndefinedOrNullOrEmpty(e)||!e.hasAttribute("id"))return[];var t=C(e.querySelectorAll("[contenteditable=true]")),n=C(document.querySelectorAll("*:not(input)[form=".concat(e.getAttribute("id"),"][contenteditable=true]")));return h.arrayUnique(t,n)}},{key:"_getParentForm",value:function(){if(!h.isUndefined(this.domElement.form))return this.domElement.form;if("body"===this.domElement.tagName.toLowerCase())return null;var e,t=this.domElement;do{if(t=t.parentNode,h.isNull(t))return null;if("body"===(e=t.tagName?t.tagName.toLowerCase():""))break}while("form"!==e);return"form"===e?t:null}},{key:"formNumericString",value:function(){return this.constructor._serializeNumericString(this.form(),this.settings.serializeSpaces)}},{key:"formFormatted",value:function(){return this.constructor._serializeFormatted(this.form(),this.settings.serializeSpaces)}},{key:"formLocalized",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=h.isNull(t)?this.settings.outputFormat:t,this.constructor._serializeLocalized(this.form(),this.settings.serializeSpaces,e)}},{key:"formArrayNumericString",value:function(){return this.constructor._serializeNumericStringArray(this.form(),this.settings.serializeSpaces)}},{key:"formArrayFormatted",value:function(){return this.constructor._serializeFormattedArray(this.form(),this.settings.serializeSpaces)}},{key:"formArrayLocalized",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=h.isNull(t)?this.settings.outputFormat:t,this.constructor._serializeLocalizedArray(this.form(),this.settings.serializeSpaces,e)}},{key:"formJsonNumericString",value:function(){return JSON.stringify(this.formArrayNumericString())}},{key:"formJsonFormatted",value:function(){return JSON.stringify(this.formArrayFormatted())}},{key:"formJsonLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return JSON.stringify(this.formArrayLocalized(e))}},{key:"formUnformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach((function(t){e.getAutoNumericElement(t).unformat()})),this}},{key:"formUnformatLocalized",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach((function(t){e.getAutoNumericElement(t).unformatLocalized()})),this}},{key:"formReformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach((function(t){e.getAutoNumericElement(t).reformat()})),this}},{key:"formSubmitNumericString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return h.isNull(e)?(this.formUnformat(),this.form().submit(),this.formReformat()):h.isFunction(e)?e(this.formNumericString()):h.throwError("The given callback is not a function."),this}},{key:"formSubmitFormatted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return h.isNull(e)?this.form().submit():h.isFunction(e)?e(this.formFormatted()):h.throwError("The given callback is not a function."),this}},{key:"formSubmitLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return h.isNull(t)?(this.formUnformatLocalized(),this.form().submit(),this.formReformat()):h.isFunction(t)?t(this.formLocalized(e)):h.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayNumericString",value:function(e){return h.isFunction(e)?e(this.formArrayNumericString()):h.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayFormatted",value:function(e){return h.isFunction(e)?e(this.formArrayFormatted()):h.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return h.isFunction(e)?e(this.formArrayLocalized(t)):h.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonNumericString",value:function(e){return h.isFunction(e)?e(this.formJsonNumericString()):h.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonFormatted",value:function(e){return h.isFunction(e)?e(this.formJsonFormatted()):h.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return h.isFunction(e)?e(this.formJsonLocalized(t)):h.throwError("The given callback is not a function."),this}},{key:"_createLocalList",value:function(){this.autoNumericLocalList=new Map,this._addToLocalList(this.domElement)}},{key:"_deleteLocalList",value:function(){delete this.autoNumericLocalList}},{key:"_setLocalList",value:function(e){this.autoNumericLocalList=e}},{key:"_getLocalList",value:function(){return this.autoNumericLocalList}},{key:"_hasLocalList",value:function(){return this.autoNumericLocalList instanceof Map&&0!==this.autoNumericLocalList.size}},{key:"_addToLocalList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h.isNull(t)&&(t=this),h.isUndefined(this.autoNumericLocalList)?h.throwError("The local list provided does not exists when trying to add an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.set(e,t)}},{key:"_removeFromLocalList",value:function(e){h.isUndefined(this.autoNumericLocalList)?this.settings.createLocalList&&h.throwError("The local list provided does not exists when trying to remove an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.delete(e)}},{key:"_mergeSettings",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];N.apply(void 0,[this.settings].concat(t))}},{key:"_cloneAndMergeSettings",value:function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return N.apply(void 0,[e,this.settings].concat(n)),e}},{key:"_updatePredefinedOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return h.isNull(t)?this.update(e):(this._mergeSettings(e,t),this.update(this.settings)),this}},{key:"french",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().French,t),this}},{key:"northAmerican",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().NorthAmerican,t),this}},{key:"british",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().British,t),this}},{key:"swiss",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Swiss,t),this}},{key:"japanese",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Japanese,t),this}},{key:"spanish",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Spanish,t),this}},{key:"chinese",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Chinese,t),this}},{key:"brazilian",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Brazilian,t),this}},{key:"_runCallbacksFoundInTheSettingsObject",value:function(){for(var e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){var t=this.settings[e];if("function"==typeof t)this.settings[e]=t(this,e);else{var n="";e in this.domElement.dataset&&(n=this.domElement.dataset[e]),n=h.camelize(n),"function"==typeof this.settings[n]&&(this.settings[e]=n(this,e))}}}},{key:"_setTrailingNegativeSignInfo",value:function(){this.isTrailingNegative=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&(this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left||this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.right)}},{key:"_modifyNegativeSignAndDecimalCharacterForRawValue",value:function(e){return"."!==this.settings.decimalCharacter&&(e=e.replace(this.settings.decimalCharacter,".")),"-"!==this.settings.negativeSignCharacter&&this.settings.isNegativeSignAllowed&&(e=e.replace(this.settings.negativeSignCharacter,"-")),e.match(/\d/)||
vendor: 8,061 bytes, line 25
25(e+="0"),e}},{key:"_initialCaretPosition",value:function(t){h.isNull(this.settings.caretPositionOnFocus)&&this.settings.selectOnFocus===e.options.selectOnFocus.doNotSelect&&h.throwError("`_initialCaretPosition()` should never be called when the `caretPositionOnFocus` option is `null`.");var n=this.rawValue<0,i=h.isZeroOrHasNoValue(t),r=t.length,s=0,o=0,a=!1,l=0;this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.start&&(s=(t=(t=(t=t.replace(this.settings.negativeSignCharacter,"")).replace(this.settings.positiveSignCharacter,"")).replace(this.settings.currencySymbol,"")).length,a=h.contains(t,this.settings.decimalCharacter),this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.decimalLeft&&this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.decimalRight||(a?(o=t.indexOf(this.settings.decimalCharacter),l=this.settings.decimalCharacter.length):(o=s,l=0)));var c="";n?c=this.settings.negativeSignCharacter:this.settings.showPositiveSign&&!i&&(c=this.settings.positiveSignCharacter);var u,d=c.length,f=this.settings.currencySymbol.length;if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix){if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=d+f;break;case e.options.negativePositiveSignPlacement.suffix:u=f}else u=f;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=r;break;case e.options.negativePositiveSignPlacement.suffix:u=f+s}else u=r;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=d+f+o;break;case e.options.negativePositiveSignPlacement.suffix:u=f+o}else u=f+o;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=d+f+o+l;break;case e.options.negativePositiveSignPlacement.suffix:u=f+o+l}else u=f+o+l}else if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=0;break;case e.options.negativePositiveSignPlacement.prefix:u=d}else u=0;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=s;break;case e.options.negativePositiveSignPlacement.prefix:u=d+s}else u=s;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=o;break;case e.options.negativePositiveSignPlacement.prefix:u=d+o}else u=o;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=o+l;break;case e.options.negativePositiveSignPlacement.prefix:u=d+o+l}else u=o+l;return u}},{key:"_triggerRangeEvents",value:function(t,n){t||this._triggerEvent(e.events.minRangeExceeded,this.domElement),n||this._triggerEvent(e.events.maxRangeExceeded,this.domElement)}},{key:"_setInvalidState",value:function(){this.isInputElement?h.setInvalidState(this.domElement):this._addCSSClass(this.settings.invalidClass),this._triggerEvent(e.events.invalidValue,this.domElement),this.validState=!1}},{key:"_setValidState",value:function(){this.isInputElement?h.setValidState(this.domElement):this._removeCSSClass(this.settings.invalidClass),this.validState||this._triggerEvent(e.events.correctedValue,this.domElement),this.validState=!0}},{key:"_setValidOrInvalidState",value:function(t){if(this.settings.overrideMinMaxLimits===e.options.overrideMinMaxLimits.invalid){var n=this.constructor._isMinimumRangeRespected(t,this.settings),i=this.constructor._isMaximumRangeRespected(t,this.settings);n&&i?this._setValidState():this._setInvalidState(),this._triggerRangeEvents(n,i)}}},{key:"_keepAnOriginalSettingsCopy",value:function(){this.originalDigitGroupSeparator=this.settings.digitGroupSeparator,this.originalCurrencySymbol=this.settings.currencySymbol,this.originalSuffixText=this.settings.suffixText}},{key:"_trimLeadingAndTrailingZeros",value:function(t){if(""===t||null===t)return t;if(this.settings.leadingZero!==e.options.leadingZero.keep){if(0===Number(t))return"0";t=t.replace(/^(-)?0+(?=\d)/g,"$1")}return h.contains(t,".")&&(t=t.replace(/(\.[0-9]*?)0+$/,"$1")),t.replace(/\.$/,"")}},{key:"_setPersistentStorageName",value:function(){this.settings.saveValueToSessionStorage&&(""===this.domElement.name||h.isUndefined(this.domElement.name)?this.rawValueStorageName="".concat(this.storageNamePrefix).concat(this.domElement.id):this.rawValueStorageName="".concat(this.storageNamePrefix).concat(decodeURIComponent(this.domElement.name)))}},{key:"_saveValueToPersistentStorage",value:function(){this.settings.saveValueToSessionStorage&&sessionStorage.setItem(this.rawValueStorageName,this.rawValue)}},{key:"_getValueFromPersistentStorage",value:function(){return this.settings.saveValueToSessionStorage?sessionStorage.getItem(this.rawValueStorageName):(h.warning("`_getValueFromPersistentStorage()` is called but `settings.saveValueToSessionStorage` is false. There must be an error that needs fixing.",this.settings.showWarnings),null)}},{key:"_removeValueFromPersistentStorage",value:function(){this.settings.saveValueToSessionStorage&&sessionStorage.removeItem(this.rawValueStorageName)}},{key:"_getDefaultValue",value:function(e){var t=e.getAttribute("value");return h.isNull(t)?"":t}},{key:"_onFocusInAndMouseEnter",value:function(t){if(this.isEditing=!1,!this.formulaMode&&this.settings.unformatOnHover&&"mouseenter"
vendor: 50,136 bytes, line 25
25===t.type&&t.altKey)this.constructor._unformatAltHovered(this);else if("focus"===t.type&&(this.isFocused=!0,this.rawValueOnFocus=this.rawValue),"focus"===t.type&&this.settings.unformatOnHover&&this.hoveredWithAlt&&this.constructor._reformatAltHovered(this),"focus"===t.type||"mouseenter"===t.type&&!this.isFocused){var n=null;this.settings.emptyInputBehavior===e.options.emptyInputBehavior.focus&&this.rawValue<0&&null!==this.settings.negativeBracketsTypeOnBlur&&this.settings.isNegativeSignAllowed&&(n=this.constructor._removeBrackets(h.getElementValue(this.domElement),this.settings));var i=this._getRawValueToFormat(this.rawValue);if(""!==i){var r=this.constructor._roundFormattedValueShownOnFocusOrBlur(i,this.settings,this.isFocused);this.settings.showOnlyNumbersOnFocus===e.options.showOnlyNumbersOnFocus.onlyNumbers?(this.settings.digitGroupSeparator="",this.settings.currencySymbol="",this.settings.suffixText="",n=r.replace(".",this.settings.decimalCharacter)):n=h.isNull(r)?"":this.constructor._addGroupSeparators(r.replace(".",this.settings.decimalCharacter),this.settings,this.isFocused,i)}h.isNull(n)?this.valueOnFocus="":this.valueOnFocus=n,this.lastVal=this.valueOnFocus;var s=this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(this.valueOnFocus,this.settings),o=this.constructor._orderValueCurrencySymbolAndSuffixText(this.valueOnFocus,this.settings,!0),a=s&&""!==o&&this.settings.emptyInputBehavior===e.options.emptyInputBehavior.focus;a&&(n=o),h.isNull(n)||this._setElementValue(n),a&&o===this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&h.setElementSelection(t.target,0)}}},{key:"_onFocus",value:function(){this.settings.isCancellable&&this._saveCancellableValue()}},{key:"_onFocusIn",value:function(e){this.settings.selectOnFocus?this.select():h.isNull(this.settings.caretPositionOnFocus)||h.setElementSelection(e.target,this._initialCaretPosition(h.getElementValue(this.domElement)))}},{key:"_enterFormulaMode",value:function(){this.settings.formulaMode&&(this.formulaMode=!0,h.setElementValue(this.domElement,"="),h.setElementSelection(this.domElement,1))}},{key:"_exitFormulaMode",value:function(){var t,n=h.getElementValue(this.domElement);n=n.replace(/^\s*=/,"");try{var i=new A(n,this.settings.decimalCharacter);t=(new p).evaluate(i)}catch(r){return this._triggerEvent(e.events.invalidFormula,this.domElement,{formula:n,aNElement:this}),this.reformat(),void(this.formulaMode=!1)}this._triggerEvent(e.events.validFormula,this.domElement,{formula:n,result:t,aNElement:this}),this.set(t),this.formulaMode=!1}},{key:"_acceptNonPrintableKeysInFormulaMode",value:function(){return this.eventKey===i.keyName.Backspace||this.eventKey===i.keyName.Delete||this.eventKey===i.keyName.LeftArrow||this.eventKey===i.keyName.RightArrow||this.eventKey===i.keyName.Home||this.eventKey===i.keyName.End}},{key:"_onKeydown",value:function(t){if(!this.compositioning)if(this.formatted=!1,this.isEditing=!0,this.formulaMode||this.isFocused||!this.settings.unformatOnHover||!t.altKey||this.domElement!==h.getHoveredElement()){if(this._updateEventKeyInfo(t),this.keydownEventCounter+=1,1===this.keydownEventCounter&&(this.initialValueOnFirstKeydown=h.getElementValue(t.target),this.initialRawValueOnFirstKeydown=this.rawValue),this.formulaMode){if(this.eventKey===i.keyName.Esc)return this.formulaMode=!1,void this.reformat();if(this.eventKey===i.keyName.Enter)return void this._exitFormulaMode();if(this._acceptNonPrintableKeysInFormulaMode())return}else{if(this.eventKey===i.keyName.Equal)return void this._enterFormulaMode();if(this.settings.modifyValueOnUpDownArrow&&(this.eventKey===i.keyName.UpArrow||this.eventKey===i.keyName.DownArrow))return void this.upDownArrowAction(t)}if(this.domElement.readOnly||this.settings.readOnly||this.domElement.disabled)this.processed=!0;else{this.eventKey===i.keyName.Esc&&(t.preventDefault(),this.settings.isCancellable&&this.rawValue!==this.savedCancellableValue&&(this.set(this.savedCancellableValue),this._triggerEvent(e.events.native.input,t.target)),this.select());var n=h.getElementValue(t.target);if(this.eventKey===i.keyName.Enter&&this.rawValue!==this.rawValueOnFocus&&(this._triggerEvent(e.events.native.change,t.target),this.valueOnFocus=n,this.rawValueOnFocus=this.rawValue,this.settings.isCancellable&&this._saveCancellableValue()),this._updateInternalProperties(t),this._processNonPrintableKeysAndShortcuts(t))this.processed=!0;else if(this.eventKey===i.keyName.Backspace||this.eventKey===i.keyName.Delete){var r=this._processCharacterDeletion(t);if(this.processed=!0,!r)return void t.preventDefault();this._formatValue(t),(n=h.getElementValue(t.target))!==this.lastVal&&this.throwInput&&(this._triggerEvent(e.events.native.input,t.target),t.preventDefault()),this.lastVal=n,this.throwInput=!0}}}else this.constructor._unformatAltHovered(this)}},{key:"_onKeypress",value:function(t){if(!this.compositioning)if(this.formulaMode){if(this._acceptNonPrintableKeysInFormulaMode())return;if(this.settings.formulaChars.test(this.eventKey))return;t.preventDefault()}else if(this.eventKey!==i.keyName.Insert){var n=this.processed;if(this._updateInternalProperties(t),!this._processNonPrintableKeysAndShortcuts(t))if(n)t.preventDefault();else{if(this._processCharacterInsertion()){this._formatValue(t);var r=h.getElementValue(t.target);if(r!==this.lastVal&&this.throwInput)this._triggerEvent(e.events.native.input,t.target),t.preventDefault();else{if((this.eventKey===this.settings.decimalCharacter||this.eventKey===this.settings.decimalCharacterAlternative)&&h.getElementSelection(t.target).start===h.getElementSelection(t.target).end&&h.getElementSelection(t.target).start===r.indexOf(this.settings.decimalCharacter)){var s=h.getElementSelection(t.target).start+1;h.setElementSelection(t.target,s)}t.preventDefault()}return this.lastVal=h.getElementValue(t.target),this.throwInput=!0,void this._setValidOrInvalidState(this.rawValue)}t.preventDefault()}}}},{key:"_onKeyup",value:function(t){if(!this.compositioning&&(this.isEditing=!1,this.keydownEventCounter=0,!this.formulaMode))if(this.settings.isCancellable&&this.eventKey===i.keyName.Esc)t.preventDefault();else{if(this._updateEventKeyInfo(t),this.eventKey===i.keyName.Z||this.eventKey===i.keyName.z){if(t.ctrlKey&&t.shiftKey)return t.preventDefault(),this._historyTableRedo(),this._triggerEvent(e.events.native.input,t.target),this.onGoingRedo=!0,this.lastVal=h.getElementValue(t.target),void(this.throwInput=!0);if(t.ctrlKey&&!t.shiftKey){if(!this.onGoingRedo)return t.preventDefault(),this._historyTableUndo(),this._triggerEvent(e.events.native.input,t.target),this.lastVal=h.getElementValue(t.target),void(this.throwInput=!0);this.onGoingRedo=!1}}else if((this.eventKey===i.keyName.Y||this.eventKey===i.keyName.y)&&t.ctrlKey)return t.preventDefault(),this._historyTableRedo(),this._triggerEvent(e.events.native.input,t.target),this.onGoingRedo=!0,this.lastVal=h.getElementValue(t.target),void(this.throwInput=!0);if(this.onGoingRedo&&(t.ctrlKey||t.shiftKey)&&(this.onGoingRedo=!1),(t.ctrlKey||t.metaKey)&&(this.eventKey===i.keyName.X||this.eventKey===i.keyName.x)||t.ctrlKey&&this.eventKey===i.keyName.Delete){var n=h.getElementSelection(this.domElement).start,r=this.constructor._toNumericValue(h.getElementValue(t.target),this.settings);this.set(r),this._setCaretPosition(n),this.lastVal=h.getElementValue(t.target)}if(this.eventKey===i.keyName.Alt&&this.settings.unformatOnHover&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if(!t.ctrlKey&&!t.metaKey||this.eventKey!==i.keyName.Backspace&&this.eventKey!==i.keyName.Delete){this._updateInternalProperties(t);var s=this._processNonPrintableKeysAndShortcuts(t);delete this.valuePartsBeforePaste;var o=h.getElementValue(t.target);if(!(s||""===o&&""===this.initialValueOnFirstKeydown)&&(o===this.settings.currencySymbol?this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?h.setElementSelection(t.target,0):h.setElementSelection(t.target,this.settings.currencySymbol.length):this.eventKey===i.keyName.Tab&&h.setElementSelection(t.target,0,o.length),(o===this.settings.suffixText||""===this.rawValue&&""!==this.settings.currencySymbol&&""!==this.settings.suffixText)&&h.setElementSelection(t.target,0),null!==this.settings.decimalPlacesShownOnFocus&&this._saveValueToPersistentStorage(),this.formatted||this._formatValue(t),this._setValidOrInvalidState(this.rawValue),this._saveRawValueForAndroid(),o!==this.initialValueOnFirstKeydown&&this._triggerEvent(e.events.formatted,t.target,{oldValue:this.initialValueOnFirstKeydown,newValue:o,oldRawValue:this.initialRawValueOnFirstKeydown,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this}),this.historyTable.length>1)){var a=h.getElementSelection(this.domElement);this.selectionStart=a.start,this.selectionEnd=a.end,this.historyTable[this.historyTableIndex].start=this.selectionStart,this.historyTable[this.historyTableIndex].end=this.selectionEnd}}else{var l=h.getElementValue(t.target);this._setRawValue(this._formatOrUnformatOther(!1,l))}}}},{key:"_saveRawValueForAndroid",value:function(){if(this.eventKey===i.keyName.AndroidDefault){var e=this.constructor._stripAllNonNumberCharactersExceptCustomDecimalChar(this.getFormatted(),this.settings,!0,this.isFocused);e=this.constructor._convertToNumericString(e,this.settings),this._setRawValue(e)}}},{key:"_onFocusOutAndMouseLeave",value:function(t){if(this.isEditing=!1,"mouseleave"!==t.type||!this.formulaMode)if(this.settings.unformatOnHover&&"mouseleave"===t.type&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if("mouseleave"===t.type&&!this.isFocused||"blur"===t.type){"blur"===t.type&&this.formulaMode&&this._exitFormulaMode(),this._saveValueToPersistentStorage(),this.settings.showOnlyNumbersOnFocus===e.options.showOnlyNumbersOnFocus.onlyNumbers&&(this.settings.digitGroupSeparator=this.originalDigitGroupSeparator,this.settings.currencySymbol=this.originalCurrencySymbol,this.settings.suffixText=this.originalSuffixText);var n=this._getRawValueToFormat(this.rawValue),i=h.isNull(n),r=x(this.constructor._checkIfInRangeWithOverrideOption(n,this.settings),2),s=r[0],o=r[1],a=!1;if(""===n||i||(this._triggerRangeEvents(s,o),this.settings.valuesToStrings&&this._checkValuesToStrings(n)&&(this._setElementValue(this.settings.valuesToStrings[n]),a=!0)),!a){var l;if(l=i||""===n?n:String(n),""===n||i){if(""===n)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.zero:this._setRawValue("0"),l=this.constructor._roundValue("0",this.settings,0);break;case e.options.emptyInputBehavior.min:this._setRawValue(this.settings.minimumValue),l=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.minimumValue,this.settings,this.isFocused);break;case e.options.emptyInputBehavior.max:this._setRawValue(this.settings.maximumValue),l=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.maximumValue,this.settings,this.isFocused);break;default:h.isNumber(this.settings.emptyInputBehavior)&&(this._setRawValue(this.settings.emptyInputBehavior),l=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.emptyInputBehavior,this.settings,this.isFocused))}}else s&&o&&!this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(n,this.settings)?(l=this._modifyNegativeSignAndDecimalCharacterForRawValue(l),this.settings.divisorWhenUnfocused&&!h.isNull(l)&&(l=(l/=this.settings.divisorWhenUnfocused).toString()),l=this.constructor._roundFormattedValueShownOnBlur(l,this.settings),l=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(l,this.settings)):this._triggerRangeEvents(s,o);var c=this.constructor._orderValueCurrencySymbolAndSuffixText(l,this.settings,!1);this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(l,this.settings)||i&&this.settings.emptyInputBehavior===e.options.emptyInputBehavior.null||(c=this.constructor._addGroupSeparators(l,this.settings,!1,n)),c===n&&""!==n&&this.settings.allowDecimalPadding!==e.options.allowDecimalPadding.never&&this.settings.allowDecimalPadding!==e.options.allowDecimalPadding.floats||(this.settings.symbolWhenUnfocused&&""!==n&&null!==n&&(c="".concat(c).concat(this.settings.symbolWhenUnfocused)),this._setElementValue(c))}this._setValidOrInvalidState(this.rawValue),"blur"===t.type&&this._onBlur(t)}}},{key:"_onPaste",value:function(t){if(t.preventDefault(),!(this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)){var n,i;t.clipboardData&&t.clipboardData.getData?n=t.clipboardData.getData("text/plain"):h.throwError("Unable to retrieve the pasted value. Please use a modern browser (i.e. Firefox or Chromium)."),i=t.target.tagName?t.target:t.explicitOriginalTarget;var r=h.getElementValue(i),s=i.selectionStart||0,o=i.selectionEnd||0,a=o-s;if(a===r.length){var l=this._preparePastedText(n),c=h.arabicToLatinNumbers(l,!1,!1,!1);return"."===c||""===c||"."!==c&&!h.isNumber(c)?(this.formatted=!0,void(this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&h.throwError("The pasted value '".concat(n,"' is not a valid paste content.")))):(this.set(c),this.formatted=!0,this._triggerEvent(e.events.native.input,i),void(this.lastVal=h.getElementValue(i)))}var u=h.isNegativeStrict(n,this.settings.negativeSignCharacter);u&&(n=n.slice(1,n.length));var d,f,p=this._preparePastedText(n);if("."!==(d="."===p?".":h.arabicToLatinNumbers(p,!1,!1,!1))&&(!h.isNumber(d)||""===d))return this.formatted=!0,void(this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&h.throwError("The pasted value '".concat(n,"' is not a valid paste content.")));var m,g,v=h.isNegativeStrict(this.getNumericString(),this.settings.negativeSignCharacter);u&&!v?(v=!0,m=!0):m=!1;var y=r.slice(0,s),b=r.slice(o,r.length);g=s!==o?this._preparePastedText(y+b):this._preparePastedText(r),v&&(g=h.setRawNegativeSign(g)),f=h.convertCharacterCountToIndexPosition(h.countNumberCharactersOnTheCaretLeftSide(r,s,this.settings.decimalCharacter)),m&&f++;var w=g.slice(0,f),S=g.slice(f,g.length),_=!1;"."===d&&(h.contains(w,".")&&(_=!0,w=w.replace(".","")),S=S.replace(".",""));var E=!1;switch(""===w&&"-"===S&&(w="-",S="",E=!0),this.settings.onInvalidPaste){case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:for(var O=h.parseStr(this.settings.minimumValue),k=h.parseStr(this.settings.maximumValue),A=g,C=0,x=w;C<d.length&&(g=(x+=d[C])+S,this.constructor._checkIfInRange(g,O,k));)A=g,C++;if(f+=C,E&&f++,this.settings.onInvalidPaste===e.options.onInvalidPaste.truncate){g=A,_&&f--;break}for(var P=f,T=A.length;C<d.length&&P<T;)if("."!==A[P]){if(g=h.replaceCharAt(A,P,d[C]),!this.constructor._checkIfInRange(g,O,k))break;A=g,C++,P++}else P++;f=P,_&&f--,g=A;break;case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.ignore:case e.options.onInvalidPaste.clamp:default:if(g="".concat(w).concat(d).concat(S),s===o)f=h.convertCharacterCountToIndexPosition(h.countNumberCharactersOnTheCaretLeftSide(r,s,this.settings.decimalCharacter))+d.length;else if(""===S)f=h.convertCharacterCountToIndexPosition(h.countNumberCharactersOnTheCaretLeftSide(r,s,this.settings.decimalCharacter))+d.length,E&&f++;else{var N=h.convertCharacterCountToIndexPosition(h.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter)),L=h.getElementValue(i).slice(s,o);f=N-a+h.countCharInText(this.settings.digitGroupSeparator,L)+d.length}m&&f++,_&&f--}if(h.isNumber(g)&&""!==g){var F=!1,D=!1;try{this.set(g),F=!0}catch(j){var M;switch(this.settings.onInvalidPaste){case e.options.onInvalidPaste.clamp:M=h.clampToRangeLimits(g,this.settings);try{this.set(M)}catch(j){h.throwError("Fatal error: Unable to set the clamped value '".concat(M,"'."))}D=!0,F=!0,g=M;break;case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:h.throwError("The pasted value '".concat(n,"' results in a value '").concat(g,"' that is outside of the minimum [").concat(this.settings.minimumValue,"] and maximum [").concat(this.settings.maximumValue,"] value range."));case e.options.onInvalidPaste.ignore:default:return}}var R,B=h.getElementValue(i);if(F)switch(this.settings.onInvalidPaste){case e.options.onInvalidPaste.clamp:if(D){this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?h.setElementSelection(i,B.length-this.settings.currencySymbol.length):h.setElementSelection(i,B.length);break}case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.ignore:case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:default:R=h.findCaretPositionInFormattedNumber(g,f,B,this.settings.decimalCharacter),h.setElementSelection(i,R)}F&&r!==B&&(this._triggerEvent(e.events.native.input,i),this.lastVal=B)}else this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&h.throwError("The pasted value '".concat(n,"' would result into an invalid content '").concat(g,"'."))}}},{key:"_onBlur",value:function(t){this.isFocused=!1,this.isEditing=!1,h.trimPaddedZerosFromDecimalPlaces(this.rawValue)!==h.trimPaddedZerosFromDecimalPlaces(this.rawValueOnFocus)&&this._triggerEvent(e.events.native.change,t.target),this.rawValueOnFocus=void 0}},{key:"_wheelAndUpDownActions",value:function(t,n,i,r){var s,o=t.target.selectionStart||0,a=t.target.selectionEnd||0,l=this.rawValue;if(s=+(s=h.isUndefinedOrNullOrEmpty(l)?this.settings.minimumValue>0||this.settings.maximumValue<0?n?this.settings.minimumValue:this.settings.maximumValue:0:l),h.isNumber(r)){var c=+r;n?s+=c:i&&(s-=c)}else n?s=h.addAndRoundToNearestAuto(s,this.settings.decimalPlacesRawValue):i&&(s=h.subtractAndRoundToNearestAuto(s,this.settings.decimalPlacesRawValue));(s=h.clampToRangeLimits(s,this.settings))!==+l&&(this.set(s),this._triggerEvent(e.events.native.input,t.target)),t.preventDefault(),this._setSelection(o,a)}},{key:"upDownArrowAction",value:function(e){if(!(this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)){var t=!1,n=!1;this.eventKey===i.keyName.UpArrow?t=!0:this.eventKey===i.keyName.DownArrow?n=!0:h.throwError("Something has gone wrong since neither an Up or Down arrow key is detected, but the function was still called!"),this._wheelAndUpDownActions(e,t,n,this.settings.upDownStep)}}},{key:"_onWheel",value:function(t){this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled||this.settings.modifyValueOnWheel&&(this.settings.wheelOn===e.options.wheelOn.focus?this.isFocused?t.shiftKey||this.wheelAction(t):t.shiftKey&&this.wheelAction(t):this.settings.wheelOn===e.options.wheelOn.hover?t.shiftKey?(t.preventDefault(),window.scrollBy(0,h.isNegativeStrict(String(t.deltaY))?-50:50)):this.wheelAction(t):h.throwError("Unknown `wheelOn` option."))}},{key:"wheelAction",value:function(e){this.isWheelEvent=!0;var t=!1,n=!1,i=!1;h.isWheelUpEvent(e)?t=!0:h.isWheelDownEvent(e)?n=!0:h.isWheelEventWithZeroDeltaY(e)?i=!0:h.throwError("The event is not a 'wheel' event."),i||this._wheelAndUpDownActions(e,t,n,this.settings.wheelStep),this.isWheelEvent=!1}},{key:"_onDrop",value:function(t){if(!this.formulaMode){this.isDropEvent=!0,t.preventDefault();var n=t.dataTransfer.getData("text/plain"),i=this.unformatOther(n),r=this.rawValue;this.set(i),this.isDropEvent=!1;var s=this.constructor._toNumericValue(i,this.settings);isNaN(Number(s))||h.trimPaddedZerosFromDecimalPlaces(r)!==h.trimPaddedZerosFromDecimalPlaces(s)&&this._triggerEvent(e.events.native.change,this.domElement)}}},{key:"_onFormSubmit",value:function(){var e=this;return this._getFormAutoNumericChildren(this.parentForm).map((function(t){return e.constructor.getAutoNumericElement(t)})).forEach((function(e){return e._unformatOnSubmit()})),!0}},{key:"_onFormReset",value:function(){var e=this;this._getFormAutoNumericChildren(this.parentForm).map((function(t){return e.constructor.getAutoNumericElement(t)})).forEach((function(t){var n=e._getDefaultValue(t.node());setTimeout((function(){return t.set(n)}),0)}))}},{key:"_unformatOnSubmit",value:function(){this.settings.unformatOnSubmit&&this._setElementValue(this.rawValue)}},{key:"_onKeydownGlobal",value:function(t){if(h.character(t)===i.keyName.Alt){var n=h.getHoveredElement();if(e.isManagedByAutoNumeric(n)){var r=e.getAutoNumericElement(n);!r.formulaMode&&r.settings.unformatOnHover&&this.constructor._unformatAltHovered(r)}}}},{key:"_onKeyupGlobal",value:function(t){if(h.character(t)===i.keyName.Alt){var n=h.getHoveredElement();if(e.isManagedByAutoNumeric(n)){var r=e.getAutoNumericElement(n);if(r.formulaMode||!r.settings.unformatOnHover)return;this.constructor._reformatAltHovered(r)}}}},{key:"_onCompositionstart",value:function(e){var t={key:i.keyName.Space,which:"32",keyCode:"32"},n=new KeyboardEvent("keydown",t);e.target.dispatchEvent(n),this.compositioning=!0}},{key:"_onCompositionend",value:function(e){this.compositioning=!1;var t={key:i.keyName.Space,which:"32",keyCode:"32"},n=new KeyboardEvent("keypress",t);e.target.dispatchEvent(n);var r=new KeyboardEvent("keyup",t);e.target.dispatchEvent(r)}},{key:"_isElementTagSupported",value:function(){return h.isElement(this.domElement)||h.throwError("The DOM element is not valid, ".concat(this.domElement," given.")),h.isInArray(this.domElement.tagName.toLowerCase(),this.allowedTagList)}},{key:"_isInputElement",value:function(){return"input"===this.domElement.tagName.toLowerCase()}},{key:"_isInputTypeSupported",value:function(){return"text"===this.domElement.type||"hidden"===this.domElement.type||"tel"===this.domElement.type||h.isUndefinedOrNullOrEmpty(this.domElement.type)}},{key:"_checkElement",value:function(){var e=this.domElement.tagName.toLowerCase();this._isElementTagSupported()||h.throwError("The <".concat(e,"> tag is not supported by autoNumeric")),this._isInputElement()?(this._isInputTypeSupported()||h.throwError('The input type "'.concat(this.domElement.type,'" is not supported by autoNumeric')),this.isInputElement=!0):(this.isInputElement=!1,this.isContentEditable=this._isContentEditable(this.domElement))}},{key:"_isContentEditable",value:function(e){return e.hasAttribute("contenteditable")&&"true"===e.getAttribute("contenteditable")}},{key:"_formatDefaultValueOnPageLoad",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=!0;if(h.isNull(n)?(t=h.getElementValue(this.domElement).trim(),this.domElement.setAttribute("value",t)):t=n,this.isInputElement||this.isContentEditable){var r=this.constructor._toNumericValue(t,this.settings);if(this.domElement.hasAttribute("value")&&""!==this.domElement.getAttribute("value")){if(null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride.toString()!==t||null===this.settings.defaultValueOverride&&""!==t&&t!==this.domElement.getAttribute("value")||""!==t&&"hidden"===this.domElement.getAttribute("type")&&!h.isNumber(r)){if(this.settings.saveValueToSessionStorage&&(null!==this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._setRawValue(this._getValueFromPersistentStorage()),!this.settings.saveValueToSessionStorage){var s=this.constructor._removeBrackets(t,this.settings);(this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)&&""!==this.settings.negativeSignCharacter&&h.isNegative(t,this.settings.negativeSignCharacter)?this._setRawValue("-".concat(this.constructor._stripAllNonNumberCharacters(s,this.settings,!0,this.isFocused))):this._setRawValue(this.constructor._stripAllNonNumberCharacters(s,this.settings,!0,this.isFocused))}i=!1}}else isNaN(Number(r))||1/0===r?h.throwError("The value [".concat(t,"] used in the input is not a valid value autoNumeric can work with.")):(this.set(r),i=!1);if(""===t)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:break;case e.options.emptyInputBehavior.always:this._setElementValue(this.settings.currencySymbol);break;case e.options.emptyInputBehavior.min:this.set(this.settings.minimumValue);break;case e.options.emptyInputBehavior.max:this.set(this.settings.maximumValue);break;case e.options.emptyInputBehavior.zero:this.set("0");break;case e.options.emptyInputBehavior.null:this.set(null);break;default:this.set(this.settings.emptyInputBehavior)}else i&&t===this.domElement.getAttribute("value")&&this.set(t)}else null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride!==t||this.set(t)}},{key:"_calculateVMinAndVMaxIntegerSizes",value:function(){var e=x(this.settings.maximumValue.toString().split("."),1)[0],t=x(this.settings.minimumValue||0===this.settings.minimumValue?this.settings.minimumValue.toString().split("."):[],1)[0];e=e.replace(this.settings.negativeSignCharacter,""),t=t.replace(this.settings.negativeSignCharacter,""),this.settings.mIntPos=Math.max(e.length,1),this.settings.mIntNeg=Math.max(t.length,1)}},{key:"_calculateValuesToStringsKeys",value:function(){this.settings.valuesToStrings?this.valuesToStringsKeys=Object.keys(this.settings.valuesToStrings):this.valuesToStringsKeys=[]}},{key:"_transformOptionsValuesToDefaultTypes",value:function(){for(var e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){var t=this.settings[e];"true"!==t&&"false"!==t||(this.settings[e]="true"===t),"number"==typeof t&&(this.settings[e]=t.toString())}}},{key:"_setSettings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!t&&h.isNull(e)||this.constructor._convertOldOptionsToNewOnes(e),t?("decimalPlacesRawValue"in e&&(this.settings.originalDecimalPlacesRawValue=e.decimalPlacesRawValue),"decimalPlaces"in e&&(this.settings.originalDecimalPlaces=e.decimalPlaces),this.constructor._calculateDecimalPlacesOnUpdate(e,this.settings),this._mergeSettings(e)):(this.settings={},this._mergeSettings(this.constructor.getDefaultConfig(),this.domElement.dataset,e,{rawValue:this.defaultRawValue}),this.caretFix=!1,this.throwInput=!0,this.allowedTagList=i.allowedTagList,this.runOnce=!1,this.hoveredWithAlt=!1),this._transformOptionsValuesToDefaultTypes(),this._runCallbacksFoundInTheSettingsObject(),this.constructor._correctNegativePositiveSignPlacementOption(this.settings),this.constructor._correctCaretPositionOnFocusAndSelectOnFocusOptions(this.settings),this.constructor._setNegativePositiveSignPermissions(this.settings),t||(h.isNull(e)||!e.decimalPlaces?this.settings.originalDecimalPlaces=null:this.settings.originalDecimalPlaces=e.decimalPlaces,this.settings.originalDecimalPlacesRawValue=this.settings.decimalPlacesRawValue,this.constructor._calculateDecimalPlacesOnInit(this.settings)),this._calculateVMinAndVMaxIntegerSizes(),this._setTrailingNegativeSignInfo(),this.regex={},this.constructor._cachesUsualRegularExpressions(this.settings,this.regex),this.constructor._setBrackets(this.settings),this._calculateValuesToStringsKeys(),h.isEmptyObj(this.settings)&&h.throwError("Unable to set the settings, those are invalid ; an empty object was given."),this.constructor.validate(this.settings,!1,e),this._keepAnOriginalSettingsCopy()}},{key:"_preparePastedText",value:function(e){return this.constructor._stripAllNonNumberCharacters(e,this.settings,!0,this.isFocused)}},{key:"_updateInternalProperties",value:function(){this.selection=h.getElementSelection(this.domElement),this.processed=!1}},{key:"_updateEventKeyInfo",value:function(e){this.eventKey=h.character(e)}},{key:"_saveCancellableValue",value:function(){this.savedCancellableValue=this.rawValue}},{key:"_setSelection",value:function(e,t){e=Math.max(e,0),t=Math.min(t,h.getElementValue(this.domElement).length),this.selection={start:e,end:t,length:t-e},h.setElementSelection(this.domElement,e,t)}},{key:"_setCaretPosition",value:function(e){this._setSelection(e,e)}},{key:"_getLeftAndRightPartAroundTheSelection",value:function(){var e=h.getElementValue(this.domElement);return[e.substring(0,this.selection.start),e.substring(this.selection.end,e.length)]}},{key:"_getUnformattedLeftAndRightPartAroundTheSelection",value:function(){var t=x(this._getLeftAndRightPartAroundTheSelection(),2),n=t[0],r=t[1];if(""===n&&""===r)return["",""];var s=!0;return this.eventKey!==i.keyName.Hyphen&&this.eventKey!==i.keyName.Minus||0!==Number(n)||(s=!1),this.isTrailingNegative&&(h.isNegative(r,this.settings.negativeSignCharacter)&&!h.isNegative(n,this.settings.negativeSignCharacter)||""===r&&h.isNegative(n,this.settings.negativeSignCharacter,!0))&&(n=n.replace(this.settings.negativeSignCharacter,""),r=r.replace(this.settings.negativeSignCharacter,""),n=n.replace("-",""),r=r.replace("-",""),n="-".concat(n)),[n=e._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,s,this.isFocused),r=e._stripAllNonNumberCharactersExceptCustomDecimalChar(r,this.settings,!1,this.isFocused)]}},{key:"_normalizeParts",value:function(t,n){var r=!0;this.eventKey!==i.keyName.Hyphen&&this.eventKey!==i.keyName.Minus||0!==Number(t)||(r=!1),this.isTrailingNegative&&h.isNegative(n,this.settings.negativeSignCharacter)&&!h.isNegative(t,this.settings.negativeSignCharacter)&&(t="-".concat(t),n=n.replace(this.settings.negativeSignCharacter,"")),t=e._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,r,this.isFocused),n=e._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,!1,this.isFocused),this.settings.leadingZero!==e.options.leadingZero.deny||this.eventKey!==i.keyName.num0&&this.eventKey!==i.keyName.numpad0||0!==Number(t)||h.contains(t,this.settings.decimalCharacter)||""===n||(t=t.substring(0,t.length-1));var s=t+n;if(this.settings.decimalCharacter){var o=s.match(new RegExp("^".concat(this.regex.aNegRegAutoStrip,"\\").concat(this.settings.decimalCharacter)));o&&(s=(t=t.replace(o[1],o[1]+"0"))+n)}return[t,n,s]}},{key:"_setValueParts",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=x(this._normalizeParts(t,n),3),s=r[0],o=r[1],a=r[2],l=x(e._checkIfInRangeWithOverrideOption(a,this.settings),2),c=l[0],u=l[1];if(c&&u){var h=e._truncateDecimalPlaces(a,this.settings,i,this.settings.decimalPlacesRawValue).replace(this.settings.decimalCharacter,".");if(""===h||h===this.settings.negativeSignCharacter){var d;switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:case e.options.emptyInputBehavior.always:d="";break;case e.options.emptyInputBehavior.min:d=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:d=this.settings.maximumValue;break;case e.options.emptyInputBehavior.zero:d="0";break;case e.options.emptyInputBehavior.null:d=null;break;default:d=this.settings.emptyInputBehavior}this._setRawValue(d)}else this._setRawValue(this._trimLeadingAndTrailingZeros(h));var f=e._truncateDecimalPlaces(a,this.settings,i,this.settings.decimalPlacesShownOnFocus),p=s.length;return p>f.length&&(p=f.length),1===p&&"0"===s&&this.settings.leadingZero===e.options.leadingZero.deny&&(p=""===o||"0"===s&&""!==o?1:0),this._setElementValue(f,!1),this._setCaretPosition(p),!0}return this._triggerRangeEvents(c,u),!1}},{key:"_getSignPosition",value:function(){var t;if(this.settings.currencySymbol){var n=this.settings.currencySymbol.length,i=h.getElementValue(this.domElement);if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix)t=this.settings.negativeSignCharacter&&i&&i.charAt(0)===this.settings.negativeSignCharacter?[1,n+1]:[0,n];else{var r=i.length;t=[r-n,r]}}else t=[1e3,-1];return t}},{key:"_expandSelectionOnSign",value:function(){var e=x(this._getSignPosition(),2),t=e[0],n=e[1],i=this.selection;i.start<n&&i.end>t&&((i.start<t||i.end>n)&&h.getElementValue(this.domElement).substring(Math.max(i.start,t),Math.min(i.end,n)).match(/^\s*$/)?i.start<t?this._setSelection(i.start,t):this._setSelection(n,i.end):this._setSelection(Math.min(i.start,t),Math.max(i.end,n)))}},{key:"_checkPaste",value:function(){if(!this.formatted&&!h.isUndefined(this.valuePartsBeforePaste)){var t=this.valuePartsBeforePaste,n=x(this._getLeftAndRightPartAroundTheSelection(),2),i=n[0],r=n[1];delete this.valuePartsBeforePaste;var s=i.substr(0,t[0].length)+e._stripAllNonNumberCharactersExceptCustomDecimalChar(i.substr(t[0].length),this.settings,!0,this.isFocused);this._setValueParts(s,r,!0)||(this._setElementValue(t.join(""),!1),this._setCaretPosition(t[0].length))}}},{key:"_processNonPrintableKeysAndShortcuts",value:function(e){if((e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!h.isUndefined(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKey===i.keyName.Insert)return this._checkPaste(),!1;if(this.constructor._shouldSkipEventKey(this.eventKey))return!0;if((e.ctrlKey||e.metaKey)&&this.eventKey===i.keyName.a)return this.settings.selectNumberOnly&&(e.preventDefault(),this.selectNumber()),!0;if((e.ctrlKey||e.metaKey)&&(this.eventKey===i.keyName.c||this.eventKey===i.keyName.v||this.eventKey===i.keyName.x))return"keydown"===e.type&&this._expandSelectionOnSign(),this.eventKey!==i.keyName.v&&this.eventKey!==i.keyName.Insert||("keydown"===e.type||"keypress"===e.type?h.isUndefined(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKey===i.keyName.c;if(e.ctrlKey||e.metaKey)return!(this.eventKey===i.keyName.Z||this.eventKey===i.keyName.z);if(this.eventKey===i.keyName.LeftArrow||this.eventKey===i.keyName.RightArrow){if("keydown"===e.type&&!e.shiftKey){var t=h.getElementValue(this.domElement);this.eventKey!==i.keyName.LeftArrow||t.charAt(this.selection.start-2)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start-2)!==this.settings.decimalCharacter?this.eventKey!==i.keyName.RightArrow||t.charAt(this.selection.start+1)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start+1)!==this.settings.decimalCharacter||this._setCaretPosition(this.selection.start+1):this._setCaretPosition(this.selection.start-1)}return!0}return h.isInArray(this.eventKey,i.keyName._directionKeys)}},{key:"_processCharacterDeletionIfTrailingNegativeSign",value:function(t){var n=x(t,2),r=n[0],s=n[1],o=h.getElementValue(this.domElement),a=h.isNegative(o,this.settings.negativeSignCharacter);if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix&&(this.eventKey===i.keyName.Backspace?(this.caretFix=this.selection.start>=o.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,"-"===o.charAt(this.selection.start-1)?r=r.substring(1):this.selection.start<=o.length-this.settings.suffixText.length&&(r=r.substring(0,r.length-1))):(this.caretFix=this.selection.start>=o.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,this.selection.start>=o.indexOf(this.settings.currencySymbol)+this.settings.currencySymbol.length&&(s=s.substring(1,s.length)),h.isNegative(r,this.settings.negativeSignCharacter)&&"-"===o.charAt(this.selection.start)&&(r=r.substring(1)))),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:this.caretFix=this.selection.start>=o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===i.keyName.Backspace?this.selection.start===o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length&&a?r=r.substring(1):"-"!==r&&(this.selection.start<=o.indexOf(this.settings.negativeSignCharacter)||!a)&&(r=r.substring(0,r.length-1)):("-"===r[0]&&(s=s.substring(1)),this.selection.start===o.indexOf(this.settings.negativeSignCharacter)&&a&&(r=r.substring(1)));break;case e.options.negativePositiveSignPlacement.right:this.caretFix=this.selection.start>=o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===i.keyName.Backspace?this.selection.start===o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length?r=r.substring(1):"-"!==r&&this.selection.start<=o.indexOf(this.settings.negativeSignCharacter)-this.settings.currencySymbol.length?r=r.substring(0,r.length-1):""===r||a||(r=r.substring(0,r.length-1)):(this.caretFix=this.selection.start>=o.indexOf(this.settings.currencySymbol)&&""!==this.settings.currencySymbol,this.selection.start===o.indexOf(this.settings.negativeSignCharacter)&&(r=r.substring(1)),s=s.substring(1))}return[r,s]}},{key:"_processCharacterDeletion",value:function(e){var t,n;if(this.selection.length){this._expandSelectionOnSign();var r=x(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);t=r[0],n=r[1]}else{var s=x(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);if(t=s[0],n=s[1],""===t&&""===n&&(this.throwInput=!1),this.isTrailingNegative&&h.isNegative(h.getElementValue(this.domElement),this.settings.negativeSignCharacter)){var o=x(this._processCharacterDeletionIfTrailingNegativeSign([t,n]),2);t=o[0],n=o[1]}else this.eventKey===i.keyName.Backspace?t=t.substring(0,t.length-1):n=n.substring(1,n.length)}return!!this.constructor._isWithinRangeWithOverrideOption("".concat(t).concat(n),this.settings)&&h.getElementValue(e.target)!==this.settings.currencySymbol&&(this._setValueParts(t,n),!0)}},{key:"_isDecimalCharacterInsertionAllowed",value:function(){return String(this.settings.decimalPlacesShownOnFocus)!==String(e.options.decimalPlacesShownOnFocus.none)&&String(this.settings.decimalPlaces)!==String(e.options.decimalPlaces.none)}},{key:"_processCharacterInsertion",value:function(){var e=x(this._getUnformattedLeftAndRightPartAroundTheSelection(),2),t=e[0],n=e[1];if(this.eventKey!==i.keyName.AndroidDefault&&(this.throwInput=!0),this.eventKey===this.settings.decimalCharacter||this.settings.decimalCharacterAlternative&&this.eventKey===this.settings.decimalCharacterAlternative){if(!this._isDecimalCharacterInsertionAllowed()||!this.settings.decimalCharacter)return!1;if(this.settings.alwaysAllowDecimalCharacter)t=t.replace(this.settings.decimalCharacter,""),n=n.replace(this.settings.decimalCharacter,"");else{if(h.contains(t,this.settings.decimalCharacter))return!0;if(n.indexOf(this.settings.decimalCharacter)>0)return!0;0===n.indexOf(this.settings.decimalCharacter)&&(n=n.substr(1))}return this.settings.negativeSignCharacter&&h.contains(n,this.settings.negativeSignCharacter)&&(t="".concat(this.settings.negativeSignCharacter).concat(t),n=n.replace(this.settings.negativeSignCharacter,"")),this._setValueParts(t+this.settings.decimalCharacter,n),!0}if(("-"===this.eventKey||"+"===this.eventKey)&&this.settings.isNegativeSignAllowed)return""===t&&h.contains(n,"-")?(this.settings.negativePositiveSignBehavior||!this.settings.negativePositiveSignBehavior&&"+"===this.eventKey)&&(n=n.replace("-","")):h.isNegativeStrict(t,"-")?(this.settings.negativePositiveSignBehavior||!this.settings.negativePositiveSignBehavior&&"+"===this.eventKey)&&(t=t.replace("-","")):(this.settings.negativePositiveSignBehavior||!this.settings.negativePositiveSignBehavior&&"-"===this.eventKey)&&(t="".concat(this.settings.negativeSignCharacter).concat(t)),this._setValueParts(t,n),!0;var r=Number(this.eventKey);return r>=0&&r<=9?(this.settings.isNegativeSignAllowed&&""===t&&h.contains(n,"-")&&(t="-",n=n.substring(1,n.length)),this.settings.maximumValue<=0&&this.settings.minimumValue<this.settings.maximumValue&&!h.contains(h.getElementValue(this.domElement),this.settings.negativeSignCharacter)&&"0"!==this.eventKey&&(t="-".concat(t)),this._setValueParts("".concat(t).concat(this.eventKey),n),!0):(this.throwInput=!1,!1)}},{key:"_formatValue",value:function(t){var n=h.getElementValue(this.domElement),r=x(this._getUnformattedLeftAndRightPartAroundTheSelection(),1)[0];if((""===this.settings.digitGroupSeparator||""!==this.settings.digitGroupSeparator&&!h.contains(n,this.settings.digitGroupSeparator))&&(""===this.settings.currencySymbol||""!==this.settings.currencySymbol&&!h.contains(n,this.settings.currencySymbol))){var s=x(n.split(this.settings.decimalCharacter),1)[0],o="";h.isNegative(s,this.settings.negativeSignCharacter)&&(o=this.settings.negativeSignCharacter,s=s.replace(this.settings.negativeSignCharacter,""),r=r.replace("-","")),""===o&&s.length>this.settings.mIntPos&&"0"===r.charAt(0)&&(r=r.slice(1)),o===this.settings.negativeSignCharacter&&s.length>this.settings.mIntNeg&&"0"===r.charAt(0)&&(r=r.slice(1)),this.isTrailingNegative||(r="".concat(o).concat(r))}var a=this.constructor._addGroupSeparators(n,this.settings,this.isFocused,this.rawValue),l=a.length;if(a){var c,u=r.split("");if((this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)&&u[0]===this.settings.negativeSignCharacter&&!this.settings.isNegativeSignAllowed&&(u.shift(),(this.eventKey===i.keyName.Backspace||this.eventKey===i.keyName.Delete)&&this.caretFix&&((this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left||this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix)&&(u.push(this.settings.negativeSignCharacter),this.caretFix="keydown"===t.type),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.right))){var d=this.settings.currencySymbol.split(""),f=["\\","^","$",".","|","?","*","+","(",")","["],p=[];d.forEach((function(e,t){t=d[e],h.isInArray(t,f)?p.push("\\"+t):p.push(t)})),this.eventKey===i.keyName.Backspace&&"-"===this.settings.negativeSignCharacter&&p.push("-"),u.push(p.join("")),this.caretFix="keydown"===t.type}for(var m=0;m<u.length;m++)u[m].match("\\d")||(u[m]="\\"+u[m]);c=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?new RegExp("^.*?".concat(u.join(".*?"))):new RegExp("^.*?[".concat(this.settings.currencySymbol,"]*").concat(u.join(".*?")));var g=a.match(c);g?(l=g[0].length,this.settings.showPositiveSign&&(0===l&&g.input.charAt(0)===this.settings.positiveSignCharacter&&(l=1===g.input.indexOf(this.settings.currencySymbol)?this.settings.currencySymbol.length+1:1),0===l&&g.input.charAt(this.settings.currencySymbol.length)===this.settings.positiveSignCharacter&&(l=this.settings.currencySymbol.length+1)),(0===l&&a.charAt(0)!==this.settings.negativeSignCharacter||1===l&&a.charAt(0)===this.settings.negativeSignCharacter)&&this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&(l=this.settings.currencySymbol.length+(h.isNegativeStrict(a,this.settings.negativeSignCharacter)?1:0))):(this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&(l-=this.settings.currencySymbol.length),this.settings.suffixText&&(l-=this.settings.suffixText.length))}a!==n&&(this._setElementValue(a,!1),this._setCaretPosition(l)),this.formatted=!0}}],r=[{key:"version",value:function(){return"4.10.9"}},{key:"_setArgumentsValues",value:function(e,t,n){h.isNull(e)&&h.throwError("At least one valid parameter is needed in order to initialize an AutoNumeric object");var i,r,s,o=h.isElement(e),a=h.isString(e),l=h.isObject(t),c=Array.isArray(t)&&t.length>0,u=h.isNumberOrArabic(t)||""===t,d=this._isPreDefinedOptionValid(t),f=h.isNull(t),p=h.isEmptyString(t),m=h.isObject(n),g=Array.isArray(n)&&n.length>0,v=h.isNull(n),y=this._isPreDefinedOptionValid(n);return o&&f&&v?(i=e,s=null,r=null):o&&u&&v?(i=e,s=t,r=null):o&&l&&v?(i=e,s=null,r=t):o&&d&&v?(i=e,s=null,r=this._getOptionObject(t)):o&&c&&v?(i=e,s=null,r=this.mergeOptions(t)):o&&(f||p)&&m?(i=e,s=null,r=n):o&&(f||p)&&g?(i=e,s=null,r=this.mergeOptions(n)):a&&f&&v?(i=document.querySelector(e),s=null,r=null):a&&l&&v?(i=document.querySelector(e),s=null,r=t):a&&d&&v?(i=document.querySelector(e),s=null,r=this._getOptionObject(t)):a&&c&&v?(i=document.querySelector(e),s=null,r=this.mergeOptions(t)):a&&(f||p)&&m?(i=document.querySelector(e),s=null,r=n):a&&(f||p)&&g?(i=document.querySelector(e),s=null,r=this.mergeOptions(n)):a&&u&&v?(i=document.querySelector(e),s=t,r=null):a&&u&&m?(i=document.querySelector(e),s=t,r=n):a&&u&&y?(i=document.querySelector(e),s=t,r=this._getOptionObject(n)):a&&u&&g?(i=document.querySelector(e),s=t,r=this.mergeOptions(n)):o&&u&&m?(i=e,s=t,r=n):o&&u&&y?(i=e,s=t,r=this._getOptionObject(n)):o&&u&&g?(i=e,s=t,r=this.mergeOptions(n)):h.throwError("The parameters given to the AutoNumeric object are not valid, '".concat(e,"', '").concat(t,"' and '").concat(n,"' given.")),h.isNull(i)&&h.throwError("The selector '".concat(e,"' did not select any valid DOM element. Please check on which element you called AutoNumeric.")),{domElement:i,initialValue:s,userOptions:r}}},{key:"mergeOptions",value:function(e){var t=this,n={};return e.forEach((function(e){N(n,t._getOptionObject(e))})),n}},{key:"_isPreDefinedOptionValid",value:function(t){return Object.prototype.hasOwnProperty.call(e.predefinedOptions,t)}},{key:"_getOptionObject",value:function(t){var n;return h.isString(t)?null==(n=e.getPredefinedOptions()[t])&&h.warning("The given pre-defined option [".concat(t,"] is not recognized by autoNumeric. Please check that pre-defined option name."),!0):n=t,n}},{key:"_doesFormHandlerListExists",value:function(){var e=L(window.aNFormHandlerMap);return"undefined"!==e&&"object"===e}},{key:"_createFormHandlerList",value:function(){window.aNFormHandlerMap=new Map}},{key:"_checkValuesToStringsArray",value:function(e,t){return h.isInArray(String(e),t)}},{key:"_checkValuesToStringsSettings",value:function(e,t){return this._checkValuesToStringsArray(e,Object.keys(t.valuesToStrings))}},{key:"_checkStringsToValuesSettings",value:function(e,t){return this._checkValuesToStringsArray(e,Object.values(t.valuesToStrings))}},{key:"_unformatAltHovered",value:function(e){e.hoveredWithAlt=!0,e.unformat()}},{key:"_reformatAltHovered",value:function(e){e.hoveredWithAlt=!1,e.reformat()}},{key:"_getChildANInputElement",value:function(e){var t=this,n=e.getElementsByTagName("input"),i=[];return Array.prototype.slice.call(n,0).forEach((function(e){t.test(e)&&i.push(e)})),i}},{key:"test",value:function(e){return this._isInGlobalList(h.domElement(e))}},{key:"_createWeakMap",value:function(e){window[e]=new WeakMap}},{key:"_createGlobalList",value:function(){this.autoNumericGlobalListName="autoNumericGlobalList",this._createWeakMap(this.autoNumericGlobalListName)}},{key:"_doesGlobalListExists",value:function(){var e=L(window[this.autoNumericGlobalListName]);return"undefined"!==e&&"object"===e}},{key:"_addToGlobalList",value:function(e){this._doesGlobalListExists()||this._createGlobalList();var t=e.node();if(this._isInGlobalList(t)){if(this._getFromGlobalList(t)===this)return;h.warning("A reference to the DOM element you just initialized already exists in the global AutoNumeric element list. Please make sure to not initialize the same DOM element multiple times.",e.getSettings().showWarnings)}window[this.autoNumericGlobalListName].set(t,e)}},{key:"_removeFromGlobalList",value:function(e){this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].delete(e.node())}},{key:"_getFromGlobalList",value:function(e){return this._doesGlobalListExists()?window[this.autoNumericGlobalListName].get(e):null}},{key:"_isInGlobalList",value:function(e){return!!this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].has(e)}},{key:"validate",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!h.isUndefinedOrNullOrEmpty(t)&&h.isObject(t)||h.throwError("The userOptions are invalid ; it should be a valid object, [".concat(t,"] given."));var r,s=h.isObject(i);s||h.isNull(i)||h.throwError("The 'originalOptions' parameter is invalid ; it should either be a valid option object or `null`, [".concat(t,"] given.")),h.isNull(t)||this._convertOldOptionsToNewOnes(t),r=n?N({},this.getDefaultConfig(),t):t,h.isTrueOrFalseString(r.showWarnings)||h.isBoolean(r.showWarnings)||h.throwError("The debug option 'showWarnings' is invalid ; it should be either 'true' or 'false', [".concat(r.showWarnings,"] given."));var o,a=/^[0-9]+$/,l=/[0-9]+/,c=/^-?[0-9]+(\.?[0-9]+)?$/,u=/^[0-9]+(\.?[0-9]+)?$/;h.isTrueOrFalseString(r.allowDecimalPadding)||h.isBoolean(r.allowDecimalPadding)||r.allowDecimalPadding===e.options.allowDecimalPadding.floats||h.isNumber(r.allowDecimalPadding)&&r.allowDecimalPadding>0||h.throwError("The decimal padding option 'allowDecimalPadding' is invalid ; it should either be `false`, `true`, `'floats'` or a positive integer superior to 0, [".concat(r.allowDecimalPadding,"] given.")),h.isNumber(r.allowDecimalPadding)&&r.allowDecimalPadding>r.decimalPlaces&&h.warning("Setting 'allowDecimalPadding' to a number [".concat(r.allowDecimalPadding,"] superior to the current 'decimalPlaces' settings [").concat(r.decimalPlaces,"] is useless, since the padding will not be shown."),r.showWarnings),r.allowDecimalPadding!==e.options.allowDecimalPadding.never&&"false"!==r.allowDecimalPadding||r.decimalPlaces===e.options.decimalPlaces.none&&r.decimalPlacesShownOnBlur===e.options.decimalPlacesShownOnBlur.none&&r.decimalPlacesShownOnFocus===e.options.decimalPlacesShownOnFocus.none||h.warning("Setting 'allowDecimalPadding' to [".concat(r.allowDecimalPadding,"] will override the current 'decimalPlaces*' settings [").concat(r.decimalPlaces,", ").concat(r.decimalPlacesShownOnBlur," and ").concat(r.decimalPlacesShownOnFocus,"]."),r.showWarnings),h.isTrueOrFalseString(r.alwaysAllowDecimalCharacter)||h.isBoolean(r.alwaysAllowDecimalCharacter)||h.throwError("The option 'alwaysAllowDecimalCharacter' is invali
25d ; it should either be `true` or `false`, [".concat(r.alwaysAllowDecimalCharacter,"] given.")),h.isNull(r.caretPositionOnFocus)||h.isInArray(r.caretPositionOnFocus,[e.options.caretPositionOnFocus.start,e.options.caretPositionOnFocus.end,e.options.caretPositionOnFocus.decimalLeft,e.options.caretPositionOnFocus.decimalRight])||h.throwError("The display on empty string option 'caretPositionOnFocus' is invalid ; it should either be `null`, 'focus', 'press', 'always' or 'zero', [".concat(r.caretPositionOnFocus,"] given.")),o=s?i:this._correctCaretPositionOnFocusAndSelectOnFocusOptions(t),h.isNull(o)||o.caretPositionOnFocus===e.options.caretPositionOnFocus.doNoForceCaretPosition||o.selectOnFocus!==e.options.selectOnFocus.select||h.warning("The 'selectOnFocus' option is set to 'select', which is in conflict with the 'caretPositionOnFocus' which is set to '".concat(o.caretPositionOnFocus,"'. As a result, if this has been called when instantiating an AutoNumeric object, the 'selectOnFocus' option is forced to 'doNotSelect'."),r.showWarnings),h.isInArray(r.digitGroupSeparator,[e.options.digitGroupSeparator.comma,e.options.digitGroupSeparator.dot,e.options.digitGroupSeparator.normalSpace,e.options.digitGroupSeparator.thinSpace,e.options.digitGroupSeparator.narrowNoBreakSpace,e.options.digitGroupSeparator.noBreakSpace,e.options.digitGroupSeparator.noSeparator,e.options.digitGroupSeparator.apostrophe,e.options.digitGroupSeparator.arabicThousandsSeparator,e.options.digitGroupSeparator.dotAbove,e.options.digitGroupSeparator.privateUseTwo])||h.throwError("The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '\u066c', '\u02d9', \"'\", '\x92', ' ', '\u2009', '\u202f', '\xa0' or empty (''), [".concat(r.digitGroupSeparator,"] given.")),h.isTrueOrFalseString(r.showOnlyNumbersOnFocus)||h.isBoolean(r.showOnlyNumbersOnFocus)||h.throwError("The 'showOnlyNumbersOnFocus' option is invalid ; it should be either 'true' or 'false', [".concat(r.showOnlyNumbersOnFocus,"] given.")),h.isInArray(r.digitalGroupSpacing,[e.options.digitalGroupSpacing.two,e.options.digitalGroupSpacing.twoThree,e.options.digitalGroupSpacing.twoScaled,e.options.digitalGroupSpacing.three,e.options.digitalGroupSpacing.four])||r.digitalGroupSpacing>=2&&r.digitalGroupSpacing<=4||h.throwError("The grouping separator option for thousands 'digitalGroupSpacing' is invalid ; it should be '2', '2t', '2s', '3', or '4', [".concat(r.digitalGroupSpacing,"] given.")),h.isInArray(r.decimalCharacter,[e.options.decimalCharacter.comma,e.options.decimalCharacter.dot,e.options.decimalCharacter.middleDot,e.options.decimalCharacter.arabicDecimalSeparator,e.options.decimalCharacter.decimalSeparatorKeySymbol])||h.throwError("The decimal separator character option 'decimalCharacter' is invalid ; it should be '.', ',', '\xb7', '\u2396' or '\u066b', [".concat(r.decimalCharacter,"] given.")),r.decimalCharacter===r.digitGroupSeparator&&h.throwError("autoNumeric will not function properly when the decimal character 'decimalCharacter' [".concat(r.decimalCharacter,"] and the thousand separator 'digitGroupSeparator' [").concat(r.digitGroupSeparator,"] are the same character.")),h.isNull(r.decimalCharacterAlternative)||h.isString(r.decimalCharacterAlternative)||h.throwError("The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, [".concat(r.decimalCharacterAlternative,"] given.")),""===r.currencySymbol||h.isString(r.currencySymbol)||h.throwError("The currency symbol option 'currencySymbol' is invalid ; it should be a string, [".concat(r.currencySymbol,"] given.")),h.isInArray(r.currencySymbolPlacement,[e.options.currencySymbolPlacement.prefix,e.options.currencySymbolPlacement.suffix])||h.throwError("The placement of the currency sign option 'currencySymbolPlacement' is invalid ; it should either be 'p' (prefix) or 's' (suffix), [".concat(r.currencySymbolPlacement,"] given.")),h.isInArray(r.negativePositiveSignPlacement,[e.options.negativePositiveSignPlacement.prefix,e.options.negativePositiveSignPlacement.suffix,e.options.negativePositiveSignPlacement.left,e.options.negativePositiveSignPlacement.right,e.options.negativePositiveSignPlacement.none])||h.throwError("The placement of the negative sign option 'negativePositiveSignPlacement' is
25invalid ; it should either be 'p' (prefix), 's' (suffix), 'l' (left), 'r' (right) or 'null', [".concat(r.negativePositiveSignPlacement,"] given.")),h.isTrueOrFalseString(r.showPositiveSign)||h.isBoolean(r.showPositiveSign)||h.throwError("The show positive sign option 'showPositiveSign' is invalid ; it should be either 'true' or 'false', [".concat(r.showPositiveSign,"] given.")),(!h.isString(r.suffixText)||""!==r.suffixText&&(h.isNegative(r.suffixText,r.negativeSignCharacter)||l.test(r.suffixText)))&&h.throwError("The additional suffix option 'suffixText' is invalid ; it should not contains the negative sign '".concat(r.negativeSignCharacter,"' nor any numerical characters, [").concat(r.suffixText,"] given.")),(!h.isString(r.negativeSignCharacter)||1!==r.negativeSignCharacter.length||h.isUndefinedOrNullOrEmpty(r.negativeSignCharacter)||l.test(r.negativeSignCharacter))&&h.throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(r.negativeSignCharacter,"] given.")),(!h.isString(r.positiveSignCharacter)||1!==r.positiveSignCharacter.length||h.isUndefinedOrNullOrEmpty(r.positiveSignCharacter)||l.test(r.positiveSignCharacter))&&h.throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(r.positiveSignCharacter,"] given.\nIf you want to show the positive sign character, you need to set the `showPositiveSign` option to `true`.")),r.negativeSignCharacter===r.positiveSignCharacter&&h.throwError("The positive 'positiveSignCharacter' and negative 'negativeSignCharacter' sign characters cannot be identical ; [".concat(r.negativeSignCharacter,"] given.")),h.isTrueOrFalseString(r.negativePositiveSignBehavior)||h.isBoolean(r.negativePositiveSignBehavior)||h.throwError("The option 'negativePositiveSignBehavior' is invalid ; it should be either 'true' or 'false', [".concat(r.negativePositiveSignBehavior,"] given."));var d=x(h.isNull(r.negativeBracketsTypeOnBlur)?["",""]:r.negativeBracketsTypeOnBlur.split(","),2),f=d[0],p=d[1];(h.contains(r.digitGroupSeparator,r.negativeSignCharacter)||h.contains(r.decimalCharacter,r.negativeSignCharacter)||h.contains(r.decimalCharacterAlternative,r.negativeSignCharacter)||h.contains(f,r.negativeSignCharacter)||h.contains(p,r.negativeSignCharacter)||h.contains(r.suffixText,r.negativeSignCharacter))&&h.throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(r.negativeSignCharacter,"] given.")),(h.contains(r.digitGroupSeparator,r.positiveSignCharacter)||h.contains(r.decimalCharacter,r.positiveSignCharacter)||h.contains(r.decimalCharacterAlternative,r.positiveSignCharacter)||h.contains(f,r.positiveSignCharacter)||h.contains(p,r.positiveSignCharacter)||h.contains(r.suffixText,r.positiveSignCharacter))&&h.throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(r.positiveSignCharacter,"] given.")),h.isNull(r.overrideMinMaxLimits)||h.isInArray(r.overrideMinMaxLimits,[e.options.overrideMinMaxLimits.ceiling,e.options.overrideMinMaxLimits.floor,e.options.overrideMinMaxLimits.ignore,e.options.overrideMinMaxLimits.invalid])||h.throwError("The override min & max limits option 'overrideMinMaxLimits' is invalid ; it should either be 'ceiling', 'floor', 'ignore' or 'invalid', [".concat(r.overrideMinMaxLimits,"] given.")),r.overrideMinMaxLimits!==e.options.overrideMinMaxLimits.invalid&&r.overrideMinMaxLimits!==e.options.overrideMinMaxLimits.ignore&&(r.minimumValue>0||r.maximumValue<0)&&h.warning("You've set a `minimumValue` or a `maximumValue` excluding the value `0`. AutoNumeric will force the users to always have a valid value in the input, hence preventing them to clear the field. If you want to allow for temporary invalid values (i.e. out-of-range), you should use the 'invalid' option for the 'overrideMinMaxLimits' setting."),h.isString(r.maximumValue)&&c.test(r.maximumValue)||h.throwError("The maximum possible value option 'maximumValue' is invali
25d ; it should be a string that represents a positive or negative number, [".concat(r.maximumValue,"] given.")),h.isString(r.minimumValue)&&c.test(r.minimumValue)||h.throwError("The minimum possible value option 'minimumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.minimumValue,"] given.")),parseFloat(r.minimumValue)>parseFloat(r.maximumValue)&&h.throwError("The minimum possible value option is greater than the maximum possible value option ; 'minimumValue' [".concat(r.minimumValue,"] should be smaller than 'maximumValue' [").concat(r.maximumValue,"].")),h.isInt(r.decimalPlaces)&&r.decimalPlaces>=0||h.isString(r.decimalPlaces)&&a.test(r.decimalPlaces)||h.throwError("The number of decimal places option 'decimalPlaces' is invalid ; it should be a positive integer, [".concat(r.decimalPlaces,"] given.")),h.isNull(r.decimalPlacesRawValue)||h.isInt(r.decimalPlacesRawValue)&&r.decimalPlacesRawValue>=0||h.isString(r.decimalPlacesRawValue)&&a.test(r.decimalPlacesRawValue)||h.throwError("The number of decimal places for the raw value option 'decimalPlacesRawValue' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesRawValue,"] given.")),this._validateDecimalPlacesRawValue(r),h.isNull(r.decimalPlacesShownOnFocus)||a.test(String(r.decimalPlacesShownOnFocus))||h.throwError("The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnFocus,"] given.")),!h.isNull(r.decimalPlacesShownOnFocus)&&Number(r.decimalPlaces)>Number(r.decimalPlacesShownOnFocus)&&h.warning("The extended decimal places 'decimalPlacesShownOnFocus' [".concat(r.decimalPlacesShownOnFocus,"] should be greater than the 'decimalPlaces' [").concat(r.decimalPlaces,"] value. Currently, this will limit the ability of your user to manually change some of the decimal places. Do you really want to do that?"),r.showWarnings),(h.isNull(r.divisorWhenUnfocused)||u.test(r.divisorWhenUnfocused))&&0!==r.divisorWhenUnfocused&&"0"!==r.divisorWhenUnfocused&&1!==r.divisorWhenUnfocused&&"1"!==r.divisorWhenUnfocused||h.throwError("The divisor option 'divisorWhenUnfocused' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.divisorWhenUnfocused,"] given.")),h.isNull(r.decimalPlacesShownOnBlur)||a.test(r.decimalPlacesShownOnBlur)||h.throwError("The number of decimals shown when unfocused option 'decimalPlacesShownOnBlur' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnBlur,"] given.")),h.isNull(r.symbolWhenUnfocused)||h.isString(r.symbolWhenUnfocused)||h.throwError("The symbol to show when unfocused option 'symbolWhenUnfocused' is invalid ; it should be a string, [".concat(r.symbolWhenUnfocused,"] given.")),h.isTrueOrFalseString(r.saveValueToSessionStorage)||h.isBoolean(r.saveValueToSessionStorage)||h.throwError("The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'true' or 'false', [".concat(r.saveValueToSessionStorage,"] given.")),h.isInArray(r.onInvalidPaste,[e.options.onInvalidPaste.error,e.options.onInvalidPaste.ignore,e.options.onInvalidPaste.clamp,e.options.onInvalidPaste.truncate,e.options.onInvalidPaste.replace])||h.throwError("The paste behavior option 'onInvalidPaste' is invalid ; it should either be 'error', 'ignore', 'clamp', 'truncate' or 'replace' (cf. documentation), [".concat(r.onInvalidPaste,"] given.")),h.isInArray(r.roundingMethod,[e.options.roundingMethod.halfUpSymmetric,e.options.roundingMethod.halfUpAsymmetric,e.options.roundingMethod.halfDownSymmetric,e.options.roundingMethod.halfDownAsymmetric,e.options.roundingMethod.halfEvenBankersRounding,e.options.roundingMethod.upRoundAwayFromZero,e.options.roundingMethod.downRoundTowardZero,e.options.roundingMethod.toCeilingTowardPositiveInfinity,e.options.roundingMethod.toFloorTowardNegativeInfinity,e.options.roundingMethod.toNearest05,e.options.roundingMethod.toNearest05Alt,e.options.roundingMethod.upToNext05,e.options.roundingMethod.downToNext05])||h.throwError("The rounding method option 'roundingMethod' is invali
25d ; it should either be 'S', 'A', 's', 'a', 'B', 'U', 'D', 'C', 'F', 'N05', 'CHF', 'U05' or 'D05' (cf. documentation), [".concat(r.roundingMethod,"] given.")),h.isNull(r.negativeBracketsTypeOnBlur)||h.isInArray(r.negativeBracketsTypeOnBlur,[e.options.negativeBracketsTypeOnBlur.parentheses,e.options.negativeBracketsTypeOnBlur.brackets,e.options.negativeBracketsTypeOnBlur.chevrons,e.options.negativeBracketsTypeOnBlur.curlyBraces,e.options.negativeBracketsTypeOnBlur.angleBrackets,e.options.negativeBracketsTypeOnBlur.japaneseQuotationMarks,e.options.negativeBracketsTypeOnBlur.halfBrackets,e.options.negativeBracketsTypeOnBlur.whiteSquareBrackets,e.options.negativeBracketsTypeOnBlur.quotationMarks,e.options.negativeBracketsTypeOnBlur.guillemets])||h.throwError("The brackets for negative values option 'negativeBracketsTypeOnBlur' is invalid ; it should either be '(,)', '[,]', '<,>', '{,}', '\u3008,\u3009', '\uff62,\uff63', '\u2e24,\u2e25', '\u27e6,\u27e7', '\u2039,\u203a' or '\xab,\xbb', [".concat(r.negativeBracketsTypeOnBlur,"] given.")),(h.isString(r.emptyInputBehavior)||h.isNumber(r.emptyInputBehavior))&&(h.isInArray(r.emptyInputBehavior,[e.options.emptyInputBehavior.focus,e.options.emptyInputBehavior.press,e.options.emptyInputBehavior.always,e.options.emptyInputBehavior.min,e.options.emptyInputBehavior.max,e.options.emptyInputBehavior.zero,e.options.emptyInputBehavior.null])||c.test(r.emptyInputBehavior))||h.throwError("The display on empty string option 'emptyInputBehavior' is invalid ; it should either be 'focus', 'press', 'always', 'min', 'max', 'zero', 'null', a number, or a string that represents a number, [".concat(r.emptyInputBehavior,"] given.")),r.emptyInputBehavior===e.options.emptyInputBehavior.zero&&(r.minimumValue>0||r.maximumValue<0)&&h.throwError("The 'emptyInputBehavior' option is set to 'zero', but this value is outside of the range defined by 'minimumValue' and 'maximumValue' [".concat(r.minimumValue,", ").concat(r.maximumValue,"].")),c.test(String(r.emptyInputBehavior))&&(this._isWithinRangeWithOverrideOption(r.emptyInputBehavior,r)||h.throwError("The 'emptyInputBehavior' option is set to a number or a string that represents a number, but its value [".concat(r.emptyInputBehavior,"] is outside of the range defined by the 'minimumValue' and 'maximumValue' options [").concat(r.minimumValue,", ").concat(r.maximumValue,"]."))),h.isTrueOrFalseString(r.eventBubbles)||h.isBoolean(r.eventBubbles)||h.throwError("The event bubbles option 'eventBubbles' is invalid ; it should be either 'true' or 'false', [".concat(r.eventBubbles,"] given.")),h.isTrueOrFalseString(r.eventIsCancelable)||h.isBoolean(r.eventIsCancelable)||h.throwError("The event is cancelable option 'eventIsCancelable' is invalid ; it should be either 'true' or 'false', [".concat(r.eventIsCancelable,"] given.")),!h.isBoolean(r.invalidClass)&&/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(r.invalidClass)||h.throwError("The name of the 'invalidClass' option is not a valid CSS class name ; it should not be empty, and should follow the '^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$' regex, [".concat(r.invalidClass,"] given.")),h.isInArray(r.leadingZero,[e.options.leadingZero.allow,e.options.leadingZero.deny,e.options.leadingZero.keep])||h.throwError("The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', [".concat(r.leadingZero,"] given.")),h.isTrueOrFalseString(r.formatOnPageLoad)||h.isBoolean(r.formatOnPageLoad)||h.throwError("The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'true' or 'false', [".concat(r.formatOnPageLoad,"] given.")),h.isTrueOrFalseString(r.formulaMode)||h.isBoolean(r.formulaMode)||h.throwError("The formula mode option 'formulaMode' is invalid ; it should be either 'true' or 'false', [".concat(r.formulaMode,"] given.")),a.test(r.historySize)&&0!==r.historySize||h.throwError("The history size option 'historySize' is invalid ; it should be a positive integer, [".concat(r.historySize,"] given.")),h.isTrueOrFalseString(r.selectNumberOnly)||h.isBoolean(r.selectNumberOnly)||h.throwError("The select number only option 'selectNumberOnly' is invali
25d ; it should be either 'true' or 'false', [".concat(r.selectNumberOnly,"] given.")),h.isTrueOrFalseString(r.selectOnFocus)||h.isBoolean(r.selectOnFocus)||h.throwError("The select on focus option 'selectOnFocus' is invalid ; it should be either 'true' or 'false', [".concat(r.selectOnFocus,"] given.")),h.isNull(r.defaultValueOverride)||""===r.defaultValueOverride||c.test(r.defaultValueOverride)||h.throwError("The unformatted default value option 'defaultValueOverride' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.defaultValueOverride,"] given.")),h.isTrueOrFalseString(r.unformatOnSubmit)||h.isBoolean(r.unformatOnSubmit)||h.throwError("The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnSubmit,"] given.")),h.isNull(r.valuesToStrings)||h.isObject(r.valuesToStrings)||h.throwError("The option 'valuesToStrings' is invalid ; it should be an object, ideally with 'key -> value' entries, [".concat(r.valuesToStrings,"] given.")),h.isNull(r.outputFormat)||h.isInArray(r.outputFormat,[e.options.outputFormat.string,e.options.outputFormat.number,e.options.outputFormat.dot,e.options.outputFormat.negativeDot,e.options.outputFormat.comma,e.options.outputFormat.negativeComma,e.options.outputFormat.dotNegative,e.options.outputFormat.commaNegative])||h.throwError("The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', [".concat(r.outputFormat,"] given.")),h.isTrueOrFalseString(r.isCancellable)||h.isBoolean(r.isCancellable)||h.throwError("The cancellable behavior option 'isCancellable' is invalid ; it should be either 'true' or 'false', [".concat(r.isCancellable,"] given.")),h.isTrueOrFalseString(r.modifyValueOnUpDownArrow)||h.isBoolean(r.modifyValueOnUpDownArrow)||h.throwError("The increment/decrement on up and down arrow keys 'modifyValueOnUpDownArrow' is invalid ; it should be either 'true' or 'false', [".concat(r.modifyValueOnUpDownArrow,"] given.")),h.isTrueOrFalseString(r.modifyValueOnWheel)||h.isBoolean(r.modifyValueOnWheel)||h.throwError("The increment/decrement on mouse wheel option 'modifyValueOnWheel' is invalid ; it should be either 'true' or 'false', [".concat(r.modifyValueOnWheel,"] given.")),h.isTrueOrFalseString(r.watchExternalChanges)||h.isBoolean(r.watchExternalChanges)||h.throwError("The option 'watchExternalChanges' is invalid ; it should be either 'true' or 'false', [".concat(r.watchExternalChanges,"] given.")),h.isInArray(r.wheelOn,[e.options.wheelOn.focus,e.options.wheelOn.hover])||h.throwError("The wheel behavior option 'wheelOn' is invalid ; it should either be 'focus' or 'hover', [".concat(r.wheelOn,"] given.")),(!h.isString(r.upDownStep)&&!h.isNumber(r.upDownStep)||"progressive"!==r.upDownStep&&!u.test(r.upDownStep)||0===Number(r.upDownStep))&&h.throwError("The up/down arrow step value option 'upDownStep' is invalid ; it should either be the string 'progressive', or a number or a string that represents a positive number (excluding zero), [".concat(r.upDownStep,"] given.")),(!h.isString(r.wheelStep)&&!h.isNumber(r.wheelStep)||"progressive"!==r.wheelStep&&!u.test(r.wheelStep)||0===Number(r.wheelStep))&&h.throwError("The wheel step value option 'wheelStep' is invalid ; it should either be the string 'progressive', or a number or a string that represents a positive number (excluding zero), [".concat(r.wheelStep,"] given.")),h.isInArray(r.serializeSpaces,[e.options.serializeSpaces.plus,e.options.serializeSpaces.percent])||h.throwError("The space replacement character option 'serializeSpaces' is invalid ; it should either be '+' or '%20', [".concat(r.serializeSpaces,"] given.")),h.isTrueOrFalseString(r.noEventListeners)||h.isBoolean(r.noEventListeners)||h.throwError("The option 'noEventListeners' that prevent the creation of event listeners is invalid ; it should be either 'true' or 'false', [".concat(r.noEventListeners,"] given.")),h.isNull(r.styleRules)||h.isObject(r.styleRules)&&(Object.prototype.hasOwnProperty.call(r.styleRules,"positive")||Object.prototype.hasOwnProperty.call(r.styleRules,"negative")||Object.prototype.hasOwnProperty.call(r.styleRules,"ranges")||Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined"))||h.throwError("The option 'styleRules' is invali
25d ; it should be a correctly structured object, with one or more 'positive', 'negative', 'ranges' or 'userDefined' attributes, [".concat(r.styleRules,"] given.")),h.isNull(r.styleRules)||!Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined")||h.isNull(r.styleRules.userDefined)||r.styleRules.userDefined.forEach((function(e){Object.prototype.hasOwnProperty.call(e,"callback")&&!h.isFunction(e.callback)&&h.throwError("The callback defined in the `userDefined` attribute is not a function, ".concat(L(e.callback)," given."))})),(h.isNull(r.rawValueDivisor)||u.test(r.rawValueDivisor))&&0!==r.rawValueDivisor&&"0"!==r.rawValueDivisor&&1!==r.rawValueDivisor&&"1"!==r.rawValueDivisor||h.throwError("The raw value divisor option 'rawValueDivisor' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.rawValueDivisor,"] given.")),h.isTrueOrFalseString(r.readOnly)||h.isBoolean(r.readOnly)||h.throwError("The option 'readOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.readOnly,"] given.")),h.isTrueOrFalseString(r.unformatOnHover)||h.isBoolean(r.unformatOnHover)||h.throwError("The option 'unformatOnHover' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnHover,"] given.")),h.isTrueOrFalseString(r.failOnUnknownOption)||h.isBoolean(r.failOnUnknownOption)||h.throwError("The debug option 'failOnUnknownOption' is invalid ; it should be either 'true' or 'false', [".concat(r.failOnUnknownOption,"] given.")),h.isTrueOrFalseString(r.createLocalList)||h.isBoolean(r.createLocalList)||h.throwError("The debug option 'createLocalList' is invalid ; it should be either 'true' or 'false', [".concat(r.createLocalList,"] given."))}},{key:"_validateDecimalPlacesRawValue",value:function(e){h.isNull(e.decimalPlacesRawValue)||(e.decimalPlacesRawValue<e.decimalPlaces&&h.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones to display [").concat(e.decimalPlaces,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlaces`."),e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnFocus&&h.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown on focus [").concat(e.decimalPlacesShownOnFocus,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnFocus`."),e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnBlur&&h.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown when unfocused [").concat(e.decimalPlacesShownOnBlur,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnBlur`."),e.showWarnings))}},{key:"areSettingsValid",value:function(e){var t=!0;try{this.validate(e,!0)}catch(n){t=!1}return t}},{key:"getDefaultConfig",value:function(){return e.defaultSettings}},{key:"getPredefinedOptions",value:function(){return e.predefinedOptions}},{key:"_generateOptionsObjectFromOptionsArray",value:function(e){var t,n=this;return h.isUndefinedOrNullOrEmpty(e)||0===e.length?t=null:(t={}
vendor: 29,727 bytes, line 25
25,1===e.length&&Array.isArray(e[0])?e[0].forEach((function(e){N(t,n._getOptionObject(e))})):e.length>=1&&e.forEach((function(e){N(t,n._getOptionObject(e))}))),t}},{key:"format",value:function(t){if(h.isUndefined(t)||null===t)return null;var n;n=h.isElement(t)?h.getElementValue(t):t,h.isString(n)||h.isNumber(n)||h.throwError('The value "'.concat(n,'" being "set" is not numeric and therefore cannot be used appropriately.'));for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];var o=this._generateOptionsObjectFromOptionsArray(r),a=N({},this.getDefaultConfig(),o);a.isNegativeSignAllowed=n<0,a.isPositiveSignAllowed=n>=0,this._setBrackets(a),this._cachesUsualRegularExpressions(a,{});var l=this._toNumericValue(n,a);return isNaN(Number(l))&&h.throwError("The value [".concat(l,"] that you are trying to format is not a recognized number.")),this._isWithinRangeWithOverrideOption(l,a)||(h.triggerEvent(e.events.formatted,document,{oldValue:null,newValue:null,oldRawValue:null,newRawValue:null,isPristine:null,error:"Range test failed",aNElement:null},!0,!0),h.throwError("The value [".concat(l,"] being set falls outside of the minimumValue [").concat(a.minimumValue,"] and maximumValue [").concat(a.maximumValue,"] range set for this element"))),a.valuesToStrings&&this._checkValuesToStringsSettings(n,a)?a.valuesToStrings[n]:(this._correctNegativePositiveSignPlacementOption(a),this._calculateDecimalPlacesOnInit(a),h.isUndefinedOrNullOrEmpty(a.rawValueDivisor)||0===a.rawValueDivisor||""===l||null===l||(l*=a.rawValueDivisor),l=this._roundFormattedValueShownOnFocus(l,a),l=this._modifyNegativeSignAndDecimalCharacterForFormattedValue(l,a),l=this._addGroupSeparators(l,a,!1,l))}},{key:"formatAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.format(e,t);return h.setElementValue(e,n),n}},{key:"unformat",value:function(e){if(h.isNumberStrict(e))return e;var t;if(""===(t=h.isElement(e)?h.getElementValue(e):e))return"";if(h.isUndefined(t)||null===t)return null;(h.isArray(t)||h.isObject(t))&&h.throwError("A number or a string representing a number is needed to be able to unformat it, [".concat(t,"] given."));for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var s=this._generateOptionsObjectFromOptionsArray(i),o=N({},this.getDefaultConfig(),s);if(o.isNegativeSignAllowed=!1,o.isPositiveSignAllowed=!0,t=t.toString(),o.valuesToStrings&&this._checkStringsToValuesSettings(t,o))return h.objectKeyLookup(o.valuesToStrings,t);if(h.isNegative(t,o.negativeSignCharacter))o.isNegativeSignAllowed=!0,o.isPositiveSignAllowed=!1;else if(!h.isNull(o.negativeBracketsTypeOnBlur)){var a=x(o.negativeBracketsTypeOnBlur.split(","),2);o.firstBracket=a[0],o.lastBracket=a[1],t.charAt(0)===o.firstBracket&&t.charAt(t.length-1)===o.lastBracket&&(o.isNegativeSignAllowed=!0,o.isPositiveSignAllowed=!1,t=this._removeBrackets(t,o,!1))}return t=this._convertToNumericString(t,o),h.isNumber(Number(t))&&(t=h.scientificToDecimal(t)),new RegExp("[^+-0123456789.]","gi").test(t)?NaN:(this._correctNegativePositiveSignPlacementOption(o),o.decimalPlacesRawValue?o.originalDecimalPlacesRawValue=o.decimalPlacesRawValue:o.originalDecimalPlacesRawValue=o.decimalPlaces,this._calculateDecimalPlacesOnInit(o),h.isUndefinedOrNullOrEmpty(o.rawValueDivisor)||0===o.rawValueDivisor||""===t||null===t||(t/=o.rawValueDivisor),t=(t=this._roundRawValue(t,o)).replace(o.decimalCharacter,"."),t=this._toLocale(t,o.outputFormat,o))}},{key:"unformatAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.unformat(e,t);return h.setElementValue(e,n),n}},{key:"localize",value:function(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return""===(n=h.isElement(t)?h.getElementValue(t):t)?"":(h.isNull(r)&&(r=e.defaultSettings),n=this.unformat(n,r),0===Number(n)&&r.leadingZero!==e.options.leadingZero.keep&&(n="0"),i=h.isNull(r)?r.outputFormat:e.defaultSettings.outputFormat,this._toLocale(n,i,r))}},{key:"localizeAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.localize(e,t);return h.setElementValue(e,n),n}},{key:"isManagedByAutoNumeric",value:function(e){return this._isInGlobalList(h.domElement(e))}},{key:"getAutoNumericElement",value:function(e){var t=h.domElement(e);return this.isManagedByAutoNumeric(t)?this._getFromGlobalList(t):null}},{key:"set",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=h.domElement(e);return this.isManagedByAutoNumeric(s)?this.getAutoNumericElement(s).set(t,i,r):(n=!(!h.isNull(i)&&Object.prototype.hasOwnProperty.call(i,"showWarnings"))||i.showWarnings,h.warning("Impossible to find an AutoNumeric object for the given DOM element or selector.",n),null)}},{key:"getNumericString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getNumericString",t)}},{key:"getFormatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getFormatted",t)}},{key:"getNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getNumber",t)}},{key:"_get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=h.domElement(e);return this.isManagedByAutoNumeric(i)||h.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(i)[t](n)}},{key:"getLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=h.domElement(e);return this.isManagedByAutoNumeric(i)||h.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(i).getLocalized(t,n)}},{key:"_stripAllNonNumberCharacters",value:function(e,t,n,i){return this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,n,i).replace(t.decimalCharacter,".")}},{key:"_stripAllNonNumberCharactersExceptCustomDecimalChar",value:function(t,n,i,r){var s=(t=(t=this._normalizeCurrencySuffixAndNegativeSignCharacters(t,n)).replace(n.allowedAutoStrip,"")).match(n.numRegAutoStrip);if(t=s?[s[1],s[2],s[3]].join(""):"",n.leadingZero===e.options.leadingZero.allow||n.leadingZero===e.options.leadingZero.keep){var o="",a=x(t.split(n.decimalCharacter),2),l=a[0],c=a[1],u=l;h.contains(u,n.negativeSignCharacter)&&(o=n.negativeSignCharacter,u=u.replace(n.negativeSignCharacter,"")),""===o&&u.length>n.mIntPos&&"0"===u.charAt(0)&&(u=u.slice(1)),""!==o&&u.length>n.mIntNeg&&"0"===u.charAt(0)&&(u=u.slice(1)),t="".concat(o).concat(u).concat(h.isUndefined(c)?"":n.decimalCharacter+c)}return(i&&n.leadingZero===e.options.leadingZero.deny||!r&&n.leadingZero===e.options.leadingZero.allow)&&(t=t.replace(n.stripReg,"$1$2")),t}},{key:"_toggleNegativeBracket",value:function(e,t,n){return n?this._removeBrackets(e,t):this._addBrackets(e,t)}},{key:"_addBrackets",value:function(e,t){return h.isNull(t.negativeBracketsTypeOnBlur)?e:"".concat(t.firstBracket).concat(e.replace(t.negativeSignCharacter,"")).concat(t.lastBracket)}},{key:"_removeBrackets",value:function(e,t){var n,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return h.isNull(t.negativeBracketsTypeOnBlur)||e.charAt(0)!==t.firstBracket?n=e:(n=(n=e.replace(t.firstBracket,"")).replace(t.lastBracket,""),i?(n=n.replace(t.currencySymbol,""),n=this._mergeCurrencySignNegativePositiveSignAndValue(n,t,!0,!1)):n="".concat(t.negativeSignCharacter).concat(n)),n}},{key:"_setBrackets",value:function(e){if(h.isNull(e.negativeBracketsTypeOnBlur))e.firstBracket="",e.lastBracket="";else{var t=x(e.negativeBracketsTypeOnBlur.split(","),2),n=t[0],i=t[1];e.firstBracket=n,e.lastBracket=i}}},{key:"_convertToNumericString",value:function(t,n){t=this._removeBrackets(t,n,!1),t=(t=this._normalizeCurrencySuffixAndNegativeSignCharacters(t,n)).replace(new RegExp("[".concat(n.digitGroupSeparator,"]"),"g"),""),"."!==n.decimalCharacter&&(t=t.replace(n.decimalCharacter,".")),h.isNegative(t)&&t.lastIndexOf("-")===t.length-1&&(t=t.replace("-",""),t="-".concat(t)),n.showPositiveSign&&(t=t.replace(n.positiveSignCharacter,""));var i=n.leadingZero!==e.options.leadingZero.keep,r=h.arabicToLatinNumbers(t,i,!1,!1);return isNaN(r)||(t=r.toString()),t}},{key:"_normalizeCurrencySuffixAndNegativeSignCharacters",value:function(t,n){return t=String(t),n.currencySymbol!==e.options.currencySymbol.none&&(t=t.replace(n.currencySymbol,"")),n.suffixText!==e.options.suffixText.none&&(t=t.replace(n.suffixText,"")),n.negativeSignCharacter!==e.options.negativeSignCharacter.hyphen&&(t=t.replace(n.negativeSignCharacter,"-")),t}},{key:"_toLocale",value:function(t,n,i){if(h.isNull(n)||n===e.options.outputFormat.string)return t;var r;switch(n){case e.options.outputFormat.number:r=Number(t);break;case e.options.outputFormat.dotNegative:r=h.isNegative(t)?t.replace("-","")+"-":t;break;case e.options.outputFormat.comma:case e.options.outputFormat.negativeComma:r=t.replace(".",",");break;case e.options.outputFormat.commaNegative:r=t.replace(".",","),r=h.isNegative(r)?r.replace("-","")+"-":r;break;case e.options.outputFormat.dot:case e.options.outputFormat.negativeDot:r=t;break;default:h.throwError("The given outputFormat [".concat(n,"] option is not recognized."))}return n!==e.options.outputFormat.number&&"-"!==i.negativeSignCharacter&&(r=r.replace("-",i.negativeSignCharacter)),r}},{key:"_modifyNegativeSignAndDecimalCharacterForFormattedValue",value:function(e,t){return"-"!==t.negativeSignCharacter&&(e=e.replace("-",t.negativeSignCharacter)),"."!==t.decimalCharacter&&(e=e.replace(".",t.decimalCharacter)),e}},{key:"_isElementValueEmptyOrOnlyTheNegativeSign",value:function(e,t){return""===e||e===t.negativeSignCharacter}},{key:"_orderValueCurrencySymbolAndSuffixText",value:function(t,n,i){var r;if(n.emptyInputBehavior===e.options.emptyInputBehavior.always||i)switch(n.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.none:r=t+n.currencySymbol+n.suffixText;break;default:r=n.currencySymbol+t+n.suffixText}else r=t;return r}},{key:"_addGroupSeparators",value:function(t,n,i,r){var s,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(s=h.isNull(o)?h.isNegative(t,n.negativeSignCharacter)||h.isNegativeWithBrackets(t,n.firstBracket,n.lastBracket):o<0,t=this._stripAllNonNumberCharactersExceptCustomDecimalChar(t,n,!1,i),this._isElementValueEmptyOrOnlyTheNegativeSign(t,n))return this._orderValueCurrencySymbolAndSuffixText(t,n,!0);var a=h.isZeroOrHasNoValue(t);s&&(t=t.replace("-",""));var l,c=x(t.split(n.decimalCharacter),2),u=c[0],d=c[1];if(n.decimalCharacterAlternative&&h.isUndefined(d)){var f=x(t.split(n.decimalCharacterAlternative),2);u=f[0],d=f[1]}if(""!==n.digitGroupSeparator){var p;switch(n.digitalGroupSpacing=n.digitalGroupSpacing.toString(),n.digitalGroupSpacing){case e.options.digitalGroupSpacing.twoThree:p=/(\d)((\d)(\d{2}?)+)$/;break;case e.options.digitalGroupSpacing.twoScaled:p=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case e.options.digitalGroupSpacing.two:case e.options.digitalGroupSpacing.three:case e.options.digitalGroupSpacing.four:default:p=new RegExp("(\\d)((\\d{".concat(n.digitalGroupSpacing,"}?)+)$"))}for(;p.test(u);)u=u.replace(p,"$1".concat(n.digitGroupSeparator,"$2"))}return 0===(l=i?n.decimalPlacesShownOnFocus:n.decimalPlacesShownOnBlur)||h.isUndefined(d)?t=u:(d.length>l&&(d=d.substring(0,l)),t="".concat(u).concat(n.decimalCharacter).concat(d)),t=e._mergeCurrencySignNegativePositiveSignAndValue(t,n,s,a),h.isNull(o)&&(o=r),null!==n.negativeBracketsTypeOnBlur&&(o<0||h.isNegativeStrict(t,n.negativeSignCharacter))&&(t=this._toggleNegativeBracket(t,n,i)),n.suffixText?"".concat(t).concat(n.suffixText):t}},{key:"_mergeCurrencySignNegativePositiveSignAndValue",value:function(t,n,i,r){var s,o="";if(i?o=n.negativeSignCharacter:n.showPositiveSign&&!r&&(o=n.positiveSignCharacter),n.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix)if(n.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&n.showPositiveSign&&!r))switch(n.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:s="".concat(o).concat(n.currencySymbol).concat(t);break;case e.options.negativePositiveSignPlacement.right:s="".concat(n.currencySymbol).concat(o).concat(t);break;case e.options.negativePositiveSignPlacement.suffix:s="".concat(n.currencySymbol).concat(t).concat(o)}else s=n.currencySymbol+t;else if(n.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)if(n.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&n.showPositiveSign&&!r))switch(n.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:s="".concat(t).concat(n.currencySymbol).concat(o);break;case e.options.negativePositiveSignPlacement.left:s="".concat(t).concat(o).concat(n.currencySymbol);break;case e.options.negativePositiveSignPlacement.prefix:s="".concat(o).concat(t).concat(n.currencySymbol)}else s=t+n.currencySymbol;return s}},{key:"_truncateZeros",value:function(e,t){var n;switch(t){case 0:n=/(\.(?:\d*[1-9])?)0*$/;break;case 1:n=/(\.\d(?:\d*[1-9])?)0*$/;break;default:n=new RegExp("(\\.\\d{".concat(t,"}(?:\\d*[1-9])?)0*"))}return e=e.replace(n,"$1"),0===t&&(e=e.replace(/\.$/,"")),e}},{key:"_roundRawValue",value:function(e,t){return this._roundValue(e,t,t.decimalPlacesRawValue)}},{key:"_roundFormattedValueShownOnFocus",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnFocus))}},{key:"_roundFormattedValueShownOnBlur",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnBlur))}},{key:"_roundFormattedValueShownOnFocusOrBlur",value:function(e,t,n){return n?this._roundFormattedValueShownOnFocus(e,t):this._roundFormattedValueShownOnBlur(e,t)}},{key:"_roundValue",value:function(t,n,i){if(h.isNull(t))return t;if(t=""===t?"0":t.toString(),n.roundingMethod===e.options.roundingMethod.toNearest05||n.roundingMethod===e.options.roundingMethod.toNearest05Alt||n.roundingMethod===e.options.roundingMethod.upToNext05||n.roundingMethod===e.options.roundingMethod.downToNext05)return this._roundCloseTo05(t,n);var r,s=x(e._prepareValueForRounding(t,n),2),o=s[0],a=(t=s[1]).lastIndexOf("."),l=-1===a,c=x(t.split("."),2),u=c[0];if(!(c[1]>0||n.allowDecimalPadding!==e.options.allowDecimalPadding.never&&n.allowDecimalPadding!==e.options.allowDecimalPadding.floats))return 0===Number(t)?u:"".concat(o).concat(u);r=n.allowDecimalPadding===e.options.allowDecimalPadding.always||n.allowDecimalPadding===e.options.allowDecimalPadding.floats?i:n.allowDecimalPadding>0?n.allowDecimalPadding:0;var d,f=l?t.length-1:a,p=t.length-1-f,m="";if(p<=i){if(m=t,p<r){l&&(m="".concat(m).concat(n.decimalCharacter));for(var g="000000";p<r;)m+=g=g.substring(0,r-p),p+=g.length}else p>r?m=this._truncateZeros(m,r):0===p&&0===r&&(m=m.replace(/\.$/,""));return 0===Number(m)?m:"".concat(o).concat(m)}d=l?i-1:Number(i)+Number(a);var v,y=Number(t.charAt(d+1)),b=t.substring(0,d+1).split("");if(v="."===t.charAt(d)?t.charAt(d-1)%2:t.charAt(d)%2,this._shouldRoundUp(y,n,o,v))for(var w=b.length-1;w>=0;w-=1)if("."!==b[w]){if(b[w]=+b[w]+1,b[w]<10)break;w>0&&(b[w]="0")}return b=b.slice(0,d+1),m=this._truncateZeros(b.join(""),r),0===Number(m)?m:"".concat(o).concat(m)}},{key:"_roundCloseTo05",value:function(t,n){switch(n.roundingMethod){case e.options.roundingMethod.toNearest05:case e.options.roundingMethod.toNearest05Alt:t=(Math.round(20*t)/20).toString();break;case e.options.roundingMethod.upToNext05:t=(Math.ceil(20*t)/20).toString();break;default:t=(Math.floor(20*t)/20).toString()}return h.contains(t,".")?t.length-t.indexOf(".")<3?t+"0":t:t+".00"}},{key:"_prepareValueForRounding",value:function(t,n){var i="";return h.isNegativeStrict(t,"-")&&(i="-",t=t.replace("-","")),t.match(/^\d/)||(t="0".concat(t)),0===Number(t)&&(i=""),(Number(t)>0&&n.leadingZero!==e.options.leadingZero.keep||t.length>0&&n.leadingZero===e.options.leadingZero.allow)&&(t=t.replace(/^0*(\d)/,"$1")),[i,t]}},{key:"_shouldRoundUp",value:function(t,n,i,r){return t>4&&n.roundingMethod===e.options.roundingMethod.halfUpSymmetric||t>4&&n.roundingMethod===e.options.roundingMethod.halfUpAsymmetric&&""===i||t>5&&n.roundingMethod===e.options.roundingMethod.halfUpAsymmetric&&"-"===i||t>5&&n.roundingMethod===e.options.roundingMethod.halfDownSymmetric||t>5&&n.roundingMethod===e.options.roundingMethod.halfDownAsymmetric&&""===i||t>4&&n.roundingMethod===e.options.roundingMethod.halfDownAsymmetric&&"-"===i||t>5&&n.roundingMethod===e.options.roundingMethod.halfEvenBankersRounding||5===t&&n.roundingMethod===e.options.roundingMethod.halfEvenBankersRounding&&1===r||t>0&&n.roundingMethod===e.options.roundingMethod.toCeilingTowardPositiveInfinity&&""===i||t>0&&n.roundingMethod===e.options.roundingMethod.toFloorTowardNegativeInfinity&&"-"===i||t>0&&n.roundingMethod===e.options.roundingMethod.upRoundAwayFromZero}},{key:"_truncateDecimalPlaces",value:function(e,t,n,i){n&&(e=this._roundFormattedValueShownOnFocus(e,t));var r=x(e.split(t.decimalCharacter),2),s=r[0],o=r[1];if(o&&o.length>i)if(i>0){var a=o.substring(0,i);e="".concat(s).concat(t.decimalCharacter).concat(a)}else e=s;return e}},{key:"_checkIfInRangeWithOverrideOption",value:function(t,n){if(h.isNull(t)&&n.emptyInputBehavior===e.options.emptyInputBehavior.null||n.overrideMinMaxLimits===e.options.overrideMinMaxLimits.ignore||n.overrideMinMaxLimits===e.options.overrideMinMaxLimits.invalid)return[!0,!0];t=(t=t.toString()).replace(",",".");var i,r=h.parseStr(n.minimumValue),s=h.parseStr(n.maximumValue),o=h.parseStr(t);switch(n.overrideMinMaxLimits){case e.options.overrideMinMaxLimits.floor:i=[h.testMinMax(r,o)>-1,!0];break;case e.options.overrideMinMaxLimits.ceiling:i=[!0,h.testMinMax(s,o)<1];break;default:i=[h.testMinMax(r,o)>-1,h.testMinMax(s,o)<1]}return i}},{key:"_isWithinRangeWithOverrideOption",value:function(e,t){var n=x(this._checkIfInRangeWithOverrideOption(e,t),2),i=n[0],r=n[1];return i&&r}},{key:"_cleanValueForRangeParse",value:function(e){return h.isNull(e)||(e=e.toString().replace(",",".")),h.parseStr(e)}},{key:"_isMinimumRangeRespected",value:function(e,t){return h.testMinMax(h.parseStr(t.minimumValue),this._cleanValueForRangeParse(e))>-1}},{key:"_isMaximumRangeRespected",value:function(e,t){return h.testMinMax(h.parseStr(t.maximumValue),this._cleanValueForRangeParse(e))<1}},{key:"_correctNegativePositiveSignPlacementOption",value:function(t){if(h.isNull(t.negativePositiveSignPlacement))if(h.isUndefined(t)||!h.isUndefinedOrNullOrEmpty(t.negativePositiveSignPlacement)||h.isUndefinedOrNullOrEmpty(t.currencySymbol))t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.left;else switch(t.currencySymbolPlacement){case e.options.currencySymbolPlacement.suffix:t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.prefix;break;case e.options.currencySymbolPlacement.prefix:t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.left}}},{key:"_correctCaretPositionOnFocusAndSelectOnFocusOptions",value:function(t){return h.isNull(t)?null:(!h.isUndefinedOrNullOrEmpty(t.caretPositionOnFocus)&&h.isUndefinedOrNullOrEmpty(t.selectOnFocus)&&(t.selectOnFocus=e.options.selectOnFocus.doNotSelect),h.isUndefinedOrNullOrEmpty(t.caretPositionOnFocus)&&!h.isUndefinedOrNullOrEmpty(t.selectOnFocus)&&t.selectOnFocus===e.options.selectOnFocus.select&&(t.caretPositionOnFocus=e.options.caretPositionOnFocus.doNoForceCaretPosition),t)}},{key:"_calculateDecimalPlacesOnInit",value:function(t){this._validateDecimalPlacesRawValue(t),t.decimalPlacesShownOnFocus===e.options.decimalPlacesShownOnFocus.useDefault&&(t.decimalPlacesShownOnFocus=t.decimalPlaces),t.decimalPlacesShownOnBlur===e.options.decimalPlacesShownOnBlur.useDefault&&(t.decimalPlacesShownOnBlur=t.decimalPlaces),t.decimalPlacesRawValue===e.options.decimalPlacesRawValue.useDefault&&(t.decimalPlacesRawValue=t.decimalPlaces);var n=0;t.rawValueDivisor&&t.rawValueDivisor!==e.options.rawValueDivisor.none&&(n=String(t.rawValueDivisor).length-1)<0&&(n=0),t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+n,Number(t.originalDecimalPlacesRawValue)+n)}},{key:"_calculateDecimalPlacesOnUpdate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._validateDecimalPlacesRawValue(t),h.isNull(n)&&h.throwError("When updating the settings, the previous ones should be passed as an argument.");var i="decimalPlaces"in t;if(i||"decimalPlacesRawValue"in t||"decimalPlacesShownOnFocus"in t||"decimalPlacesShownOnBlur"in t||"rawValueDivisor"in t){i?("decimalPlacesShownOnFocus"in t&&t.decimalPlacesShownOnFocus!==e.options.decimalPlacesShownOnFocus.useDefault||(t.decimalPlacesShownOnFocus=t.decimalPlaces),"decimalPlacesShownOnBlur"in t&&t.decimalPlacesShownOnBlur!==e.options.decimalPlacesShownOnBlur.useDefault||(t.decimalPlacesShownOnBlur=t.decimalPlaces),"decimalPlacesRawValue"in t&&t.decimalPlacesRawValue!==e.options.decimalPlacesRawValue.useDefault||(t.decimalPlacesRawValue=t.decimalPlaces)):(h.isUndefined(t.decimalPlacesShownOnFocus)&&(t.decimalPlacesShownOnFocus=n.decimalPlacesShownOnFocus),h.isUndefined(t.decimalPlacesShownOnBlur)&&(t.decimalPlacesShownOnBlur=n.decimalPlacesShownOnBlur));var r=0;t.rawValueDivisor&&t.rawValueDivisor!==e.options.rawValueDivisor.none&&(r=String(t.rawValueDivisor).length-1)<0&&(r=0),t.decimalPlaces||t.decimalPlacesRawValue?t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+r,Number(t.decimalPlacesRawValue)+r):t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+r,Number(n.originalDecimalPlacesRawValue)+r)}}},{key:"_cachesUsualRegularExpressions",value:function(t,n){var i;i=t.negativeSignCharacter!==e.options.negativeSignCharacter.hyphen?"([-\\".concat(t.negativeSignCharacter,"]?)"):"(-?)",n.aNegRegAutoStrip=i,t.allowedAutoStrip=new RegExp("[^-0123456789\\".concat(t.decimalCharacter,"]"),"g"),t.numRegAutoStrip=new RegExp("".concat(i,"(?:\\").concat(t.decimalCharacter,"?([0-9]+\\").concat(t.decimalCharacter,"[0-9]+)|([0-9]*(?:\\").concat(t.decimalCharacter,"[0-9]*)?))")),t.stripReg=new RegExp("^".concat(n.aNegRegAutoStrip,"0*([0-9])")),t.formulaChars=new RegExp("[0-9".concat(t.decimalCharacter,"+\\-*/() ]"))}},{key:"_convertOldOptionsToNewOnes",value:function(e){var t={aSep:"digitGroupSeparator",nSep:"showOnlyNumbersOnFocus",dGroup:"digitalGroupSpacing",aDec:"decimalCharacter",altDec:"decimalCharacterAlternative",aSign:"currencySymbol",pSign:"currencySymbolPlacement",pNeg:"negativePositiveSignPlacement",aSuffix:"suffixText",oLimits:"overrideMinMaxLimits",vMax:"maximumValue",vMin:"minimumValue",mDec:"decimalPlacesOverride",eDec:"decimalPlacesShownOnFocus",scaleDecimal:"decimalPlacesShownOnBlur",aStor:"saveValueToSessionStorage",mRound:"roundingMethod",aPad:"allowDecimalPadding",nBracket:"negativeBracketsTypeOnBlur",wEmpty:"emptyInputBehavior",lZero:"leadingZero",aForm:"formatOnPageLoad",sNumber:"selectNumberOnly",anDefault:"defaultValueOverride",unSetOnSubmit:"unformatOnSubmit",outputType:"outputFormat",debug:"showWarnings",allowDecimalPadding:!0,alwaysAllowDecimalCharacter:!0,caretPositionOnFocus:!0,createLocalList:!0,currencySymbol:!0,currencySymbolPlacement:!0,decimalCharacter:!0,decimalCharacterAlternative:!0,decimalPlaces:!0,decimalPlacesRawValue:!0,decimalPlacesShownOnBlur:!0,decimalPlacesShownOnFocus:!0,defaultValueOverride:!0,digitalGroupSpacing:!0,digitGroupSeparator:!0,divisorWhenUnfocused:!0,emptyInputBehavior:!0,eventBubbles:!0,eventIsCancelable:!0,failOnUnknownOption:!0,formatOnPageLoad:!0,formulaMode:!0,historySize:!0,isCancellable:!0,leadingZero:!0,maximumValue:!0,minimumValue:!0,modifyValueOnUpDownArrow:!0,modifyValueOnWheel:!0,negativeBracketsTypeOnBlur:!0,negativePositiveSignPlacement:!0,negativeSignCharacter:!0,negativePositiveSignBehavior:!0,noEventListeners:!0,onInvalidPaste:!0,outputFormat:!0,overrideMinMaxLimits:!0,positiveSignCharacter:!0,rawValueDivisor:!0,readOnly:!0,roundingMethod:!0,saveValueToSessionStorage:!0,selectNumberOnly:!0,selectOnFocus:!0,serializeSpaces:!0,showOnlyNumbersOnFocus:!0,showPositiveSign:!0,showWarnings:!0,styleRules:!0,suffixText:!0,symbolWhenUnfocused:!0,upDownStep:!0,unformatOnHover:!0,unformatOnSubmit:!0,valuesToStrings:!0,watchExternalChanges:!0,wheelOn:!0,wheelStep:!0,allowedAutoStrip:!0,formulaChars:!0,isNegativeSignAllowed:!0,isPositiveSignAllowed:!0,mIntNeg:!0,mIntPos:!0,numRegAutoStrip:!0,originalDecimalPlaces:!0,originalDecimalPlacesRawValue:!0,stripReg:!0};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(!0===t[n])continue;Object.prototype.hasOwnProperty.call(t,n)?(h.warning("You are using the deprecated option name '".concat(n,"'. Please use '").concat(t[n],"' instead from now on. The old option name will be dropped very soon\u2122."),!0),e[t[n]]=e[n],delete e[n]):e.failOnUnknownOption&&h.throwError("Option name '".concat(n,"' is unknown. Please fix the options passed to autoNumeric"))}"mDec"in e&&h.warning("The old `mDec` option has been deprecated in favor of more accurate options ; `decimalPlaces`, `decimalPlacesRawValue`, `decimalPlacesShownOnFocus` and `decimalPlacesShownOnBlur`.",!0)}},{key:"_setNegativePositiveSignPermissions",value:function(e){e.isNegativeSignAllowed=e.minimumValue<0,e.isPositiveSignAllowed=e.maximumValue>=0}},{key:"_toNumericValue",value:function(e,t){var n;return h.isNumber(Number(e))?(h.isNumberStrict(e)||(e=String(e).trim()),n=h.scientificToDecimal(e)):(n=this._convertToNumericString(e.toString(),t),h.isNumber(Number(n))||(h.warning('The given value "'.concat(e,'" cannot be converted to a numeric one and therefore cannot be used appropriately.'),t.showWarnings),n=NaN)),n}},{key:"_checkIfInRange",value:function(e,t,n){var i=h.parseStr(e);return h.testMinMax(t,i)>-1&&h.testMinMax(n,i)<1}},{key:"_shouldSkipEventKey",value:function(e){var t=h.isInArray(e,i.keyName._allFnKeys),n=e===i.keyName.OSLeft||e===i.keyName.OSRight,r=e===i.keyName.ContextMenu,s=h.isInArray(e,i.keyName._someNonPrintableKeys),o=e===i.keyName.NumLock||e===i.keyName.ScrollLock||e===i.keyName.Insert||e===i.keyName.Command,a=e===i.keyName.Unidentified;return t||n||r||s||a||o}},{key:"_serialize",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unformatted",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=[];return"object"===L(e)&&"form"===e.nodeName.toLowerCase()&&Array.prototype.slice.call(e.elements).forEach((function(e){if(e.name&&!e.disabled&&-1===["file","reset","submit","button"].indexOf(e.type))if("select-multiple"===e.type)Array.prototype.slice.call(e.options).forEach((function(t){t.selected&&(i?a.push({name:e.name,value:t.value}):a.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(t.value))))}));else if(-1===["checkbox","radio"].indexOf(e.type)||e.checked){var t,s;if(n.isManagedByAutoNumeric(e))switch(r){case"unformatted":s=n.getAutoNumericElement(e),h.isNull(s)||(t=n.unformat(e,s.getSettings()));break;case"localized":if(s=n.getAutoNumericElement(e),!h.isNull(s)){var l=h.cloneObject(s.getSettings());h.isNull(o)||(l.outputFormat=o),t=n.localize(e,l)}break;default:t=e.value}else t=e.value;h.isUndefined(t)&&h.throwError("This error should never be hit. If it has, something really wrong happened!"),i?a.push({name:e.name,value:t}):a.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(t)))}})),i?t=a:(t=a.join("&"),"+"===s&&(t=t.replace(/%20/g,"+"))),t}},{key:"_serializeNumericString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!1,"unformatted",t)}},{key:"_serializeFormatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!1,"formatted",t)}},{key:"_serializeLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._serialize(e,!1,"localized",t,n)}},{key:"_serializeNumericStringArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!0,"unformatted",t)}},{key:"_serializeFormattedArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!0,"formatted",t)}},{key:"_serializeLocalizedArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._serialize(e,!0,"localized",t,n)}}],n&&F(t.prototype,n),r&&F(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();D(j,"options",void 0),D(j,"events",void 0),D(j,"defaultSettings",void 0),D(j,"predefinedOptions",void 0),j.multiple=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[];if(h.isObject(t)&&(n=t,t=null),h.isString(e))e=C(document.querySelectorAll(e));else if(h.isObject(e)){Object.prototype.hasOwnProperty.call(e,"rootElement")||h.throwError("The object passed to the 'multiple' function is invali
25d ; no 'rootElement' attribute found.");var r=C(e.rootElement.querySelectorAll("input"));Object.prototype.hasOwnProperty.call(e,"exclude")?(Array.isArray(e.exclude)||h.throwError("The 'exclude' array passed to the 'multiple' function is invalid."),e=h.filterOut(r,e.exclude)):e=r}else h.isArray(e)||h.throwError("The given parameters to the 'multiple' function are invalid.");if(0===e.length){var s=!0;return!h.isNull(n)&&h.isBoolean(n.showWarnings)&&(s=n.showWarnings),h.warning("No valid DOM elements were given hence no AutoNumeric objects were instantiated.",s),[]}var o=h.isArray(t)&&t.length>=1,a=!1,l=!1;if(o){var c=L(Number(t[0]));(a="number"===c&&!isNaN(Number(t[0])))||("string"===c||isNaN(c)||"object"===c)&&(l=!0)}var u,d=!1;if(h.isArray(n)&&n.length>=1){var f=L(n[0]);"string"!==f&&"object"!==f||(d=!0)}u=l?j.mergeOptions(t):d?j.mergeOptions(n):n;var p,m=h.isNumber(t);return a&&(p=t.length),e.forEach((function(e,n){m?i.push(new j(e,t,u)):a&&n<=p?i.push(new j(e,t[n],u)):i.push(new j(e,null,u))})),i},j.events={correctedValue:"autoNumeric:correctedValue",initialized:"autoNumeric:initialized",invalidFormula:"autoNumeric:invalidFormula",invalidValue:"autoNumeric:invalidValue",formatted:"autoNumeric:formatted",rawValueModified:"autoNumeric:rawValueModified",minRangeExceeded:"autoNumeric:minExceeded",maxRangeExceeded:"autoNumeric:maxExceeded",native:{input:"input",change:"change"},validFormula:"autoNumeric:validFormula"},Object.freeze(j.events.native),Object.freeze(j.events),Object.defineProperty(j,"events",{configurable:!1,writable:!1}),j.options={allowDecimalPadding:{always:!0,never:!1,floats:"floats"},alwaysAllowDecimalCharacter:{alwaysAllow:!0,doNotAllow:!1},caretPositionOnFocus:{start:"start",end:"end",decimalLeft:"decimalLeft",decimalRight:"decimalRight",doNoForceCaretPosition:null},createLocalList:{createList:!0,doNotCreateList:!1},currencySymbol:{none:"",currencySign:"\xa4",austral:"\u20b3",australCentavo:"\xa2",baht:"\u0e3f",cedi:"\u20b5",cent:"\xa2",colon:"\u20a1",cruzeiro:"\u20a2",dollar:"$",dong:"\u20ab",drachma:"\u20af",dram:"\u200b\u058f",european:"\u20a0",euro:"\u20ac",florin:"\u0192",franc:"\u20a3",guarani:"\u20b2",hryvnia:"\u20b4",kip:"\u20ad",att:"\u0ead\u0eb1\u0e94",lepton:"\u039b.",lira:"\u20ba",liraOld:"\u20a4",lari:"\u20be",mark:"\u2133",mill:"\u20a5",naira:"\u20a6",peseta:"\u20a7",peso:"\u20b1",pfennig:"\u20b0",pound:"\xa3",real:"R$ ",riel:"\u17db",ruble:"\u20bd",rupee:"\u20b9",rupeeOld:"\u20a8",shekel:"\u20aa",shekelAlt:"\u05e9\u05f4\u05d7\u200e\u200e",taka:"\u09f3",tenge:"\u20b8",togrog:"\u20ae",won:"\u20a9",yen:"\xa5"},currencySymbolPlacement:{prefix:"p",suffix:"s"},decimalCharacter:{comma:",",dot:".",middleDot:"\xb7",arabicDecimalSeparator:"\u066b",decimalSeparatorKeySymbol:"\u2396"},decimalCharacterAlternative:{none:null,comma:",",dot:"."},decimalPlaces:{none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesRawValue:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnBlur:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnFocus:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},defaultValueOverride:{doNotOverride:null},digitalGroupSpacing:{two:"2",twoThree:"2t",twoScaled:"2s",three:"3",four:"4"},digitGroupSeparator:{comma:",",dot:".",normalSpace:" ",thinSpace:"\u2009",narrowNoBreakSpace:"\u202f",noBreakSpace:"\xa0",noSeparator:"",apostrophe:"'",arabicThousandsSeparator:"\u066c",dotAbove:"\u02d9",privateUseTwo:"\u2019"},divisorWhenUnfocused:{none:null,percentage:100,permille:1e3,basisPoint:1e4},emptyInputBehavior:{focus:"focus",press:"press",always:"always",zero:"zero",min:"min",max:"max",null:"null"},eventBubbles:{bubbles:!0,doesNotBubble:!1},eventIsCancelable:{isCancelable:!0,isNotCancelable:!1},failOnUnknownOption:{fail:!0,ignore:!1},formatOnPageLoad:{format:!0,doNotFormat:!1},formulaMode:{enabled:!0,disabled:!1},historySize:{verySmall:5,small:10,medium:20,large:50,veryLarge:100,insane:Number.MAX_SAFE_INTEGER},invalidClass:"an-invalid",isCancellable:{cancellable:!0,notCancellable:!1},leadingZero:{allow:"allow",deny:"deny",keep:"keep"},maximumValue:{tenTrillions:"10000000000000",oneBillion:"1000000000",zero:"0"},minimumValue:{tenTrillions:"-10000000000000",oneBillion:"-1000000000",zero:"0"},modifyValueOnUpDownArrow:{modifyValue:!0,doNothing:!1},modifyValueOnWheel:{modifyValue:!0,doNothing:!1},negativeBracketsTypeOnBlur:{parentheses:"(,)",brackets:"[,]",chevrons:"<,>",curlyBraces:"{,}",angleBrackets:"\u3008,\u3009",japaneseQuotationMarks:"\uff62,\uff63",halfBrackets:"\u2e24,\u2e25",whiteSquareBrackets:"\u27e6,\u27e7",quotationMarks:"\u2039,\u203a",guillemets:"\xab,\xbb",none:null},negativePositiveSignPlacement:{prefix:"p",suffix:"s",left:"l",right:"r",none:null},negativeSignCharacter:{hyphen:"-",minus:"\u2212",heavyMinus:"\u2796",fullWidthHyphen:"\uff0d",circledMinus:"\u2296",squaredMinus:"\u229f",triangleMinus:"\u2a3a",plusMinus:"\xb1",minusPlus:"\u2213",dotMinus:"\u2238",minusTilde:"\u2242",not:"\xac"},negativePositiveSignBehavior:{toggle:!0,doNotToggle:!1},noEventListeners:{noEvents:!0,addEvents:!1},onInvalidPaste:{error:"error",ignore:"ignore",clamp:"clamp",truncate:"truncate",replace:"replace"},outputFormat:{string:"string",number:"number",dot:".",negativeDot:"-.",comma:",",negativeComma:"-,",dotNegative:".-",commaNegative:",-",none:null},overrideMinMaxLimits:{ceiling:"ceiling",floor:"floor",ignore:"ignore",invalid:"invalid",doNotOverride:null},positiveSignCharacter:{plus:"+",fullWidthPlus:"\uff0b",heavyPlus:"\u2795",doublePlus:"\u29fa",triplePlus:"\u29fb",circledPlus:"\u2295",squaredPlus:"\u229e",trianglePlus:"\u2a39",plusMinus:"\xb1",minusPlus:"\u2213",dotPlus:"\u2214",altHebrewPlus:"\ufb29",normalSpace:" ",thinSpace:"\u2009",narrowNoBreakSpace:"\u202f",noBreakSpace:"\xa0"},rawValueDivisor:{none:null,percentage:100,permille:1e3,basisPoint:1e4},readOnly:{readOnly:!0,readWrite:!1},roundingMethod:{halfUpSymmetric:"S",halfUpAsymmetric:"A",halfDownSymmetric:"s",halfDownAsymmetric:"a",halfEvenBankersRounding:"B",upRoundAwayFromZero:"U",downRoundTowardZero:"D",toCeilingTowardPositiveInfinity:"C",toFloorTowardNegativeInfinity:"F",toNearest05:"N05",toNearest05Alt:"CHF",upToNext05:"U05",downToNext05:"D05"},saveValueToSessionStorage:{save:!0,doNotSave:!1},selectNumberOnly:{selectNumbersOnly:!0,selectAll:!1},selectOnFocus:{select:!0,doNotSelect:!1},serializeSpaces:{plus:"+",percent:"%20"},showOnlyNumbersOnFocus:{onlyNumbers:!0,showAll:!1},showPositiveSign:{show:!0,hide:!1},showWarnings:{show:!0,hide:!1},styleRules:{none:null,positiveNegative:{positive:"autoNumeric-positive",negative:"autoNumeric-negative"},range0To100With4Steps:{ranges:[{min:0,max:25,class:"autoNumeric-red"},{min:25,max:50,class:"autoNumeric-orange"},{min:50,max:75,class:"autoNumeric-yellow"},{min:75,max:100,class:"autoNumeric-green"}]},evenOdd:{userDefined:[{callback:function(e){return e%2==0}
vendor: 5,367 bytes, line 25
25,classes:["autoNumeric-even","autoNumeric-odd"]}]},rangeSmallAndZero:{userDefined:[{callback:function(e){return e>=-1&&e<0?0:0===Number(e)?1:e>0&&e<=1?2:null},classes:["autoNumeric-small-negative","autoNumeric-zero","autoNumeric-small-positive"]}]}},suffixText:{none:"",percentage:"%",permille:"\u2030",basisPoint:"\u2031"},symbolWhenUnfocused:{none:null,percentage:"%",permille:"\u2030",basisPoint:"\u2031"},unformatOnHover:{unformat:!0,doNotUnformat:!1},unformatOnSubmit:{unformat:!0,keepCurrentValue:!1},upDownStep:{progressive:"progressive"},valuesToStrings:{none:null,zeroDash:{0:"-"},oneAroundZero:{"-1":"Min",1:"Max"}},watchExternalChanges:{watch:!0,doNotWatch:!1},wheelOn:{focus:"focus",hover:"hover"},wheelStep:{progressive:"progressive"}},R=j.options,Object.getOwnPropertyNames(R).forEach((function(e){"valuesToStrings"===e?Object.getOwnPropertyNames(R.valuesToStrings).forEach((function(e){null!==R.valuesToStrings[e]&&Object.freeze(R.valuesToStrings[e])})):"styleRules"!==e&&null!==R[e]&&Object.freeze(R[e])})),Object.freeze(R),Object.defineProperty(j,"options",{configurable:!1,writable:!1}),j.defaultSettings={allowDecimalPadding:j.options.allowDecimalPadding.always,alwaysAllowDecimalCharacter:j.options.alwaysAllowDecimalCharacter.doNotAllow,caretPositionOnFocus:j.options.caretPositionOnFocus.doNoForceCaretPosition,createLocalList:j.options.createLocalList.createList,currencySymbol:j.options.currencySymbol.none,currencySymbolPlacement:j.options.currencySymbolPlacement.prefix,decimalCharacter:j.options.decimalCharacter.dot,decimalCharacterAlternative:j.options.decimalCharacterAlternative.none,decimalPlaces:j.options.decimalPlaces.two,decimalPlacesRawValue:j.options.decimalPlacesRawValue.useDefault,decimalPlacesShownOnBlur:j.options.decimalPlacesShownOnBlur.useDefault,decimalPlacesShownOnFocus:j.options.decimalPlacesShownOnFocus.useDefault,defaultValueOverride:j.options.defaultValueOverride.doNotOverride,digitalGroupSpacing:j.options.digitalGroupSpacing.three,digitGroupSeparator:j.options.digitGroupSeparator.comma,divisorWhenUnfocused:j.options.divisorWhenUnfocused.none,emptyInputBehavior:j.options.emptyInputBehavior.focus,eventBubbles:j.options.eventBubbles.bubbles,eventIsCancelable:j.options.eventIsCancelable.isCancelable,failOnUnknownOption:j.options.failOnUnknownOption.ignore,formatOnPageLoad:j.options.formatOnPageLoad.format,formulaMode:j.options.formulaMode.disabled,historySize:j.options.historySize.medium,invalidClass:j.options.invalidClass,isCancellable:j.options.isCancellable.cancellable,leadingZero:j.options.leadingZero.deny,maximumValue:j.options.maximumValue.tenTrillions,minimumValue:j.options.minimumValue.tenTrillions,modifyValueOnUpDownArrow:j.options.modifyValueOnUpDownArrow.modifyValue,modifyValueOnWheel:j.options.modifyValueOnWheel.modifyValue,negativeBracketsTypeOnBlur:j.options.negativeBracketsTypeOnBlur.none,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.none,negativeSignCharacter:j.options.negativeSignCharacter.hyphen,negativePositiveSignBehavior:j.options.negativePositiveSignBehavior.doNotToggle,noEventListeners:j.options.noEventListeners.addEvents,onInvalidPaste:j.options.onInvalidPaste.error,outputFormat:j.options.outputFormat.none,overrideMinMaxLimits:j.options.overrideMinMaxLimits.doNotOverride,positiveSignCharacter:j.options.positiveSignCharacter.plus,rawValueDivisor:j.options.rawValueDivisor.none,readOnly:j.options.readOnly.readWrite,roundingMethod:j.options.roundingMethod.halfUpSymmetric,saveValueToSessionStorage:j.options.saveValueToSessionStorage.doNotSave,selectNumberOnly:j.options.selectNumberOnly.selectNumbersOnly,selectOnFocus:j.options.selectOnFocus.select,serializeSpaces:j.options.serializeSpaces.plus,showOnlyNumbersOnFocus:j.options.showOnlyNumbersOnFocus.showAll,showPositiveSign:j.options.showPositiveSign.hide,showWarnings:j.options.showWarnings.show,styleRules:j.options.styleRules.none,suffixText:j.options.suffixText.none,symbolWhenUnfocused:j.options.symbolWhenUnfocused.none,unformatOnHover:j.options.unformatOnHover.unformat,unformatOnSubmit:j.options.unformatOnSubmit.keepCurrentValue,upDownStep:"1",valuesToStrings:j.options.valuesToStrings.none,watchExternalChanges:j.options.watchExternalChanges.doNotWatch,wheelOn:j.options.wheelOn.focus,wheelStep:j.options.wheelStep.progressive},Object.freeze(j.defaultSettings),Object.defineProperty(j,"defaultSettings",{configurable:!1,writable:!1});var B={digitGroupSeparator:j.options.digitGroupSeparator.dot,decimalCharacter:j.options.decimalCharacter.comma,decimalCharacterAlternative:j.options.decimalCharacterAlternative.dot,currencySymbol:"\u202f\u20ac",currencySymbolPlacement:j.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.prefix},I={digitGroupSeparator:j.options.digitGroupSeparator.comma,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:j.options.currencySymbol.dollar,currencySymbolPlacement:j.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.right},V={digitGroupSeparator:j.options.digitGroupSeparator.comma,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:j.options.currencySymbol.yen,currencySymbolPlacement:j.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.right};
25h.cloneObject(B).formulaMode=j.options.formulaMode.enabled;var z=h.cloneObject(B);z.minimumValue=0;var U=h.cloneObject(B);U.maximumValue=0,U.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.prefix;var H=h.cloneObject(B);H.digitGroupSeparator=j.options.digitGroupSeparator.normalSpace;var q=h.cloneObject(H);q.minimumValue=0;var W=h.cloneObject(H);W.maximumValue=0,W.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.prefix;var $=h.cloneObject(B);$.currencySymbol=j.options.currencySymbol.none,$.suffixText="\u202f".concat(j.options.suffixText.percentage),$.wheelStep=1e-4,$.rawValueDivisor=j.options.rawValueDivisor.percentage;var K=h.cloneObject($);K.minimumValue=0;var G=h.cloneObject($);G.maximumValue=0,G.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.prefix;var Z=h.cloneObject($);Z.decimalPlaces=3;var Y=h.cloneObject(K);Y.decimalPlaces=3;var X=h.cloneObject(G);X.decimalPlaces=3,h.cloneObject(I).formulaMode=j.options.formulaMode.enabled;var J=h.cloneObject(I);J.minimumValue=0;var Q=h.cloneObject(I);Q.maximumValue=0,Q.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.prefix;var ee=h.cloneObject(Q);ee.negativeBracketsTypeOnBlur=j.options.negativeBracketsTypeOnBlur.parentheses;var te=h.cloneObject(I);te.currencySymbol=j.options.currencySymbol.none,te.suffixText=j.options.suffixText.percentage,te.wheelStep=1e-4,te.rawValueDivisor=j.options.rawValueDivisor.percentage;var ne=h.cloneObject(te);ne.minimumValue=0;var ie=h.cloneObject(te);ie.maximumValue=0,ie.negativePositiveSignPlacement=j.options.negativePositiveSignPlacement.prefix;var re=h.cloneObject(te);re.decimalPlaces=3;var se=h.cloneObject(ne);se.decimalPlaces=3;var oe=h.cloneObject(ie);oe.decimalPlaces=3;
25var ae=h.cloneObject(B);ae.currencySymbol=j.options.currencySymbol.lira,j.predefinedOptions={euro:B,euroPos:z,euroNeg:U,euroSpace:H,euroSpacePos:q,euroSpaceNeg:W,percentageEU2dec:$,percentageEU2decPos:K,percentageEU2decNeg:G,percentageEU3dec:Z,percentageEU3decPos:Y,percentageEU3decNeg:X,dollar:I,dollarPos:J,dollarNeg:Q,dollarNegBrackets:ee,percentageUS2dec:te,percentageUS2decPos:ne,percentageUS2decNeg:ie,percentageUS3dec:re,percentageUS3decPos:se,percentageUS3decNeg:oe,French:B,Spanish:B,NorthAmerican:I,British:{digitGroupSeparator:j.options.digitGroupSeparator.comma,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:j.options.currencySymbol.pound,currencySymbolPlacement:j.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.right},Swiss:{digitGroupSeparator:j.options.digitGroupSeparator.apostrophe,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:"\u202fCHF",currencySymbolPlacement:j.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.prefix},Japanese:V,Chinese:V,Brazilian:{digitGroupSeparator:j.options.digitGroupSeparator.dot,decimalCharacter:j.options.decimalCharacter.comma,currencySymbol:j.options.currencySymbol.real,currencySymbolPlacement:j.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:j.options.negativePositiveSignPlacement.right},Turkish:ae,dotDecimalCharCommaSeparator:{digitGroupSeparator:j.options.digitGroupSeparator.comma,decimalCharacter:j.options.decimalCharacter.dot},commaDecimalCharDotSeparator:{digitGroupSeparator:j.options.digitGroupSeparator.dot,decimalCharacter:j.options.decimalCharacter.comma,decimalCharacterAlternative:j.options.decimalCharacterAlternative.dot},integer:{decimalPlaces:0},integerPos:{minimumValue:j.options.minimumValue.zero,decimalPlaces:0},integerNeg:{maximumValue:j.options.maximumValue.zero,decimalPlaces:0},float:{allowDecimalPadding:j.options.allowDecimalPadding.never},floatPos:{allowDecimalPadding:j.options.allowDecimalPadding.never,minimumValue:j.options.minimumValue.zero,maximumValue:j.options.maximumValue.tenTrillions},floatNeg:{allowDecimalPadding:j.options.allowDecimalPadding.never,minimumValue:j.options.minimumValue.tenTrillions,maximumValue:j.options.maximumValue.zero},numeric:{digitGroupSeparator:j.options.digitGroupSeparator.noSeparator,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:j.options.currencySymbol.none},numericPos:{digitGroupSeparator:j.options.digitGroupSeparator.noSeparator,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:j.options.currencySymbol.none,minimumValue:j.options.minimumValue.zero,maximumValue:j.options.maximumValue.tenTrillions},numericNeg:{digitGroupSeparator:j.options.digitGroupSeparator.noSeparator,decimalCharacter:j.options.decimalCharacter.dot,currencySymbol:j.options.currencySymbol.none,minimumValue:j.options.minimumValue.tenTrillions,maximumValue:j.options.maximumValue.zero}},Object.getOwnPropertyNames(j.predefinedOptions).forEach((function(e){Object.freeze(j.predefinedOptions[e])})),Object.freeze(j.predefinedOptions),Object.defineProperty(j,"predefinedOptions",{configurable:!1,writable:!1});const le=j;return t.default})(),e.exports=t()},23065(e,t,n){"use strict";n.d(t,{SD:()=>Dt,aF:()=>zn,oz:()=>cr});var i={};n.r(i),n.d(i,{afterMain:()=>r.EP,afterRead:()=>r.v5,afterWrite:()=>r.SE,applyStyles:()=>s.A,arrow:()=>o.A,auto:()=>r.qZ,basePlacements:()=>r.OM,beforeMain:()=>r.LG,beforeRead:()=>r.ci,beforeWrite:()=>r.pA,bottom:()=>r.sQ,clippingParents:()=>r.WY,computeStyles:()=>a.A,createPopper:()=>g.n,createPopperBase:()=>p.n4,createPopperLite:()=>y,detectOverflow:()=>m.A,end:()=>r._N,eventListeners:()=>l.A,flip:()=>c.A,hide:()=>u.A,left:()=>r.kb,main:()=>r.iW,modifierPhases:()=>r.GM,offset:()=>h.A,placements:()=>r.DD,popper:()=>r.xf,popperGenerator:()=>p.UD,popperOffsets:()=>d.A,preventOverflow:()=>f.A,read:()=>r.LF,reference:()=>r.ir,right:()=>r.pG,start:()=>r.ni,top:()=>r.Mn,variationPlacements:()=>r.Ol,viewport:()=>r.R9,write:()=>r.M9});var r=n(14278),s=n(16607),o=n(78256),a=n(1262),l=n(59068),c=n(80644),u=n(89081),h=n(18490),d=n(85059),f=n(10192),p=n(90711),m=n(46397),g=n(71576),v=[l.A,d.A,a.A,s.A],y=(0,p.UD)({defaultModifiers:v});function b(e,t,n,i){var r=w(A(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function w(){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},w.apply(null,arguments)}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function E(e,t,n){return t=A(t),O(e,k()?Reflect.construct(t,n||[],A(e).constructor):t.apply(e,n))}function O(e,t){if(t&&("object"==I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
25t%2?C(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return(t=F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,F(i.key),i)}}function L(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=I(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==I(t)?t:t+""}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=j(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}var V=new Map,z=function(e,t,n){V.has(e)||V.set(e,new Map);var i=V.get(e);i.has(t)||0===i.size?i.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(i.keys())[0],"."))},U=function(e,t){return V.has(e)&&V.get(e).get(t)||null},H=function(e,t){if(V.has(e)){var n=V.get(e);n.delete(t),0===n.size&&V.delete(e)}},q="transitionend",W=function(e){return e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(function(e,t){return"#".concat(CSS.escape(t))}))),e},$=function(e){e.dispatchEvent(new Event(q))},K=function(e){return!(!e||"object"!==I(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},G=function(e){return K(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?document.querySelector(W(e)):null},Z=function(e){if(!K(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){var i=e.closest("summary");if(i&&i.parentNode!==n)return!1;if(null===i)return!1}return t},Y=function(e){return!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))},X=function(e){if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?X(e.parentNode):null},J=function(){},Q=function(e){e.offsetHeight},ee=function(){return window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null},te=[],ne=function(){return"rtl"===document.documentElement.dir},ie=function(e){var t;t=function(){var t=ee();if(t){var n=e.NAME,i=t.fn[n];
25t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=function(){return t.fn[n]=i,e.jQueryInterface}}},"loading"===document.readyState?(te.length||document.addEventListener("DOMContentLoaded",(function(){for(var e=0,t=te;e<t.length;e++)(0,t[e])()})),te.push(t)):t()},re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return"function"===typeof e?e.call.apply(e,R(t)):n},se=function(e,t){if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]){var n=function(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,i=t.transitionDelay,r=Number.parseFloat(n),s=Number.parseFloat(i);return r||s?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0}(t)+5,i=!1,r=function(n){n.target===t&&(i=!0,t.removeEventListener(q,r),re(e))};t.addEventListener(q,r),setTimeout((function(){i||$(t)}),n)}else re(e)},oe=function(e,t,n,i){var r=e.length,s=e.indexOf(t);return-1===s?!n&&i?e[r-1]:e[0]:(s+=n?1:-1,i&&(s=(s+r)%r),e[Math.max(0,Math.min(s,r-1))])},ae=/[^.]*(?=\..*)\.|.*/,le=/\..*/,ce=/::\d+$/,ue={}
25,he=1,de={mouseenter:"mouseover",mouseleave:"mouseout"},fe=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function pe(e,t){return t&&"".concat(t,"::").concat(he++)||e.uidEvent||he++}function me(e){var t=pe(e);return e.uidEvent=t,ue[t]=ue[t]||{},ue[t]}function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(e).find((function(e){return e.callable===t&&e.delegationSelector===n}))}function ve(e,t,n){var i="string"===typeof t,r=i?n:t||n,s=Se(e);return fe.has(s)||(s=e),[i,r,s]}function ye(e,t,n,i,r){if("string"===typeof t&&e){var s=D(ve(t,n,i),3),o=s[0],a=s[1],l=s[2];if(t in de){a=function(e){return function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}}(a)}var c=me(e),u=c[l]||(c[l]={}),h=ge(u,a,o?n:null);if(h)h.oneOff=h.oneOff&&r;else{var d=pe(a,t.replace(ae,"")),f=o?function(e,t,n){return function i(r){for(var s=e.querySelectorAll(t),o=r.target;o&&o!==this;o=o.parentNode){var a,l=M(s);try{for(l.s();!(a=l.n()).done;)if(a.value===o)return Ee(r,{delegateTarget:o}),i.oneOff&&_e.off(e,r.type,t,n),n.apply(o,[r])}catch(c){l.e(c)}finally{l.f()}}}}(e,n,a):function(e,t){return function n(i){return Ee(i,{delegateTarget:e}),n.oneOff&&_e.off(e,i.type,t),t.apply(e,[i])}}(e,a);f.delegationSelector=o?n:null,f.callable=a,f.oneOff=r,f.uidEvent=d,u[d]=f,e.addEventListener(l,f,o)}}}function be(e,t,n,i,r){var s=ge(t[n],i,r);s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}function we(e,t,n,i){for(var r=t[n]||{},s=0,o=Object.entries(r);s<o.length;s++){var a=D(o[s],2),l=a[0],c=a[1];l.includes(i)&&be(e,t,n,c.callable,c.delegationSelector)}}function Se(e){return e=e.replace(le,""),de[e]||e}var _e={on:function(e,t,n,i){ye(e,t,n,i,!1)},one:function(e,t,n,i){ye(e,t,n,i,!0)},off:function(e,t,n,i){if("string"===typeof t&&e){var r=D(ve(t,n,i),3),s=r[0],o=r[1],a=r[2],l=a!==t,c=me(e),u=c[a]||{},h=t.startsWith(".");if("undefined"===typeof o){if(h)for(var d=0,f=Object.keys(c);d<f.length;d++){we(e,c,f[d],t.slice(1))}for(var p=0,m=Object.entries(u);p<m.length;p++){var g=D(m[p],2),v=g[0],y=g[1],b=v.replace(ce,"");l&&!t.includes(b)||be(e,c,a,y.callable,y.delegationSelector)}}else{if(!Object.keys(u).length)return;be(e,c,a,o,s?n:null)}}},trigger:function(e,t,n){if("string"!==typeof t||!e)return null;var i=ee(),r=null,s=!0,o=!0,a=!1;t!==Se(t)&&i&&(r=i.Event(t,n),i(e).trigger(r),s=!r.isPropagationStopped(),o=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());var l=Ee(new Event(t,{bubbles:s,cancelable:!0}),n);return a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function Ee(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var t=D(r[i],2),n=t[0],s=t[1];try{e[n]=s}catch(o){Object.defineProperty(e,n,{configurable:!0,get:function(){return s}})}},i=0,r=Object.entries(t);i<r.length;i++)n();return e}function Oe(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!==typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function ke(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}var Ae=function(e,t,n){e.setAttribute("data-bs-".concat(ke(t)),n)},Ce=function(e,t){e.removeAttribute("data-bs-".concat(ke(t)))},xe=function(e){if(!e)return{};var t,n={},i=Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")&&!e.startsWith("bsConfig")})),r=M(i);try{for(r.s();!(t=r.n()).done;){var s=t.value,o=s.replace(/^bs/,"");n[o=o.charAt(0).toLowerCase()+o.slice(1)]=Oe(e.dataset[s])}}catch(a){r.e(a)}finally{r.f()}return n},Pe=function(e,t){return Oe(e.getAttribute("data-bs-".concat(ke(t))))},Te=function(){return L((function e(){T(this,e)}),[{key:"_getConfig",value:function(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}},{key:"_configAfterMerge",value:function(e){return e}},{key:"_mergeConfigObj",value:function(e,t){var n=K(t)?Pe(t,"config"):{};return x(x(x(x({},this.constructor.Default),"object"===I(n)?n:{}),K(t)?xe(t):{}),"object"===I(e)?e:{})}},{key:"_typeCheckConfig",value:function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType,i=0,r=Object.entries(n);i<r.length;i++){var s=D(r[i],2),o=s[0],a=s[1],l=e[o],c=K(l)?"element":null===(t=l)||void 0===t?"".concat(t):Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(a).test(c))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(o,'" provided type "').concat(c,'" but expected type "').concat(a,'".'))}}}],[{key:"Default",get:function(){return{}}},{key:"DefaultType",get:function(){return{}}},{key:"NAME",get:function(){throw new Error('You have to implement the static method "NAME", for each component!')}}])}(),Ne=function(e){function t(e,n){var i;return T(this,t),i=E(this,t),(e=G(e))?(i._element=e,i._config=i._getConfig(n),z(i._element,i.constructor.DATA_KEY,i),i):O(i)}return S(t,e),L(t,[{key:"dispose",value:function(){H(this._element,this.constructor.DATA_KEY),_e.off(this._element,this.constructor.EVENT_KEY);var e,t=M(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){this[e.value]=null}}catch(n){t.e(n)}finally{t.f()}}},{key:"_queueCallback",value:function(e,t){se(e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"_getConfig",value:function(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}}],[{key:"getInstance",value:function(e){return U(G(e),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===I(t)?t:null)}},{key:"VERSION",get:function(){return"5.3.8"}},{key:"DATA_KEY",get:function(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function(){return".".concat(this.DATA_KEY)}},{key:"eventName",value:function(e){return"".concat(e).concat(this.EVENT_KEY)}}])}(Te),Le=function(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map((function(e){return W(e)})).join(","):null},Fe={find:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,R(Element.prototype.querySelectorAll.call(n,e)))},findOne:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function(e,t){var n;return(n=[]).concat.apply(n,R(e.children)).filter((function(e){return e.matches(t)}))},parents:function(e,t){for(var n=[],i=e.parentNode.closest(t);i;)n.push(i),i=i.parentNode.closest(t);return n},prev:function(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function(e,t){for(var n=e.nextElementSibling;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren:function(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(",");return this.find(t,e).filter((function(e){return!Y(e)&&Z(e)}))},getSelectorFromElement:function(e){var t=Le(e);return t&&Fe.findOne(t)?t:null},getElementFromSelector:function(e){var t=Le(e);return t?Fe.findOne(t):null},getMultipleElementsFromSelector:function(e){var t=Le(e);return t?Fe.find(t):[]}},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide",n="click.dismiss".concat(e.EVENT_KEY),i=e.NAME;_e.on(document,n,'[data-bs-dismiss="'.concat(i,'"]'),(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Y(this)){var r=Fe.getElementFromSelector(this)||this.closest(".".concat(i));e.getOrCreateInstance(r)[t]()}}))},Me=".".concat("bs.alert"),Re="close".concat(Me),je="closed".concat(Me),Be=function(e){function t(){return T(this,t),E(this,t,arguments)}return S(t,e),L(t,[{key:"close",value:function(){var e=this;if(!_e.trigger(this._element,Re).defaultPrevented){this._element.classList.remove("show");var t=this._element.classList.contains("fade");this._queueCallback((function(){return e._destroyElement()}),this._element,t)}}},{key:"_destroyElement",value:function(){this._element.remove(),_e.trigger(this._element,je),this.dispose()}}],[{key:"NAME",get:function(){return"alert"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this);if("string"===typeof e){if(void 0===n[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method n
25amed "'.concat(e,'"'));n[e](this)}}))}}])}(Ne);De(Be,"close"),ie(Be);var Ie=".".concat("bs.button"),Ve='[data-bs-toggle="button"]',ze="click".concat(Ie).concat(".data-api"),Ue=function(e){function t(){return T(this,t),E(this,t,arguments)}return S(t,e),L(t,[{key:"toggle",value:function(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function(){return"button"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this);"toggle"===e&&n[e]()}))}}])}(Ne);_e.on(document,ze,Ve,(function(e){e.preventDefault();var t=e.target.closest(Ve);Ue.getOrCreateInstance(t).toggle()})),ie(Ue);var He=".bs.swipe",qe="touchstart".concat(He),We="touchmove".concat(He),$e="touchend".concat(He),Ke="pointerdown".concat(He),Ge="pointerup".concat(He),Ze={endCallback:null,leftCallback:null,rightCallback:null},Ye={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Xe=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t))._element=e,e&&t.isSupported()?(i._config=i._getConfig(n),i._deltaX=0,i._supportPointerEvents=Boolean(window.PointerEvent),i._initEvents(),i):O(i)}return S(t,e),L(t,[{key:"dispose",value:function(){_e.off(this._element,He)}},{key:"_start",value:function(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}},{key:"_end",value:function(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),re(this._config.endCallback)}},{key:"_move",value:function(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}},{key:"_handleSwipe",value:function(){var e=Math.abs(this._deltaX);if(!(e<=40)){var t=e/this._deltaX;this._deltaX=0,t&&re(t>0?this._config.rightCallback:this._config.leftCallback)}}},{key:"_initEvents",value:function(){var e=this;this._supportPointerEvents?(_e.on(this._element,Ke,(function(t){return e._start(t)})),_e.on(this._element,Ge,(function(t){return e._end(t)})),this._element.classList.add("pointer-event")):(_e.on(this._element,qe,(function(t){return e._start(t)})),_e.on(this._element,We,(function(t){return e._move(t)})),_e.on(this._element,$e,(function(t){return e._end(t)})))}},{key:"_eventIsPointerPenTouch",value:function(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}}],[{key:"Default",get:function(){return Ze}},{key:"DefaultType",get:function(){return Ye}},{key:"NAME",get:function(){return"swipe"}},{key:"isSupported",value:function(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}])}(Te),Je=".".concat("bs.carousel"),Qe=".data-api",et="next",tt="prev",nt="left",it="right",rt="slide".concat(Je),st="slid".concat(Je),ot="keydown".concat(Je),at="mouseenter".concat(Je),lt="mouseleave".concat(Je),ct="dragstart".concat(Je),ut="load".concat(Je).concat(Qe),ht="click".concat(Je).concat(Qe),dt="carousel",ft="active",pt=".active",mt=".carousel-item",gt=pt+mt,vt=P(P({},"ArrowLeft",it),"ArrowRight",nt),yt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},bt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},wt=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._interval=null,i._activeElement=null,i._isSliding=!1,i.touchTimeout=null,i._swipeHelper=null,i._indicatorsElement=Fe.findOne(".carousel-indicators",i._element),i._addEventListeners(),i._config.ride===dt&&i.cycle(),i}return S(t,e),L(t,[{key:"next",value:function(){this._slide(et)}},{key:"nextWhenVisible",value:function(){!document.hidden&&Z(this._element)&&this.next()}},{key:"prev",value:function(){this._slide(tt)}},{key:"pause",value:function(){this._isSliding&&$(this._element),this._clearInterval()}},{key:"cycle",value:function(){var e=this;this._clearInterval(),this._updateInterval(),this._interval=setInterval((function(){return e.nextWhenVisible()}),this._config.interval)}},{key:"_maybeEnableCycle",value:function(){var e=this;this._config.ride&&(this._isSliding?_e.one(this._element,st,(function(){return e.cycle()})):this.cycle())}},{key:"to",value:function(e){var t=this,n=this._getItems();if(!(e>n.length-1||e<0))if(this._isSliding)_e.one(this._element,st,(function(){return t.to(e)}));else{var i=this._getItemIndex(this._getActive());if(i!==e){var r=e>i?et:tt;this._slide(r,n[e])}}}},{key:"dispose",value:function(){this._swipeHelper&&this._swipeHelper.dis
25pose(),b(t,"dispose",this,3)([])}},{key:"_configAfterMerge",value:function(e){return e.defaultInterval=e.interval,e}},{key:"_addEventListeners",value:function(){var e=this;this._config.keyboard&&_e.on(this._element,ot,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(_e.on(this._element,at,(function(){return e.pause()})),_e.on(this._element,lt,(function(){return e._maybeEnableCycle()}))),this._config.touch&&Xe.isSupported()&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function(){var e,t=this,n=M(Fe.find(".carousel-item img",this._element));try{for(n.s();!(e=n.n()).done;){var i=e.value;_e.on(i,ct,(function(e){return e.preventDefault()}))}}catch(s){n.e(s)}finally{n.f()}var r={leftCallback:function(){return t._slide(t._directionToOrder(nt))},rightCallback:function(){return t._slide(t._directionToOrder(it))},endCallback:function(){"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(){return t._maybeEnableCycle()}),500+t._config.interval))}};this._swipeHelper=new Xe(this._element,r)}},{key:"_keydown",value:function(e){if(!/input|textarea/i.test(e.target.tagName)){var t=vt[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}}},{key:"_getItemIndex",value:function(e){return this._getItems().indexOf(e)}},{key:"_setActiveIndicatorElement",value:function(e){if(this._indicatorsElement){var t=Fe.findOne(pt,this._indicatorsElement);t.classList.remove(ft),t.removeAttribute("aria-current");var n=Fe.findOne('[data-bs-slide-to="'.concat(e,'"]'),this._indicatorsElement);n&&(n.classList.add(ft),n.setAttribute("aria-current","true"))}}},{key:"_updateInterval",value:function(){var e=this._activeElement||this._getActive();if(e){var t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}}},{key:"_slide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this._isSliding){var i=this._getActive(),r=e===et,s=n||oe(this._getItems(),i,r,this._config.wrap);if(s!==i){var o=this._getItemIndex(s),a=function(n){return _e.trigger(t._element,n,{relatedTarget:s,direction:t._orderToDirection(e),from:t._getItemIndex(i),to:o})};if(!a(rt).defaultPrevented&&i&&s){var l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;var c=r?"carousel-item-start":"carousel-item-end",u=r?"carousel-item-next":"carousel-item-prev";s.classList.add(u),Q(s),i.classList.add(c),s.classList.add(c);this._queueCallback((function(){s.classList.remove(c,u),s.classList.add(ft),i.classList.remove(ft,u,c),t._isSliding=!1,a(st)}),i,this._isAnimated()),l&&this.cycle()}}}}},{key:"_isAnimated",value:function(){return this._element.classList.contains("slide")}},{key:"_getActive",value:function(){return Fe.findOne(gt,this._element)}},{key:"_getItems",value:function(){return Fe.find(mt,this._element)}},{key:"_clearInterval",value:function(){this._interval&&(clearInterval(this._interval),this._interval=null)}},{key:"_directionToOrder",value:function(e){return ne()?e===nt?tt:et:e===nt?et:tt}},{key:"_orderToDirection",value:function(e){return ne()?e===tt?nt:it:e===tt?it:nt}}],[{key:"Default",get:function(){return yt}},{key:"DefaultType",get:function(){return bt}},{key:"NAME",get:function(){return"carousel"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("number"!==typeof e){if("string"===typeof e){if(void 0===n[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}else n.to(e)}))}}])}(Ne);_e.on(document,ht,"[data-bs-slide], [data-bs-slide-to]",(function(e){var t=Fe.getElementFromSelector(this);if(t&&t.classList.contains(dt)){e.preventDefault();var n=wt.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i)return n.to(i),void n._maybeEnableCycle();if("next"===Pe(this,"slide"))return n.next(),void n._maybeEnableCycle();n.prev(),n._maybeEnableCycle()}})),_e.on(window,ut,(function(){var e,t=M(Fe.find('[data-bs-ride="carousel"]'));try{for(t.s();!(e=t.n()).done;){var n=e.value;wt.getOrCreateInstance(n)}}catch(i){t.e(i)}finally{t.f()}})),ie(wt);var St=".".concat("bs.collapse"),_t="show".concat(St),Et="shown".concat(St),Ot="hide".concat(St),kt="hidden".concat(St),At="click".concat(St).concat(".data-api"),Ct="show",xt="collapse",Pt="collapsing",Tt=":scope .".concat(xt," .").concat(xt),Nt='[data-bs-toggle="collapse"]',Lt={parent:null,toggle:!0},Ft={parent:"(null|element)",toggle:"boolean"},Dt=function(e){function t(e,n){var i;T(this,t),(i=E(this,t,[e,n]))._isTransitioning=!1,i._triggerArray=[];var r,s=M(Fe.find(Nt));try{for(s.s();!(r=s.n()).done;){var o=r.value,a=Fe.getSelectorFromElement(o),l=Fe.find(a).filter((function(e){return e===i._element}));null!==a&&l.length&&i._triggerArray.push(o)}}catch(c){s.e(c)}finally{s.f()}return i._initializeChildren(),i._config.parent||i._addAriaAndCollapsedClass(i._triggerArray,i._isShown()),i._config.toggle&&i.toggle(),i}return S(t,e),L(t,[{key:"toggle",value:function(){this._isShown()?this.hide():this.show()}},{key:"show",value:function(){var e=this;if(!this._isTransitioning&&!this._isShown()){var n=[];if(this._config.parent&&(n=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((function(t){return t!==e._element})).map((function(e){return t.getOrCreateInstance(e,{toggle:!1})}
25))),!n.length||!n[0]._isTransitioning)if(!_e.trigger(this._element,_t).defaultPrevented){var i,r=M(n);try{for(r.s();!(i=r.n()).done;){i.value.hide()}}catch(l){r.e(l)}finally{r.f()}var s=this._getDimension();this._element.classList.remove(xt),this._element.classList.add(Pt),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var o=s[0].toUpperCase()+s.slice(1),a="scroll".concat(o);this._queueCallback((function(){e._isTransitioning=!1,e._element.classList.remove(Pt),e._element.classList.add(xt,Ct),e._element.style[s]="",_e.trigger(e._element,Et)}),this._element,!0),this._element.style[s]="".concat(this._element[a],"px")}}}},{key:"hide",value:function(){var e=this;if(!this._isTransitioning&&this._isShown()&&!_e.trigger(this._element,Ot).defaultPrevented){var t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),Q(this._element),this._element.classList.add(Pt),this._element.classList.remove(xt,Ct);var n,i=M(this._triggerArray);try{for(i.s();!(n=i.n()).done;){var r=n.value,s=Fe.getElementFromSelector(r);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([r],!1)}}catch(o){i.e(o)}finally{i.f()}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((function(){e._isTransitioning=!1,e._element.classList.remove(Pt),e._element.classList.add(xt),_e.trigger(e._element,kt)}),this._element,!0)}}},{key:"_isShown",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(Ct)}},{key:"_configAfterMerge",value:function(e){return e.toggle=Boolean(e.toggle),e.parent=G(e.parent),e}},{key:"_getDimension",value:function(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function(){if(this._config.parent){var e,t=M(this._getFirstLevelChildren(Nt));try{for(t.s();!(e=t.n()).done;){var n=e.value,i=Fe.getElementFromSelector(n);i&&this._addAriaAndCollapsedClass([n],this._isShown(i))}}catch(r){t.e(r)}finally{t.f()}}}},{key:"_getFirstLevelChildren",value:function(e){var t=Fe.find(Tt,this._config.parent);return Fe.find(e,this._config.parent).filter((function(e){return!t.includes(e)}))}},{key:"_addAriaAndCollapsedClass",value:function(e,t){if(e.length){var n,i=M(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.classList.toggle("collapsed",!t),r.setAttribute("aria-expanded",t)}}catch(s){i.e(s)}finally{i.f()}}}}],[{key:"Default",get:function(){return Lt}},{key:"DefaultType",get:function(){return Ft}},{key:"NAME",get:function(){return"collapse"}},{key:"jQueryInterface",value:function(e){var n={};return"string"===typeof e&&/show|hide/.test(e)&&(n.toggle=!1),this.each((function(){var i=t.getOrCreateInstance(this,n);if("string"===typeof e){if("undefined"===typeof i[e])throw new TypeError('No method named "'.concat(e,'"'));i[e]()}}))}}])}(Ne);_e.on(document,At,Nt,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t,n=M(Fe.getMultipleElementsFromSelector(this));try{for(n.s();!(t=n.n()).done;){var i=t.value;Dt.getOrCreateInstance(i,{toggle:!1}).toggle()}}catch(r){n.e(r)}finally{n.f()}})),ie(Dt);var Mt="dropdown",Rt=".".concat("bs.dropdown"),jt=".data-api",Bt="ArrowUp",It="ArrowDown",Vt="hide".concat(Rt),zt="hidden".concat(Rt),Ut="show".concat(Rt),Ht="shown".concat(Rt),qt="click".concat(Rt).concat(jt),Wt="keydown".concat(Rt).concat(jt),$t="keyup".concat(Rt).concat(jt),Kt="show",Gt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Zt="".concat(Gt,".").concat(Kt),Yt=".dropdown-menu",Xt=ne()?"top-end":"top-start",Jt=ne()?"top-start":"top-end",Qt=ne()?"bottom-end":"bottom-start",en=ne()?"bottom-start":"bottom-end",tn=ne()?"left-start":"right-start",nn=ne()?"right-start":"left-start",rn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},sn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},on=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._popper=null,i._parent=i._element.parentNode,i._menu=Fe.next(i._element,Yt)[0]||Fe.prev(i._element,Yt)[0]||Fe.findOne(Yt,i._parent),i._inNavbar=i._detectNavbar(),i}return S(t,e),L(t,[{key:"toggle",value:function(){return this._isShown()?this.hide():this.show()}},{key:"show",value:function(){if(!Y(this._element)&&!this._isShown()){var e={relatedTarget:this._element};if(!_e.trigger(this._element,Ut,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
25navbar-nav")){var t,n,i=M((t=[]).concat.apply(t,R(document.body.children)));try{for(i.s();!(n=i.n()).done;){var r=n.value;_e.on(r,"mouseover",J)}}catch(s){i.e(s)}finally{i.f()}}this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Kt),this._element.classList.add(Kt),_e.trigger(this._element,Ht,e)}}}},{key:"hide",value:function(){if(!Y(this._element)&&this._isShown()){var e={relatedTarget:this._element};this._completeHide(e)}}},{key:"dispose",value:function(){this._popper&&this._popper.destroy(),b(t,"dispose",this,3)([])}},{key:"update",value:function(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_completeHide",value:function(e){if(!_e.trigger(this._element,Vt,e).defaultPrevented){if("ontouchstart"in document.documentElement){var t,n,i=M((t=[]).concat.apply(t,R(document.body.children)));try{for(i.s();!(n=i.n()).done;){var r=n.value;_e.off(r,"mouseover",J)}}catch(s){i.e(s)}finally{i.f()}}this._popper&&this._popper.destroy(),this._menu.classList.remove(Kt),this._element.classList.remove(Kt),this._element.setAttribute("aria-expanded","false"),Ce(this._menu,"popper"),_e.trigger(this._element,zt,e)}}},{key:"_getConfig",value:function(e){if("object"===I((e=b(t,"_getConfig",this,3)([e])).reference)&&!K(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError("".concat(Mt.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return e}},{key:"_createPopper",value:function(){var e=this._element;"parent"===this._config.reference?e=this._parent:K(this._config.reference)?e=G(this._config.reference):"object"===I(this._config.reference)&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=g.n(e,this._menu,t)}},{key:"_isShown",value:function(){return this._menu.classList.contains(Kt)}},{key:"_getPlacement",value:function(){var e=this._parent;if(e.classList.contains("dropend"))return tn;if(e.classList.contains("dropstart"))return nn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Jt:Xt:t?en:Qt}},{key:"_detectNavbar",value:function(){return null!==this._element.closest(".
25navbar")}},{key:"_getOffset",value:function(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Ae(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),x(x({},e),re(this._config.popperConfig,[void 0,e]))}},{key:"_selectMenuItem",value:function(e){var t=e.key,n=e.target,i=Fe.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((function(e){return Z(e)}));i.length&&oe(i,n,t===It,!i.includes(n)).focus()}}],[{key:"Default",get:function(){return rn}},{key:"DefaultType",get:function(){return sn}},{key:"NAME",get:function(){return Mt}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}},{key:"clearMenus",value:function(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key)){var n,i=M(Fe.find(Zt));try{for(i.s();!(n=i.n()).done;){var r=n.value,s=t.getInstance(r);if(s&&!1!==s._config.autoClose){var o=e.composedPath(),a=o.includes(s._menu);if(!(o.includes(s._element)||"inside"===s._config.autoClose&&!a||"outside"===s._config.autoClose&&a)&&(!s._menu.contains(e.target)||!("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))){var l={relatedTarget:s._element};"click"===e.type&&(l.clickEvent=e),s._completeHide(l)}}}}catch(c){i.e(c)}finally{i.f()}}}},{key:"dataApiKeydownHandler",value:function(e){var n=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,r=[Bt,It].includes(e.key);if((r||i)&&(!n||i)){e.preventDefault();var s=this.matches(Gt)?this:Fe.prev(this,Gt)[0]||Fe.next(this,Gt)[0]||Fe.findOne(Gt,e.delegateTarget.parentNode),o=t.getOrCreateInstance(s);if(r)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}}])}(Ne);_e.on(document,Wt,Gt,on.dataApiKeydownHandler),_e.on(document,Wt,Yt,on.dataApiKeydownHandler),_e.on(document,qt,on.clearMenus),_e.on(document,$t,on.clearMenus),_e.on(document,qt,Gt,(function(e){e.preventDefault(),on.getOrCreateInstance(this).toggle()})),ie(on);var an="backdrop",ln="show",cn="mousedown.bs.".concat(an),un={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},hn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},dn=function(e){function t(e){var n;return T(this,t),(n=E(this,t))._config=n._getConfig(e),n._isAppended=!1,n._element=null,n}return S(t,e),L(t,[{key:"show",value:function(e){if(this._config.isVisible){this._append();var t=this._getElement();this._config.isAnimated&&Q(t),t.classList.add(ln),this._emulateAnimation((function(){re(e)}))}else re(e)}},{key:"hide",value:function(e){var t=this;this._config.isVisible?(this._getElement().classList.remove(ln),this._emulateAnimation((function(){t.dispose(),re(e)}))):re(e)}},{key:"dispose",value:function(){this._isAppended&&(_e.off(this._element,cn),this._element.remove(),this._isAppended=!1)}},{key:"_getElement",value:function(){if(!this._element){var e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_configAfterMerge",value:function(e){return e.rootElement=G(e.rootElement),e}},{key:"_append",value:function(){var e=this;if(!this._isAppended){var t=this._getElement();this._config.rootElement.append(t),_e.on(t,cn,(function(){re(e._config.clickCallback)})),this._isAppended=!0}}},{key:"_emulateAnimation",value:function(e){se(e,this._getElement(),this._config.isAnimated)}}],[{key:"Default",get:function(){return un}},{key:"DefaultType",get:function(){return hn}},{key:"NAME",get:function(){return an}}])}(Te),fn=".".concat("bs.focustrap"),pn="focusin".concat(fn),mn="key
25down.tab".concat(fn),gn="backward",vn={autofocus:!0,trapElement:null},yn={autofocus:"boolean",trapElement:"element"},bn=function(e){function t(e){var n;return T(this,t),(n=E(this,t))._config=n._getConfig(e),n._isActive=!1,n._lastTabNavDirection=null,n}return S(t,e),L(t,[{key:"activate",value:function(){var e=this;this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),_e.off(document,fn),_e.on(document,pn,(function(t){return e._handleFocusin(t)})),_e.on(document,mn,(function(t){return e._handleKeydown(t)})),this._isActive=!0)}},{key:"deactivate",value:function(){this._isActive&&(this._isActive=!1,_e.off(document,fn))}},{key:"_handleFocusin",value:function(e){var t=this._config.trapElement;if(e.target!==document&&e.target!==t&&!t.contains(e.target)){var n=Fe.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===gn?n[n.length-1].focus():n[0].focus()}}},{key:"_handleKeydown",value:function(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?gn:"forward")}}],[{key:"Default",get:function(){return vn}},{key:"DefaultType",get:function(){return yn}},{key:"NAME",get:function(){return"focustrap"}}])}(Te),wn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Sn=".sticky-top",_n="padding-right",En="margin-right",On=function(){return L((function e(){T(this,e),this._element=document.body}),[{key:"getWidth",value:function(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}},{key:"hide",value:function(){var e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,_n,(function(t){return t+e})),this._setElementAttributes(wn,_n,(function(t){return t+e})),this._setElementAttributes(Sn,En,(function(t){return t-e}))}},{key:"reset",value:function(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_n),this._resetElementAttributes(wn,_n),this._resetElementAttributes(Sn,En)}},{key:"isOverflowing",value:function(){return this.getWidth()>0}},{key:"_disableOverFlow",value:function(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}},{key:"_setElementAttributes",value:function(e,t,n){var i=this,r=this.getWidth();this._applyManipulationCallback(e,(function(e){if(!(e!==i._element&&window.innerWidth>e.clientWidth+r)){i._saveInitialAttribute(e,t);var s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,"".concat(n(Number.parseFloat(s)),"px"))}}))}},{key:"_saveInitialAttribute",value:function(e,t){var n=e.style.getPropertyValue(t);n&&Ae(e,t,n)}},{key:"_resetElementAttributes",value:function(e,t){this._applyManipulationCallback(e,(function(e){var n=Pe(e,t);null!==n?(Ce(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}},{key:"_applyManipulationCallback",value:function(e,t){if(K(e))t(e);else{var n,i=M(Fe.find(e,this._element));try{for(i.s();!(n=i.n()).done;){t(n.value)}}catch(r){i.e(r)}finally{i.f()}}}}])}(),kn=".".concat("bs.modal"),An="hide".concat(kn),Cn="hidePrevented".concat(kn),xn="hidden".concat(kn),Pn="show".concat(kn),Tn="shown".concat(kn),Nn="resize".concat(kn),Ln="click.dismiss".concat(kn),Fn="mousedown.dismiss".concat(kn),Dn="keydown.dismiss".concat(kn),Mn="click".concat(kn).concat(".data-api"),Rn="modal-open",jn="show",Bn="modal-static",In={backdrop:!0,focus:!0,keyboard:!0},Vn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},zn=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._dialog=Fe.findOne(".modal-dialog",i._element),i._backdrop=i._initializeBackDrop(),i._focustrap=i._initializeFocusTrap(),i._isShown=!1,i._isTransitioning=!1,i._scrollBar=new On,i._addEventListeners(),i}return S(t,e),L(t,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(e){var t=this;this._isShown||this._isTransitioning||(_e.trigger(this._element,Pn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Rn),this._adjustDialog(),this._backdrop.show((function(){return t._showElement(e)}))))}},{key:"hide",value:function(){var e=this;this._isShown&&!this._isTransitioning&&(_e.trigger(this._element,An).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(jn),this._queueCallback((function(){return e._hideModal()}),this._element,this._isAnimated())))}},{key:"dispose",value:function(){_e.off(window,kn),_e.off(this._dialog,kn),this._backdrop.dispose(),this._focustrap.deactivate(),b(t,"dispose",this,3)([])}},{key:"handleUpdate",value:function(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function(){return new dn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_initializeFocusTrap",value:function(){return new bn({trapElement:this._element})}},{key:"_showElement",value:function(e){var t=this;document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;var n=Fe.findOne(".modal-body",this._dialog);
25n&&(n.scrollTop=0),Q(this._element),this._element.classList.add(jn);this._queueCallback((function(){t._config.focus&&t._focustrap.activate(),t._isTransitioning=!1,_e.trigger(t._element,Tn,{relatedTarget:e})}),this._dialog,this._isAnimated())}},{key:"_addEventListeners",value:function(){var e=this;_e.on(this._element,Dn,(function(t){"Escape"===t.key&&(e._config.keyboard?e.hide():e._triggerBackdropTransition())})),_e.on(window,Nn,(function(){e._isShown&&!e._isTransitioning&&e._adjustDialog()})),_e.on(this._element,Fn,(function(t){_e.one(e._element,Ln,(function(n){e._element===t.target&&e._element===n.target&&("static"!==e._config.backdrop?e._config.backdrop&&e.hide():e._triggerBackdropTransition())}))}))}},{key:"_hideModal",value:function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove(Rn),e._resetAdjustments(),e._scrollBar.reset(),_e.trigger(e._element,xn)}))}},{key:"_isAnimated",value:function(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function(){var e=this;if(!_e.trigger(this._element,Cn).defaultPrevented){var t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;"hidden"===n||this._element.classList.contains(Bn)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Bn),this._queueCallback((function(){e._element.classList.remove(Bn),e._queueCallback((function(){e._element.style.overflowY=n}),e._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){var i=ne()?"paddingLeft":"paddingRight";this._element.style[i]="".concat(t,"px")}if(!n&&e){var r=ne()?"paddingRight":"paddingLeft";this._element.style[r]="".concat(t,"px")}}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function(){return In}},{key:"DefaultType",get:function(){return Vn}},{key:"NAME",get:function(){return"modal"}},{key:"jQueryInterface",value:function(e,n){return this.each((function(){var i=t.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof i[e])throw new TypeError('No method named "'.concat(e,'"'));i[e](n)}}))}}])}(Ne);_e.on(document,Mn,'[data-bs-toggle="modal"]',(function(e){var t=this,n=Fe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),_e.one(n,Pn,(function(e){e.defaultPrevented||_e.one(n,xn,(function(){Z(t)&&t.focus()}))}));var i=Fe.findOne(".modal.show");i&&zn.getInstance(i).hide(),zn.getOrCreateInstance(n).toggle(this)})),De(zn),ie(zn);var Un=".".concat("bs.offcanvas"),Hn=".data-api",qn="load".concat(Un).concat(Hn),Wn="show",$n="showing",Kn="hiding",Gn=".offcanvas.show",Zn="show".concat(Un),Yn="shown".concat(Un),Xn="hide".concat(Un),Jn="hidePrevented".concat(Un),Qn="hidden".concat(Un),ei="resize".concat(Un),ti="click".concat(Un).concat(Hn),ni="keydown.dismiss".concat(Un),ii={backdrop:!0,keyboard:!0,scroll:!1},ri={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},si=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._isShown=!1,i._backdrop=i._initializeBackDrop(),i._focustrap=i._initializeFocusTrap(),i._addEventListeners(),i}return S(t,e),L(t,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(e){var t=this;if(!this._isShown&&!_e.trigger(this._element,Zn,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._backdrop.show(),this._config.scroll||(new On).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($n);this._queueCallback((function(){t._config.scroll&&!t._config.backdrop||t._focustrap.activate(),t._element.classList.add(Wn),t._element.classList.remove($n),_e.trigger(t._element,Yn,{relatedTarget:e})}),this._element,!0)}}},{key:"hide",value:function(){var e=this;if(this._isShown&&!_e.trigger(this._element,Xn).defaultPrevented){this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Kn),this._backdrop.hide();this._queueCallback((function(){e._element.classList.remove(Wn,Kn),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._config.scroll||(new On).reset(),_e.trigger(e._element,Qn)}),this._element,!0)}}},{key:"dispose",value:function(){this._backdrop.dispose(),this._focustrap.deactivate(),b(t,"dispose",this,3)([])}},{key:"_initializeBackDrop",value:function(){var e=this,t=Boolean(this._config.backdrop);return new dn({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?function(){"static"!==e._config.backdrop?e.hide():_e.trigger(e._element,Jn)}:null})}},{key:"_initializeFocusTrap",value:function(){return new bn({trapElement:this._element})}},{key:"_addEventListeners",value:function(){var e=this;_e.on(this._element,ni,(function(t){"Escape"===t.key&&(e._config.keyboard?e.hide():_e.trigger(e._element,Jn))}))}}],[{key:"Default",get:function(){return ii}},{key:"DefaultType",get:function(){return ri}},{key:"NAME",get:function(){return"offcanvas"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("string"===typeof e){if(void 0===n[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method n
25amed "'.concat(e,'"'));n[e](this)}}))}}])}(Ne);_e.on(document,ti,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=Fe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Y(this)){_e.one(n,Qn,(function(){Z(t)&&t.focus()}));var i=Fe.findOne(Gn);i&&i!==n&&si.getInstance(i).hide(),si.getOrCreateInstance(n).toggle(this)}})),_e.on(window,qn,(function(){var e,t=M(Fe.find(Gn));try{for(t.s();!(e=t.n()).done;){var n=e.value;si.getOrCreateInstance(n).show()}}catch(i){t.e(i)}finally{t.f()}})),_e.on(window,ei,(function(){var e,t=M(Fe.find("[aria-modal][class*=show][class*=offcanvas-]"));try{for(t.s();!(e=t.n()).done;){var n=e.value;"fixed"!==getComputedStyle(n).position&&si.getOrCreateInstance(n).hide()}}catch(i){t.e(i)}finally{t.f()}})),De(si),ie(si);var oi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ai=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),li=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ci=function(e,t){var n=e.nodeName.toLowerCase();return t.includes(n)?!ai.has(n)||Boolean(li.test(e.nodeValue)):t.filter((function(e){return e instanceof RegExp})).some((function(e){return e.test(n)}))};var ui={allowList:oi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},hi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},di={entry:"(string|element|function|null)",selector:"(string|element)"},fi=function(e){function t(e){var n;return T(this,t),(n=E(this,t))._config=n._getConfig(e),n}return S(t,e),L(t,[{key:"getContent",value:function(){var e=this;return Object.values(this._config.content).map((function(t){return e._resolvePossibleFunction(t)})).filter(Boolean)}},{key:"hasContent",value:function(){return this.getContent().length>0}},{key:"changeContent",value:function(e){return this._checkContent(e),this._config.content=x(x({},this._config.content),e),this}},{key:"toHtml",value:function(){var e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(var t=0,n=Object.entries(this._config.content);t<n.length;t++){var i=D(n[t],2),r=i[0],s=i[1];this._setContent(e,s,r)}var o,a=e.children[0],l=this._resolvePossibleFunction(this._config.extraClass);l&&(o=a.classList).add.apply(o,R(l.split(" ")));return a}},{key:"_typeCheckConfig",value:function(e){b(t,"_typeCheckConfig",this,3)([e]),this._checkContent(e.content)}},{key:"_checkContent",value:function(e){for(var n=0,i=Object.entries(e);n<i.length;n++){var r=D(i[n],2),s=r[0],o=r[1];b(t,"_typeCheckConfig",this,3)([{selector:s,entry:o},di])}}},{key:"_setContent",value:function(e,t,n){var i=Fe.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?K(t)?this._putElementInTemplate(G(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}},{key:"_maybeSanitize",value:function(e){return this._config.sanitize?function(e,t,n){var i;if(!e.length)return e;if(n&&"function"===typeof n)return n(e);var r,s=(new window.DOMParser).parseFromString(e,"text/html"),o=M((i=[]).concat.apply(i,R(s.body.querySelectorAll("*"))));try{for(o.s();!(r=o.n()).done;){var a,l=r.value,c=l.nodeName.toLowerCase();if(Object.keys(t).includes(c)){var u,h=(a=[]).concat.apply(a,R(l.attributes)),d=[].concat(t["*"]||[],t[c]||[]),f=M(h);try{for(f.s();!(u=f.n()).done;){var p=u.value;ci(p,d)||l.removeAttribute(p.nodeName)}}catch(m){f.e(m)}finally{f.f()}}else l.remove()}}catch(m){o.e(m)}finally{o.f()}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}},{key:"_resolvePossibleFunction",value:function(e){return re(e,[void 0,this])}},{key:"_putElementInTemplate",value:function(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}],[{key:"Default",get:function(){return ui}},{key:"DefaultType",get:function(){return hi}},{key:"NAME",get:function(){return"TemplateFactory"}}])}(Te),pi=new Set(["sanitize","allowList","sanitizeFn"]),mi="fade",gi="show",vi=".".concat("modal"),yi="hide.bs.modal",bi="hover",wi="focus",Si="click",_i={AUTO:"auto",TOP:"top",RIGHT:ne()?"left":"right",BOTTOM:"bottom",LEFT:ne()?"right":"left"},Ei={allowList:oi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"}
25,Oi={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},ki=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._isEnabled=!0,i._timeout=0,i._isHovered=null,i._activeTrigger={},i._popper=null,i._templateFactory=null,i._newContent=null,i.tip=null,i._setListeners(),i._config.selector||i._fixTitle(),i}return S(t,e),L(t,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}},{key:"dispose",value:function(){clearTimeout(this._timeout),_e.off(this._element.closest(vi),yi,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),b(t,"dispose",this,3)([])}},{key:"show",value:function(){var e=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var t=_e.trigger(this._element,this.constructor.eventName("show")),n=(X(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!t.defaultPrevented&&n){this._disposePopper();var i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));var r=this._config.container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(i),_e.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(gi),"ontouchstart"in document.documentElement){var s,o,a=M((s=[]).concat.apply(s,R(document.body.children)));try{for(a.s();!(o=a.n()).done;){var l=o.value;_e.on(l,"mouseover",J)}}catch(c){a.e(c)}finally{a.f()}}this._queueCallback((function(){_e.trigger(e._element,e.constructor.eventName("shown")),!1===e._isHovered&&e._leave(),e._isHovered=!1}),this.tip,this._isAnimated())}}}},{key:"hide",value:function(){var e=this;if(this._isShown()&&!_e.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(gi),"ontouchstart"in document.documentElement){var t,n,i=M((t=[]).concat.apply(t,R(document.body.children)));try{for(i.s();!(n=i.n()).done;){var r=n.value;_e.off(r,"mouseover",J)}}catch(s){i.e(s)}finally{i.f()}}this._activeTrigger[Si]=!1,this._activeTrigger[wi]=!1,this._activeTrigger[bi]=!1,this._isHovered=null;this._queueCallback((function(){e._isWithActiveTrigger()||(e._isHovered||e._disposePopper(),e._element.removeAttribute("aria-describedby"),_e.trigger(e._element,e.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}},{key:"update",value:function(){this._popper&&this._popper.update()}},{key:"_isWithContent",value:function(){return Boolean(this._getTitle())}},{key:"_getTipElement",value:function(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}},{key:"_createTipElement",value:function(e){var t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(mi,gi),t.classList.add("bs-".concat(this.constructor.NAME,"-auto"));var n=function(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e}(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(mi),t}},{key:"setContent",value:function(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}},{key:"_getTemplateFactory",value:function(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new fi(x(x({},this._config),{},{content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}},{key:"_getContentForTemplate",value:function(){return P({},".tooltip-inner",this._getTitle())}},{key:"_getTitle",value:function(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}},{key:"_initializeOnDelegatedTarget",value:function(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}},{key:"_isAnimated",value:function(){return this._config.animation||this.tip&&this.tip.classList.contains(mi)}},{key:"_isShown",value:function(){return this.tip&&this.tip.classList.contains(gi)}},{key:"_createPopper",value:function(e){var t=re(this._config.placement,[this,e,this._element]),n=_i[t.toUpperCase()];return g.n(this._element,e,this._getPopperConfig(n))}},{key:"_getOffset",value:function(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_resolvePossibleFunction",value:function(e){return re(e,[this._element,this._element])}},{key:"_getPopperConfig",value:function(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}}
25,{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:function(e){t._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return x(x({},n),re(this._config.popperConfig,[void 0,n]))}},{key:"_setListeners",value:function(){var e,t=this,n=M(this._config.trigger.split(" "));try{for(n.s();!(e=n.n()).done;){var i=e.value;if("click"===i)_e.on(this._element,this.constructor.eventName("click"),this._config.selector,(function(e){var n=t._initializeOnDelegatedTarget(e);n._activeTrigger[Si]=!(n._isShown()&&n._activeTrigger[Si]),n.toggle()}));else if("manual"!==i){var r=i===bi?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),s=i===bi?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");_e.on(this._element,r,this._config.selector,(function(e){var n=t._initializeOnDelegatedTarget(e);n._activeTrigger["focusin"===e.type?wi:bi]=!0,n._enter()})),_e.on(this._element,s,this._config.selector,(function(e){var n=t._initializeOnDelegatedTarget(e);n._activeTrigger["focusout"===e.type?wi:bi]=n._element.contains(e.relatedTarget),n._leave()}))}}}catch(o){n.e(o)}finally{n.f()}this._hideModalHandler=function(){t._element&&t.hide()},_e.on(this._element.closest(vi),yi,this._hideModalHandler)}},{key:"_fixTitle",value:function(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}},{key:"_enter",value:function(){var e=this;this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((function(){e._isHovered&&e.show()}),this._config.delay.show))}},{key:"_leave",value:function(){var e=this;this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((function(){e._isHovered||e.hide()}),this._config.delay.hide))}},{key:"_setTimeout",value:function(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}},{key:"_isWithActiveTrigger",value:function(){return Object.values(this._activeTrigger).includes(!0)}},{key:"_getConfig",value:function(e){for(var t=xe(this._element),n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];pi.has(r)&&delete t[r]}return e=x(x({},t),"object"===I(e)&&e?e:{}),e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}},{key:"_configAfterMerge",value:function(e){return e.container=!1===e.container?document.body:G(e.container),"number"===typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),e}},{key:"_getDelegateConfig",value:function(){for(var e={},t=0,n=Object.entries(this._config);t<n.length;t++){var i=D(n[t],2),r=i[0],s=i[1];this.constructor.Default[r]!==s&&(e[r]=s)}return e.selector=!1,e.trigger="manual",e}},{key:"_disposePopper",value:function(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}}],[{key:"Default",get:function(){return Ei}},{key:"DefaultType",get:function(){return Oi}},{key:"NAME",get:function(){return"tooltip"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}])}(Ne);ie(ki);var Ai=x(x({},ki.Default),{},{content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"}),Ci=x(x({},ki.DefaultType),{},{content:"(null|string|element|function)"}),xi=function(e){function t(){return T(this,t),E(this,t,arguments)}return S(t,e),L(t,[{key:"_isWithContent",value:function(){return this._getTitle()||this._getContent()}},{key:"_getContentForTemplate",value:function(){return P(P({},".popover-header",this._getTitle()),".popover-body",this._getContent())}},{key:"_getContent",value:function(){return this._resolvePossibleFunction(this._config.content)}}],[{key:"Default",get:function(){return Ai}},{key:"DefaultType",get:function(){return Ci}},{key:"NAME",get:function(){return"popover"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method n
25amed "'.concat(e,'"'));n[e]()}}))}}])}(ki);ie(xi);var Pi=".".concat("bs.scrollspy"),Ti="activate".concat(Pi),Ni="click".concat(Pi),Li="load".concat(Pi).concat(".data-api"),Fi="active",Di="[href]",Mi=".nav-link",Ri="".concat(Mi,", ").concat(".nav-item"," > ").concat(Mi,", ").concat(".list-group-item"),ji={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Bi={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Ii=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._targetLinks=new Map,i._observableSections=new Map,i._rootElement="visible"===getComputedStyle(i._element).overflowY?null:i._element,i._activeTarget=null,i._observer=null,i._previousScrollData={visibleEntryTop:0,parentScrollTop:0},i.refresh(),i}return S(t,e),L(t,[{key:"refresh",value:function(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();var e,t=M(this._observableSections.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._observer.observe(n)}}catch(i){t.e(i)}finally{t.f()}}},{key:"dispose",value:function(){this._observer.disconnect(),b(t,"dispose",this,3)([])}},{key:"_configAfterMerge",value:function(e){return e.target=G(e.target)||document.body,e.rootMargin=e.offset?"".concat(e.offset,"px 0px -30%"):e.rootMargin,"string"===typeof e.threshold&&(e.threshold=e.threshold.split(",").map((function(e){return Number.parseFloat(e)}))),e}},{key:"_maybeEnableSmoothScroll",value:function(){var e=this;this._config.smoothScroll&&(_e.off(this._config.target,Ni),_e.on(this._config.target,Ni,Di,(function(t){var n=e._observableSections.get(t.target.hash);if(n){t.preventDefault();var i=e._rootElement||window,r=n.offsetTop-e._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:r,behavior:"smooth"});i.scrollTop=r}})))}},{key:"_getNewObserver",value:function(){var e=this,t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((function(t){return e._observerCallback(t)}),t)}},{key:"_observerCallback",value:function(e){var t=this,n=function(e){return t._targetLinks.get("#".concat(e.target.id))},i=function(e){t._previousScrollData.visibleEntryTop=e.target.offsetTop,t._process(n(e))},r=(this._rootElement||document.documentElement).scrollTop,s=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;var o,a=M(e);try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.isIntersecting){var c=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&c){if(i(l),!r)return}else s||c||i(l)}else this._activeTarget=null,this._clearActiveClass(n(l))}}catch(u){a.e(u)}finally{a.f()}}},{key:"_initializeTargetsAndObservables",value:function(){this._targetLinks=new Map,this._observableSections=new Map;var e,t=M(Fe.find(Di,this._config.target));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.hash&&!Y(n)){var i=Fe.findOne(decodeURI(n.hash),this._element);Z(i)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,i))}}}catch(r){t.e(r)}finally{t.f()}}},{key:"_process",value:function(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Fi),this._activateParents(e),_e.trigger(this._element,Ti,{relatedTarget:e}))}},{key:"_activateParents",value:function(e){if(e.classList.contains("dropdown-item"))Fe.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Fi);else{var t,n=M(Fe.parents(e,".nav, .list-group"));try{for(n.s();!(t=n.n()).done;){var i,r=t.value,s=M(Fe.prev(r,Ri));try{for(s.s();!(i=s.n()).done;){i.value.classList.add(Fi)}}catch(o){s.e(o)}finally{s.f()}}}catch(o){n.e(o)}finally{n.f()}}}},{key:"_clearActiveClass",value:function(e){e.classList.remove(Fi);var t,n=M(Fe.find("".concat(Di,".").concat(Fi),e));try{for(n.s();!(t=n.n()).done;){t.value.classList.remove(Fi)}}catch(i){n.e(i)}finally{n.f()}}}],[{key:"Default",get:function(){return ji}},{key:"DefaultType",get:function(){return Bi}},{key:"NAME",get:function(){return"scrollspy"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("string"===typeof e){if(void 0===n[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method n
25amed "'.concat(e,'"'));n[e]()}}))}}])}(Ne);_e.on(window,Li,(function(){var e,t=M(Fe.find('[data-bs-spy="scroll"]'));try{for(t.s();!(e=t.n()).done;){var n=e.value;Ii.getOrCreateInstance(n)}}catch(i){t.e(i)}finally{t.f()}})),ie(Ii);var Vi=".".concat("bs.tab"),zi="hide".concat(Vi),Ui="hidden".concat(Vi),Hi="show".concat(Vi),qi="shown".concat(Vi),Wi="click".concat(Vi),$i="keydown".concat(Vi),Ki="load".concat(Vi),Gi="ArrowLeft",Zi="ArrowRight",Yi="ArrowUp",Xi="ArrowDown",Ji="Home",Qi="End",er="active",tr="fade",nr="show",ir=".dropdown-toggle",rr=":not(".concat(ir,")"),sr=".nav-link".concat(rr,", .list-group-item").concat(rr,', [role="tab"]').concat(rr),or='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ar="".concat(sr,", ").concat(or),lr=".".concat(er,'[data-bs-toggle="tab"], .').concat(er,'[data-bs-toggle="pill"], .').concat(er,'[data-bs-toggle="list"]'),cr=function(e){function t(e){var n;return T(this,t),(n=E(this,t,[e]))._parent=n._element.closest('.list-group, .nav, [role="tablist"]'),n._parent?(n._setInitialAttributes(n._parent,n._getChildren()),_e.on(n._element,$i,(function(e){return n._keydown(e)})),n):O(n)}return S(t,e),L(t,[{key:"show",value:function(){var e=this._element;if(!this._elemIsActive(e)){var t=this._getActiveElem(),n=t?_e.trigger(t,zi,{relatedTarget:e}):null;_e.trigger(e,Hi,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}}},{key:"_activate",value:function(e,t){var n=this;if(e){e.classList.add(er),this._activate(Fe.getElementFromSelector(e));this._queueCallback((function(){"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),n._toggleDropDown(e,!0),_e.trigger(e,qi,{relatedTarget:t})):e.classList.add(nr)}),e,e.classList.contains(tr))}}},{key:"_deactivate",value:function(e,t){var n=this;if(e){e.classList.remove(er),e.blur(),this._deactivate(Fe.getElementFromSelector(e));this._queueCallback((function(){"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),n._toggleDropDown(e,!1),_e.trigger(e,Ui,{relatedTarget:t})):e.classList.remove(nr)}),e,e.classList.contains(tr))}}},{key:"_keydown",value:function(e){if([Gi,Zi,Yi,Xi,Ji,Qi].includes(e.key)){e.stopPropagation(),e.preventDefault();var n,i=this._getChildren().filter((function(e){return!Y(e)}));if([Ji,Qi].includes(e.key))n=i[e.key===Ji?0:i.length-1];else{var r=[Zi,Xi].includes(e.key);n=oe(i,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),t.getOrCreateInstance(n).show())}}},{key:"_getChildren",value:function(){return Fe.find(ar,this._parent)}},{key:"_getActiveElem",value:function(){var e=this;return this._getChildren().find((function(t){return e._elemIsActive(t)}))||null}},{key:"_setInitialAttributes",value:function(e,t){this._setAttributeIfNotExists(e,"role","tablist");var n,i=M(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._setInitialAttributesOnChild(r)}}catch(s){i.e(s)}finally{i.f()}}},{key:"_setInitialAttributesOnChild",value:function(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}},{key:"_setInitialAttributesOnTargetPanel",value:function(e){var t=Fe.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby","".concat(e.id)))}},{key:"_toggleDropDown",value:function(e,t){var n=this._getOuterElement(e);if(n.classList.contains("dropdown")){var i=function(e,i){var r=Fe.findOne(e,n);r&&r.classList.toggle(i,t)};i(ir,er),i(".dropdown-menu",nr),n.setAttribute("aria-expanded",t)}}},{key:"_setAttributeIfNotExists",value:function(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}},{key:"_elemIsActive",value:function(e){return e.classList.contains(er)}},{key:"_getInnerElement",value:function(e){return e.matches(ar)?e:Fe.findOne(ar,e)}}
25,{key:"_getOuterElement",value:function(e){return e.closest(".nav-item, .list-group-item")||e}}],[{key:"NAME",get:function(){return"tab"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this);if("string"===typeof e){if(void 0===n[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}])}(Ne);_e.on(document,Wi,or,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Y(this)||cr.getOrCreateInstance(this).show()})),_e.on(window,Ki,(function(){var e,t=M(Fe.find(lr));try{for(t.s();!(e=t.n()).done;){var n=e.value;cr.getOrCreateInstance(n)}}catch(i){t.e(i)}finally{t.f()}})),ie(cr);var ur=".".concat("bs.toast"),hr="mouseover".concat(ur),dr="mouseout".concat(ur),fr="focusin".concat(ur),pr="focusout".concat(ur),mr="hide".concat(ur),gr="hidden".concat(ur),vr="show".concat(ur),yr="shown".concat(ur),br="hide",wr="show",Sr="showing",_r={animation:"boolean",autohide:"boolean",delay:"number"},Er={animation:!0,autohide:!0,delay:5e3},Or=function(e){function t(e,n){var i;return T(this,t),(i=E(this,t,[e,n]))._timeout=null,i._hasMouseInteraction=!1,i._hasKeyboardInteraction=!1,i._setListeners(),i}return S(t,e),L(t,[{key:"show",value:function(){var e=this;if(!_e.trigger(this._element,vr).defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(br),Q(this._element),this._element.classList.add(wr,Sr),this._queueCallback((function(){e._element.classList.remove(Sr),_e.trigger(e._element,yr),e._maybeScheduleHide()}),this._element,this._config.animation)}}},{key:"hide",value:function(){var e=this;if(this.isShown()&&!_e.trigger(this._element,mr).defaultPrevented){this._element.classList.add(Sr),this._queueCallback((function(){e._element.classList.add(br),e._element.classList.remove(Sr,wr),_e.trigger(e._element,gr)}),this._element,this._config.animation)}}},{key:"dispose",value:function(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(wr),b(t,"dispose",this,3)([])}},{key:"isShown",value:function(){return this._element.classList.contains(wr)}},{key:"_maybeScheduleHide",value:function(){var e=this;this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((function(){e.hide()}),this._config.delay)))}},{key:"_onInteraction",value:function(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)this._clearTimeout();else{var n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}}},{key:"_setListeners",value:function(){var e=this;_e.on(this._element,hr,(function(t){return e._onInteraction(t,!0)})),_e.on(this._element,dr,(function(t){return e._onInteraction(t,!1)})),_e.on(this._element,fr,(function(t){return e._onInteraction(t,!0)})),_e.on(this._element,pr,(function(t){return e._onInteraction(t,!1)}))}},{key:"_clearTimeout",value:function(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"Default",get:function(){return Er}},{key:"DefaultType",get:function(){return _r}},{key:"NAME",get:function(){return"toast"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var n=t.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](this)}}))}}])}(Ne);De(Or),ie(Or)},89159(e,t,n){e.exports={n:n(46951),...void n(4158)}},4158(e,t,n){var i=n(8930);function r(e){this.data=e,this.left=null,this.right=null}function s(e){this._root=null,this._comparator=e,this.size=0}r.prototype.get_child=function(e){return e?this.right:this.left},r.prototype.set_child=function(e,t){e?this.right=t:this.left=t},s.prototype=new i,s.prototype.insert=function(e){if(null===this._root)return this._root=new r(e),this.size++,!0;for(var t=0,n=null,i=this._root;;){if(null===i)return i=new r(e),n.set_child(t,i),ret=!0,this.size++,!0;if(0===this._comparator(i.data,e))return!1;t=this._comparator(i.data,e)<0,n=i,i=i.get_child(t)}},s.prototype.remove=function(e){if(null===this._root)return!1;var t=new r(void 0),n=t;n.right=this._root;for(var i=null,s=null,o=1;null!==n.get_child(o);){i=n,n=n.get_child(o);var a=this._comparator(e,n.data);o=a>0,0===a&&(s=n)}return null!==s&&(s.data=n.data,i.set_child(i.right===n,n.get_child(null===n.left)),this._root=t.right,this.size--,!0)},e.exports=s},46951(e,t,n){var i=n(8930);function r(e){this.data=e,this.left=null,this.right=null,this.red=!0}function s(e){this._root=null,this._comparator=e,this.size=0}function o(e){return null!==e&&e.red}function a(e,t){var n=e.get_child(!t);return e.set_child(!t,n.get_child(t)),n.set_child(t,e),e.red=!0,n.red=!1,n}function l(e,t){return e.set_child(!t,a(e.get_child(!t),!t)),a(e,t)}r.prototype.get_child=function(e){return e?this.right:this.left},r.prototype.set_child=function(e,t){e?this.right=t:this.left=t},s.prototype=new i,s.prototype.insert=function(e){var t=!1;if(null===this._root)this._root=new r(e),t=!0,this.size++;else{var n=new r(void 0),i=0,s=0,c=null,u=n,h=null,d=this._root;for(u.right=this._root;;){if(null===d?(d=new r(e),h.set_child(i,d),t=!0,this.size++):o(d.left)&&o(d.right)&&(d.red=!0,d.left.red=!1,d.right.red=!1),o(d)&&o(h)){var f=u.right===c;d===h.get_child(s)?u.set_child(f,a(c,!s)):u.set_child(f,l(c,!s))}var p=this._comparator(d.data,e);if(0===p)break;s=i,i=p<0,null!==c&&(u=c),c=h,h=d,d=d.get_child(i)}this._root=n.right}return this._root.red=!1,t},s.prototype.remove=function(e){if(null===this._root)return!1;var t=new r(void 0),n=t;n.right=this._root;for(var i=null,s=null,c=null,u=1;null!==n.get_child(u);){var h=u;s=i,i=n,n=n.get_child(u);var d=this._comparator(e,n.data);if(u=d>0,0===d&&(c=n),!o(n)&&!o(n.get_child(u)))if(o(n.get_child(!u))){var f=a(n,u);i.set_child(h,f),i=f}else if(!o(n.get_child(!u))){var p=i.get_child(!h);
25if(null!==p)if(o(p.get_child(!h))||o(p.get_child(h))){var m=s.right===i;o(p.get_child(h))?s.set_child(m,l(i,h)):o(p.get_child(!h))&&s.set_child(m,a(i,h));var g=s.get_child(m);g.red=!0,n.red=!0,g.left.red=!1,g.right.red=!1}else i.red=!1,p.red=!0,n.red=!0}}return null!==c&&(c.data=n.data,i.set_child(i.right===n,n.get_child(null===n.left)),this.size--),this._root=t.right,null!==this._root&&(this._root.red=!1),null!==c},e.exports=s},8930(e){function t(){}function n(e){this._tree=e,this._ancestors=[],this._cursor=null}t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(e){for(var t=this._root;null!==t;){var n=this._comparator(e,t.data);if(0===n)return t.data;t=t.get_child(n>0)}return null},t.prototype.findIter=function(e){for(var t=this._root,n=this.iterator();null!==t;){var i=this._comparator(e,t.data);if(0===i)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(i>0)}return null},t.prototype.lowerBound=function(e){for(var t=this._root,n=this.iterator(),i=this._comparator;null!==t;){var r=i(e,t.data);if(0===r)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(r>0)}for(var s=n._ancestors.length-1;s>=0;--s)if(i(e,(t=n._ancestors[s]).data)<0)return n._cursor=t,n._ancestors.length=s,n;return n._ancestors.length=0,n},t.prototype.upperBound=function(e){for(var t=this.lowerBound(e),n=this._comparator;null!==t.data()&&0===n(t.data(),e);)t.next();return t},t.prototype.min=function(){var e=this._root;if(null===e)return null;for(;null!==e.left;)e=e.left;return e.data},t.prototype.max=function(){var e=this._root;if(null===e)return null;for(;null!==e.right;)e=e.right;return e.data},t.prototype.iterator=function(){return new n(this)},t.prototype.each=function(e){for(var t,n=this.iterator();null!==(t=n.next());)if(!1===e(t))return},t.prototype.reach=function(e){for(var t,n=this.iterator();null!==(t=n.prev());)if(!1===e(t))return},n.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},n.prototype.next=function(){if(null===this._cursor){var e=this._tree._root;null!==e&&this._minNode(e)}else{var t;if(null===this._cursor.right)do{if(t=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===t);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},n.prototype.prev=function(){if(null===this._cursor){var e=this._tree._root;null!==e&&this._maxNode(e)}else{var t;if(null===this._cursor.left)do{if(t=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===t);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},n.prototype._minNode=function(e){for(;null!==e.left;)this._ancestors.push(e),e=e.left;this._cursor=e},n.prototype._maxNode=function(e){for(;null!==e.right;)this._ancestors.push(e),e=e.right;this._cursor=e},e.exports=t},57576(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return _}});var i=n(279),r=n.n(i),s=n(370),o=n.n(s),a=n(817),l=n.n(a);function c(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=l()(e);return c("cut"),t},h=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var i=l()(n);return c("copy"),n.remove(),i},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=h(e.value,t):(n=l()(e),c("copy")),n};function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,i=e.container,r=e.target,s=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==f(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?d(s,{container:i}):r?"cut"===n?u(r):d(r,{container:i}):void 0};function m(e){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e){var t=function(){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(e){return!1}}();return function(){var n,i=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){var n="data-clipboard-".concat(e);
25if(t.hasAttribute(n))return t.getAttribute(n)}var S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(s,e);var t,n,i,r=y(s);function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return t=s,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",i=p({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(i?"success":"error",{action:n,text:i,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&g(t.prototype,n),i&&g(t,i),s}(r()),_=S},828:function(e){if("undefined"!==typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"===typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function r(e,t,n,i,r){var o=s.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}function s(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}e.exports=function(e,t,n,i,s){return"function"===typeof e.addEventListener?r.apply(null,arguments):"function"===typeof n?r.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,i,s)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}
vendor: 2,966 bytes, line 25
25(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(i.string(e))return function(e,t,n){return r(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function r(){i.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var s=0,o=i.length;s<o;s++)i[s].fn!==t&&i[s].fn._!==t&&r.push(i[s]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},37859(e,t,n){var i;i=function(e,t,n,i,r,s,o,a,l,c,u,h,d,f){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/namespace/cloudinary-core.js")}({
25"./src/namespace/cloudinary-core.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ClientHintsMetaTag",(function(){return or})),n.d(t,"Cloudinary",(function(){return Tr})),n.d(t,"Condition",(function(){return yt})),n.d(t,"Configuration",(function(){return At})),n.d(t,"crc32",(function(){return o})),n.d(t,"Expression",(function(){return ct})),n.d(t,"FetchLayer",(function(){return sn})),n.d(t,"HtmlTag",(function(){return Gn})),n.d(t,"ImageTag",(function(){return yi})),n.d(t,"Layer",(function(){return Nt})),n.d(t,"PictureTag",(function(){return Bi})),n.d(t,"SubtitlesLayer",(function(){return Zt})),n.d(t,"TextLayer",(function(){return Vt})),n.d(t,"Transformation",(function(){return zn})),n.d(t,"utf8_encode",(function(){return s})),n.d(t,"Util",(function(){return r})),n.d(t,"VideoTag",(function(){return Xi}));var i={};n.r(i),n.d(i,"VERSION",(function(){return G})),n.d(i,"CF_SHARED_CDN",(function(){return Z})),n.d(i,"OLD_AKAMAI_SHARED_CDN",(function(){return Y})),n.d(i,"AKAMAI_SHARED_CDN",(function(){return X})),n.d(i,"SHARED_CDN",(function(){return J})),n.d(i,"DEFAULT_TIMEOUT_MS",(function(){return Q})),n.d(i,"DEFAULT_POSTER_OPTIONS",(function(){return ee})),n.d(i,"DEFAULT_VIDEO_SOURCE_TYPES",(function(){return te})),n.d(i,"SEO_TYPES",(function(){return ne})),n.d(i,"DEFAULT_IMAGE_PARAMS",(function(){return ie})),n.d(i,"DEFAULT_VIDEO_PARAMS",(function(){return re})),n.d(i,"DEFAULT_VIDEO_SOURCES",(function(){return se})),n.d(i,"DEFAULT_EXTERNAL_LIBRARIES",(function(){return oe})),n.d(i,"PLACEHOLDER_IMAGE_MODES",(function(){return ae})),n.d(i,"ACCESSIBILITY_MODES",(function(){return le})),n.d(i,"URL_KEYS",(function(){return ce}));var r={};n.r(r),n.d(r,"getSDKAnalyticsSignature",(function(){return p})),n.d(r,"getAnalyticsOptions",(function(){return m})),n.d(r,"assign",(function(){return v.a})),n.d(r,"cloneDeep",(function(){return b.a})),n.d(r,"compact",(function(){return S.a})),n.d(r,"difference",(function(){return E.a})),n.d(r,"functions",(function(){return k.a})),n.d(r,"identity",(function(){return C.a})),n.d(r,"includes",(function(){return P.a})),n.d(r,"isArray",(function(){return N.a})),n.d(r,"isPlainObject",(function(){return F.a})),n.d(r,"isString",(function(){return M.a})),n.d(r,"merge",(function(){return j.a})),n.d(r,"contains",(function(){return P.a})),n.d(r,"isIntersectionObserverSupported",(function(){return W})),n.d(r,"isNativeLazyLoadSupported",(function(){return $})),n.d(r,"detectIntersection",(function(){return K})),n.d(r,"omit",(function(){return he})),n.d(r,"allStrings",(function(){return me})),n.d(r,"without",(function(){return ge})),n.d(r,"isNumberLike",(function(){return ve})),n.d(r,"smartEscape",(function(){return ye})),n.d(r,"defaults",(function(){return be})),n.d(r,"objectProto",(function(){return we})),n.d(r,"objToString",(function(){return Se})),n.d(r,"isObject",(function(){return _e})),n.d(r,"funcTag",(function(){return Ee})),n.d(r,"reWords",(function(){return ke})),n.d(r,"camelCase",(function(){return Ae})),n.d(r,"snakeCase",(function(){return Ce})),n.d(r,"convertKeys",(function(){return xe})),n.d(r,"withCamelCaseKeys",(function(){return Pe})),n.d(r,"withSnakeCaseKeys",(function(){return Te})),n.d(r,"base64Encode",(function(){return Ne})),n.d(r,"base64EncodeURL",(function(){return Le})),n.d(r,"extractUrlParams",(function(){return Fe})),n.d(r,"patchFetchFormat",(function(){return De})),n.d(r,"optionConsume",(function(){return Me})),n.d(r,"isEmpty",(function(){return Re})),n.d(r,"isAndroid",(function(){return Be})),n.d(r,"isEdge",(function(){return Ie})),n.d(r,"isChrome",(function(){return Ve})),n.d(r,"isSafari",(function(){return ze})),n.d(r,"isElement",(function(){return I.a})),n.d(r,"isFunction",(function(){return z.a})),n.d(r,"trim",(function(){return H.a})),n.d(r,"getData",(function(){return Ue})),n.d(r,"setData",(function(){return He})),n.d(r,"getAttribute",(function(){return qe})),n.d(r,"setAttribute",(function(){return We})),n.d(r,"removeAttribute",(function(){return $e})),n.d(r,"setAttributes",(function(){return Ke})),n.d(r,"hasClass",(function(){return Ge})),n.d(r,"addClass",(function(){return Ze})),n.d(r,"getStyles",(function(){return Ye})),n.d(r,"cssExpand",(function(){return Xe})),n.d(r,"domStyle",(function(){return Je})),n.d(r,"curCSS",(function(){return Qe})),n.d(r,"cssValue",(function(){return et})),n.d(r,"augmentWidthOrHeight",(function(){return tt}
25)),n.d(r,"getWidthOrHeight",(function(){return it})),n.d(r,"width",(function(){return rt}));var s=function(e){var t,n,i,r,s,o,a,l;if(null===e||"undefined"===typeof e)return"";for(l="",s=void 0,i=void 0,s=i=0,a=(o=e+"").length,r=0;r<a;)n=null,(t=o.charCodeAt(r))<128?i++:n=t>127&&t<2048?String.fromCharCode(t>>6|192,63&t|128):String.fromCharCode(t>>12|224,t>>6&63|128,63&t|128),null!==n&&(i>s&&(l+=o.slice(s,i)),l+=n,s=i=r+1),r++;return i>s&&(l+=o.slice(s,a)),l},o=function(e){var t,n,i,r;for(r=0,t=~(t=0),n=0,i=(e=s(e)).length;n<i;)r=255&(t^e.charCodeAt(n)),t=t>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*r,8),n++;return(t=~t)<0&&(t+=4294967296),t};function a(e,t,n){return t|=0,n=String("undefined"!==typeof n?n:" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=function(e,t){for(var n="";t>0;)n+=e,t--;return n}(n,t/n.length)),n.slice(0,t)+String(e))}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var c,u=0,h={};(c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",function(e){if(Array.isArray(e))return l(e)}(c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(e){var t=u.toString(2);t=a(t,6,"0"),h[t]=e,u++}));var d=h;function f(e){var t="",n=6*e.split(".").length,i=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map((function(e){return a(e,2,"0")}
25)).join(".")}(e),r=parseInt(i.split(".").join("")).toString(2);if((r=a(r,n,"0")).length%6!==0)throw"Version must be smaller than 43.21.26)";return r.match(/.{1,6}/g).forEach((function(e){t+=d[e]})),t}function p(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var i=(e=n.techVersion,t=e.split("."),"".concat(t[0],".").concat(t[1])),r=f(n.sdkSemver),s=f(i),o=n.feature,a=n.sdkCode;return"".concat("A").concat(a).concat(r).concat(s).concat(o)}catch(l){return"E"}}function m(e){var t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,feature:"0"};return e.urlAnalytics?(e.accessibility&&(t.feature="D"),"lazy"===e.loading&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t):{}}var g=n("lodash/assign"),v=n.n(g),y=n("lodash/cloneDeep"),b=n.n(y),w=n("lodash/compact"),S=n.n(w),_=n("lodash/difference"),E=n.n(_),O=n("lodash/functions"),k=n.n(O),A=n("lodash/identity"),C=n.n(A),x=n("lodash/includes"),P=n.n(x),T=n("lodash/isArray"),N=n.n(T),L=n("lodash/isPlainObject"),F=n.n(L),D=n("lodash/isString"),M=n.n(D),R=n("lodash/merge"),j=n.n(R),B=n("lodash/isElement"),I=n.n(B),V=n("lodash/isFunction"),z=n.n(V),U=n("lodash/trim"),H=n.n(U);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function W(){return"object"===("undefined"===typeof window?"undefined":q(window))&&window.IntersectionObserver}function $(){return"object"===("undefined"===typeof HTMLImageElement?"undefined":q(HTMLImageElement))&&HTMLImageElement.prototype.loading}function K(e,t){try{if($()||!W())return void t();var n=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t(),n.unobserve(e.target))}))}),{threshold:[0,.01]});n.observe(e)}catch(i){t()}}var G="2.5.0",Z="d3jpl91pxevbkh.cloudfront.net",Y="cloudinary-a.akamaihd.net",X="res.cloudinary.com",J=X,Q=1e4,ee={format:"jpg",resource_type:"video"},te=["webm","mp4","ogv"],ne={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},ie={resource_type:"image",transformation:[],type:"upload"},re={fallback_content:"",resource_type:"video",source_transformation:{},source_types:te,transformation:[],type:"upload"},se=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],oe={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ae={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},le={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},ce=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function he(e,t){e=e||{};var n=Object.keys(e).filter((function(e){return!P()(t,e)})),i={};return n.forEach((function(t){return i[t]=e[t]})),i}var de,fe,pe,me=function(e){return e.length&&e.every(M.a)},ge=function(e,t){return e.filter((function(e){return e!==t}))},ve=function(e){return null!=e&&!isNaN(parseFloat(e))},ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,(function(e){return e.split("").map((function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})).join("")}))},be=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){var n,i;for(n in t)i=t[n],void 0===e[n]&&(e[n]=i);return e}),e)},we=Object.prototype,Se=we.toString,_e=function(e){var t;return t=ue(e),!!e&&("object"===t||"function"===t)},Ee="[object Function]",Oe=function(e){return _e(e)&&Se.call(e)===Ee},ke=(fe="[A-Z]",de="[a-z]+",RegExp(fe+"+(?="+fe+de+")|"+fe+"?"+de+"|"+fe+"+|[0-9]+","g")),Ae=function(e){var t=e.match(ke);return(t=t.map((function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()})))[0]=t[0].toLocaleLowerCase(),t.join("")},Ce=function(e){var t=e.match(ke);return(t=t.map((function(e){return e.toLocaleLowerCase()}))).join("_")},xe=function(e,t){var n,i;for(var r in n={},e)i=e[r],t&&(r=t(r)),Re(r)||(n[r]=i);return n},Pe=function(e){return xe(e,Ae)},Te=function(e){return xe(e,Ce)},Ne="undefined"!==typeof btoa&&Oe(btoa)?btoa:"undefined"!==typeof Buffer&&Oe(Buffer)?function(e){return e instanceof Buffer||(e=new Buffer.from(String(e),"binary")),e.toString("base64")}:function(e){throw new Error("No base64 encoding function found")},Le=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return Ne(e)};function Fe(e){return ce.reduce((function(t,n){return null!=e[n]&&(t[n]=e[n]),t}),{})}function De(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=Me(e,"format"))}function Me(e,t,n){var i=e[t];return delete e[t],null!=i?i:n}function Re(e){if(null==e)return!0;
vendor: 4,962 bytes, line 25
25if("number"==typeof e.length)return 0===e.length;if("number"==typeof e.size)return 0===e.size;if("object"==ue(e)){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}return!0}function je(){return navigator&&navigator.userAgent||""}function Be(){var e=je();return/Android/i.test(e)}function Ie(){var e=je();return/Edg/i.test(e)}function Ve(){var e=je();return!Ie()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function ze(){var e=je();return/Safari/i.test(e)&&!Ve()&&!Be()&&!Ie()}var Ue=function(e,t){switch(!1){case!(null==e):return;case!z()(e.getAttribute):return e.getAttribute("data-".concat(t));case!z()(e.getAttr):return e.getAttr("data-".concat(t));case!z()(e.data):return e.data(t);case!(z()("undefined"!==typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&I()(e)):return jQuery(e).data(t)}},He=function(e,t,n){switch(!1){case!(null==e):return;case!z()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!z()(e.setAttr):return e.setAttr("data-".concat(t),n);case!z()(e.data):return e.data(t,n);case!(z()("undefined"!==typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&I()(e)):return jQuery(e).data(t,n)}},qe=function(e,t){switch(!1){case!(null==e):return;case!z()(e.getAttribute):return e.getAttribute(t);case!z()(e.attr):return e.attr(t);case!z()(e.getAttr):return e.getAttr(t)}},We=function(e,t,n){switch(!1){case!(null==e):return;case!z()(e.setAttribute):return e.setAttribute(t,n);case!z()(e.attr):return e.attr(t,n);case!z()(e.setAttr):return e.setAttr(t,n)}},$e=function(e,t){switch(!1){case!(null==e):return;case!z()(e.removeAttribute):return e.removeAttribute(t);default:return We(e,void 0)}},Ke=function(e,t){var n,i,r;for(n in i=[],t)null!=(r=t[n])?i.push(We(e,n,r)):i.push($e(e,n));return i},Ge=function(e,t){if(I()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},Ze=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=H()("".concat(e.className," ").concat(t))},Ye=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},Xe=["Top","Right","Bottom","Left"];pe=function(e,t){var n,i;return n=9===e.nodeType?e.documentElement:e,e===(i=t&&t.parentNode)||!(!i||1!==i.nodeType||!n.contains(i))};var Je=function(e,t){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return e.style[t]},Qe=function(e,t,n){var i,r,s,o,a,l;return o=/^margin/,l=void 0,r=void 0,i=void 0,s=void 0,a=e.style,(n=n||Ye(e))&&(s=n.getPropertyValue(t)||n[t]),n&&(""!==s||pe(e.ownerDocument,e)||(s=Je(e,t)),nt.test(s)&&o.test(t)&&(l=a.width,r=a.minWidth,i=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=l,a.minWidth=r,a.maxWidth=i)),void 0!==s?s+"":s},et=function(e,t,n,i){var r;return r=Qe(e,t,i),n?parseFloat(r):r},tt=function(e,t,n,i,r){var s,o,a,l,c;if(n===(i?"border":"content"))return 0;for(c=0,s=0,o=(l="width"===t?["Right","Left"]:["Top","Bottom"]).length;s<o;s++)a=l[s],"margin"===n&&(c+=et(e,n+a,!0,r)),i?("content"===n&&(c-=et(e,"padding".concat(a),!0,r)),"margin"!==n&&(c-=et(e,"border".concat(a,"Width"),!0,r))):(c+=et(e,"padding".concat(a),!0,r),"padding"!==n&&(c+=et(e,"border".concat(a,"Width"),!0,r)));return c},nt=new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),it=function(e,t,n){var i,r,s,o;if(o=!0,s="width"===t?e.offsetWidth:e.offsetHeight,r=Ye(e),i="border-box"===et(e,"boxSizing",!1,r),s<=0||null==s){if(((s=Qe(e,t,r))<0||null==s)&&(s=e.style[t]),nt.test(s))return s;o=i&&s===e.style[t],s=parseFloat(s)||0}return s+tt(e,t,n||(i?"border":"content"),o,r)},rt=function(e){return it(e,"width","content")};function st(e){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st(e)}function ot(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,at(i.key),i)}}function at(e){var t=function(e,t){if("object"!=st(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=st(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==st(t)?t:t+""}var lt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.expressions=[],null!=t&&this.expressions.push(e.normalize(t))}return function(e,t,n){return t&&ot(e.prototype,t),n&&ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"serialize",value:function(){return e.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(t,n,i){return null!=e.OPERATORS[n]&&(n=e.OPE
25RATORS[n]),this.expressions.push("".concat(t,"_").concat(n,"_").concat(i)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}],[{key:"new",value:function(e){return new this(e)}},{key:"normalize",value:function(t){if(null==t)return t;t=String(t);var n=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");t=t.replace(n,(function(t){return e.OPERATORS[t]}));var i="("+Object.keys(e.PREDEFINED_VARS).map((function(e){return":".concat(e,"|").concat(e)})).join("|")+")",r=new RegExp("".concat("(\\$_*[^_ ]+)","|").concat(i),"g");return(t=t.replace(r,(function(t){return e.PREDEFINED_VARS[t]||t}))).replace(/[ _]+/g,"_")}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}])}();lt.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},lt.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},lt.BOUNDRY="[ _]+";var ct=lt;function ut(e){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut(e)}function ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,dt(i.key),i)}}function dt(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ut(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ut(t)?t:t+""}function ft(e,t,n){return t=mt(t),function(e,t){if(t&&("object"==ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pt()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pt=function(){return!!e})()}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}var vt=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ft(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(t,e),function(e,t,n){return t&&ht(e.prototype,t),n&&ht(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"duration",value:function(e,t){return this.predicate("du",e,t)}},{key:"initialDuration",value:function(e,t){return this.predicate("idu",e,t)}}])}(ct),yt=vt;function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}
vendor: 9,489 bytes, line 25
25finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function _t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Et(i.key),i)}}function Et(e){var t=function(e,t){if("object"!=bt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=bt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bt(t)?t:t+""}var Ot=function(){return function(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.configuration=null==t?{}:b()(t),be(this.configuration,kt)}),[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(e,t){return this.configuration[e]=t,this}},{key:"get",value:function(e){return this.configuration[e]}},{key:"merge",value:function(e){return v()(this.configuration,b()(e)),this}},{key:"fromDocument",value:function(){var e,t,n,i;if(i="undefined"!==typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(t=0,n=i.length;t<n;t++)e=i[t],this.configuration[e.getAttribute("name").replace("cloudinary_","")]=e.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var e,t,n,i=this;return"undefined"!==typeof process&&null!==process&&process.env&&process.env.CLOUDINARY_URL&&(e=process.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(t=n[5])&&t.split("&").forEach((function(e){var t=wt(e.split("="),2),n=t[0],r=t[1];null==r&&(r=!0),i.configuration[n]=r})))),this}},{key:"config",value:function(e,t){switch(!1){case void 0===t:return this.set(e,t),this.configuration;case!M()(e):return this.get(e);case!F()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return b()(this.configuration)}}])}(),kt={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!==typeof window&&null!==window&&window.location?window.location.protocol:void 0)};Ot.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var At=Ot;function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function xt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Pt(i.key),i)}}function Pt(e){var t=function(e,t){if("object"!=Ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ct(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ct(t)?t:t+""}var Tt=function(){return function(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={},null!=t&&["resourceType","type","publicId","format"].forEach((function(e){var i;return n.options[e]=null!=(i=t[e])?i:t[Ce(e)]}))}),[{key:"resourceType",value:function(e){return this.options.resourceType=e,this}},{key:"type",value:function(e){return this.options.type=e,this}},{key:"publicId",value:function(e){return this.options.publicId=e,this}},{key:"getPublicId",value:function(){var e;return null!=(e=this.options.publicId)?e.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(e){return this.options.format=e,this}},{key:"toString",value:function(){var e;if(e=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&e.push(this.options.resourceType),"upload"!==this.options.type&&e.push(this.options.type),e.push(this.getFullPublicId()),S()(e).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}])}(),Nt=Tt;function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function Ft(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Dt(i.key),i)}}function Dt(e){var t=function(e,t){if("object"!=Lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Lt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lt(t)?t:t+""}function Mt(e,t,n){return t=jt(t),function(e,t){if(t&&("object"==Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rt()?Reflect.construct(t,n||[],jt(e).constructor):t.apply(e,n))}function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rt=function(){return!!e})()}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(e)}function Bt(e,t){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bt(e,t)}var It=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Mt(this,t,[e]),null!=e&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"].forEach((function(t){var i;return n.options[t]=null!=(i=e[t])?i:e[Ce(t)]})),n.options.resourceType="text",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bt(e,t)}(t,e),function(e,t,n){return t&&Ft(e.prototype,t),n&&Ft(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"resourceType",value:function(e){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(e){throw"Cannot modify type for text layers"}},{key:"format",value:function(e){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(e){return this.options.fontFamily=e,this}},{key:"fontSize",value:function(e){return this.options.fontSize=e,this}},{key:"fontWeight",value:function(e){return this.options.fontWeight=e,this}},{key:"fontStyle",value:function(e){return this.options.fontStyle=e,this}},{key:"textDecoration",value:function(e){return this.options.textDecoration=e,this}},{key:"textAlign",value:function(e){return this.options.textAlign=e,this}},{key:"stroke",value:function(e){return this.options.stroke=e,this}},{key:"letterSpacing",value:function(e){return this.options.letterSpacing=e,this}},{key:"lineSpacing",value:function(e){return this.options.lineSpacing=e,this}},{key:"fontHinting",value:function(e){return this.options.fontHinting=e,this}},{key:"fontAntialiasing",value:function(e){return this.options.fontAntialiasing=e,this}},{key:"text",value:function(e){return this.options.text=e,this}},{key:"textStyle",value:function(e){return this.options.textStyle=e,this}},{key:"toString",value:function(){var e,t,n,i,r,s,o,a,l,c;if(a=this.textStyleIdentifier(),null!=this.options.publicId&&(i=this.getFullPublicId()),null!=this.options.text){if(t=!Re(i),n=!Re(a),t&&n||
25!t&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(r=/\$\([a-zA-Z]\w*\)/g,o=0,c=ye(this.options.text,/[,\/]/g),l="";s=r.exec(c);)l+=ye(c.slice(o,s.index)),l+=s[0],o=s.index+s[0].length;l+=ye(c.slice(o))}return e=[this.options.resourceType,a,i,l],S()(e).join(":")}},{key:"textStyleIdentifier",value:function(){if(!Re(this.options.textStyle))return this.options.textStyle;var e;if(e=[],"normal"!==this.options.fontWeight&&e.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&e.push(this.options.fontStyle),"none"!==this.options.textDecoration&&e.push(this.options.textDecoration),e.push(this.options.textAlign),"none"!==this.options.stroke&&e.push(this.options.stroke),Re(this.options.letterSpacing)&&!ve(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),Re(this.options.lineSpacing)&&!ve(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),Re(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),Re(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!Re(S()(e))){if(Re(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(Re(this.options.fontSize)&&!ve(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=S()(e).join("_")}}])}(Nt),Vt=It;function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}function Ut(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ht(i.key),i)}}function Ht(e){var t=function(e,t){if("object"!=zt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=zt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zt(t)?t:t+""}function qt(e,t,n){return t=$t(t),function(e,t){if(t&&("object"==zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wt()?Reflect.construct(t,n||[],$t(e).constructor):t.apply(e,n))}function Wt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wt=function(){return!!e})()}function $t(e){return $t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$t(e)}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kt(e,t)}var Gt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=qt(this,t,[e])).options.resourceType="subtitles",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kt(e,t)}(t,e),function(e,t,n){return t&&Ut(e.prototype,t),n&&Ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(Vt),Zt=Gt;function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function Xt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Jt(i.key),i)}}function Jt(e){var t=function(e,t){if("object"!=Yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Yt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yt(t)?t:t+""}function Qt(e,t,n){return t=tn(t),function(e,t){if(t&&("object"==Yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,en()?Reflect.construct(t,n||[],tn(e).constructor):t.apply(e,n))}function en(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(en=function(){return!!e})()}
25function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tn(e)}function nn(e,t){return nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nn(e,t)}var rn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Qt(this,t,[e]),M()(e)?n.options.url=e:(null!=e?e.url:void 0)&&(n.options.url=e.url),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(t,e),function(e,t,n){return t&&Xt(e.prototype,t),n&&Xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"url",value:function(e){return this.options.url=e,this}},{key:"toString",value:function(){return"fetch:".concat(Le(this.options.url))}}])}(Nt),sn=rn;function on(e,t,n){return t=un(t),function(e,t){if(t&&("object"==fn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,an()?Reflect.construct(t,n||[],un(e).constructor):t.apply(e,n))}function an(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(an=function(){return!!e})()}function ln(e,t,n,i){var r=cn(un(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function cn(){return cn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=un(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},cn.apply(null,arguments)}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function hn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dn(e,t)}function dn(e,t){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dn(e,t)}function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vn(i.key),i)}}function gn(e,t,n){return t&&mn(e.prototype,t),n&&mn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vn(e){var t=function(e,t){if("object"!=fn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=fn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fn(t)?t:t+""}var yn=function(){return gn((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.a;pn(this,e),this.name=t,this.shortName=n,this.process=i}),[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return e=this.value(),t=N()(e)||F()(e)||M()(e)?!Re(e):null!=e,null!=this.shortName&&t?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:N()(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level,"b_frames"in e&&!1===e.b_frames&&(t+=":bframes_no")))),t;case String:return e;default:return null}}}])}(),bn=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return pn(this,t),(i=on(this,t,[e,n,s])).sep=r,i}return hn(t,e),gn(t,[{key:"serialize",value:function(){if(null!=this.shortName){var e=this.value();if(Re(e))return"";if(M()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map((function(e){return z()(e.serialize)?e.serialize():e})).join(this.sep);return"".concat(this.shortName,"_").concat(t)}return""}},{key:"value",value:function(){var e=this;return N()(this.origValue)?this.origValue.map((function(t){return e.process(t)})):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||N()(e)?ln(t,"set",this,3)([e]):ln(t,"
25set",this,3)([[e]])}}])}(yn),wn=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return pn(this,t),(n=on(this,t,[e,i,s])).sep=r,n}return hn(t,e),gn(t,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(Re(n))return t;if(me(n)){var i=n.join(this.sep);Re(i)||(t="".concat(this.shortName,"_").concat(i))}else t=n.map((function(t){return M()(t)&&!Re(t)?"".concat(e.shortName,"_").concat(t):z()(t.serialize)?t.serialize():F()(t)&&!Re(t)?new zn(t).serialize():void 0})).filter((function(e){return e}));return t}},{key:"set",value:function(e){return this.origValue=e,N()(this.origValue)?ln(t,"set",this,3)([this.origValue]):ln(t,"set",this,3)([[this.origValue]])}}])}(yn),Sn=function(e){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.norm_range_value;return pn(this,t),on(this,t,[e,n,i])}return hn(t,e),gn(t,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return ct.normalize(e)}}])}(yn),_n=function(e){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.a;return pn(this,t),on(this,t,[e,n,i])}return hn(t,e),gn(t,[{key:"serialize",value:function(){return this.value()}}])}(yn),En=function(e){function t(){return pn(this,t),on(this,t,arguments)}return hn(t,e),gn(t,[{key:"value",value:function(){if(null==this.origValue)return"";var e;if(this.origValue instanceof Nt)e=this.origValue;else if(F()(this.origValue)){var t=Pe(this.origValue);e="text"===t.resourceType||null!=t.text?new Vt(t):"subtitles"===t.resourceType?new Zt(t):"fetch"===t.resourceType||null!=t.url?new sn(t):new Nt(t)}else e=M()(this.origValue)?/^fetch:.+/.test(this.origValue)?new sn(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new Vt(e).textStyleIdentifier()}}])}(yn);function On(e,t,n){return t=An(t),function(e,t){if(t&&("object"==Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kn()?Reflect.construct(t,n||[],An(e).constructor):t.apply(e,n))}function kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kn=function(){return!!e})()}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},An(e)}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cn(e,t)}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Dn(i.key),i)}}function Fn(e,t,n){return t&&Ln(e.prototype,t),n&&Ln(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dn(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Tn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tn(t)?t:t+""}function Mn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];
vendor: 18,742 bytes, line 25
25return n.forEach((function(t){Object.keys(t).forEach((function(n){null!=t[n]&&(e[n]=t[n])}))})),e}var Rn=function(){function e(t){var n,i;Nn(this,e),n=void 0,i={},this.toOptions=function(e){var t={};if(null==e&&(e=!0),Object.keys(i).forEach((function(e){return t[e]=i[e].origValue})),Mn(t,this.otherOptions),e&&!Re(this.chained)){var n=this.chained.map((function(e){return e.toOptions()}));n.push(t),Mn(t={},this.otherOptions),t.transformation=n}return t},this.setParent=function(e){return n=e,null!=e&&this.fromOptions("function"===typeof e.toOptions?e.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(e,t,n,r,s){return null==s&&(s=z()(r)?r:C.a),i[t]=new yn(t,n,s).set(e),this},this.rawParam=function(e,t,n,r,s){return s=Bn(arguments),i[t]=new _n(t,n,s).set(e),this},this.rangeParam=function(e,t,n,r,s){return s=Bn(arguments),i[t]=new Sn(t,n,s).set(e),this},this.arrayParam=function(e,t,n){var r,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";return r=Bn(arguments),i[t]=new bn(t,n,s,r).set(e),this},this.transformationParam=function(e,t,n){var r,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";return r=Bn(arguments),i[t]=new wn(t,n,s,r).set(e),this},this.layerParam=function(e,t,n){return i[t]=new En(t,n).set(e),this},this.getValue=function(e){var t=i[e]&&i[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return i[e]},this.remove=function(e){var t;switch(!1){case null==i[e]:return t=i[e],delete i[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return function(){var t;for(e in t=[],i)null!=e&&t.push(e.match(jn)?e:Ce(e));return t}().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},i)e[t]=i[t].value(),F()(e[t])&&(e[t]=b()(e[t]));return Re(this.chained)||((n=this.chained.map((function(e){return e.toPlainObject()}))).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(i).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return i={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return Fn(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t instanceof e)this.fromTransformation(t);else for(var n in(M()(t)||N()(t))&&(t={transformation:t}),(t=b()(t,(function(t){if(t instanceof e||t instanceof Layer)return new t.clone}))).if&&(this.set("if",t.if),delete t.if),t){var i=t[n];null!=i&&(n.match(jn)?"$attr"!==n&&this.set("variable",n,i):this.set(n,i))}return this}},{key:"fromTransformation",value:function(t){var n=this;return t instanceof e&&t.keys().forEach((function(e){return n.set(e,t.get(e).origValue)})),this}},{key:"set",value:function(e){var t;t=Ae(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return P()(Vn.methods,t)?this[t].apply(this,i):this.otherOptions[e]=i[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var e,t,n,i,r,s,o,a,l,c,u,h,d,f,p,m,g;for(c=this.chained.map((function(e){return e.serialize()})),i=this.keys(),f=null!=(r=this.get("transformation"))?r.serialize():void 0,e=null!=(s=this.get("if"))?s.serialize():void 0,m=function(e){var t,n,i,r,s;if(N()(e)){for(r=[],t=0,n=e.length;t<n;t++){var o=xn(e[t],2);i=o[0],s=o[1],r.push("".concat(i,"_").concat(ct.normalize(s)))}return r}return e}(null!=(o=this.get("variables"))?o.value():void 0),i=E()(i,["transformation","if","variables"]),g=[],h=[],t=0,n=i.length;t<n;t++)(u=i[t]).match(jn)?g.push(u+"_"+ct.normalize(null!=(a=this.get(u))?a.value():void 0)):h.push(null!=(l=this.get(u))?l.serialize():void 0);switch(!1){case!M()(f):h.push(f);break;case!N()(f):c=c.concat(f)}return h=function(){var e,t,n;for(n=[],e=0,t=h.length;e<t;e++)p=h[e],(N()(p)&&!Re(p)||!N()(p)&&p)&&n.push(p);return n}(),h=g.sort().concat(m).concat(h.sort()),"if_end"===e?h.push(e):Re(e)||h.unshift(e),Re(d=S()(h).join(this.param_separator))||c.push(d),S()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,i,r,s,o,a,l=this;return n={},Object.keys(this.otherOptions).forEach((function(t){s=l.otherOptions[t],a=Ce(t),P()(Vn.PARAM_NAMES,a)||P()(ce,a)||(e=/^html_/.test(t)?t.slice(5):t,n[e]=s)})),this.keys().forEach((function(e){/^html_/.test(e)&&(n[Ae(e.slice(5))]=l.getValue(e))})),this.hasLayer()||this.getValue("angle")||P()(["fit","limit","lfill"],this.getValue("crop"))||(o=null!=(i=this.get("width"))?i.origValue:void 0,t=null!=(r=this.get("height"))?r.origValue:void 0,parseFloat(o)>=1&&null==n.width&&(n.width=o),parseFloat(t)>=1&&null==n.height&&(n.height=t)),n}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"===typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return Vn.methods}},{key:"isValidParamName",value:function(e){return Vn.methods.indexOf(Ae(e))>=0}}])}(),jn=/^\$[a-zA-Z0-9]+$/;function Bn(e){var t;return t=null!=e?e[e.length-1]:void 0,z()(t)?t:void 0}function In(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}Rn.prototype.trans_separator="/",Rn.prototype.param_separator=",";var Vn=function(e){function t(e){return Nn(this,t),On(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}(t,e),Fn(t,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",ct.normalize)}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac")}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af")}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",ct.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",yn.norm_color)}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br")}},{key:"border",value:function(e){return this.param(e,"border","bo",(function(e){return F()(e)?(e=v()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(yn.norm_color(e.color))):e}))}},{key:"color",value:function(e){return this.param(e,"color","co",yn.norm_color)}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs")}},{key:"crop",value:function(e){return this.param(e,"crop","c")}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",(function(){return In(e)}))}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",(function(){return(e=In(e))?"fn_pre:".concat(e):e}))}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d")}},{key:"delay",value:function(e){return this.param(e,"delay","dl")}},{key:"density",value:function(e){return this.param(e,"density","dn")}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du")}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",(function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":ct.normalize(e)}))}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",ct.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo")}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content")}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f")}},{key:"format",value:function(e){return this.param(e,"format")}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl",".")}},{key:"gravity",value:function(e){return this.param(e,"gravity","g")}},{key:"fps",value:function(e){return this.param(e,"fps","fps",(function(e){return M()(e)?e:N()(e)?e.join("-"):e}))}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",(function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ct.normalize(e):null}))}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height")}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width")}},{key:"if",value:function(){var e,n,i,r,s,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(o){case"else":return this.chain(),this.param(o,"if","if");case"end":for(this.chain(),e=i=this.chained.length-1;i>=0&&"end"!==(n=this.chained[e].getValue("if"))&&(null==n||(r=t.new().if(n),this.chained[e].remove("if"),s=this.chained[e],this.chained[e]=t.new().transformation([r,s]),"else"===n));e=i+=-1);return this.param(o,"if","if");case"":return yt.new().setParent(this);default:return this.param(o,"if","if",(function(e){return yt.new(e).toString()}))}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki")}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr")}},{key:"offset",value:function(e){var t,n,i=xn(z()(null!=e?e.split:void 0)?e.split(".."):N()(e)?e:[null,null],2);if(n=i[0],t=i[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",ct.normalize)}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l")}},{key:"page",value:function(e){return this.param(e,"page","pg")}},{key:"poster",value:function(e){return this.param(e,"poster")}},{key:"prefix",value:function(e){return this.param(e,"prefix","p")}},{key:"quality",value:function(e){return this.param(e,"quality","q",ct.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",ct.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(z()(null!=e?e.split:void 0)){var i=xn(e.split("x"),2);return n=i[0],t=i[1],this.width(n),this.height(t)}}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types")}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so")}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp")}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t")}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u")}},{key:"variable",value:function(e,t){return this.param(t,e,e)}},{key:"variables",value:function(e){return this.arrayParam(e,"variables")}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",yn.process_video_params)}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs")}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",(function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ct.normalize(e):null}))}},{key:"x",value:function(e){return this.param(e,"x","x",ct.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",ct.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",ct.normalize)}}],[{key:"new",value:function(e){return new t(e)}}])}(Rn);Vn.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],Vn.PARAM_NAMES=Vn.methods.map(Ce).concat(At.CONFIG_PARAMS);var zn=Vn;function Un(e){return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(e)}function Hn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qn(i.key),i)}}function qn(e){var t=function(e,t){if("object"!=Un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Un(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Un(t)?t:t+""}var Wn=function(){return function(e,t,n){return t&&Hn(e.prototype,t),n&&Hn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,i){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.publicId=n,null==i&&(F()(n)?(i=n,this.publicId=void 0):i={}),(r=new zn(i)).setParent(this),this.transformation=function(){return r}}),[{key:"htmlAttrs",value:function(e){var t,n;return function(){var i;for(t in i=[],e)(n=Kn(e[t]))&&i.push($n(t,n));return i}().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(e){return this.transformation().getValue(e)}},{key:"attributes",value:function(){var e=this.transformation().toHtmlAttributes();return Object.keys(e).forEach((function(t){F()(e[t])&&delete e[t]})),e.attributes&&(j()(e,e.attributes),delete e.attributes),e}},{key:"setAttr",value:function(e,t){return this.transformation().set("html_".concat(e),t),this}},{key:"getAttr",value:function(e){return this.attributes()["html_".concat(e)]||this.attributes()[e]}},{key:"removeAttr",value:function(e){var t;return null!=(t=this.transformation().remove("html_".concat(e)))?t:this.transformation().remove(e)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var e="<"+this.name,t=this.htmlAttrs(this.attributes());return t&&t.length>0&&(e+=" "+t),e+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var e,t,n,i;if(!z()("undefined"!==typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(t in e=document.createElement(this.name),n=this.attributes())i=n[t],e.setAttribute(t,i);return e}}],[{key:"new",value:function(e,t,n){return new this(e,t,n)}},{key:"isResponsive",value:function(e,t){var n;return n=Ue(e,"src-cache")||Ue(e,"src"),Ge(e,t)&&/\bw_auto\b/.exec(n)}}])}();function $n(e,t){return t?!0===t?e:"".concat(e,'="').concat(t,'"'):void 0}function Kn(e){return M()(e)?e.replace('"',""").replace("'","'"):e}var Gn=Wn,Zn=["placeholder","accessibility"];function Yn(e){return!!e&&!!e.match(/^https?:\//)}function Xn(e,t){if(t.cloud_name&&"/"===t.cloud_name[0])return"/res"+t.cloud_name;var n="http://",i="",r="res",s=".cloudinary.com",a="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(i=t.cloud_name+"-",a=""),t.cdn_subdomain&&(r="res-"+function(e){return o(e)%5+1}(e)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(r="res"),null!=t.secure_distribution&&t.secure_distribution!==Y&&t.secure_distribution!==J&&(i="",r="",s=t.secure_distribution)):t.cname&&(n="http://",i="",r=t.cdn_subdomain?"a"+(o(e)%5+1)+".":"",s=t.cname),[n,i,r,s,a].join("")}function Jn(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function Qn(e){var t=e||{},n=t.placeholder,i=t.accessibility,r=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,Zn),s=new zn(r);return i&&le[i]&&s.chain().effect(le[i]),n&&("predominant-color"===n&&s.getValue("width")&&s.getValue("height")&&(n+="-pixel"),(ae[n]||ae.blur).forEach((function(e){return s.chain().transformation(e)}))),s.serialize()}function ei(e,t){var n,i,r=t.type;return Yn(e)||"fetch"!==r?e:(n=e,i=document.location.protocol+"//"+document.location.host,"?"===n[0]?i+=document.location.pathname:"/"!==n[0]&&(i+=document.location.pathname.replace(/\/[^\/]*$/,"/")),i+n)}function ti(e,t){if(Yn(e)&&("upload"===t.type||"asset"===t.type))return e;var n=function(e,t){var n=t.force_version||"undefined"===typeof t.force_version,i=e.indexOf("/")<0||e.match(/^v[0-9]+/)||Yn(e)||t.version;return n&&!i&&(t.version=1),t.version?"v".concat(t.version):""}(e,t),i=Qn(t),r=Xn(e,t),s=function(e){var t=e.signature,n=!t||0===t.indexOf("s--")&&"--"===t.substr(-2);return delete e.signature,n?t:"s--".concat(t,"--")}(t),o=function(e){var t,n=e.resource_type,i=void 0===n?"image":n,r=e.type,s=void 0===r?"upload":r,o=e.url_suffix,a=e.use_root_path,l=e.shorten,c=i;if(F()(c)&&(c=(t=c).resource_type,s=t.type,l=t.shorten),null==s&&(s="upload"),null!=o&&(c=ne["".concat(c,"/").concat(s)],s=null,null==c))throw new Error("URL Suffix only supported for ".concat(Object.keys(ne).join(", ")));if(a){if(("image"!==c||"upload"!==s)&&"images"!==c)throw new Error("Root path only supported for image/upload");c=null,s=null}return l&&"image"===c&&"upload"===s&&(c="iu",s=null),[c,s].join("/")}(t);return e=function(e,t){if(Yn(e))e=Jn(e);else{try{e=decodeURIComponent(e)}catch(n){}e=Jn(e),t.url_suffix&&(e=e+"/"+t.url_suffix),t.format&&(t.trust_public_id||(e=e.replace(/\.(jpg|png|gif|webp)$/,"")),e=e+"."+t.format)}return e}(e,t),S()([r,o,s,i,n,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}function ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return e;t=function(e,t){return e instanceof zn&&(e=e.toOptions()),"fetch"===(e=be({},e,t,ie)).type&&(e.fetch_format=e.fetch_format||e.format),e}(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e=ei(e,t);var n=function(e){var t=e.cloud_name,n=e.url_suffix;return t?n&&n.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name"}(t);if(n)throw n;var i=ti(e,t);if(t.urlAnalytics){var r=p(m(t)),s="?";i.indexOf("?")>
25=0&&(s="&"),i="".concat(i).concat(s,"_a=").concat(r)}if(t.auth_token){var o=i.indexOf("?")>=0?"&":"?";i="".concat(i).concat(o,"__cld_token__=").concat(t.auth_token)}return i}function ii(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ri(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var si=Re;function oi(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=Fe(i);return n=n||i,r.raw_transformation=new zn([j.a({},n),{crop:"scale",width:t}]).toString(),ni(e,r)}function ai(e){return function(e){var t=e.breakpoints||[];if(t.length)return t;var n=ii([e.min_width,e.max_width,e.max_images].map(Number),3),i=n[0],r=n[1],s=n[2];if([i,r,s].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(i>r)throw"min_width must be less than max_width";if(s<=0)throw"max_images must be a positive integer";1===s&&(i=r);for(var o=Math.ceil((r-i)/Math.max(s-1,1)),a=i;a<r;a+=o)t.push(a);return t.push(r),t}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function li(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r={};if(si(n))return r;var s=!t.sizes&&!0===n.sizes,o=!t.srcset;if(o||s){var a=ai(e,n,i);if(o){var l=function(e,t,n,i){return De(i=b.a(i)),t.map((function(t){return"".concat(oi(e,t,n,i)," ").concat(t,"w")})).join(", ")}(e,a,n.transformation,i);si(l)||(r.srcset=l)}if(s){var c=function(e){return null==e?"":e.map((function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")})).join(", ")}(a);si(c)||(r.sizes=c)}}return r}function ci(e){return ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ci(e)}function ui(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hi(i.key),i)}}function hi(e){var t=function(e,t){if("object"!=ci(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ci(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ci(t)?t:t+""}function di(e,t,n){return t=mi(t),function(e,t){if(t&&("object"==ci(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fi()?Reflect.construct(t,n||[],mi(e).constructor):t.apply(e,n))}function fi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fi=function(){return!!e})()}function pi(){return pi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=mi(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},pi.apply(null,arguments)}
25function mi(e){return mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mi(e)}function gi(e,t){return gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gi(e,t)}var vi=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),di(this,t,["img",e,n])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gi(e,t)}(t,e),function(e,t,n){return t&&ui(e.prototype,t),n&&ui(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e,n,i;e=function(e,t,n,i){var r=pi(mi(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"attributes",this,3)([])||{},n=this.getOptions();var r=this.getOption("attributes")||{},s=this.getOption("srcset")||r.srcset,o={};return M()(s)?o.srcset=s:o=li(this.publicId,r,s,n),Re(o)||(delete e.width,delete e.height),j()(e,o),null==e[i=n.responsive&&!n.client_hints?"data-src":"src"]&&(e[i]=ni(this.publicId,this.getOptions())),e}}])}(Gn),yi=vi;function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Si(i.key),i)}}function Si(e){var t=function(e,t){if("object"!=bi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=bi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bi(t)?t:t+""}function _i(e,t,n){return t=ki(t),function(e,t){if(t&&("object"==bi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ei()?Reflect.construct(t,n||[],ki(e).constructor):t.apply(e,n))}function Ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ei=function(){return!!e})()}function Oi(){return Oi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ki(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Oi.apply(null,arguments)}function ki(e){return ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ki(e)}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ai(e,t)}var Ci=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_i(this,t,["source",e,n])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(t,e),function(e,t,n){return t&&wi(e.prototype,t),n&&wi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e=this.getOption("srcset"),n=function(e,t,n,i){var r=Oi(ki(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"attributes",this,3)([])||{},i=this.getOptions();return j()(n,li(this.publicId,n,e,i)),n.srcset||(n.srcset=ni(this.publicId,i)),!n.media&&i.media&&(n.media=function(e){var t=[];return null!=e&&(null!=e.min_width&&t.push("(min-width: ".concat(e.min_width,"px)")),null!=e.max_width&&t.push("(max-width: ".concat(e.max_width,"px)"))),t.join(" and ")}(i.media)),n}}])}(Gn),xi=Ci;function Pi(e){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(e)}function Ti(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ni(i.key),i)}}function Ni(e){var t=function(e,t){if("object"!=Pi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Pi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pi(t)?t:t+""}function Li(e,t,n){return t=Mi(t),function(e,t){if(t&&("object"==Pi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fi()?Reflect.construct(t,n||[],Mi(e).constructor):t.apply(e,n))}function Fi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fi=function(){return!!e})()}function Di(){return Di="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Mi(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Di.apply(null,arguments)}
25function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}function Ri(e,t){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ri(e,t)}var ji=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Li(this,t,["picture",e,i])).widthList=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ri(e,t)}(t,e),function(e,t,n){return t&&Ti(e.prototype,t),n&&Ti(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"content",value:function(){var e=this;return this.widthList.map((function(t){var n=t.min_width,i=t.max_width,r=t.transformation,s=e.getOptions(),o=new zn(s);return o.chain().fromOptions("string"===typeof r?{raw_transformation:r}:r),(s=Fe(s)).media={min_width:n,max_width:i},s.transformation=o,new xi(e.publicId,s).toHtml()})).join("")+new yi(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=function(e,t,n,i){var r=Di(Mi(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"attributes",this,3)([]);return delete e.width,delete e.height,e}},{key:"closeTag",value:function(){return"</"+this.name+">"}}])}(Gn),Bi=ji;function Ii(e){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(e)}function Vi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,zi(i.key),i)}}function zi(e){var t=function(e,t){if("object"!=Ii(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ii(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ii(t)?t:t+""}function Ui(e,t,n){return t=Wi(t),function(e,t){if(t&&("object"==Ii(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Hi()?Reflect.construct(t,n||[],Wi(e).constructor):t.apply(e,n))}function Hi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hi=function(){return!!e})()}function qi(){return qi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Wi(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},qi.apply(null,arguments)}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wi(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$i(e,t)}var Ki=["source_types","source_transformation","fallback_content","poster","sources"],Gi=["webm","mp4","ogv"],Zi={format:"jpg",resource_type:"video"},Yi=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=be({},n,re),Ui(this,t,["video",e.replace(/\.(mp4|ogv|webm)$/,""),n])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$i(e,t)}(t,e),function(e,t,n){return t&&Vi(e.prototype,t),n&&Vi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"setSourceTransformation",value:function(e){return this.transformation().sourceTransformation(e),this}},{key:"setSourceTypes",value:function(e){return this.transformation().sourceTypes(e),this}},{key:"setPoster",value:function(e){return this.transformation().poster(e),this}},{key:"setFallbackContent",value:function(e){return this.transformation().fallbackContent(e),this}},{key:"content",value:function(){var e=this,t=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),i=this.transformation().getValue("fallback_content"),r=this.getOption("sources"),s=[];return N()(r)&&!Re(r)?s=r.map((function(t){var n=ni(e.publicId,be({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)})):(Re(t)&&(t=Gi),N()(t)&&(s=t.map((function(t){var i=ni(e.publicId,be({},n[t]||{},{resource_type:"video",format:t}),e.getOptions());return e.createSourceTag(i,t)})))),s.join("")+i}},{key:"attributes",value:function(){var e=this.getOption("source_types"),n=this.getOption("poster");if(void 0===n&&(n={}),F()(n)){var i=null!=n.public_id?ie:Zi;n=ni(n.public_id||this.publicId,be({},n,i,this.getOptions()))}var r=function(e,t,n,i){var r=qi(Wi(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"attributes",this,3)([])||{};return r=he(r,Ki),!Re(this.getOption("sources"))||Re(e)||N()(e)||(r.src=ni(this.publicId,this.getOptions(),{resource_type:"video",format:e})),null!=n&&(r.poster=n),r}},{key:"createSourceTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;return Re(t)||(i="video/"+("ogv"===t?"ogg":t),Re(n)||(i+="; codecs="+(N()(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:e,type:i})+">"}}])}(Gn),Xi=Yi;function Ji(e){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ji(e)}function Qi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,er(i.key),i)}}function er(e){var t=function(e,t){if("object"!=Ji(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ji(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ji(t)?t:t+""}function tr(e,t,n){return t=ir(t),function(e,t){if(t&&("object"==Ji(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nr()?Reflect.construct(t,n||[],ir(e).constructor):t.apply(e,n))}function nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nr=function(){return!!e})()}function ir(e){return ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ir(e)}function rr(e,t){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rr(e,t)}var sr=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tr(this,t,["meta",void 0,v()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},e)])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}(t,e),function(e,t,n){return t&&Qi(e.prototype,t),n&&Qi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"closeTag",value:function(){return""}}])}(Gn),or=sr;function ar(e){return function(e){if(Array.isArray(e))return lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var cr=function(e,t,n,i){return new Promise((function(r,s){e.innerHTML=t.videoTag(n,i).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",r(e)}))},ur=function(e,t){e.transformation?e.transformation.push({flags:[t]}):(e.flags||(e.flags=[]),"string"===typeof e.flags&&(e.flags=[e.flags]),e.flags.push(t))}
vendor: 11,697 bytes, line 25
25,hr=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||Q,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=oe.seeThru),ur(e,"alpha")},dr=function(e,t,n){return new Promise((function(i,r){if(n)i();else{var s=document.createElement("script");s.src=e;var o=setTimeout((function(){r({status:"error",message:"Timeout loading script ".concat(e)})}),t);s.onerror=function(){clearTimeout(o),r({status:"error",message:"Error loading ".concat(e)})},s.onload=function(){clearTimeout(o),i()},document.head.appendChild(s)}}))};function fr(e){return new Promise((function(t,n){fetch(e).then((function(e){e.blob().then((function(e){t(e)}))})).catch((function(){n("error")}))}))}function pr(e){return new Promise((function(t,n){var i=new XMLHttpRequest;i.responseType="blob",i.onload=function(e){t(i.response)},i.onerror=function(){n("error")},i.open("GET",e,!0),i.send()}))}var mr,gr,vr,yr,br,wr,Sr=function(e,t){return new Promise((function(n,i){var r=function(e,t){return setTimeout((function(){t({status:"error",message:"Timeout loading Blob URL"})}),e)}(t,i);("undefined"!==typeof fetch&&fetch?fr:pr)(e).then((function(e){n({status:"success",payload:{blobURL:URL.createObjectURL(e)}})})).catch((function(){i({status:"error",message:"Error loading Blob URL"})})).finally((function(){clearTimeout(r)}))}))},_r=function(e){var t=e.autoplay,n=e.playsinline,i=e.loop,r=e.muted,s=e.poster,o=e.blobURL,a=e.videoURL,l=document.createElement("video");return l.style.visibility="hidden",l.position="absolute",l.x=0,l.y=0,l.src=o,l.setAttribute("data-video-url",a),t&&l.setAttribute("autoplay",t),n&&l.setAttribute("playsinline",n),i&&l.setAttribute("loop",i),r&&l.setAttribute("muted",r),r&&(l.muted=r),s&&l.setAttribute("poster",s),l.onload=function(){URL.revokeObjectURL(o)},l},Er=function(e,t,n,i){var r=window,s=r.seeThru,o=r.setTimeout,a=r.clearTimeout;return new Promise((function(r,l){var c=o((function(){l({status:"error",message:"Timeout instantiating seeThru instance"})}),t);if(s)var u=s.create(e).ready((function(){a(c);var e=u.getCanvas();e.style.width="100%",e.className+=" "+n,i&&u.play(),r(u)}));else l({status:"error",message:"Error instantiating seeThru instance"})}))},Or=function(e,t,n){var i=n.poster,r=n.autoplay,s=n.playsinline,o=n.loop,a=n.muted;return t+=".mp4",new Promise((function(l,c){dr(n.externalLibraries.seeThru,n.max_timeout_ms,window.seeThru).then((function(){Sr(t,n.max_timeout_ms).then((function(u){var h=u.payload,d=_r({blobURL:h.blobURL,videoURL:t,poster:i,autoplay:r,playsinline:s,loop:o,muted:a});e.appendChild(d),Er(d,n.max_timeout_ms,n.class,n.autoplay).then((function(){l(e)})).catch((function(e){c(e)}))})).catch((function(e){var t=e.status,n=e.message;c({status:t,message:n})}))})).catch((function(e){var t=e.status,n=e.message;c({status:t,message:n})}))}))},kr=function(){return new Promise((function(e,t){ze()&&e(!1);var n=document.createElement("video"),i=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');e("maybe"===i||"probably"===i)}))};function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Cr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xr(i.key),i)}}function xr(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ar(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:t+""}vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t*Math.ceil(e/t)},gr=function(e,t){var n;for(n=e.length-2;n>=0&&e[n]>=t;)n--;return e[n+1]},mr=function(e,t,n,i){var r,s,o,a;return!(a=null!=(r=null!=(s=null!=(o=i.responsive_use_breakpoints)?o:i.responsive_use_stoppoints)?s:this.config("responsive_use_breakpoints"))?r:this.config("responsive_use_stoppoints"))||"resize"===a&&!i.resizing?t:this.calc_breakpoint(e,t,n)},yr=function(e){var t,n;for(t=0;(e=null!=e?e.parentNode:void 0)instanceof Element&&!t;)n=window.getComputedStyle(e),/^inline/.test(n.display)||(t=rt(e));return t},wr=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},br=function(e,t){var n;return e>(n=Ue(t,"width")||0)&&(n=e,He(t,"width",e)),n};var Pr=function(){return function(e,t,n){return t&&Cr(e.prototype,t),n&&Cr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,n=new At(t),this.config=function(e,t){return n.config(e,t)},this.fromDocument=function(){return n.fromDocument(),this},this.fromEnvironment=function(){return n.fromEnvironment(),this},this.init=function(){return n.init(),this}}),[{key:"url",value:function(e){return ni(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.config())}},{key:"video_url",value:function(e,t){return t=v()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=v()({},ee,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new zn(e).serialize()}},{key:"image",value:function(e){var t,n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(e,r),t=null!=(i=null!=r.client_hints?r.client_hints:this.config("client_hints"))&&i,null!=r.src||t||n.setAttr("src",""),n=n.toDOM(),t||(He(n,"src-cache",this.url(e,r)),this.cloudinary_update(n,r)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new yi(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var i;return(i=new Bi(e,this.config(),n)).transformation().fromOptions(t),i}},{key:"sourceTag",value:function(e,t){var n;return(n=new xi(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,j()({},ee,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,v()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,v()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,v()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,v()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,v()({type:"fetch"},t))}},{key:"video",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(e,t).toHtml()}},{key:"videoTag",value:function(e,t){return t=be({},t,this.config()),new Xi(e,t)}},{key:"sprite_css",value:function(e,t){return t=v()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,i,r,s,o=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=j()(this.responsiveConfig||{},e),r=null!=(t=this.responsiveConfig.responsive_class)?t:this.config("responsive_class"),a&&this.cloudinary_update("img.".concat(r,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(i=this.responsiveConfig.responsive_resize)?i:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,s=null;var l=function(){var e,t,n,i,a,l;return e=null!=(t=null!=(n=o.responsiveConfig.responsive_debounce)?n:o.config("responsive_debounce"))?t:100,i=function(){s&&(clearTimeout(s),s=null)},a=function(){return o.cloudinary_update("img.".concat(r),o.responsiveConfig)},l=function(){return i(),a()},e?(i(),void(s=setTimeout(l,e))):a()};return window.addEventListener("resize",l),function(){return window.removeEventListener("resize",l)}}}},{key:"calc_breakpoint",value:function(e,t,n){var i=Ue(e,"breakpoints")||Ue(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||vr;return z()(i)?i(t,n):(M()(i)&&(i=i.split(",").map((function(e){return parseInt(e)})).sort((function(e,t){return e-t}))),gr(i,t))}},{key:"calc_stoppoint",value:function(e,t,n){return this.calc_breakpoint(e,t,n)}},{key:"device_pixel_ratio",value:function(e){e=null==e||e;var t=("undefined"!==typeof window&&null!==window?window.devicePixelRatio:void 0)||1;e&&(t=Math.ceil(t)),(t<=0||NaN===t)&&(t=1);var n=t.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(e,t){if(Re(e))return this;t=be({},t||{},this.config());var n=e.filter((function(e){return/^img$/i.test(e.tagName)})).map((function(e){var n=v()({width:e.getAttribute("width"),height:e.getAttribute("height"),src:e.getAttribute("src")},t),i=n.source||n.src;delete n.source,delete n.src;var r=new zn(n).toHtmlAttributes();return He(e,"src-cache",ni(i,n)),e.setAttribute("width",r.width),e.setAttribute("height",r.height),e}));return this.cloudinary_update(n,t),this}},{key:"cloudinary_update",value:function(e,t){var n,i,r,s,o=this;if(null===e)return this;null==t&&(t={});var a,l=null!=t.responsive?t.responsive:this.config("responsive");e=function(e){return N()(e)?e:"NodeList"===e.constructor.name?ar(e):M()(e)?Array.prototype.slice.call(document.querySelectorAll(e),0):[e]}(e),a=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=t.responsive_class?t.responsive_class:this.config("responsive_class");var c=null!=t.round_dpr?t.round_dpr:this.config("round_dpr");return e.forEach((function(u){if(/img/i.test(u.tagName)){var h=!0;if(l&&Ze(u,a),!Re(i=Ue(u,"src-cache")||Ue(u,"src"))){i=wr.call(o,i,c),Gn.isResponsive(u,a)&&(0!==(n=yr(u))?(/w_auto:breakpoints/.test(i)?(s=br(n,u))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(s)):h=!1:(r=/w_auto(:(\d+))?/.exec(i))&&(s=mr.call(o,u,n,r[2],t),(s=br(s,u))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(s)):h=!1),$e(u,"width"),t.responsive_preserve_height||$e(u,"height")):h=!1);var d="lazy"===t.loading&&!o.isNativeLazyLoadSupported()&&o.isLazyLoadSupported()&&!e[0].getAttribute("src");(h||d)&&o.setAttributeIfExists(e[0],"width","data-width"),h&&!d&&We(u,"src",i)}}})),this}},{key:"setAttributeIfExists",value:function(e,t,n){var i=e.getAttribute(n);null!=i&&We(e,t,i)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(e){return zn.new(this.config()).fromOptions(e).setParent(this)}},{key:"injectTransparentVideoElement",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,s){e||s({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),hr(i);var o=n.video_url(t,i);kr().then((function(a){var l;a?(l=cr(e,n,t,i),r(e)):l=Or(e,o,i),l.then((function(){r(e)})).catch((function(e){var t=e.status,n=e.message;s({status:t,message:n})}))})).catch((function(e){var t=e.status,n=e.message;s({status:t,message:n})}))}))}}],[{key:"new",value:function(e){return new this(e)}}])}();v()(Pr,i);var Tr=Pr;t.default={ClientHintsMetaTag:or,Cloudinary:Tr,Condition:yt,Configuration:At,crc32:o,Expression:ct,FetchLayer:sn,HtmlTag:Gn,ImageTag:yi,Layer:Nt,PictureTag:Bi,SubtitlesLayer:Zt,TextLayer:Vt,Transformation:zn,utf8_encode:s,Util:r,VideoTag:Xi}}
25,"lodash/assign":function(t,n){t.exports=e},"lodash/cloneDeep":function(e,n){e.exports=t},"lodash/compact":function(e,t){e.exports=n},"lodash/difference":function(e,t){e.exports=i},"lodash/functions":function(e,t){e.exports=r},"lodash/identity":function(e,t){e.exports=s},"lodash/includes":function(e,t){e.exports=o},"lodash/isArray":function(e,t){e.exports=a},"lodash/isElement":function(e,t){e.exports=l},"lodash/isFunction":function(e,t){e.exports=c},"lodash/isPlainObject":function(e,t){e.exports=u},"lodash/isString":function(e,t){e.exports=h},"lodash/merge":function(e,t){e.exports=d},"lodash/trim":function(e,t){e.exports=f}})},e.exports=i(n(86139),n(88055),n(83673),n(66245),n(24233),n(83488),n(79859),n(56449),n(1900),n(1882),n(11331),n(85015),n(55364),n(44826))},39786(e,t,n){var i,r;!function(s,o){"use strict";void 0===(r="function"===typeof(i=o)?i.call(t,n,t,e):i)||(e.exports=r)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var i=t[n]+"MatchesSelector";if(e[i])return i}}();return function(t,n){return t[e](n)}}))},14263(e,t,n){var i,r,s;!function(){"use strict";r=[n(40343)],void 0===(s="function"===typeof(i=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,i=/^(eval@)?(\[native code])?$/;return{parse:function(e){if("undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;var r=this.extractLocation(i?i[1]:n),s=i&&n||void 0,o=["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0];return new e({functionName:s,fileName:o,lineNumber:r[1],columnNumber:r[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(i)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=t.match(n),r=i&&i[1]?i[1]:void 0,s=this.extractLocation(t.replace(n,""));return new e({functionName:r,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,i=t.message.split("\n"),r=[],s=2,o=i.length;s<o;s+=2){var a=n.exec(i[s]);a&&r.push(new e({fileName:a[2],lineNumber:a[1],source:i[s]}))}return r},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,i=t.stacktrace.split("\n"),r=[],s=0,o=i.length;s<o;s+=2){var a=n.exec(i[s]);a&&r.push(new e({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:i[s]}))}return r},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var n,i=t.split("@"),r=this.extractLocation(i.pop()),s=i.shift()||"",o=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;s.match(/\(([^)]*)\)/)&&(n=s.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:o,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})}),this)}}})?i.apply(t,r):i)||(e.exports=s)}()},32137(e,t,n){var i,r;"undefined"!=typeof window&&window,void 0===(r="function"===typeof(i=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return-1!=i&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var i=this._onceEvents&&this._onceEvents[e],r=0;r<n.length;r++){var s=n[r];i&&i[s]&&(this.off(e,s),delete i[s]),s.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?i.call(t,n,t,e):i)||(e.exports=r)},977(e,t,n){var i,r;!function(s){i=[n(39786)],r=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},i=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null===e||void 0===e?[]:"object"==typeof e&&"number"==typeof e.length?
vendor: 3,300 bytes, line 25
25i.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,i){e=n.makeArray(e);var r=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(i){t(e,i)&&r.push(e);for(var n=e.querySelectorAll(i),s=0;s<n.length;s++)r.push(n[s])}else r.push(e)})),r},n.debounceMethod=function(e,t,n){n=n||100;var i=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];clearTimeout(e);var t=arguments,s=this;this[r]=setTimeout((function(){i.apply(s,t),delete s[r]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var r=e.console;return n.htmlInit=function(t,i){n.docReady((function(){var s=n.toDashed(i),o="data-"+s,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+s),c=n.makeArray(a).concat(n.makeArray(l)),u=o+"-options",h=e.jQuery;c.forEach((function(e){var n,s=e.getAttribute(o)||e.getAttribute(u);try{n=s&&JSON.parse(s)}catch(l){return void(r&&r.error("Error parsing "+o+" on "+e.className+": "+l))}var a=new t(e,n);h&&h.data(e,i,a)}))}))},n}(s,e)}.apply(t,i),void 0===r||(e.exports=r)}(window)},21485(e,t,n){var i,r;window,void 0===(r="function"===typeof(i=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}var n="undefined"==typeof console?t:function(e){console.error(e)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=i.length;function s(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[i[t]]=0;return e}function o(e){var t=getComputedStyle(e);return t||n("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var a,l=!1;function c(){if(!l){l=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var i=o(t);a=200==Math.round(e(i.width)),u.isBoxSizeOuter=a,n.removeChild(t)}}function u(t){if(c(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var n=o(t);if("none"==n.display)return s();var l={};l.width=t.offsetWidth,l.height=t.offsetHeight;for(var u=l.isBorderBox="border-box"==n.boxSizing,h=0;h<r;h++){var d=i[h],f=n[d],p=parseFloat(f);l[d]=isNaN(p)?0:p}var m=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,v=l.marginLeft+l.marginRight,y=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,w=l.borderTopWidth+l.borderBottomWidth,S=u&&a,_=e(n.width);!1!==_&&(l.width=_+(S?0:m+b));var E=e(n.height);return!1!==E&&(l.height=E+(S?0:g+w)),l.innerWidth=l.width-(m+b),l.innerHe
25ight=l.height-(g+w),l.outerWidth=l.width+v,l.outerHeight=l.height+y,l}}return u})?i.call(t,n,t,e):i)||(e.exports=r)},87136(e,t,n){"use strict";n.d(t,{F2:()=>ge});var i=n(58156),r=n.n(i),s=n(61448),o=n.n(s),a=n(55364),l=n.n(a),c=n(63375),u=n.n(c);const h=(e,t)=>{const n=[],i=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map((e=>e.toString())).forEach((function(t){if(i.includes(t)||i.push(t),!e.enableFallback)return;const n=t.split("-");3===n.length&&i.push(`${n[0]}-${n[1]}`),i.push(n[0])})),u()(i)};class d{constructor(e){this.i18n=e,this.registry={},this.register("default",h)}register(e,t){if("function"!==typeof t){const e=t;t=()=>e}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"===typeof t&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}}const f=function({pluralizer:e,includeZero:t=!0,ordinal:n=!1}){return function(i,r){return[t&&0===r?"zero":"",e(r,n)].filter(Boolean)}}({pluralizer:(e,t)=>{const n=String(e).split("."),i=!n[1],r=Number(n[0])==e,s=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?1==s&&11!=o?"one":2==s&&12!=o?"two":3==s&&13!=o?"few":"other":1==e&&i?"one":"other"},includeZero:!0});class p{constructor(e){this.i18n=e,this.registry={},this.register("default",f)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}var m=n(84058),g=n.n(m);function v(e){return e?Object.keys(e).reduce(((t,n)=>(t[g()(n)]=e[n],t)),{}):{}}function y(e){return void 0!==e&&null!==e}var b=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,w=Math.ceil,S=Math.floor,_="[BigNumber Error] ",E=_+"Number primitive has more than 15 significant digits: ",O=1e14,k=14,A=9007199254740991,C=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],x=1e7,P=1e9;function T(e){var t=0|e;return e>0||e===t?t:t-1}function N(e){for(var t,n,i=1,r=e.length,s=e[0]+"";i<r;){for(t=e[i++]+"",n=k-t.length;n--;t="0"+t);s+=t}for(r=s.length;48===s.charCodeAt(--r););return s.slice(0,r+1||1)}function L(e,t){var n,i,r=e.c,s=t.c,o=e.s,a=t.s,l=e.e,c=t.e;if(!o||!a)return null;if(n=r&&!r[0],i=s&&!s[0],n||i)return n?i?0:-a:o;if(o!=a)return o;if(n=o<0,i=l==c,!r||!s)return i?0:!r^n?1:-1;if(!i)return l>c^n?1:-1;for(a=(l=r.length)<(c=s.length)?l:c,o=0;o<a;o++)if(r[o]!=s[o])return r[o]>s[o]^n?1:-1;return l==c?0:l>c^n?1:-1}function F(e,t,n,i){if(e<t||e>n||e!==S(e))throw Error(_+(i||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function D(e){var t=e.c.length-1;return T(e.e/k)==t&&e.c[t]%2!=0}function M(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function R(e,t,n){var i,r;if(t<0){for(r=n+".";++t;r+=n);e=r+e}else if(++t>(i=e.length)){for(r=n,t-=i;--t;r+=n);e+=r}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}var j=function e(t){var n,i,r,s,o,a,l,c,u,h,d=q.prototype={constructor:q,toString:null,valueOf:null},f=new q(1),p=20,m=4,g=-7,v=21,y=-1e7,j=1e7,B=!1,I=1,V=0,z={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function q(e,t){var n,s,o,a,l,c,u,h,d=this;if(!(d instanceof q))return new q(e,t);if(null==t){if(e&&!0===e._isBigNumber)return d.s=e.s,void(!e.c||e.e>j?d.c=d.e=null:e.e<y?d.c=[d.e=0]:(d.e=e.e,d.c=e.c.slice()));if((c="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(a=0,l=e;l>=10;l/=10,a++);return void(a>j?d.c=d.e=null:(d.e=a,d.c=[e]))}h=String(e)}else{if(!b.test(h=String(e)))return r(d,h,c);d.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(a=h.indexOf("."))>-1&&(h=h.replace(".","")),(l=h.search(/e/i))>0?(a<0&&(a=l),a+=+h.slice(l+1),h=h.substring(0,l)):a<0&&(a=h.length)}else{if(F(t,2,U.length,"Base"),10==t&&H)return G(d=new q(e),p+d.e+1,m);if(h=String(e),c="number"==typeof e){if(0*e!=0)return r(d,h,c,t);if(d.s=1/e<0?(h=h.slice(1),-1):1,q.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(E+e)}else d.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=U.slice(0,t),a=l=0,u=h.length;l<u;l++)if(n.indexOf(s=h.charAt(l))<0){if("."==s){if(l>a){a=u;continue}}else if(!o&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){o=!0,l=-1,a=0;continue}return r(d,String(e),c,t)}c=!1,(a=(h=i(h,t,10,d.s)).indexOf("."))>-1?h=h.replace(".",""):a=h.length}for(l=0;
vendor: 5,358 bytes, line 25
2548===h.charCodeAt(l);l++);for(u=h.length;48===h.charCodeAt(--u););if(h=h.slice(l,++u)){if(u-=l,c&&q.DEBUG&&u>15&&(e>A||e!==S(e)))throw Error(E+d.s*e);if((a=a-l-1)>j)d.c=d.e=null;else if(a<y)d.c=[d.e=0];else{if(d.e=a,d.c=[],l=(a+1)%k,a<0&&(l+=k),l<u){for(l&&d.c.push(+h.slice(0,l)),u-=k;l<u;)d.c.push(+h.slice(l,l+=k));l=k-(h=h.slice(l)).length}else l-=u;for(;l--;h+="0");d.c.push(+h)}}else d.c=[d.e=0]}function W(e,t,n,i){var r,s,o,a,l;if(null==n?n=m:F(n,0,8),!e.c)return e.toString();if(r=e.c[0],o=e.e,null==t)l=N(e.c),l=1==i||2==i&&(o<=g||o>=v)?M(l,o):R(l,o,"0");else if(s=(e=G(new q(e),t,n)).e,a=(l=N(e.c)).length,1==i||2==i&&(t<=s||s<=g)){for(;a<t;l+="0",a++);l=M(l,s)}else if(t-=o,l=R(l,s,"0"),s+1>a){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=s-a)>0)for(s+1==a&&(l+=".");t--;l+="0");return e.s<0&&r?"-"+l:l}function $(e,t){for(var n,i=1,r=new q(e[0]);i<e.length;i++){if(!(n=new q(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function K(e,t,n){for(var i=1,r=t.length;!t[--r];t.pop());for(r=t[0];r>=10;r/=10,i++);return(n=i+n*k-1)>j?e.c=e.e=null:n<y?e.c=[e.e=0]:(e.e=n,e.c=t),e}function G(e,t,n,i){var r,s,o,a,l,c,u,h=e.c,d=C;if(h){e:{for(r=1,a=h[0];a>=10;a/=10,r++);if((s=t-r)<0)s+=k,o=t,u=(l=h[c=0])/d[r-o-1]%10|0;else if((c=w((s+1)/k))>=h.length){if(!i)break e;for(;h.length<=c;h.push(0));l=u=0,r=1,o=(s%=k)-k+1}else{for(l=a=h[c],r=1;a>=10;a/=10,r++);u=(o=(s%=k)-k+r)<0?0:l/d[r-o-1]%10|0}if(i=i||t<0||null!=h[c+1]||(o<0?l:l%d[r-o-1]),i=n<4?(u||i)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||i||6==n&&(s>0?o>0?l/d[r-o]:0:h[c-1])%10&1||n==(e.s<0?8:7)),t<1||!h[0])return h.length=0,i?(t-=e.e+1,h[0]=d[(k-t%k)%k],e.e=-t||0):h[0]=e.e=0,e;if(0==s?(h.length=c,a=1,c--):(h.length=c+1,a=d[k-s],h[c]=o>0?S(l/d[r-o]%d[o])*a:0),i)for(;;){if(0==c){for(s=1,o=h[0];o>=10;o/=10,s++);for(o=h[0]+=a,a=1;o>=10;o/=10,a++);s!=a&&(e.e++,h[0]==O&&(h[0]=1));break}if(h[c]+=a,h[c]!=O)break;h[c--]=0,a=1}for(s=h.length;0===h[--s];h.pop());}e.e>j?e.c=e.e=null:e.e<y&&(e.c=[e.e=0])}return e}function Z(e){var t,n=e.e;return null===n?e.toString():(t=N(e.c),t=n<=g||n>=v?M(t,n):R(t,n,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(_+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(F(n=e[t],0,P,t),p=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(F(n=e[t],0,8,t),m=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(F(n[0],-P,0,t),F(n[1],0,P,t),g=n[0],v=n[1]):(F(n,-P,P,t),g=-(v=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)F(n[0],-P,-1,t),F(n[1],1,P,t),y=n[0],j=n[1];else{if(F(n,-P,P,t),!n)throw Error(_+t+" cannot be zero: "+n);y=-(j=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(_+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw B=!n,Error(_+"crypto unavailable");B=n}else B=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(F(n=e[t],0,9,t),I=n),e.hasOwnProperty(t="POW_PRECISION")&&(F(n=e[t],0,P,t),V=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(_+t+" not an object: "+n);z=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(_+t+" invalid: "+n);H="0123456789"==n.slice(0,10),U=n}}return{DECIMAL_PLACES:p,ROUNDING_MODE:m,EXPONENTIAL_AT:[g,v],RANGE:[y,j],CRYPTO:B,MODULO_MODE:I,POW_PRECISION:V,FORMAT:z,ALPHABET:U}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,n,i=e.c,r=e.e,s=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===s||-1===s)&&r>=-P&&r<=P&&r===S(r)){if(0===i[0]){if(0===r&&1===i.length)return!0;break e}if((t=(r+1)%k)<1&&(t+=k),String(i[0]).length==t){for(t=0;t<i.length;t++)if((n=i[t])<0||n>=O||n!==S(n))break e;if(0!==n)return!0}}}else if(null===i&&null===r&&(null===s||1===s||-1===s))return!0;throw Error(_+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return $(arguments,d.lt)},q.minimum=q.min=function(){return $(arguments,d.gt)},q.random=(s=9007199254740992,o=Math.random()*s&2097151?function(){return S(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,i,r,s,a=0,l=[],c=new q(f);if(null==e?e=p:F(e,0,P),r=w(e/k),B)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(r*=2));a<r;)(s=131072*t[a]+(t[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[a]=n[0],t[a+1]=n[1]):(l.push(s%1e14),a+=2);a=r/2}else{if(!crypto.randomBytes)throw B=!1,Error(_+"crypto unavailable");for(t=crypto.randomBytes(r*=7);a<r;)(s=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(l.push(s%1e14),a+=7);a=r/7}if(!B)for(;a<r;)(s=o())<9e15&&(l[a++]=s%1e14);for(r=l[--a],e%=k,r&&e&&(s=C[k-e],l[a]=S(r/s)*s);0===l[a];l.pop(),a--);if(a<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=k);for(a=1,s=l[0];s>=10;s/=10,a++);a<k&&(i-=k-a)}return c.e=i,c.c=l,c}),q.sum=function(){for(var e=1,t=arguments,n=new q(t[0]);e<t.length;)n=n.plus(t[e++]);return n},i=function(){var e="0123456789";function t(e,t,n,i){for(var r,s,o=[0],a=0,l=e.length;a<l;){for(s=o.length;s--;o[s]*=t);
vendor: 5,531 bytes, line 25
25for(o[0]+=i.indexOf(e.charAt(a++)),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,s,o,a){var l,c,u,h,d,f,g,v,y=i.indexOf("."),b=p,w=m;for(y>=0&&(h=V,V=0,i=i.replace(".",""),f=(v=new q(r)).pow(i.length-y),V=h,v.c=t(R(N(f.c),f.e,"0"),10,s,e),v.e=v.c.length),u=h=(g=t(i,r,s,a?(l=U,e):(l=e,U))).length;0==g[--h];g.pop());if(!g[0])return l.charAt(0);if(y<0?--u:(f.c=g,f.e=u,f.s=o,g=(f=n(f,v,b,w,s)).c,d=f.r,u=f.e),y=g[c=u+b+1],h=s/2,d=d||c<0||null!=g[c+1],d=w<4?(null!=y||d)&&(0==w||w==(f.s<0?3:2)):y>h||y==h&&(4==w||d||6==w&&1&g[c-1]||w==(f.s<0?8:7)),c<1||!g[0])i=d?R(l.charAt(1),-b,l.charAt(0)):l.charAt(0);else{if(g.length=c,d)for(--s;++g[--c]>s;)g[c]=0,c||(++u,g=[1].concat(g));for(h=g.length;!g[--h];);for(y=0,i="";y<=h;i+=l.charAt(g[y++]));i=R(i,u,l.charAt(0))}return i}}(),n=function(){function e(e,t,n){var i,r,s,o,a=0,l=e.length,c=t%x,u=t/x|0;for(e=e.slice();l--;)a=((r=c*(s=e[l]%x)+(i=u*s+(o=e[l]/x|0)*c)%x*x+a)/n|0)+(i/x|0)+u*o,e[l]=r%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,i){var r,s;if(n!=i)s=n>i?1:-1;else for(r=s=0;r<n;r++)if(e[r]!=t[r]){s=e[r]>t[r]?1:-1;break}return s}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*i+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,r,s,o,a){var l,c,u,h,d,f,p,m,g,v,y,b,w,_,E,A,C,x=i.s==r.s?1:-1,P=i.c,N=r.c;if(!P||!P[0]||!N||!N[0])return new q(i.s&&r.s&&(P?!N||P[0]!=N[0]:N)?P&&0==P[0]||!N?0*x:x/0:NaN);for(g=(m=new q(x)).c=[],x=s+(c=i.e-r.e)+1,a||(a=O,c=T(i.e/k)-T(r.e/k),x=x/k|0),u=0;N[u]==(P[u]||0);u++);if(N[u]>(P[u]||0)&&c--,x<0)g.push(1),h=!0;else{for(_=P.length,A=N.length,u=0,x+=2,(d=S(a/(N[0]+1)))>1&&(N=e(N,d,a),P=e(P,d,a),A=N.length,_=P.length),w=A,y=(v=P.slice(0,A)).length;y<A;v[y++]=0);C=N.slice(),C=[0].concat(C),E=N[0],N[1]>=a/2&&E++;do{if(d=0,(l=t(N,v,A,y))<0){if(b=v[0],A!=y&&(b=b*a+(v[1]||0)),(d=S(b/E))>1)for(d>=a&&(d=a-1),p=(f=e(N,d,a)).length,y=v.length;1==t(f,v,p,y);)d--,n(f,A<p?C:N,p,a),p=f.length,l=1;else 0==d&&(l=d=1),p=(f=N.slice()).length;if(p<y&&(f=[0].concat(f)),n(v,f,y,a),y=v.length,-1==l)for(;t(N,v,A,y)<1;)d++,n(v,A<y?C:N,y,a),y=v.length}else 0===l&&(d++,v=[0]);g[u++]=d,v[0]?v[y++]=P[w]||0:(v=[P[w]],y=1)}while((w++<_||null!=v[0])&&x--);h=null!=v[0],g[0]||g.splice(0,1)}if(a==O){for(u=1,x=g[0];x>=10;x/=10,u++);G(m,s+(m.e=u+c*k-1)+1,o,h)}else m.e=c,m.r=+h;return m}}(),a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,l=/^([^.]+)\.$/,c=/^\.([^.]+)$/,u=/^-?(Infinity|NaN)$/,h=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(e,t,n,i){var r,s=n?t:t.replace(h,"");if(u.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(a,(function(e,t,n){return r="x"==(n=n.toLowerCase())?16:"b"==n?2:8,i&&i!=r?e:t})),i&&(r=i,s=s.replace(l,"$1").replace(c,"0.$1")),t!=s))return new q(s,r);if(q.DEBUG)throw Error(_+"Not a"+(i?" base "+i:"")+" number: "+t);e.s=null}e.c=e.e=null},d.absoluteValue=d.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},d.comparedTo=function(e,t){return L(this,new q(e,t))},d.decimalPlaces=d.dp=function(e,t){var n,i,r,s=this;if(null!=e)return F(e,0,P),null==t?t=m:F(t,0,8),G(new q(s),e+s.e+1,t);if(!(n=s.c))return null;if(i=((r=n.length-1)-T(this.e/k))*k,r=n[r])for(;r%10==0;r/=10,i--);return i<0&&(i=0),i},d.dividedBy=d.div=function(e,t){return n(this,new q(e,t),p,m)},d.dividedToIntegerBy=d.idiv=function(e,t){return n(this,new q(e,t),0,1)},d.exponentiatedBy=d.pow=function(e,t){var n,i,r,s,o,a,l,c,u=this;if((e=new q(e)).c&&!e.isInteger())throw Error(_+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new q(t)),o=e.e>14,!u.c||!u.c[0]||1==u.c[0]&&!u.e&&1==u.c.length||!e.c||!e.c[0])return c=new q(Math.pow(+Z(u),o?e.s*(2-D(e)):+Z(e))),t?c.mod(t):c;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(i=!a&&u.isInteger()&&t.isInteger())&&(u=u.mod(t))}else{if(e.e>9&&(u.e>0||u.e<-1||(0==u.e?u.c[0]>1||o&&u.c[1]>=24e7:u.c[0]<8e13||o&&u.c[0]<=9999975e7)))return s=u.s<0&&D(e)?-0:0,u.e>-1&&(s=1/s),new q(a?1/s:s);V&&(s=w(V/k+2))}for(o?(n=new q(.5),a&&(e.s=1),l=D(e)):l=(r=Math.abs(+Z(e)))%2,c=new q(f);;){if(l){if(!(c=c.times(u)).c)break;s?c.c.length>s&&(c.c.length=s):i&&(c=c.mod(t))}if(r){if(0===(r=S(r/2)))break;l=r%2}else if(G(e=e.times(n),e.e+1,1),e.e>14)l=D(e);else{if(0===(r=+Z(e)))break;l=r%2}u=u.times(u),s?u.c&&u.c.length>s&&(u.c.length=s):i&&(u=u.mod(t))}return i?c:(a&&(c=f.div(c)),t?c.mod(t):s?G(c,V,m,undefined):c)},d.integerValue=function(e){var t=new q(this);return null==e?e=m:F(e,0,8),G(t,t.e+1,e)},d.isEqualTo=d.eq=function(e,t){return 0===L(this,new q(e,t))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(e,t){return L(this,new q(e,t))>0},d.isGreaterThanOrEqualTo=d.gte=function(e,t){return 1===(t=L(this,new q(e,t)))||0===t},d.isInteger=function(){return!!this.c&&T(this.e/k)>this.c.length-2},d.isLessThan=d.lt=function(e,t){return L(this,new q(e,t))<0},d.isLessThanOrEqualTo=d.lte=function(e,t){return-1===(t=L(this,new q(e,t)))||0===t},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(e,t){var n,i,r,s,o=this,a=o.s;if(t=(e=new q(e,t)).s,!a||!t)return new q(NaN);if(a!=t)return e.s=-t,o.plus(e);var l=o.e/k,c=e.e/k,u=o.c,h=e.c;if(!l||!c){if(!u||!h)return u?(e.s=-t,e):new q(h?o:NaN);if(!u[0]||!h[0])return h[0]?(e.s=-t,e):new q(u[0]?o:3==m?-0:0)}if(l=T(l),c=T(c),u=u.slice(),a=l-c){for((s=a<0)?(a=-a,r=u):(c=l,r=h),r.reverse(),t=a;t--;r.push(0));r.reverse()}else for(i=(s=(a=u.length)<(t=h.length))?a:t,a=t=0;t<i;t++)if(u[t]!=h[t]){s=u[t]<h[t];break}
vendor: 5,473 bytes, line 25
25if(s&&(r=u,u=h,h=r,e.s=-e.s),(t=(i=h.length)-(n=u.length))>0)for(;t--;u[n++]=0);for(t=O-1;i>a;){if(u[--i]<h[i]){for(n=i;n&&!u[--n];u[n]=t);--u[n],u[i]+=O}u[i]-=h[i]}for(;0==u[0];u.splice(0,1),--c);return u[0]?K(e,u,c):(e.s=3==m?-1:1,e.c=[e.e=0],e)},d.modulo=d.mod=function(e,t){var i,r,s=this;return e=new q(e,t),!s.c||!e.s||e.c&&!e.c[0]?new q(NaN):!e.c||s.c&&!s.c[0]?new q(s):(9==I?(r=e.s,e.s=1,i=n(s,e,0,3),e.s=r,i.s*=r):i=n(s,e,0,I),(e=s.minus(i.times(e))).c[0]||1!=I||(e.s=s.s),e)},d.multipliedBy=d.times=function(e,t){var n,i,r,s,o,a,l,c,u,h,d,f,p,m,g,v=this,y=v.c,b=(e=new q(e,t)).c;if(!y||!b||!y[0]||!b[0])return!v.s||!e.s||y&&!y[0]&&!b||b&&!b[0]&&!y?e.c=e.e=e.s=null:(e.s*=v.s,y&&b?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=T(v.e/k)+T(e.e/k),e.s*=v.s,(l=y.length)<(h=b.length)&&(p=y,y=b,b=p,r=l,l=h,h=r),r=l+h,p=[];r--;p.push(0));for(m=O,g=x,r=h;--r>=0;){for(n=0,d=b[r]%g,f=b[r]/g|0,s=r+(o=l);s>r;)n=((c=d*(c=y[--o]%g)+(a=f*c+(u=y[o]/g|0)*d)%g*g+p[s]+n)/m|0)+(a/g|0)+f*u,p[s--]=c%m;p[s]=n}return n?++i:p.splice(0,1),K(e,p,i)},d.negated=function(){var e=new q(this);return e.s=-e.s||null,e},d.plus=function(e,t){var n,i=this,r=i.s;if(t=(e=new q(e,t)).s,!r||!t)return new q(NaN);if(r!=t)return e.s=-t,i.minus(e);var s=i.e/k,o=e.e/k,a=i.c,l=e.c;if(!s||!o){if(!a||!l)return new q(r/0);if(!a[0]||!l[0])return l[0]?e:new q(a[0]?i:0*r)}if(s=T(s),o=T(o),a=a.slice(),r=s-o){for(r>0?(o=s,n=l):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=l.length)<0&&(n=l,l=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+l[t]+r)/O|0,a[t]=O===a[t]?0:a[t]%O;return r&&(a=[r].concat(a),++o),K(e,a,o)},d.precision=d.sd=function(e,t){var n,i,r,s=this;if(null!=e&&e!==!!e)return F(e,1,P),null==t?t=m:F(t,0,8),G(new q(s),e,t);if(!(n=s.c))return null;if(i=(r=n.length-1)*k+1,r=n[r]){for(;r%10==0;r/=10,i--);for(r=n[0];r>=10;r/=10,i++);}return e&&s.e+1>i&&(i=s.e+1),i},d.shiftedBy=function(e){return F(e,-9007199254740991,A),this.times("1e"+e)},d.squareRoot=d.sqrt=function(){var e,t,i,r,s,o=this,a=o.c,l=o.s,c=o.e,u=p+4,h=new q("0.5");if(1!==l||!a||!a[0])return new q(!l||l<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(l=Math.sqrt(+Z(o)))||l==1/0?(((t=N(a)).length+c)%2==0&&(t+="0"),l=Math.sqrt(+t),c=T((c+1)/2)-(c<0||c%2),i=new q(t=l==1/0?"5e"+c:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+c)):i=new q(l+""),i.c[0])for((l=(c=i.e)+u)<3&&(l=0);;)if(s=i,i=h.times(s.plus(n(o,s,u,1))),N(s.c).slice(0,l)===(t=N(i.c)).slice(0,l)){if(i.e<c&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(G(i,i.e+p+2,1),e=!i.times(i).eq(o));break}if(!r&&(G(s,s.e+p+2,0),s.times(s).eq(o))){i=s;break}u+=4,l+=4,r=1}return G(i,i.e+p+1,m,e)},d.toExponential=function(e,t){return null!=e&&(F(e,0,P),e++),W(this,e,t,1)},d.toFixed=function(e,t){return null!=e&&(F(e,0,P),e=e+this.e+1),W(this,e,t)},d.toFormat=function(e,t,n){var i,r=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=z;else if("object"!=typeof n)throw Error(_+"Argument not an object: "+n);if(i=r.toFixed(e,t),r.c){var s,o=i.split("."),a=+n.groupSize,l=+n.secondaryGroupSize,c=n.groupSeparator||"",u=o[0],h=o[1],d=r.s<0,f=d?u.slice(1):u,p=f.length;if(l&&(s=a,a=l,l=s,p-=s),a>0&&p>0){for(s=p%a||a,u=f.substr(0,s);s<p;s+=a)u+=c+f.substr(s,a);l>0&&(u+=c+f.slice(s)),d&&(u="-"+u)}i=h?u+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):u}return(n.prefix||"")+i+(n.suffix||"")},d.toFraction=function(e){var t,i,r,s,o,a,l,c,u,h,d,p,g=this,v=g.c;if(null!=e&&(!(l=new q(e)).isInteger()&&(l.c||1!==l.s)||l.lt(f)))throw Error(_+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Z(l));if(!v)return new q(g);for(t=new q(f),u=i=new q(f),r=c=new q(f),p=N(v),o=t.e=p.length-g.e-1,t.c[0]=C[(a=o%k)<0?k+a:a],e=!e||l.comparedTo(t)>0?o>0?t:u:l,a=j,j=1/0,l=new q(p),c.c[0]=0;h=n(l,t,0,1),1!=(s=i.plus(h.times(r))).comparedTo(e);)i=r,r=s,u=c.plus(h.times(s=u)),c=s,t=l.minus(h.times(s=t)),l=s;return s=n(e.minus(i),r,0,1),c=c.plus(s.times(u)),i=i.plus(s.times(r)),c.s=u.s=g.s,d=n(u,r,o*=2,m).minus(g).abs().comparedTo(n(c,i,o,m).minus(g).abs())<1?[u,r]:[c,i],j=a,d},d.toNumber=function(){return+Z(this)},d.toPrecision=function(e,t){return null!=e&&F(e,1,P),W(this,e,t,2)},d.toString=function(e){var t,n=this,r=n.s,s=n.e;return null===s?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=s<=g||s>=v?M(N(n.c),s):R(N(n.c),s,"0"):10===e&&H?t=R(N((n=G(new q(n),p+s+1,m)).c),n.e,"0"):(F(e,2,U.length,"Base"),t=i(R(N(n.c),s,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},d.valueOf=d.toJSON=function(){return Z(this)},d._isBigNumber=!0,d[Symbol.toStringTag]="BigNumber",d[Symbol.for("nodejs.util.inspect.custom")]=d.valueOf,null!=t&&q.set(t),q}();const B=j;var I;function V(e){var t;return null!==(t=I[e])&&void 0!==t?t:I.default}!function(e){e[e.up=B.ROUND_UP]="up",e[e.down=B.ROUND_DOWN]="down",e[e.truncate=B.ROUND_DOWN]="truncate",e[e.halfUp=B.ROUND_HALF_UP]="halfUp",e[e.default=B.ROUND_HALF_UP]="default",e[e.halfDown=B.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=B.ROUND_HALF_EVEN]="halfEven",e[e.banker=B.ROUND_HALF_EVEN]="banker",e[e.ceiling=B.ROUND_CEIL]="ceiling",e[e.ceil=B.ROUND_CEIL]="ceil",e[e.floor=B.ROUND_FLOOR]="floor"}(I||(I={}));var z=n(12493),U=n.n(z);function H(e,{precision:t,significant:n}){return n&&null!==t&&t>0?t-function(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}(e):t}function q(e,t){const n=H(e,t);if(null===n)return e.toString();const i=V(t.roundMode);
25if(n>=0)return e.toFixed(n,i);const r=Math.pow(10,Math.abs(n));return(e=new B(e.div(r).toFixed(0,i)).times(r)).toString()}function W(e,t=!1){let n=B(NaN);try{n=new B(e)}catch(i){if(t&&n.isNaN())throw new Error(`"${e}" is not a valid numeric value`)}return n}function $(e,t){var n,i,r;const s=W(e,t.raise),o=q(s,t),a=new B(o),l=a.lt(0),c=a.isZero();let[u,h]=o.split(".");const d=[];let f;const p=null!==(n=t.format)&&void 0!==n?n:"%n",m=null!==(i=t.negativeFormat)&&void 0!==i?i:`-${p}`,g=l&&!c?m:p;for(u=u.replace("-","");u.length>0;)d.unshift(u.substr(Math.max(0,u.length-3),3)),u=u.substr(0,u.length-3);return u=d.join(""),f=d.join(t.delimiter),h=t.significant?function({significand:e,whole:t,precision:n}){if("0"===t||null===n)return e;const i=Math.max(0,n-t.length);return(null!==e&&void 0!==e?e:"").substr(0,i)}({whole:u,significand:h,precision:t.precision}):null!==h&&void 0!==h?h:U()("0",null!==(r=t.precision)&&void 0!==r?r:0),t.stripInsignificantZeros&&h&&(h=h.replace(/0+$/,"")),s.isNaN()&&(f=e.toString()),h&&s.isFinite()&&(f+=(t.separator||".")+h),function(e,{formattedNumber:t,unit:n}){return e.replace("%n",t).replace("%u",n)}(g,{formattedNumber:f,unit:t.unit})}function K(e,t,n){let i="";return(t instanceof String||"string"===typeof t)&&(i=t),t instanceof Array&&(i=t.join(e.defaultSeparator)),n.scope&&(i=[n.scope,i].join(e.defaultSeparator)),i}function G(e){var t,n;if(null===e)return"null";const i=typeof e;return"object"!==i?i:(null===(n=null===(t=null===e||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.name)||void 0===n?void 0:n.toLowerCase())||"object"}function Z(e,t,n){n=Object.keys(n).reduce(((t,i)=>(t[e.transformKey(i)]=n[i],t)),{});const i=t.match(e.placeholder);if(!i)return t;for(;i.length;){let r;const s=i.shift(),o=s.replace(e.placeholder,"$1");r=y(n[o])?n[o].toString().replace(/\$/gm,"_#$#_"):o in n?e.nullPlaceholder(e,s,t,n):e.missingPlaceholder(e,s,t,n);const a=new RegExp(s.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"),"g");t=t.replace(a,r)}return t.replace(/_#\$#_/g,"$")}function Y(e,t,n={}){const i="locale"in(n=Object.assign({},n))?n.locale:e.locale,r=G(i),s=e.locales.get("string"===r?i:typeof i).slice(),o=K(e,t,n).split(e.defaultSeparator).map((t=>e.transformKey(t))),a=s.map((t=>o.reduce(((e,t)=>e&&e[t]),e.translations[t])));return a.push(n.defaultValue),a.find((e=>y(e)))}var X=n(33031),J=n.n(X),Q=n(47248);const ee={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},te=n.n(Q)()(Object.values(ee),Object.keys(ee).map((e=>parseInt(e,10))));function ne(e,t,n){const i={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let r;if("string"===G(n.units)){const t=n.units;if(r=Y(e,t),!r)throw new Error(`The scope "${e.locale}${e.defaultSeparator}${K(e,t,{})}" couldn't be found`)}else r=n.units;let s=q(W(t,n.raise),i);const o=((e,t)=>{const n=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return(e=>J()(Object.keys(e).map((e=>te[e])),(e=>-1*e)))(t).find((e=>n>=e))||0})(new B(s),r);let a=((e,t)=>e[ee[t.toString()]]||"")(r,o);s=q(new B(s).div(Math.pow(10,o)),i);let[l,c]=s.split(".");if(n.stripInsignificantZeros&&(c=(c||"").replace(/0+$/,"")),s=l,c&&(s+=`${n.separator}${c}`),a&&"object"===typeof a){const t=parseFloat(s.replace(n.separator,".")),i=e.pluralization.get(e.locale)(e,t);for(const e of i)if(void 0!==a[e]){a=a[e];break}}return n.format.replace("%n",s||"0").replace("%u",a).trim()}const ie=["byte","kb","mb","gb","tb","pb","eb"];function re(e){if(e instanceof Date)return e;if("number"===typeof e){const t=new Date;return t.setTime(e),t}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const e=t.slice(1,8).map((e=>parseInt(e,10)||0));e[1]-=1;const[n,i,r,s,o,a,l]=e;return t[8]?new Date(Date.UTC(n,i,r,s,o,a,l)):new Date(n,i,r,s,o,a,l)}if(e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)){(new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")))}const n=new Date;return n.setTime(Date.parse(e)),n}function se({i18n:e,count:t,scope:n,options:i,baseScope:r}){let s,o;
25if(i=Object.assign({},i),s="object"===typeof n&&n?n:Y(e,n,i),!s)return e.missingTranslation.get(n,i);const a=e.pluralization.get(i.locale)(e,t),l=[];for(;a.length;){const e=a.shift();if(y(s[e])){o=s[e];break}l.push(e)}return y(o)?(i.count=t,e.interpolate(e,o,i)):e.missingTranslation.get(r.split(e.defaultSeparator).concat([l[0]]),i)}const oe={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};var ae=n(23181),le=n.n(ae);const ce=(e,t,n)=>n>=e&&n<=t;const ue=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,((e,t,n)=>`${t} ${n.toLowerCase()}`))},he=(e,t,n)=>{const i=K(e,t,n),r="locale"in n?n.locale:e.locale,s=G(r);return`[missing "${["string"==s?r:s,i].join(e.defaultSeparator)}" translation]`},de=(e,t,n)=>{const i=K(e,t,n),r=[e.locale,i].join(e.defaultSeparator);throw new Error(`Missing translation: ${r}`)};class fe{constructor(e){this.i18n=e,this.registry={},this.register("guess",ue),this.register("message",he),this.register("error",de)}register(e,t){this.registry[e]=t}get(e,t){var n;return this.registry[null!==(n=t.missingBehavior)&&void 0!==n?n:this.i18n.missingBehavior](this.i18n,e,t)}}var pe=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))};const me={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,t)=>`[missing "${t}" value]`,nullPlaceholder:(e,t,n,i)=>e.missingPlaceholder(e,t,n,i),transformKey:e=>e};class ge{constructor(e={},t={}){this._locale=me.locale,this._defaultLocale=me.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:i,missingBehavior:r,missingTranslationPrefix:s,missingPlaceholder:o,nullPlaceholder:a,defaultLocale:l,defaultSeparator:c,placeholder:u,transformKey:h}=Object.assign(Object.assign({},me),t);this.locale=n,this.defaultLocale=l,this.defaultSeparator=c,this.enableFallback=i,this.locale=n,this.missingBehavior=r,this.missingTranslationPrefix=s,this.missingPlaceholder=o,this.nullPlaceholder=a,this.placeholder=u,this.pluralization=new p(this),this.locales=new d(this),this.missingTranslation=new fe(this),this.transformKey=h,this.interpolate=Z,this.store(e)}store(e){l()(this.translations,e),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!==typeof e)throw new Error(`Expected newLocale to be a string; got ${G(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!==typeof e)throw new Error(`Expected newLocale to be a string; got ${G(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){const n=function(e,t,n){let i=[{scope:t}];if(y(n.defaults)&&(i=i.concat(n.defaults)),y(n.defaultValue)){const r="function"===typeof n.defaultValue?n.defaultValue(e,t,n):n.defaultValue;i.push({message:r}),delete n.defaultValue}return i}(this,e,t=Object.assign({},t));let i;return n.some((e=>(y(e.scope)?i=Y(this,e.scope,t):y(e.message)&&(i=e.message),void 0!==i&&null!==i)))?("string"===typeof i?i=this.interpolate(this,i,t):"object"===typeof i&&i&&y(t.count)&&(i=se({i18n:this,count:t.count||0,scope:i,options:t,baseScope:K(this,e,t)})),t&&i instanceof Array&&(i=i.map((e=>"string"===typeof e?Z(this,e,t):e))),i):this.missingTranslation.get(e,t)}pluralize(e,t,n){return se({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:K(this,t,null!==n&&void 0!==n?n:{})})}localize(e,t,n){if(n=Object.assign({},n),void 0===t||null===t)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return $(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},Y(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let i;return i=e.match(/^(date|time)/)?this.toTime(e,t):t.toString(),Z(this,i,n)}}}toTime(e,t){const n=re(t),i=Y(this,e);return n.toString().match(/invalid/i)?n.toString():i?this.strftime(n,i):n.toString()}numberToCurrency(e,t={}){return $(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,
vendor: 6,974 bytes, line 25
25separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},v(this.get("number.format"))),v(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return $(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},v(this.get("number.format"))),v(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return function(e,t,n){const i=V(n.roundMode),r=1024,s=W(t,n.raise).abs(),o=s.lt(r);let a;const l=((e,t)=>{const n=t.length-1,i=new B(Math.log(e.toNumber())).div(Math.log(r)).integerValue(B.ROUND_DOWN).toNumber();return Math.min(n,i)})(s,ie);a=o?s.integerValue():new B(q(s.div(Math.pow(r,l)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const c=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),u=e.translate((h=ie,`number.human.storage_units.units.${o?"byte":h[l]}`),{count:s.integerValue().toNumber()});var h;let d=a.toFixed(n.precision,i);return n.stripInsignificantZeros&&(d=d.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),c.replace("%n",d).replace("%u",u)}(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},v(this.get("number.human.format"))),v(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return ne(this,e,Object.assign(Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},v(this.get("number.format"))),v(this.get("number.human.format"))),v(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return $(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return function(e,t){const n=W(e,t.raise);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${t.delimiterPattern}`);let[i,r]=n.toString().split(".");return i=i.replace(t.delimiterPattern,(e=>`${e}${t.delimiter}`)),[i,r].filter(Boolean).join(t.separator)}(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return pe(this,void 0,void 0,(function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}}))}strftime(e,t,n={}){return function(e,t,n={}){const{abbrDayNames:i,dayNames:r,abbrMonthNames:s,monthNames:o,meridian:a,utc:l}=Object.assign(Object.assign({},oe),n);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const c=l?e.getUTCDay():e.getDay(),u=l?e.getUTCDate():e.getDate(),h=l?e.getUTCFullYear():e.getFullYear(),d=(l?e.getUTCMonth():e.getMonth())+1,f=l?e.getUTCHours():e.getHours();let p=f;const m=f>11?"pm":"am",g=l?e.getUTCSeconds():e.getSeconds(),v=l?e.getUTCMinutes():e.getMinutes(),y=l?0:e.getTimezoneOffset(),b=Math.floor(Math.abs(y/60)),w=Math.abs(y)-60*b,S=(y>0?"-":"+")+(b.toString().length<2?"0"+b:b)+(w.toString().length<2?"0"+w:w);return p>12?p-=12:0===p&&(p=12),(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",i[c])).replace("%A",r[c])).replace("%b",s[d])).replace("%B",o[d])).replace("%d",u.toString().padStart(2,"0"))).replace("%e",u.toString())).replace("%-d",u.toString())).replace("%H",f.toString().padStart(2,"0"))).replace("%-H",f.toString())).replace("%k",f.toString())).replace("%I",p.toString().padStart(2,"0"))).replace("%-I",p.toString())).replace("%l",p.toString())).replace("%m",d.toString().padStart(2,"0"))).replace("%-m",d.toString())).replace("%M",v.toString().padStart(2,"0"))).replace("%-M",v.toString())).replace("%p",a[m])).replace("%P",a[m].toLowerCase())).replace("%S",g.toString().padStart(2,"0"))).replace("%-S",g.toString())).replace("%w",c.toString())).replace("%y",h.toString().padStart(2,"0").substr(-2))).replace("%-y",h.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",h.toString())).replace(/%z/i,S)}(e,t,Object.assign(Object.assign(Object.assign({},v(Y(this,"date"))),{meridian:{am:Y(this,"time.am")||"AM",pm:Y(this,"time.pm")||"PM"}}),n))}update(e,t,n={strict:!1}){if(n.strict&&!o()(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const i=r()(this.translations,e),s=G(i),a=G(t);if(n.strict&&s!==a)throw new Error(`The current type for "${e}" is "${s}", but you're trying to override it with "${a}"`);let l;l="object"===a?Object.assign(Object.assign({},i),t):t;const c=e.split(this.defaultSeparator),u=c.pop();let h=this.translations;for(const r of c)h[r]||(h[r]={}),h=h[r];h[u]=l,this.hasChanged()}toSentence(e,t={}){const{wordsConnector:n,twoWordsConnector:i,lastWordConnector:r}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},v(Y(this,"support.array"))),t),s=e.length;switch(s){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(i);default:return[e.slice(0,s-1).join(n),r,e[s-1]].join("")}}timeAgoInWords(e,t,n={}){return function(e,t,n,i={}){const r=i.scope||"datetime.distance_in_words",s=(t,n=0)=>e.t(t,{count:n,scope:r});t=re(t),n=re(n);let o=t.getTime()/1e3,a=n.getTime()/1e3;o>a&&([t,n,o,a]=[n,t,a,o]);const l=Math.round(a-o),c=Math.round((a-o)/60),u=c/60/24,h=Math.round(c/60),d=Math.round(u),f=Math.round(d/30);if(ce(0,1,c))return i.includeSeconds?ce(0,4,l)?s("less_than_x_seconds",5):ce(5,9,l)?s("less_than_x_seconds",10):ce(10,19,l)?s("less_than_x_seconds",20):ce(20,39,l)?s("half_a_minute"):ce(40,59,l)?s("less_than_x_minutes",1):s("x_minutes",1):0===c?s("less_than_x_minutes",1):s("x_minutes",c);if(ce(2,44,c))return s("x_minutes",c);if(ce(45,89,c))return s("about_x_hours",1);if(ce(90,1439,c))return s("about_x_hours",h);if(ce(1440,2519,c))return s("x_days",1);if(ce(2520,43199,c))return s("x_days",d);if(ce(43200,86399,c))return s("about_x_months",Math.round(c/43200));if(ce(86400,525599,c))return s("x_months",f);let p=t.getFullYear();t.getMonth()+1>=3&&(p+=1);let m=n.getFullYear();n.getMonth()+1<3&&(m-=1);const g=525600,v=c-1440*(p>m?0:le()(p,m).filter((e=>1==new Date(e,1,29).getMonth())).length),y=Math.trunc(v/g),b=parseFloat((v/g-y).toPrecision(3));return b<.25?s("about_x_years",y):b<.75?s("over_x_years",y):s("almost_x_years",y+1)}(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t={}){return $(e,t=Object.assign(Object.assign({delimiter:",",precision:3,separator:".",unit:"",format:"%u%n",significant:!1,stripInsignificantZeros:!1},v(this.get("number.format"))),t))}get(e){return Y(this,e)}
25runCallbacks(){this.onChangeHandlers.forEach((e=>e(this)))}hasChanged(){this._version+=1,this.runCallbacks()}}},86879(e){!function(t){var n=function(e,t,n){"use strict";var i,r;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in r=e.lazySizesConfig||e.lazysizesConfig||{},n)t in r||(r[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var s=t.documentElement,o=e.HTMLPictureElement,a="addEventListener",l="getAttribute",c=e[a].bind(e),u=e.setTimeout,h=e.requestAnimationFrame||u,d=e.requestIdleCallback,f=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[l]("class")||"")&&m[t]},y=function(e,t){v(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},b=function(e,t){var n;(n=v(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},w=function(e,t,n){var i=n?a:"removeEventListener";n&&w(e,t),p.forEach((function(n){e[i](n,t)}))},S=function(e,n,r,s,o){var a=t.createEvent("Event");return r||(r={}),r.instance=i,a.initEvent(n,!s,!o),a.detail=r,e.dispatchEvent(a),a},_=function(t,n){var i;!o&&(i=e.picturefill||r.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},O=function(e,t,n){for(n=n||e.offsetWidth;n<r.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},k=(ye=[],be=[],we=ye,Se=function(){var e=we;for(we=ye.length?be:ye,ge=!0,ve=!1;e.length;)e.shift()();ge=!1},_e=function(e,n){ge&&!n?e.apply(this,arguments):(we.push(e),ve||(ve=!0,(t.hidden?u:h)(Se)))},_e._lsFlush=Se,_e),A=function(e,t){return t?function(){k(e)}:function(){var t=this,n=arguments;k((function(){e.apply(t,n)}))}},C=function(e){var t,i=0,s=r.throttleDelay,o=r.ricTimeout,a=function(){t=!1,i=n.now(),e()},l=d&&o>49?function(){d(a,{timeout:o}),o!==r.ricTimeout&&(o=r.ricTimeout)}:A((function(){u(a)}),!0);return function(e){var r;(e=!0===e)&&(o=33),t||(t=!0,(r=s-(n.now()-i))<0&&(r=0),e||r<9?l():u(l,r))}},x=function(e){var t,i,r=99,s=function(){t=null,e()},o=function(){var e=n.now()-i;e<r?u(o,r-e):(d||s)(s)};return function(){i=n.now(),t||(t=u(o,r))}},P=(G=/^img$/i,Z=/^iframe$/i,Y="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,J=0,Q=0,ee=-1,te=function(e){Q--,(!e||Q<0||!e.target)&&(Q=0)},ne=function(e){return null==K&&(K="hidden"==E(t.body,"visibility")),K||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},ie=function(e,n){var i,r=e,o=ne(e);for(H-=n,$+=n,q-=n,W+=n;o&&(r=r.offsetParent)&&r!=t.body&&r!=s;)(o=(E(r,"opacity")||1)>0)&&"visible"!=E(r,"overflow")&&(i=r.getBoundingClientRect(),o=W>i.left&&q<i.right&&$>i.top-1&&H<i.bottom+1);return o},re=function(){var e,n,o,a,c,u,h,d,f,p,m,g,v=i.elements;if((I=r.loadMode)&&Q<8&&(e=v.length)){for(n=0,ee++;n<e;n++)if(v[n]&&!v[n]._lazyRace)if(!Y||i.prematureUnveil&&i.prematureUnveil(v[n]))de(v[n]);else if((d=v[n][l]("data-expand"))&&(u=1*d)||(u=J),p||(p=!r.expand||r.expand<1?s.clientHeight>500&&s.clientWidth>500?500:370:r.expand,i._defEx=p,m=p*r.expFactor,g=r.hFac,K=null,J<m&&Q<1&&ee>2&&I>2&&!t.hidden?(J=m,ee=0):J=I>1&&ee>1&&Q<6?p:X),f!==u&&(z=innerWidth+u*g,U=innerHeight+u,h=-1*u,f=u),o=v[n].getBoundingClientRect(),($=o.bottom)>=h&&(H=o.top)<=U&&(W=o.right)>=h*g&&(q=o.left)<=z&&($||W||q||H)&&(r.loadHidden||ne(v[n]))&&(j&&Q<3&&!d&&(I<3||ee<4)||ie(v[n],u))){if(de(v[n]),c=!0,Q>9)break}else!c&&j&&!a&&Q<4&&ee<4&&I>2&&(R[0]||r.preloadAfterLoad)&&(R[0]||!d&&($||W||q||H||"auto"!=v[n][l](r.sizesAttr)))&&(a=R[0]||v[n]);a&&!c&&de(a)}},se=C(re),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),y(t,r.loadedClass),b(t,r.loadingClass),w(t,le),S(t,"lazyloaded"))},ae=A(oe),le=function(e){ae({target:e.target})},ce=function(e,t){var n=e.getAttribute("data-load-mode")||r.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},ue=function(e){var t,n=e[l](r.srcsetAttr);(t=r.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n
25)},he=A((function(e,t,n,i,s){var o,a,c,h,d,p;(d=S(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?y(e,r.autosizesClass):e.setAttribute("sizes",i)),a=e[l](r.srcsetAttr),o=e[l](r.srcAttr),s&&(h=(c=e.parentNode)&&f.test(c.nodeName||"")),p=t.firesLoad||"src"in e&&(a||o||h),d={target:e},y(e,r.loadingClass),p&&(clearTimeout(B),B=u(te,2500),w(e,le,!0)),h&&g.call(c.getElementsByTagName("source"),ue),a?e.setAttribute("srcset",a):o&&!h&&(Z.test(e.nodeName)?ce(e,o):e.src=o),s&&(a||h)&&_(e,{src:o})),e._lazyRace&&delete e._lazyRace,b(e,r.lazyClass),k((function(){var t=e.complete&&e.naturalWidth>1;p&&!t||(t&&y(e,r.fastLoadedClass),oe(d),e._lazyCache=!0,u((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&Q--}),!0)})),de=function(e){if(!e._lazyRace){var t,n=G.test(e.nodeName),i=n&&(e[l](r.sizesAttr)||e[l]("sizes")),s="auto"==i;(!s&&j||!n||!e[l]("src")&&!e.srcset||e.complete||v(e,r.errorClass)||!v(e,r.lazyClass))&&(t=S(e,"lazyunveilread").detail,s&&T.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Q++,he(e,t,s,i,n))}},fe=x((function(){r.loadMode=3,se()})),pe=function(){3==r.loadMode&&(r.loadMode=2),fe()},me=function(){j||(n.now()-V<999?u(me,999):(j=!0,r.loadMode=3,se(),c("scroll",pe,!0)))},{_:function(){V=n.now(),i.elements=t.getElementsByClassName(r.lazyClass),R=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass),c("scroll",se,!0),c("resize",se,!0),c("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+r.loadingClass);n.length&&n.forEach&&h((function(){n.forEach((function(e){e.complete&&de(e)}))}))}})),e.MutationObserver?new MutationObserver(se).observe(s,{childList:!0,subtree:!0,attributes:!0}):(s[a]("DOMNodeInserted",se,!0),s[a]("DOMAttrModified",se,!0),setInterval(se,999)),c("hashchange",se,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[a](e,se,!0)})),/d$|^c/.test(t.readyState)?me():(c("load",me),t[a]("DOMContentLoaded",se),u(me,2e4)),i.elements.length?(re(),k._lsFlush()):se()},checkElems:se,unveil:de,_aLSL:pe}),T=(F=A((function(e,t,n,i){var r,s,o;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),f.test(t.nodeName||""))for(s=0,o=(r=t.getElementsByTagName("source")).length;s<o;s++)r[s].setAttribute("sizes",i);n.detail.dataAttr||_(e,n.detail)})),D=function(e,t,n){var i,r=e.parentNode;r&&(n=O(e,r,n),(i=S(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=i.detail.width)&&n!==e._lazysizesWidth&&F(e,r,i,n))},M=x((function(){var e,t=L.length;if(t)for(e=0;e<t;e++)D(L[e])})),{_:function(){L=t.getElementsByClassName(r.autosizesClass),c("resize",M)},checkElems:M,updateElem:D}),N=function(){!N.i&&t.getElementsByClassName&&(N.i=!0,T._(),P._())};var L,F,D,M;var R,j,B,I,V,z,U,H,q,W,$,K,G,Z,Y,X,J,Q,ee,te,ne,ie,re,se,oe,ae,le,ce,ue,he,de,fe,pe,me;var ge,ve,ye,be,we,Se,_e;return u((function(){r.init&&N()})),i={cfg:r,autoSizer:T,loader:P,init:N,uP:_,aC:y,rC:b,hC:v,fire:S,gW:O,rAF:k}}(t,t.document,Date);t.lazySizes=n,e.exports&&(e.exports=n)}("undefined"!=typeof window?window:{})},3402(e,t,n){var i,r,s;!function(o,a){if(o){a=a.bind(null,o,o.document),e.exports?a(n(86879)):(r=[n(86879)],void 0===(s="function"===typeof(i=a)?i.apply(t,r):i)||(e.exports=s))}}("undefined"!=typeof window?window:0,(function(e,t,n){"use strict";var i,r,s,o,a,l,c,u,h,d,f,p,m,g,v,y,b=n.cfg,w=t.createElement("img"),S="sizes"in w&&"srcset"in w,_=/\s+\d+h/g,E=(r=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,s=Array.prototype.forEach,function(){var e=t.createElement("img"),i=function(e){var t,n,i=e.getAttribute(b.srcsetAttr);i&&(n=i.match(r))&&((t="w"==n[2]?n[1]/n[3]:n[3]/n[1])&&e.setAttribute("data-aspectratio",t),e.setAttribute(b.srcsetAttr,i.replace(_,"")))},o=function(e){if(e.detail.instance==n){var t=e.target.parentNode;t&&"PICTURE"==t.nodeName&&s.call(t.getElementsByTagName("source"),i),i(e.target)}},a=function(){e.currentSrc&&t.removeEventListener("lazybeforeunveil",o)};t.addEventListener("lazybeforeunveil",o),e.onload=a,e.onerror=a,e.srcset="data:,a 1w 1h",e.complete&&a()});(b.supportsType||(b.supportsType=function(e){return!e}),e.HTMLPictureElement&&S)?!n.hasHDescriptorFix&&t.msElementsFromPoint&&(n.hasHDescriptorFix=!0,E()):e.picturefill||b.pf||(b.pf=function(t){var n,r;if(!e.picturefill)for(n=0,r=t.elements.length;n<r;n++)i(t.elements[n])},u=function(e,t){return e.w-t.w},h=/^\s*\d+\.*\d*px\s*$/,a=/(([^,\s].[^\s]+)\s+(\d+)w)/g,l=/\s/,c=function(e,t,n,i){o.push({c:t,u:n,w:1*i})},f=function(){var e,n,r;f.init||(f.init=!0,addEventListener("resize",(n=t.getElementsByClassName("lazymatchmedia"),r=function(){var e,t;for(e=0,t=n.length;e<t;e++)i(n[e])},function(){clearTimeout(e),e=setTimeout(r,66)})))},p=function(t,i){var r,s=t.getAttribute("srcset")||t.getAttribute(b.srcsetAttr);!s&&i&&(s=t._lazypolyfill?t._lazypolyfill._set:t.getAttribute(b.srcAttr)||t.getAttribute("src")),t._lazypolyfill&&t._lazypolyfill._set==s||(r=d(s||""),i&&t.parentNode&&(r.isPicture="PICTURE"==t.parentNode.nodeName.toUpperCase(),r.isPicture&&e.matchMedia&&(n.aC(t,"lazymatchmedia"),f())),r._set=s,Object.defineProperty(t,"_lazypolyfill",{value:r,writable:!0}))},m=function(t){return e.matchMedia?(m=function(e){return!e||(matchMedia(e)||{}).matches},m(t)):!t},g=function(t){var i,r,s,o,a,l,c;if(p(o=t,!0),(a=o._lazypolyfill).isPicture)for(r=0,s=(i=t.parentNode.getElementsByTagName("source")).length;r<s;r++)if(b.supportsType(i[r].getAttribute("type"),t)&&m(i[r].getAttribute("media"))){o=i[r],p(o),a=o._lazypolyfill;break}return a.length>1?(c=o.getAttribute("sizes")||"",c=h.test(c)&&parseInt(c,10)||n.gW(t,t.parentNode),a.d=function(t){var i=e.devicePixelRatio||1,r=n.getX&&n.getX(t);return Math.min(r||i,2.5,i)}(t),!a.src||!a.w||a.w<c?(a.w=c,l=function(e){for(var t,n,i=e.length,r=e[i-1],s=0;s<i;s++)if((r=e[s]).d=r.w/e.w,r.d>=e.d){!r.cached&&(t=e[s-1])&&t.d>e.d-.13*Math.pow(e.d,2.2)&&(n=Math.pow(t.d-.6,1.6),t.cached&&(t.d+=.15*n),t.d+(r.d-e.d)*n>e.d&&(r=t));break}return r}(a.sort(u)),a.src=l):l=a.src):l=a[0],l},(v=function(e){if(!S||!e.parentNode||"PICTURE"==e.parentNode.nodeName.toUpperCase()){var t=g(e);t&&t.u&&e._lazypolyfill.cur!=t.u&&(e._lazypolyfill.cur=t.u,t.cached=!0,e.setAttribute(b.srcAttr,t.u),e.setAttribute("src",t.u))}}).parse=d=function(e){return o=[],(e=e.trim()).replace(_,"").replace(a,c),o.length||!e||l.test(e)||o.push({c:e,u:e,w:99}),o},i=v,b.loadedClass&&b.loadingClass&&(y=[],['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach((function(e){y.push(e+b.loadedClass),y.push(e+b.loadingClass)})),b.pf({elements:t.querySelectorAll(y.join(", "))})))}))},92386(e,t,n){"use strict";const i={config:{},run(){this.getController().processElements()},process(...e){for(const t of e)this.getController().processElement(t);return e.length},getController(){return this.controller?this.controller:this.controller=new i.Controller}};i.config.useFormat24=!1,i.config.i18n={en:{date:{dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
25ay","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yesterday:"yesterday",today:"today",tomorrow:"tomorrow",on:"on {date}",formats:{default:"%b %e, %Y",thisYear:"%b %e"}},time:{am:"am",pm:"pm",singular:"a {time}",singularAn:"an {time}",elapsed:"{time} ago",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",formats:{default:"%l:%M%P",default_24h:"%H:%M"}},datetime:{at:"{date} at {time}",formats:{default:"%B %e, %Y at %l:%M%P %Z",default_24h:"%B %e, %Y at %H:%M %Z"}}}},i.config.locale="en",i.config.defaultLocale="en",i.config.timerInterval=6e4;const r=!isNaN(Date.parse("2011-01-01T12:00:00-05:00"));i.parseDate=e=>(e=e.toString(),r||(e=function(e){const t=e.match(s);if(t){let e;const[n,i,r,s,o,a,l,c]=t;return"Z"!==c&&(e=c.replace(":","")),`${i}/${r}/${s} ${o}:${a}:${l} GMT${[e]}`}}(e)),new Date(Date.parse(e)));const s=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|[-+]?[\d:]+)$/;i.elementMatchesSelector=(()=>{const e=document.documentElement,t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return(e,n)=>{if(e?.nodeType===Node.ELEMENT_NODE)return t.call(e,n)}})();const{config:o}=i,{i18n:a}=o;i.getI18nValue=(e="",t={locale:o.locale})=>{const{locale:n}=t,r=function(e,t){let n=e;for(var i of Array.from(t.split("."))){if(!n[i])return null;n=n[i]}return n}(a[n],e);return r||(n!==o.defaultLocale?i.getI18nValue(e,{locale:o.defaultLocale}):void 0)},i.translate=(e,t={},n)=>{let r=i.getI18nValue(e,n);for(const i in t){const e=t[i];r=r.replace(`{${i}}`,e)}return r};const{getI18nValue:l,translate:c}=i,u="function"==typeof Intl?.DateTimeFormat,h={"Central European Standard Time":"CET","Central European Summer Time":"CEST","China Standard Time":"CST","Israel Daylight Time":"IDT","Israel Standard Time":"IST","Moscow Standard Time":"MSK","Peru Standard Time":"PET","Philippine Standard Time":"PHT","Singapore Standard Time":"SGT","Western Indonesia Time":"WIB"};i.knownEdgeCaseTimeZones=h,i.strftime=(()=>{const e=(i,r)=>{const s=i.getDay(),o=i.getDate(),a=i.getMonth(),d=i.getFullYear(),f=i.getHours(),p=i.getMinutes(),m=i.getSeconds();return r.replace(/%(-?)([%aAbBcdeHIlmMpPSwyYZ])/g,((r,g,v)=>{switch(v){case"%":return"%";case"a":return l("date.abbrDayNames")[s];case"A":return l("date.dayNames")[s];case"b":return l("date.abbrMonthNames")[a];case"B":return l("date.monthNames")[a];case"c":return i.toString();case"d":return t(o,g);case"e":return o;case"H":return t(f,g);case"I":return t(e(i,"%l"),g);case"l":return 0===f||12===f?12:(f+12)%12;case"m":return t(a+1,g);case"M":return t(p,g);case"p":return c("time."+(f>11?"pm":"am")).toUpperCase();case"P":return c("time."+(f>11?"pm":"am"));case"S":return t(m,g);case"w":return s;case"y":return t(d%100,g);case"Y":return d;case"Z":return function(e){let t,i,r;return(i=function(e){return Object.keys(h).find((t=>u?new Date(e).toLocaleString("en-US",{timeZoneName:"long"}).includes(t):e.toString().includes(t)))}(e))?h[i]:(r=n(e,{allowGMT:!1}))||(r=function(e){const t=e.toString();let n;if(null!=(n=t.match(/\(([\w\s]+)\)$/))){const e=n[1];return/\s/.test(e)?e.match(/\b(\w)/g).join(""):e}return null!=(n=t.match(/(\w{3,4})\s\d{4}$/))||null!=(n=t.match(/(UTC[\+\-]\d+)/))?n[1]:void 0}(e))?r:(t=n(e,{allowGMT:!0}))?t:""}(i)}}))};function t(e,t){return"-"===t?e:`0${e}`.slice(-2)}function n(e,{allowGMT:t}){if(u){const n=new Date(e).toLocaleString("en-US",{timeZoneName:"short"}).split(" ").pop();if(t||!n.includes("GMT"))return n}}return e})(),i.CalendarDate=class{static fromDate(e){return new this(e.getFullYear(),e.getMonth()+1,e.getDate())}static today(){return this.fromDate(new Date)}constructor(e,t,n){this.date=new Date(Date.UTC(e,t-1)),this.date.setUTCDate(n),this.year=this.date.getUTCFullYear(),this.month=this.date.getUTCMonth()+1,this.day=this.date.getUTCDate(),this.value=this.date.getTime()}equals(e){return e?.value===this.value}is(e){return this.equals(e)}isToday(){return this.is(this.constructor.today())}occursOnSameYearAs(e){return this.year===e?.year}occursThisYear(){return this.occursOnSameYearAs(this.constructor.today())}daysSince(e){if(e)return(this.date-e.date)/864e5}daysPassed(){return this.constructor.today().daysSince(this)}};const{strftime:d,translate:f,getI18nValue:p,config:m}=i;i.RelativeTime=class{constructor(e){this.date=e,this.calendarDate=i.CalendarDate.fromDate(this.date)}toString(){let e,t;
25return(t=this.toTimeElapsedString())?f("time.elapsed",{time:t}):(e=this.toWeekdayString())?(t=this.toTimeString(),f("datetime.at",{date:e,time:t})):f("date.on",{date:this.toDateString()})}toTimeOrDateString(){return this.calendarDate.isToday()?this.toTimeString():this.toDateString()}toTimeElapsedString(){let e;const t=(new Date).getTime()-this.date.getTime(),n=Math.round(t/1e3),i=Math.round(n/60),r=Math.round(i/60);return t<0?null:n<10?(e=f("time.second"),f("time.singular",{time:e})):n<45?`${n} ${f("time.seconds")}`:n<90?(e=f("time.minute"),f("time.singular",{time:e})):i<45?`${i} ${f("time.minutes")}`:i<90?(e=f("time.hour"),f("time.singularAn",{time:e})):r<24?`${r} ${f("time.hours")}`:""}toWeekdayString(){switch(this.calendarDate.daysPassed()){case 0:return f("date.today");case 1:return f("date.yesterday");case-1:return f("date.tomorrow");case 2:case 3:case 4:case 5:case 6:return d(this.date,"%A");default:return""}}toDateString(){const e=this.calendarDate.occursThisYear()?p("date.formats.thisYear"):p("date.formats.default");return d(this.date,e)}toTimeString(){const e=m.useFormat24?"default_24h":"default";return d(this.date,p(`time.formats.${e}`))}};const{elementMatchesSelector:g}=i;i.PageObserver=class{constructor(e,t){this.selector=e,this.callback=t,this.processMutations=this.processMutations.bind(this),this.processInsertion=this.processInsertion.bind(this)}start(){this.started||(this.observeWithMutationObserver()||this.observeWithMutationEvent(),this.started=!0)}observeWithMutationObserver(){return"undefined"!=typeof MutationObserver&&null!==MutationObserver&&(new MutationObserver(this.processMutations).observe(document.documentElement,{childList:!0,subtree:!0}),!0)}observeWithMutationEvent(){return addEventListener("DOMNodeInserted",this.processInsertion,!1),!0}findSignificantElements(e){const t=[];return e?.nodeType===Node.ELEMENT_NODE&&(g(e,this.selector)&&t.push(e),t.push(...Array.from(e.querySelectorAll(this.selector)||[]))),t}processMutations(e){const t=[];for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)t.push(...this.findSignificantElements(e)||[]);this.notify(t)}processInsertion(e){const t=this.findSignificantElements(e.target);this.notify(t)}notify(e){e?.length>0&&"function"==typeof this.callback&&this.callback(e)}};const{parseDate:v,strftime:y,getI18nValue:b,config:w}=i,S="time[data-local]:not([data-localized])",_=e=>e.setAttribute("data-localized",""),E=e=>new i.RelativeTime(e);i.Controller=class{constructor(){this.processElements=this.processElements.bind(this),this.pageObserver=new i.PageObserver(S,this.processElements)}start(){this.started||(this.processElements(),this.startTimer(),this.pageObserver.start(),this.started=!0)}startTimer(){let e;(e=w.timerInterval)&&(this.timer||(this.timer=setInterval(this.processElements,e)))}processElements(e){e||(e=document.querySelectorAll(S));for(const t of Array.from(e))this.processElement(t);return e.length}processElement(e){const t=e.getAttribute("datetime"),n=e.getAttribute("data-local"),i=w.useFormat24&&e.getAttribute("data-format24")||e.getAttribute("data-format"),r=v(t);if(!isNaN(r)){if(!e.hasAttribute("title")){const t=w.useFormat24?"default_24h":"default",n=y(r,b(`datetime.formats.${t}`));e.setAttribute("title",n)}(e=>{e.setAttribute("data-processed-at",(new Date).toISOString())})(e),e.textContent=(()=>{switch(n){case"time":return _(e),y(r,i);case"date":return _(e),E(r).toDateString();case"time-ago":return E(r).toString();case"time-or-date":return E(r).toTimeOrDateString();case"weekday":return E(r).toWeekdayString();case"weekday-or-date":return E(r).toWeekdayString()||E(r).toDateString()}})()}}};let O=!1;function k(){i.getController().start()}i.start=()=>{var e;O?i.run():(O=!0,"undefined"!=typeof MutationObserver&&null!==MutationObserver||(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?k():(e=k,"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,17)))},i.processing=()=>i.getController().started,window.LocalTime===i&&i.start(),n.d(t,["A",0,i])},55580(e,t,n){var i=n(56110)(n(9325),"DataView");e.exports=i},21549(e,t,n){var i=n(22032),r=n(63862),s=n(66721),o=n(12749),a=n(35749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},80079(e,t,n){var i=n(63702),r=n(70080),s=n(24739),o=n(48655),a=n(31175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},68223(e,t,n){var i=n(56110)(n(9325),"Map");e.exports=i},53661(e,t,n){var i=n(63040),r=n(17670),s=n(90289),o=n(4509),a=n(72949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},32804(e,t,n){var i=n(56110)(n(9325),"Promise");e.exports=i},76545(e,t,n){var i=n(56110)(n(9325),"Set");e.exports=i},38859(e,t,n){var i=n(53661),r=n(31380),s=n(51459);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=s,e.exports=o}
vendor: 4,451 bytes, line 25
25,37217(e,t,n){var i=n(80079),r=n(51420),s=n(90938),o=n(63605),a=n(29817),l=n(80945);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=a,c.prototype.set=l,e.exports=c},51873(e,t,n){var i=n(9325).Symbol;e.exports=i},37828(e,t,n){var i=n(9325).Uint8Array;e.exports=i},28303(e,t,n){var i=n(56110)(n(9325),"WeakMap");e.exports=i},91033(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},83729(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},79770(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}},15325(e,t,n){var i=n(96131);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},29905(e){e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}},70695(e,t,n){var i=n(78096),r=n(72428),s=n(56449),o=n(3656),a=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),u=!n&&r(e),h=!n&&!u&&o(e),d=!n&&!u&&!h&&l(e),f=n||u||h||d,p=f?i(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||h&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}},34932(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},14528(e){e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},40882(e){e.exports=function(e,t,n,i){var r=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}},14248(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},61074(e){e.exports=function(e){return e.split("")}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},87805(e,t,n){var i=n(43360),r=n(75288);e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&i(e,t,n)}},16547(e,t,n){var i=n(43360),r=n(75288),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];s.call(e,t)&&r(o,n)&&(void 0!==n||t in e)||i(e,t,n)}},26025(e,t,n){var i=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},74733(e,t,n){var i=n(21791),r=n(95950);e.exports=function(e,t){return e&&i(t,r(t),e)}},43838(e,t,n){var i=n(21791),r=n(37241);e.exports=function(e,t){return e&&i(t,r(t),e)}},43360(e,t,n){var i=n(93243);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999(e,t,n){var i=n(37217),r=n(83729),s=n(16547),o=n(74733),a=n(43838),l=n(93290),c=n(45388),u=n(92271),h=n(48948),d=n(50002),f=n(83349),p=n(5861),m=n(76189),g=n(77199),v=n(35529),y=n(56449),b=n(3656),w=n(87730),S=n(23805),_=n(38440),E=n(95950),O=n(37241),k="[object Arguments]",A="[object Function]",C="[object Object]",x={};x[k]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x[C]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x[A]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,P,T,N,L){var F,D=1&n,M=2&n,R=4&n;if(P&&(F=N?P(t,T,N,L):P(t)),void 0!==F)return F;if(!S(t))return t;var j=y(t);if(j){if(F=m(t),!D)return c(t,F)}else{var B=p(t),I=B==A||"[object GeneratorFunction]"==B;if(b(t))return l(t,D);if(B==C||B==k||I&&!N){if(F=M||I?{}:v(t),!D)return M?h(t,a(F,t)):u(t,o(F,t))}else{if(!x[B])return N?t:{};F=g(t,B,D)}}L||(L=new i);var V=L.get(t);if(V)return V;L.set(t,F),_(t)?t.forEach((function(i){F.add(e(i,n,P,i,t,L))})):w(t)&&t.forEach((function(i,r){F.set(r,e(i,n,P,r,t,L))}));var z=j?void 0:(R?M?f:d:M?O:E)(t);return r(z||t,(function(i,r){z&&(i=t[r=i]),s(F,r,e(i,n,P,r,t,L))})),F}},39344(e,t,n){var i=n(23805),r=Object.create,s=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=s}
25,83915(e,t,n){var i=n(38859),r=n(15325),s=n(29905),o=n(34932),a=n(27301),l=n(19219);e.exports=function(e,t,n,c){var u=-1,h=r,d=!0,f=e.length,p=[],m=t.length;if(!f)return p;n&&(t=o(t,a(n))),c?(h=s,d=!1):t.length>=200&&(h=l,d=!1,t=new i(t));e:for(;++u<f;){var g=e[u],v=null==n?g:n(g);if(g=c||0!==g?g:0,d&&v===v){for(var y=m;y--;)if(t[y]===v)continue e;p.push(g)}else h(t,v,c)||p.push(g)}return p}},80909(e,t,n){var i=n(30641),r=n(38329)(i);e.exports=r},2523(e){e.exports=function(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}},83120(e,t,n){var i=n(14528),r=n(45891);e.exports=function e(t,n,s,o,a){var l=-1,c=t.length;for(s||(s=r),a||(a=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,o,a):i(a,u):o||(a[a.length]=u)}return a}},86649(e,t,n){var i=n(83221)();e.exports=i},30641(e,t,n){var i=n(86649),r=n(95950);e.exports=function(e,t){return e&&i(e,t,r)}},36215(e,t,n){var i=n(79770),r=n(1882);e.exports=function(e,t){return i(t,(function(t){return r(e[t])}))}},47422(e,t,n){var i=n(31769),r=n(77797);e.exports=function(e,t){for(var n=0,s=(t=i(t,e)).length;null!=e&&n<s;)e=e[r(t[n++])];return n&&n==s?e:void 0}},82199(e,t,n){var i=n(14528),r=n(56449);e.exports=function(e,t,n){var s=t(e);return r(e)?s:i(s,n(e))}},72552(e,t,n){var i=n(51873),r=n(659),s=n(59350),o=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):s(e)}},20426(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},28077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},96131(e,t,n){var i=n(2523),r=n(85463),s=n(76959);e.exports=function(e,t,n){return t===t?s(e,t,n):i(e,r,n)}},27534(e,t,n){var i=n(72552),r=n(40346);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},60270(e,t,n){var i=n(87068),r=n(40346);e.exports=function e(t,n,s,o,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!==t&&n!==n:i(t,n,s,o,e,a))}},87068(e,t,n){var i=n(37217),r=n(25911),s=n(21986),o=n(50689),a=n(5861),l=n(56449),c=n(3656),u=n(37167),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?d:a(e),S=b?d:a(t),_=(w=w==h?f:w)==f,E=(S=S==h?f:S)==f,O=w==S;if(O&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(O&&!_)return v||(v=new i),y||u(e)?r(e,t,n,m,g,v):s(e,t,w,n,m,g,v);if(!(1&n)){var k=_&&p.call(e,"__wrapped__"),A=E&&p.call(t,"__wrapped__");
vendor: 4,075 bytes, line 25
25if(k||A){var C=k?e.value():e,x=A?t.value():t;return v||(v=new i),g(C,x,n,m,v)}}return!!O&&(v||(v=new i),o(e,t,n,m,g,v))}},29172(e,t,n){var i=n(5861),r=n(40346);e.exports=function(e){return r(e)&&"[object Map]"==i(e)}},41799(e,t,n){var i=n(37217),r=n(60270);e.exports=function(e,t,n,s){var o=n.length,a=o,l=!s;if(null==e)return!a;for(e=Object(e);o--;){var c=n[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var u=(c=n[o])[0],h=e[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in e))return!1}else{var f=new i;if(s)var p=s(h,d,u,e,t,f);if(!(void 0===p?r(d,h,3,s,f):p))return!1}}return!0}},85463(e){e.exports=function(e){return e!==e}},45083(e,t,n){var i=n(1882),r=n(87296),s=n(23805),o=n(47473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||r(e))&&(i(e)?d:a).test(o(e))}},16038(e,t,n){var i=n(5861),r=n(40346);e.exports=function(e){return r(e)&&"[object Set]"==i(e)}},4901(e,t,n){var i=n(72552),r=n(30294),s=n(40346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&r(e.length)&&!!o[i(e)]}},15389(e,t,n){var i=n(93663),r=n(87978),s=n(83488),o=n(56449),a=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?o(e)?r(e[0],e[1]):i(e):a(e)}},88984(e,t,n){var i=n(55527),r=n(3650),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903(e,t,n){var i=n(23805),r=n(55527),s=n(90181),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return s(e);var t=r(e),n=[];for(var a in e)("constructor"!=a||!t&&o.call(e,a))&&n.push(a);return n}},5128(e,t,n){var i=n(80909),r=n(64894);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,(function(e,i,r){s[++n]=t(e,i,r)})),s}},93663(e,t,n){var i=n(41799),r=n(10776),s=n(67197);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},87978(e,t,n){var i=n(60270),r=n(58156),s=n(80631),o=n(28586),a=n(30756),l=n(67197),c=n(77797);e.exports=function(e,t){return o(e)&&a(t)?l(c(e),t):function(n){var o=r(n,e);return void 0===o&&o===t?s(n,e):i(t,o,3)}}},85250(e,t,n){var i=n(37217),r=n(87805),s=n(86649),o=n(42824),a=n(23805),l=n(37241),c=n(14974);e.exports=function e(t,n,u,h,d){t!==n&&s(n,(function(s,l){if(d||(d=new i),a(s))o(t,n,l,u,e,h,d);else{var f=h?h(c(t,l),s,l+"",t,n,d):void 0;void 0===f&&(f=s),r(t,l,f)}}),l)}},42824(e,t,n){var i=n(87805),r=n(93290),s=n(71961),o=n(45388),a=n(35529),l=n(72428),c=n(56449),u=n(83693),h=n(3656),d=n(1882),f=n(23805),p=n(11331),m=n(37167),g=n(14974),v=n(69884);e.exports=function(e,t,n,y,b,w,S){var _=g(e,n),E=g(t,n),O=S.get(E);if(O)i(e,n,O);else{var k=w?w(_,E,n+"",e,t,S):void 0,A=void 0===k;if(A){var C=c(E),x=!C&&h(E),P=!C&&!x&&m(E);k=E,C||x||P?c(_)?k=_:u(_)?k=o(_):x?(A=!1,k=r(E,!0)):P?(A=!1,k=s(E,!0)):k=[]:p(E)||l(E)?(k=_,l(_)?k=v(_):f(_)&&!d(_)||(k=a(E))):A=!1}A&&(S.set(E,k),b(k,E,y,w,S),S.delete(E)),i(e,n,k)}}},46155(e,t,n){var i=n(34932),r=n(47422),s=n(15389),o=n(5128),a=n(73937),l=n(27301),c=n(43714),u=n(83488),h=n(56449);e.exports=function(e,t,n){t=t.length?i(t,(function(e){return h(e)?function(t){return r(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=i(t,l(s));var f=o(e,(function(e,n,r){return{criteria:i(t,(function(t){return t(e)})),index:++d,value:e}}));
25return a(f,(function(e,t){return c(e,t,n)}))}},47237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255(e,t,n){var i=n(47422);e.exports=function(e){return function(t){return i(t,e)}}},54552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},86151(e){var t=Math.ceil,n=Math.max;e.exports=function(e,i,r,s){for(var o=-1,a=n(t((i-e)/(r||1)),0),l=Array(a);a--;)l[s?a:++o]=e,e+=r;return l}},84051(e){var t=Math.floor;e.exports=function(e,n){var i="";if(!e||n<1||n>9007199254740991)return i;do{n%2&&(i+=e),(n=t(n/2))&&(e+=e)}while(n);return i}},69302(e,t,n){var i=n(83488),r=n(56757),s=n(32865);e.exports=function(e,t){return s(r(e,t,i),e+"")}},19570(e,t,n){var i=n(37334),r=n(93243),s=n(83488),o=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=o},25160(e){e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+t];return s}},73937(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},78096(e){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},77556(e,t,n){var i=n(51873),r=n(34932),s=n(56449),o=n(44394),a=i?i.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return r(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128(e,t,n){var i=n(31800),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},27301(e){e.exports=function(e){return function(t){return e(t)}}},55765(e,t,n){var i=n(38859),r=n(15325),s=n(29905),o=n(19219),a=n(44517),l=n(84247);e.exports=function(e,t,n){var c=-1,u=r,h=e.length,d=!0,f=[],p=f;if(n)d=!1,u=s;else if(h>=200){var m=t?null:a(e);if(m)return l(m);d=!1,u=o,p=new i}else p=t?[]:f;e:for(;++c<h;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,d&&v===v){for(var y=p.length;y--;)if(p[y]===v)continue e;t&&p.push(v),f.push(g)}else u(p,v,n)||(p!==f&&p.push(v),f.push(g))}return f}},30514(e,t,n){var i=n(34932);e.exports=function(e,t){return i(t,(function(t){return e[t]}))}},51234(e){e.exports=function(e,t,n){for(var i=-1,r=e.length,s=t.length,o={};++i<r;){var a=i<s?t[i]:void 0;n(o,e[i],a)}return o}},19219(e){e.exports=function(e,t){return e.has(t)}},31769(e,t,n){var i=n(56449),r=n(28586),s=n(61802),o=n(13222);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:s(o(e))}},28754(e,t,n){var i=n(25160);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},23875(e,t,n){var i=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&i(t,e[n],0)>-1;);return n}},28380(e,t,n){var i=n(96131);e.exports=function(e,t){for(var n=-1,r=e.length;++n<r&&i(t,e[n],0)>-1;);return n}},49653(e,t,n){var i=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},93290(e,t,n){e=n.nmd(e);var i=n(9325),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,o=s&&s.exports===r?i.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}},76169(e,t,n){var i=n(49653);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},73201(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},93736(e,t,n){var i=n(51873),r=i?i.prototype:void 0,s=r?r.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},71961(e,t,n){var i=n(49653);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},53730(e,t,n){var i=n(44394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e===e,o=i(e),a=void 0!==t,l=null===t,c=t===t,u=i(t);if(!l&&!u&&!o&&e>t||o&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!s)return 1;if(!r&&!o&&!u&&e<t||u&&n&&s&&!r&&!o||l&&n&&s||!a&&s||!c)return-1}return 0}},43714(e,t,n){var i=n(53730);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,o=t.criteria,a=s.length,l=n.length;++r<a;){var c=i(s[r],o[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}},45388(e){e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}}
vendor: 4,986 bytes, line 25
25,21791(e,t,n){var i=n(16547),r=n(43360);e.exports=function(e,t,n,s){var o=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],u=s?s(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?r(n,c,u):i(n,c,u)}return n}},92271(e,t,n){var i=n(21791),r=n(4664);e.exports=function(e,t){return i(e,r(e),t)}},48948(e,t,n){var i=n(21791),r=n(86375);e.exports=function(e,t){return i(e,r(e),t)}},55481(e,t,n){var i=n(9325)["__core-js_shared__"];e.exports=i},20999(e,t,n){var i=n(69302),r=n(36800);e.exports=function(e){return i((function(t,n){var i=-1,s=n.length,o=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(s--,o):void 0,a&&r(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),t=Object(t);++i<s;){var l=n[i];l&&e(t,l,i,o)}return t}))}},38329(e,t,n){var i=n(64894);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,o=t?s:-1,a=Object(n);(t?o--:++o<s)&&!1!==r(a[o],o,a););return n}}},83221(e){e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),o=i(t),a=o.length;a--;){var l=o[e?a:++r];if(!1===n(s[l],l,s))break}return t}}},12507(e,t,n){var i=n(28754),r=n(49698),s=n(63912),o=n(13222);e.exports=function(e){return function(t){t=o(t);var n=r(t)?s(t):void 0,a=n?n[0]:t.charAt(0),l=n?i(n,1).join(""):t.slice(1);return a[e]()+l}}},45539(e,t,n){var i=n(40882),r=n(50828),s=n(66645),o=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return i(s(r(t).replace(o,"")),e,"")}}},85508(e,t,n){var i=n(86151),r=n(36800),s=n(17400);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&r(t,n,o)&&(n=o=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),o=void 0===o?t<n?1:-1:s(o),i(t,n,o,e)}}},44517(e,t,n){var i=n(76545),r=n(63950),s=n(84247),o=i&&1/s(new i([,-0]))[1]==1/0?function(e){return new i(e)}:r;e.exports=o},24647(e,t,n){var i=n(54552)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=i},93243(e,t,n){var i=n(56110),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=r},25911(e,t,n){var i=n(38859),r=n(14248),s=n(19219);e.exports=function(e,t,n,o,a,l){var c=1&n,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(e),f=l.get(t);if(d&&f)return d==t&&f==e;var p=-1,m=!0,g=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],y=t[p];if(o)var b=c?o(y,v,p,t,e,l):o(v,y,p,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!r(t,(function(e,t){if(!s(g,t)&&(v===e||a(v,e,n,o,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!a(v,y,n,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},21986(e,t,n){var i=n(51873),r=n(37828),s=n(75288),o=n(25911),a=n(20317),l=n(84247),c=i?i.prototype:void 0,u=c?c.valueOf
vendor: 2,931 bytes, line 25
25:void 0;e.exports=function(e,t,n,i,c,h,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var p=1&i;if(f||(f=l),e.size!=t.size&&!p)return!1;var m=d.get(e);if(m)return m==t;i|=2,d.set(e,t);var g=o(f(e),f(t),i,c,h,d);return d.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},50689(e,t,n){var i=n(50002),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,o,a){var l=1&n,c=i(e),u=c.length;if(u!=i(t).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in t:r.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++h<u;){var v=e[d=c[h]],y=t[d];if(s)var b=l?s(y,v,d,t,e,a):s(v,y,d,e,t,a);if(!(void 0===b?v===y||o(v,y,n,s,a):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}},34840(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},50002(e,t,n){var i=n(82199),r=n(4664),s=n(95950);e.exports=function(e){return i(e,s,r)}},83349(e,t,n){var i=n(82199),r=n(86375),s=n(37241);e.exports=function(e){return i(e,s,r)}},12651(e,t,n){var i=n(74218);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},10776(e,t,n){var i=n(30756),r=n(95950);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var s=t[n],o=e[s];t[n]=[s,o,i(o)]}return t}},56110(e,t,n){var i=n(45083),r=n(10392);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},28879(e,t,n){var i=n(74335)(Object.getPrototypeOf,Object);e.exports=i},659(e,t,n){var i=n(51873),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(l){}var r=o.call(e);return i&&(t?e[a]=n:delete e[a]),r}},4664(e,t,n){var i=n(79770),r=n(63345),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),i(o(e),(function(t){return s.call(e,t)})))}:r;e.exports=a},86375(e,t,n){var i=n(14528),r=n(28879),s=n(4664),o=n(63345),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,s(e)),e=r(e);return t}:o;e.exports=a},5861(e,t,n){var i=n(55580),r=n(68223),s=n(32804),o=n(76545),a=n(28303),l=n(72552),c=n(47473),u="[object Map]",h="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(i),g=c(r),v=c(s),y=c(o),b=c(a),w=l;
vendor: 4,255 bytes, line 25
25(i&&w(new i(new ArrayBuffer(1)))!=p||r&&w(new r)!=u||s&&w(s.resolve())!=h||o&&w(new o)!=d||a&&w(new a)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case m:return p;case g:return u;case v:return h;case y:return d;case b:return f}return t}),e.exports=w},10392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},49326(e,t,n){var i=n(31769),r=n(72428),s=n(56449),o=n(30361),a=n(30294),l=n(77797);e.exports=function(e,t,n){for(var c=-1,u=(t=i(t,e)).length,h=!1;++c<u;){var d=l(t[c]);if(!(h=null!=e&&n(e,d)))break;e=e[d]}return h||++c!=u?h:!!(u=null==e?0:e.length)&&a(u)&&o(d,u)&&(s(e)||r(e))}},49698(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},45434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},22032(e,t,n){var i=n(81042);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},63862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721(e,t,n){var i=n(81042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},12749(e,t,n){var i=n(81042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},35749(e,t,n){var i=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},76189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},77199(e,t,n){var i=n(49653),r=n(76169),s=n(73201),o=n(93736),a=n(71961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return s(e);case"[object Symbol]":return o(e)}}},35529(e,t,n){var i=n(39344),r=n(28879),s=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:i(r(e))}},45891(e,t,n){var i=n(51873),r=n(72428),s=n(56449),o=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(o&&e&&e[o])}},30361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},36800(e,t,n){var i=n(75288),r=n(64894),s=n(30361),o=n(23805);e.exports=function(e,t,n){if(!o(n))return!1;var a=typeof t;return!!("number"==a?r(n)&&s(t,n.length):"string"==a&&t in n)&&i(n[t],e)}},28586(e,t,n){var i=n(56449),r=n(44394),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(o.test(e)||!s.test(e)||null!=t&&e in Object(t))}},74218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296(e,t,n){var i,r=n(55481),s=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!s&&s in e}},55527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30756(e,t,n){var i=n(23805);e.exports=function(e){return e===e&&!i(e)}},63702(e){e.exports=function(){this.__data__=[],this.size=0}},70080(e,t,n){var i=n(26025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},24739(e,t,n){var i=n(26025);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}}
vendor: 5,831 bytes, line 25
25,48655(e,t,n){var i=n(26025);e.exports=function(e){return i(this.__data__,e)>-1}},31175(e,t,n){var i=n(26025);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},63040(e,t,n){var i=n(21549),r=n(80079),s=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||r),string:new i}}},17670(e,t,n){var i=n(12651);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},90289(e,t,n){var i=n(12651);e.exports=function(e){return i(this,e).get(e)}},4509(e,t,n){var i=n(12651);e.exports=function(e){return i(this,e).has(e)}},72949(e,t,n){var i=n(12651);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},20317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},67197(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},62224(e,t,n){var i=n(50104);e.exports=function(e){var t=i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},81042(e,t,n){var i=n(56110)(Object,"create");e.exports=i},3650(e,t,n){var i=n(74335)(Object.keys,Object);e.exports=i},90181(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009(e,t,n){e=n.nmd(e);var i=n(34840),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,o=s&&s.exports===r&&i.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=a},59350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},56757(e,t,n){var i=n(91033),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=r(s.length-t,0),l=Array(a);++o<a;)l[o]=s[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=s[o];return c[t]=n(l),i(e,this,c)}}},9325(e,t,n){var i=n(34840),r="object"==typeof self&&self&&self.Object===Object&&self,s=i||r||Function("return this")();e.exports=s},14974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},31380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459(e){e.exports=function(e){return this.__data__.has(e)}},84247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},32865(e,t,n){var i=n(19570),r=n(51811)(i);e.exports=r},51811(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51420(e,t,n){var i=n(80079);e.exports=function(){this.__data__=new i,this.size=0}},90938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605(e){e.exports=function(e){return this.__data__.get(e)}},29817(e){e.exports=function(e){return this.__data__.has(e)}},80945(e,t,n){var i=n(80079),r=n(68223),s=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var o=n.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(o)}return n.set(e,t),this.size=n.size,this}},76959(e){e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}},63912(e,t,n){var i=n(61074),r=n(49698),s=n(42054);e.exports=function(e){return r(e)?s(e):i(e)}},61802(e,t,n){var i=n(62224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,o=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(s,"$1"):n||e)})),t}));e.exports=o},77797(e,t,n){var i=n(44394);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},31800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},42054(e){var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",s="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[s,o,a].join("|")+")"+c+l+")*"),h="(?:"+[s+i+"?",i,o,a,n].join("|")+")",d=RegExp(r+"(?="+r+")|"+h+u,"g");e.exports=function(e){return e.match(d)||[]}},22225(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="["+s+"]",a="\\d+",l="["+n+"]",c="["+i+"]",u="[^"+t+s+a+n+i+r+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+r+"]",p="(?:"+c+"|"+u+")",m="(?:"+f+"|"+u+")",g="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",v="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+y+("(?:\\u200d(?:"+["[^"+t+"]",h,d].join("|")+")"+b+y+")*"),S="(?:"+[l,h,d].join("|")+")"+w,_=RegExp([f+"?"+c+"+"+g+"(?="+[o,f,"$"].join("|")+")",m+"+"+v+"(?="+[o,f+p,"$"].join("|")+")",f+"?"+p+"+"+g,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,S].join("|"),"g");e.exports=function(e){return e.match(_)||[]}},86139(e,t,n){var i=n(16547),r=n(21791),s=n(20999),o=n(64894),a=n(55527),l=n(95950),c=Object.prototype.hasOwnProperty,u=s((function(e,t){if(a(t)||o(t))r(t,l(t),e);
25else for(var n in t)c.call(t,n)&&i(e,n,t[n])}));e.exports=u},84058(e,t,n){var i=n(14792),r=n(45539)((function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)}));e.exports=r},14792(e,t,n){var i=n(13222),r=n(55808);e.exports=function(e){return r(i(e).toLowerCase())}},88055(e,t,n){var i=n(9999);e.exports=function(e){return i(e,5)}},83673(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var s=e[t];s&&(r[i++]=s)}return r}},37334(e){e.exports=function(e){return function(){return e}}},50828(e,t,n){var i=n(24647),r=n(13222),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(s,i).replace(o,"")}},66245(e,t,n){var i=n(83915),r=n(83120),s=n(69302),o=n(83693),a=s((function(e,t){return o(e)?i(e,r(t,1,o,!0)):[]}));e.exports=a},75288(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},24233(e,t,n){var i=n(36215),r=n(95950);e.exports=function(e){return null==e?[]:i(e,r(e))}},58156(e,t,n){var i=n(47422);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},61448(e,t,n){var i=n(20426),r=n(49326);e.exports=function(e,t){return null!=e&&r(e,t,i)}},80631(e,t,n){var i=n(28077),r=n(49326);e.exports=function(e,t){return null!=e&&r(e,t,i)}},83488(e){e.exports=function(e){return e}},79859(e,t,n){var i=n(96131),r=n(64894),s=n(85015),o=n(61489),a=n(35880),l=Math.max;e.exports=function(e,t,n,c){e=r(e)?e:a(e),n=n&&!c?o(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),s(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&i(e,t,n)>-1}},72428(e,t,n){var i=n(27534),r=n(40346),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},56449(e){var t=Array.isArray;e.exports=t},64894(e,t,n){var i=n(1882),r=n(30294);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},83693(e,t,n){var i=n(64894),r=n(40346);e.exports=function(e){return r(e)&&i(e)}},3656(e,t,n){e=n.nmd(e);var i=n(9325),r=n(89935),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,a=o&&o.exports===s?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},1900(e,t,n){var i=n(40346),r=n(11331);e.exports=function(e){return i(e)&&1===e.nodeType&&!r(e)}},1882(e,t,n){var i=n(72552),r=n(23805);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730(e,t,n){var i=n(29172),r=n(27301),s=n(86009),o=s&&s.isMap,a=o?r(o):i;e.exports=a},23805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},11331(e,t,n){var i=n(72552),r=n(28879),s=n(40346),o=Function.prototype,a=Object.prototype,l=o.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=i(e))return!1;var t=r(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},38440(e,t,n){var i=n(16038),r=n(27301),s=n(86009),o=s&&s.isSet,a=o?r(o):i;e.exports=a},85015(e,t,n){var i=n(72552),r=n(56449),s=n(40346);e.exports=function(e){return"string"==typeof e||!r(e)&&s(e)&&"[object String]"==i(e)}},44394(e,t,n){var i=n(72552),r=n(40346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},37167(e,t,n){var i=n(4901),r=n(27301),s=n(86009),o=s&&s.isTypedArray,a=o?r(o):i;e.exports=a},95950(e,t,n){var i=n(70695),r=n(88984),s=n(64894);e.exports=function(e){return s(e)?i(e):r(e)}},37241(e,t,n){var i=n(70695),r=n(72903),s=n(64894);e.exports=function(e){return s(e)?i(e,!0):r(e)}},50104(e,t,n){var i=n(53661);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},55364(e,t,n){var i=n(85250),r=n(20999)((function(e,t,n){i(e,t,n)}));e.exports=r},63950(e){e.exports=function(){}},50583(e,t,n){var i=n(47237),r=n(17255),s=n(28586),o=n(77797);e.exports=function(e){return s(e)?i(o(e)):r(e)}}
25,23181(e,t,n){var i=n(85508)();e.exports=i},12493(e,t,n){var i=n(84051),r=n(36800),s=n(61489),o=n(13222);e.exports=function(e,t,n){return t=(n?r(e,t,n):void 0===t)?1:s(t),i(o(e),t)}},33031(e,t,n){var i=n(83120),r=n(46155),s=n(69302),o=n(36800),a=s((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])}));e.exports=a},63345(e){e.exports=function(){return[]}},89935(e){e.exports=function(){return!1}},17400(e,t,n){var i=n(99374),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},61489(e,t,n){var i=n(17400);e.exports=function(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}},99374(e,t,n){var i=n(54128),r=n(23805),s=n(44394),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},69884(e,t,n){var i=n(21791),r=n(37241);e.exports=function(e){return i(e,r(e))}},13222(e,t,n){var i=n(77556);e.exports=function(e){return null==e?"":i(e)}},44826(e,t,n){var i=n(77556),r=n(54128),s=n(28754),o=n(23875),a=n(28380),l=n(63912),c=n(13222);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return r(e);if(!e||!(t=i(t)))return e;var u=l(e),h=l(t),d=a(u,h),f=o(u,h)+1;return s(u,d,f).join("")}},63375(e,t,n){var i=n(55765);e.exports=function(e){return e&&e.length?i(e):[]}},55808(e,t,n){var i=n(12507)("toUpperCase");e.exports=i},35880(e,t,n){var i=n(30514),r=n(95950);e.exports=function(e){return null==e?[]:i(e,r(e))}},66645(e,t,n){var i=n(1733),r=n(45434),s=n(13222),o=n(22225);e.exports=function(e,t,n){return e=s(e),void 0===(t=n?void 0:t)?r(e)?o(e):i(e):e.match(t)||[]}},47248(e,t,n){var i=n(16547),r=n(51234);e.exports=function(e,t){return r(e||[],t||[],i)}},48498(e,t){var n,i={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu"],run:function(e){e.domains=e.domains||i.defaultDomains,e.secondLevelDomains=e.secondLevelDomains||i.defaultSecondLevelDomains,e.topLevelDomains=e.topLevelDomains||i.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||i.sift3Distance;var t=function(e){return e},n=e.suggested||t,r=e.empty||t,s=i.suggest(i.encodeEmail(e.email),e.domains,e.secondLevelDomains,e.topLevelDomains,e.distanceFunction);return s?n(s):r()},suggest:function(e,t,n,i,r){e=e.toLowerCase();var s=this.splitEmail(e);if(n&&i&&-1!==n.indexOf(s.secondLevelDomain)&&-1!==i.indexOf(s.topLevelDomain))return!1;if(l=this.findClosestDomain(s.domain,t,r,this.domainThreshold))return l!=s.domain&&{address:s.address,domain:l,full:s.address+"@"+l};var o=this.findClosestDomain(s.secondLevelDomain,n,r,this.secondLevelThreshold),a=this.findClosestDomain(s.topLevelDomain,i,r,this.topLevelThreshold);if(s.domain){var l=s.domain,c=!1;if(o&&o!=s.secondLevelDomain&&(l=l.replace(s.secondLevelDomain,o),c=!0),a&&a!=s.topLevelDomain&&(l=l.replace(s.topLevelDomain,a),c=!0),1==c)return{address:s.address,domain:l,full:s.address+"@"+l}}return!1},findClosestDomain:function(e,t,n,i){var r;i=i||this.topLevelThreshold;var s=99,o=null;if(!e||!t)return!1;n||(n=this.sift3Distance);for(var a=0;a<t.length;a++){if(e===t[a])return e;(r=n(e,t[a]))<s&&(s=r,o=t[a])}return s<=i&&null!==o&&o},sift3Distance:function(e,t){if(null==e||0===e.length)return null==t||0===t.length?0:t.length;if(null==t||0===t.length)return e.length;for(var n=0,i=0,r=0,s=0;n+i<e.length&&n+r<t.length;){if(e.charAt(n+i)==t.charAt(n+r))s++;else{i=0,r=0;for(var o=0;o<5;o++){if(n+o<e.length&&e.charAt(n+o)==t.charAt(n)){i=o;break}if(n+o<t.length&&e.charAt(n)==t.charAt(n+o)){r=o;break}}}n++}return(e.length+t.length)/2-s},splitEmail:function(e){var t=e.trim().split("@");if(t.length<2)return!1;for(var n=0;n<t.length;n++)if(""===t[n])return!1;var i=t.pop(),r=i.split("."),s="",o="";if(0==r.length)return!1;if(1==r.length)o=r[0];else{s=r[0];for(n=1;n<r.length;n++)o+=r[n]+".";o=o.substring(0,o.length-1)}return{topLevelDomain:o,secondLevelDomain:s,domain:i,address:t.join("@")}},encodeEmail:function(e){var t=encodeURI(e);return t=t.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};e.exports&&(e.exports=i),void 0===(n=function(){return i}
vendor: 17,159 bytes, line 25
25.apply(t,[]))||(e.exports=n),"undefined"!==typeof window&&window.jQuery&&(jQuery.fn.mailcheck=function(e){var t=this;if(e.suggested){var n=e.suggested;e.suggested=function(e){n(t,e)}}if(e.empty){var r=e.empty;e.empty=function(){r.call(null,t)}}e.email=this.val(),i.run(e)})},16994(e,t,n){var i,r,s;window,r=[n(82831),n(21485)],void 0===(s="function"===typeof(i=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var i=n.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,s=r/i,o=i-r%i;s=Math[o&&o<1?"round":"floor"](s),this.cols=Math.max(s,1)},i.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),r={x:this.columnWidth*i.col,y:i.y},s=i.y+e.size.outerHeight,o=n+i.col,a=i.col;a<o;a++)this.colYs[a]=s;return r},i._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},i._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,i=0;i<n;i++)t[i]=this._getColGroupY(i,e);return t},i._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},i._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var i=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=i?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},i._manageStamp=function(e){var n=t(e),i=this._getElementOffset(e),r=this._getOption("originLeft")?i.left:i.right,s=r+n.outerWidth,o=Math.floor(r/this.columnWidth);o=Math.max(0,o);var a=Math.floor(s/this.columnWidth);a-=s%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,c=o;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},i._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?i.apply(t,r):i)||(e.exports=s)},63169(e,t,n){var i,r,s;window,r=[n(32137),n(21485)],void 0===(s="function"===typeof(i=function(e,t){"use strict";function n(e){for(var t in e)return!1;return!0}var i=document.documentElement.style,r="string"==typeof i.transition?"transition":"WebkitTransition",s="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],a={transform:s,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var c=l.prototype=Object.create(e.prototype);function u(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}c.constructor=l,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.getSize=function(){this.size=t(this.element)},c.css=function(e){var t=this.element.style;for(var n in e)t[a[n]||n]=e[n]},c.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=e[t?"left":"right"],r=e[n?"top":"bottom"],s=parseFloat(i),o=parseFloat(r),a=this.layout.size;-1!=i.indexOf("%")&&(s=s/100*a.width),-1!=r.indexOf("%")&&(o=o/100*a.height),s=isNaN(s)?0:s,o=isNaN(o)?0:o,s-=t?a.paddingLeft:a.paddingRight,o-=n?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=o},c.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=n?"paddingLeft":"paddingRight",s=n?"left":"right",o=n?"right":"left",a=this.position.x+e[r];t[s]=this.getXValue(a),t[o]="";var l=i?"paddingTop":"paddingBottom",c=i?"top":"bottom",u=i?"bottom":"top",h=this.position.y+e[l];t[c]=this.getYValue(h),t[u]="",this.css(t),this.emitEvent("layout",[this])},c.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},c.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},c._transitionTo=function(e,t){this.getPosition();var n=this.position.x,i=this.position.y,r=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!r||this.isTransitioning){var s=e-n,o=t-i,a={};a.transform=this.getTranslate(s,o),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},c.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},c.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},c._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},c.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var h="opacity,"+u(s);c.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:h,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1)}},c.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},c.onotransitionend=function(e){this.ontransitionend(e)};var d={"-webkit-transform":"transform"};c.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=d[e.propertyName]||e.propertyName;delete t.ingProperties[i],n(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd&&(t.onEnd[i].call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},c._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(f)},c.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},c.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?i.apply(t,r):i)||(e.exports=s)},82831(e,t,n){var i,r;!function(s){"use strict";i=[n(32137),n(21485),n(977),n(63169)],r=function(e,t,n,i){return function(e,t,n,i,r){var s=e.console,o=e.jQuery,a=function(){},l=0,c={};function u(e,t){var n=i.getQueryElement(e);if(n){this.element=n,o&&(this.$element=o(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(t);var r=++l;this.element.outlayerGUID=r,c[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(n||e))}u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=u.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}i.extend(h,t.prototype),h.option=function(e){i.extend(this.options,e)},h._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,i=[],r=0;r<t.length;r++){var s=new n(t[r],this);i.push(s)}return i},h._filterFindItemElements=function(e){return i.filterFindElements(e,this.options.itemSelector)},h.getItemElements=function(){return this.items.map((function(e){return e.element}))},h.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=n(this.element)},h._getMeasurement=function(e,t){var i,r=this.options[e];r?("string"==typeof r?i=this.element.querySelector(r):r instanceof HTMLElement&&(i=r),this[e]=i?n(i)[t]:r):this[e]=0},h.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},h._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},h._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var i=this._getItemLayoutPosition(e);i.item=e,i.isInstant=t||e.isLayoutInstant,n.push(i)}),this),this._processLayoutQueue(n)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},h.updateStagger=function(){var e=this.options.stagger;if(null!==e&&void 0!==e)return this.stagger=p(e),this.stagger;this.stagger=0},h._positionItem=function(e,t,n,i,r){i?e.goTo(t,n):(e.stagger(r*this.stagger),e.moveTo(t,n))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=a,h._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},h._emitCompleteOnItems=function(e,t){var n=this;function i(){n.dispatchEvent(e+"Complete",null,[t])}var r=t.length;if(t&&r){var s=0;t.forEach((function(t){t.once(e,o)}))}else i();function o(){++s==r&&i()}},h.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;if(this.emitEvent(e,i),o)if(this.$element=this.$element||o(this.element),t){var r=o.Event(t);r.type=e,this.$element.trigger(r,n)}else this.$element.trigger(e,n)},h.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},h.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},h.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},h.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){i.removeFrom(this.stamps,e),this.unignore(e)}),this)},h._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=i.makeArray(e)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},h._manageStamp=a,h._getElementOffset=function(e){var t=e.getBoundingClientRect(),i=this._boundingRect,r=n(e);return{left:t.left-i.left-r.marginLeft,top:t.top-i.top-r.marginTop,right:i.right-t.right-r.marginRight,bottom:i.bottom-t.bottom-r.marginBottom}},h.handleEvent=i.handleEvent,h.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},i.debounceMethod(u,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},h.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},h.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},h.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},h.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},h.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},h.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},h.getItems=function(e){e=i.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},h.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),i.removeFrom(this.items,e)}),this)},h.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete c[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},u.data=function(e){var t=(e=i.getQueryElement(e))&&e.outlayerGUID;return t&&c[t]},u.create=function(e,t){var n=d(u);return n.defaults=i.extend({},u.defaults),i.extend(n.defaults,t),n.compatOptions=i.extend({},u.compatOptions),n.namespace=e,n.data=u.data,n.Item=d(r),i.htmlInit(n,e),o&&o.bridget&&o.bridget(e,n),n};var f={ms:1,s:1e3};function p(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],i=t&&t[2];return n.length?(n=parseFloat(n))*(f[i]||1):0}return u.Item=r,u}(s,e,t,n,i)}.apply(t,i),void 0===r||(e.exports=r)}(window)},23247(e,t,n){"use strict";const i=function(e){return new this((function(t,n){if(!e||"undefined"===typeof e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(e);
25if(0===i.length)return t([]);var r=i.length;function s(e,n){if(n&&("object"===typeof n||"function"===typeof n)){var o=n.then;if("function"===typeof o)return void o.call(n,(function(t){s(e,t)}),(function(n){i[e]={status:"rejected",reason:n},0===--r&&t(i)}))}i[e]={status:"fulfilled",value:n},0===--r&&t(i)}for(var o=0;o<i.length;o++)s(o,i[o])}))};n.d(t,["A",0,i])},78109(e,t,n){"use strict";function i(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}i.prototype=Error.prototype;const r=function(e){var t=this;return new t((function(n,r){if(!e||"undefined"===typeof e.length)return r(new TypeError("Promise.any accepts an array"));var s=Array.prototype.slice.call(e);if(0===s.length)return r();for(var o=[],a=0;a<s.length;a++)try{t.resolve(s[a]).then(n).catch((function(e){o.push(e),o.length===s.length&&r(new i(o,"All promises were rejected"))}))}catch(l){r(l)}}))};n.d(t,["A",0,r])},1972(e,t,n){"use strict";const i=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};n.d(t,["A",0,i])},15523(e,t,n){"use strict";var i=n(1972),r=n(23247),s=n(78109),o=setTimeout;function a(e){return Boolean(e&&"undefined"!==typeof e.length)}function l(){}function c(e){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],m(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,c._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(r){return void d(t.promise,r)}h(t.promise,i)}else(1===e._state?h:d)(t.promise,e._value)}))):e._deferreds.push(t)}function h(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof c)return e._state=3,e._value=t,void f(e);if("function"===typeof n)return void m((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,f(e)}catch(s){d(e,s)}var i,r}function d(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&c._immediateFn((function(){e._handled||c._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function p(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function m(e,t){var n=!1;try{e((function(e){n||(n=!0,h(t,e))}),(function(e){n||(n=!0,d(t,e))}))}catch(i){if(n)return;n=!0,d(t,i)}}c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){var n=new this.constructor(l);return u(this,new p(e,t,n)),n},c.prototype.finally=i.A,c.all=function(e){return new c((function(t,n){if(!a(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var r=i.length;function s(e,o){try{if(o&&("object"===typeof o||"function"===typeof o)){var a=o.then;if("function"===typeof a)return void a.call(o,(function(t){s(e,t)}),n)}i[e]=o,0===--r&&t(i)}catch(l){n(l)}}for(var o=0;o<i.length;o++)s(o,i[o])}))},c.any=s.A,c.allSettled=r.A,c.resolve=function(e){return e&&"object"===typeof e&&e.constructor===c?e:new c((function(t){t(e)}))},c.reject=function(e){return new c((function(t,n){n(e)}))},c.race=function(e){return new c((function(t,n){if(!a(e))return n(new TypeError("Promise.race accepts an array"));for(var i=0,r=e.length;i<r;i++)c.resolve(e[i]).then(t,n)}))},c._immediateFn="function"===typeof setImmediate&&function(e){setImmediate(e)}||function(e){o(e,0)},c._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};const g=c;n.d(t,["A",0,g])},76160(e,t,n){"use strict";var i=n(15523),r=n(1972),s=n(23247),o=n(78109),a=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}();"function"!==typeof a.Promise?a.Promise=i.A:(a.Promise.prototype.finally||(a.Promise.prototype.finally=r.A),a.Promise.allSettled||(a.Promise.allSettled=s.A),a.Promise.any||(a.Promise.any=o.A))},31196(e){!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,i=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||a,scrollIntoView:i.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,o=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):r.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,"undefined"===typeof e?this.scrollLeft:~~e,"undefined"===typeof t?this.scrollTop:~~t)}else{if("number"===typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(e){for(;e!==t.body&&!1===h(e);)e=e.parentNode||e.host;return e}(this),i=n.getBoundingClientRect(),s=this.getBoundingClientRect();n!==t.body?(f.call(this,n,n.scrollLeft+s.left-i.left,n.scrollTop+s.top-i.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:s.left,top:s.top,behavior:"smooth"})}else r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function a(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!==typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;
25if("object"===typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function u(t,n){var i=e.getComputedStyle(t,null)["overflow"+n];return"auto"===i||"scroll"===i}function h(e){var t=c(e,"Y")&&u(e,"Y"),n=c(e,"X")&&u(e,"X");return t||n}function d(t){var n,i,r,o,a=(s()-t.startTime)/468;o=a=a>1?1:a,n=.5*(1-Math.cos(Math.PI*o)),i=t.startX+(t.x-t.startX)*n,r=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,r),i===t.x&&r===t.y||e.requestAnimationFrame(d.bind(e,t))}function f(n,i,o){var l,c,u,h,f=s();n===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,h=r.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,h=a),d({scrollable:l,method:h,startTime:f,startX:c,startY:u,x:i,y:o})}}}}()},40343(e,t){var n,i,r;!function(){"use strict";i=[],void 0===(r="function"===typeof(n=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var i=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],s=["fileName","functionName","source"],o=["args"],a=["evalOrigin"],l=i.concat(r,s,o,a);function c(e){if(e)for(var n=0;n<l.length;n++)void 0!==e[l[n]]&&this["set"+t(l[n])](e[l[n]])}c.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof c)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new c(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",i=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:i?i+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},c.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),i=e.substring(0,t),r=e.substring(t+1,n).split(","),s=e.substring(n+1);if(0===s.indexOf("@"))var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(s,""),a=o[1],l=o[2],u=o[3];return new c({functionName:i,args:r||void 0,fileName:a,lineNumber:l||void 0,columnNumber:u||void 0})};for(var u=0;u<i.length;u++)c.prototype["get"+t(i[u])]=n(i[u]),c.prototype["set"+t(i[u])]=function(e){return function(t){this[e]=Boolean(t)}}(i[u]);for(var h=0;h<r.length;h++)c.prototype["get"+t(r[h])]=n(r[h]),c.prototype["set"+t(r[h])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(r[h]);for(var d=0;d<s.length;d++)c.prototype["get"+t(s[d])]=n(s[d]),c.prototype["set"+t(s[d])]=function(e){return function(t){this[e]=String(t)}}(s[d]);return c})?n.apply(t,i):n)||(e.exports=r)}()},23007(e,t,n){var i=n(89159).n;function r(e,t,n){this.discrete=!1===e,this.delta=e||.01,this.K=void 0===t?25:t,this.CX=void 0===n?1.1:n,this.centroids=new i(s),this.nreset=0,this.reset()}function s(e,t){return e.mean>t.mean?1:e.mean<t.mean?-1:0}function o(e,t){return e.mean_cumn-t.mean_cumn}function a(e){this.config=e||{},this.mode=this.config.mode||"auto",r.call(this,"cont"===this.mode&&e.delta),this.digest_ratio=this.config.ratio||.9,this.digest_thresh=this.config.thresh||1e3,this.n_unique=0}r.prototype.reset=function(){this.centroids.clear(),this.n=0,this.nreset+=1,this.last_cumulate=0},r.prototype.size=function(){return this.centroids.size},r.prototype.toArray=function(e){var t=[];return e?(this._cumulate(!0),this.centroids.each((function(e){t.push(e)}))):this.centroids.each((function(e){t.push({mean:e.mean,n:e.n})})),t},r.prototype.summary=function(){return[(this.discrete?"exact ":"approximating ")+this.n+" samples using "+this.size()+" centroids","min = "+this.percentile(0),"Q1 = "+this.percentile(.25),"Q2 = "+this.percentile(.5),"Q3 = "+this.percentile(.75),"max = "+this.percentile(1)].join("\n")},r.prototype.push=function(e,t){t=t||1,e=Array.isArray(e)?e:[e];for(var n=0;n<e.length;n++)this._digest(e[n],t)},r.prototype.push_centroid=function(e){e=Array.isArray(e)?e:[e];for(var t=0;t<e.length;t++)this._digest(e[t].mean,e[t].n)},r.prototype._cumulate=function(e){if(!(this.n===this.last_cumulate||!e&&this.CX&&this.CX>this.n/this.last_cumulate)){var t=0;this.centroids.each((function(e){e.mean_cumn=t+e.n/2,t=e.cumn=t+e.n})),this.n=this.last_cumulate=t}},r.prototype.find_nearest=function(e){if(0===this.size())return null;var t=this.centroids.lowerBound({mean:e}),n=null===t.data()?t.prev():t.data();if(n.mean===e||this.discrete)return n;var i=t.prev();return i&&Math.abs(i.mean-e)<Math.abs(n.mean-e)?i:n},r.prototype._new_centroid=function(e,t,n){var i={mean:e,n:t,cumn:n};return this.centroids.insert(i),this.n+=t,i},r.prototype._addweight=function(e,t,n){t!==e.mean&&(e.mean+=n*(t-e.mean)/(e.n+n)),e.cumn+=n,e.mean_cumn+=n/2,e.n+=n,this.n+=n},r.prototype._digest=function(e,t){var n=this.centroids.min(),i=this.centroids.max(),r=this.find_nearest(e);
25if(r&&r.mean===e)this._addweight(r,e,t);else if(r===n)this._new_centroid(e,t,0);else if(r===i)this._new_centroid(e,t,this.n);else if(this.discrete)this._new_centroid(e,t,r.cumn);else{var s=r.mean_cumn/this.n;Math.floor(4*this.n*this.delta*s*(1-s))-r.n>=t?this._addweight(r,e,t):this._new_centroid(e,t,r.cumn)}this._cumulate(!1),!this.discrete&&this.K&&this.size()>this.K/this.delta&&this.compress()},r.prototype.bound_mean=function(e){var t=this.centroids.upperBound({mean:e}),n=t.prev();return[n,n.mean===e?n:t.next()]},r.prototype.p_rank=function(e){var t=(Array.isArray(e)?e:[e]).map(this._p_rank,this);return Array.isArray(e)?t:t[0]},r.prototype._p_rank=function(e){if(0!==this.size()){if(e<this.centroids.min().mean)return 0;if(e>this.centroids.max().mean)return 1;this._cumulate(!0);var t=this.bound_mean(e),n=t[0],i=t[1];if(this.discrete)return n.cumn/this.n;var r=n.mean_cumn;return n!==i&&(r+=(e-n.mean)*(i.mean_cumn-n.mean_cumn)/(i.mean-n.mean)),r/this.n}},r.prototype.bound_mean_cumn=function(e){this.centroids._comparator=o;var t=this.centroids.upperBound({mean_cumn:e});this.centroids._comparator=s;var n=t.prev();return[n,n&&n.mean_cumn===e?n:t.next()]},r.prototype.percentile=function(e){var t=(Array.isArray(e)?e:[e]).map(this._percentile,this);return Array.isArray(e)?t:t[0]},r.prototype._percentile=function(e){if(0!==this.size()){this._cumulate(!0);var t=this.n*e,n=this.bound_mean_cumn(t),i=n[0],r=n[1];return r===i||null===i||null===r?(i||r).mean:this.discrete?t<=i.cumn?i.mean:r.mean:i.mean+(t-i.mean_cumn)*(r.mean-i.mean)/(r.mean_cumn-i.mean_cumn)}},r.prototype.compress=function(){if(!this.compressing){var e,t,n=this.toArray();for(this.reset(),this.compressing=!0;n.length>0;)this.push_centroid((e=n,t=void 0,t=Math.floor(Math.random()*e.length),e.splice(t,1)[0]));this._cumulate(!0),this.compressing=!1}},a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.prototype.push=function(e){r.prototype.push.call(this,e),this.check_continuous()},a.prototype._new_centroid=function(e,t,n){this.n_unique+=1,r.prototype._new_centroid.call(this,e,t,n)},a.prototype._addweight=function(e,t,n){1===e.n&&(this.n_unique-=1),r.prototype._addweight.call(this,e,t,n)},a.prototype.check_continuous=function(){return!("auto"!==this.mode||this.size()<this.digest_thresh)&&(this.n_unique/this.size()>this.digest_ratio&&(this.mode="cont",this.discrete=!1,this.delta=this.config.delta||.01,this.compress(),!0))},e.exports={TDigest:r,Digest:a}},64504(e,t,n){"use strict";var i=n(16607),r=n(71576),s="tippy-content",o="tippy-backdrop",a="tippy-arrow",l="tippy-svg-arrow",c={passive:!0,capture:!0},u=function(){return document.body};function h(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function d(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"===typeof e?e.apply(void 0,t):e}function p(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function m(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function b(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function w(){return document.createElement("div")}function S(e){return["Element","Fragment"].some((function(t){return d(e,t)}))}function _(e){return d(e,"MouseEvent")}function E(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function O(e){return S(e)?[e]:function(e){return d(e,"NodeList")}(e)?y(e):Array.isArray(e)?e:y(document.querySelectorAll(e))}function k(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function A(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function x(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function P(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var T={isTouch:!1},N=0;function L(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",F))}function F(){var e=performance.now();e-N<20&&(T.isTouch=!1,document.removeEventListener("mousemove",F)),N=e}function D(){var e=document.activeElement;if(E(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M=!!("undefined"!==typeof window&&"undefined"!==typeof document)&&!!window.msCrypto;var R={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},j=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},R,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),B=Object.keys(j);function I(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,s=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=j[r])?i:s);return t}),{});return Object.assign({},e,t)}function V(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}
25:function(e,t){return(t?Object.keys(I(Object.assign({},j,{plugins:t}))):B).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(r){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},j.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function z(e,t){e.innerHTML=t}function U(e){var t=w();return!0===e?t.className=a:(t.className=l,S(e)?t.appendChild(e):z(t,e)),t}function H(e,t){S(t.content)?(z(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?z(e,t.content):e.textContent=t.content)}function q(e){var t=e.firstElementChild,n=y(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(s)})),arrow:n.find((function(e){return e.classList.contains(a)||e.classList.contains(l)})),backdrop:n.find((function(e){return e.classList.contains(o)}))}}function W(e){var t=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=w();function r(n,i){var r=q(t),s=r.box,o=r.content,a=r.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),"string"===typeof i.animation?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"===typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||H(o,e.props),i.arrow?a?n.arrow!==i.arrow&&(s.removeChild(a),s.appendChild(U(i.arrow))):s.appendChild(U(i.arrow)):a&&s.removeChild(a)}return i.className=s,i.setAttribute("data-state","hidden"),H(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}W.$$tippy=!0;var $=1,K=[],G=[];function Z(e,t){var n,i,s,o,a,l,d,S,E=V(e,Object.assign({},j,I(b(t)))),O=!1,N=!1,L=!1,F=!1,D=[],R=p(we,E.interactiveDebounce),B=$++,z=(S=E.plugins).filter((function(e,t){return S.indexOf(e)===t})),U={id:B,reference:e,popper:w(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:z,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)},setProps:function(t){0;if(U.state.isDestroyed)return;oe("onBeforeUpdate",[U,t]),ye();var n=U.props,i=V(e,Object.assign({},n,b(t),{ignoreAttributes:!0}));U.props=i,ve(),n.interactiveDebounce!==i.interactiveDebounce&&(ce(),R=p(we,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");le(),se(),Z&&Z(n,i);U.popperInstance&&(Oe(),Ae().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));oe("onAfterUpdate",[U,t])},setContent:function(e){U.setProps({content:e})},show:function(){0;var e=U.state.isVisible,t=U.state.isDestroyed,n=!U.state.isEnabled,i=T.isTouch&&!U.props.touch,r=h(U.props.duration,0,j.duration);if(e||t||n||i)return;if(te().hasAttribute("disabled"))return;if(oe("onShow",[U],!1),!1===U.props.onShow(U))return;U.state.isVisible=!0,ee()&&(W.style.visibility="visible");se(),fe(),U.state.isMounted||(W.style.transition="none");if(ee()){var s=ie();k([s.box,s.content],0)}l=function(){var e;if(U.state.isVisible&&!F){if(F=!0,W.offsetHeight,W.style.transition=U.props.moveTransition,ee()&&U.props.animation){var t=ie(),n=t.box,i=t.content;k([n,i],r),A([n,i],"visible")}ae(),le(),g(G,U),null==(e=U.popperInstance)||e.forceUpdate(),oe("onMount",[U]),U.props.animation&&ee()&&function(e,t){me(e,t)}(r,(function(){U.state.isShown=!0,oe("onShown",[U])}))}},function(){var e,t=U.props.appendTo,n=te();e=U.props.interactive&&t===u||"parent"===t?n.parentNode:f(t,[n]);e.contains(W)||e.appendChild(W);U.state.isMounted=!0,Oe(),!1}()},hide:function(){0;var e=!U.state.isVisible,t=U.state.isDestroyed,n=!U.state.isEnabled,i=h(U.props.duration,1,j.duration);if(e||t||n)return;if(oe("onHide",[U],!1),!1===U.props.onHide(U))return;U.state.isVisible=!1,U.state.isShown=!1,F=!1,O=!1,ee()&&(W.style.visibility="hidden");if(ce(),pe(),se(!0),ee()){var r=ie(),s=r.box,o=r.content;U.props.animation&&(k([s,o],i),A([s,o],"hidden"))}ae(),le(),U.props.animation?ee()&&function(e,t){me(e,(function(){!U.state.isVisible&&W.parentNode&&W.parentNode.contains(W)&&t()}))}(i,U.unmount):U.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",R),g(K,R),R(e)},enable:function(){U.state.isEnabled=!0},disable:function(){U.hide(),U.state.isEnabled=!1},unmount:function(){0;U.state.isVisible&&U.hide();if(!U.state.isMounted)return;
vendor: 4,141 bytes, line 25
25ke(),Ae().forEach((function(e){e._tippy.unmount()})),W.parentNode&&W.parentNode.removeChild(W);G=G.filter((function(e){return e!==U})),U.state.isMounted=!1,oe("onHidden",[U])},destroy:function(){0;if(U.state.isDestroyed)return;U.clearDelayTimeouts(),U.unmount(),ye(),delete e._tippy,U.state.isDestroyed=!0,oe("onDestroy",[U])}};if(!E.render)return U;var H=E.render(U),W=H.popper,Z=H.onUpdate;W.setAttribute("data-tippy-root",""),W.id="tippy-"+U.id,U.popper=W,e._tippy=U,W._tippy=U;var Y=z.map((function(e){return e.fn(U)})),X=e.hasAttribute("aria-expanded");return ve(),le(),se(),oe("onCreate",[U]),E.showOnCreate&&Ce(),W.addEventListener("mouseenter",(function(){U.props.interactive&&U.state.isVisible&&U.clearDelayTimeouts()})),W.addEventListener("mouseleave",(function(){U.props.interactive&&U.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",R)})),U;function J(){var e=U.props.touch;return Array.isArray(e)?e:[e,0]}function Q(){return"hold"===J()[0]}function ee(){var e;return!(null==(e=U.props.render)||!e.$$tippy)}function te(){return d||e}function ne(){var e=te().parentNode;return e?C(e):document}function ie(){return q(W)}function re(e){return U.state.isMounted&&!U.state.isVisible||T.isTouch||o&&"focus"===o.type?0:h(U.props.delay,e?0:1,j.delay)}function se(e){void 0===e&&(e=!1),W.style.pointerEvents=U.props.interactive&&!e?"":"none",W.style.zIndex=""+U.props.zIndex}function oe(e,t,n){var i;(void 0===n&&(n=!0),Y.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=U.props)[e].apply(i,t)}function ae(){var t=U.props.aria;if(t.content){var n="aria-"+t.content,i=W.id;m(U.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(U.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function le(){!X&&U.props.aria.expanded&&m(U.props.triggerTarget||e).forEach((function(e){U.props.interactive?e.setAttribute("aria-expanded",U.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",R),K=K.filter((function(e){return e!==R}))}function ue(t){if(!T.isTouch||!L&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!U.props.interactive||!P(W,n)){if(m(U.props.triggerTarget||e).some((function(e){return P(e,n)}))){if(T.isTouch)return;if(U.state.isVisible&&U.props.trigger.indexOf("click")>=0)return}else oe("onClickOutside",[U,t]);!0===U.props.hideOnClick&&(U.clearDelayTimeouts(),U.hide(),N=!0,setTimeout((function(){N=!1})),U.state.isMounted||pe())}}}function he(){L=!0}function de(){L=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,c),e.addEventListener("touchstart",de,c),e.addEventListener("touchmove",he,c)}function pe(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,c),e.removeEventListener("touchstart",de,c),e.removeEventListener("touchmove",he,c)}function me(e,t){var n=ie().box;function i(e){e.target===n&&(x(n,"remove",i),t())}if(0===e)return t();x(n,"remove",a),x(n,"add",i),a=i}function ge(t,n,i){void 0===i&&(i=!1),m(U.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),D.push({node:e,eventType:t,handler:n,options:i})}))}function ve(){var e;Q()&&(ge("touchstart",be,{passive:!0}),ge("touchend",Se,{passive:!0})),(e=U.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,be),e){case"mouseenter":ge("mouseleave",Se);break;case"focus":ge(M?"focusout":"blur",_e);break;case"focusin":ge("focusout",_e)}}))}function ye(){D.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),D=[]}function be(e){var t,n=!1;if(U.state.isEnabled&&!Ee(e)&&!N){var i="focus"===(null==(t=o)?void 0:t.type);o=e,d=e.currentTarget,le(),!U.state.isVisible&&_(e)&&K.forEach((function(t){return t(e)})),"click"===e.type&&(U.props.trigger.indexOf("mouseenter")<0||O)&&!1!==U.props.hideOnClick&&U.state.isVisible?n=!0:Ce(e),"click"===e.type&&(O=!n),n&&!i&&xe(e)}}function we(e){var t=e.target,n=te().contains(t)||W.contains(t);
25if("mousemove"!==e.type||!n){var i=Ae().concat(W).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,s=e.props.interactiveBorder,o=v(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,u="right"===o?a.left.x:0,h="left"===o?a.right.x:0,d=t.top-i+l>s,f=i-t.bottom-c>s,p=t.left-n+u>s,m=n-t.right-h>s;return d||f||p||m}))})(i,e)&&(ce(),xe(e))}}function Se(e){Ee(e)||U.props.trigger.indexOf("click")>=0&&O||(U.props.interactive?U.hideWithInteractivity(e):xe(e))}function _e(e){U.props.trigger.indexOf("focusin")<0&&e.target!==te()||U.props.interactive&&e.relatedTarget&&W.contains(e.relatedTarget)||xe(e)}function Ee(e){return!!T.isTouch&&Q()!==e.type.indexOf("touch")>=0}function Oe(){ke();var t=U.props,n=t.popperOptions,i=t.placement,s=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,c=ee()?q(W).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||te()}:e,h={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=ie().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},h];ee()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),U.popperInstance=(0,r.n)(u,W,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:d}))}function ke(){U.popperInstance&&(U.popperInstance.destroy(),U.popperInstance=null)}function Ae(){return y(W.querySelectorAll("[data-tippy-root]"))}function Ce(e){U.clearDelayTimeouts(),e&&oe("onTrigger",[U,e]),fe();var t=re(!0),i=J(),r=i[0],s=i[1];T.isTouch&&"hold"===r&&s&&(t=s),t?n=setTimeout((function(){U.show()}),t):U.show()}function xe(e){if(U.clearDelayTimeouts(),oe("onUntrigger",[U,e]),U.state.isVisible){if(!(U.props.trigger.indexOf("mouseenter")>=0&&U.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&O)){var t=re(!1);t?i=setTimeout((function(){U.state.isVisible&&U.hide()}),t):s=requestAnimationFrame((function(){U.hide()}))}}else pe()}}function Y(e,t){void 0===t&&(t={});var n=j.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",L,c),window.addEventListener("blur",D);var i=Object.assign({},t,{plugins:n}),r=O(e).reduce((function(e,t){var n=t&&Z(t,i);return n&&e.push(n),e}),[]);return S(e)?r[0]:r}Y.defaultProps=j,Y.setDefaultProps=function(e){Object.keys(e).forEach((function(t){j[t]=e[t]}))},Y.currentInput=T;Object.assign({},i.A,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Y.setDefaultProps({render:W});const X=Y;n.d(t,["Ay",0,X])},78624(e,t,n){"use strict";var i="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},r="URLSearchParams"in i,s="Symbol"in i&&"iterator"in Symbol,o="FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in i,l="ArrayBuffer"in i;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!==typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,i,r,s=m(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),i=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=i?i[1]:"utf-8",t.readAsText(e,r),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=h(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[h(e)]},p.prototype.get=function(e){return e=h(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(h(e))},p.prototype.set=function(e,t){this.map[h(e)]=d(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},s&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object c
25onstructor cannot be called as a function.');var n,r,s=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in i)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},b.call(S.prototype),b.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var O=[301,302,303,307,308];E.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})};var k=i.DOMException;try{new k}catch(C){(k=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),k.prototype.constructor=k}function A(e,t){return new Promise((function(n,r){var s=new S(e,t);if(s.signal&&s.signal.aborted)return r(new k("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}if(a.onload=function(){var e,t,i={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();try{t.append(i,r)}catch(s){console.warn("Response "+s.message)}}})),t)};0===s.url.indexOf("file://")&&(a.status<200||a.status>599)?i.status=200:i.status=a.status,i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;setTimeout((function(){n(new E(r,i))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},a.onabort=function(){setTimeout((function(){r(new k("Aborted","AbortError"))}),0)},a.open(s.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&(o?a.responseType="blob":l&&(a.responseType="arraybuffer")),t&&"object"===typeof t.headers&&!(t.headers instanceof p||i.Headers&&t.headers instanceof i.Headers)){var u=[];
25Object.getOwnPropertyNames(t.headers).forEach((function(e){u.push(h(e)),a.setRequestHeader(e,d(t.headers[e]))})),s.headers.forEach((function(e,t){-1===u.indexOf(t)&&a.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){a.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send("undefined"===typeof s._bodyInit?null:s._bodyInit)}))}A.polyfill=!0,i.fetch||(i.fetch=A,i.Headers=p,i.Request=S,i.Response=E)},18987(e,t,n){"use strict";function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)"__proto__"!==i&&(e[i]=n[i])}return e}n.d(t,{A:()=>r});var r=function e(t,n){function r(e,r,s){if("undefined"!==typeof document){"number"===typeof(s=i({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in s)s[a]&&(o+="; "+a,!0!==s[a]&&(o+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var s=n[r].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(a in i||(i[a]=t.read(o,a)),e===a)break}catch(l){}}return e?i[e]:i}},remove:function(e,t){r(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},69213(e,t,n){"use strict";n.d(t,{A:()=>o});var i=class{x;y;pressure;time;constructor(e,t,n,i){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}},r=class e{constructor(e,t,n,i,r,s){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=i,this.startWidth=r,this.endWidth=s}startPoint;control2;control1;endPoint;startWidth;endWidth;static fromPoints(t,n){const i=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new e(t[1],i,r,t[2],n.start,n.end)}static calculateControlPoints(e,t,n){const r=e.x-t.x,s=e.y-t.y,o=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,c=(e.y+t.y)/2,u=(t.x+n.x)/2,h=(t.y+n.y)/2,d=Math.sqrt(r*r+s*s),f=Math.sqrt(o*o+a*a),p=d+f==0?0:f/(d+f),m=u+(l-u)*p,g=h+(c-h)*p,v=t.x-m,y=t.y-g;return{c1:new i(l+v,c+y),c2:new i(u+v,h+y)}}length(){let e,t,n=0;for(let i=0;i<=10;i+=1){const r=i/10,s=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),o=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){const i=s-e,r=o-t;n+=Math.sqrt(i*i+r*r)}e=s,t=o}return n}point(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e}},s=class{_et;constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}};var o=class e extends s{constructor(t,n={}){super(),this.canvas=t,this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle=n.throttle??16,this.minDistance=n.minDistance??5,this.dotSize=n.dotSize||0,this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=n.compositeOperation||"source-over",this.canvasContextOptions=n.canvasContextOptions??{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,i,r,s=0,o=null;const a=()=>{s=Date.now(),o=null,n=e.apply(i,r),o||(i=null,r=[])};return function(...l){const c=Date.now(),u=t-(c-s);return i=this,r=l,u<=0||u>t?(o&&(clearTimeout(o),o=null),s=c,n=e.apply(i,r),o||(i=null,r=[])):o||(o=window.setTimeout(a,u)),n}}(e.prototype._strokeUpdate,this.throttle):e.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._handlePointerCancel=this._handlePointerCancel.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}canvas;dotSize;minWidth;maxWidth;penColor;minDistance;velocityFilterWeight;compositeOperation;backgroundColor;throttle;canvasContextOptions;_ctx;_drawingStroke=!1;_isEmpty=!0;_dataUrl;_dataUrlOptions;_lastPoints=[];_data=[];_lastVelocity=0;_lastWidth=0;_strokeMoveUpdate;_strokePointerId;clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const e=this._data,t=this._dataUrl,n=this._dataUrlOptions;this.clear(),t&&this.fromDataURL(t,n),this.fromData(e,{clear:!1})}fromDataURL(e,t={}){return new Promise(((n,i)=>{const r=new Image,s=t.ratio||window.devicePixelRatio||1,o=t.width||this.canvas.width/s,a=t.height||this.canvas.height/s,l=t.xOffset||0,c=t.yOffset||0;this._reset(this._getPointGroupOptions()),r.onload=()=>{this._ctx.drawImage(r,l,c,o,a),n()},r.onerror=e=>{i(e)},r.crossOrigin="anonymous",r.src=e,this._isEmpty=!1,this._dataUrl=e,this._dataUrlOptions={...t}}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!==typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!==typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none",this.canvas.style.webkitUserSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.style.webkitUserSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){const e=window.document===this.canvas.ownerDocument?window:this.canvas.ownerDocument.defaultView??this.canvas.ownerDocument;return{addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}_removeMoveUpEventListeners(){const{removeEventListener:e}=this._getListenerFunctions();e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp),e("pointercancel",this._handlePointerCancel),e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp),e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd),e("touchcancel",this._handleTouchCancel)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this),this._drawLine.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_isLeftButtonPressed(e,t){return t?1===e.buttons:1===(1&e.buttons)}_pointerEventToSignatureEvent(e){return{event:e,type:e.type,x:e.clientX,y:e.clientY,pressure:"pressure"in e?e.pressure:0}}_touchEventToSignatureEvent(e){const t=e.changedTouches[0];return{event:e,type:e.type,x:t.clientX,y:t.clientY,pressure:t.force}}_handleMouseDown(e){this._isLeftButtonPressed(e,!0)&&!this._drawingStroke&&this._strokeBegin(this._pointerEventToSignatureEvent(e))}_handleMouseMove(e){this._isLeftButtonPressed(e,!0)&&this._drawingStroke?this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e)):this._strokeEnd(this._pointerEventToSignatureEvent(e),!1)}_handleMouseUp(e){this._isLeftButtonPressed(e)||this._strokeEnd(this._pointerEventToSignatureEvent(e))}_handleTouchStart(e){1!==e.targetTouches.length||this._drawingStroke||(e.cancelable&&e.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(e)))}_handleTouchMove(e){1===e.targetTouches.length&&(e.cancelable&&e.preventDefault(),this._drawingStroke?this._strokeMoveUpdate(this._touchEventToSignatureEvent(e)):this._strokeEnd(this._touchEventToSignatureEvent(e),!1))}_handleTouchEnd(e){0===e.targetTouches.length&&(e.cancelable&&e.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(e)))}_handlePointerCancel(e){this._allowPointerId(e)&&(e.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(e),!1))}_handleTouchCancel(e){e.cancelable&&e.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(e),!1)}_getPointerId(e){return e.persistentDeviceId||e.pointerId}_allowPointerId(e,t=!1){return"undefined"===typeof this._strokePointerId?t
vendor: 4,774 bytes, line 25
25:this._getPointerId(e)===this._strokePointerId}_handlePointerDown(e){!this._drawingStroke&&this._isLeftButtonPressed(e)&&this._allowPointerId(e,!0)&&(this._strokePointerId=this._getPointerId(e),e.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(e)))}_handlePointerMove(e){this._allowPointerId(e)&&(this._isLeftButtonPressed(e,!0)&&this._drawingStroke?(e.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e))):this._strokeEnd(this._pointerEventToSignatureEvent(e),!1))}_handlePointerUp(e){!this._isLeftButtonPressed(e)&&this._allowPointerId(e)&&(e.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(e)))}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;const{addEventListener:t}=this._getListenerFunctions();switch(e.event.type){case"mousedown":t("mousemove",this._handleMouseMove,{passive:!1}),t("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":t("touchmove",this._handleTouchMove,{passive:!1}),t("touchend",this._handleTouchEnd,{passive:!1}),t("touchcancel",this._handleTouchCancel,{passive:!1});break;case"pointerdown":t("pointermove",this._handlePointerMove,{passive:!1}),t("pointerup",this._handlePointerUp,{passive:!1}),t("pointercancel",this._handlePointerCancel,{passive:!1})}this._drawingStroke=!0;const n=this._getPointGroupOptions(),i={...n,points:[]};this._data.push(i),this._reset(n),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=this._createPoint(e.x,e.y,e.pressure),n=this._data[this._data.length-1],i=n.points,r=i.length>0&&i[i.length-1],s=!!r&&t.distanceTo(r)<=this.minDistance,o=this._getPointGroupOptions(n);if(!r||!r||!s){const e=this._addPoint(t,o);r?e&&this._drawCurve(e,o):this._drawDot(t,o),i.push({time:t.time,x:t.x,y:t.y,pressure:t.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e,t=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(t&&this._strokeUpdate(e),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const r=this.canvas.getBoundingClientRect();return new i(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),i=r.fromPoints(n,e);return n.shift(),i}return null}_calculateCurveWidths(e,t,n){const i=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i,n),s={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,s}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,i=e.endWidth-e.startWidth,r=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let s=0;s<r;s+=1){const n=s/r,o=n*n,a=o*n,l=1-n,c=l*l,u=c*l;let h=u*e.startPoint.x;h+=3*c*n*e.control1.x,h+=3*l*o*e.control2.x,h+=a*e.endPoint.x;let d=u*e.startPoint.y;d+=3*c*n*e.control1.y,d+=3*l*o*e.control2.y,d+=a*e.endPoint.y;const f=Math.min(e.startWidth+a*i,t.maxWidth);this._drawCurveSegment(h,d,f)}n.closePath(),n.fill()}_getDotSize(e){return e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2}_drawDot(e,t){const n=this._ctx,i=this._getDotSize(t);n.beginPath(),this._drawCurveSegment(e.x,e.y,i),n.closePath(),n.fillStyle=t.penColor,n.fill()}_drawLine(e,t,n){const i=this._ctx;i.save(),i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.lineWidth=2*this._getDotSize(n),i.lineCap="round",i.strokeStyle=n.penColor,i.stroke(),i.restore(
25),this._isEmpty=!1}_fromData(e,t,n,r){for(const s of e){const{points:e}=s,o=this._getPointGroupOptions(s);if(e.length>2)for(let n=0;n<e.length;n+=1){const r=e[n],s=new i(r.x,r.y,r.pressure,r.time);0===n&&this._reset(o);const a=this._addPoint(s,o);a&&t(a,o)}else 2===e.length?(this._reset(o),r(e[0],e[1],o)):(this._reset(o),n(e[0],o))}}toSVG({includeBackgroundColor:e=!1,includeDataUrl:t=!1}={}){const n=this._data,i=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/i,s=this.canvas.height/i,o=document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttribute("viewBox",`0 0 ${r} ${s}`),o.setAttribute("width",r.toString()),o.setAttribute("height",s.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),o.appendChild(e)}if(t&&this._dataUrl){const e=this._dataUrlOptions?.ratio||window.devicePixelRatio||1,t=this._dataUrlOptions?.width||this.canvas.width/e,n=this._dataUrlOptions?.height||this.canvas.height/e,i=this._dataUrlOptions?.xOffset||0,r=this._dataUrlOptions?.yOffset||0,s=document.createElement("image");s.setAttribute("x",i.toString()),s.setAttribute("y",r.toString()),s.setAttribute("width",t.toString()),s.setAttribute("height",n.toString()),s.setAttribute("preserveAspectRatio","none"),s.setAttribute("href",this._dataUrl),o.appendChild(s)}return this._fromData(n,((e,{penColor:t})=>{const n=document.createElement("path");if(!isNaN(e.control1.x)&&!isNaN(e.control1.y)&&!isNaN(e.control2.x)&&!isNaN(e.control2.y)){const i=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",i),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),o.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:i,maxWidth:r})=>{const s=document.createElement("circle"),a=n>0?n:(i+r)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),o.appendChild(s)}),((e,t,n)=>{const i=document.createElement("line");i.setAttribute("x1",e.x.toString()),i.setAttribute("y1",e.y.toString()),i.setAttribute("x2",t.x.toString()),i.setAttribute("y2",t.y.toString()),i.setAttribute("stroke",n.penColor),i.setAttribute("stroke-width",(2*this._getDotSize(n)).toString()),i.setAttribute("stroke-linecap","round"),o.appendChild(i)})),o.outerHTML}}},23436(e,t,n){"use strict";n.d(t,{Ay:()=>L});var i=class{main;placeholder;values;single;multiString;max;value;valueText;valueDelete;valueOut;deselect;deselectPath;arrow;arrowClose;arrowOpen;content;contentOpen;dirAbove;dirBelow;search;searchHighlighter;searching;status;addable;addablePath;list;optgroup;optgroupLabel;optgroupLabelText;optgroupActions;optgroupSelectAll;optgroupSelectAllBox;optgroupSelectAllCheck;optgroupClosable;option;optionDelete;highlighted;modalOverlay;modalDialog;modalTitle;modalClose;modalContent;mainOpen;close;selected;error;disabled;hide;constructor(e){e||={};let t=(e="",t="")=>`${e} ${t}`.trim();this.main=t("ss-main",e.main),this.placeholder=t("ss-placeholder",e.placeholder),this.values=t("ss-values",e.values),this.single=t("ss-single",e.single),this.multiString=t("ss-multi-string",e.multiString),this.max=t("ss-max",e.max),this.value=t("ss-value",e.value),this.valueText=t("ss-value-text",e.valueText),this.valueDelete=t("ss-value-delete",e.valueDelete),this.valueOut=t("ss-value-out",e.valueOut),this.deselect=t("ss-deselect",e.deselect),this.deselectPath=e.deselectPath||"M10,10 L90,90 M10,90 L90,10",this.arrow=t("ss-arrow",e.arrow),this.arrowClose=e.arrowClose||"M10,30 L50,70 L90,30",this.arrowOpen=e.arrowOpen||"M10,70 L50,30 L90,70",this.content=t("ss-content",e.content),this.contentOpen=t("ss-open",e.contentOpen),this.dirAbove=t("ss-dir-above",e.dirAbove),this.dirBelow=t("ss-dir-below",e.dirBelow),this.search=t("ss-search",e.search),this.searchHighlighter=t("ss-search-highlight",e.searchHighlighter),this.searching=t("ss-searching",e.searching),this.status=t("ss-status",e.status),this.addable=t
25("ss-addable",e.addable),this.addablePath=e.addablePath||"M50,10 L50,90 M10,50 L90,50",this.list=t("ss-list",e.list),this.optgroup=t("ss-optgroup",e.optgroup),this.optgroupLabel=t("ss-optgroup-label",e.optgroupLabel),this.optgroupLabelText=t("ss-optgroup-label-text",e.optgroupLabelText),this.optgroupActions=t("ss-optgroup-actions",e.optgroupActions),this.optgroupSelectAll=t("ss-selectall",e.optgroupSelectAll),this.optgroupSelectAllBox=e.optgroupSelectAllBox||"M15,15 L85,15 L85,85 L15,85 Z",this.optgroupSelectAllCheck=e.optgroupSelectAllCheck||"M25,50 L42,68 L75,32",this.optgroupClosable=t("ss-closable",e.optgroupClosable),this.option=t("ss-option",e.option),this.optionDelete=e.optionDelete||"M10,10 L90,90 M10,90 L90,10",this.highlighted=t("ss-highlighted",e.highlighted),this.modalOverlay=t("ss-modal-overlay",e.modalOverlay),this.modalDialog=t("ss-modal-dialog",e.modalDialog),this.modalTitle=t("ss-modal-title",e.modalTitle),this.modalClose=t("ss-modal-close",e.modalClose),this.modalContent=t("ss-modal-content",e.modalContent),this.mainOpen=t("ss-open",e.mainOpen),this.close=t("ss-close",e.close),this.selected=t("ss-selected",e.selected),this.error=t("ss-error",e.error),this.disabled=t("ss-disabled",e.disabled),this.hide=t("ss-hide",e.hide)}getFirst(e){return this[e].split(" ")[0]}},r=200,s=["transform","opacity"];function o(e,t=r){return function(e,t=r){let n=e.trim();if(!n)return t;if(n.endsWith("ms")){let e=parseFloat(n);return Number.isNaN(e)?t:e}if(n.endsWith("s")){let e=parseFloat(n);return Number.isNaN(e)?t:1e3*e}let i=parseFloat(n);return Number.isNaN(i)?t:i}(getComputedStyle(e).getPropertyValue("--ss-animation-timing").trim(),t)}function a(e,t,n=r){let i=o(e,n)+50;return void 0===t?i:Math.max(i,t)}function l(){return!(typeof window>"u"||"function"!=typeof window.matchMedia)&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function c(e,t,n=r,i){if(l()||i?.aborted)return Promise.resolve();let s=function(e){return void 0===e?null:new Set(Array.isArray(e)?e:[e])}(t);return new Promise((t=>{let r=null,o=!1,a=()=>{o||(o=!0,e.removeEventListener("transitionend",c),i?.removeEventListener("abort",l),r&&clearTimeout(r),t())},l=()=>a(),c=t=>{t.target===e&&(s&&(!s.has(t.propertyName)||(s.delete(t.propertyName),s.size>0))||a())};i?.addEventListener("abort",l,{once:!0}),e.addEventListener("transitionend",c),r=setTimeout(a,n)}))}function u(e,t,n=r,i){return l()||i?.aborted?Promise.resolve():new Promise((r=>{let s=null,o=!1,a=()=>{o||(o=!0,e.removeEventListener("animationend",c),i?.removeEventListener("abort",l),s&&clearTimeout(s),r())},l=()=>a(),c=n=>{n.target===e&&(t&&n.animationName!==t||a())};i?.addEventListener("abort",l,{once:!0}),e.addEventListener("animationend",c),s=setTimeout(a,n)}))}var h=class{id="";style="";class=[];isMultiple=!1;isOpen=!1;isFullOpen=!1;disabled;alwaysOpen;showSearch;focusSearch;keepSearch;ariaLabel;searchPlaceholder;searchText;searchingText;resultsText;deselectText;removeText;searchHighlight;closeOnSelect;contentLocation;contentPosition;contentWidth;openPosition;placeholderText;allowDeselect;hideSelected;multiString;keepOrder;showOptionTooltips;minSelected;maxSelected;timeoutDelay;maxValuesShown;maxValuesMessage;addableText;selectAll;selectAllText;unselectAllText;modal;modalTitle;constructor(e){e||={},this.id="ss-"+p(),this.style=e.style||"",this.class=e.class||[],this.disabled=void 0!==e.disabled&&e.disabled,this.alwaysOpen=void 0!==e.alwaysOpen&&e.alwaysOpen,this.showSearch=void 0===e.showSearch||e.showSearch,this.focusSearch=void 0===e.focusSearch?typeof window>"u"||window.innerWidth>=768:e.focusSearch,this.keepSearch=void 0!==e.keepSearch&&e.keepSearch,this.ariaLabel=e.ariaLabel||"Combobox",this.searchPlaceholder=e.searchPlaceholder||"Search...",this.searchText=e.searchText||"No Results",this.searchingText=e.searchingText||"Searching...",this.resultsText=e.resultsText||"{count} results available",this.deselectText=e.deselectText||"Clear",this.removeText=e.removeText||"Remove",this.searchHighlight=void 0!==e.searchHighlight&&e.searchHighlight,this.closeOnSelect=void 0===e.closeOnSelect||e.closeOnSelect,this.contentLocation=e.contentLocation||document.body,this.contentPosition=e.contentPosition||"absolute",this.contentWidth=e.contentWidth||"",this.openPosition=e.openPosition||"auto",this.placeholderText=void 0===e.placeholderText?"Select Value":e.placeholderText,this.allowDeselect=void 0!==e.allowDeselect&&e.allowDeselect,this.hideSelected=void 0!==e.hide
25Selected&&e.hideSelected,this.multiString=void 0!==e.multiString&&e.multiString,this.keepOrder=void 0!==e.keepOrder&&e.keepOrder,this.showOptionTooltips=void 0!==e.showOptionTooltips&&e.showOptionTooltips,this.minSelected=e.minSelected||0,this.maxSelected=e.maxSelected||1e3,this.timeoutDelay=e.timeoutDelay||200,this.maxValuesShown=e.maxValuesShown||20,this.maxValuesMessage=e.maxValuesMessage||"{number} selected",this.addableText=e.addableText||'Press "Enter" to add {value}',this.selectAll=void 0!==e.selectAll&&e.selectAll,this.selectAllText=e.selectAllText||"Select All",this.unselectAllText=e.unselectAllText||"Unselect All",this.modal=e.modal||"mobile",this.modalTitle=e.modalTitle||""}};function d(e){if(!e)return{};let t={};for(let n of Object.keys(e)){let i=e[n];void 0!==i&&(t[n]=i)}return t}function f(e){let t=e.cloneNode(!0);return t.querySelectorAll("select, option, optgroup, textarea, input, button").forEach((e=>e.remove())),t.textContent?.replace(/\s+/g," ").trim()||""}function p(){return Math.random().toString(36).substring(2,10)}function m(e,t){function n(e,n){return n&&e&&e.classList&&e.classList.contains(n)||n&&e&&e.dataset&&e.dataset.id&&e.dataset.id===t?e:null}return n(e,t)||function e(t,i){return t&&t!==document?n(t,i)?t:e(t.parentNode,i):null}(e,t)}function g(e,t=50,n=!1){let i;return function(...r){let s=self,o=n&&!i;clearTimeout(i),i=setTimeout((()=>{i=null,n||e.apply(s,r)}),t),o&&e.apply(s,r)}}function v(e,t){if(e.length!==t.length)return!1;let n=[...e].sort(),i=[...t].sort();return n.every(((e,t)=>e===i[t]))}var y=["id","value","text","html","defaultSelected","selected","display","disabled","placeholder","class","style","mandatory"];function b(e,t){switch(t){case"id":return e.id||"";case"value":return void 0===e.value?e.text||"":e.value||"";case"text":return e.text||"";case"html":return e.html||"";case"defaultSelected":return e.defaultSelected??!1;case"selected":return e.selected??!1;case"display":return e.display??!0;case"disabled":return e.disabled??!1;case"placeholder":return e.placeholder??!1;case"class":return e.class||"";case"style":return e.style||"";case"mandatory":return e.mandatory??!1;default:return e.data||{}}}function w(e){return!!e&&"object"==typeof e&&"label"in e&&"options"in e}function S(e,t){for(let n of y)if(b(e,n)!==b(t,n))return!1;return function(e,t){let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}(e.data||{},t.data||{})}function _(e,t){let n=e=>({id:e.id||"",label:e.label||"",selectAll:e.selectAll??!1,closable:e.closable||"off"}),i=n(e),r=n(t);if(i.id!==r.id||i.label!==r.label||i.selectAll!==r.selectAll||i.closable!==r.closable)return!1;let s=e.options||[],o=t.options||[];if(s.length!==o.length)return!1;for(let a=0;a<s.length;a++)if(!S(s[a],o[a]))return!1;return!0}var E=class{handlers;attached=!1;constructor(e){this.handlers=e}attach(e){this.attached||(this.attached=!0,window.addEventListener("resize",this.resizeHandler,!1),e.listenScroll&&window.addEventListener("scroll",this.scrollHandler,!1),document.addEventListener("visibilitychange",this.visibilityHandler))}attachDocumentClick(){document.addEventListener("click",this.handlers.onDocumentClick)}detachDocumentClick(){document.removeEventListener("click",this.handlers.onDocumentClick)}detach(e){this.attached&&(this.attached=!1,this.detachDocumentClick(),window.removeEventListener("resize",this.resizeHandler,!1),e.listenScroll&&window.removeEventListener("scroll",this.scrollHandler,!1),document.removeEventListener("visibilitychange",this.visibilityHandler))}resizeHandler=g((()=>{this.handlers.onWindowResize()}));scrollHandler=g((()=>{this.handlers.onWindowScroll()}));visibilityHandler=()=>{this.handlers.onVisibilityChange()}},O=class{handlers;options;state="closed";pendingTimer=null;waitResolvers=[];generation=0;animationAbort=null;constructor(e,t){this.handlers=e,this.options=t}get isOpen(){return"opening"===this.state||"open"===this.state}get isFullOpen(){return"open"===this.state}async requestOpen(){if("opening"===this.state||"open"===this.state)return;this.cancelPending();let e=++this.generation;this.handlers.beforeOpen&&this.handlers.beforeOpen(),this.state="opening",await this.waitForPhase("open",e),e===this.generation?(this.state="open",this.handlers.afterOpen&&this.handlers.afterOpen(),this.handlers.onOpenReady&&this.handlers.onOpenReady()):"opening"===this.state&&(this.state="closed")}async requestClose(e={source:"api",selectionChanged:!1}){if("closed"===this.state||"closing"===this.state||this.handlers.beforeClose&&!1===this.handlers.beforeClose(e))return!1;this.cancelPending();let t=++this.generation;return this.handlers.onClose&&this.handlers.onClose(e),this.state="closing",await this.waitForPhase("close",t),t===this.generation&&(this.state="closed",this.handlers.afterClose&&this.handlers.afterClose(),this.handlers.onCloseReady&&this.handlers.onCloseReady(),!0)}cancelPending(){this.generation++,this.animationAbort?.abort(),this.animationAbort=null,this.pendingTimer&&=(clearTimeout(this.pendingTimer),null);let e=this.waitResolvers.splice(0);for(let t of e)t()}destroy(){this.cancelPending(),this.state="closed"}waitForPhase(e,t){return new Promise((t=>{let n=!1,i=()=>
25{if(n)return;n=!0;let e=this.waitResolvers.indexOf(i);-1!==e&&this.waitResolvers.splice(e,1),t()};if(this.waitResolvers.push(i),this.options.waitForAnimation){let t=new AbortController;this.animationAbort=t,this.options.waitForAnimation(e,t.signal).catch((()=>{})).finally((()=>{this.animationAbort===t&&(this.animationAbort=null),i()}))}else this.pendingTimer=setTimeout((()=>{this.pendingTimer=null,i()}),this.options.timeoutDelay)})).then((()=>{this.generation}))}},k=class{id;value;text;html;defaultSelected;selected;display;disabled;placeholder;class;style;data;mandatory;constructor(e){this.id=e.id&&""!==e.id?e.id:p(),this.value=void 0===e.value?e.text||"":e.value||"",this.text=e.text||"",this.html=e.html||"",this.defaultSelected=void 0!==e.defaultSelected&&e.defaultSelected,this.selected=void 0!==e.selected&&e.selected,this.display=void 0===e.display||e.display,this.disabled=void 0!==e.disabled&&e.disabled,this.mandatory=void 0!==e.mandatory&&e.mandatory,this.placeholder=void 0!==e.placeholder&&e.placeholder,this.class=e.class||"",this.style=e.style||"",this.data=d(e.data)}},A=class{id;label;selectAll;closable;options;constructor(e){if(this.id=e.id&&""!==e.id?e.id:p(),this.label=e.label||"",this.selectAll=void 0!==e.selectAll&&e.selectAll,this.closable=e.closable||"off",this.options=[],e.options)for(let t of e.options)this.options.push(new k(t))}},C=class{selectType="single";data=[];selectedOrder=[];catalog=null;constructor(e,t){this.selectType=e,this.setData(t),this.snapshotCatalog()}validateDataArray(e){if(!Array.isArray(e))return Error("Data must be an array");for(let t of e)if(t)if(t instanceof A||"label"in t){if(!("label"in t))return Error("Optgroup must have a label");if("options"in t&&t.options)for(let e of t.options){let t=this.validateOption(e);if(t)return t}}else{if(!(t instanceof k||"text"in t))return Error("Data object must be a valid optgroup or option");{let e=this.validateOption(t);if(e)return e}}return null}validateOption(e){return"text"in e?null:Error("Option must have a text")}partialToFullData(e){let t=[];return e.forEach((e=>{if(e){if(e instanceof A||"label"in e){let n=[];"options"in e&&e.options&&e.options.forEach((e=>{n.push(new k(e))})),n.length>0&&t.push(new A(e))}(e instanceof k||"text"in e)&&t.push(new k(e))}})),t}snapshotCatalog(){this.catalog=this.cloneData(this.data)}getCatalogData(){return this.cloneData(this.catalog??this.data)}cloneData(e){return e.map((e=>e instanceof A?new A({id:e.id,label:e.label,selectAll:e.selectAll,closable:e.closable,options:e.options.map((e=>new k(e instanceof k?{...e}:e)))}):new k({...e})))}optionMatchesSelected(e,t){return e.id===t.id||""!==t.value&&""!==e.value&&e.value===t.value}findOptionInData(e,t){for(let n of e)if(n instanceof k){if(this.optionMatchesSelected(n,t))return n}else for(let e of n.options)if(this.optionMatchesSelected(e,t))return e;return null}setData(e,t=!1){let n=this.partialToFullData(e),i=[];if(t){i=this.getSelectedOptions();let e=[];i.forEach((t=>{this.findOptionInData(n,t)||e.push(t)})),this.data=[...e,...n];let t="single"===this.selectType&&0===i.length,r=i.map((e=>{let t=this.findOptionInData(this.data,e);return t?t.id:e.id}));this.setSelectedBy("id",r,t)}else this.data=n;!t&&"single"===this.selectType&&this.setSelectedBy("id",this.getSelected(),!1)}getData(e=!0){return this.filter(null,!0,e)}getDataOptions(e=!0){return this.filter(null,!1,e)}addOption(e,t=!1){if(t){let t=[new k(e)];this.setData(t.concat(this.getData()))}else this.setData(this.getData().concat(new k(e)))}setSelectedBy(e,t,n=!1){let i=null,r=!1,s=[];for(let a of this.data){if(a instanceof A)for(let n of a.options){i||=n;let o=n[e]||"";n.selected=!r&&t.includes(o),n.selected&&(s.push(n),"single"===this.selectType&&(r=!0))}a instanceof k&&(i||=a,a.selected=!r&&t.includes(a[e]),a.selected&&(s.push(a),"single"===this.selectType&&(r=!0)))}"single"===this.selectType&&i&&!r&&!n&&(i.selected=!0,s.push(i));let o=t.map((t=>s.find((n=>n[e]===t))?.id||""));this.selectedOrder=o}getSelected(){return this.getSelectedOptions().map((e=>e.id))}getSelectedValues(){return this.getSelectedOptions().map((e=>e.value))}getSelectedOptions(){let e=[];for(let t of this.data)if(t instanceof A)for(let n of t.options)n.selected&&e.push(n);else t.selected&&e.push(t);return e}getOptgroupByID(e){for(let t of this.data)if(t instanceof A&&t.id===e)return t;return null}getOptionByID(e){for(let t of this.data)if(t instanceof A){for(let n of t.options)if(n.id===e)return n}else if(t.id===e)return t;return null}getSelectType(){return this.selectType}getFirstOption(){let e=null;for(let t of this.data)if(t instanceof A?e=t.options[0]:t instanceof k&&(e=t),e)break;return e}search(e,t){return""===(e=e.trim())?this.getData(!1):this.filter((n=>t(n,e)),!0,!1)}
25createOptgroupView(e,t){let n=new A({id:e.id,label:e.label,selectAll:e.selectAll,closable:e.closable,options:[]});return n.options=t,n}filter(e,t,n=!0){let i=[];return this.data.forEach((r=>{if(r instanceof A){let s=[];if(r.options.forEach((r=>{(!e||e(r))&&(t?s.push(n?new k(r):r):i.push(n?new k(r):r))})),s.length>0)if(n){let e=new A(r);e.options=s,i.push(e)}else i.push(this.createOptgroupView(r,s))}r instanceof k&&(!e||e(r))&&i.push(n?new k(r):r)})),i}selectedOrderOptions(e){let t=[];return this.selectedOrder.forEach((n=>{let i=e.find((e=>e.id===n));i&&t.push(i)})),e.forEach((e=>{let n=!1;t.forEach((t=>{e.id!==t.id||(n=!0)})),n||t.push(e)})),t}},x=class{settings;store;callbacks;lastSelectedOption;lastRenderedOptions;optionsListIsFullData=!1;lastSearchFilterTerm="";main;content;classes;positionObserver=null;positionObserverRaf=0;lastObservedContentHeight=-1;overflowShiftRaf=0;modalElements=null;modalSessionActive=null;bodyScrollLocked=!1;savedBodyOverflow="";constructor(e,t,n,i){this.store=n,this.settings=e,this.classes=t,this.callbacks=i,this.lastSelectedOption=null,this.lastRenderedOptions=[],this.main=this.mainDiv(),this.content=this.contentDiv(),this.updateClassStyles(),this.updateAriaAttributes(),"relative"!==this.settings.contentPosition&&(this.content.main.style.top="-9999px",this.content.main.style.left="-9999px",this.content.main.style.margin="0",this.content.main.style.width="auto"),this.settings.contentLocation&&this.settings.contentLocation.appendChild(this.content.main),"off"!==this.settings.modal&&!this.settings.alwaysOpen&&(this.modalElements=this.createModalElements(),document.body.appendChild(this.modalElements.overlay))}requestClose(e,t){this.callbacks.close({source:e,option:t?.option,selectionChanged:t?.selectionChanged??!1})}selectionChanged(e,t){if(e.length!==t.length)return!0;let n=e.map((e=>e.id)).sort(),i=t.map((e=>e.id)).sort();return n.some(((e,t)=>e!==i[t]))}closeOnSingleSelectReclick(e){this.settings.closeOnSelect&&this.requestClose("select",{option:e,selectionChanged:!1})}addClasses(e,t){if(!t||""===t.trim())return;let n=t.split(" ").filter((e=>""!==e.trim()));for(let i of n)e.classList.add(i.trim())}removeClasses(e,t){if(!t||""===t.trim())return;let n=t.split(" ").filter((e=>""!==e.trim()));for(let i of n)e.classList.remove(i.trim())}enable(){this.removeClasses(this.main.main,this.classes.disabled),this.main.main.setAttribute("aria-disabled","false"),this.content.search.input.disabled=!1}disable(){this.addClasses(this.main.main,this.classes.disabled),this.main.main.setAttribute("aria-disabled","true"),this.content.search.input.disabled=!0}open(){this.main.arrow.path.setAttribute("d",this.classes.arrowOpen),this.main.main.setAttribute("aria-expanded","true");let e=this.resolveModalView();if(!e){let e="up"===this.settings.openPosition?this.classes.dirAbove:this.classes.dirBelow;this.addClasses(this.main.main,e),this.addClasses(this.content.main,e)}this.addClasses(this.content.main,this.classes.contentOpen),this.content.search.input.removeAttribute("aria-hidden"),e?this.showModal():this.moveContent();let t=this.store.getSelectedOptions();if(t.length){let e=t[t.length-1].id,n=this.content.list.querySelector('[data-id="'+e+'"]');n&&this.ensureElementInView(this.content.list,n)}}isModalViewActive(){return!0===this.modalSessionActive}resolveModalView(){return!(this.settings.alwaysOpen||"off"===this.settings.modal||!this.modalElements)&&(null===this.modalSessionActive&&(this.modalSessionActive=function(e,t=(typeof window<"u"?window.innerWidth:768)){return"on"===e||"mobile"===e&&t<768}(this.settings.modal)),this.modalSessionActive)}createModalElements(){let e=document.createElement("div");this.addClasses(e,this.classes.modalOverlay),this.addClasses(e,this.classes.hide),e.dataset.id=this.settings.id;let t=document.createElement("div");this.addClasses(t,this.classes.modalDialog),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true");let n=null;this.settings.modalTitle?(n=document.createElement("div"),this.addClasses(n,this.classes.modalTitle),n.id=`${this.settings.id}-modal-title`,n.textContent=this.settings.modalTitle,t.setAttribute("aria-labelledby",n.id)):t.setAttribute("aria-label",this.settings.ariaLabel);let i=document.createElement("button");i.type="button",this.addClasses(i,this.classes.modalClose),i.setAttribute("aria-label","Close"),i.onclick=e=>{e.stopPropagation(),this.requestClose("modal")};let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 100 100");let s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttribute("d",this.classes.deselectPath),r.appendChild(s),i.appendChild(r),e.onclick=t=>{t.target===e&&this.requestClose("modal")},n&&t.appendChild(n),e.appendChild(t),{overlay:e,dialog:t,closeButton:i,title:n}}showModal(){this.modalElements&&(this.modalElements.dialog.appendChild(this.content.main),this.addClasses(this.content.main,this.classes.modalContent),this.content.main.appendChild(this.modalElements.closeButton),this.content.main.style.top="",this.content.main.style.left="",this.content.main.style.margin="",this.content.main.style.width="",this.removeClasses(this.modalElements.overlay,this.classes.hide),requestAnimationFrame((()=>{this.modalElements&&this.addClasses(this.modalElements.overlay,this.classes.contentOpen)})),this.lockBodyScroll())}lockBodyScroll(){this.bodyScrollLocked||=(this.savedBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",!0)}unlockBodyScroll(){this.bodyScrollLocked&&(document.body.style.overflow=this.savedBodyOverflow,this.bodyScrollLocked=!1,this.savedBodyOverflow="")}restoreContentOffscreen(){this.settings.contentLocation&&this.settings.contentLocation.appendChild(this.content.main),"relative"!==this.settings.contentPosition&&(this.content.main.style.top="-9999px",this.content.main.style.left="-9999px",this.content.main.style.margin="0",this.content.main.style.width="auto")}finalizeModalClose(){this.modalElements&&this.content.main.parentElement===this.modalElements.dialog&&(this.addClasses(this.modalElements.overlay,this.classes.hide),this.removeClasses(this.modalElements.overlay,this.classes.contentOpen),this.removeClasses(this.content.main,this.classes.modalContent),this.modalElements.closeButton.remove(),this.restoreContentOffscreen(),this.unlockBodyScroll())}waitForAnimation(e,t){let n=a(this.content.main,this.settings.timeoutDelay);return c(this.content.main,s,n,t)}
25close(){this.main.main.setAttribute("aria-expanded","false"),this.main.arrow.path.setAttribute("d",this.classes.arrowClose);let e=!0===this.modalSessionActive;this.removeClasses(this.content.main,this.classes.contentOpen),e||(this.removeClasses(this.main.main,this.classes.dirAbove),this.removeClasses(this.main.main,this.classes.dirBelow)),e&&this.modalElements&&this.removeClasses(this.modalElements.overlay,this.classes.contentOpen),this.modalSessionActive=null,this.content.search.input.setAttribute("aria-hidden","true"),this.main.main.removeAttribute("aria-activedescendant"),this.clearValueChipHighlight()}clearDirectionClasses(){this.removeClasses(this.main.main,this.classes.dirAbove),this.removeClasses(this.main.main,this.classes.dirBelow),this.removeClasses(this.content.main,this.classes.dirAbove),this.removeClasses(this.content.main,this.classes.dirBelow)}updateClassStyles(){if(this.main.main.className="",this.main.main.removeAttribute("style"),this.content.main.className="",this.content.main.removeAttribute("style"),this.addClasses(this.main.main,this.classes.main),this.addClasses(this.content.main,this.classes.content),""!==this.settings.style&&(this.main.main.style.cssText=this.settings.style,this.content.main.style.cssText=this.settings.style),this.settings.class.length)for(let e of this.settings.class)""!==e.trim()&&(this.main.main.classList.add(e.trim()),this.content.main.classList.add(e.trim()));("relative"===this.settings.contentPosition||"fixed"===this.settings.contentPosition)&&this.content.main.classList.add("ss-"+this.settings.contentPosition)}updateAriaAttributes(){let e=this.content.list.id;this.main.main.role="combobox",this.main.main.setAttribute("aria-haspopup","listbox"),this.main.main.setAttribute("aria-controls",e),this.main.main.setAttribute("aria-expanded","false"),this.content.list.setAttribute("role","listbox"),this.content.list.setAttribute("aria-label",this.settings.ariaLabel+" listbox"),this.settings.isMultiple&&this.content.list.setAttribute("aria-multiselectable","true"),this.content.search.input.setAttribute("aria-controls",e)}mainDiv(){let e=document.createElement("div");e.dataset.id=this.settings.id,e.setAttribute("aria-label",this.settings.ariaLabel),e.tabIndex=0,e.onkeydown=e=>{switch(e.key){case"ArrowUp":case"ArrowDown":return this.callbacks.open(),"ArrowDown"===e.key?this.highlight("down"):this.highlight("up"),!1;case"Tab":return this.requestClose("tab"),!0;case"Enter":case" ":this.callbacks.open();let t=this.content.list.querySelector("."+this.classes.getFirst("highlighted"));return t&&t.click(),!1;case"Escape":return this.requestClose("escape"),!1}return 1===e.key.length&&this.callbacks.open(),!0},e.onclick=e=>{this.settings.disabled||(this.settings.isOpen?this.requestClose("toggle"):this.callbacks.open())};let t=document.createElement("div");this.addClasses(t,this.classes.values),e.appendChild(t);let n=document.createElement("div");this.addClasses(n,this.classes.deselect),n.setAttribute("role","button"),n.setAttribute("aria-label",this.settings.deselectText),n.setAttribute("tabindex","0");let i=this.store?.getSelectedOptions();!this.settings.allowDeselect||this.settings.isMultiple&&i&&i.length<=0||this.isAtMinSelected()?this.addClasses(n,this.classes.hide):this.removeClasses(n,this.classes.hide),n.onclick=e=>{if(e.stopPropagation(),this.settings.disabled||this.settings.isMultiple&&this.isAtMinSelected())return;let t=!0,n=this.store.getSelectedOptions(),i=[],r="";if(this.settings.isMultiple){let e=this.settings.minSelected,t=this.store.getSelected();if(e>0&&t.length>e)r=this.getMinimumSelectionIds(),i=n.filter((e=>r.includes(e.id)));else{if(!(e<=0))return;r=[]}}if(this.callbacks.beforeChange&&(t=!0===this.callbacks.beforeChange(i,n)),t){if(this.settings.isMultiple)this.callbacks.setSelected(r,!1),this.updateDeselectAll();else{let e=this.store.getFirstOption(),t=e?e.id:"";this.callbacks.setSelected(t,!1)}this.settings.closeOnSelect&&this.requestClose("deselect",{selectionChanged:!0}),this.callbacks.afterChange&&this.callbacks.afterChange(this.store.getSelectedOptions())}},n.onkeydown=e=>
25{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n.click())};let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 100 100");let s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",this.classes.deselectPath),r.appendChild(s),n.appendChild(r),e.appendChild(n);let o=document.createElementNS("http://www.w3.org/2000/svg","svg");this.addClasses(o,this.classes.arrow),o.setAttribute("viewBox","0 0 100 100");let a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("d",this.classes.arrowClose),this.settings.alwaysOpen&&this.addClasses(o,this.classes.hide),o.appendChild(a),e.appendChild(o),{main:e,values:t,deselect:{main:n,svg:r,path:s},arrow:{main:o,path:a}}}mainFocus(e){"click"!==e&&this.main.main.focus({preventScroll:!0})}placeholder(){let e=this.store.filter((e=>e.placeholder),!1,!1),t=this.settings.placeholderText;e.length&&(""===e[0].html?""!==e[0].text&&(t=e[0].text):t=e[0].html);let n=document.createElement("div");return this.addClasses(n,this.classes.placeholder),n.innerHTML=t,n}renderValues(){this.settings.isMultiple?(this.renderMultipleValues(),this.updateDeselectAll()):this.renderSingleValue()}renderSingleValue(){let e=this.store.filter((e=>e.selected&&!e.placeholder),!1,!1),t=e.length>0?e[0]:null;if(t){let e=document.createElement("div");this.addClasses(e,this.classes.single),t.html?e.innerHTML=t.html:e.innerText=t.text,this.main.values.innerHTML=e.outerHTML}else this.main.values.innerHTML=this.placeholder().outerHTML;this.settings.allowDeselect&&e.length?this.removeClasses(this.main.deselect.main,this.classes.hide):this.addClasses(this.main.deselect.main,this.classes.hide)}renderMultipleValues(){let e=this.main.values.childNodes,t=this.store.filter((e=>e.selected&&e.display),!1,!1);if(0===t.length)return void(this.main.values.innerHTML=this.placeholder().outerHTML);{let e=this.main.values.querySelector("."+this.classes.getFirst("placeholder"));e&&e.remove()}if(this.settings.multiString){let e=t;this.settings.keepOrder&&(e=this.store.selectedOrderOptions(e));let n=document.createElement("div");return this.addClasses(n,this.classes.multiString),n.textContent=e.map((e=>e.text)).join(", "),this.settings.showOptionTooltips&&n.setAttribute("title",n.textContent),void(this.main.values.innerHTML=n.outerHTML)}if(t.length>this.settings.maxValuesShown){let e=document.createElement("div");return this.addClasses(e,this.classes.max),e.textContent=this.settings.maxValuesMessage.replace("{number}",t.length.toString()),void(this.main.values.innerHTML=e.outerHTML)}{let e=this.main.values.querySelector("."+this.classes.getFirst("max"));e&&e.remove()}this.settings.keepOrder&&(t=this.store.selectedOrderOptions(t));let n=[];for(let r=0;r<e.length;r++){let i=e[r],s=i.getAttribute("data-id");s&&(t.filter((e=>e.id===s),!1).length||n.push(i))}let i=a(this.content.main,this.settings.timeoutDelay);for(let r of n)this.addClasses(r,this.classes.valueOut),u(r,"ss-valueOut",i).then((()=>{this.main.values.hasChildNodes()&&this.main.values.contains(r)&&this.main.values.removeChild(r)}));e=this.main.values.childNodes;for(let r=0;r<t.length;r++){let n=!0;for(let i=0;i<e.length;i++)t[r].id===String(e[i].dataset.id)&&(n=!1);n&&(this.settings.keepOrder||0===e.length?this.main.values.appendChild(this.multipleValue(t[r])):0===r?this.main.values.insertBefore(this.multipleValue(t[r]),e[r]):e[r-1].insertAdjacentElement("afterend",this.multipleValue(t[r])))}this.updateMultipleValueDeleteVisibility()}isAtMinSelected(){return this.settings.isMultiple&&this.settings.minSelected>0&&this.store.getSelectedOptions().length<=this.settings.minSelected}getMinimumSelectionIds(){let e=this.store.getSelectedOptions();return this.settings.keepOrder&&(e=this.store.selectedOrderOptions(e)),e.slice(0,this.settings.minSelected).map((e=>e.id))}getValueChips(){return!this.settings.isMultiple||this.settings.multiString?[]:Array.from(this.main.values.querySelectorAll("."+this.classes.getFirst("value"))).filter((e=>{if(e.classList.contains(this.classes.getFirst("valueOut")))return!1;let t=e.querySelector("."+this.classes.getFirst("valueDelete"));return!!t&&!t.classList.contains(this.classes.getFirst("hide"))}))}getHighlightedValueChip(){return this.getValueChips().find((e=>e.classList.contains(this.classes.getFirst("highlighted"))))??null}clearValueChipHighlight(){for(let e of Array.from(this.main.values.querySelectorAll("."+this.classes.getFirst("value"))))this.removeClasses(e,this.classes.highlighted)}highlightValueChip(e){this.clearValueChipHighlight(),e&&this.addClasses(e,this.classes.highlighted)}navigateValueChips(e){let t=this.getValueChips();if(0===t.length)return!1;let n=this.getHighlightedValueChip(),i=n?t.indexOf(n):-1;return"left"===e?(-1===i?this.highlightValueChip(t[t.length-1]):i>0&&this.highlightValueChip(t[i-1]),!0):-1!==i&&(i<t.length-1?this.highlightValueChip(t[i+1]):this.clearValueChipHighlight(),!0)}deleteValueChip(e=!1){let t=this.getValueChips();if(0===t.length)return!1;let n=this.getHighlightedValueChip();if(e&&!n)return!1;let i=n??t[t.length-1],r=i.querySelector("."+this.classes.getFirst("valueDelete"));if(!r)return!1;let s=t.indexOf(i),o=n?t[s-1]??t[s+1]??null:null;return r.click(),o&&o!==i&&this.main.values.contains(o)?this.highlightValueChip(o):this.clearValueChipHighlight(),!0}updateMultipleValueDeleteVisibility(){if(!this.settings.isMultiple||this.settings.multiString)return;let e=!this.isAtMinSelected(),t=this.main.values.querySelectorAll("."+this.classes.getFirst("valueDelete"));for(let n of t)e?this.removeClasses(n,this.classes.hide):this.addClasses(n,this.classes.hide)}multipleValue(e){let t=document.createElement("div");this.addClasses(t,this.classes.value),t.dataset.id=e.id;let n=document.createElement("div");if(this.addClasses(n,this.classes.valueText),n.textContent=e.text,t.appendChild(n),!e.mandatory){let n=document.createElement("div");this.addClasses(n,this.classes.valueDelete),n.setAttribute("tabindex","0"),n.setAttribute("role","button"),n.setAttribute("aria-label",`${this.settings.removeText} ${e.text}`),this.isAtMinSelected()&&this.addClasses(n,this.classes.hide),n.onclick=t=>{if(t.preventDefault(),t.stopPropagation(),this.settings.disabled)return;let n=!0,i=this.store.getSelectedOptions(),r=i.filter((t=>t.selected&&t.id!==e.id),!0);if(!(this.settings.minSelected&&r.length<this.settings.minSelected)&&(this.callbacks.beforeChange&&(n=!0===this.callbacks.beforeChange(r,i)),n)){let e=[];for(let t of r){if(t instanceof A)for(let n of t.options)n.id&&e.push(n.id);t instanceof k&&e.push(t.id)}this.callbacks.setSelected(e,!1),this.settings.closeOnSelect&&this.requestClose("deselect",{selectionChanged:!0}),this.callbacks.afterChange&&this.callbacks.afterChange(r),this.updateDeselectAll(),this.updateMultipleValueDeleteVisibility()}};let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 100 100");let r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",this.classes.optionDelete),i.appendChild(r),n.appendChild(i),t.appendChild(n),n.onkeydown=e=>{"Enter"===e.key&&n.click()}}return t}contentDiv(){let e=document.createElement("div");e.dataset.id=this.settings.id;let t=this.searchDiv();e.appendChild(t.main);let n=document.createElement("div");this.addClasses(n,this.classes.status),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.setAttribute("role","status"),e.a
25ppendChild(n);let i=this.listDiv();return e.appendChild(i),{main:e,search:t,status:n,list:i}}announce(e){this.settings.showSearch&&(this.content.status.textContent=e)}repositionOpenContent(){this.settings.isOpen&&!this.isModalViewActive()&&"relative"!==this.settings.contentPosition&&this.content.main.classList.contains(this.classes.getFirst("dirAbove"))&&this.moveContentAbove()}moveContent(){if(!this.isModalViewActive()){if("relative"===this.settings.contentPosition)return void this.moveContentBelow();if("down"===this.settings.openPosition)return void this.moveContentBelow();if("up"===this.settings.openPosition)return void this.moveContentAbove();"up"===this.putContent()?this.moveContentAbove():this.moveContentBelow()}}startPositionTracking(){"absolute"!==this.settings.contentPosition||this.isModalViewActive()||(this.stopPositionTracking(),typeof ResizeObserver<"u"&&(this.lastObservedContentHeight=-1,this.positionObserver=new ResizeObserver((e=>{if(!this.settings.isOpen)return;let t=!1,n=!1;for(let i of e)if(i.target===this.content.main){let e=i.contentRect.height;e!==this.lastObservedContentHeight&&(this.lastObservedContentHeight=e,t=!0)}else n=!0;(t||n)&&(cancelAnimationFrame(this.positionObserverRaf),this.positionObserverRaf=requestAnimationFrame((()=>{n?this.moveContent():this.repositionOpenContent()})))})),this.observePositionTargets()))}stopPositionTracking(){cancelAnimationFrame(this.positionObserverRaf),this.positionObserver?.disconnect(),this.positionObserver=null,this.lastObservedContentHeight=-1,this.cancelOverflowShift()}observePositionTargets(){if(!this.positionObserver)return;let e=new Set,t=t=>{t&&!e.has(t)&&(e.add(t),this.positionObserver.observe(t))};t(this.main.main),t(this.content.main);let n=this.main.main.parentElement,i=this.settings.contentLocation;for(let r=0;n&&r<8&&(t(n),n!==i);r++)n=n.parentElement}searchDiv(){let e=document.createElement("div"),t=document.createElement("input"),n=document.createElement("div");this.addClasses(e,this.classes.search);let i={main:e,input:t},r=this.settings.selectAll&&this.settings.isMultiple;this.settings.showSearch||(t.readOnly=!0,r?this.addClasses(t,this.classes.hide):this.addClasses(e,this.classes.hide)),t.type="search",t.id=`${this.settings.id}-search`,t.placeholder=this.settings.searchPlaceholder,t.tabIndex=-1,t.setAttribute("aria-label",this.settings.searchPlaceholder),t.setAttribute("aria-autocomplete","list"),t.setAttribute("autocapitalize","off"),t.setAttribute("autocomplete","off"),t.setAttribute("autocorrect","off"),t.setAttribute("aria-hidden","true");let s=g((()=>{this.callbacks.search(t.value)}),100);if(t.oninput=e=>{""!==e.target.value&&this.clearValueChipHighlight(),s()},t.onkeydown=e=>{switch(e.key){case"ArrowUp":case"ArrowDown":return this.clearValueChipHighlight(),"ArrowDown"===e.key?this.highlight("down"):this.highlight("up"),!1;case"ArrowLeft":case"ArrowRight":return""!==t.value||!this.navigateValueChips("ArrowLeft"===e.key?"left":"right")||(e.preventDefault(),!1);case"Backspace":return""!==t.value||!this.deleteValueChip()||(e.preventDefault(),!1);case"Delete":return""!==t.value||!this.getHighlightedValueChip()||!this.deleteValueChip(!0)||(e.preventDefault(),!1);case"Tab":return this.requestClose("tab"),!0;case"Escape":return this.requestClose("escape"),!1;case"Enter":let i=this.content.list.querySelector("."+this.classes.getFirst("highlighted"));return i?(i.click(),!1):!this.callbacks.addable||(n.click(),!1)}return 1===e.key.length&&this.clearValueChipHighlight(),!0},e.appendChild(t),r){let t=this.createSelectAllControl((()=>this.toggleGlobalSelectAll()));e.appendChild(t),i.selectAll=t}if(this.callbacks.addable){this.addClasses(n,this.classes.addable);let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 100 100");let r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",this.classes.addablePath),t.appendChild(r),n.appendChild(t),n.onclick=e=>{if(e.preventDefault(),e.stopPropagation(),!this.callbacks.addable)return;let t=this.content.search.input.value.trim();if(""===t)return void this.content.search.input.focus();let n=e=>{let t=new k(e);if(this.callbacks.addOption(t),this.settings.isMultiple){let e=this.store.getSelected();e.push(t.id),this.callbacks.setSelected(e,!0)}else this.callbacks.setSelected([t.id],!0);if(this.callbacks.clearSearch(),this.settings.closeOnSelect){let e=o(this.content.main);setTimeout((()=>{this.requestClose("select",{selectionChanged:!0})}),e)}}
25,i=this.callbacks.addable(t);!1!==i&&null!=i&&(i instanceof Promise?i.then((e=>{"string"==typeof e?n({text:e,value:e}):i instanceof Error?this.renderError(i.message):n(e)})):"string"==typeof i?n({text:i,value:i}):i instanceof Error?this.renderError(i.message):n(i))},e.appendChild(n),i.addable={main:n,svg:t,path:r}}return i}searchFocus(){this.content.search.input.focus({preventScroll:!0})}getOptions(e=!1,t=!1,n=!1){let i="."+this.classes.getFirst("option");return e&&(i+=":not(."+this.classes.getFirst("placeholder")+")"),t&&(i+=":not(."+this.classes.getFirst("disabled")+")"),n&&(i+=":not(."+this.classes.getFirst("hide")+")"),Array.from(this.content.list.querySelectorAll(i))}highlight(e){let t=this.getOptions(!0,!0,!0);if(0===t.length)return;if(1===t.length&&!t[0].classList.contains(this.classes.getFirst("highlighted")))return void this.addClasses(t[0],this.classes.highlighted);let n=!1;for(let r of t)r.classList.contains(this.classes.getFirst("highlighted"))&&(n=!0);if(!n)for(let r of t)if(r.classList.contains(this.classes.getFirst("selected"))){this.addClasses(r,this.classes.highlighted);break}for(let r=0;r<t.length;r++)if(t[r].classList.contains(this.classes.getFirst("highlighted"))){let n=t[r];this.removeClasses(n,this.classes.highlighted);let i=n.parentElement;if(i&&i.classList.contains(this.classes.getFirst("mainOpen"))){let e=i.querySelector("."+this.classes.getFirst("optgroupLabel"));e&&e.click()}let s=t["down"===e?r+1<t.length?r+1:0:r-1>=0?r-1:t.length-1];this.addClasses(s,this.classes.highlighted),this.ensureElementInView(this.content.list,s),s.id&&this.main.main.setAttribute("aria-activedescendant",s.id);let o=s.parentElement;if(o&&o.classList.contains(this.classes.getFirst("close"))){let e=o.querySelector("."+this.classes.getFirst("optgroupLabel"));e&&e.click()}return}let i=t["down"===e?0:t.length-1];this.addClasses(i,this.classes.highlighted),i.id&&this.main.main.setAttribute("aria-activedescendant",i.id),this.ensureElementInView(this.content.list,i)}listDiv(){let e=document.createElement("div");this.addClasses(e,this.classes.list);let t=this.settings.id+"-list";return e.id=t,e.dataset.id=t,e}renderError(e){this.optionsListIsFullData=!1,this.content.list.innerHTML="";let t=document.createElement("div");this.addClasses(t,this.classes.error),t.textContent=e,this.content.list.appendChild(t),this.repositionOpenContent()}renderSearching(){this.optionsListIsFullData=!1,this.content.list.innerHTML="";let e=document.createElement("div");this.addClasses(e,this.classes.searching),e.textContent=this.settings.searchingText,this.content.list.appendChild(e),this.announce(this.settings.searchingText),this.repositionOpenContent()}renderOptions(e){if(this.lastSearchFilterTerm="",this.lastRenderedOptions=e.map((e=>e instanceof k?[e]:e.options.map((e=>new k(e))))).flat(),this.content.list.innerHTML="",0===e.length){this.optionsListIsFullData=!1;let e=document.createElement("div");if(this.addClasses(e,this.classes.search),this.callbacks.addable){let t=this.settings.addableText.replace("{value}",this.content.search.input.value);e.innerHTML=t,this.announce(t)}else e.innerHTML=this.settings.searchText,this.announce(this.settings.searchText);return this.content.list.appendChild(e),void this.repositionOpenContent()}this.settings.allowDeselect&&!this.settings.isMultiple&&(this.store.filter((e=>e.placeholder),!1,!1).length||this.store.addOption(new k({text:"",value:"",selected:!1,placeholder:!0}),!0));let t=document.createDocumentFragment();for(let n of e){if(n instanceof A){let e=document.createElement("div");this.addClasses(e,this.classes.optgroup);let i=document.createElement("div");this.addClasses(i,this.classes.optgroupLabel),e.appendChild(i);let r=document.createElement("div");this.addClasses(r,this.classes.optgroupLabelText),r.textContent=n.label,i.appendChild(r);let s=document.createElement("div");if(this.addClasses(s,this.classes.optgroupActions),i.appendChild(s),this.settings.isMultiple&&n.selectAll){let e=this.createSelectAllControl((()=>{let e=this.store.getSelected();if(this.isOptgroupAllSelected(n.options,new Set(e))){let t=e.filter((e=>{for(let t of n.options)if(e===t.id)return!1;return!0}));this.callbacks.setSelected(t,!0)}else{let t=n.options.map((e=>e.id)).filter((e=>void 0!==e)),i=e.concat(t);for(let e of n.options)e.id&&!this.store.getOptionByID(e.id)&&this.callbacks.addOption(new k(e));this.callbacks.setSelected(i,!0)}}),this.isOptgroupAllSelected(n.options));s.appendChild(e)}if("off"!==n.closable){let t=document.createElement("div");this.addClasses(t,this.classes.optgroupClosable);let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 100 100"),this.addClasses(r,this.classes.arrow),t.appendChild(r);let o=document.createElementNS("http://www.w3.org/2000/svg","path");r.appendChild(o),n.options.some((e=>e.selected))||""!==this.content.search.input.value.trim()?(this.addClasses(t,this.classes.mainOpen),o.setAttribute("d",this.classes.arrowOpen)):"open"===n.closable?(this.addClasses(e,this.classes.mainOpen),o.setAttribute("d",this.classes.arrowOpen)):"close"===n.closable&&(this.addClasses(e,this.classes.close),o.setAttribute("d",this.classes.arrowClose)),i.addEventListener("click",(n=>{n.preventDefault(),n.stopPropagation(),this.isClosableOptgroupOpen(e,t)?(this.removeClasses(e,this.classes.mainOpen),this.removeClasses(t,this.classes.mainOpen),this.addClasses(e,this.classes.close),o.setAttribute("d",this.classes.arrowClose)):(this.closeOtherClosableOptgroups(e),this.removeClasses(e,this.classes.close),this.removeClasses(t,this.classes.mainOpen),this.addClasses(e,this.classes.mainOpen),o.setAttribute("d",this.classes.arrowOpen)),this.repositionOpenContent()})),s.appendChild(t)}e.appendChild(i);for(let o of n.options)e.appendChild(this.option(new k(o))),t.appendChild(e)}n instanceof k&&t.appendChild(this.option(n))}this.content.list.appendChild(t),this.setOptionsListFullData(e),this.announce(this.settings.resultsText.replace("{count}",String(this.lastRenderedOptions.length))),this.updateGlobalSelectAllState(),this.repositionOpenContent()}canFilterOptionsInPlace(){return!!this.optionsListIsFullData&&null!==this.content.list.querySelector("."+this.classes.getFirst("option"))}resetSearchFilterState(){this.lastSearchFilterTerm=""}filterOptionsInPlace(e,t){let n=e.trim();if(n===this.lastSearchFilterTerm)return;this.lastSearchFilterTerm=n;let i=[],r=this.content.list.querySelectorAll("."+this.classes.getFirst("option"));for(let s of r){let e=s.dataset.id;if(!e)continue;let r=this.store.getOptionByID(e);if(!r)continue;let o=r.placeholder||!r.display||r.selected&&this.settings.hideSelected,a=t(r,n);o||!a?(this.addClasses(s,this.classes.hide),this.removeClasses(s,this.classes.highlighted)):(this.removeClasses(s,this.classes.hide),this.setOptionElementContent(s,r,n),i.push(r)),r.selected?(this.addClasses(s,this.classes.selected),s.setAttribute("aria-selected","true")):(this.removeClasses(s,this.classes.selected),s.setAttribute("aria-selected","false"))}this.lastRenderedOptions=i,this.updateOptgroupVisibilityAfterSearch(n),0===i.length?this.updateSearchResultsMessage(0,n):(this.removeListSearchMessage(),this.announce(this.settings.resultsText.replace("{count}",String(i.length)))),this.updateOptgroupSelectAllStates(),this.updateGlobalSelectAllState(),this.repositionOpenContent()}setOptionsListFullData(e){let t=this.store.getDataOptions(!1),n=e.map((e=>e instanceof k?[e]:e.options.map((e=>new k(e))))).flat();if(n.length!==t.length)return void(this.optionsListIsFullData=!1);let i=new Set(t.map((e=>e.id)));this.optionsListIsFullData=n.every((e=>i.has(e.id)))}isClosableOptgroupOpen(e,t){return!e.classList.contains(this.classes.getFirst("close"))&&(e.classList.contains(this.classes.getFirst("mainOpen"))||t.classList.contains(this.classes.getFirst("mainOpen")))}closeClosableOptgroup(e){let t=e.querySelector("."+this.classes.getFirst("optgroupClosable"));if(!t||e.classList.contains(this.classes.getFirst("close")))return;this.removeClasses(e,this.classes.mainOpen),this.removeClasses(t,this.classes.mainOpen),this.addClasses(e,this.classes.close);let n=t.querySelector("path");n&&n.setAttribute("d",this.classes.arrowClose)}closeOtherClosableOptgroups(e){let t=this.content.list.querySelectorAll("."+this.classes.getFirst("optgroup"));for(let n of t)n!==e&&this.closeClosableOptgroup(n)}updateOptgroupVisibilityAfterSearch(e){let t=this.content.list.querySelectorAll("."+this.classes.getFirst("optgroup"));for(let n of t){let t=n.querySelectorAll("."+this.classes.getFirst("option")),i=!1;for(let e of t)if(!e.classList.contains(this.classes.getFirst("hide"))){i=!0;break}i?(this.removeClasses(n,this.classes.hide),""!==e&&(this.removeClasses(n,this.classes.close),this.addClasses(n,this.classes.mainOpen))):this.addClasses(n,this.classes.hide)}}updateSearchResultsMessage(e,t){if(this.removeListSearchMessage(),e>0)return;let n=document.createElement("div");
25if(this.addClasses(n,this.classes.search),this.callbacks.addable){let e=this.settings.addableText.replace("{value}",t);n.innerHTML=e,this.announce(e)}else n.innerHTML=this.settings.searchText,this.announce(this.settings.searchText);this.content.list.appendChild(n)}removeListSearchMessage(){this.content.list.querySelectorAll("."+this.classes.getFirst("search")).forEach((e=>e.remove()))}setOptionElementContent(e,t,n){let i=n.trim();this.settings.searchHighlight&&""!==i?e.innerHTML=this.highlightText(""===t.html?t.text:t.html,i,this.classes.searchHighlighter):""===t.html?e.textContent=t.text:e.innerHTML=t.html,this.settings.showOptionTooltips&&e.textContent?e.setAttribute("title",e.textContent):e.removeAttribute("title")}hasRenderedOptions(){return null!==this.content.list.querySelector("."+this.classes.getFirst("option"))}canUpdateOptionSelectionInPlace(){return""===this.content.search.input.value.trim()&&this.hasRenderedOptions()}updateOptionSelection(){let e=new Set(this.store.getSelected()),t=this.content.list.querySelectorAll("."+this.classes.getFirst("option")),n=null;for(let i of t){let t=i.dataset.id;if(!t)continue;let r=this.store.getOptionByID(t);if(!r)continue;let s=e.has(t);s?(this.addClasses(i,this.classes.selected),i.setAttribute("aria-selected","true"),n=i):(this.removeClasses(i,this.classes.selected),i.setAttribute("aria-selected","false")),this.settings.hideSelected&&(s?this.addClasses(i,this.classes.hide):(this.removeClasses(i,this.classes.hide),r.display||this.addClasses(i,this.classes.hide)))}!this.settings.isMultiple&&n?this.main.main.setAttribute("aria-activedescendant",n.id):!this.settings.isMultiple&&0===e.size&&this.main.main.removeAttribute("aria-activedescendant"),this.updateOptgroupSelectAllStates(),this.updateGlobalSelectAllState(),this.repositionOpenContent()}createSelectAllControl(e,t=!1){let n=document.createElement("div");this.addClasses(n,this.classes.optgroupSelectAll),n.setAttribute("role","checkbox"),n.setAttribute("aria-checked",t?"true":"false"),n.setAttribute("aria-label",this.selectAllLabel(t)),n.tabIndex=-1,t&&this.addClasses(n,this.classes.selected);let i=document.createElement("span");i.textContent=this.selectAllLabel(t),n.appendChild(i);let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 100 100"),r.setAttribute("aria-hidden","true"),n.appendChild(r);let s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",this.classes.optgroupSelectAllBox),r.appendChild(s);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",this.classes.optgroupSelectAllCheck),r.appendChild(o),n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e()})),n}getSelectableOptions(){return this.store.getDataOptions(!1).filter((e=>!e.disabled&&!e.placeholder&&e.display))}isGlobalAllSelected(e){let t=this.getSelectableOptions();if(0===t.length)return!1;let n=e||new Set(this.store.getSelected());for(let i of t)if(!n.has(i.id))return!1;return!0}toggleGlobalSelectAll(){let e=this.getSelectableOptions(),t=new Set(this.store.getSelected());if(this.isGlobalAllSelected(t)){let t=new Set(e.map((e=>e.id))),n=this.store.getSelected().filter((e=>!t.has(e)));this.callbacks.setSelected(n,!0)}else this.callbacks.setSelected(e.map((e=>e.id)),!0)}updateGlobalSelectAllState(){let e=this.content.search.selectAll;if(!e||!this.settings.isMultiple||!this.settings.selectAll)return;let t=this.isGlobalAllSelected();t?this.addClasses(e,this.classes.selected):this.removeClasses(e,this.classes.selected),e.setAttribute("aria-checked",t?"true":"false"),e.setAttribute("aria-label",this.selectAllLabel(t));let n=e.querySelector("span");n&&(n.textContent=this.selectAllLabel(t))}updateOptgroupSelectAllStates(){if(!this.settings.isMultiple)return;let e=new Set(this.store.getSelected()),t=this.content.list.querySelectorAll("."+this.classes.getFirst("optgroup"));for(let n of t){let t=n.querySelector("."+this.classes.getFirst("optgroupSelectAll"));if(!t)continue;let i=n.querySelectorAll("."+this.classes.getFirst("option")),r=i.length>0;for(let n of i){let t=n.dataset.id;if(!t||!e.has(t)){r=!1;break}}r?this.addClasses(t,this.classes.selected):this.removeClasses(t,this.classes.selected),t.setAttribute("aria-checked",r?"true":"false"),t.setAttribute("aria-label",this.selectAllLabel(r));let s=t.querySelector("span");
25s&&(s.textContent=this.selectAllLabel(r))}}selectAllLabel(e){return e?this.settings.unselectAllText:this.settings.selectAllText}isOptgroupAllSelected(e,t){if(0===e.length)return!1;for(let n of e)if(!(t?n.id&&t.has(n.id):n.selected))return!1;return!0}option(e){if(e.placeholder){let e=document.createElement("div");return this.addClasses(e,this.classes.option),this.addClasses(e,this.classes.hide),e}let t=document.createElement("div");return t.dataset.id=e.id,t.id=this.settings.id+"-"+e.id,this.addClasses(t,this.classes.option),t.setAttribute("role","option"),e.class&&e.class.split(" ").forEach((e=>{t.classList.add(e)})),e.style&&(t.style.cssText=e.style),this.setOptionElementContent(t,e,this.content.search.input.value),e.display||this.addClasses(t,this.classes.hide),e.disabled&&this.addClasses(t,this.classes.disabled),e.selected&&this.settings.hideSelected&&this.addClasses(t,this.classes.hide),e.selected?(this.addClasses(t,this.classes.selected),t.setAttribute("aria-selected","true"),this.main.main.setAttribute("aria-activedescendant",t.id)):(this.removeClasses(t,this.classes.selected),t.setAttribute("aria-selected","false")),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let n=this.store.getSelected(),i=t.currentTarget,r=String(i.dataset.id),s=this.store.getOptionByID(r)??e,o=n.includes(r),a=t.ctrlKey||t.metaKey;if(e.disabled)return;if(!this.settings.isMultiple&&o&&!this.settings.allowDeselect)return void this.closeOnSingleSelectReclick(s);if(o&&s.mandatory)return void this.closeOnSingleSelectReclick(s);if(this.settings.isMultiple&&this.settings.maxSelected<=n.length&&!o||this.settings.isMultiple&&this.settings.minSelected>=n.length&&o&&!a)return;let l=!1,c=this.store.getSelectedOptions(),u=[];if(this.settings.isMultiple){let n=c.some((e=>e.id===r));if(t.shiftKey&&this.lastSelectedOption){let t=this.lastRenderedOptions,n=t.findIndex((e=>e.id===this.lastSelectedOption.id)),i=t.findIndex((t=>t.id===e.id));if(n>=0&&i>=0){let e=Math.min(n,i),r=Math.max(n,i),s=t.slice(e,r+1).filter((e=>!c.find((t=>t.id===e.id))));u=c.length+s.length<=this.settings.maxSelected?c.concat(s):c}else u=c}else u=n?c.filter((e=>e.id!==r)):c.concat(s),this.lastSelectedOption=s}if(this.settings.isMultiple||(u=o?[]:[s]),this.callbacks.beforeChange||(l=!0),this.callbacks.beforeChange&&(l=!1!==this.callbacks.beforeChange(u,c)),l){this.store.getOptionByID(r)||this.callbacks.addOption(e),this.callbacks.setSelected(u.map((e=>e.id)),!1);let n=t.ctrlKey||t.metaKey||t.shiftKey;this.settings.closeOnSelect&&!(this.settings.isMultiple&&n)&&this.requestClose("select",{option:s,selectionChanged:this.selectionChanged(c,u)}),this.callbacks.afterChange&&this.callbacks.afterChange(u)}})),t}destroy(){this.stopPositionTracking(),this.modalElements?(this.unlockBodyScroll(),this.content.main.parentElement===this.modalElements.dialog&&this.restoreContentOffscreen(),this.modalElements.overlay.remove(),this.modalElements=null):this.bodyScrollLocked&&this.unlockBodyScroll(),this.main.main.remove(),this.content.main.remove(),this.removeDetachedInstanceDom()}removeDetachedInstanceDom(){let e=this.settings.id,t=this.classes.getFirst("main"),n=this.classes.getFirst("content"),i=this.classes.getFirst("modalOverlay");document.querySelectorAll(`[data-id="${e}"]`).forEach((e=>{(e.classList.contains(t)||e.classList.contains(n)||e.classList.contains(i))&&e.remove()}))}highlightText(e,t,n){let i=t.trim();if(""===i)return e;let r=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=document.createElement("div");s.innerHTML=e;let o=e=>{if(e.nodeType===Node.TEXT_NODE){let t=e.textContent||"",i=RegExp("("+r+")","i");if(i.test(t)){let r=document.createElement("span");t.split(i).forEach(((e,t)=>{if(e&&i.test(e)){let t=document.createElement("mark");t.className=n,t.textContent=e,r.appendChild(t)}else e&&r.appendChild(document.createTextNode(e))})),e.parentNode?.replaceChild(r,e)}}else e.nodeType===Node.ELEMENT_NODE&&Array.from(e.childNodes).forEach((e=>o(e)))};return Array.from(s.childNodes).forEach((e=>o(e))),s.innerHTML}setContentDirection(e){let t="above"===e,n=t?this.classes.dirAbove:this.classes.dirBelow,i=t?this.classes.dirBelow:this.classes.dirAbove;if(this.removeClasses(this.main.main,i),this.addClasses(this.main.main,n),this.removeClasses(this.content.main,i),this.addClasses(this.content.main,n),t){let e=this.main.main.offsetHeight,t=this.content.main.offsetHeight;this.content.main.style.margin="-"+(e+t-1)+"px 0px 0px 0px"}else this.content.main.style.margin="-1px 0px 0px 0px"}setContentPosition(){let e,t,n=this.main.main.getBoundingClientRect();if("relative"===this.settings.contentPosition)return void this.applyContentWidth(n);this.cancelOverflowShift(),"fixed"===this.settings.contentPosition?(e=n.top+n.height,t=n.left):(e=n.top+window.scrollY+n.height,t=n.left+window.scrollX),this.content.main.style.top=e+"px",this.content.main.style.left=t+"px",this.applyContentWidth(n);let i=this.getKnownContentWidth(n);null===i?this.overflowShiftRaf=requestAnimationFrame((()=>{this.overflowShiftRaf=0,this.applyOverflowShiftFromMeasure()})):this.content.main.style.left=this.adjustLeftForOverflow(t,n.left,i)+"px"}applyContentWidth(e){let t=this.settings.contentWidth;this.content.main.style.width="",this.content.main.style.minWidth="",this.content.main.style.maxWidth="",t?"auto"===t?this.content.main.style.minWidth=e.width+"px":t.startsWith(">")?this.content.main.style.minWidth=t.slice(1):t.startsWith("<")?this.content.main.style.maxWidth=t.slice(1):this.content.main.style.width=t:"relative"!==this.settings.contentPosition&&(this.content.main.style.width=e.width+"px")}cancelOverflowShift(){this.overflowShiftRaf&&=(cancelAnimationFrame(this.overflowShiftRaf),0)}
25getKnownContentWidth(e){let t=this.settings.contentWidth;if(!t)return e.width;if(t.startsWith(">")||t.startsWith("<")||t.includes("%"))return null;let n=parseFloat(t);return Number.isNaN(n)?null:n}adjustLeftForOverflow(e,t,n){let i=t+n;if(i<=window.innerWidth)return e;let r=e-(i-(window.innerWidth-20));return"fixed"===this.settings.contentPosition?Math.max(0,r):Math.max(window.scrollX,r)}applyOverflowShiftFromMeasure(){let e=this.content.main.getBoundingClientRect().right;if(e<=window.innerWidth)return;let t=e-(window.innerWidth-20),n=(parseFloat(this.content.main.style.left)||0)-t;"fixed"===this.settings.contentPosition?this.content.main.style.left=Math.max(0,n)+"px":this.content.main.style.left=Math.max(window.scrollX,n)+"px"}moveContentAbove(){this.setContentDirection("above"),this.setContentPosition()}moveContentBelow(){this.setContentDirection("below"),this.setContentPosition()}ensureElementInView(e,t){let n=e.scrollTop+e.offsetTop,i=n+e.clientHeight,r=t.offsetTop,s=r+t.clientHeight;r<n?e.scrollTop-=n-r:s>i&&(e.scrollTop+=s-i)}putContent(){let e=this.main.main.offsetHeight,t=this.main.main.getBoundingClientRect(),n=this.content.main.offsetHeight;return window.innerHeight-(t.top+e)<=n&&t.top>n?"up":"down"}updateDeselectAll(){if(!this.store||!this.settings)return;let e=this.store.getSelectedOptions(),t=e&&e.length>0,n=this.settings.isMultiple,i=this.settings.allowDeselect,r=this.isAtMinSelected(),s=this.main.deselect.main,o=this.classes.hide;!i||n&&!t||r?this.addClasses(s,o):this.removeClasses(s,o)}};var P=class{select;onValueChange;onClassChange;onDisabledChange;onOptionsChange;onLabelClick;listen=!1;observer=null;isUpdating=!1;pendingOptionsChange=null;preventNativeSelect=null;preventNativeSelectMousedown=null;preventNativeSelectFocus=null;restoreAriaHiddenOnBlur=null;constructor(e){this.select=e,this.valueChange=this.valueChange.bind(this),this.select.addEventListener("change",this.valueChange,{passive:!0}),this.observer=new MutationObserver(this.observeCall.bind(this)),this.changeListen(!0)}enable(){this.select.disabled=!1}disable(){this.select.disabled=!0}hideUI(){this.select.tabIndex=-1,this.select.style.position="absolute",this.select.style.width="1px",this.select.style.height="1px",this.select.style.opacity="0",this.select.style.overflow="hidden",this.select.style.pointerEvents="none",this.select.style.margin="0",this.select.style.padding="0",this.select.style.borderWidth="0",this.select.style.clipPath="inset(50%)",document.activeElement!==this.select&&this.select.setAttribute("aria-hidden","true"),this.preventNativeSelect||(this.preventNativeSelect=e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},this.preventNativeSelectMousedown=e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},this.preventNativeSelectFocus=e=>{this.select.removeAttribute("aria-hidden"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},this.restoreAriaHiddenOnBlur=()=>{this.select.setAttribute("aria-hidden","true")},this.select.addEventListener("click",this.preventNativeSelect,{capture:!0,passive:!1}),this.select.addEventListener("mousedown",this.preventNativeSelectMousedown,{capture:!0,passive:!1}),this.select.addEventListener("focus",this.preventNativeSelectFocus,{capture:!0,passive:!1}),this.select.addEventListener("blur",this.restoreAriaHiddenOnBlur,{capture:!0,passive:!0}))}showUI(){this.select.removeAttribute("tabindex"),this.select.style.position="",this.select.style.width="",this.select.style.height="",this.select.style.opacity="",this.select.style.overflow="",this.select.style.pointerEvents="",this.select.style.margin="",this.select.style.padding="",this.select.style.borderWidth="",this.select.style.clipPath="",this.select.removeAttribute("aria-hidden"),this.preventNativeSelect&&=(this.select.removeEventListener("click",this.preventNativeSelect,{capture:!0}),null),this.preventNativeSelectMousedown&&=(this.select.removeEventListener("mousedown",this.preventNativeSelectMousedown,{capture:!0}),null),this.preventNativeSelectFocus&&=(this.select.removeEventListener("focus",this.preventNativeSelectFocus,{capture:!0}),null),this.restoreAriaHiddenOnBlur&&=(this.select.removeEventListener("blur",this.restoreAriaHiddenOnBlur,{capture:!0}),null)}changeListen(e){this.listen=e,e&&this.observer&&this.observer.observe(this.select,{subtree:!0,childList:!0,attributes:!0}),e||this.observer&&this.observer.disconnect()}valueChange(e){return this.listen&&this.onValueChange&&this.onValueChange(this.getSelectedOptions()),!0}observeCall(e){if(!this.listen)return;let{classChanged:t,disabledChanged:n,optgroupOptionChanged:i,selectionChanged:r}=function(e,t){let n={classChanged:!1,disabledChanged:!1,optgroupOptionChanged:!1,selectionChanged:!1};for(let i of e){if(i.target===t&&("disabled"===i.attributeName&&(n.disabledChanged=!0),"class"===i.attributeName&&(n.classChanged=!0),"childList"===i.type)){for(let e of Array.from(i.addedNodes))if("OPTION"===e.nodeName&&e.value===t.value){n.selectionChanged=!0;break}n.optgroupOptionChanged=!0}("OPTGROUP"===i.target.nodeName||"OPTION"===i.target.nodeName)&&(n.optgroupOptionChanged=!0)}return n}(e,this.select),s=r;if(t&&this.onClassChange&&this.onClassChange(this.select.className.split(" ")),n&&this.onDisabledChange&&(this.changeListen(!1),this.onDisabledChange(this.select.disabled),this.changeListen(!0)),i&&this.clearLeftoverHiddenDisplay(e),i&&this.onOptionsChange){if(this.isUpdating){if(this.select.options.length>0){let e=this.getData();e.length>0&&(this.pendingOptionsChange=e)}return void(s&&this.select.dispatchEvent(new Event("change")))}this.changeListen(!1),this.onOptionsChange(this.getData()),this.changeListen(!0),s=!1}s&&this.select.dispatchEvent(new Event("change"))}getData(){let e=[],t=this.select.childNodes;for(let n of t)"OPTGROUP"===n.nodeName&&e.push(this.getDataFromOptgroup(n)),"OPTION"===n.nodeName&&e.push(this.getDataFromOption(n));return e}getDataFromOptgroup(e){let t={id:e.id,label:e.label,selectAll:!!e.dataset&&"true"===e.dataset.selectall,closable:e.dataset?e.dataset.closable:"off",options:[]},n=e.childNodes;for(let i of n)"OPTION"===i.nodeName&&t.options.push(this.getDataFromOption(i));return t}clearLeftoverHiddenDisplay(e){for(let t of e){if("OPTION"!==t.target.nodeName||"hidden"
25!==t.attributeName)continue;let e=t.target;!e.hidden&&"none"===e.style.display&&(e.style.display="")}}getDataFromOption(e){let t=e.hidden||e.hasAttribute("hidden");return{id:e.id,value:e.value,text:e.text,html:e.dataset&&e.dataset.html?e.dataset.html:"",defaultSelected:e.defaultSelected,selected:e.selected,display:"none"!==e.style.display&&!t,disabled:e.disabled,mandatory:!!e.dataset&&"true"===e.dataset.mandatory,placeholder:"true"===e.dataset.placeholder,class:e.className,style:e.style.cssText,data:d(e.dataset)}}getSelectedOptions(){let e=[],t=this.select.childNodes;for(let n of t){if("OPTGROUP"===n.nodeName){let t=n.childNodes;for(let n of t)if("OPTION"===n.nodeName){let t=n;t.selected&&e.push(this.getDataFromOption(t))}}if("OPTION"===n.nodeName){let t=n;t.selected&&e.push(this.getDataFromOption(t))}}return e}getSelectedValues(){return this.getSelectedOptions().map((e=>e.value))}hasOptionValues(e){if(0===e.length)return!0;let t=new Set(Array.from(this.select.options).map((e=>e.value)));return e.every((e=>t.has(e)))}setSelected(e){this.changeListen(!1);let t=this.select.childNodes;for(let i of t){if("OPTGROUP"===i.nodeName){let t=i.childNodes;for(let n of t)if("OPTION"===n.nodeName){let t=n;t.selected=e.includes(t.id)}}if("OPTION"===i.nodeName){let t=i;t.selected=e.includes(t.id)}}let n=this.getSelectedOptions();this.select.multiple||(this.select.value=1===n.length?n[0].value:""),this.select.dispatchEvent(new Event("change",{bubbles:!0})),this.changeListen(!0)}setSelectedByValue(e){this.changeListen(!1);let t=this.select.childNodes;for(let i of t){if("OPTGROUP"===i.nodeName){let t=i.childNodes;for(let n of t)if("OPTION"===n.nodeName){let t=n;t.selected=e.includes(t.value)}}if("OPTION"===i.nodeName){let t=i;t.selected=e.includes(t.value)}}let n=this.getSelectedOptions();this.select.multiple||(this.select.value=1===n.length?n[0].value:""),this.select.dispatchEvent(new Event("change",{bubbles:!0})),this.changeListen(!0)}updateSelect(e,t,n){this.changeListen(!1),e&&(this.select.dataset.id=e),t&&(this.select.style.cssText=t),n&&(this.select.className="",n.forEach((e=>{""!==e.trim()&&this.select.classList.add(e.trim())}))),this.changeListen(!0)}updateOptions(e){if(!e||0===e.length)return;this.isUpdating=!0,this.pendingOptionsChange=null,this.changeListen(!1);let t=this.getSelectedValues();this.select.innerHTML="";for(let n of e)n instanceof A&&this.select.appendChild(this.createOptgroup(n)),n instanceof k&&this.select.appendChild(this.createOption(n));if(v(t,this.getSelectedValues())||this.select.dispatchEvent(new Event("change",{bubbles:!0})),this.changeListen(!0),this.isUpdating=!1,null!==this.pendingOptionsChange){let e=this.pendingOptionsChange;e.length>0&&this.onOptionsChange?(this.pendingOptionsChange=null,this.changeListen(!1),this.onOptionsChange(e),this.changeListen(!0)):this.pendingOptionsChange=null}}createOptgroup(e){let t=document.createElement("optgroup");if(t.id=e.id,t.label=e.label,e.selectAll&&(t.dataset.selectAll="true"),"off"!==e.closable&&(t.dataset.closable=e.closable),e.options)for(let n of e.options)t.appendChild(this.createOption(n));return t}createOption(e){let t=document.createElement("option");return t.id=e.id,t.value=e.value,t.textContent=e.text,""!==e.html&&t.setAttribute("data-html",e.html),t.defaultSelected=e.defaultSelected,t.selected=e.selected,e.disabled&&(t.disabled=!0),t.hidden=!e.display,e.placeholder&&t.setAttribute("data-placeholder","true"),e.mandatory&&t.setAttribute("data-mandatory","true"),e.class&&e.class.split(" ").forEach((e=>{t.classList.add(e)})),e.data&&"object"==typeof e.data&&Object.keys(e.data).forEach((n=>{t.setAttribute("data-"+function(e){let t=e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(e=>"-"+e.toLowerCase()));return e[0]===e[0].toUpperCase()?t.substring(1):t}(n),e.data[n])})),t}setupLabelHandlers(){let e=[],t=this.select.id;t&&document.querySelectorAll(`label[for="${t}"]`).forEach((t=>e.push(t)));let n=this.select.parentElement;for(;n&&n!==document.body;){if("LABEL"===n.tagName){e.push(n);break}n=n.parentElement}Array.from(new Set(e)).forEach((e=>{if(e.__slimSelectLabelHandler)return;let t=e=>{let t=m(e.target,this.select.dataset.id);e.preventDefault(),!t&&this.onLabelClick&&this.onLabelClick()};e.__slimSelectLabelHandler=t,e.addEventListener("click",t,{capture:!0,passive:!1})}
25))}removeLabelHandlers(){let e=[],t=this.select.id;t&&document.querySelectorAll(`label[for="${t}"]`).forEach((t=>e.push(t)));let n=this.select.parentElement;for(;n&&n!==document.body;){if("LABEL"===n.tagName){e.push(n);break}n=n.parentElement}Array.from(new Set(e)).forEach((e=>{let t=e.__slimSelectLabelHandler;t&&(e.removeEventListener("click",t,{capture:!0}),delete e.__slimSelectLabelHandler)}))}destroy(){this.changeListen(!1),this.select.removeEventListener("change",this.valueChange),this.preventNativeSelect&&=(this.select.removeEventListener("click",this.preventNativeSelect,{capture:!0}),null),this.preventNativeSelectMousedown&&=(this.select.removeEventListener("mousedown",this.preventNativeSelectMousedown,{capture:!0}),null),this.preventNativeSelectFocus&&=(this.select.removeEventListener("focus",this.preventNativeSelectFocus,{capture:!0}),null),this.restoreAriaHiddenOnBlur&&=(this.select.removeEventListener("blur",this.restoreAriaHiddenOnBlur,{capture:!0}),null),this.observer&&=(this.observer.disconnect(),null),this.removeLabelHandlers(),delete this.select.dataset.id,this.showUI()}};function T(e,t){return function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],r=t[n],s=w(i);if(s!==w(r))return!1;if(s){if(!_(i,r))return!1}else if(!S(i,r))return!1}return!0}(e.getData(!1),t)}var N=class{deps;queue=[];flushScheduled=!1;isSyncing=!1;constructor(e){this.deps=e}enqueue(e){this.queue.push(e),"native"!==e.source?this.isSyncing||this.flush():this.flushScheduled||(this.flushScheduled=!0,queueMicrotask((()=>this.flush())))}flush(){if(this.flushScheduled=!1,0===this.queue.length)return;let e=this.coalesceBatch(this.queue);this.queue=[],this.isSyncing=!0;try{for(let t of e)this.applyChange(t)}finally{this.isSyncing=!1,this.queue.length>0&&this.flush()}}coalesceBatch(e){let t=e.some((e=>"structure"===e.type)),n=e.some((e=>"addOption"===e.type));if(t||n){let t=e.filter((e=>"structure"===e.type||"addOption"===e.type)),n=t[t.length-1];return"structure"===n?.type?[n]:t}let i=e.filter((e=>"selection"===e.type));return i.length>0?[i[i.length-1]]:e}applyChange(e){switch(e.type){case"structure":this.applyStructure(e.data,e.source,e.preserveSelection,e.isSearchResult);break;case"selection":this.applySelection(e.values,e.source,!1!==e.runAfterChange);break;case"addOption":this.applyAddOption(e.option)}}applyStructure(e,t,n=!1,i=!1){let{store:r,select:s,render:o,events:a}=this.deps;if(!i&&T(r,e))return;let l=r.getSelected(),c=r.validateDataArray(e);if(c)return void(a.error?a.error(c):this.deps.onError&&this.deps.onError(c));r.setData(e,n);let u=r.getData(!1);i||r.snapshotCatalog(),i||s.updateOptions(u),o.renderValues(),o.renderOptions(u),a.afterChange&&!v(l,r.getSelected())&&a.afterChange(r.getSelectedOptions())}syncNativeSelection(){let{store:e,select:t}=this.deps,n=e.getSelectedOptions(),i=e.getSelectedValues();if(!t.hasOptionValues(i)){if(n.length>0)return void t.updateOptions(n);let i=e.getCatalogData().find((e=>e instanceof k&&!0===e.placeholder));if(i)return void t.updateOptions([new k({...i,selected:!0})])}t.setSelectedByValue(i)}applySelection(e,t,n){let{store:i,select:r,render:s,events:o}=this.deps,a=i.getSelected(),l=function(e,t){let n=Array.isArray(t)?t:[t],i=e.getDataOptions(!1),r=[];for(let s of n)if(i.find((e=>e.id==s)))r.push(s);else for(let e of i.filter((e=>e.value==s)))r.push(e.id);return r}(i,e);if(v(a,l))return;i.setSelectedBy("id",l),this.syncNativeSelection(),s.renderValues();let c=s.content.search.input.value.trim();""===c?s.canUpdateOptionSelectionInPlace()?s.updateOptionSelection():s.renderOptions(i.getData(!1)):s.hasRenderedOptions()?s.updateOptionSelection():this.deps.search&&this.deps.search(c),n&&o.afterChange&&!v(a,i.getSelected())&&o.afterChange(i.getSelectedOptions())}applyAddOption(e){let{store:t,select:n,render:i,events:r}=this.deps,s=t.getSelected(),o=""!==i.content.search.input.value.trim()&&!!this.deps.search,a=e.value??e.text??"",l=e=>{for(let t of e)if(t instanceof A){if(t.options.some((e=>(e.value??e.text)===a)))return!0}else if((t.value??t.text)===a)return!0;return!1};if(!l(t.getData(!1)))if(o){let n=t.getCatalogData();l(n)||t.setData([...n,new k(e)],!0),t.snapshotCatalog()}else t.addOption(e),t.snapshotCatalog();let c=t.getData(!1);if(o){let e=t.getSelectedOptions();e.length>0&&n.updateOptions(e)}else n.updateOptions(c);i.renderValues(),i.renderOptions(c),r.afterChange&&!v(s,t.getSelected())&&r.afterChange(t.getSelectedOptions())}},L=class{selectEl;settings;
25cssClasses;select;store;render;sync;lifecycle;globalEvents;searchGeneration=0;events={search:void 0,searchFilter:(e,t)=>-1!==e.text.toLowerCase().indexOf(t.toLowerCase()),addable:void 0,beforeChange:void 0,afterChange:void 0,beforeOpen:void 0,afterOpen:void 0,beforeClose:void 0,afterClose:void 0};constructor(e){if(this.selectEl="string"==typeof e.select?document.querySelector(e.select):e.select,!this.selectEl)return void(e.events&&e.events.error&&e.events.error(Error("Could not find select element")));if("SELECT"!==this.selectEl.tagName)return void(e.events&&e.events.error&&e.events.error(Error("Element isnt of type select")));this.selectEl.dataset.ssid&&this.destroy(),this.settings=new h(e.settings),void 0===e.settings?.selectAll&&"true"===this.selectEl.dataset.selectall&&(this.settings.selectAll=!0),this.cssClasses=new i(e.cssClasses);let t=["beforeOpen","afterOpen","afterClose"];for(let i in e.events)e.events.hasOwnProperty(i)&&(-1===t.indexOf(i)?this.events[i]=e.events[i]:this.events[i]=g(e.events[i],100));this.settings.disabled=e.settings?.disabled?e.settings.disabled:this.selectEl.disabled,this.settings.isMultiple=this.selectEl.multiple,this.settings.style=this.selectEl.style.cssText,this.settings.class=this.selectEl.className.split(" "),this.select=new P(this.selectEl),this.selectEl.id||(this.selectEl.id=this.settings.id),this.select.updateSelect(this.settings.id,this.settings.style,this.settings.class),this.select.hideUI(),this.select.onClassChange=e=>{this.settings.class=e,this.render.updateClassStyles()},this.select.onDisabledChange=e=>{e?this.disable():this.enable()},this.select.onLabelClick=()=>{this.settings.disabled||(this.settings.isOpen?this.close({source:"toggle",selectionChanged:!1}):this.open())};let n=e.data?e.data:this.select.getData();this.store=new C(this.settings.isMultiple?"multiple":"single",n),e.data&&this.select.updateOptions(this.store.getData());let r={open:this.open.bind(this),close:this.close.bind(this),addable:this.events.addable?this.events.addable:void 0,setSelected:(e,t)=>{this.sync.enqueue({type:"selection",values:e,source:"ui",runAfterChange:t})},addOption:e=>{this.sync.enqueue({type:"addOption",option:e,source:"ui"})},search:this.search.bind(this),clearSearch:this.clearSearch.bind(this),beforeChange:this.events.beforeChange,afterChange:this.events.afterChange};this.settings.modalTitle=e.settings?.modalTitle??function(e){if(e.labels&&e.labels.length>0){let t=Array.from(e.labels).map(f).filter(Boolean);if(t.length>0)return[...new Set(t)].join(" ")}return e.getAttribute("aria-label")?.trim()||""}(this.selectEl),this.render=new x(this.settings,this.cssClasses,this.store,r),this.settings.timeoutDelay=a(this.render.content.main,e.settings?.timeoutDelay),this.sync=new N({select:this.select,store:this.store,render:this.render,events:this.events,search:this.search.bind(this)}),this.select.onValueChange=e=>{this.sync.enqueue({type:"selection",values:e.map((e=>e.id||e.value)),source:"native"})},this.select.onOptionsChange=e=>{this.sync.enqueue({type:"structure",data:e||[],source:"native"})},this.lifecycle=new O({beforeOpen:this.events.beforeOpen,afterOpen:this.events.afterOpen,beforeClose:e=>this.events.beforeClose?.(e),onClose:e=>this.applyClose(e),afterClose:()=>{this.render.clearDirectionClasses(),this.render.finalizeModalClose(),this.events.afterClose&&this.events.afterClose()},onOpenReady:()=>this.globalEvents.attachDocumentClick(),onCloseReady:()=>this.globalEvents.detachDocumentClick()},{timeoutDelay:this.settings.timeoutDelay,waitForAnimation:(e,t)=>this.render.waitForAnimation(e,t)}),this.globalEvents=new E({onDocumentClick:this.documentClick.bind(this),onWindowResize:()=>{(this.settings.isOpen||this.settings.isFullOpen)&&this.render.moveContent()},onWindowScroll:()=>{(this.settings.isOpen||this.settings.isFullOpen)&&this.render.moveContent()},onVisibilityChange:()=>{document.hidden&&this.close({source:"api",selectionChanged:!1})}}),this.render.renderValues(),this.render.renderOptions(this.store.getData(!1));let s=this.selectEl.getAttribute("aria-label"),o=this.selectEl.getAttribute("aria-labelledby");if(s)this.render.main.main.setAttribute("aria-label",s);else if(o)this.render.main.main.removeAttribute("aria-label"),this.render.main.main.setAttribute("aria-labelledby",o);else if(this.selectEl.labels&&this.selectEl.labels.length>0){let e=Array.from(this.selectEl.labels).map(((e,t)=>(e.id||=`${this.settings.id}-label-${t}`,e.id)));this.render.main.main.removeAttribute("aria-label"),this.render.main.main.setAttribute("aria-labelledby",e.join(" "))}this.selectEl.parentNode&&this.selectEl.parentNode.insertBefore(this.render.main.main,this.selectEl.nextSibling),this.globalEvents.attach({listenScroll:"auto"===this.settings.openPosition}),this.settings.disabled&&this.disable(),this.settings.alwaysOpen&&this.open(),this.select.setupLabelHandlers(),this.selectEl.slim=this}enable(){this.settings.disabled=!1,this.select.enable(),this.render.enable()}disable(){this.settings.disabled=!0,this.select.disable(),this.render.disable()}getData(){return this.store.getData()}setData(e){this.sync.enqueue({type:"structure",data:e,source:"api"})}getSelected(){let e=this.store.getSelectedOptions();return this.settings.keepOrder&&(e=this.store.selectedOrderOptions(e)),e.map((e=>e.value))}setSelected(e,t=!0){this.sync.enqueue({type:"selection",values:e,source:"api",runAfterChange:t})}addOption(e){this.sync.enqueue({type:"addOption",option:e,source:"api"})}open(){if(this.settings.disabled||this.settings.isOpen)return;this.lifecycle.cancelPending(),this.render.open(),this.settings.showSearch&&this.settings.focusSearch&&this.render.searchFocus(),this.settings.isOpen=!0,this.lifecycle.requestOpen().then((()=>{this.settings.isOpen&&(this.settings.isFullOpen=this.lifecycle.isFullOpen,this.settings.isOpen=this.lifecycle.isOpen)})),"absolute"===this.settings.contentPosition&&!this.render.isModalViewActive()&&this.render.startPositionTracking();let e=this.render.content.search.input.value.trim();""!==e&&this.search(e)}close(e={source:"api",selectionChanged:!1}){this.settings.isOpen&&!this.settings.alwaysOpen&&this.lifecycle.requestClose(e).then((e=>{e&&(this.settings.isOpen||(this.settings.isOpen=this.lifecycle.isOpen,this.settings.isFullOpen=this.lifecycle.isFullOpen))}))}applyClose(e){this.render.close(),!this.settings.keepSearch&&""!==this.render.content.search.input.value&&(this.sync.flush(),this.clearSearch());let t="outside"===e.source||"toggle"===e.source;this.render.mainFocus(t?"click":null),this.settings.isOpen=!1,this.settings.isFullOpen=!1,this.render.stopPositionTracking()}search(e){let t=e.trim();""===t?this.render.content.search.input.value="":this.render.content.search.input.value!==e&&(this.render.content.search.input.value=e),this.events.search?this.runApiSearch(t):""!==t?this.runLocalSearch(t):this.clearSearch()}clearSearch(){if(this.render.content.search.input.value="",this.searchGeneration++,!this.events.search&&this.render.canFilterOptionsInPlace())return this.render.filterOptionsInPlace("",this.events.searchFilter),void this.render.resetSearchFilterState();this.render.resetSearchFilterState(),this.sync.enqueue({type:"structure",data:this.store.getCatalogData(),source:"api",preserveSelection:!0}
25)}runLocalSearch(e){if(this.render.canFilterOptionsInPlace())return void this.render.filterOptionsInPlace(e,this.events.searchFilter);let t=this.store.search(e,this.events.searchFilter);this.render.renderOptions(t)}runApiSearch(e){let t=++this.searchGeneration;this.render.renderSearching();let n=this.events.search(e,this.store.getSelectedOptions(),this.store.getCatalogData()),i=n=>{t===this.searchGeneration&&this.render.content.search.input.value.trim()===e&&this.sync.enqueue({type:"structure",data:n,source:"api",preserveSelection:!0,isSearchResult:!0})};n instanceof Promise?n.then(i).catch((e=>{t===this.searchGeneration&&this.render.renderError("string"==typeof e?e:e.message)})):Array.isArray(n)?i(n):this.render.renderError("Search event must return a promise or an array of data")}destroy(){this.lifecycle.destroy(),this.render.stopPositionTracking(),this.globalEvents.detach({listenScroll:"auto"===this.settings.openPosition}),this.store.setData([]),this.render.destroy(),this.select.destroy(),delete this.selectEl.slim}documentClick(e){this.settings.isOpen&&e.target&&!m(e.target,this.settings.id)&&this.close({source:"outside",selectionChanged:!1})}}},20433(e){"use strict";e.exports=JSON.parse('["0x01.gq","0x01.tk","10mail.org","10mail.tk","33m.co","33mail.com","3dxtras.com","3utilities.com","567map.xyz","8191.at","aa.am","accountsite.me","acmetoy.com","acusupply.com","adultvidlite.com","aji.kr","anonaddy.com","anonaddy.me","anonbox.net","anyalias.com","asanatest1.us","azzawajalla.store","bajetesik.store","band-freier.de","bandband1.com","bangmadid.store","batikbantul.com","bccto.me","bebekpenyet.buzz","bei.kr","bel.kr","beo.kr","bfo.kr","bgsaddrmwn.me","bho.kr","biasaelho.space","biz.st","biz.tm","bko.kr","blacksong.pw","blueauramassage.com","bounceme.net","bum.net","buwosok.tech","buzzndaraiangop2wae.buzz","byui.me","caboodle.buzz","cad.edu.gr","cempue.online","chickenkiller.com","choirul.host","cid.kr","ciran.xyz","cko.kr","cloudns.asia","cloudns.cc","cloudns.cx","cloudns.nz","com.com","coms.hk","comx.cf","craigslist.org","creo.site","creo.tips","creou.dev","crowdpress.it","cu.cc","cua77.xyz","d3vs.net","dadosa.xyz","danuarte.online","darrels.site","daseus.online","dayatan.host","dbo.kr","ddns.net","ddnsfree.com","deail.com","dedyn.io","defaultdomain.ml","discard-email.cf","dko.kr","dlink.cf","dlink.gq","dlyemail.com","dmtc.dev","dmtc.edu.pl","dmtc.press","dns-cloud.net","dns.navy","dnsabr.com","dnses.ro","doy.kr","drope.ml","dropmail.me","dynu.net","dzalaev-advokat.ru","e4ward.com","ediantenan.site","edu.auction","efo.kr","eho.kr","ely.kr","email-temp.com","emailfake.com","emailfake.ml","emailfreedom.ml","emlhub.com","emlpro.com","emltmp.com","emy.kr","enu.kr","eny.kr","epizy.com","escritossad.net","ese.kr","esy.es","ewa.kr","exi.kr","ezyro.com","fackme.gq","fassagforpresident.ga","firste.ml","flu.cc","foy.kr","fr.nf","freeml.net","gadzooks.buzz","gettrials.com","giize.com","gmail.gr.com","gmeil.me","gok.kr","gotdns.ch","gpa.lu","grigio.cf","guardmail.cf","haddo.eu","heliohost.org","higogoya.com","historial.store","hitechinfo.com","hix.kr","hiz.kr","hmail.us","hopto.org","hostingarif.me","idn.vn","iesco.info","igg.biz","ignorelist.com","iki.kr","ilovemyniggers.club","imouto.pro","info.tm","infos.st","irr.kr","isgre.at","it2-mail.tk","jil.kr","jindmail.club","jto.kr","junnuok.com","justemail.ml","kadokawa.top","kantal.buzz","keitin.site","kentel.buzz","kerl.cf","kerl.gq","kikwet.com","kondomeus.site","kozow.com","kranjingan.store","kranjingan.tech","kranjingans.tech","kro.kr","lal.kr","laste.ml","lbe.kr","legundi.site","lei.kr","likevip.net","liopers.link","lko.co.kr","lko.kr","ll47.net","lofteone.ru","lom.kr","longdz.site","longmusic.com","lostandalone.com","loudcannabisapp.com","loy.kr","loyalherceghalom.ml","luk2.com","luksarcenter.ru","luo.kr","lyrics-lagu.me","mail-temp.com","mail0.ga","mailinator.com","mailr.eu","marrone.cf","mbe.kr","mblimbingan.space","mebelnovation.ru","mefound.com","mintemail.com","mishmash.buzz","mko.kr","mlo.kr","mooo.com","motifasidiri.website","mp-j.cf","mp-j.ga","mp-j.gq","mp-j.ml","mp-j.tk","mr-meshkat.com","mrossi.cf","mrossi.gq","mrossi.ml","ms1.email","msdc.co","muabanwin.net","museumplanet.com","my.id","my3mail.cf","my3mail.ga","my3mail.gq","my3mail.ml","my3mail.tk","myddns.me","myeslbookclub.com","mymy.cf","mysafe.ml","mzon.store","n-e.kr","nafko.cf","nctu.me","netmail.tk","netricity.nl","new-mgmt.ga","
25ngalasmoen.xyz","ngguwokulon.online","njambon.space","nko.kr","now.im","npv.kr","nuo.co.kr","nuo.kr","nut.cc","o-r.kr","oazis.site","obo.kr","ocry.com","office.gy","okezone.bid","one.pl","onlysext.com","oovy.org","oppoesrt.online","orangotango.ml","otherinbox.com","ourhobby.com","owa.kr","owh.ooo","oyu.kr","p-e.kr","pafnuty.com","pandies.space","paqeh.online","pe.hu","petinggiean.tech","peyekkolipi.buzz","poderosamulher.com","poistaa.com","porco.cf","poy.kr","prapto.host","probatelawarizona.com","ptcu.dev","pubgm.website","qbi.kr","qc.to","r-e.kr","ragel.me","rao.kr","reilis.site","rf.gd","ringen.host","rko.kr","rosso.ml","row.kr","rr.nu","rshagor.xyz","s-ly.me","safe-mail.gq","sagun.info","samsueng.site","saucent.online","sborra.tk","schwarzmail.ga","seluang.com","sempak.link","sendaljepit.site","sendangagung.online","servegame.com","shp7.cn","siambretta.com","skodaauto.cf","soju.buzz","solidplai.us","somee.com","spamtrap.ro","spymail.one","ssanphone.me","standeight.com","statuspage.ga","steakbeef.site","stonedogdigital.com","stop-my-spam.pp.ua","storeyee.com","sumanan.site","supere.ml","svblog.com","sytes.net","tandy.co","tangtingtung.tech","teml.net","tempembus.buzz","tempremail.cf","tempremail.tk","tgwrzqr.top","thepieter.com","theworkpc.com","thinktimessolve.info","thumoi.com","tko.co.kr","tko.kr","tmo.kr","tmpeml.com","toh.info","toi.kr","tomcrusenono.host","topikurrohman.xyz","tourbalitravel.com","traveldesk.com","tricakesi.store","trillianpro.com","twilightparadox.com","tyrex.cf","uha.kr","uk.to","uko.kr","umy.kr","unaux.com","undo.it","uny.kr","uola.org","upy.kr","urbanban.com","us.to","usa.cc","uu.gl","uvy.kr","uyu.kr","vay.kr","vba.kr","veo.kr","viola.gq","vivoheroes.xyz","vkbags.in","vo.uk","volvo-xc.tk","vuforia.us","wakultimbo.buzz","web.id","weprof.it","werkuldino.buzz","wil.kr","wingkobabat.buzz","x24hr.com","xiaomie.store","xo.uk","xxi2.com","yarien.eu","yawahid.host","ye.vc","yertxenor.tk","yomail.info","yopmail.com","yoqoyyum.space","youdontcare.com","zalvisual.us","zapto.org","ze.cx","zeroe.ml"]')}}]); 26//# sourceMappingURL=173-2a1a9dfccc3903890f32.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.