diff --git a/dist/js/accordion.min.js b/dist/js/accordion.min.js index 7be2b7796..144d5ff46 100644 --- a/dist/js/accordion.min.js +++ b/dist/js/accordion.min.js @@ -1 +1 @@ -!function(){"use strict";var e={8529:function(e,t,s){s.d(t,{Z:function(){return i}});class i{static accordionItemElement="helfi-accordion-item";static toggleElement="accordion-item__button--toggle";static closeElement="accordion-item__button--close";static ariaExpandedElements=["accordion-item__button--toggle"];static contentElement="accordion-item__content";constructor(e,t,s,i){this.element=e,this.localState=t,this.parentCallback=i,this._id=e.querySelector(".helfi-accordion__header").id,this._isOpen=this.localState.loadItemState(this._id),this.element.style="--js-accordion-open-time:0s",this.setHidden(),this.addEventListeners(),this.handleLinkAnchor(s),this.setAriaOpen(),this.element.style=null}open=()=>{this._isOpen=!0,this.setAriaOpen(),this.setHidden(),this.parentCallback(),this.localState.saveItemState(this.id,this.isOpen)};close=()=>{this._isOpen=!1,this.setAriaOpen(),this.changeFocus(),this.setHidden(),this.parentCallback(),this.localState.saveItemState(this.id,this.isOpen)};closeWithoutFocus=()=>{this._isOpen=!1,this.setAriaOpen(),this.setHidden(),this.parentCallback(),this.localState.saveItemState(this.id,this.isOpen)};toggle=e=>{i.isClick(e.which)&&(this.isOpen?this.close():this.open())};handleLinkAnchor=e=>{if(!e)return;const t=this.element.querySelector(e);t&&(this.open(),t.scrollIntoView())};setAriaOpen=()=>{i.ariaExpandedElements.forEach((e=>{this.element.getElementsByClassName(e)[0].setAttribute("aria-expanded",this.isOpen)}))};setHidden=()=>{const e=this.element.getElementsByClassName(i.contentElement)[0];this.isOpen?e.classList.remove("is-hidden"):e.classList.add("is-hidden")};changeFocus=()=>this.element.querySelector(`.${i.toggleElement}`).focus();addEventListeners=()=>{const e=this.element.getElementsByClassName(i.toggleElement)[0];e.addEventListener("mouseup",this.toggle),e.addEventListener("keypress",this.toggle);const t=this.element.getElementsByClassName(i.closeElement)[0];t.addEventListener("mouseup",this.close),t.addEventListener("keypress",this.close)};static isClick(e){return 1===e||13===e||32===e}get id(){return this._id}get isOpen(){return this._isOpen}}},297:function(e,t,s){s.d(t,{Z:function(){return a}});var i=s(8529);var o={open_all:{fi:"Avaa kaikki",en:"Open all",sv:"Öppna alla"},close_all:{fi:"Sulje kaikki",en:"Close all",sv:"Stäng alla"}},n=s(7927);class a{static accordionWrapper="component--accordion";static toggleAllElement="js-accordion__button--toggle-all";static toggleAllOpen="accordion__button--is-open";static toggleAllClosed="accordion__button--is-closed";static headerlessTypes=["headerless","hardcoded"];constructor(e,t,s,i="default"){this.type=i,this.isSingleItemAccordion=!1,this.currentLanguage=n.Z.getCurrentLanguage(),this.accordion=e,this.localState=t,this.accordionItems=[],this.childAccordion=null,this.urlHash=s,this.initializeAccordion(s),this.addEventListeners(),this.showToggleButton(),this.updateToggleButtonLabel()}initializeAccordion=()=>{const e=this.accordion.getElementsByClassName(i.Z.accordionItemElement);this.isSingleItemAccordion=1===e.length,Array.from(e).forEach((e=>{this.accordionItems.push(new i.Z(e,this.localState,this.urlHash,this.updateToggleButtonLabel))}))};addEventListeners=()=>{if(a.isHeaderless(this.type)||this.isSingleItemAccordion)return;const e=this.accordion.getElementsByClassName(a.toggleAllElement)[0];e.addEventListener("mouseup",this.toggleItems),e.addEventListener("keypress",this.toggleItems)};addChildAccordion=e=>{this.childAccordion=e};showToggleButton=()=>{a.isHeaderless(this.type)||this.isSingleItemAccordion?this.accordion.getElementsByClassName(a.toggleAllElement)[0]?.classList.add("is-hidden"):this.accordion.getElementsByClassName(a.toggleAllElement)[0]?.classList.remove("is-hidden")};updateToggleButtonLabel=()=>{const e=this.accordion.getElementsByClassName(a.toggleAllElement)[0];e&&(this.areAllItemsOpen()?e.querySelector("span").textContent=o.close_all?.[this.currentLanguage]??o.close_all.en:e.querySelector("span").textContent=o.open_all?.[this.currentLanguage]??o.open_all.en,this.toggleAllLabelUpdate())};getAccordionItemById=e=>this.accordionItems.find((t=>t.id===e));toggleItems=()=>this.areAllItemsOpen()?this.closeAll():this.openAll();openAll=()=>{this.accordionItems.forEach((e=>e.open())),this.childAccordion?.openAll(),this.updateToggleButtonLabel(),this.toggleAllLabelUpdate()};closeAll=()=>{this.accordionItems.forEach((e=>e.closeWithoutFocus())),this.childAccordion?.closeAll(),this.updateToggleButtonLabel(),this.toggleAllLabelUpdate();this.accordion.getElementsByClassName(a.toggleAllElement)[0].focus()};toggleAllLabelUpdate=()=>{const e=this.accordion.getElementsByClassName(a.toggleAllElement)[0];e&&this.areAllItemsOpen()?(e.classList.remove(a.toggleAllClosed),e.classList.add(a.toggleAllOpen)):(e.classList.remove(a.toggleAllOpen),e.classList.add(a.toggleAllClosed))};areAllItemsOpen=()=>this.accordionItems?.every((e=>e.isOpen))&&this.areChildItemsOpen();areChildItemsOpen=()=>this.childAccordion?.areAllItemsOpen()??this.accordionItems?.every((e=>e.isOpen));static isHeaderless=e=>a.headerlessTypes.includes(e);isHardcoded=()=>"hardcoded"===this.type}},7927:function(e,t,s){s.d(t,{Z:function(){return o}});class i{constructor(e){this.storageKey=e,this.loadData()}loadData(){const e=localStorage.getItem(this.storageKey);this.data=e?JSON.parse(e):{}}saveData(){localStorage.setItem(this.storageKey,JSON.stringify(this.data))}setValue(e,t){this.data[e]=t,this.saveData()}getValue(e){return this.data[e]||null}addValue(e,t){this.data[e]||(this.data[e]=[]),"string"!=typeof t||this.data[e].includes(t)||(this.data[e].push(t),this.saveData())}getValues(e){return this.data[e]||null}removeValue(e,t){if(this.data[e]){const s=this.data[e].indexOf(t);s>-1&&(this.data[e].splice(s,1),this.saveData())}}}class o{constructor(){this.storageManager=new i("helfi-settings"),this.site=window.drupalSettings.helfi_instance_name||"",this.page=window.drupalSettings.path.currentPath,this.siteAccordionStates=JSON.parse(this.storageManager.getValue(this.getStorageKey()))||{},this.pageAccordionStates=this.siteAccordionStates[this.page]||{},this.AccordionsOpen=o.isCookieSet("helfi_accordions_open")}static isCookieSet=e=>{const t=document.cookie.split("; ");for(let s=0;s`${this.site}-accordion`;saveItemState=(e,t)=>{if(!this.site)return!1;this.siteAccordionStates[this.page]||(this.siteAccordionStates[this.page]={}),!1===t?delete this.siteAccordionStates[this.page][e]:this.siteAccordionStates[this.page][e]=t,this.storageManager.setValue(this.getStorageKey(),JSON.stringify(this.siteAccordionStates))};loadItemState=e=>!!this.AccordionsOpen||!!this.site&&!!this.pageAccordionStates[e];static getCurrentLanguage=()=>window.drupalSettings.path.currentLanguage}}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=s(297),t=s(7927),i=s(8529);class o{constructor(){o.handleTableOfContentsHash()}static handleTableOfContentsHash=()=>{window.addEventListener("hashchange",(()=>{const{hash:e}=window.location;let t=!1;if(window.helfiAccordions.forEach((s=>{const i=s.getAccordionItemById(e.replace("#",""));i&&(t=!0,i.handleLinkAnchor(e))})),!t){const t=document.querySelector(`${e}`);if(!t)return;const s=t.closest(`.${i.Z.accordionItemElement}`);s&&window.helfiAccordions.forEach((e=>{const t=s.querySelector(".helfi-accordion__header").id,i=e.getAccordionItemById(t);i&&i.handleLinkAnchor()}))}}))}}window.helfiAccordions=[];const n=new t.Z,{hash:a}=(new o,window.location),l=document.body;new MutationObserver(((t,s)=>{const i=document.querySelectorAll(`.${e.Z.accordionWrapper}`);if(i.length>window.helfiAccordions.length)try{i.forEach(((t,s)=>{const i=(o=Array.from(t.classList)).includes("component--no-header")?"headerless":o.includes("component--hardcoded")?"hardcoded":"default";var o;const l=e.Z.isHeaderless(i),c=0===s&&"hardcoded"!==i?"default":i,r=new e.Z(t,n,a,c);window.helfiAccordions.push(r),!r.isHardcoded(i)&&l&&s>0&&window.helfiAccordions[s-1].addChildAccordion(r)}))}catch(e){console.error(e),s.disconnect()}})).observe(l,{attributes:!0,childList:!0,subtree:!0})}()}(); \ No newline at end of file +!function(){"use strict";var e={7936:function(e,t,s){s.d(t,{A:function(){return i}});class i{static accordionItemElement="helfi-accordion-item";static toggleElement="accordion-item__button--toggle";static closeElement="accordion-item__button--close";static ariaExpandedElements=["accordion-item__button--toggle"];static contentElement="accordion-item__content";constructor(e,t,s,i){this.element=e,this.localState=t,this.parentCallback=i,this._id=e.querySelector(".helfi-accordion__header").id,this._isOpen=this.localState.loadItemState(this._id),this.element.style="--js-accordion-open-time:0s",this.setHidden(),this.addEventListeners(),this.handleLinkAnchor(s),this.setAriaOpen(),this.element.style=null}open=()=>{this._isOpen=!0,this.setAriaOpen(),this.setHidden(),this.parentCallback(),this.localState.saveItemState(this.id,this.isOpen)};close=()=>{this._isOpen=!1,this.setAriaOpen(),this.changeFocus(),this.setHidden(),this.parentCallback(),this.localState.saveItemState(this.id,this.isOpen)};closeWithoutFocus=()=>{this._isOpen=!1,this.setAriaOpen(),this.setHidden(),this.parentCallback(),this.localState.saveItemState(this.id,this.isOpen)};toggle=e=>{i.isClick(e.which)&&(this.isOpen?this.close():this.open())};handleLinkAnchor=e=>{if(!e)return;const t=this.element.querySelector(e);t&&(this.open(),t.scrollIntoView())};setAriaOpen=()=>{i.ariaExpandedElements.forEach((e=>{this.element.getElementsByClassName(e)[0].setAttribute("aria-expanded",this.isOpen)}))};setHidden=()=>{const e=this.element.getElementsByClassName(i.contentElement)[0];this.isOpen?e.classList.remove("is-hidden"):e.classList.add("is-hidden")};changeFocus=()=>this.element.querySelector(`.${i.toggleElement}`).focus();addEventListeners=()=>{const e=this.element.getElementsByClassName(i.toggleElement)[0];e.addEventListener("mouseup",this.toggle),e.addEventListener("keypress",this.toggle);const t=this.element.getElementsByClassName(i.closeElement)[0];t.addEventListener("mouseup",this.close),t.addEventListener("keypress",this.close)};static isClick(e){return 1===e||13===e||32===e}get id(){return this._id}get isOpen(){return this._isOpen}}},5966:function(e,t,s){s.d(t,{A:function(){return a}});var i=s(7936);var o={open_all:{fi:"Avaa kaikki",en:"Open all",sv:"Öppna alla"},close_all:{fi:"Sulje kaikki",en:"Close all",sv:"Stäng alla"}},n=s(609);class a{static accordionWrapper="component--accordion";static toggleAllElement="js-accordion__button--toggle-all";static toggleAllOpen="accordion__button--is-open";static toggleAllClosed="accordion__button--is-closed";static headerlessTypes=["headerless","hardcoded"];constructor(e,t,s,i="default"){this.type=i,this.isSingleItemAccordion=!1,this.currentLanguage=n.A.getCurrentLanguage(),this.accordion=e,this.localState=t,this.accordionItems=[],this.childAccordion=null,this.urlHash=s,this.initializeAccordion(s),this.addEventListeners(),this.showToggleButton(),this.updateToggleButtonLabel()}initializeAccordion=()=>{const e=this.accordion.getElementsByClassName(i.A.accordionItemElement);this.isSingleItemAccordion=1===e.length,Array.from(e).forEach((e=>{this.accordionItems.push(new i.A(e,this.localState,this.urlHash,this.updateToggleButtonLabel))}))};addEventListeners=()=>{if(a.isHeaderless(this.type)||this.isSingleItemAccordion)return;const e=this.accordion.getElementsByClassName(a.toggleAllElement)[0];e.addEventListener("mouseup",this.toggleItems),e.addEventListener("keypress",this.toggleItems)};addChildAccordion=e=>{this.childAccordion=e};showToggleButton=()=>{a.isHeaderless(this.type)||this.isSingleItemAccordion?this.accordion.getElementsByClassName(a.toggleAllElement)[0]?.classList.add("is-hidden"):this.accordion.getElementsByClassName(a.toggleAllElement)[0]?.classList.remove("is-hidden")};updateToggleButtonLabel=()=>{const e=this.accordion.getElementsByClassName(a.toggleAllElement)[0];e&&(this.areAllItemsOpen()?e.querySelector("span").textContent=o.close_all?.[this.currentLanguage]??o.close_all.en:e.querySelector("span").textContent=o.open_all?.[this.currentLanguage]??o.open_all.en,this.toggleAllLabelUpdate())};getAccordionItemById=e=>this.accordionItems.find((t=>t.id===e));toggleItems=()=>this.areAllItemsOpen()?this.closeAll():this.openAll();openAll=()=>{this.accordionItems.forEach((e=>e.open())),this.childAccordion?.openAll(),this.updateToggleButtonLabel(),this.toggleAllLabelUpdate()};closeAll=()=>{this.accordionItems.forEach((e=>e.closeWithoutFocus())),this.childAccordion?.closeAll(),this.updateToggleButtonLabel(),this.toggleAllLabelUpdate();this.accordion.getElementsByClassName(a.toggleAllElement)[0].focus()};toggleAllLabelUpdate=()=>{const e=this.accordion.getElementsByClassName(a.toggleAllElement)[0];e&&this.areAllItemsOpen()?(e.classList.remove(a.toggleAllClosed),e.classList.add(a.toggleAllOpen)):(e.classList.remove(a.toggleAllOpen),e.classList.add(a.toggleAllClosed))};areAllItemsOpen=()=>this.accordionItems?.every((e=>e.isOpen))&&this.areChildItemsOpen();areChildItemsOpen=()=>this.childAccordion?.areAllItemsOpen()??this.accordionItems?.every((e=>e.isOpen));static isHeaderless=e=>a.headerlessTypes.includes(e);isHardcoded=()=>"hardcoded"===this.type}},609:function(e,t,s){s.d(t,{A:function(){return o}});class i{constructor(e){this.storageKey=e,this.loadData()}loadData(){const e=localStorage.getItem(this.storageKey);this.data=e?JSON.parse(e):{}}saveData(){localStorage.setItem(this.storageKey,JSON.stringify(this.data))}setValue(e,t){this.data[e]=t,this.saveData()}getValue(e){return this.data[e]||null}addValue(e,t){this.data[e]||(this.data[e]=[]),"string"!=typeof t||this.data[e].includes(t)||(this.data[e].push(t),this.saveData())}getValues(e){return this.data[e]||null}removeValue(e,t){if(this.data[e]){const s=this.data[e].indexOf(t);s>-1&&(this.data[e].splice(s,1),this.saveData())}}}class o{constructor(){this.storageManager=new i("helfi-settings"),this.site=window.drupalSettings.helfi_instance_name||"",this.page=window.drupalSettings.path.currentPath,this.siteAccordionStates=JSON.parse(this.storageManager.getValue(this.getStorageKey()))||{},this.pageAccordionStates=this.siteAccordionStates[this.page]||{},this.AccordionsOpen=o.isCookieSet("helfi_accordions_open")}static isCookieSet=e=>{const t=document.cookie.split("; ");for(let s=0;s`${this.site}-accordion`;saveItemState=(e,t)=>{if(!this.site)return!1;this.siteAccordionStates[this.page]||(this.siteAccordionStates[this.page]={}),!1===t?delete this.siteAccordionStates[this.page][e]:this.siteAccordionStates[this.page][e]=t,this.storageManager.setValue(this.getStorageKey(),JSON.stringify(this.siteAccordionStates))};loadItemState=e=>!!this.AccordionsOpen||!!this.site&&!!this.pageAccordionStates[e];static getCurrentLanguage=()=>window.drupalSettings.path.currentLanguage}}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i=s(5966),o=s(609),n=s(7936);class a{constructor(){a.handleTableOfContentsHash()}static handleTableOfContentsHash=()=>{window.addEventListener("hashchange",(()=>{const{hash:e}=window.location;let t=!1;if(window.helfiAccordions.forEach((s=>{const i=s.getAccordionItemById(e.replace("#",""));i&&(t=!0,i.handleLinkAnchor(e))})),!t){const t=document.querySelector(`${e}`);if(!t)return;const s=t.closest(`.${n.A.accordionItemElement}`);s&&window.helfiAccordions.forEach((e=>{const t=s.querySelector(".helfi-accordion__header").id,i=e.getAccordionItemById(t);i&&i.handleLinkAnchor()}))}}))}}window.helfiAccordions=[];const l=new o.A,{hash:c}=(new a,window.location),r=document.body;new MutationObserver(((e,t)=>{const s=document.querySelectorAll(`.${i.A.accordionWrapper}`);if(s.length>window.helfiAccordions.length)try{s.forEach(((e,t)=>{const s=(o=Array.from(e.classList)).includes("component--no-header")?"headerless":o.includes("component--hardcoded")?"hardcoded":"default";var o;const n=i.A.isHeaderless(s),a=0===t&&"hardcoded"!==s?"default":s,r=new i.A(e,l,c,a);window.helfiAccordions.push(r),!r.isHardcoded(s)&&n&&t>0&&window.helfiAccordions[t-1].addChildAccordion(r)}))}catch(e){console.error(e),t.disconnect()}})).observe(r,{attributes:!0,childList:!0,subtree:!0})}(); \ No newline at end of file diff --git a/dist/js/async/globalMenu.chunk.js b/dist/js/async/globalMenu.chunk.js index f8d6e27d4..f129ce97b 100644 --- a/dist/js/async/globalMenu.chunk.js +++ b/dist/js/async/globalMenu.chunk.js @@ -1 +1 @@ -(self.webpackChunkhdbt=self.webpackChunkhdbt||[]).push([[222,860],{7375:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return B}});var r=Object.prototype.toString,i=Array.isArray||function(t){return"[object Array]"===r.call(t)};function s(t){return"function"==typeof t}function a(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var l=RegExp.prototype.test;var u=/\S/;function c(t){return!function(t,e){return l.call(t,e)}(u,t)}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var p=/\s*/,d=/\s+/,f=/\s*=/,m=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;function v(t){this.string=t,this.tail=t,this.pos=0}function b(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function _(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},v.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},b.prototype.push=function(t){return new b(t,this)},b.prototype.lookup=function(t){var e,n,r,i=this.cache;if(i.hasOwnProperty(t))e=i[t];else{for(var a,l,u,c=this,h=!1;c;){if(t.indexOf(".")>0)for(a=c.view,l=t.split("."),u=0;null!=a&&u0?i[i.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],i=0,s=t.length;i"===a?o=this.renderPartial(s,e,n,i):"&"===a?o=this.unescapedValue(s,e):"name"===a?o=this.escapedValue(s,e,i):"text"===a&&(o=this.rawValue(s)),void 0!==o&&(l+=o);return l},_.prototype.renderSection=function(t,e,n,r,a){var o=this,l="",u=e.lookup(t[1]);if(u){if(i(u))for(var c=0,h=u.length;c0||!n)&&(i[s]=r+i[s]);return i.join("\n")},_.prototype.renderPartial=function(t,e,n,r){if(n){var i=this.getConfigTags(r),a=s(n)?n(t[1]):n[t[1]];if(null!=a){var o=t[6],l=t[5],u=t[4],c=a;0==l&&u&&(c=this.indentPartial(a,u,o));var h=this.parse(c,i);return this.renderTokens(h,e,n,c,r)}}},_.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},_.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||x.escape,i=e.lookup(t[1]);if(null!=i)return"number"==typeof i&&r===x.escape?String(i):r(i)},_.prototype.rawValue=function(t){return t[1]},_.prototype.getConfigTags=function(t){return i(t)?t:t&&"object"==typeof t?t.tags:void 0},_.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!i(t)?t.escape:void 0};var x={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){k.templateCache=t},get templateCache(){return k.templateCache}},k=new _;x.clearCache=function(){return k.clearCache()},x.parse=function(t,e){return k.parse(t,e)},x.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((i(s=t)?"array":typeof s)+'" was given as the first argument for mustache#render(template, view, partials)'));var s;return k.render(t,e,n,r)},x.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return h[t]}))},x.Scanner=v,x.Context=b,x.Writer=_;var w=x,y=n(4184),I=n.n(y);const L=Drupal.t("Frontpage",{},{context:"Global navigation mobile menu top level"}),E=Drupal.t("Open submenu:",{},{context:"Mobile navigation menu prefix"}),P=Drupal.t("Open parent menu:",{},{context:"Mobile navigation menu prefix"});function C(){return this.sub_tree?.length>0}function S(){let t;try{t=new URL(this.url).pathname}catch(e){t=this.url}return!this.external&&this.url&&t===window.location.pathname}function A(){return!!this.active}function O(){return!!this.inPath}function T(){return!!this.is_injected}function j(){return{external:this.attributes["data-external"]||this.external||!1,protocol:this.attributes["data-protocol"]||!1}}function R(){return!!this.attributes?.lang}function U(){return!!this.external&&(U.ICONS[this.attributes["data-protocol"]]||U.ICONS.external)}Array.prototype.findRecursive=function(t,e){if(!e)throw new Error("findRecursive requires parameter `childrenPropertyName`");let n=[];n=this;const r=this.find(t),i=this.filter((t=>t[e]));if(r)return r;if(i.length){const n=[];return i.forEach((t=>{n.push(...t[e])})),n.findRecursive(t,e)}},U.ICONS={mailto:{class:"link__type link__type--mailto",text:Drupal.t("Link opens default mail program",{},{context:"Explanation for screen-reader software that the icon visible next to this link means that the link opens default mail program."})},tel:{class:"link__type link__type--tel",text:Drupal.t("Link starts a phone call",{},{context:"Explanation for screen-reader software that the icon visible next to this link means that the link starts a phone call."})},external:{class:"link__type link__type--external",text:Drupal.t("Link leads to external service",{},{context:"Explanation for screen-reader software that the icon visible next to this link means that the link leads to an external service."})}};var B={compileTemplates(){this.templates={panel:`\n {{#panels}}\n
\n \n ${document.querySelector(".js-mmenu__footer")?.outerHTML}\n
\n {{/panels}}\n\n {{^panels}}\n \n {{/panels}}\n `,list:'\n \n '}},menu:null,templates:null,SCROLL_TRESHOLD:100,size:10,running:!1,data:null,currentIndex:0,cacheKey:"hdbt-mobile-menu",enableCache:!1,selectors:{container:"#mmenu",rootId:"mmenu__panels",forward:"mmenu__forward",back:"mmenu__back"},getAPIUrl(){const t=new URL(drupalSettings?.helfi_navigation?.links?.api);return t.searchParams.set("_format","json"),t.searchParams.set("max-depth",drupalSettings?.menu_depth),t.toString()},getRoot(){return document.getElementById(this.selectors.rootId)},sortPanelsByPath(){const t=[],e=this.data,n=e.findRecursive((t=>S.call(t)),"sub_tree");let r=n?.sub_tree?.length?n.id:n?.parentId;for(;r;){e.findRecursive((({id:e,url:n,name:i,sub_tree:s,parentId:a,inPath:o,active:l})=>e===r&&(t.push({sub_tree:s,name:i,url:n,parentId:a,inPath:o,active:l}),r=a,!0)),"sub_tree")||(r=void 0)}t.push({sub_tree:e,inPath:!0}),t.reverse(),this.currentIndex=t.length-1,this.content=[...t]},content:[],getView(t){return this.content.map(((e,n)=>({...e,name:e?.name||L,url:e.url||drupalSettings.helfi_navigation.links.canonical,button:C,isActive:A,isInPath:O,isInjected:T,externalLinkAttributes:j,hasLang:R,externalLinkIcon:U,back:n>0&&(this.content.at(n-1)?.name??L),openSubMenuTranslation:E,openParentMenuTranslation:P,panel_class:I()({mmenu__panel:!0,"mmenu__panel--visible":!0,"mmenu__panel--current":n===this.currentIndex,"mmenu__panel--visible-right":"start"===t&&n>this.currentIndex||"up"===t&&n>=this.currentIndex||"down"===t&&n>this.currentIndex+1,"mmenu__panel--visible-left":"up"===t&&ne===t));if(!e)throw new Error(`ID mismatch in menu items${t}`);this.currentIndex=this.currentIndex+1=0?this.currentIndex-1:this.currentIndex,this.render("down"))},render(t){const e=this.getRoot();if(e.innerHTML=w.render(this.templates.panel,{panels:this.getView(t)},{sub_tree:this.templates.list}),"load"===t)return;const n=[...e.querySelectorAll(".mmenu__panel")],r=n.at(this.currentIndex);e.parentElement.scrollTop>this.SCROLL_TRESHOLD&&this.currentIndex>0&&r.querySelector(".mmenu__back").scrollIntoView({block:"start",behaviour:"smooth"}),setTimeout((()=>{switch(r.classList.remove("mmenu__panel--visible-right","mmenu__panel--visible-left"),t){case"up":n.at(this.currentIndex-1).classList.add("mmenu__panel--visible-left");break;case"down":n.at(this.currentIndex+1).classList.add("mmenu__panel--visible-right")}setTimeout((()=>{n.forEach((t=>{t.classList.contains("mmenu__panel--current")||(t.style.visibility="hidden")}))}),200)}),10)},async load(){const t=await fetch(this.getAPIUrl()),e=await t.json(),n=Object.getOwnPropertyNames(e);if(!n.length)throw new Error("No instances found in data",e);const r=n.map((t=>{const n=e[t].menu_tree[0];return n.parentId="",n})),i=r.findRecursive((t=>S.call(t)),"sub_tree");i&&(i.active=!0,i.inPath=!0);let s=i?.parentId;for(;s;){r.findRecursive((t=>t.id===s&&(s=t.parentId,t.inPath=!0,!0)),"sub_tree")||(s=void 0)}this.data=r},async start(){const t=document.querySelector(this.selectors.container);if(!this.getRoot()||!t)throw new Error("Panel root not found");t.classList.add("mmenu--visible"),this.render("load");try{await this.load()}catch(t){return console.error("Unable to load menu API, using fallback menu instead",t),void this.enableFallback()}this.sortPanelsByPath(),this.render("start"),this.getRoot().addEventListener("click",(t=>{const{target:{classList:e,value:n,parentElement:r}}=t;t.stopImmediatePropagation(),e&&e.contains(this.selectors.forward)?this.up(n):(e&&e.contains(this.selectors.back)||r?.classList&&r?.classList.contains(this.selectors.back))&&this.down()}))},isOpen(){return"#menu"===window.location.hash||"true"===this.toggleButton.getAttribute("aria-expanded")},disableFallback(){this.menu.dataset.js=!0},enableFallback(){this.menu.dataset.target="false",this.getRoot().innerHTML="",delete this.menu.dataset.js,window.location.hash="#menu"},close(){this.toggleButton.setAttribute("aria-expanded","false"),this.menu.dataset.target="false",this.onClose&&this.onClose()},open(){this.menu.dataset.target="true",this.toggleButton.setAttribute("aria-expanded","true"),this.onOpen&&this.onOpen()},toggle(){this.isOpen()?this.close():this.open(),this.toggleButton.focus()},init({onOpen:t,onClose:e}){if(this.running)return void console.warn("MobilePanel already initiated. Is it include more than once?");if(this.onOpen=t,this.onClose=e,this.toggleButton=document.querySelector(".js-menu-toggle-button"),!this.toggleButton)throw new Error("No toggle button for JS menu.");if(this.menu=document.querySelector("#menu"),!this.menu)return void console.error("Panel not present in DOM. Cannot start JS mobile menu");this.disableFallback(),document.addEventListener("keydown",(t=>{"Escape"!==t.key&&"Esc"!==t.key&&27!==t.keyCode||!this.isOpen()||(this.close(),this.toggleButton.focus())}));const n=()=>{this.compileTemplates(),this.toggleButton.removeEventListener("click",n),this.start()};this.toggleButton.addEventListener("click",n),this.toggleButton.addEventListener("click",(()=>this.toggle())),this.isOpen()&&(window.location.hash="",n(),this.open()),this.running=!0}}},4184:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e":">",'"':""","'":"'","/":"/","`":"`","=":"="};var p=/\s*/,d=/\s+/,f=/\s*=/,m=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;function v(t){this.string=t,this.tail=t,this.pos=0}function b(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function _(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},v.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},b.prototype.push=function(t){return new b(t,this)},b.prototype.lookup=function(t){var e,n,r,i=this.cache;if(i.hasOwnProperty(t))e=i[t];else{for(var a,l,u,c=this,h=!1;c;){if(t.indexOf(".")>0)for(a=c.view,l=t.split("."),u=0;null!=a&&u0?i[i.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],i=0,s=t.length;i"===a?o=this.renderPartial(s,e,n,i):"&"===a?o=this.unescapedValue(s,e):"name"===a?o=this.escapedValue(s,e,i):"text"===a&&(o=this.rawValue(s)),void 0!==o&&(l+=o);return l},_.prototype.renderSection=function(t,e,n,r,a){var o=this,l="",u=e.lookup(t[1]);if(u){if(i(u))for(var c=0,h=u.length;c0||!n)&&(i[s]=r+i[s]);return i.join("\n")},_.prototype.renderPartial=function(t,e,n,r){if(n){var i=this.getConfigTags(r),a=s(n)?n(t[1]):n[t[1]];if(null!=a){var o=t[6],l=t[5],u=t[4],c=a;0==l&&u&&(c=this.indentPartial(a,u,o));var h=this.parse(c,i);return this.renderTokens(h,e,n,c,r)}}},_.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},_.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||x.escape,i=e.lookup(t[1]);if(null!=i)return"number"==typeof i&&r===x.escape?String(i):r(i)},_.prototype.rawValue=function(t){return t[1]},_.prototype.getConfigTags=function(t){return i(t)?t:t&&"object"==typeof t?t.tags:void 0},_.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!i(t)?t.escape:void 0};var x={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){k.templateCache=t},get templateCache(){return k.templateCache}},k=new _;x.clearCache=function(){return k.clearCache()},x.parse=function(t,e){return k.parse(t,e)},x.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((i(s=t)?"array":typeof s)+'" was given as the first argument for mustache#render(template, view, partials)'));var s;return k.render(t,e,n,r)},x.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return h[t]}))},x.Scanner=v,x.Context=b,x.Writer=_;var w=x,y=n(2485),I=n.n(y);const L=Drupal.t("Frontpage",{},{context:"Global navigation mobile menu top level"}),E=Drupal.t("Open submenu:",{},{context:"Mobile navigation menu prefix"}),P=Drupal.t("Open parent menu:",{},{context:"Mobile navigation menu prefix"});function C(){return this.sub_tree?.length>0}function S(){let t;try{t=new URL(this.url).pathname}catch(e){t=this.url}return!this.external&&this.url&&t===window.location.pathname}function A(){return!!this.active}function O(){return!!this.inPath}function T(){return!!this.is_injected}function j(){return{external:this.attributes["data-external"]||this.external||!1,protocol:this.attributes["data-protocol"]||!1}}function R(){return!!this.attributes?.lang}function U(){return!!this.external&&(U.ICONS[this.attributes["data-protocol"]]||U.ICONS.external)}Array.prototype.findRecursive=function(t,e){if(!e)throw new Error("findRecursive requires parameter `childrenPropertyName`");let n=[];n=this;const r=this.find(t),i=this.filter((t=>t[e]));if(r)return r;if(i.length){const n=[];return i.forEach((t=>{n.push(...t[e])})),n.findRecursive(t,e)}},U.ICONS={mailto:{class:"link__type link__type--mailto",text:Drupal.t("Link opens default mail program",{},{context:"Explanation for screen-reader software that the icon visible next to this link means that the link opens default mail program."})},tel:{class:"link__type link__type--tel",text:Drupal.t("Link starts a phone call",{},{context:"Explanation for screen-reader software that the icon visible next to this link means that the link starts a phone call."})},external:{class:"link__type link__type--external",text:Drupal.t("Link leads to external service",{},{context:"Explanation for screen-reader software that the icon visible next to this link means that the link leads to an external service."})}};var B={compileTemplates(){this.templates={panel:`\n {{#panels}}\n
\n \n ${document.querySelector(".js-mmenu__footer")?.outerHTML}\n
\n {{/panels}}\n\n {{^panels}}\n \n {{/panels}}\n `,list:'\n \n '}},menu:null,templates:null,SCROLL_TRESHOLD:100,size:10,running:!1,data:null,currentIndex:0,cacheKey:"hdbt-mobile-menu",enableCache:!1,selectors:{container:"#mmenu",rootId:"mmenu__panels",forward:"mmenu__forward",back:"mmenu__back"},getAPIUrl(){const t=new URL(drupalSettings?.helfi_navigation?.links?.api);return t.searchParams.set("_format","json"),t.searchParams.set("max-depth",drupalSettings?.menu_depth),t.toString()},getRoot(){return document.getElementById(this.selectors.rootId)},sortPanelsByPath(){const t=[],e=this.data,n=e.findRecursive((t=>S.call(t)),"sub_tree");let r=n?.sub_tree?.length?n.id:n?.parentId;for(;r;){e.findRecursive((({id:e,url:n,name:i,sub_tree:s,parentId:a,inPath:o,active:l})=>e===r&&(t.push({sub_tree:s,name:i,url:n,parentId:a,inPath:o,active:l}),r=a,!0)),"sub_tree")||(r=void 0)}t.push({sub_tree:e,inPath:!0}),t.reverse(),this.currentIndex=t.length-1,this.content=[...t]},content:[],getView(t){return this.content.map(((e,n)=>({...e,name:e?.name||L,url:e.url||drupalSettings.helfi_navigation.links.canonical,button:C,isActive:A,isInPath:O,isInjected:T,externalLinkAttributes:j,hasLang:R,externalLinkIcon:U,back:n>0&&(this.content.at(n-1)?.name??L),openSubMenuTranslation:E,openParentMenuTranslation:P,panel_class:I()({mmenu__panel:!0,"mmenu__panel--visible":!0,"mmenu__panel--current":n===this.currentIndex,"mmenu__panel--visible-right":"start"===t&&n>this.currentIndex||"up"===t&&n>=this.currentIndex||"down"===t&&n>this.currentIndex+1,"mmenu__panel--visible-left":"up"===t&&ne===t));if(!e)throw new Error(`ID mismatch in menu items${t}`);this.currentIndex=this.currentIndex+1=0?this.currentIndex-1:this.currentIndex,this.render("down"))},render(t){const e=this.getRoot();if(e.innerHTML=w.render(this.templates.panel,{panels:this.getView(t)},{sub_tree:this.templates.list}),"load"===t)return;const n=[...e.querySelectorAll(".mmenu__panel")],r=n.at(this.currentIndex);e.parentElement.scrollTop>this.SCROLL_TRESHOLD&&this.currentIndex>0&&r.querySelector(".mmenu__back").scrollIntoView({block:"start",behaviour:"smooth"}),setTimeout((()=>{switch(r.classList.remove("mmenu__panel--visible-right","mmenu__panel--visible-left"),t){case"up":n.at(this.currentIndex-1).classList.add("mmenu__panel--visible-left");break;case"down":n.at(this.currentIndex+1).classList.add("mmenu__panel--visible-right")}setTimeout((()=>{n.forEach((t=>{t.classList.contains("mmenu__panel--current")||(t.style.visibility="hidden")}))}),200)}),10)},async load(){const t=await fetch(this.getAPIUrl()),e=await t.json(),n=Object.getOwnPropertyNames(e);if(!n.length)throw new Error("No instances found in data",e);const r=n.map((t=>{const n=e[t].menu_tree[0];return n.parentId="",n})),i=r.findRecursive((t=>S.call(t)),"sub_tree");i&&(i.active=!0,i.inPath=!0);let s=i?.parentId;for(;s;){r.findRecursive((t=>t.id===s&&(s=t.parentId,t.inPath=!0,!0)),"sub_tree")||(s=void 0)}this.data=r},async start(){const t=document.querySelector(this.selectors.container);if(!this.getRoot()||!t)throw new Error("Panel root not found");t.classList.add("mmenu--visible"),this.render("load");try{await this.load()}catch(t){return console.error("Unable to load menu API, using fallback menu instead",t),void this.enableFallback()}this.sortPanelsByPath(),this.render("start"),this.getRoot().addEventListener("click",(t=>{const{target:{classList:e,value:n,parentElement:r}}=t;t.stopImmediatePropagation(),e&&e.contains(this.selectors.forward)?this.up(n):(e&&e.contains(this.selectors.back)||r?.classList&&r?.classList.contains(this.selectors.back))&&this.down()}))},isOpen(){return"#menu"===window.location.hash||"true"===this.toggleButton.getAttribute("aria-expanded")},disableFallback(){this.menu.dataset.js=!0},enableFallback(){this.menu.dataset.target="false",this.getRoot().innerHTML="",delete this.menu.dataset.js,window.location.hash="#menu"},close(){this.toggleButton.setAttribute("aria-expanded","false"),this.menu.dataset.target="false",this.onClose&&this.onClose()},open(){this.menu.dataset.target="true",this.toggleButton.setAttribute("aria-expanded","true"),this.onOpen&&this.onOpen()},toggle(){this.isOpen()?this.close():this.open(),this.toggleButton.focus()},init({onOpen:t,onClose:e}){if(this.running)return void console.warn("MobilePanel already initiated. Is it include more than once?");if(this.onOpen=t,this.onClose=e,this.toggleButton=document.querySelector(".js-menu-toggle-button"),!this.toggleButton)throw new Error("No toggle button for JS menu.");if(this.menu=document.querySelector("#menu"),!this.menu)return void console.error("Panel not present in DOM. Cannot start JS mobile menu");this.disableFallback(),document.addEventListener("keydown",(t=>{"Escape"!==t.key&&"Esc"!==t.key&&27!==t.keyCode||!this.isOpen()||(this.close(),this.toggleButton.focus())}));const n=()=>{this.compileTemplates(),this.toggleButton.removeEventListener("click",n),this.start()};this.toggleButton.addEventListener("click",n),this.toggleButton.addEventListener("click",(()=>this.toggle())),this.isOpen()&&(window.location.hash="",n(),this.open()),this.running=!0}}},2485:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e{"Escape"!==t.key&&"Esc"!==t.key&&27!==t.keyCode||!this.isOpen()||(this.close(),this.buttonInstance.focus())})),this.buttonInstance.addEventListener("click",(()=>{this.toggle()}))}init({name:t,buttonSelector:e,targetSelector:n,onOpen:s,onClose:i}){if(this.name=t,this.buttonSelector=e,this.buttonInstance=document.querySelector(this.buttonSelector),!this.buttonInstance)return this.running=!1,void console.warn(`${t} button missing. Looking for ${this.buttonSelector}`);if(this.running)console.warn(`${t} already initiated. Is it included more than once?`);else{if(this.HASH_ID=n,this.onOpen=s,this.onClose=i,this.targetNode=document.querySelector(this.HASH_ID),!this.targetNode)throw new Error(`${t} target node missing. Looking for ${this.HASH_ID}`);this.targetNode.dataset.js=!0,this.addListeners(),this.running=!0}}}t.exports=()=>new e}}]); \ No newline at end of file +(self.webpackChunkhdbt=self.webpackChunkhdbt||[]).push([[209,991],{9296:function(t){class e{constructor(){this.HASH_ID=null,this.buttonSelector=null,this.buttonInstance=null,this.running=!1,this.targetNode=null,this.onOpen=null}isOpen(){return window.location.hash===this.HASH_ID||"true"===this.targetNode.dataset.target}close(){this.running&&(this.buttonInstance.setAttribute("aria-expanded","false"),this.targetNode.dataset.target="false",this.onClose&&this.onClose())}open(){this.running&&(this.buttonInstance.setAttribute("aria-expanded","true"),this.targetNode.dataset.target="true",this.onOpen&&this.onOpen())}toggle(){this.isOpen()?this.close():this.open(),this.buttonInstance.focus()}addListeners(){document.addEventListener("keydown",(t=>{"Escape"!==t.key&&"Esc"!==t.key&&27!==t.keyCode||!this.isOpen()||(this.close(),this.buttonInstance.focus())})),this.buttonInstance.addEventListener("click",(()=>{this.toggle()}))}init({name:t,buttonSelector:e,targetSelector:n,onOpen:s,onClose:i}){if(this.name=t,this.buttonSelector=e,this.buttonInstance=document.querySelector(this.buttonSelector),!this.buttonInstance)return this.running=!1,void console.warn(`${t} button missing. Looking for ${this.buttonSelector}`);if(this.running)console.warn(`${t} already initiated. Is it included more than once?`);else{if(this.HASH_ID=n,this.onOpen=s,this.onClose=i,this.targetNode=document.querySelector(this.HASH_ID),!this.targetNode)throw new Error(`${t} target node missing. Looking for ${this.HASH_ID}`);this.targetNode.dataset.js=!0,this.addListeners(),this.running=!0}}}t.exports=()=>new e}}]); \ No newline at end of file diff --git a/dist/js/async/toggleWidgets.chunk.js b/dist/js/async/toggleWidgets.chunk.js index 0ea8a6ab7..7d765d521 100644 --- a/dist/js/async/toggleWidgets.chunk.js +++ b/dist/js/async/toggleWidgets.chunk.js @@ -1 +1 @@ -(self.webpackChunkhdbt=self.webpackChunkhdbt||[]).push([[907,808],{2609:function(e){const t=["#chat-leijuke-wrapper",".si-toggle-container",".cx-theme-helsinki-blue",".aca--button--desktop, .aca--button--mobile, .aca--widget--mobile, .aca--widget--desktop, #aca--widget-button-close","#telia-ace-leijuke",".humany-trigger, .humany-widget","#ed11y-panel","#sliding-popup"],a=()=>{document.querySelectorAll(t.join(",")).forEach((e=>{e.dataset.cssmenuHide=!0}))},o=()=>{document.querySelectorAll(t.join(",")).forEach((e=>{delete e.dataset.cssmenuHide}))};e.exports={setHide:e=>{(!0===e?a:o)()},close:a,open:o,HIDE_SELECTORS:t}}}]); \ No newline at end of file +(self.webpackChunkhdbt=self.webpackChunkhdbt||[]).push([[305,655],{3628:function(e){const t=["#chat-leijuke-wrapper",".si-toggle-container",".cx-theme-helsinki-blue",".aca--button--desktop, .aca--button--mobile, .aca--widget--mobile, .aca--widget--desktop, #aca--widget-button-close","#telia-ace-leijuke",".humany-trigger, .humany-widget","#ed11y-panel","#sliding-popup"],a=()=>{document.querySelectorAll(t.join(",")).forEach((e=>{e.dataset.cssmenuHide=!0}))},o=()=>{document.querySelectorAll(t.join(",")).forEach((e=>{delete e.dataset.cssmenuHide}))};e.exports={setHide:e=>{(!0===e?a:o)()},close:a,open:o,HIDE_SELECTORS:t}}}]); \ No newline at end of file diff --git a/dist/js/continuous_housing_service_voucher.min.js b/dist/js/continuous_housing_service_voucher.min.js index 6891da960..231a992dc 100644 --- a/dist/js/continuous_housing_service_voucher.min.js +++ b/dist/js/continuous_housing_service_voucher.min.js @@ -1 +1 @@ -!function(){"use strict";var e={7400:function(e,t){t.Z={getFormData:function(e,t){return{form_id:e,has_required_fields:!0,items:[{input_float:{id:"net_income_per_month",label:t("net_income_per_month"),unit:t("unit_euro"),min:0,size:8,required:!0,strip:"[€eE ]",helper_text:t("net_income_per_month_explanation")}},{input_float:{id:"service_provider_price",label:t("service_provider_price"),unit:t("unit_euro"),min:0,size:8,required:!0,strip:"[€eE ]",helper_text:t("service_provider_price_explanation")}}]}}}},4492:function(e,t){t.Z={net_income_per_month:{fi:"Hakijan nettotulot kuukaudessa",sv:"Den sökandes nettoinkomster per månad",en:"Applicant’s net income per month"},net_income_per_month_explanation:{fi:"Nettotulot tarkoittavat hakijan tuloja verojen vähentämisen jälkeen. Tuloihin lasketaan eläkkeet, elatusavut, elinkorot, elatustuki sekä muut jatkuvat henkilökohtaiset tulot ja pääomasta tai omaisuudesta (kuten korko-, osinko- ja vuokratulot). Eläkkeen saajan hoitotukea, asumistukea, rintamalisää tai sotavammalain mukaista elinkorkoa ei huomioida. Hakijan puolison tulot eivät vaikuta palvelusetelin arvoon.",sv:"Med nettoinkomster avses den sökandes inkomster efter skatteavdrag. Inkomsterna inkluderar pensioner, underhållsbidrag, livräntor samt andra kontinuerliga personliga inkomster och inkomster från kapital eller egendom (såsom ränte-, utdelnings- och hyresintäkter). Vårdbidraget för pensionstagare, bostadsbidraget, fronttillägget eller livräntan enligt krigsskadelagen beaktas inte. Den sökandes makes inkomster påverkar inte servicesedelns värde.",en:"Net income refers to applicant’s income after tax deduction. Income includes pensions, child support, annuities, child maintenance allowance and other continuing personal income and income from capital or property (such as interest, dividend and rental income). Pensioner’s care allowance, housing allowance, frontal supplement or annuity under the Act on military injuries are not taken into account. The income of the applicant’s spouse does not affect the value of the service voucher."},service_provider_price:{fi:"Palveluasumisen vuorokausihinta",sv:"Dygnspris för serviceboende",en:"Daily fee for service housing"},service_provider_price_explanation:{fi:"Palveluntuottajan ilmoittama palvelun hinta vuorokaudessa.",sv:"Priset på tjänsten som anges av serviceproducenten per dygn.",en:"The daily fee for the service stated by the service provider."},receipt_estimate_of_payment:{fi:"Arvio palveluasumisen palvelusetelistä",sv:"Bedömning av servicesedeln för serviceboende",en:"Assessment of a service voucher for service housing"},receipt_estimated_payment_prefix:{fi:"Omavastuuosuus eli sinulle maksettavaksi jäävä asiakasmaksu on",sv:"Självriskandelen, det vill säga den klientavgift som återstår för dig att betala, är",en:"The copayment, i.e. the client fee payable by you, is"},receipt_estimated_payment_suffix:{fi:"euroa kuukaudessa.",sv:"euro per månad.",en:"euros per month."},receipt_estimated_payment_explanation:{fi:"Tämä arvio on suuntaa antava. Tarkka arvo lasketaan asiakaspäätökseen.",sv:"Denna bedömning är riktgivande. Det exakta värdet beräknas i klientbeslutet.",en:"This estimate is indicative only. The exact value will be calculated for the client decision."},receipt_estimate_is_based_on:{fi:"Arvio muodostuu seuraavasti:",sv:"Bedömningen görs enligt följande:",en:"The estimate consists of the following:"},receipt_subtotal_full_price:{fi:"Palvelusetelillä hankittavan palvelun kokonaiskustannus",sv:"Total kostnad för tjänsten som köpts med servicesedeln",en:"Total cost of the service to be procured with the service voucher"},receipt_subtotal_city_price:{fi:"Kaupunki maksaa palvelusetelillä palveluntuottajalle ",sv:"Staden betalar serviceproducenten med en servicesedel ",en:"The city pays the service provider with the service voucher "},receipt_subtotal_self_price:{fi:"Sinulle maksettavaksi jäävä osuus eli omavastuu",sv:"Andel som återstår för dig att betala, med andra ord självriskandelen",en:"The amount payable by you, i.e. the copayment"},receipt_subtotal_euros_per_month:{fi:"${value} €/kk",sv:"${value} euro/månad",en:"${value} €/month"},receipt_subtotal_euros_per_month_screenreader:{fi:"${value} euroa kuukaudessa",sv:"${value} euro per månad",en:"${value} euros per month"},receipt_additional_details:{fi:"Lisähuomiot:",sv:"Ytterligare anmärkningar:",en:"Additional remarks:"},receipt_additional_details_1:{fi:"Palvelusetelillä maksettavia yksityisen palveluasumisen kustannuksia ovat palveluasumisen palvelumaksu, perusmaksu ja ateriamaksu.",sv:"Kostnaderna för privat serviceboende som betalas med en servicesedel är serviceavgiften för serviceboende, grundavgiften och måltidsavgiften.",en:"The costs of private service housing that can be paid with a service voucher include the service fee for service housing, the base fee and the meal fee."},receipt_additional_details_2:{fi:"Omavastuuosuuden lisäksi sinulle jää maksettavaksi myös palveluasumisen vuokra, lääkkeet ja muut henkilökohtaiset kulut.",sv:"Utöver självriskandelen ska du också betala hyra för serviceboende, för läkemedel och andra personliga utgifter.",en:"In addition to the copayment, you will also have to pay for the service housing rent, medicines and other personal expenses."},receipt_aria_live:{fi:"Omavastuuosuus eli sinulle maksettavaksi jäävä asiakasmaksu on ${payment} euroa kuukaudessa, lue lisätietoja lomakkeen alta.",sv:"Självriskandelen, det vill säga den klientavgift som du ska betala, är ${payment} euro per månad, mer information under blanketten.",en:"The copayment, i.e. the client fee payable by you, is ${payment} euros per month; read more under the form."}}}},t={};function a(i){var s=t[i];if(void 0!==s)return s.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,a),n.exports}!function(){var e=a(7400),t=a(4492);class i{constructor(a,i){this.id=a;const s=JSON.parse(i),n=()=>{},r=()=>{const e=[];if(e.push(...this.calculator.validateBasics("net_income_per_month")),e.push(...this.calculator.validateBasics("service_provider_price")),e.length)return{error:{title:this.t("missing_input"),message:e}};const t=Number(this.calculator.getFieldValue("net_income_per_month")),a=Number(this.calculator.getFieldValue("service_provider_price"))*(365/12),i=this.calculator.getMinimumRange(t,s.voucher_from_net_income),n=Math.max(0,a-i),r=[];r.push({title:this.t("receipt_subtotal_full_price"),has_details:!1,details:[],sum:this.t("receipt_subtotal_euros_per_month",{value:this.calculator.formatFinnishEuroCents(a)}),sum_screenreader:this.t("receipt_subtotal_euros_per_month_screenreader",{value:this.calculator.formatEuroCents(a)})},{title:this.t("receipt_subtotal_city_price"),has_details:!1,details:[],sum:this.t("receipt_subtotal_euros_per_month",{value:this.calculator.formatFinnishEuroCents(i)}),sum_screenreader:this.t("receipt_subtotal_euros_per_month_screenreader",{value:this.calculator.formatEuroCents(i)})});const o=[{title:this.t("receipt_additional_details"),text:null},{title:null,text:this.t("receipt_additional_details_1",{link:this.t("link",{link:this.t("receipt_additional_details_1_link"),url:this.t("receipt_additional_details_1_url")})})},{title:null,text:this.t("receipt_additional_details_2")}],l={id:this.id,title:this.t("receipt_estimate_of_payment"),total_prefix:this.t("receipt_estimated_payment_prefix"),total_value:this.calculator.formatFinnishEuroCents(n),total_suffix:this.t("receipt_estimated_payment_suffix"),total_explanation:this.t("receipt_estimated_payment_explanation"),hr:!0,breakdown:{title:this.t("receipt_estimate_is_based_on"),subtotals:r,additional_details:o}};return{receipt:this.calculator.getPartialRender("{{>receipt}}",l),ariaLive:this.t("receipt_aria_live",{payment:n})}},o={submit:e=>{this.calculator.clearResult(),e.preventDefault();const t=r();this.calculator.renderResult(t)},keydown:()=>{},change:()=>{},reset:()=>{window.setTimeout(n,1),this.calculator.clearResult(),this.calculator.showAriaLiveText(this.t("reset_aria_live"))}};this.calculator=window.HelfiCalculator({name:"home_care_client_fee",translations:t.Z}),this.t=(e,t)=>this.calculator.translate(e,t),this.settings=this.calculator.parseSettings(i),this.calculator.init({id:a,formData:(()=>e.Z.getFormData(this.id,this.t))(),eventHandlers:o})}}window.helfi_calculator=window.helfi_calculator||{},window.helfi_calculator.continuous_housing_service_voucher=(e,t)=>new i(e,t)}()}(); \ No newline at end of file +!function(){"use strict";var e={4322:function(e,t){t.A={getFormData:function(e,t){return{form_id:e,has_required_fields:!0,items:[{input_float:{id:"net_income_per_month",label:t("net_income_per_month"),unit:t("unit_euro"),min:0,size:8,required:!0,strip:"[€eE ]",helper_text:t("net_income_per_month_explanation")}},{input_float:{id:"service_provider_price",label:t("service_provider_price"),unit:t("unit_euro"),min:0,size:8,required:!0,strip:"[€eE ]",helper_text:t("service_provider_price_explanation")}}]}}}},9256:function(e,t){t.A={net_income_per_month:{fi:"Hakijan nettotulot kuukaudessa",sv:"Den sökandes nettoinkomster per månad",en:"Applicant’s net income per month"},net_income_per_month_explanation:{fi:"Nettotulot tarkoittavat hakijan tuloja verojen vähentämisen jälkeen. Tuloihin lasketaan eläkkeet, elatusavut, elinkorot, elatustuki sekä muut jatkuvat henkilökohtaiset tulot ja pääomasta tai omaisuudesta (kuten korko-, osinko- ja vuokratulot). Eläkkeen saajan hoitotukea, asumistukea, rintamalisää tai sotavammalain mukaista elinkorkoa ei huomioida. Hakijan puolison tulot eivät vaikuta palvelusetelin arvoon.",sv:"Med nettoinkomster avses den sökandes inkomster efter skatteavdrag. Inkomsterna inkluderar pensioner, underhållsbidrag, livräntor samt andra kontinuerliga personliga inkomster och inkomster från kapital eller egendom (såsom ränte-, utdelnings- och hyresintäkter). Vårdbidraget för pensionstagare, bostadsbidraget, fronttillägget eller livräntan enligt krigsskadelagen beaktas inte. Den sökandes makes inkomster påverkar inte servicesedelns värde.",en:"Net income refers to applicant’s income after tax deduction. Income includes pensions, child support, annuities, child maintenance allowance and other continuing personal income and income from capital or property (such as interest, dividend and rental income). Pensioner’s care allowance, housing allowance, frontal supplement or annuity under the Act on military injuries are not taken into account. The income of the applicant’s spouse does not affect the value of the service voucher."},service_provider_price:{fi:"Palveluasumisen vuorokausihinta",sv:"Dygnspris för serviceboende",en:"Daily fee for service housing"},service_provider_price_explanation:{fi:"Palveluntuottajan ilmoittama palvelun hinta vuorokaudessa.",sv:"Priset på tjänsten som anges av serviceproducenten per dygn.",en:"The daily fee for the service stated by the service provider."},receipt_estimate_of_payment:{fi:"Arvio palveluasumisen palvelusetelistä",sv:"Bedömning av servicesedeln för serviceboende",en:"Assessment of a service voucher for service housing"},receipt_estimated_payment_prefix:{fi:"Omavastuuosuus eli sinulle maksettavaksi jäävä asiakasmaksu on",sv:"Självriskandelen, det vill säga den klientavgift som återstår för dig att betala, är",en:"The copayment, i.e. the client fee payable by you, is"},receipt_estimated_payment_suffix:{fi:"euroa kuukaudessa.",sv:"euro per månad.",en:"euros per month."},receipt_estimated_payment_explanation:{fi:"Tämä arvio on suuntaa antava. Tarkka arvo lasketaan asiakaspäätökseen.",sv:"Denna bedömning är riktgivande. Det exakta värdet beräknas i klientbeslutet.",en:"This estimate is indicative only. The exact value will be calculated for the client decision."},receipt_estimate_is_based_on:{fi:"Arvio muodostuu seuraavasti:",sv:"Bedömningen görs enligt följande:",en:"The estimate consists of the following:"},receipt_subtotal_full_price:{fi:"Palvelusetelillä hankittavan palvelun kokonaiskustannus",sv:"Total kostnad för tjänsten som köpts med servicesedeln",en:"Total cost of the service to be procured with the service voucher"},receipt_subtotal_city_price:{fi:"Kaupunki maksaa palvelusetelillä palveluntuottajalle ",sv:"Staden betalar serviceproducenten med en servicesedel ",en:"The city pays the service provider with the service voucher "},receipt_subtotal_self_price:{fi:"Sinulle maksettavaksi jäävä osuus eli omavastuu",sv:"Andel som återstår för dig att betala, med andra ord självriskandelen",en:"The amount payable by you, i.e. the copayment"},receipt_subtotal_euros_per_month:{fi:"${value} €/kk",sv:"${value} euro/månad",en:"${value} €/month"},receipt_subtotal_euros_per_month_screenreader:{fi:"${value} euroa kuukaudessa",sv:"${value} euro per månad",en:"${value} euros per month"},receipt_additional_details:{fi:"Lisähuomiot:",sv:"Ytterligare anmärkningar:",en:"Additional remarks:"},receipt_additional_details_1:{fi:"Palvelusetelillä maksettavia yksityisen palveluasumisen kustannuksia ovat palveluasumisen palvelumaksu, perusmaksu ja ateriamaksu.",sv:"Kostnaderna för privat serviceboende som betalas med en servicesedel är serviceavgiften för serviceboende, grundavgiften och måltidsavgiften.",en:"The costs of private service housing that can be paid with a service voucher include the service fee for service housing, the base fee and the meal fee."},receipt_additional_details_2:{fi:"Omavastuuosuuden lisäksi sinulle jää maksettavaksi myös palveluasumisen vuokra, lääkkeet ja muut henkilökohtaiset kulut.",sv:"Utöver självriskandelen ska du också betala hyra för serviceboende, för läkemedel och andra personliga utgifter.",en:"In addition to the copayment, you will also have to pay for the service housing rent, medicines and other personal expenses."},receipt_aria_live:{fi:"Omavastuuosuus eli sinulle maksettavaksi jäävä asiakasmaksu on ${payment} euroa kuukaudessa, lue lisätietoja lomakkeen alta.",sv:"Självriskandelen, det vill säga den klientavgift som du ska betala, är ${payment} euro per månad, mer information under blanketten.",en:"The copayment, i.e. the client fee payable by you, is ${payment} euros per month; read more under the form."}}}},t={};function a(i){var s=t[i];if(void 0!==s)return s.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,a),n.exports}var i=a(4322),s=a(9256);class n{constructor(e,t){this.id=e;const a=JSON.parse(t),n=()=>{},r=()=>{const e=[];if(e.push(...this.calculator.validateBasics("net_income_per_month")),e.push(...this.calculator.validateBasics("service_provider_price")),e.length)return{error:{title:this.t("missing_input"),message:e}};const t=Number(this.calculator.getFieldValue("net_income_per_month")),i=Number(this.calculator.getFieldValue("service_provider_price"))*(365/12),s=this.calculator.getMinimumRange(t,a.voucher_from_net_income),n=Math.max(0,i-s),r=[];r.push({title:this.t("receipt_subtotal_full_price"),has_details:!1,details:[],sum:this.t("receipt_subtotal_euros_per_month",{value:this.calculator.formatFinnishEuroCents(i)}),sum_screenreader:this.t("receipt_subtotal_euros_per_month_screenreader",{value:this.calculator.formatEuroCents(i)})},{title:this.t("receipt_subtotal_city_price"),has_details:!1,details:[],sum:this.t("receipt_subtotal_euros_per_month",{value:this.calculator.formatFinnishEuroCents(s)}),sum_screenreader:this.t("receipt_subtotal_euros_per_month_screenreader",{value:this.calculator.formatEuroCents(s)})});const o=[{title:this.t("receipt_additional_details"),text:null},{title:null,text:this.t("receipt_additional_details_1",{link:this.t("link",{link:this.t("receipt_additional_details_1_link"),url:this.t("receipt_additional_details_1_url")})})},{title:null,text:this.t("receipt_additional_details_2")}],l={id:this.id,title:this.t("receipt_estimate_of_payment"),total_prefix:this.t("receipt_estimated_payment_prefix"),total_value:this.calculator.formatFinnishEuroCents(n),total_suffix:this.t("receipt_estimated_payment_suffix"),total_explanation:this.t("receipt_estimated_payment_explanation"),hr:!0,breakdown:{title:this.t("receipt_estimate_is_based_on"),subtotals:r,additional_details:o}};return{receipt:this.calculator.getPartialRender("{{>receipt}}",l),ariaLive:this.t("receipt_aria_live",{payment:n})}},o={submit:e=>{this.calculator.clearResult(),e.preventDefault();const t=r();this.calculator.renderResult(t)},keydown:()=>{},change:()=>{},reset:()=>{window.setTimeout(n,1),this.calculator.clearResult(),this.calculator.showAriaLiveText(this.t("reset_aria_live"))}};this.calculator=window.HelfiCalculator({name:"home_care_client_fee",translations:s.A}),this.t=(e,t)=>this.calculator.translate(e,t),this.settings=this.calculator.parseSettings(t),this.calculator.init({id:e,formData:(()=>i.A.getFormData(this.id,this.t))(),eventHandlers:o})}}window.helfi_calculator=window.helfi_calculator||{},window.helfi_calculator.continuous_housing_service_voucher=(e,t)=>new n(e,t)}(); \ No newline at end of file diff --git a/dist/js/district-and-project-search.min.js b/dist/js/district-and-project-search.min.js index fedf687a4..3829426eb 100644 --- a/dist/js/district-and-project-search.min.js +++ b/dist/js/district-and-project-search.min.js @@ -1 +1 @@ -!function(){var e={8518:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{S:function(){return o},n:function(){return r}})},1422:function(e,t,n){"use strict";n.d(t,{KV:function(){return o},l$:function(){return i}});var r=n(8518);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}e=n.hmd(e)},1170:function(e,t,n){"use strict";n.d(t,{ph:function(){return c},yW:function(){return u}});var r=n(1422),o=n(1235);e=n.hmd(e);const i=(0,o.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const l=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=i;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===l?a:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},u=a.nowSeconds.bind(a),c=s.nowSeconds.bind(s);let d;(()=>{const{performance:e}=i;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=o=0?r=setTimeout(s,t-u):(r=null,n||(l=e.apply(i,o),i=o=null))}null==t&&(t=100);var u=function(){i=this,o=arguments,a=Date.now();var u=n&&!r;return r||(r=setTimeout(s,t)),u&&(l=e.apply(i,o),i=o=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},u}t.debounce=t,e.exports=t},9960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},7915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),a=n(7790);o(n(7790),t);var l=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===i.ElementType.Text)t?n.data=(n.data+e).replace(l," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(l," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(i.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},7790:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return o(t,e),t}(p);t.Document=h;var _=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o,r)||this;return i.name=t,i.attribs=n,i}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function m(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function y(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new d(e.data);else if(m(e)){var r=t?k(e.children):[],o=new _(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?k(e.children):[];var l=new p(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=l})),n=l}else if(x(e)){r=t?k(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map((function(e){return w(e,!0)})),n=1;n/i,l=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var d=new c;s=u=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var p,h="object"==typeof document&&document.createElement("template");h&&h.content&&(p=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,c,d=e.match(i),f=d&&d[1]?d[1].toLowerCase():"";switch(f){case n:var h=u(e);if(!a.test(e))null===(t=null==(m=h.querySelector(r))?void 0:m.parentNode)||void 0===t||t.removeChild(m);if(!l.test(e))null===(c=null==(m=h.querySelector(o))?void 0:m.parentNode)||void 0===c||c.removeChild(m);return h.querySelectorAll(n);case r:case o:var _=s(e).querySelectorAll(f);return l.test(e)&&a.test(e)?_[0].parentNode.childNodes:_;default:return p?p(e):(m=s(e,o).querySelector(o)).childNodes;var m}}},4152:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(8276)),i=n(1507),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},1507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(7915),o=n(885);function i(e){for(var t={},n=0,r=e.length;n1&&(g=d(g,{key:g.key||_})),r.push(u(g,m,_));continue}}if("text"!==m.type){var v=m,b={};s(v)?((0,a.setStyleProp)(v.attribs.style,v.attribs),b=v.attribs):v.attribs&&(b=(0,i.default)(v.attribs,v.name));var y=void 0;switch(m.type){case"script":case"style":m.children[0]&&(b.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":"textarea"===m.name&&m.children[0]?b.defaultValue=m.children[0].data:m.children&&m.children.length&&(y=e(m.children,n));break;default:continue}h>1&&(b.key=_),r.push(u(f(m.name,b,y),m,_))}else{var x=!m.data.trim().length;if(x&&m.parent&&!(0,a.canTextBeChildOfNode)(m.parent))continue;if((null==n?void 0:n.trim)&&x)continue;r.push(u(m.data,m,_))}}return 1===r.length?r[0]:r}},3426:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(4152));t.htmlToDOM=o.default;var i=r(n(484));t.attributesToProps=i.default;var a=r(n(3670));t.domToReact=a.default;var l=n(7915);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4606:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(7294),i=r(n(1476)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var l={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};t.returnFirstArg=function(e){return e}},8139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(s,u):u}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new _(e),b(),t}}function _(e){this.start=e,this.end={line:d,column:f},this.source=s.source}_.prototype.content=e;var m=[];function g(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;m.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=v(o);if(n){if(x(),!v(i))return g("property missing ':'");var r=v(a),s=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return v(l),s}}return b(),function(){var e,t=[];for(y(t);e=w();)!1!==e&&(t.push(e),y(t));return t}()}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",s=16,u=32,c=64,d=128,f=256,p=1/0,h=9007199254740991,_=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",c],["rearg",f]],v="[object Arguments]",b="[object Array]",y="[object Boolean]",x="[object Date]",w="[object Error]",k="[object Function]",E="[object GeneratorFunction]",S="[object Map]",C="[object Number]",I="[object Object]",T="[object Promise]",O="[object RegExp]",N="[object Set]",j="[object String]",z="[object Symbol]",L="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",A="[object Float32Array]",P="[object Float64Array]",M="[object Int8Array]",B="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",$="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,J=RegExp(Y.source),Q=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Ne="\\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",je="['’]",ze="["+Ee+"]",Le="["+Ne+"]",Re="["+Se+"]",De="\\d+",Ae="["+Ce+"]",Pe="["+Ie+"]",Me="[^"+Ee+Ne+De+Ce+Ie+Te+"]",Be="\\ud83c[\\udffb-\\udfff]",Fe="[^"+Ee+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Te+"]",Ve="\\u200d",We="(?:"+Pe+"|"+Me+")",qe="(?:"+He+"|"+Me+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Re+"|"+Be+")"+"?",Je="["+Oe+"]?",Qe=Je+Ge+("(?:"+Ve+"(?:"+[Fe,Ue,$e].join("|")+")"+Je+Ge+")*"),Xe="(?:"+[Ae,Ue,$e].join("|")+")"+Qe,Ze="(?:"+[Fe+Re+"?",Re,Ue,$e,ze].join("|")+")",et=RegExp(je,"g"),tt=RegExp(Re,"g"),nt=RegExp(Be+"(?="+Be+")|"+Ze+Qe,"g"),rt=RegExp([He+"?"+Pe+"+"+Ke+"(?="+[Le,He,"$"].join("|")+")",qe+"+"+Ye+"(?="+[Le,He+We,"$"].join("|")+")",He+"?"+We+"+"+Ke,He+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Xe].join("|"),"g"),ot=RegExp("["+Ve+Ee+Se+Oe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,st={};st[A]=st[P]=st[M]=st[B]=st[F]=st[U]=st[$]=st[H]=st[V]=!0,st[v]=st[b]=st[R]=st[y]=st[D]=st[x]=st[w]=st[k]=st[S]=st[C]=st[I]=st[O]=st[N]=st[j]=st[L]=!1;var ut={};ut[v]=ut[b]=ut[R]=ut[D]=ut[y]=ut[x]=ut[A]=ut[P]=ut[M]=ut[B]=ut[F]=ut[S]=ut[C]=ut[I]=ut[O]=ut[N]=ut[j]=ut[z]=ut[U]=ut[$]=ut[H]=ut[V]=!0,ut[w]=ut[k]=ut[L]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,_t=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,vt=gt&>.exports===mt,bt=vt&&pt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),xt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,kt=yt&&yt.isMap,Et=yt&&yt.isRegExp,St=yt&&yt.isSet,Ct=yt&&yt.isTypedArray;function It(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)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Yt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ln(e){return"\\"+ct[e]}function sn(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var vn=function e(t){var n,r=(t=null==t?_t:vn.defaults(_t.Object(),t,vn.pick(_t,at))).Array,le=t.Date,Ee=t.Error,Se=t.Function,Ce=t.Math,Ie=t.Object,Te=t.RegExp,Oe=t.String,Ne=t.TypeError,je=r.prototype,ze=Se.prototype,Le=Ie.prototype,Re=t["__core-js_shared__"],De=ze.toString,Ae=Le.hasOwnProperty,Pe=0,Me=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Be=Le.toString,Fe=De.call(Ie),Ue=_t._,$e=Te("^"+De.call(Ae).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:o,Ve=t.Symbol,We=t.Uint8Array,qe=He?He.allocUnsafe:o,Ke=cn(Ie.getPrototypeOf,Ie),Ye=Ie.create,Ge=Le.propertyIsEnumerable,Je=je.splice,Qe=Ve?Ve.isConcatSpreadable:o,Xe=Ve?Ve.iterator:o,Ze=Ve?Ve.toStringTag:o,nt=function(){try{var e=pi(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==_t.clearTimeout&&t.clearTimeout,ct=le&&le.now!==_t.Date.now&&le.now,pt=t.setTimeout!==_t.setTimeout&&t.setTimeout,ht=Ce.ceil,mt=Ce.floor,gt=Ie.getOwnPropertySymbols,bt=He?He.isBuffer:o,yt=t.isFinite,Ft=je.join,Yt=cn(Ie.keys,Ie),bn=Ce.max,yn=Ce.min,xn=le.now,wn=t.parseInt,kn=Ce.random,En=je.reverse,Sn=pi(t,"DataView"),Cn=pi(t,"Map"),In=pi(t,"Promise"),Tn=pi(t,"Set"),On=pi(t,"WeakMap"),Nn=pi(Ie,"create"),jn=On&&new On,zn={},Ln=Bi(Sn),Rn=Bi(Cn),Dn=Bi(In),An=Bi(Tn),Pn=Bi(On),Mn=Ve?Ve.prototype:o,Bn=Mn?Mn.valueOf:o,Fn=Mn?Mn.toString:o;function Un(e){if(nl(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Vn)return e;if(Ae.call(e,"__wrapped__"))return Fi(e)}return new Vn(e)}var $n=function(){function e(){}return function(t){if(!tl(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,n,r,i,a){var l,s=1&t,u=2&t,c=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!tl(e))return e;var d=Wa(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return jo(e,l)}else{var f=mi(e),p=f==k||f==E;if(Ga(e))return So(e,s);if(f==I||f==v||p&&!i){if(l=u||p?{}:vi(e),!s)return u?function(e,t){return zo(e,_i(e),t)}(e,function(e,t){return e&&zo(t,Ll(t),e)}(l,e)):function(e,t){return zo(e,hi(e),t)}(e,ir(l,e))}else{if(!ut[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case R:return Co(e);case y:case x:return new r(+e);case D:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case P:case M:case B:case F:case U:case $:case H:case V:return Io(e,n);case S:return new r;case C:case j:return new r(e);case O:return function(e){var t=new e.constructor(e.source,_e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case z:return o=e,Bn?Ie(Bn.call(o)):{}}var o}(e,f,s)}}a||(a=new Jn);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(r){l.add(ur(r,t,n,r,e,a))})):rl(e)&&e.forEach((function(r,o){l.set(o,ur(r,t,n,o,e,a))}));var _=d?o:(c?u?ai:ii:u?Ll:zl)(e);return Ot(_||e,(function(r,o){_&&(r=e[o=r]),nr(l,o,ur(r,t,n,o,e,a))})),l}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ie(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ne(i);return zi((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=Lt,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=Dt(t,Zt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Gn(t));e:for(;++o-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Cn||Kn),string:new qn}},Yn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return di(this,e).get(e)},Yn.prototype.has=function(e){return di(this,e).has(e)},Yn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,a),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var pr=Do(xr),hr=Do(wr,!0);function _r(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r0&&n(l)?t>1?vr(l,t-1,n,r,o):At(o,l):r||(o[o.length]=l)}return o}var br=Ao(),yr=Ao(!0);function xr(e,t){return e&&br(e,t,zl)}function wr(e,t){return e&&yr(e,t,zl)}function kr(e,t){return zt(t,(function(t){return Xa(e[t])}))}function Er(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&nt}function Tr(e,t){return null!=e&&Ae.call(e,t)}function Or(e,t){return null!=e&&t in Ie(e)}function Nr(e,t,n){for(var i=n?Rt:Lt,a=e[0].length,l=e.length,s=l,u=r(l),c=1/0,d=[];s--;){var f=e[s];s&&t&&(f=Dt(f,Zt(t))),c=yn(f.length,c),u[s]=!n&&(t||a>=120&&f.length>=120)?new Gn(s&&f):o}f=e[0];var p=-1,h=u[0];e:for(;++p=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)l!==e&&Je.call(l,s,1),Je.call(e,s,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Je.call(e,o,1):po(e,o)}}return e}function Gr(e,t){return e+mt(kn()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Li(Ti(e,t,os),e+"")}function Xr(e){return Xn(Ul(e))}function Zr(e,t){var n=Ul(e);return Ai(n,sr(t,0,n.length))}function eo(e,t,n,r){if(!tl(e))return e;for(var i=-1,a=(t=xo(t,e)).length,l=a-1,s=e;null!=s&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!ul(a)&&(n?a<=t:a=200){var u=t?null:Qo(e);if(u)return fn(u);a=!1,o=tn,s=new Gn}else s=t?[]:l;e:for(;++r=r?e:oo(e,t,n)}var Eo=ot||function(e){return _t.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Io(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ul(e),l=t!==o,s=null===t,u=t==t,c=ul(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||r&&l&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&xi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Ie(t);++r-1?i[a?t[l]:l]:o}}function Uo(e){return oi((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ne(i);if(a&&!s&&"wrapper"==si(l))var s=new Vn([],!0)}for(r=s?r:n;++r1&&y.reverse(),p&&cs))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&n?new Gn:o;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(g,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ai(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var _a=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Lo((function(e,t,n){Ae.call(e,n)?++e[n]:ar(e,n,1)}));var ga=Fo(Vi),va=Fo(Wi);function ba(e,t){return(Wa(e)?Ot:pr)(e,ci(t,3))}function ya(e,t){return(Wa(e)?Nt:hr)(e,ci(t,3))}var xa=Lo((function(e,t,n){Ae.call(e,n)?e[n].push(t):ar(e,n,[t])}));var wa=Qr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ka(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?It(t,e,n):jr(e,t,n)})),a})),ka=Lo((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return(Wa(e)?Dt:Fr)(e,ci(t,3))}var Sa=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ca=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,vr(t,1),[])})),Ia=ct||function(){return _t.Date.now()};function Ta(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zo(e,d,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Ne(i);return e=_l(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Na=Qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ui(Na));r|=u}return Zo(e,r,t,n,o)})),ja=Qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ui(ja));r|=u}return Zo(t,r,e,n,o)}));function za(e,t,n){var r,a,l,s,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ne(i);function _(t){var n=r,i=a;return r=a=o,d=t,s=e.apply(i,n)}function m(e){var n=e-c;return c===o||n>=t||n<0||p&&e-d>=l}function g(){var e=Ia();if(m(e))return v(e);u=zi(g,function(e){var n=t-(e-c);return p?yn(n,l-(e-d)):n}(e))}function v(e){return u=o,h&&r?_(e):(r=a=o,s)}function b(){var e=Ia(),n=m(e);if(r=arguments,a=this,c=e,n){if(u===o)return function(e){return d=e,u=zi(g,t),f?_(e):s}(c);if(p)return Eo(u),u=zi(g,t),_(c)}return u===o&&(u=zi(g,t)),s}return t=gl(t)||0,tl(n)&&(f=!!n.leading,l=(p="maxWait"in n)?bn(gl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==o&&Eo(u),d=0,r=c=a=u=o},b.flush=function(){return u===o?s:v(Ia())},b}var La=Qr((function(e,t){return dr(e,1,t)})),Ra=Qr((function(e,t,n){return dr(e,gl(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Yn),n}function Aa(e){if("function"!=typeof e)throw new Ne(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Yn;var Pa=wo((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Dt(t[0],Zt(ci())):Dt(vr(t,1),Zt(ci()))).length;return Qr((function(r){for(var o=-1,i=yn(r.length,n);++o=t})),Va=zr(function(){return arguments}())?zr:function(e){return nl(e)&&Ae.call(e,"callee")&&!Ge.call(e,"callee")},Wa=r.isArray,qa=xt?Zt(xt):function(e){return nl(e)&&Cr(e)==R};function Ka(e){return null!=e&&el(e.length)&&!Xa(e)}function Ya(e){return nl(e)&&Ka(e)}var Ga=bt||gs,Ja=wt?Zt(wt):function(e){return nl(e)&&Cr(e)==x};function Qa(e){if(!nl(e))return!1;var t=Cr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Xa(e){if(!tl(e))return!1;var t=Cr(e);return t==k||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==_l(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=kt?Zt(kt):function(e){return nl(e)&&mi(e)==S};function ol(e){return"number"==typeof e||nl(e)&&Cr(e)==C}function il(e){if(!nl(e)||Cr(e)!=I)return!1;var t=Ke(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Fe}var al=Et?Zt(Et):function(e){return nl(e)&&Cr(e)==O};var ll=St?Zt(St):function(e){return nl(e)&&mi(e)==N};function sl(e){return"string"==typeof e||!Wa(e)&&nl(e)&&Cr(e)==j}function ul(e){return"symbol"==typeof e||nl(e)&&Cr(e)==z}var cl=Ct?Zt(Ct):function(e){return nl(e)&&el(e.length)&&!!st[Cr(e)]};var dl=Yo(Br),fl=Yo((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ka(e))return sl(e)?_n(e):jo(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=mi(e);return(t==S?un:t==N?fn:Ul)(e)}function hl(e){return e?(e=gl(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function _l(e){var t=hl(e),n=t%1;return t==t?n?t-n:t:0}function ml(e){return e?sr(_l(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(ul(e))return _;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):me.test(e)?_:+e}function vl(e){return zo(e,Ll(e))}function bl(e){return null==e?"":co(e)}var yl=Ro((function(e,t){if(Si(t)||Ka(t))zo(t,zl(t),e);else for(var n in t)Ae.call(t,n)&&nr(e,n,t[n])})),xl=Ro((function(e,t){zo(t,Ll(t),e)})),wl=Ro((function(e,t,n,r){zo(t,Ll(t),e,r)})),kl=Ro((function(e,t,n,r){zo(t,zl(t),e,r)})),El=oi(lr);var Sl=Qr((function(e,t){e=Ie(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n1),t})),zo(e,ai(e),n),r&&(n=ur(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var Pl=oi((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Tl(e,n)}))}(e,t)}));function Ml(e,t){if(null==e)return{};var n=Dt(ai(e),(function(e){return[e]}));return t=ci(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Bl=Xo(zl),Fl=Xo(Ll);function Ul(e){return null==e?[]:en(e,zl(e))}var $l=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Ql(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(xe,on).replace(tt,"")}var Wl=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ql=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Kl=Po("toLowerCase");var Yl=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gl=Mo((function(e,t,n){return e+(n?" ":"")+Ql(t)}));var Jl=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ql=Po("toUpperCase");function Xl(e,t,n){return e=bl(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Zl=Qr((function(e,t){try{return It(e,o,t)}catch(e){return Qa(e)?e:new Ee(e)}})),es=oi((function(e,t){return Ot(t,(function(t){t=Mi(t),ar(e,t,Na(e[t],e))})),e}));function ts(e){return function(){return e}}var ns=Uo(),rs=Uo(!0);function os(e){return e}function is(e){return Ar("function"==typeof e?e:ur(e,1))}var as=Qr((function(e,t){return function(n){return jr(n,e,t)}})),ls=Qr((function(e,t){return function(n){return jr(e,n,t)}}));function ss(e,t,n){var r=zl(t),o=kr(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,zl(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Xa(e);return Ot(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=jo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function us(){}var cs=Wo(Dt),ds=Wo(jt),fs=Wo(Bt);function ps(e){return wi(e)?Kt(Mi(e)):function(e){return function(t){return Er(t,e)}}(e)}var hs=Ko(),_s=Ko(!0);function ms(){return[]}function gs(){return!1}var vs=Vo((function(e,t){return e+t}),0),bs=Jo("ceil"),ys=Vo((function(e,t){return e/t}),1),xs=Jo("floor");var ws,ks=Vo((function(e,t){return e*t}),1),Es=Jo("round"),Ss=Vo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ne(i);return e=_l(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ta,Un.assign=yl,Un.assignIn=xl,Un.assignInWith=wl,Un.assignWith=kl,Un.at=El,Un.before=Oa,Un.bind=Na,Un.bindAll=es,Un.bindKey=ja,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Un.chain=pa,Un.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:bn(_l(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,s=r(ht(i/t));ai?0:i+n),(r=r===o||r>i?i:_l(r))<0&&(r+=i),r=n>r?0:ml(r);n>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=co(t))&&sn(e)?ko(_n(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ne(i);return t=null==t?0:bn(_l(t),0),Qr((function(n){var r=n[t],o=ko(n,0,t);return r&&At(o,r),It(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:_l(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:_l(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?_o(e,ci(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?_o(e,ci(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ne(i);return tl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),za(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ha,Un.toArray=pl,Un.toPairs=Bl,Un.toPairsIn=Fl,Un.toPath=function(e){return Wa(e)?Dt(e,Mi):ul(e)?[e]:jo(Pi(bl(e)))},Un.toPlainObject=vl,Un.transform=function(e,t,n){var r=Wa(e),o=r||Ga(e)||cl(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Xa(i)?$n(Ke(e)):{}}return(o?Ot:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return Ta(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?fo(e):[]},Un.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fo(e,o,t):[]},Un.unset=function(e,t){return null==e||po(e,t)},Un.unzip=ia,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:ho(e,t,yo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,yo(n),r)},Un.values=Ul,Un.valuesIn=function(e){return null==e?[]:en(e,Ll(e))},Un.without=la,Un.words=Xl,Un.wrap=function(e,t){return Ma(yo(t),e)},Un.xor=sa,Un.xorBy=ua,Un.xorWith=ca,Un.zip=da,Un.zipObject=function(e,t){return vo(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return vo(e||[],t||[],eo)},Un.zipWith=fa,Un.entries=Bl,Un.entriesIn=Fl,Un.extend=xl,Un.extendWith=wl,ss(Un,Un),Un.add=vs,Un.attempt=Zl,Un.camelCase=$l,Un.capitalize=Hl,Un.ceil=bs,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gl(n))==n?n:0),t!==o&&(t=(t=gl(t))==t?t:0),sr(gl(e),t,n)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||cr(e,t,zl(t))},Un.deburr=Vl,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=ys,Un.endsWith=function(e,t,n){e=bl(e),t=co(t);var r=e.length,i=n=n===o?r:sr(_l(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Ua,Un.escape=function(e){return(e=bl(e))&&Q.test(e)?e.replace(G,an):e},Un.escapeRegExp=function(e){return(e=bl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Un.every=function(e,t,n){var r=Wa(e)?jt:_r;return n&&xi(e,t,n)&&(t=o),r(e,ci(t,3))},Un.find=ga,Un.findIndex=Vi,Un.findKey=function(e,t){return Ut(e,ci(t,3),xr)},Un.findLast=va,Un.findLastIndex=Wi,Un.findLastKey=function(e,t){return Ut(e,ci(t,3),wr)},Un.floor=xs,Un.forEach=ba,Un.forEachRight=ya,Un.forIn=function(e,t){return null==e?e:br(e,ci(t,3),Ll)},Un.forInRight=function(e,t){return null==e?e:yr(e,ci(t,3),Ll)},Un.forOwn=function(e,t){return e&&xr(e,ci(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,ci(t,3))},Un.get=Il,Un.gt=$a,Un.gte=Ha,Un.has=function(e,t){return null!=e&&gi(e,t,Tr)},Un.hasIn=Tl,Un.head=Ki,Un.identity=os,Un.includes=function(e,t,n,r){e=Ka(e)?e:Ul(e),n=n&&!r?_l(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),sl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:_l(n);return o<0&&(o=bn(r+o,0)),Ht(e,t,o)},Un.inRange=function(e,t,n){return t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n){return e>=yn(t,n)&&e=-9007199254740991&&e<=h},Un.isSet=ll,Un.isString=sl,Un.isSymbol=ul,Un.isTypedArray=cl,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return nl(e)&&mi(e)==L},Un.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":Ft.call(e,t)},Un.kebabCase=Wl,Un.last=Qi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=_l(n))<0?bn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Wt,i,!0)},Un.lowerCase=ql,Un.lowerFirst=Kl,Un.lt=dl,Un.lte=fl,Un.max=function(e){return e&&e.length?mr(e,os,Ir):o},Un.maxBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Ir):o},Un.mean=function(e){return qt(e,os)},Un.meanBy=function(e,t){return qt(e,ci(t,2))},Un.min=function(e){return e&&e.length?mr(e,os,Br):o},Un.minBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Br):o},Un.stubArray=ms,Un.stubFalse=gs,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=ks,Un.nth=function(e,t){return e&&e.length?Vr(e,_l(t)):o},Un.noConflict=function(){return _t._===this&&(_t._=Ue),this},Un.noop=us,Un.now=Ia,Un.pad=function(e,t,n){e=bl(e);var r=(t=_l(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(mt(o),n)+e+qo(ht(o),n)},Un.padEnd=function(e,t,n){e=bl(e);var r=(t=_l(t))?hn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return yn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Gr(e,t)},Un.reduce=function(e,t,n){var r=Wa(e)?Pt:Gt,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},Un.reduceRight=function(e,t,n){var r=Wa(e)?Mt:Gt,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},Un.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:_l(t),Jr(bl(e),t)},Un.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++rh)return[];var n=m,r=yn(e,m);t=ci(t),e-=m;for(var o=Qt(r,t);++n=a)return e;var s=n-hn(r);if(s<1)return r;var u=l?ko(l,0,s).join(""):e.slice(0,s);if(i===o)return u+r;if(l&&(s+=u.length-s),al(i)){if(e.slice(s).search(i)){var c,d=u;for(i.global||(i=Te(i.source,bl(_e.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;u=u.slice(0,f===o?s:f)}}else if(e.indexOf(co(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},Un.unescape=function(e){return(e=bl(e))&&J.test(e)?e.replace(Y,gn):e},Un.uniqueId=function(e){var t=++Pe;return bl(e)+t},Un.upperCase=Jl,Un.upperFirst=Ql,Un.each=ba,Un.eachRight=ya,Un.first=Ki,ss(Un,(ws={},xr(Un,(function(e,t){Ae.call(Un.prototype,t)||(ws[t]=e)})),ws),{chain:!1}),Un.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ot(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:bn(_l(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(os)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return jr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Aa(ci(e)))},Wn.prototype.slice=function(e,t){e=_l(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=_l(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof Wn,u=l[0],c=s||Wa(t),d=function(e){var t=i.apply(Un,At([e],l));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,_=s&&!p;if(!a&&c){t=_?t:new Wn(this);var m=e.apply(t,l);return m.__actions__.push({func:ha,args:[d],thisArg:o}),new Vn(m,f)}return h&&_?e.apply(this,l):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ae.call(zn,r)||(zn[r]=[]),zn[r].push({name:t,func:n})}})),zn[$o(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=jo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Fi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Xe&&(Un.prototype[Xe]=function(){return this}),Un}();_t._=vn,(r=function(){return vn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},7418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s