PageSourceSearch

https://www.100procentwest-vlaams.be/build/assets/main-app-DiELD-Kz.js

js 100procentwest-vlaams.be collected 2026-10-09 04:18:38 UTC 1,830,279 bytes, 144 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-BV0J5gm7.js","assets/tailwind.config-BFj-8RyK.js"])))=>i.map(i=>d[i]);
2import{m as mapState,_ as _export_sfc,r as resolveComponent,c as createElementBlock,o as openBlock,a as createBaseVNode,F as Fragment,b as renderList,d as createBlock,e as createCommentVNode,f as createTextVNode,t as toDisplayString,n as normalizeClass,g as createVNode,h as normalizeStyle,w as withModifiers,i as mapActions,j as mapGetters,k as withDirectives,l as withKeys,v as vShow,p as vModelText,q as getDefaultExportFromCjs,s as defineComponent,u as h$3,x as ref,y as inject,z as onMounted,A as nextTick,B as markRaw,C as onBeforeUnmount,D as reactive,E as provide,G as computed,H as watch,I as onUnmounted,J as render$e,K as withCtx,L as axios,P as PoiTransformer,M as isMemoSame,N as vModelSelect,O as hooks,Q as commonjsGlobal,T as Teleport,R as renderSlot,S as commonjsRequire,U as getCurrentScope,V as onScopeDispose,W as toValue$1,X as unref,Y as shallowRef,Z as shallowReadonly,$ as mergeDefaults,a0 as useSlots,a1 as useTemplateRef,a2 as createSlots,a3 as normalizeProps,a4 as guardReactiveProps,a5 as readonly,a6 as toRef,a7 as Transition,a8 as resolveDynamicComponent,a9 as mergeProps,aa as onBeforeUpdate,ab as isProxy,ac as toRaw,ad as resolve
2Config,ae as tailwindConfig,af as createMainApp}from"./tailwind.config-BFj-8RyK.js";function _mergeNamespaces(en,He){for(var tn=0;tn<He.length;tn++){const nn=He[tn];if(typeof nn!="string"&&!Array.isArray(nn)){for(const an in nn)if(an!=="default"&&!(an in en)){const rn=Object.getOwnPropertyDescriptor(nn,an);rn&&Object.defineProperty(en,an,rn.get?rn:{enumerable:!0,get:()=>nn[an]})}}}return Object.freeze(Object.defineProperty(en,Symbol.toStringTag,{value:"Module"}))}const _sfc_main$1h={name:"SecondaryMenu",computed:{...mapState({menu:en=>en.context.site.secondaryMenu})}},_hoisted_1$1g=["aria-label"],_hoisted_2$15={class:"secondary-menu__links"},_hoisted_3$Z=["href"];function _sfc_render$1g(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("nav",{class:"secondary-menu",role:"navigation","aria-label":en.$t("Secondary Menu")},[createBaseVNode("ul",_hoisted_2$15,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.menu.links.filter(sn=>sn.enabled),(sn,dn)=>(openBlock(),createElementBlock("li",{key:sn.id},[createBaseVNode("a",{href:sn.url,class:"secondary-menu__link"},[dn===0?(openBlock(),createBlock(on,{key:0,icon:["fas","shopping-basket"]})):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(sn.title),1)],8,_hoisted_3$Z)]))),128))])],8,_hoisted_1$1g)}const SecondaryMenu=_export_sfc(_sfc_main$1h,[["render",_sfc_render$1g],["__scopeId","data-v-b599ae4a"]]),_sfc_main$1g={props:{name:{type:String,required:!0},url:{type:String,required:!0},type:{type:String,default:"primary"},icon:{type:Array,default:null},iconAfter:{type:Boolean,default:!1},target:{type:String,default:"_self"}}},_hoisted_1$1f=["href","target","title"];function _sfc_render$1f(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("a",{href:tn.url,class:normalizeClass(["button","button--"+tn.type]),target:tn.target,title:tn.name},[tn.icon&&!tn.iconAfter?(openBlock(),createBlock(on,{key:0,icon:tn.icon,class:"button__icon--before"},null,8,["icon"])):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(tn.name)+" ",1),tn.icon&&tn.iconAfter?(openBlock(),createBlock(on,{key:1,icon:tn.icon,class:"button__icon--after"},null,8,["icon"])):createCommentVNode("",!0)],10,_hoisted_1$1f)}const ButtonComponent=_export_sfc(_sfc_main$1g,[["render",_sfc_render$1f],["__scopeId","data-v-533ec2be"]]),_sfc_main$1f={components:{ButtonComponent},computed:{...mapState({intro:en=>en.context.site.newsletterIntro,cta:en=>en.context.site.newsletterCta}),newsletterUrl(){if(this.cta.url){try{const en=new URL(this.cta.url);return this.cta.url}catch{}return this.$store.getters["context/multilingualUrl"](this.cta.url)}}}},_hoisted_1$1e={key:0,class:"newsletter"},_hoisted_2$14={class:"newsletter__heading",role:"heading","aria-level":"2"},_hoisted_3$Y={key:0,class:"newsletter__intro"};function _sfc_render$1e(en,He,tn,nn,an,rn){const on=resolveComponent("button-component");return en.intro||rn.newsletterUrl?(openBlock(),createElementBlock("div",_hoisted_1$1e,[createBaseVNode("div",_hoisted_2$14,toDisplayString(en.$t("Stay in touch")),1),en.intro?(openBlock(),createElementBlock("div",_hoisted_3$Y,toDisplayString(en.intro),1)):createCommentVNode("",!0),rn.newsletterUrl?(openBlock(),createBlock(on,{key:1,name:en.cta.title,url:rn.newsletterUrl,icon:["far","envelope"],type:"white"},null,8,["name","url"])):createCommentVNode("",!0)])):createCommentVNode("",!0)}const Newsletter=_export_sfc(_sfc_main$1f,[["render",_sfc_render$1e],["__scopeId","data-v-61da91fd"]]),_sfc_main$1e={props:{url:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Array,required:!0},bgColor:{type:String,default:"white"}}},_hoisted_1$1d=["href","title"],_hoisted_2$13={class:"icon-wrapper"};function _sfc_render$1d(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("a",{href:tn.url,title:tn.title,class:"social-medium",style:normalizeStyle("--bg-color: var(--"+tn.bgColor+")"),target:"_blank"},[createBaseVNode("div",_hoisted_2$13,[createVNode(on,{icon:tn.icon},null,8,["icon"])])],12,_hoisted_1$1d)}const SocialMedium=_export_sfc(_sfc_main$1e,[["render",_sfc_render$1d],["__scopeId","data-v-e9cfbcf3"]]),_sfc_main$1d={name:"MainMenuExpanded",props:{location:{type:String,required:!0}},data(){return{open:{}}},computed:{...mapState({menu:en=>en.context.site.mainMenu})},created(){this.menu.links.forEach(en=>{this.open[en.id]=!1})},methods:{toggleMenuLink(en,He){en.children.length>0&&(He.preventDefault(),this.open[en.id]=!this.open[en.id])}}},_hoisted_1$1c=["aria-label"],_hoisted_2$12={class:"main-menu-expanded-ul"},_hoisted_3$X=["href","title","aria-expanded","onClick"],_hoisted_4$K=["href","title"],_hoisted_5$G=["href","title"];function _sfc_render$1c(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("nav",{class:normalizeClass(["main-menu-expanded","main-menu-expanded--"+tn.location]),role:"navigation","aria-label":en.$t("Main Menu")},[createBaseVNode("ul",_hoisted_2$12,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.menu.links.filter(sn=>sn.enabled),sn=>(openBlock(),createElementBlock("li",{key:sn.id},[sn.children.filter(dn=>dn.enabled)?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("a",{href:sn.url,class:"main-menu-expanded__heading",title:sn.title,"aria-expanded":an.open[sn.id],onClick:dn=>rn.toggleMenuLink(sn,dn)},[createTextVNode(toDisplayString(sn.title)+" ",1),sn.children.filter(dn=>dn.enabled).length>0&&an.open[sn.id]?(openBlock(),createBlock(on,{key:0,icon:["fas","chevron-up"]})):createCommentVNode("",!0),sn.children.filter(dn=>dn.enabled).length>0&&!an.open[sn.id]?(openBlock(),createBlock(on,{key:1,icon:["fas","chevron-down"]})):createCommentVNode("",!0)],8,_hoisted_3$X),He[0]||(He[0]=createBaseVNode("div",{class:"main-menu-expanded__divider","aria-hidden":"true"},null,-1)),createBaseVNode("ul",{class:normalizeClass(["main-menu-expanded__links",{"main-menu-expanded__links--open":an.open[sn.id]}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(sn.children.filter(dn=>dn.enabled),dn=>(openBlock(),createElementBlock("li",{key:dn.id},[createBaseVNode("a",{href:dn.url,title:dn.title,class:"main-menu-expanded__link"},toDisplayString(dn.title),9,_hoisted_4$K)]))),128))],2)],64)):createCommentVNode("",!0),sn.children.filter(dn=>dn.enabled)?createCommentVNode("",!0):(openBlock(),createElementBlock("a",{key:1,href:sn.url,class:"main-menu-expanded__heading",title:sn.title},toDisplayString(sn.title)+" /> ",9,_hoisted_5$G))]))),128))])],10,_hoisted_1$1c)}const MainMenuExpanded=_export_sfc(_sfc_main$1d,[["render",_sfc_render$1c],["__scopeId","data-v-20f56456"]]),_sfc_main$1c={components:{MainMenuExpanded,SocialMedium,Newsletter,SecondaryMenu},computed:{...mapState("context",["site"])},data:()=>({socials:{facebook:{name:"Facebook",iconClasses:["facebook-f"]},instagram:{name:"Instagram",iconClasses:["instagram"]},youtube:{name:"YouTube",iconClasses:["youtube"]},linkedin:{name:"LinkedIn",iconClasses:["linkedin-in"]},tiktok:{name:"TikTok",iconClasses:["tiktok"]}}}),methods:{getSocialUrl:(en,He)=>{switch(He){case"facebook":return en.facebookUrl;case"instagram":return en.instagramUrl;case"youtube":return en.youtubeUrl;case"linkedin":return en.linkedinUrl;case"tiktok":return en.tiktokUrl;default:return null}}}},_hoisted_1$1b={key:0,class:"doormat"},_hoisted_2$11={class:"doormat__content"},_hoisted_3$W={class:"doormat__menus"},_hoisted_4$J={class:"doormat__secondary-menu"},_hoisted_5$F={class:"doormat__social"},_hoisted_6$B={class:"doormat__social__media"};function _sfc_render$1b(en,He,tn,nn,an,rn){const on=resolveComponent("main-menu-expanded"),sn=resolveComponent("secondary-menu"),dn=resolveComponent("newsletter"),hn=resolveComponent("social-medium");return en.site?(openBlock(),createElementBlock("div",_hoisted_1$1b,[createBaseVNode("div",_hoisted_2$11,[createBaseVNode("div",_hoisted_3$W,[createVNode(on,{location:"doormat"}),createBaseVNode("div",_hoisted_4$J,[createVNode(sn)])]),createBaseVNode("div",_hoisted_5$F,[createVNode(dn,{class:"doormat__newsletter"}),createBaseVNode("div",_hoisted_6$B,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.socials,(mn,gn)=>(openBlock(),createElementBlock(Fragment,null,[rn.getSocialUrl(en.site,gn)?(openBlock(),createBlock(hn,{key:gn,url:rn.getSocialUrl(en.site,gn),title:en.$t("Visit {site} on {medium}",{site:en.site.name,medium:mn.name}),icon:["fab"].concat(mn.iconClasses),"bg-color":"primary"},null,8,["url","title","icon"])):createCommentVNode("",!0)],64))),256))])])])])):createCommentVNode("",!0)}const Doormat=_export_sfc(_sfc_main$1c,[["render",_sfc_render$1b],["__scopeId","data-v-5952fbe3"]]),_sfc_main$1b={name:"LanguageSwitcher",data(){return{open:!1,currentPage:document.location.href}},computed:{...mapState("context",["site","locale","mainContent"])}
2,methods:{translatedPathIsFallbackLink(en){const He=new URL(this.currentPage);let tn=null;if(en.startsWith("//")?tn=new URL(en.replace("//","https://")):en.startsWith("/")?tn=new URL(en,document.location.origin):en.startsWith("http")&&(tn=new URL(en)),!(tn instanceof URL))return!1;if(this.site.multilingual&&!this.site.multiDomain){const nn=/^\/\w{2}$/;return nn.test(tn.pathname)&&!nn.test(He.pathname)}return tn.pathname==="/"&&He.pathname!=="/"}}},_hoisted_1$1a={key:0,class:"language-switcher"},_hoisted_2$10=["href","aria-expanded","title","hreflang"],_hoisted_3$V=["href","hreflang","rel"];function _sfc_render$1a(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return en.mainContent?(openBlock(),createElementBlock("div",_hoisted_1$1a,[createBaseVNode("a",{rel:"alternate",class:"language-switcher__current","aria-haspopup":"true",href:an.currentPage,"aria-expanded":an.open,title:en.$t("Switch language"),hreflang:en.locale,onClick:He[0]||(He[0]=withModifiers(sn=>an.open=!an.open,["prevent"]))},[createTextVNode(toDisplayString(en.locale)+" ",1),an.open?(openBlock(),createBlock(on,{key:0,icon:["fas","chevron-up"]})):createCommentVNode("",!0),an.open?createCommentVNode("",!0):(openBlock(),createBlock(on,{key:1,icon:["fas","chevron-down"]}))],8,_hoisted_2$10),createBaseVNode("ul",{class:normalizeClass(["language-switcher__links",{"language-switcher__links--open":an.open}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.mainContent.translations,(sn,dn)=>(openBlock(),createElementBlock("li",{key:dn},[createBaseVNode("a",{class:"language-switcher__link",href:sn,hreflang:rn.translatedPathIsFallbackLink(sn)?null:dn,rel:rn.translatedPathIsFallbackLink(sn)?null:"alternate"},toDisplayString(dn),9,_hoisted_3$V)]))),128))],2)])):createCommentVNode("",!0)}const LanguageSwitcher=_export_sfc(_sfc_main$1b,[["render",_sfc_render$1a],["__scopeId","data-v-608e41ce"]]),_sfc_main$1a={name:"MainMenu",computed:{...mapState({menu:en=>en.context.site.mainMenu}),...mapGetters("context",["activeMenuLinks","megaMenu","megaMenuId"])},methods:{...mapActions("context",["setMegaMenuId"]),clickMenuLink(en,He){en.megaMenu&&(He.preventDefault(),this.toggleMenuLink(en))},toggleMenuLink(en){en.id===this.megaMenuId?this.closeMegaMenu():this.openMegaMenu(en)},openMegaMenu(en){this.setMegaMenuId(en.id),document.addEventListener("click",this.clickOutside)},closeMegaMenu(){this.setMegaMenuId(),document.removeEventListener("click",this.clickOutside)},clickOutside(en){en.defaultPrevented||!this.$refs.megaMenu?.length||this.$refs.megaMenu[0]!==en.target&&!this.$refs.megaMenu[0].contains(en.target)&&this.closeMegaMenu()}},updated(){if(!this.$refs.megaMenu?.length)return;Array.from(this.$refs.megaMenu[0].querySelectorAll(".paragraph--card .field--name-title")).forEach(He=>{He.hasAttribute("data-original-font-size")?He.style.fontSize=He.dataset.originalFontSize:He.dataset.originalFontSize=getComputedStyle(He).fontSize;let tn=parseInt(getComputedStyle(He).fontSize,10);for(;tn>8&&He.scrollWidth>He.clientWidth;)tn-=1,He.style.fontSize=tn+"px"})}},_hoisted_1$19=["aria-label"],_hoisted_2$$={class:"main-menu__links"},_hoisted_3$U=["href","title","onClick"],_hoisted_4$I=["innerHTML"],_hoisted_5$E=["title"];function _sfc_render$19(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("nav",{class:"main-menu",role:"navigation","aria-label":en.$t("Main menu")},[createBaseVNode("ul",_hoisted_2$$,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.menu.links.filter(sn=>sn.enabled),sn=>(openBlock(),createElementBlock("li",{key:sn.id},[createBaseVNode("a",{href:sn.url,title:sn.title,class:normalizeClass(["main-menu__link",{"main-menu__link--active":en.activeMenuLinks.find(dn=>dn.id===sn.id)}]),onClick:dn=>rn.clickMenuLink(sn,dn)},[createTextVNode(toDisplayString(sn.title)+" ",1),He[1]||(He[1]=createBaseVNode("div",{class:"main-menu__link-line","aria-hidden":"true"},null,-1))],10,_hoisted_3$U),en.megaMenu&&en.megaMenuId===sn.id?(openBlock(),createElementBlock("div",{key:0,ref_for:!0,ref:"megaMenu",class:"main-menu__mega-menu"},[createBaseVNode("div",{class:"main-menu__mega-menu-content",innerHTML:en.megaMenu},null,8,_hoisted_4$I),createBaseVNode("a",{href:"#",class:"main-menu__mega-menu-close",title:en.$t("Close menu"),onClick:He[0]||(He[0]=withModifiers((...dn)=>rn.closeMegaMenu&&rn.closeMegaMenu(...dn),["prevent"]))},[createVNode(on,{icon:["fas","times"]})],8,_hoisted_5$E)],512)):createCommentVNode("",!0)]))),128))])],8,_hoisted_1$19)}const MainMenu=_export_sfc(_sfc_main$1a,[["render",_sfc_render$19],["__scopeId","data-v-ad19f7bd"]]),_sfc_main$19={},_hoisted_1$18={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px","aria-hidden":"true"};function _sfc_render$18(en,He){return openBlock(),createElementBlock("svg",_hoisted_1$18,[...He[0]||(He[0]=[createBaseVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),createBaseVNode("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",fill:"
2currentColor"},null,-1)])])}const IconSearch=_export_sfc(_sfc_main$19,[["render",_sfc_render$18]]),_sfc_main$18={},_hoisted_1$17={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px","aria-hidden":"true"};function _sfc_render$17(en,He){return openBlock(),createElementBlock("svg",_hoisted_1$17,[...He[0]||(He[0]=[createBaseVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),createBaseVNode("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",fill:"currentColor"},null,-1)])])}const IconFavorites=_export_sfc(_sfc_main$18,[["render",_sfc_render$17]]),_sfc_main$17={components:{IconFavorites},computed:{...mapState("favorites",["favoritesPagePath","favorites"])},methods:{...mapActions("favorites",["fetchFavorites"])},mounted(){this.fetchFavorites()}},_hoisted_1$16=["href","title"],_hoisted_2$_={key:0,class:"favorites-counter__count"};function _sfc_render$16(en,He,tn,nn,an,rn){const on=resolveComponent("icon-favorites");return en.favoritesPagePath?(openBlock(),createElementBlock("a",{key:0,href:en.favoritesPagePath,title:en.$t("Favorites"),class:"favorites-counter"},[createVNode(on),en.favorites.length>0?(openBlock(),createElementBlock("span",_hoisted_2$_,toDisplayString(en.favorites.length),1)):createCommentVNode("",!0)],8,_hoisted_1$16)):createCommentVNode("",!0)}const FavoritesCounter=_export_sfc(_sfc_main$17,[["render",_sfc_render$16],["__scopeId","data-v-534d41ca"]]),_sfc_main$16={name:"HeaderBanner",computed:{...mapState("context",["site","locale"])}},_hoisted_1$15=["innerHTML"];function _sfc_render$15(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",{class:"header-banner",innerHTML:en.site.bannerText},null,8,_hoisted_1$15)}const HeaderBanner=_export_sfc(_sfc_main$16,[["render",_sfc_render$15],["__scopeId","data-v-8a8da09a"]]),_sfc_main$15={name:"HeaderComponent",components:{FavoritesCounter,MainMenuExpanded,IconSearch,MainMenu,LanguageSwitcher,SecondaryMenu,HeaderBanner},data(){return{mobileMenuOpen:!1,searching:!1,query:""}},computed:{...mapState("context",["site","locale"]),searchUrl(){return this.site.searchPagePath+"?query="+this.query},homepageUrl(){return this.$store.getters["context/multilingualUrl"]("/")}},methods:{openSearch(){this.searching=!0,this.$nextTick(()=>{this.$refs.headerSearchQuery.focus()})},submitSearch(){window.location.href=this.searchUrl}}},_hoisted_1$14={key:0,"data-nosnippet":""},_hoisted_2$Z={class:"header"},_hoisted_3$T={class:"header__logo"},_hoisted_4$H=["href","title"],_hoisted_5$D=["src","alt"],_hoisted_6$A={class:"header__menus"},_hoisted_7$z={class:"header__top"},_hoisted_8$u={class:"header__baseline"},_hoisted_9$s={class:"header__main"},_hoisted_10$q={class:"header__icons"},_hoisted_11$l=["title"],_hoisted_12$i={class:"header__search-form"},_hoisted_13$e=["href","title"],_hoisted_14$c=["aria-expanded"],_hoisted_15$b={class:"mobile-navigation"},_hoisted_16$8={class:"mobile-navigation__secondary-menu"};function _sfc_render$14(en,He,tn,nn,an,rn){const on=resolveComponent("header-banner"),sn=resolveComponent("secondary-menu"),dn=resolveComponent("main-menu"),hn=resolveComponent("favorites-counter"),mn=resolveComponent("icon-search"),gn=resolveComponent("language-switcher"),yn=resolveComponent("font-awesome-icon"),fn=resolveComponent("main-menu-expanded");return openBlock(),createElementBlock(Fragment,null,[en.site?(openBlock(),createElementBlock("header",_hoisted_1$14,[en.site.bannerEnabled?(openBlock(),createBlock(on,{key:0})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$Z,[createBaseVNode("div",_hoisted_3$T,[createBaseVNode("a",{href:rn.homepageUrl,title:en.$t("To the homepage")},[en.site.logo?(openBlock(),createElementBlock("img",{key:0,src:en.site.logo.url,alt:en.site.logo.alt},null,8,_hoisted_5$D)):createCommentVNode("",!0)],8,_hoisted_4$H)]),createBaseVNode("div",_hoisted_6$A,[createBaseVNode("div",_hoisted_7$z,[createBaseVNode("div",_hoisted_8$u,toDisplayString(en.site.baseline),1),createVNode(sn)]),createBaseVNode("div",_hoisted_9$s,[createVNode(dn),createBaseVNode("div",_hoisted_10$q,[createVNode(hn),en.site.searchPagePath?(openBlock(),createElementBlock("a",{key:0,href:"#",class:"header__search",title:en.$t("Search"),onMousedown:He[0]||(He[0]=withModifiers((...bn)=>rn.openSearch&&rn.openSearch(...bn),["prevent"])),onKeydown:He[1]||(He[1]=withKeys(withModifiers(bn=>an.searching=!1,["prevent"]),["enter"])),onKeyup:[He[2]||(He[2]=withKeys(withModifiers((...bn)=>rn.openSearch&&rn.openSearch(...bn),["prevent"]),["enter"])),He[3]||(He[3]=withKeys(bn=>an.searching=!1,["esc"]))]},[createVNode(mn)],40,_hoisted_11$l)):createCommentVNode("",!0),withDirectives(createBaseVNode("div",{class:"header__search-dialog",role:"dialog","aria-modal":"true",onClick:He[7]||
2(He[7]=withModifiers(bn=>an.searching=!1,["self"])),onKeyup:He[8]||(He[8]=withKeys(bn=>an.searching=!1,["esc"]))},[createBaseVNode("div",_hoisted_12$i,[withDirectives(createBaseVNode("input",{id:"header__search-query",ref:"headerSearchQuery","onUpdate:modelValue":He[4]||(He[4]=bn=>an.query=bn),type:"text",class:"header__search-query",onKeyup:He[5]||(He[5]=withKeys((...bn)=>rn.submitSearch&&rn.submitSearch(...bn),["enter"]))},null,544),[[vModelText,an.query]]),createBaseVNode("a",{class:"header__search-button",href:rn.searchUrl,title:en.$t("Search"),onClick:He[6]||(He[6]=withModifiers((...bn)=>rn.submitSearch&&rn.submitSearch(...bn),["prevent"]))},[createVNode(mn)],8,_hoisted_13$e)])],544),[[vShow,an.searching]])]),en.$store.getters["context/showLanguageSwitcher"]?(openBlock(),createBlock(gn,{key:0})):createCommentVNode("",!0),createBaseVNode("a",{href:"#",class:normalizeClass(["header__mobile-menu-toggle",{"header__mobile-menu-toggle--open":an.mobileMenuOpen}]),"aria-haspopup":"true","aria-expanded":an.mobileMenuOpen,onClick:He[9]||(He[9]=withModifiers(bn=>an.mobileMenuOpen=!an.mobileMenuOpen,["prevent"]))},[an.mobileMenuOpen?createCommentVNode("",!0):(openBlock(),createBlock(yn,{key:0,icon:["fas","bars"]})),an.mobileMenuOpen?(openBlock(),createBlock(yn,{key:1,icon:["fas","times"]})):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(en.$t("Menu")),1)],10,_hoisted_14$c)])])])])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["mobile-navigation-wrapper",{"mobile-navigation-wrapper--open":an.mobileMenuOpen}]),"data-nosnippet":""},[createBaseVNode("div",_hoisted_15$b,[createVNode(fn,{location:"header"}),createBaseVNode("div",_hoisted_16$8,[createVNode(sn)])])],2)],64)}const HeaderComponent=_export_sfc(_sfc_main$15,[["render",_sfc_render$14],["__scopeId","data-v-2ab3b79b"]]),_sfc_main$14={name:"FooterMenu",data(){return{showCookieLink:!1}},created(){window.googleTagManagerId&&(this.showCookieLink=!0)},computed:{...mapState("context",["showCookieBanner"]),...mapState({menu:en=>en.context.site.footerMenu})},methods:{...mapActions("context",["setShowCookieBanner"])}},_hoisted_1$13=["aria-label"],_hoisted_2$Y=["href","title"];function _sfc_render$13(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("nav",{class:"footer-menu",role:"navigation","aria-label":en.$t("Footer Menu")},[createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.menu.links.filter(on=>on.enabled),on=>(openBlock(),createElementBlock("li",{key:on.id},[createBaseVNode("a",{href:on.url,title:on.title},toDisplayString(on.title),9,_hoisted_2$Y)]))),128)),createBaseVNode("li",null,[an.showCookieLink?(openBlock(),createElementBlock("a",{key:0,href:"#",onClick:He[0]||(He[0]=withModifiers(on=>en.setShowCookieBanner(!0),["prevent"]))},toDisplayString(en.$t("Manage cookies")),1)):createCommentVNode("",!0)])])],8,_hoisted_1$13)}const FooterMenu=_export_sfc(_sfc_main$14,[["render",_sfc_render$13],["__scopeId","data-v-a24d49bd"]]),_sfc_main$13={components:{FooterMenu},data(){return{year:new Date().getFullYear()}}},_hoisted_1$12={class:"footer"},_hoisted_2$X={class:"footer__copyright"};function _sfc_render$12(en,He,tn,nn,an,rn){const on=resolveComponent("footer-menu");return openBlock(),createElementBlock("div",_hoisted_1$12,[createBaseVNode("div",_hoisted_2$X,"© "+toDisplayString(an.year)+" Westtoer",1),createVNode(on,{class:"footer__menu"})])}const FooterComponent=_export_sfc(_sfc_main$13,[["render",_sfc_render$12],["__scopeId","data-v-8746b549"]]),_sfc_main$12={props:{fallback:{type:Object,required:!0},md:{type:Object,required:!1,default:null},xl:{type:Object,required:!1,default:null},"2xl":{type:Object,required:!1,default:null},alt:{type:String,default:""}},computed:{...mapState("context",["tailwindConfig"])}},_hoisted_1$11=["srcset","media","width","height"],_hoisted_2$W=["srcset","media","width","height"],_hoisted_3$S=["srcset","media","width","height"],_hoisted_4$G=["src","alt","width","height"];function _sfc_render$11(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("picture",null,[this["2xl"]?(openBlock(),createElementBlock("source",{key:0,srcset:this["2xl"].url,media:"(min-width: "+en.tailwindConfig.theme.screens["2xl"]+")",width:this["2xl"].width,height:this["2xl"].height},null,8,_hoisted_1$11)):createCommentVNode("",!0),tn.xl?(openBlock(),createElementBlock("source",{key:1,srcset:tn.xl.url,media:"(min-width: "+en.tailwindConfig.theme.screens.xl+")",width:tn.xl.width,height:tn.xl.height},null,8,_hoisted_2$W)):createCommentVNode("",!0),tn.md?(openBlock(),createElementBlock("source",{key:2,srcset:tn.md.url,media:"(min-width: "+en.tailwindConfig.theme.screens.md+")",width:tn.md.width,height:tn.md.height},null,8,_hoisted_3$S)):createCommentVNode("",!0),createBaseVNode("img",{src:tn.fallback.url,alt:tn.alt,width:tn.fallback.width,height:tn.fallback.height},null,8,_hoisted_4$G)])}const ResponsiveImage=_export_sfc(_sfc_main$12,[["render",_sfc_render$11]]),_sfc_main$11={name:"CampaignBadge",computed:{...mapState("context",["mainContent"])}},_hoisted_1$10=["href","title"],_hoisted_2$V=["src","alt","width","height"];function _sfc_render$10(en,He,tn,nn,an,rn){return en.mainContent.campaignImage.imageStyleUris&&en.mainContent.campaignImage.imageStyleUris.campaign_badge?(openBlock(),createElementBlock("div",{key:0,class:"campaign-badge",style:normalizeStyle("--campaign-color: "+en.mainContent.campaignColor)},[He[0]||(He[0]=createBaseVNode("span",{"aria-hidden":"true",class:"campaign-badge__str
2ipe campaign-badge__string--before"},null,-1)),createBaseVNode("a",{href:en.mainContent.campaignUrl,title:en.mainContent.campaignName,class:"campaign-badge__link"},[createBaseVNode("img",{src:en.mainContent.campaignImage.imageStyleUris.campaign_badge.url,alt:en.mainContent.campaignName,width:en.mainContent.campaignImage.imageStyleUris.campaign_badge.width,height:en.mainContent.campaignImage.imageStyleUris.campaign_badge.height},null,8,_hoisted_2$V)],8,_hoisted_1$10),He[1]||(He[1]=createBaseVNode("span",{"aria-hidden":"true",class:"campaign-badge__stripe campaign-badge__string--after"},null,-1))],4)):createCommentVNode("",!0)}const CampaignBadge=_export_sfc(_sfc_main$11,[["render",_sfc_render$10],["__scopeId","data-v-0893592a"]]),_sfc_main$10={props:{contentId:{required:!0,type:String},type:{required:!0,type:String},highlight:{type:Boolean,default:!1}},computed:{...mapState("context",["locale"]),...mapState("favorites",["favoritesPagePath"]),isFavorite(){return this.$store.getters["favorites/isFavorite"](this.contentId)},tooltip(){return this.isFavorite?this.$t("Remove from favorites"):this.$t("Add to favorites")}},methods:{...mapActions("favorites",["toggleFavorite"])}},_hoisted_1$$=["title"];function _sfc_render$$(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return en.favoritesPagePath?(openBlock(),createElementBlock("a",{key:0,href:"#",title:rn.tooltip,class:normalizeClass([{"favorites-toggle--active":rn.isFavorite,"favorites-toggle--highlight":tn.highlight},"favorites-toggle"]),onClick:He[0]||(He[0]=withModifiers(sn=>en.toggleFavorite({contentId:tn.contentId,type:tn.type,langcode:en.locale}),["prevent"]))},[createVNode(on,{icon:["fas","heart"],class:"favorites-toggle__icon-solid"}),createVNode(on,{icon:["far","heart"],class:"favorites-toggle__icon-regular"})],10,_hoisted_1$$)):createCommentVNode("",!0)}const FavoritesToggle=_export_sfc(_sfc_main$10,[["render",_sfc_render$$],["__scopeId","data-v-90ca95df"]]),_sfc_main$$={props:{title:{required:!0,type:String},contentType:{required:!0,type:String},image:{required:!0,type:String},alias:{required:!0,type:String},langcode:{required:!0,type:String},productType:{required:!1,type:String,default:void 0},localities:{required:!1,type:Array,default:void 0}}},_hoisted_1$_=["href","title"],_hoisted_2$U={class:"page-teaser__image-wrapper"},_hoisted_3$R=["src"],_hoisted_4$F={class:"page-teaser__content"},_hoisted_5$C={class:"page-teaser__title"},_hoisted_6$z={key:0,class:"page-teaser__info"},_hoisted_7$y={key:1,class:"page-teaser__info"};function _sfc_render$_(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("a",{href:en.$store.getters["context/multilingualUrl"](tn.alias),class:"page-teaser",title:tn.title},[createBaseVNode("div",_hoisted_2$U,[createBaseVNode("img",{src:tn.image,alt:"",class:"page-teaser__image"},null,8,_hoisted_3$R)]),createBaseVNode("div",_hoisted_4$F,[createBaseVNode("h3",_hoisted_5$C,toDisplayString(tn.title),1),tn.contentType==="route"?(openBlock(),createElementBlock("div",_hoisted_6$z,toDisplayString(en.$t("{type} from {localities}",{type:tn.productType,localities:tn.localities.filter((on,sn,dn)=>dn.indexOf(on)===sn).join(", ")})),1)):tn.productType&&tn.localities?(openBlock(),createElementBlock("div",_hoisted_7$y,toDisplayString(en.$t("{type} in {locality}",{type:tn.productType,locality:tn.localities.join(", ")})),1)):createCommentVNode("",!0),He[0]||(He[0]=createBaseVNode("div",{class:"page-teaser__line","aria-hidden":"true"},null,-1))])],8,_hoisted_1$_)}
2const PageTeaser=_export_sfc(_sfc_main$$,[["render",_sfc_render$_],["__scopeId","data-v-c36f2ef8"]]),_sfc_main$_={components:{PageTeaser},computed:{...mapState("context",["locale","mainContent"]),...mapState("suggestions",["inspiration"])},mounted(){this.mainContent&&this.fetchInspiration({nid:this.mainContent.raw.data[0].attributes.drupal_internal__nid,langcode:this.locale})},methods:{...mapActions("suggestions",["fetchInspiration"])}},_hoisted_1$Z={class:"inspiration"},_hoisted_2$T={class:"inspiration__title"},_hoisted_3$Q={class:"inspiration__list"};function _sfc_render$Z(en,He,tn,nn,an,rn){const on=resolveComponent("page-teaser");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1$Z,[createBaseVNode("h3",_hoisted_2$T,toDisplayString(en.$t("More inspiration")),1),createBaseVNode("div",_hoisted_3$Q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.inspiration,(sn,dn)=>(openBlock(),createBlock(on,{key:dn,title:sn.title,image:sn.image,alias:sn.alias,langcode:sn.language,"content-type":sn.contentType},null,8,["title","image","alias","langcode","content-type"]))),128))])],512)),[[vShow,en.inspiration.length>0]])}const Inspiration=_export_sfc(_sfc_main$_,[["render",_sfc_render$Z],["__scopeId","data-v-88beac30"]]);var leafletSrc$2={exports:{}};var leafletSrc$1=leafletSrc$2.exports,hasRequiredLeafletSrc;function requireLeafletSrc(){return hasRequiredLeafletSrc||(hasRequiredLeafletSrc=1,(function(en,He){(function(tn,nn){nn(He)})(leafletSrc$1,(function(tn){var nn="1.9.4";function an(un){var _n,kn,$n,ai;for(kn=1,$n=arguments.length;kn<$n;kn++){ai=arguments[kn];for(_n in ai)un[_n]=ai[_n]}return un}var rn=Object.create||(function(){function un(){}return function(_n){return un.prototype=_n,new un}})();function on(un,_n){var kn=Array.prototype.slice;if(un.bind)return un.bind.apply(un,kn.call(arguments,1));var $n=kn.call(arguments,2);return function(){return un.apply(_n,$n.length?$n.concat(kn.call(arguments)):arguments)}}var sn=0;function dn(un){return"_leaflet_id"in un||(un._leaflet_id=++sn),un._leaflet_id}function hn(un,_n,kn){var $n,ai,Mi,Gi;return Gi=function(){$n=!1,ai&&(Mi.apply(kn,ai),ai=!1)},Mi=function(){$n?ai=arguments:(un.apply(kn,arguments),setTimeout(Gi,_n),$n=!0)},Mi}function mn(un,_n,kn){var $n=_n[1],ai=_n[0],Mi=$n-ai;return un===$n&&kn?un:((un-ai)%Mi+Mi)%Mi+ai}function gn(){return!1}function yn(un,_n){if(_n===!1)return un;var kn=Math.pow(10,_n===void 0?6:_n);return Math.round(un*kn)/kn}function fn(un){return un.trim?un.trim():un.replace(/^\s+|\s+$/g,"")}function bn(un){return fn(un).split(/\s+/)}function Mn(un,_n){Object.prototype.hasOwnProperty.call(un,"options")||(un.options=un.options?rn(un.options):{});for(var kn in _n)un.options[kn]=_n[kn];return un.options}function Tn(un,_n,kn){var $n=[];for(var ai in un)$n.push(encodeURIComponent(kn?ai.toUpperCase():ai)+"="+encodeURIComponent(un[ai]));return(!_n||_n.indexOf("?")===-1?"?":"&")+$n.join("&")}var xn=/\{ *([\w_ -]+) *\}/g;function En(un,_n){return un.replace(xn,function(kn,$n){var ai=_n[$n];if(ai===void 0)throw new Error("No value provided for variable "+kn);return typeof ai=="function"&&(ai=ai(_n)),ai})}var Rn=Array.isArray||function(un){return Object.prototype.toString.call(un)==="[object Array]"};function ni(un,_n){for(var kn=0;kn<un.length;kn++)if(un[kn]===_n)return kn;return-1}var mi="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function bi(un){return window["webkit"+un]||window["moz"+un]||window["ms"+un]}var _i=0;function oi(un){var _n=+new Date,kn=Math.max(0,16-(_n-_i));return _i=_n+kn,window.setTimeout(un,kn)}var si=window.requestAnimationFrame||bi("RequestAnimationFrame")||oi,fi=window.cancelAnimationFrame||bi("CancelAnimationFrame")||bi("CancelRequestAnimationFrame")||function(un){window.clearTimeout(un)};function ei(un,_n,kn){if(kn&&si===oi)un.call(_n);else return si.call(window,on(un,_n))}function ci(un){un&&fi.call(window,un)}var di={__proto__:null,extend:an,create:rn,bind:on,get lastId(){return sn},stamp:dn,throttle:hn,wrapNum:mn,falseFn:gn,formatNum:yn,trim:fn,splitWords:bn,setOptions:Mn,getParamString:Tn,template:En,isArray:Rn,indexOf:ni,emptyImageUrl:mi,requestFn:si,cancelFn:fi,requestAnimFrame:ei,cancelAnimFrame:ci};function wi(){}wi.extend=function(un){var _n=function(){Mn(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},kn=_n.__super__=this.prototype,$n=rn(kn);$n.constructor=_n,_n.prototype=$n;for(var ai in this)Object.prototype.hasOwnProperty.call(this,ai)&&ai!=="prototype"&&ai!=="__super__"&&(_n[ai]=this[ai]);return un.statics&&an(_n,un.statics),un.includes&&(Ci(un.includes),an.apply(null,[$n].concat(un.includes))),an($n,un),delete $n.statics,delete $n.includes,$n.options&&($n.options=kn.options?rn(kn.options):{},an($n.options,un.options)),$n._initHooks=[],$n.callInitHooks=function(){if(!this._initHooksCalled){kn.callInitHooks&&kn.callInitHooks.call(this),this._initHooksCalled=!0;for(var Mi=0,Gi=$n._initHooks.length;Mi<Gi;
2Mi++)$n._initHooks[Mi].call(this)}},_n},wi.include=function(un){var _n=this.prototype.options;return an(this.prototype,un),un.options&&(this.prototype.options=_n,this.mergeOptions(un.options)),this},wi.mergeOptions=function(un){return an(this.prototype.options,un),this},wi.addInitHook=function(un){var _n=Array.prototype.slice.call(arguments,1),kn=typeof un=="function"?un:function(){this[un].apply(this,_n)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(kn),this};function Ci(un){if(!(typeof L>"u"||!L||!L.Mixin)){un=Rn(un)?un:[un];for(var _n=0;_n<un.length;_n++)un[_n]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ji={on:function(un,_n,kn){if(typeof un=="object")for(var $n in un)this._on($n,un[$n],_n);else{un=bn(un);for(var ai=0,Mi=un.length;ai<Mi;ai++)this._on(un[ai],_n,kn)}return this},off:function(un,_n,kn){if(!arguments.length)delete this._events;else if(typeof un=="object")for(var $n in un)this._off($n,un[$n],_n);else{un=bn(un);for(var ai=arguments.length===1,Mi=0,Gi=un.length;Mi<Gi;Mi++)ai?this._off(un[Mi]):this._off(un[Mi],_n,kn)}return this},_on:function(un,_n,kn,$n){if(typeof _n!="function"){console.warn("wrong listener type: "+typeof _n);return}if(this._listens(un,_n,kn)===!1){kn===this&&(kn=void 0);var ai={fn:_n,ctx:kn};$n&&(ai.once=!0),this._events=this._events||{},this._events[un]=this._events[un]||[],this._events[un].push(ai)}},_off:function(un,_n,kn){var $n,ai,Mi;if(this._events&&($n=this._events[un],!!$n)){if(arguments.length===1){if(this._firingCount)for(ai=0,Mi=$n.length;ai<Mi;ai++)$n[ai].fn=gn;delete this._events[un];return}if(typeof _n!="function"){console.warn("wrong listener type: "+typeof _n);return}var Gi=this._listens(un,_n,kn);if(Gi!==!1){var ma=$n[Gi];this._firingCount&&(ma.fn=gn,this._events[un]=$n=$n.slice()),$n.splice(Gi,1)}}},fire:function(un,_n,kn){if(!this.listens(un,kn))return this;var $n=an({},_n,{type:un,target:this,sourceTarget:_n&&_n.sourceTarget||this});if(this._events){var ai=this._events[un];if(ai){this._firingCount=this._firingCount+1||1;for(var Mi=0,Gi=ai.length;Mi<Gi;Mi++){var ma=ai[Mi],Sa=ma.fn;ma.once&&this.off(un,Sa,ma.ctx),Sa.call(ma.ctx||this,$n)}this._firingCount--}}return kn&&this._propagateEvent($n),this},listens:function(un,_n,kn,$n){typeof un!="string"&&console.warn('"string" type argument expected');var ai=_n;typeof _n!="function"&&($n=!!_n,ai=void 0,kn=void 0);var Mi=this._events&&this._events[un];if(Mi&&Mi.length&&this._listens(un,ai,kn)!==!1)return!0;if($n){for(var Gi in this._eventParents)if(this._eventParents[Gi].listens(un,_n,kn,$n))return!0}return!1},_listens:function(un,_n,kn){if(!this._events)return!1;var $n=this._events[un]||[];if(!_n)return!!$n.length;kn===this&&(kn=void 0);for(var ai=0,Mi=$n.length;ai<Mi;ai++)if($n[ai].fn===_n&&$n[ai].ctx===kn)return ai;return!1},once:function(un,_n,kn){if(typeof un=="object")for(var $n in un)this._on($n,un[$n],_n,!0);else{un=bn(un);for(var ai=0,Mi=un.length;ai<Mi;ai++)this._on(un[ai],_n,kn,!0)}return this},addEventParent:function(un){return this._eventParents=this._eventParents||{},this._eventParents[dn(un)]=un,this},removeEventParent:function(un){return this._eventParents&&delete this._eventParents[dn(un)],this},_propagateEvent:function(un){for(var _n in this._eventParents)this._eventParents[_n].fire(un.type,an({layer:un.target,propagatedFrom:un.target},un),!0)}};ji.addEventListener=ji.on,ji.removeEventListener=ji.clearAllEventListeners=ji.off,ji.addOneTimeEventListener=ji.once,ji.fireEvent=ji.fire,ji.hasEventListeners=ji.listens;var Yi=wi.extend(ji);function Pi(un,_n,kn){this.x=kn?Math.round(un):un,this.y=kn?Math.round(_n):_n}var Fi=Math.trunc||function(un){return un>0?Math.floor(un):Math.ceil(un)};Pi.prototype={clone:function(){return new Pi(this.x,this.y)},add:function(un){return this.clone()._add($i(un))},_add:function(un){return this.x+=un.x,this.y+=un.y,this},subtract:function(un){return this.clone()._subtract($i(un))},_subtract:function(un){return this.x-=un.x,this.y-=un.y,this},divideBy:function(un){return this.clone()._divideBy(un)},_divideBy:function(un){return this.x/=un,this.y/=un,this},multiplyBy:function(un){return this.clone()._multiplyBy(un)},_multiplyBy:function(un){return this.x*=un,this.y*=un,this},scaleBy:function(un){return new Pi(this.x*un.x,this.y*un.y)},unscaleBy:function(un){return new Pi(this.x/un.x,this.y/un.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Fi(this.x),this.y=Fi(this.y),this},distanceTo:function(un){un=$i(un);var _n=un.x-this.x,kn=un.y-this.y;return Math.sqrt(_n*_n+kn*kn)},equals:function(un){return un=$i(un),un.x===this.x&&un.y===this.y},contains:function(un){return un=$i(un),Math.abs(un.x)<=Math.abs(this.x)&&Math.abs(un.y)<=Math.abs(this.y)},toString:function(){return"Point("+yn(this.x)+", "+yn(this.y)+")"}};function $i(un,_n,kn){return un instanceof Pi?un:Rn(un)?new Pi(un[0],un[1]):un==null?un:typeof un=="object"&&"x"in un&&"y"in un?new Pi(un.x,un.y):new Pi(un,_n,kn)}function Wi(un,_n){if(un)for(var kn=_n?[un,_n]:un,$n=0,ai=kn.length;$n<ai;$n++)this.extend(kn[$n])}Wi.prototype={extend:function(un){var _n,kn;if(!un)return this;if(un instanceof Pi||typeof un[0]=="number"||"x"in un)_n=kn=$i(un);else if(un=hi(un),_n=un.min,kn=un.max,!_n||!kn)return this;return!this.min&&!this.max?(this.min=_n.clone(),this.max=kn.clone()):(this.min.x=Math.min(_n.x,this.min.x),this.max.x=Math.max(kn.x,this.max.x),this.min.y=Math.min(_n.y,this.min.y),this.max.y=Math.max(kn.y,this.max.y)),this},getCenter:function(un){return $i((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,un)},getBottomLeft:function(){return $i(this.min.x,this.max.y)},getTopRight:function(){return $i(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(un){var _n,kn;return typeof un[0]=="number"||un instanceof Pi?un=$i(un):un=hi(un),un instanceof Wi?(_n=un.min,kn=un.max):_n=kn=un,_n.x>=this.min.x&&kn.x<=this.max.x&&_n.y>=this.min.y&&kn.y<=this.max.y},intersects:function(un){un=hi(un);var _n=this.min,kn=this.max,$n=un.min,ai=un.max,Mi=ai.x>=_n.x&&$n.x<=kn.x,Gi=ai.y>=_n.y&&$n.y<=kn.y;return Mi&&Gi},overlaps:function(un){un=hi(un);var _n=this.min,kn=this.max,$n=un.min,ai=un.max,Mi=ai.x>_n.x&&$n.x<kn.x,Gi=ai.y>_n.y&&$n.y<kn.y;return Mi&&Gi},isValid:function(){return!!(this.min&&this.max)},pad:function(un){var _n=this.min,kn=this.max,$n=Math.abs(_n.x-kn.x)*un,ai=Math.abs(_n.y-kn.y)*un;return hi($i(_n.x-$n,_n.y-ai),$i(kn.x+$n,kn.y+ai))},equals:function(un){return un?(un=hi(un),this.min.equals(un.getTopLeft())&&this.max.equals(un.getBottomRight())):!1}};function hi(un,_n){return!un||un instanceof Wi?un:new Wi(un,_n)}function Si(un,_n){if(un)for(var kn=_n?[un,_n]:un,$n=0,ai=kn.length;$n<ai;$n++)this.extend(kn[$n])}Si.prototype={extend:function(un){var _n=this._southWest,kn=this._northEast,$n,ai;if(un instanceof yi)$n=un,ai=un;else if(un instanceof Si){if($n=un._southWest,ai=un._northEast,!$n||!ai)return this}else return un?this.extend(Hi(un)||Ni(un)):this;return!_n&&!kn?(this._southWest=new yi($n.lat,$n.lng),this._northEast=new yi(ai.lat,ai.lng)):(_n.lat=Math.min($n.lat,_n.lat),_n.lng=Math.min($n.lng,_n.lng),kn.lat=Math.max(ai.lat,kn.lat),kn.lng=Math.max(ai.lng,kn.lng)),this},pad:function(un){var _n=this._southWest,kn=this._northEast,$n=Math.abs(_n.lat-kn.lat)*un,ai=Math.abs(_n.lng-kn.lng)*un;return new Si(new yi(_n.lat-$n,_n.lng-ai),new yi(kn.lat+$n,kn.lng+ai))},getCenter:function(){return new yi((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new yi(this.getNorth(),this.getWest())},getSouthEast:function(){return new yi(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
2,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(un){typeof un[0]=="number"||un instanceof yi||"lat"in un?un=Hi(un):un=Ni(un);var _n=this._southWest,kn=this._northEast,$n,ai;return un instanceof Si?($n=un.getSouthWest(),ai=un.getNorthEast()):$n=ai=un,$n.lat>=_n.lat&&ai.lat<=kn.lat&&$n.lng>=_n.lng&&ai.lng<=kn.lng},intersects:function(un){un=Ni(un);var _n=this._southWest,kn=this._northEast,$n=un.getSouthWest(),ai=un.getNorthEast(),Mi=ai.lat>=_n.lat&&$n.lat<=kn.lat,Gi=ai.lng>=_n.lng&&$n.lng<=kn.lng;return Mi&&Gi},overlaps:function(un){un=Ni(un);var _n=this._southWest,kn=this._northEast,$n=un.getSouthWest(),ai=un.getNorthEast(),Mi=ai.lat>_n.lat&&$n.lat<kn.lat,Gi=ai.lng>_n.lng&&$n.lng<kn.lng;return Mi&&Gi},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(un,_n){return un?(un=Ni(un),this._southWest.equals(un.getSouthWest(),_n)&&this._northEast.equals(un.getNorthEast(),_n)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Ni(un,_n){return un instanceof Si?un:new Si(un,_n)}function yi(un,_n,kn){if(isNaN(un)||isNaN(_n))throw new Error("Invalid LatLng object: ("+un+", "+_n+")");this.lat=+un,this.lng=+_n,kn!==void 0&&(this.alt=+kn)}yi.prototype={equals:function(un,_n){if(!un)return!1;un=Hi(un);var kn=Math.max(Math.abs(this.lat-un.lat),Math.abs(this.lng-un.lng));return kn<=(_n===void 0?1e-9:_n)},toString:function(un){return"LatLng("+yn(this.lat,un)+", "+yn(this.lng,un)+")"},distanceTo:function(un){return Ji.distance(this,Hi(un))},wrap:function(){return Ji.wrapLatLng(this)},toBounds:function(un){var _n=180*un/40075017,kn=_n/Math.cos(Math.PI/180*this.lat);return Ni([this.lat-_n,this.lng-kn],[this.lat+_n,this.lng+kn])},clone:function(){return new yi(this.lat,this.lng,this.alt)}};function Hi(un,_n,kn){return un instanceof yi?un:Rn(un)&&typeof un[0]!="object"?un.length===3?new yi(un[0],un[1],un[2]):un.length===2?new yi(un[0],un[1]):null:un==null?un:typeof un=="object"&&"lat"in un?new yi(un.lat,"lng"in un?un.lng:un.lon,un.alt):_n===void 0?null:new yi(un,_n,kn)}var Ui={latLngToPoint:function(un,_n){var kn=this.projection.project(un),$n=this.scale(_n);return this.transformation._transform(kn,$n)},pointToLatLng:function(un,_n){var kn=this.scale(_n),$n=this.transformation.untransform(un,kn);return this.projection.unproject($n)},project:function(un){return this.projection.project(un)},unproject:function(un){return this.projection.unproject(un)},scale:function(un){return 256*Math.pow(2,un)},zoom:function(un){return Math.log(un/256)/Math.LN2},getProjectedBounds:function(un){if(this.infinite)return null;var _n=this.projection.bounds,kn=this.scale(un),$n=this.transformation.transform(_n.min,kn),ai=this.transformation.transform(_n.max,kn);return new Wi($n,ai)},infinite:!1,wrapLatLng:function(un){var _n=this.wrapLng?mn(un.lng,this.wrapLng,!0):un.lng,kn=this.wrapLat?mn(un.lat,this.wrapLat,!0):un.lat,$n=un.alt;return new yi(kn,_n,$n)},wrapLatLngBounds:function(un){var _n=un.getCenter(),kn=this.wrapLatLng(_n),$n=_n.lat-kn.lat,ai=_n.lng-kn.lng;if($n===0&&ai===0)return un;
2var Mi=un.getSouthWest(),Gi=un.getNorthEast(),ma=new yi(Mi.lat-$n,Mi.lng-ai),Sa=new yi(Gi.lat-$n,Gi.lng-ai);return new Si(ma,Sa)}},Ji=an({},Ui,{wrapLng:[-180,180],R:6371e3,distance:function(un,_n){var kn=Math.PI/180,$n=un.lat*kn,ai=_n.lat*kn,Mi=Math.sin((_n.lat-un.lat)*kn/2),Gi=Math.sin((_n.lng-un.lng)*kn/2),ma=Mi*Mi+Math.cos($n)*Math.cos(ai)*Gi*Gi,Sa=2*Math.atan2(Math.sqrt(ma),Math.sqrt(1-ma));return this.R*Sa}}),Oi=6378137,Ei={R:Oi,MAX_LATITUDE:85.0511287798,project:function(un){var _n=Math.PI/180,kn=this.MAX_LATITUDE,$n=Math.max(Math.min(kn,un.lat),-kn),ai=Math.sin($n*_n);return new Pi(this.R*un.lng*_n,this.R*Math.log((1+ai)/(1-ai))/2)},unproject:function(un){var _n=180/Math.PI;return new yi((2*Math.atan(Math.exp(un.y/this.R))-Math.PI/2)*_n,un.x*_n/this.R)},bounds:(function(){var un=Oi*Math.PI;return new Wi([-un,-un],[un,un])})()};function ea(un,_n,kn,$n){if(Rn(un)){this._a=un[0],this._b=un[1],this._c=un[2],this._d=un[3];return}this._a=un,this._b=_n,this._c=kn,this._d=$n}ea.prototype={transform:function(un,_n){return this._transform(un.clone(),_n)},_transform:function(un,_n){return _n=_n||1,un.x=_n*(this._a*un.x+this._b),un.y=_n*(this._c*un.y+this._d),un},untransform:function(un,_n){return _n=_n||1,new Pi((un.x/_n-this._b)/this._a,(un.y/_n-this._d)/this._c)}};function vi(un,_n,kn,$n){return new ea(un,_n,kn,$n)}var ti=an({},Ji,{code:"EPSG:3857",projection:Ei,transformation:(function(){var un=.5/(Math.PI*Ei.R);return vi(un,.5,-un,.5)})()}),ui=an({},ti,{code:"EPSG:900913"});function Cn(un){return document.createElementNS("http://www.w3.org/2000/svg",un)}function ki(un,_n){var kn="",$n,ai,Mi,Gi,ma,Sa;for($n=0,Mi=un.length;$n<Mi;$n++){for(ma=un[$n],ai=0,Gi=ma.length;ai<Gi;ai++)Sa=ma[ai],kn+=(ai?"L":"M")+Sa.x+" "+Sa.y;kn+=_n?ls.svg?"z":"x":""}return kn||"M0 0"}var Zi=document.documentElement.style,ta="ActiveXObject"in window,Ri=ta&&!document.addEventListener,ha="msLaunchUri"in navigator&&!("documentMode"in document),qi=ho("webkit"),ca=ho("android"),Bi=ho("android 2")||ho("android 3"),Na=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),pa=ca&&ho("Google")&&Na<537&&!("AudioNode"in window),Ea=!!window.opera,ns=!ha&&ho("chrome"),vs=ho("gecko")&&!qi&&!Ea&&!ta,rs=!ns&&ho("safari"),Xa=ho("phantom"),_s="OTransition"in Zi,mo=navigator.platform.indexOf("Win")===0,Is=ta&&"transition"in Zi,$s="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Bi,Ps="MozPerspective"in Zi,Ws=!window.L_DISABLE_3D&&(Is||$s||Ps)&&!_s&&!Xa,ps=typeof orientation<"u"||ho("mobile"),oo=ps&&qi,bs=ps&&$s,As=!window.PointerEvent&&window.MSPointerEvent,ts=!!(window.PointerEvent||As),cs="ontouchstart"in window||!!window.TouchEvent,
2ws=!window.L_NO_TOUCH&&(cs||ts),js=ps&&Ea,Ma=ps&&vs,Jo=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,eu=(function(){var un=!1;try{var _n=Object.defineProperty({},"passive",{get:function(){un=!0}});window.addEventListener("testPassiveEventSupport",gn,_n),window.removeEventListener("testPassiveEventSupport",gn,_n)}catch{}return un})(),ko=(function(){return!!document.createElement("canvas").getContext})(),fs=!!(document.createElementNS&&Cn("svg").createSVGRect),os=!!fs&&(function(){var un=document.createElement("div");return un.innerHTML="<svg/>",(un.firstChild&&un.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),kc=!fs&&(function(){try{var un=document.createElement("div");un.innerHTML='<v:shape adj="1"/>';var _n=un.firstChild;return _n.style.behavior="url(#default#VML)",_n&&typeof _n.adj=="object"}catch{return!1}})(),ys=navigator.platform.indexOf("Mac")===0,Vo=navigator.platform.indexOf("Linux")===0;function ho(un){return navigator.userAgent.toLowerCase().indexOf(un)>=0}var ls={ie:ta,ielt9:Ri,edge:ha,webkit:qi,android:ca,android23:Bi,androidStock:pa,opera:Ea,chrome:ns,gecko:vs,safari:rs,phantom:Xa,opera12:_s,win:mo,ie3d:Is,webkit3d:$s,gecko3d:Ps,any3d:Ws,mobile:ps,mobileWebkit:oo,mobileWebkit3d:bs,msPointer:As,pointer:ts,touch:ws,touchNative:cs,mobileOpera:js,mobileGecko:Ma,retina:Jo,passiveEvents:eu,canvas:ko,svg:fs,vml:kc,inlineSvg:os,mac:ys,linux:Vo},ia=ls.msPointer?"MSPointerDown":"pointerdown",Fa=ls.msPointer?"MSPointerMove":"pointermove",us=ls.msPointer?"MSPointerUp":"pointerup",as=ls.msPointer?"MSPointerCancel":"pointercancel",Cs={touchstart:ia,touchmove:Fa,touchend:us,touchcancel:as},to={touchstart:Jd,touchmove:Ku,touchend:Ku,touchcancel:Ku},co={},tc=!1;function Vc(un,_n,kn){return _n==="touchstart"&&Tc(),to[_n]?(kn=to[_n].bind(this,kn),un.addEventListener(Cs[_n],kn,!1),kn):(console.warn("wrong event specified:",_n),gn)}function Yo(un,_n,kn){if(!Cs[_n]){console.warn("wrong event specified:",_n);return}un.removeEventListener(Cs[_n],kn,!1)}function uc(un){co[un.pointerId]=un}function vu(un){co[un.pointerId]&&(co[un.pointerId]=un)}function nc(un){delete co[un.pointerId]}function Tc(){tc||(document.addEventListener(ia,uc,!0),document.addEventListener(Fa,vu,!0),document.addEventListener(us,nc,!0),document.addEventListener(as,nc,!0),tc=!0)}function Ku(un,_n){if(_n.pointerType!==(_n.MSPOINTER_TYPE_MOUSE||"mouse")){_n.touches=[];for(var kn in co)_n.touches.push(co[kn]);_n.changedTouches=[_n],un(_n)}}function Jd(un,_n){_n.MSPOINTER_TYPE_TOUCH&&_n.pointerType===_n.MSPOINTER_TYPE_TOUCH&&Oo(_n),Ku(un,_n)}function ch(un){var _n={},kn,$n;for($n in un)kn=un[$n],_n[$n]=kn&&kn.bind?kn.bind(un):kn;return un=_n,_n.type="dblclick",_n.detail=2,_n.isTrusted=!1,_n._simulated=!0,_n}var uh=200;function Es(un,_n){un.addEventListener("dblclick",_n);var kn=0,$n;function ai(Mi){if(Mi.detail!==1){$n=Mi.detail;return}if(!(Mi.pointerType==="mouse"||Mi.sourceCapabilities&&!Mi.sourceCapabilities.firesTouchEvents)){var Gi=bu(Mi);if(!(Gi.some(function(Sa){return Sa instanceof HTMLLabelElement&&Sa.attributes.for})&&!Gi.some(function(Sa){return Sa instanceof HTMLInputElement||Sa instanceof HTMLSelectElement}))){var ma=Date.now();ma-kn<=uh?($n++,$n===2&&_n(ch(Mi))):$n=1,kn=ma}}}return un.addEventListener("click",ai),{dblclick:_n,simDblclick:ai}}function $u(un,_n){un.removeEventListener("dblclick",_n.dblclick),un.removeEventListener("click",_n.simDblclick)}var xd=jc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tu=jc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),dd=tu==="webkitTransition"||tu==="OTransition"?tu+"End":"transitionend";function Xd(un){return typeof un=="string"?document.getElementById(un):un}function Ju(un,_n){var kn=un.style[_n]||un.currentStyle&&un.currentStyle[_n];if((!kn||kn==="auto")&&document.defaultView){var $n=document.defaultView.getComputedStyle(un,null);kn=$n?$n[_n]:null}return kn==="auto"?null:kn}function Us(un,_n,kn){var $n=document.createElement(un);return $n.className=_n||"",kn&&kn.appendChild($n),$n}function bo(un){var _n=un.parentNode;_n&&_n.removeChild(un)}function Sd(un){for(;un.firstChild;)un.removeChild(un.firstChild)}function Bo(un){var _n=un.parentNode;
2_n&&_n.lastChild!==un&&_n.appendChild(un)}function nu(un){var _n=un.parentNode;_n&&_n.firstChild!==un&&_n.insertBefore(un,_n.firstChild)}function Dc(un,_n){if(un.classList!==void 0)return un.classList.contains(_n);var kn=Eo(un);return kn.length>0&&new RegExp("(^|\\s)"+_n+"(\\s|$)").test(kn)}function Hs(un,_n){if(un.classList!==void 0)for(var kn=bn(_n),$n=0,ai=kn.length;$n<ai;$n++)un.classList.add(kn[$n]);else if(!Dc(un,_n)){var Mi=Eo(un);Pc(un,(Mi?Mi+" ":"")+_n)}}function $o(un,_n){un.classList!==void 0?un.classList.remove(_n):Pc(un,fn((" "+Eo(un)+" ").replace(" "+_n+" "," ")))}function Pc(un,_n){un.className.baseVal===void 0?un.className=_n:un.className.baseVal=_n}function Eo(un){return un.correspondingElement&&(un=un.correspondingElement),un.className.baseVal===void 0?un.className:un.className.baseVal}function Xo(un,_n){"opacity"in un.style?un.style.opacity=_n:"filter"in un.style&&Hc(un,_n)}function Hc(un,_n){var kn=!1,$n="DXImageTransform.Microsoft.Alpha";try{kn=un.filters.item($n)}catch{if(_n===1)return}_n=Math.round(_n*100),kn?(kn.Enabled=_n!==100,kn.Opacity=_n):un.style.filter+=" progid:"+$n+"(opacity="+_n+")"}function jc(un){for(var _n=document.documentElement.style,kn=0;kn<un.length;kn++)if(un[kn]in _n)return un[kn];return!1}function ru(un,_n,kn){var $n=_n||new Pi(0,0);un.style[xd]=(ls.ie3d?"translate("+$n.x+"px,"+$n.y+"px)":"translate3d("+$n.x+"px,"+$n.y+"px,0)")+(kn?" scale("+kn+")":"")}function no(un,_n){un._leaflet_pos=_n,ls.any3d?ru(un,_n):(un.style.left=_n.x+"px",un.style.top=_n.y+"px")}function Co(un){return un._leaflet_pos||new Pi(0,0)}var Xu,wu,Eu;if("onselectstart"in document)Xu=function(){ss(window,"selectstart",Oo)},wu=function(){Mo(window,"selectstart",Oo)};else{var hd=jc(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Xu=function(){if(hd){var un=document.documentElement.style;Eu=un[hd],un[hd]="none"}},wu=function(){hd&&(document.documentElement.style[hd]=Eu,Eu=void 0)}}function Qd(){ss(window,"dragstart",Oo)}function eh(){Mo(window,"dragstart",Oo)}var Qu,Td;function fc(un){for(;un.tabIndex===-1;)un=un.parentNode;un.style&&(Dd(),Qu=un,Td=un.style.outlineStyle,un.style.outlineStyle="none",ss(window,"keydown",Dd))}function Dd(){Qu&&(Qu.style.outlineStyle=Td,Qu=void 0,Td=void 0,Mo(window,"keydown",Dd))}function ku(un){do un=un.parentNode;while((!un.offsetWidth||!un.offsetHeight)&&un!==document.body);return un}function fd(un){var _n=un.getBoundingClientRect();return{x:_n.width/un.offsetWidth||1,y:_n.height/un.offsetHeight||1,boundingClientRect:_n}}var bh={__proto__:null,TRANSFORM:xd,TRANSITION:tu,TRANSITION_END:dd,get:Xd,getStyle:Ju,create:Us,remove:bo,empty:Sd,toFront:Bo,toBack:nu,hasClass:Dc,addClass:Hs,removeClass:$o,setClass:Pc,getClass:Eo,setOpacity:Xo,testProp:jc,setTransform:ru,setPosition:no,getPosition:Co,get disableTextSelection(){return Xu},get enableTextSelection(){return wu},disableImageDrag:Qd,enableImageDrag:eh,preventOutline:fc,restoreOutline:Dd,getSizedParentNode:ku,getScale:fd};function ss(un,_n,kn,$n){if(_n&&typeof _n=="object")for(var ai in _n)au(un,ai,_n[ai],kn);else{_n=bn(_n);for(var Mi=0,Gi=_n.length;Mi<Gi;Mi++)au(un,_n[Mi],kn,$n)}return this}var zc="_leaflet_events";function Mo(un,_n,kn,$n){if(arguments.length===1)dh(un),delete un[zc];else if(_n&&typeof _n=="object")for(var ai in _n)th(un,ai,_n[ai],kn);else if(_n=bn(_n),arguments.length===2)dh(un,function(ma){return ni(_n,ma)!==-1});else for(var Mi=0,Gi=_n.length;Mi<Gi;Mi++)th(un,_n[Mi],kn,$n);return this}function dh(un,_n){for(var kn in un[zc]){var $n=kn.split(/\d/)[0];(!_n||_n($n))&&th(un,$n,null,null,kn)}}
2var iu={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function au(un,_n,kn,$n){var ai=_n+dn(kn)+($n?"_"+dn($n):"");if(un[zc]&&un[zc][ai])return this;var Mi=function(ma){return kn.call($n||un,ma||window.event)},Gi=Mi;!ls.touchNative&&ls.pointer&&_n.indexOf("touch")===0?Mi=Vc(un,_n,Mi):ls.touch&&_n==="dblclick"?Mi=Es(un,Mi):"addEventListener"in un?_n==="touchstart"||_n==="touchmove"||_n==="wheel"||_n==="mousewheel"?un.addEventListener(iu[_n]||_n,Mi,ls.passiveEvents?{passive:!1}:!1):_n==="mouseenter"||_n==="mouseleave"?(Mi=function(ma){ma=ma||window.event,rd(un,ma)&&Gi(ma)},un.addEventListener(iu[_n],Mi,!1)):un.addEventListener(_n,Gi,!1):un.attachEvent("on"+_n,Mi),un[zc]=un[zc]||{},un[zc][ai]=Mi}function th(un,_n,kn,$n,ai){ai=ai||_n+dn(kn)+($n?"_"+dn($n):"");var Mi=un[zc]&&un[zc][ai];if(!Mi)return this;!ls.touchNative&&ls.pointer&&_n.indexOf("touch")===0?Yo(un,_n,Mi):ls.touch&&_n==="dblclick"?$u(un,Mi):"removeEventListener"in un?un.removeEventListener(iu[_n]||_n,Mi,!1):un.detachEvent("on"+_n,Mi),un[zc][ai]=null}function Ou(un){return un.stopPropagation?un.stopPropagation():un.originalEvent?un.originalEvent._stopped=!0:un.cancelBubble=!0,this}function ed(un){return au(un,"wheel",Ou),this}function Ru(un){return ss(un,"mousedown touchstart dblclick contextmenu",Ou),un._leaflet_disable_click=!0,this}function Oo(un){return un.preventDefault?un.preventDefault():un.returnValue=!1,this}function Iu(un){return Oo(un),Ou(un),this}function bu(un){if(un.composedPath)return un.composedPath();for(var _n=[],kn=un.target;kn;)_n.push(kn),kn=kn.parentNode;return _n}function nd(un,_n){if(!_n)return new Pi(un.clientX,un.clientY);var kn=fd(_n),$n=kn.boundingClientRect;return new Pi((un.clientX-$n.left)/kn.x-_n.clientLeft,(un.clientY-$n.top)/kn.y-_n.clientTop)}var Fu=ls.linux&&ls.chrome?window.devicePixelRatio:ls.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Pd(un){return ls.edge?un.wheelDeltaY/2:un.deltaY&&un.deltaMode===0?-un.deltaY/Fu:un.deltaY&&un.deltaMode===1?-un.deltaY*20:un.deltaY&&un.deltaMode===2?-un.deltaY*60:un.deltaX||un.deltaZ?0:un.wheelDelta?(un.wheelDeltaY||un.wheelDelta)/2:un.detail&&Math.abs(un.detail)<32765?-un.detail*20:un.detail?un.detail/-32765*60:0}function rd(un,_n){var kn=_n.relatedTarget;if(!kn)return!0;try{for(;kn&&kn!==un;)kn=kn.parentNode}catch{return!1}return kn!==un}var su={__proto__:null,on:ss,off:Mo,stopPropagation:Ou,disableScrollPropagation:ed,disableClickPropagation:Ru,preventDefault:Oo,stop:Iu,getPropagationPath:bu,getMousePosition:nd,getWheelDelta:Pd,isExternalTarget:rd,addListener:ss,removeListener:Mo},Nd=Yi.extend({run:function(un,_n,kn,$n){this.stop(),this._el=un,this._inProgress=!0,this._duration=kn||.25,this._easeOutPower=1/Math.max($n||.5,.2),this._startPos=Co(un),this._offset=_n.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=ei(this._animate,this),this._step()},_step:function(un){var _n=+new Date-this._startTime,kn=this._duration*1e3;_n<kn?this._runFrame(this._easeOut(_n/kn),un):(this._runFrame(1),this._complete())},_runFrame:function(un,_n){var kn=this._startPos.add(this._offset.multiplyBy(un));_n&&kn._round(),no(this._el,kn),this.fire("step")},_complete:function(){ci(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(un){return 1-Math.pow(1-un,this._easeOutPower)}}),Js=Yi.extend({options:{crs:ti,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(un,_n){_n=Mn(this,_n),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(un),this._initLayout(),this._onResize=on(this._onResize,this),this._initEvents(),_n.maxBounds&&this.setMaxBounds(_n.maxBounds),_n.zoom!==void 0&&(this._zoom=this._limitZoom(_n.zoom)),_n.center&&_n.zoom!==void 0&&this.setView(Hi(_n.center),_n.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=tu&&ls.any3d&&!ls.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ss(this._proxy,dd,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
2,setView:function(un,_n,kn){if(_n=_n===void 0?this._zoom:this._limitZoom(_n),un=this._limitCenter(Hi(un),_n,this.options.maxBounds),kn=kn||{},this._stop(),this._loaded&&!kn.reset&&kn!==!0){kn.animate!==void 0&&(kn.zoom=an({animate:kn.animate},kn.zoom),kn.pan=an({animate:kn.animate,duration:kn.duration},kn.pan));var $n=this._zoom!==_n?this._tryAnimatedZoom&&this._tryAnimatedZoom(un,_n,kn.zoom):this._tryAnimatedPan(un,kn.pan);if($n)return clearTimeout(this._sizeTimer),this}return this._resetView(un,_n,kn.pan&&kn.pan.noMoveStart),this},setZoom:function(un,_n){return this._loaded?this.setView(this.getCenter(),un,{zoom:_n}):(this._zoom=un,this)},zoomIn:function(un,_n){return un=un||(ls.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+un,_n)},zoomOut:function(un,_n){return un=un||(ls.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-un,_n)},setZoomAround:function(un,_n,kn){var $n=this.getZoomScale(_n),ai=this.getSize().divideBy(2),Mi=un instanceof Pi?un:this.latLngToContainerPoint(un),Gi=Mi.subtract(ai).multiplyBy(1-1/$n),ma=this.containerPointToLatLng(
2ai.add(Gi));return this.setView(ma,_n,{zoom:kn})},_getBoundsCenterZoom:function(un,_n){_n=_n||{},un=un.getBounds?un.getBounds():Ni(un);var kn=$i(_n.paddingTopLeft||_n.padding||[0,0]),$n=$i(_n.paddingBottomRight||_n.padding||[0,0]),ai=this.getBoundsZoom(un,!1,kn.add($n));if(ai=typeof _n.maxZoom=="number"?Math.min(_n.maxZoom,ai):ai,ai===1/0)return{center:un.getCenter(),zoom:ai};var Mi=$n.subtract(kn).divideBy(2),Gi=this.project(un.getSouthWest(),ai),ma=this.project(un.getNorthEast(),ai),Sa=this.unproject(Gi.add(ma).divideBy(2).add(Mi),ai);return{center:Sa,zoom:ai}},fitBounds:function(un,_n){if(un=Ni(un),!un.isValid())throw new Error("Bounds are not valid.");var kn=this._getBoundsCenterZoom(un,_n);return this.setView(kn.center,kn.zoom,_n)},fitWorld:function(un){return this.fitBounds([[-90,-180],[90,180]],un)},panTo:function(un,_n){return this.setView(un,this._zoom,{pan:_n})},panBy:function(un,_n){if(un=$i(un).round(),_n=_n||{},!un.x&&!un.y)return this.fire("moveend");if(_n.animate!==!0&&!this.getSize().contains(un))return this._resetView(this.unproject(this.project(this.getCenter()).add(un)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Nd,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),_n.noMoveStart||this.fire("movestart"),_n.animate!==!1){Hs(this._mapPane,"leaflet-pan-anim");var kn=this._getMapPanePos().subtract(un).round();this._panAnim.run(this._mapPane,kn,_n.duration||.25,_n.easeLinearity)}else this._rawPanBy(un),this.fire("move").fire("moveend");return this},flyTo:function(un,_n,kn){if(kn=kn||{},kn.animate===!1||!ls.any3d)return this.setView(un,_n,kn);this._stop();var $n=this.project(this.getCenter()),ai=this.project(un),Mi=this.getSize(),Gi=this._zoom;un=Hi(un),_n=_n===void 0?Gi:_n;var ma=Math.max(Mi.x,Mi.y),Sa=ma*this.getZoomScale(Gi,_n),Wa=ai.distanceTo($n)||1,ms=1.42,Ys=ms*ms;function eo(Do){var Mc=Do?-1:1,ef=Do?Sa:ma,tf=Sa*Sa-ma*ma+Mc*Ys*Ys*Wa*Wa,Hh=2*ef*Ys*Wa,gh=tf/Hh,kd=Math.sqrt(gh*gh+1)-gh,jh=kd<1e-9?-18:Math.log(kd);return jh}function bc(Do){return(Math.exp(Do)-Math.exp(-Do))/2}function sc(Do){return(Math.exp(Do)+Math.exp(-Do))/2}function Jc(Do){return bc(Do)/sc(Do)}var Bc=eo(0);function Rd(Do){return ma*(sc(Bc)/sc(Bc+ms*Do))}function Xh(Do){return ma*(sc(Bc)*Jc(Bc+ms*Do)-bc(Bc))/Ys}function cd(Do){return 1-Math.pow(1-Do,1.5)}var mu=Date.now(),Bu=(eo(1)-Bc)/ms,Qh=kn.duration?1e3*kn.duration:1e3*Bu*.8;function Ph(){var Do=(Date.now()-mu)/Qh,Mc=cd(Do)*Bu;Do<=1?(this._flyToFrame=ei(Ph,this),this._move(this.unproject($n.add(ai.subtract($n).multiplyBy(Xh(Mc)/Wa)),Gi),this.getScaleZoom(ma/Rd(Mc),Gi),{flyTo:!0})):this._move(un,_n)._moveEnd(!0)}return this._moveStart(!0,kn.noMoveStart),Ph.call(this),this},flyToBounds:function(un,_n){var kn=this._getBoundsCenterZoom(un,_n);return this.flyTo(kn.center,kn.zoom,_n)},setMaxBounds:function(un){return un=Ni(un),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),un.isValid()?(this.options.maxBounds=un,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(un){var _n=this.options.minZoom;return this.options.minZoom=un,this._loaded&&_n!==un&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(un):this},setMaxZoom:function(un){var _n=this.options.maxZoom;return this.options.maxZoom=un,this._loaded&&_n!==un&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(un):this},panInsideBounds:function(un,_n){this._enforcingBounds=!0;var kn=this.getCenter(),$n=this._limitCenter(kn,this._zoom,Ni(un));return kn.equals($n)||this.panTo($n,_n),this._enforcingBounds=!1,this},panInside:function(un,_n){_n=_n||{};var kn=$i(_n.paddingTopLeft||_n.padding||[0,0]),$n=$i(_n.paddingBottomRight||_n.padding||[0,0]),ai=this.project(this.getCenter()),Mi=this.project(un),Gi=this.getPixelBounds(),ma=hi([Gi.min.add(kn),Gi.max.subtract($n)]),Sa=ma.getSize();if(!ma.contains(Mi)){this._enforcingBounds=!0;var Wa=Mi.subtract(ma.getCenter()),ms=ma.extend(Mi).getSize().subtract(Sa);ai.x+=Wa.x<0?-ms.x:ms.x,ai.y+=Wa.y<0?-ms.y:ms.y,this.panTo(this.unproject(ai),_n),this._enforcingBounds=!1}return this},invalidateSize:function(un){if(!this._loaded)return this;un=an({animate:!1,pan:!0},un===!0?{animate:!0}:un);var _n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var kn=this.getSize(),$n=_n.divideBy(2).round(),ai=kn.divideBy(2).round(),Mi=$n.subtract(ai);return!Mi.x&&!Mi.y?this:(un.animate&&un.pan?this.panBy(Mi):(un.pan&&this._rawPanBy(Mi),this.fire("move"),un.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(on(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:_n,newSize:kn}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(un){if(un=this._locateOptions=an({timeout:1e4,watch:!1},un),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var _n=on(this._handleGeolocationResponse,this),kn=on(this._handleGeolocationError,this);return un.watch?this._locationWatchId=navigator.geolocation.watchPosition(_n,kn,un):navigator.geolocation.getCurrentPosition(_n,kn,un),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(un){if(this._container._leaflet_id){var _n=un.code,kn=un.message||(_n===1?"permission denied":_n===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:_n,message:"Geolocation error: "+kn+"."})}},_handleGeolocationResponse:function(un){if(this._container._leaflet_id){var _n=un.coords.latitude,kn=un.coords.longitude,$n=new yi(_n,kn),ai=$n.toBounds(un.coords.accuracy*2),Mi=this._locateOptions;if(Mi.setView){var Gi=this.getBoundsZoom(ai);this.setView($n,Mi.maxZoom?Math.min(Gi,Mi.maxZoom):Gi)}var ma={latlng:$n,bounds:ai,timestamp:un.timestamp};for(var Sa in un.coords)typeof un.coords[Sa]=="number"&&(ma[Sa]=un.coords[Sa]);this.fire("locationfound",ma)}},addHandler:function(un,_n){if(!_n)return this;var kn=this[un]=new _n(this);return this._handlers.push(kn),this.options[un]&&kn.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),bo(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ci(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var un;for(un in this._layers)this._layers[un].remove();for(un in this._panes)bo(this._panes[un]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(un,_n){var kn="leaflet-pane"+(un?" leaflet-"+un.replace("Pane","")+"-pane":""),$n=Us("div",kn,_n||this._mapPane);return un&&(this._panes[un]=$n),$n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var un=this.getPixelBounds(),_n=this.unproject(un.getBottomLeft()),kn=this.unproject(un.getTopRight());return new Si(_n,kn)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
2om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(un,_n,kn){un=Ni(un),kn=$i(kn||[0,0]);var $n=this.getZoom()||0,ai=this.getMinZoom(),Mi=this.getMaxZoom(),Gi=un.getNorthWest(),ma=un.getSouthEast(),Sa=this.getSize().subtract(kn),Wa=hi(this.project(ma,$n),this.project(Gi,$n)).getSize(),ms=ls.any3d?this.options.zoomSnap:1,Ys=Sa.x/Wa.x,eo=Sa.y/Wa.y,bc=_n?Math.max(Ys,eo):Math.min(Ys,eo);return $n=this.getScaleZoom(bc,$n),ms&&($n=Math.round($n/(ms/100))*(ms/100),$n=_n?Math.ceil($n/ms)*ms:Math.floor($n/ms)*ms),Math.max(ai,Math.min(Mi,$n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Pi(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(un,_n){var kn=this._getTopLeftPoint(un,_n);return new Wi(kn,kn.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(un){return this.options.crs.getProjectedBounds(un===void 0?this.getZoom():un)},getPane:function(un){return typeof un=="string"?this._panes[un]:un},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(un,_n){var kn=this.options.crs;return _n=_n===void 0?this._zoom:_n,kn.scale(un)/kn.scale(_n)},getScaleZoom:function(un,_n){var kn=this.options.crs;_n=_n===void 0?this._zoom:_n;var $n=kn.zoom(un*kn.scale(_n));return isNaN($n)?1/0:$n},project:function(un,_n){return _n=_n===void 0?this._zoom:_n,this.options.crs.latLngToPoint(Hi(un),_n)},unproject:function(un,_n){return _n=_n===void 0?this._zoom:_n,this.options.crs.pointToLatLng($i(un),_n)},layerPointToLatLng:function(un){var _n=$i(un).add(this.getPixelOrigin());return this.unproject(_n)},latLngToLayerPoint:function(un){var _n=this.project(Hi(un))._round();return _n._subtract(this.getPixelOrigin())},wrapLatLng:function(un){return this.options.crs.wrapLatLng(Hi(un))},wrapLatLngBounds:function(un){return this.options.crs.wrapLatLngBounds(Ni(un))},distance:function(un,_n){return this.options.crs.distance(Hi(un),Hi(_n))},containerPointToLayerPoint:function(un){return $i(un).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(un){return $i(un).add(this._getMapPanePos())},containerPointToLatLng:function(un){var _n=this.containerPointToLayerPoint($i(un));return this.layerPointToLatLng(_n)},latLngToContainerPoint:function(un){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Hi(un)))},mouseEventToContainerPoint:function(un){return nd(un,this._container)},mouseEventToLayerPoint:function(un){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(un))},mouseEventToLatLng:function(un){return this.layerPointToLatLng(this.mouseEventToLayerPoint(un))},_initContainer:function(un){var _n=this._container=Xd(un);if(_n){if(_n._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ss(_n,"scroll",this._onScroll,this),this._containerId=dn(_n)},_initLayout:function(){var un=this._container;this._fadeAnimated=this.options.fadeAnimation&&ls.any3d,Hs(un,"leaflet-container"+(ls.touch?" leaflet-touch":"")+(ls.retina?" leaflet-retina":"")+(ls.ielt9?" leaflet-oldie":"")+(ls.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var _n=Ju(un,"position");_n!=="absolute"&&_n!=="relative"&&_n!=="fixed"&&_n!=="sticky"&&(un.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var un=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),no(this._mapPane,new Pi(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Hs(un.markerPane,"leaflet-zoom-hide"),Hs(un.shadowPane,"leaflet-zoom-hide"))},_resetView:function(un,_n,kn){no(this._mapPane,new Pi(0,0));var $n=!this._loaded;this._loaded=!0,_n=this._limitZoom(_n),this.fire("viewprereset");var ai=this._zoom!==_n;this._moveStart(ai,kn)._move(un,_n)._moveEnd(ai),this.fire("viewreset"),$n&&this.fire("load")},_moveStart:function(un,_n){return un&&this.fire("zoomstart"),_n||this.fire("movestart"),this},_move:function(un,_n,kn,$n){_n===void 0&&(_n=this._zoom);var ai=this._zoom!==_n;return this._zoom=_n,this._lastCenter=un,this._pixelOrigin=this._getNewPixelOrigin(un),$n?kn&&kn.pinch&&this.fire("zoom",kn):((ai||kn&&kn.pinch)&&this.fire("zoom",kn),this.fire("move",kn)),this},_moveEnd:function(un){return un&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ci(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(un){no(this._mapPane,this._getMapPanePos().subtract(un))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(un){this._targets={},this._targets[dn(this._container)]=this;var _n=un?Mo:ss;_n(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&_n(window,"resize",this._onResize,this),ls.any3d&&this.options.transform3DLimit&&(un?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ci(this._resizeRequest),this._resizeRequest=ei(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var un=this._getMapPanePos();Math.max(Math.abs(un.x),Math.abs(un.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())}
2,_findEventTargets:function(un,_n){for(var kn=[],$n,ai=_n==="mouseout"||_n==="mouseover",Mi=un.target||un.srcElement,Gi=!1;Mi;){if($n=this._targets[dn(Mi)],$n&&(_n==="click"||_n==="preclick")&&this._draggableMoved($n)){Gi=!0;break}if($n&&$n.listens(_n,!0)&&(ai&&!rd(Mi,un)||(kn.push($n),ai))||Mi===this._container)break;Mi=Mi.parentNode}return!kn.length&&!Gi&&!ai&&this.listens(_n,!0)&&(kn=[this]),kn},_isClickDisabled:function(un){for(;un&&un!==this._container;){if(un._leaflet_disable_click)return!0;un=un.parentNode}},_handleDOMEvent:function(un){var _n=un.target||un.srcElement;if(!(!this._loaded||_n._leaflet_disable_events||un.type==="click"&&this._isClickDisabled(_n))){var kn=un.type;kn==="mousedown"&&fc(_n),this._fireDOMEvent(un,kn)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(un,_n,kn){if(un.type==="click"){var $n=an({},un);$n.type="preclick",this._fireDOMEvent($n,$n.type,kn)}var ai=this._findEventTargets(un,_n);if(kn){for(var Mi=[],Gi=0;Gi<kn.length;Gi++)kn[Gi].listens(_n,!0)&&Mi.push(kn[Gi]);ai=Mi.concat(ai)}if(ai.length){_n==="contextmenu"&&Oo(un);var ma=ai[0],Sa={originalEvent:un};if(un.type!=="keypress"&&un.type!=="keydown"&&un.type!=="keyup"){var Wa=ma.getLatLng&&(!ma._radius||ma._radius<=10);Sa.containerPoint=Wa?this.latLngToContainerPoint(ma.getLatLng()):this.mouseEventToContainerPoint(un),Sa.layerPoint=this.containerPointToLayerPoint(Sa.containerPoint),Sa.latlng=Wa?ma.getLatLng():this.layerPointToLatLng(Sa.layerPoint)}for(Gi=0;Gi<ai.length;Gi++)if(ai[Gi].fire(_n,Sa,!0),Sa.originalEvent._stopped||ai[Gi].options.bubblingMouseEvents===!1&&ni(this._mouseEvents,_n)!==-1)return}},_draggableMoved:function(un){return un=un.dragging&&un.dragging.enabled()?un:this,un.dragging&&un.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var un=0,_n=this._handlers.length;un<_n;un++)this._handlers[un].disable()},whenReady:function(un,_n){return this._loaded?un.call(_n||this,{target:this}):this.on("load",un,_n),this},_getMapPanePos:function(){return Co(this._mapPane)||new Pi(0,0)},_moved:function(){var un=this._getMapPanePos();return un&&!un.equals([0,0])},_getTopLeftPoint:function(un,_n){var kn=un&&_n!==void 0?this._getNewPixelOrigin(un,_n):this.getPixelOrigin();return kn.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(un,_n){var kn=this.getSize()._divideBy(2);return this.project(un,_n)._subtract(kn)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(un,_n,kn){var $n=this._getNewPixelOrigin(kn,_n);return this.project(un,_n)._subtract($n)},_latLngBoundsToNewLayerBounds:function(un,_n,kn){var $n=this._getNewPixelOrigin(kn,_n);
2return hi([this.project(un.getSouthWest(),_n)._subtract($n),this.project(un.getNorthWest(),_n)._subtract($n),this.project(un.getSouthEast(),_n)._subtract($n),this.project(un.getNorthEast(),_n)._subtract($n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(un){return this.latLngToLayerPoint(un).subtract(this._getCenterLayerPoint())},_limitCenter:function(un,_n,kn){if(!kn)return un;var $n=this.project(un,_n),ai=this.getSize().divideBy(2),Mi=new Wi($n.subtract(ai),$n.add(ai)),Gi=this._getBoundsOffset(Mi,kn,_n);return Math.abs(Gi.x)<=1&&Math.abs(Gi.y)<=1?un:this.unproject($n.add(Gi),_n)},_limitOffset:function(un,_n){if(!_n)return un;var kn=this.getPixelBounds(),$n=new Wi(kn.min.add(un),kn.max.add(un));return un.add(this._getBoundsOffset($n,_n))},_getBoundsOffset:function(un,_n,kn){var $n=hi(this.project(_n.getNorthEast(),kn),this.project(_n.getSouthWest(),kn)),ai=$n.min.subtract(un.min),Mi=$n.max.subtract(un.max),Gi=this._rebound(ai.x,-Mi.x),ma=this._rebound(ai.y,-Mi.y);return new Pi(Gi,ma)},_rebound:function(un,_n){return un+_n>0?Math.round(un-_n)/2:Math.max(0,Math.ceil(un))-Math.max(0,Math.floor(_n))},_limitZoom:function(un){var _n=this.getMinZoom(),kn=this.getMaxZoom(),$n=ls.any3d?this.options.zoomSnap:1;return $n&&(un=Math.round(un/$n)*$n),Math.max(_n,Math.min(kn,un))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){$o(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(un,_n){var kn=this._getCenterOffset(un)._trunc();return(_n&&_n.animate)!==!0&&!this.getSize().contains(kn)?!1:(this.panBy(kn,_n),!0)},_createAnimProxy:function(){var un=this._proxy=Us("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(un),this.on("zoomanim",function(_n){var kn=xd,$n=this._proxy.style[kn];ru(this._proxy,this.project(_n.center,_n.zoom),this.getZoomScale(_n.zoom,1)),$n===this._proxy.style[kn]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){bo(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var un=this.getCenter(),_n=this.getZoom();ru(this._proxy,this.project(un,_n),this.getZoomScale(_n,1))},_catchTransitionEnd:function(un){this._animatingZoom&&un.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(un,_n,kn){if(this._animatingZoom)return!0;if(kn=kn||{},!this._zoomAnimated||kn.animate===!1||this._nothingToAnimate()||Math.abs(_n-this._zoom)>this.options.zoomAnimationThreshold)return!1;var $n=this.getZoomScale(_n),ai=this._getCenterOffset(un)._divideBy(1-1/$n);return kn.animate!==!0&&!this.getSize().contains(ai)?!1:(ei(function(){this._moveStart(!0,kn.noMoveStart||!1)._animateZoom(un,_n,!0)},this),!0)},_animateZoom:function(un,_n,kn,$n){this._mapPane&&(kn&&(this._animatingZoom=!0,this._animateToCenter=un,this._animateToZoom=_n,Hs(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:un,zoom:_n,noUpdate:$n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(on(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&$o(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function nh(un,_n){return new Js(un,_n)}var mc=wi.extend({options:{position:"topright"},initialize:function(un){Mn(this,un)},getPosition:function(){return this.options.position},setPosition:function(un){var _n=this._map;return _n&&_n.removeControl(this),this.options.position=un,_n&&_n.addControl(this),this},getContainer:function(){return this._container},addTo:function(un){this.remove(),this._map=un;var _n=this._container=this.onAdd(un),kn=this.getPosition(),$n=un._controlCorners[kn];return Hs(_n,"leaflet-control"),kn.indexOf("bottom")!==-1?$n.insertBefore(_n,$n.firstChild):$n.appendChild(_n),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(bo(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(un){this._map&&un&&un.screenX>0&&un.screenY>0&&this._map.getContainer().focus()}}),ou=function(un){return new mc(un)};Js.include({addControl:function(un){return un.addTo(this),this},removeControl:function(un){return un.remove(),this}
2,_initControlPos:function(){var un=this._controlCorners={},_n="leaflet-",kn=this._controlContainer=Us("div",_n+"control-container",this._container);function $n(ai,Mi){var Gi=_n+ai+" "+_n+Mi;un[ai+Mi]=Us("div",Gi,kn)}$n("top","left"),$n("top","right"),$n("bottom","left"),$n("bottom","right")},_clearControlPos:function(){for(var un in this._controlCorners)bo(this._controlCorners[un]);bo(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Os=mc.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(un,_n,kn,$n){return kn<$n?-1:$n<kn?1:0}},initialize:function(un,_n,kn){Mn(this,kn),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var $n in un)this._addLayer(un[$n],$n);for($n in _n)this._addLayer(_n[$n],$n,!0)},onAdd:function(un){this._initLayout(),this._update(),this._map=un,un.on("zoomend",this._checkDisabledLayers,this);for(var _n=0;_n<this._layers.length;_n++)this._layers[_n].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(un){return mc.prototype.addTo.call(this,un),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var un=0;un<this._layers.length;un++)this._layers[un].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(un,_n){return this._addLayer(un,_n),this._map?this._update():this},addOverlay:function(un,_n){return this._addLayer(un,_n,!0),this._map?this._update():this},removeLayer:function(un){un.off("add remove",this._onLayerChange,this);var _n=this._getLayer(dn(un));return _n&&this._layers.splice(this._layers.indexOf(_n),1),this._map?this._update():this},expand:function(){Hs(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var un=this._map.getSize().y-(this._container.offsetTop+50);return un<this._section.clientHeight?(Hs(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=un+"px"):$o(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return $o(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var un="leaflet-control-layers",_n=this._container=Us("div",un),kn=this.options.collapsed;_n.setAttribute("aria-haspopup",!0),Ru(_n),ed(_n);var $n=this._section=Us("section",un+"-list");kn&&(this._map.on("click",this.collapse,this),ss(_n,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var ai=this._layersLink=Us("a",un+"-toggle",_n);ai.href="#",ai.title="Layers",ai.setAttribute("role","button"),ss(ai,{keydown:function(Mi){Mi.keyCode===13&&this._expandSafely()},click:function(Mi){Oo(Mi),this._expandSafely()}},this),kn||this.expand(),this._baseLayersList=Us("div",un+"-base",$n),this._separator=Us("div",un+"-separator",$n),this._overlaysList=Us("div",un+"-overlays",$n),_n.appendChild($n)},_getLayer:function(un){for(var _n=0;_n<this._layers.length;_n++)if(this._layers[_n]&&dn(this._layers[_n].layer)===un)return this._layers[_n]},_addLayer:function(un,_n,kn){this._map&&un.on("add remove",this._onLayerChange,this),this._layers.push({layer:un,name:_n,overlay:kn}),this.options.sortLayers&&this._layers.sort(on(function($n,ai){return this.options.sortFunction($n.layer,ai.layer,$n.name,ai.name)},this)),this.options.autoZIndex&&un.setZIndex&&(this._lastZIndex++,un.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Sd(this._baseLayersList),Sd(this._overlaysList),this._layerControlInputs=[];var un,_n,kn,$n,ai=0;for(kn=0;kn<this._layers.length;kn++)$n=this._layers[kn],this._addItem($n),_n=_n||$n.overlay,un=un||!$n.overlay,ai+=$n.overlay?0:1;return this.options.hideSingleBase&&(un=un&&ai>1,this._baseLayersList.style.display=un?"":"none"),this._separator.style.display=_n&&un?"":"none",this},_onLayerChange:function(un){this._handlingClick||this._update();var _n=this._getLayer(dn(un.target)),kn=_n.overlay?un.type==="add"?"overlayadd":"overlayremove":un.type==="add"?"baselayerchange":null;kn&&this._map.fire(kn,_n)},_createRadioElement:function(un,_n){var kn='<input type="radio" class="leaflet-control-layers-selector" name="'+un+'"'+(_n?' checked="checked"':"")+"/>",$n=document.createElement("div");return $n.innerHTML=kn,$n.firstChild},_addItem:function(un){var _n=document.createElement("label"),kn=this._map.hasLayer(un.layer),$n;un.overlay?($n=document.createElement("input"),$n.type="checkbox",$n.className="leaflet-control-layers-selector",$n.defaultChecked=kn):$n=this._createRadioElement("leaflet-base-layers_"+dn(this),kn),this._layerControlInputs.push($n),$n.layerId=dn(un.layer),ss($n,"click",this._onInputClick,this);var ai=document.createElement("span");ai.innerHTML=" "+un.name;var Mi=document.createElement("span");_n.appendChild(Mi),Mi.appendChild($n),Mi.appendChild(ai);var Gi=un.overlay?this._overlaysList:this._baseLayersList;return Gi.appendChild(_n),this._checkDisabledLayers(),_n},_onInputClick:function(){if(!this._preventClick){var un=this._layerControlInputs,_n,kn,$n=[],ai=[];this._handlingClick=!0;for(var Mi=un.length-1;Mi>=0;Mi--)_n=un[Mi],kn=this._getLayer(_n.layerId).layer,_n.checked?$n.push(kn):_n.checked||ai.push(kn);for(Mi=0;Mi<ai.length;Mi++)this._map.hasLayer(ai[Mi])&&this._map.removeLayer(ai[Mi]);for(Mi=0;Mi<$n.length;Mi++)this._map.hasLayer($n[Mi])||this._map.addLayer($n[Mi]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var un=this._layerControlInputs,_n,kn,$n=this._map.getZoom(),ai=un.length-1;ai>=0;ai--)_n=un[ai],kn=this._getLayer(_n.layerId).layer,_n.disabled=kn.options.minZoom!==void 0&&$n<kn.options.minZoom||kn.options.maxZoom!==void 0&&$n>kn.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var un=this._section;this._preventClick=!0,ss(un,"click",Oo),this.expand();var _n=this;setTimeout(function(){Mo(un,"click",Oo),_n._preventClick=!1})}}),Wc=function(un,_n,kn){return new Os(un,_n,kn)},rc=mc.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(un){var _n="leaflet-control-zoom",kn=Us("div",_n+" leaflet-bar"),$n=this.options;return this._zoomInButton=this._createButton($n.zoomInText,$n.zoomInTitle,_n+"-in",kn,this._zoomIn),this._zoomOutButton=this._createButton($n.zoomOutText,$n.zoomOutTitle,_n+"-out",kn,this._zoomOut),this._updateDisabled(),un.on("zoomend zoomlevelschange",this._updateDisabled,this),kn},onRemove:function(un){un.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(un){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(un.shift
vendor: 2,119 bytes, line 2
2Key?3:1))},_zoomOut:function(un){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(un.shiftKey?3:1))},_createButton:function(un,_n,kn,$n,ai){var Mi=Us("a",kn,$n);return Mi.innerHTML=un,Mi.href="#",Mi.title=_n,Mi.setAttribute("role","button"),Mi.setAttribute("aria-label",_n),Ru(Mi),ss(Mi,"click",Iu),ss(Mi,"click",ai,this),ss(Mi,"click",this._refocusOnMap,this),Mi},_updateDisabled:function(){var un=this._map,_n="leaflet-disabled";$o(this._zoomInButton,_n),$o(this._zoomOutButton,_n),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||un._zoom===un.getMinZoom())&&(Hs(this._zoomOutButton,_n),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||un._zoom===un.getMaxZoom())&&(Hs(this._zoomInButton,_n),this._zoomInButton.setAttribute("aria-disabled","true"))}});Js.mergeOptions({zoomControl:!0}),Js.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new rc,this.addControl(this.zoomControl))});var Vu=function(un){return new rc(un)},md=mc.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(un){var _n="leaflet-control-scale",kn=Us("div",_n),$n=this.options;return this._addScales($n,_n+"-line",kn),un.on($n.updateWhenIdle?"moveend":"move",this._update,this),un.whenReady(this._update,this),kn},onRemove:function(un){un.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(un,_n,kn){un.metric&&(this._mScale=Us("div",_n,kn)),un.imperial&&(this._iScale=Us("div",_n,kn))},_update:function(){var un=this._map,_n=un.getSize().y/2,kn=un.distance(un.containerPointToLatLng([0,_n]),un.containerPointToLatLng([this.options.maxWidth,_n]));this._updateScales(kn)},_updateScales:function(un){this.options.metric&&un&&this._updateMetric(un),this.options.imperial&&un&&this._updateImperial(un)},_updateMetric:function(un){var _n=this._getRoundNum(un),kn=_n<1e3?_n+" m":_n/1e3+" km";this._updateScale(this._mScale,kn,_n/un)},_updateImperial:function(un){var _n=un*3.2808399,kn,$n,ai;_n>
25280?(kn=_n/5280,$n=this._getRoundNum(kn),this._updateScale(this._iScale,$n+" mi",$n/kn)):(ai=this._getRoundNum(_n),this._updateScale(this._iScale,ai+" ft",ai/_n))},_updateScale:function(un,_n,kn){un.style.width=Math.round(this.options.maxWidth*kn)+"px",un.innerHTML=_n},_getRoundNum:function(un){var _n=Math.pow(10,(Math.floor(un)+"").length-1),kn=un/_n;return kn=kn>=10?10:kn>=5?5:kn>=3?3:kn>=2?2:1,_n*kn}}),_d=function(un){return new md(un)},hh='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',An=mc.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ls.inlineSvg?hh+" ":"")+"Leaflet</a>"},initialize:function(un){Mn(this,un),this._attributions={}},onAdd:function(un){un.attributionControl=this,this._container=Us("div","leaflet-control-attribution"),Ru(this._container);for(var _n in un._layers)un._layers[_n].getAttribution&&this.addAttribution(un._layers[_n].getAttribution());return this._update(),un.on("layeradd",this._addAttribution,this),this._container},onRemove:function(un){un.off("layeradd",this._addAttribution,this)},_addAttribution:function(un){un.layer.getAttribution&&(this.addAttribution(un.layer.getAttribution()),un.layer.once("remove",function(){this.removeAttribution(un.layer.getAttribution())},this))},setPrefix:function(un){return this.options.prefix=un,this._update(),this},addAttribution:function(un){return un?(this._attributions[un]||(this._attributions[un]=0),this._attributions[un]++,this._update(),this):this},removeAttribution:function(un){return un?(this._attributions[un]&&(this._attributions[un]--,this._update()),this):this},_update:function(){if(this._map){var un=[];for(var _n in this._attributions)this._attributions[_n]&&un.push(_n);var kn=[];this.options.prefix&&kn.push(this.options.prefix),un.length&&kn.push(un.join(", ")),this._container.innerHTML=kn.join(' <span aria-hidden="true">|</span> ')}}});Js.mergeOptions({attributionControl:!0}),Js.addInitHook(function(){this.options.attributionControl&&new An().addTo(this)});var gi=function(un){return new An(un)};mc.Layers=Os,mc.Zoom=rc,mc.Scale=md,mc.Attribution=An,ou.layers=Wc,ou.zoom=Vu,ou.scale=_d,ou.attribution=gi;var Ii=wi.extend({initialize:function(un){this._map=un},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ii.addTo=function(un,_n){return un.addHandler(_n,this),this};var Xi={Events:ji},ua=ls.touch?"touchstart mousedown":"mousedown",Aa=Yi.extend({options:{clickTolerance:3},initialize:function(un,_n,kn,$n){Mn(this,$n),this._element=un,this._dragStartTarget=_n||un,this._preventOutline=kn},enable:function(){this._enabled||(ss(this._dragStartTarget,ua,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Aa._dragging===this&&this.finishDrag(!0),Mo(this._dragStartTarget,ua,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(un){if(this._enabled&&(this._moved=!1,!Dc(this._element,"leaflet-zoom-anim"))){if(un.touches&&un.touches.length!==1){Aa._dragging===this&&this.finishDrag();return}if(!(Aa._dragging||un.shiftKey||un.which!==1&&un.button!==1&&!un.touches)&&(Aa._dragging=this,this._preventOutline&&fc(this._element),Qd(),Xu(),!this._moving)){this.fire("down");var _n=un.touches?un.touches[0]:un,kn=ku(this._element);this._startPoint=new Pi(_n.clientX,_n.clientY),this._startPos=Co(this._element),this._parentScale=fd(kn);var $n=un.type==="mousedown";ss(document,$n?"mousemove":"touchmove",this._onMove,this),ss(document,$n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(un){if(this._enabled){if(un.touches&&un.touches.length>1){this._moved=!0;return}var _n=un.touches&&un.touches.length===1?un.touches[0]:un,kn=new Pi(_n.clientX,_n.clientY)._subtract(this._startPoint);!kn.x&&!kn.y||Math.abs(kn.x)+Math.abs(kn.y)<this.options.clickTolerance||(kn.x/=this._parentScale.x,kn.y/=this._parentScale.y,Oo(un),this._moved||(this.fire("dragstart"),this._moved=!0,Hs(document.body,"leaflet-dragging"),this._lastTarget=un.target||un.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Hs(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(kn),this._moving=!0,this._lastEvent=un,this._updatePosition())}},_updatePosition:function(){var un={originalEvent:this._lastEvent};this.fire("predrag",un),no(this._element,this._newPos),this.fire("drag",un)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(un){$o(document.body,"leaflet-dragging"),this._lastTarget&&($o(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Mo(document,"mousemove touchmove",this._onMove,this),Mo(document,"mouseup touchend touchcancel",this._onUp,this),eh(),wu();var _n=this._moved&&this._moving;this._moving=!1,Aa._dragging=!1,_n&&this.fire("dragend",{noInertia:un,distance:this._newPos.distanceTo(this._startPos)})}});function Va(un,_n,kn){var $n,ai=[1,4,2,8],Mi,Gi,ma,Sa,Wa,ms,Ys,eo;for(Mi=0,ms=un.length;Mi<ms;Mi++)un[Mi]._code=_c(un[Mi],_n);for(ma=0;ma<4;ma++){for(Ys=ai[ma],$n=[],Mi=0,ms=un.length,Gi=ms-1;Mi<ms;Gi=Mi++)Sa=un[Mi],Wa=un[Gi],Sa._code&Ys?Wa._code&Ys||(eo=Uc(Wa,Sa,Ys,_n,kn),eo._code=_c(eo,_n),$n.push(eo)):(Wa._code&Ys&&(eo=Uc(Wa,Sa,Ys,_n,kn),eo._code=_c(eo,_n),$n.push(eo)),$n.push(Sa));un=$n}return un}
2function Ms(un,_n){var kn,$n,ai,Mi,Gi,ma,Sa,Wa,ms;if(!un||un.length===0)throw new Error("latlngs not passed");pc(un)||(console.warn("latlngs are not flat! Only the first ring will be used"),un=un[0]);var Ys=Hi([0,0]),eo=Ni(un),bc=eo.getNorthWest().distanceTo(eo.getSouthWest())*eo.getNorthEast().distanceTo(eo.getNorthWest());bc<1700&&(Ys=xs(un));var sc=un.length,Jc=[];for(kn=0;kn<sc;kn++){var Bc=Hi(un[kn]);Jc.push(_n.project(Hi([Bc.lat-Ys.lat,Bc.lng-Ys.lng])))}for(ma=Sa=Wa=0,kn=0,$n=sc-1;kn<sc;$n=kn++)ai=Jc[kn],Mi=Jc[$n],Gi=ai.y*Mi.x-Mi.y*ai.x,Sa+=(ai.x+Mi.x)*Gi,Wa+=(ai.y+Mi.y)*Gi,ma+=Gi*3;ma===0?ms=Jc[0]:ms=[Sa/ma,Wa/ma];var Rd=_n.unproject($i(ms));return Hi([Rd.lat+Ys.lat,Rd.lng+Ys.lng])}function xs(un){for(var _n=0,kn=0,$n=0,ai=0;ai<un.length;ai++){var Mi=Hi(un[ai]);_n+=Mi.lat,kn+=Mi.lng,$n++}return Hi([_n/$n,kn/$n])}var Vs={__proto__:null,clipPolygon:Va,polygonCenter:Ms,centroid:xs};function Rs(un,_n){if(!_n||!un.length)return un.slice();var kn=_n*_n;return un=jo(un,kn),un=Qo(un,kn),un}function Qs(un,_n,kn){return Math.sqrt(lu(un,_n,kn,!0))}function Ro(un,_n,kn){return lu(un,_n,kn)}function Qo(un,_n){var kn=un.length,$n=typeof Uint8Array<"u"?Uint8Array:Array,ai=new $n(kn);ai[0]=ai[kn-1]=1,Lo(un,ai,_n,0,kn-1);var Mi,Gi=[];for(Mi=0;Mi<kn;Mi++)ai[Mi]&&Gi.push(un[Mi]);return Gi}function Lo(un,_n,kn,$n,ai){var Mi=0,Gi,ma,Sa;for(ma=$n+1;ma<=ai-1;ma++)Sa=lu(un[ma],un[$n],un[ai],!0),Sa>Mi&&(Gi=ma,Mi=Sa);Mi>kn&&(_n[Gi]=1,Lo(un,_n,kn,$n,Gi),Lo(un,_n,kn,Gi,ai))}function jo(un,_n){for(var kn=[un[0]],$n=1,ai=0,Mi=un.length;$n<Mi;$n++)Hu(un[$n],un[ai])>_n&&(kn.push(un[$n]),ai=$n);return ai<Mi-1&&kn.push(un[Mi-1]),kn}var zo;function dc(un,_n,kn,$n,ai){var Mi=$n?zo:_c(un,kn),Gi=_c(_n,kn),ma,Sa,Wa;for(zo=Gi;;){if(!(Mi|Gi))return[un,_n];if(Mi&Gi)return!1;ma=Mi||Gi,Sa=Uc(un,_n,ma,kn,ai),Wa=_c(Sa,kn),ma===Mi?(un=Sa,Mi=Wa):(_n=Sa,Gi=Wa)}}function Uc(un,_n,kn,$n,ai){var Mi=_n.x-un.x,Gi=_n.y-un.y,ma=$n.min,Sa=$n.max,Wa,ms;return kn&8?(Wa=un.x+Mi*(Sa.y-un.y)/Gi,ms=Sa.y):kn&4?(Wa=un.x+Mi*(ma.y-un.y)/Gi,ms=ma.y):kn&2?(Wa=Sa.x,ms=un.y+Gi*(Sa.x-un.x)/Mi):kn&1&&(Wa=ma.x,ms=un.y+Gi*(ma.x-un.x)/Mi),new Pi(Wa,ms,ai)}function _c(un,_n){var kn=0;return un.x<_n.min.x?kn|=1:un.x>_n.max.x&&(kn|=2),un.y<_n.min.y?kn|=4:un.y>_n.max.y&&(kn|=8),kn}function Hu(un,_n){var kn=_n.x-un.x,$n=_n.y-un.y;return kn*kn+$n*$n}function lu(un,_n,kn,$n){var ai=_n.x,Mi=_n.y,Gi=kn.x-ai,ma=kn.y-Mi,Sa=Gi*Gi+ma*ma,Wa;return Sa>0&&(Wa=((un.x-ai)*Gi+(un.y-Mi)*ma)/Sa,Wa>1?(ai=kn.x,Mi=kn.y):Wa>0&&(ai+=Gi*Wa,Mi+=ma*Wa)),Gi=un.x-ai,ma=un.y-Mi,$n?Gi*Gi+ma*ma:new Pi(ai,Mi)}function pc(un){return!Rn(un[0])||typeof un[0][0]!="object"&&typeof un[0][0]<"u"}function ic(un){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pc(un)}function id(un,_n){var kn,$n,ai,Mi,Gi,ma,Sa,Wa;if(!un||un.length===0)throw new Error("latlngs not passed");pc(un)||(console.warn("latlngs are not flat! Only the first ring will be used"),un=un[0]);var ms=Hi([0,0]),Ys=Ni(un),eo=Ys.getNorthWest().distanceTo(Ys.getSouthWest
2())*Ys.getNorthEast().distanceTo(Ys.getNorthWest());eo<1700&&(ms=xs(un));var bc=un.length,sc=[];for(kn=0;kn<bc;kn++){var Jc=Hi(un[kn]);sc.push(_n.project(Hi([Jc.lat-ms.lat,Jc.lng-ms.lng])))}for(kn=0,$n=0;kn<bc-1;kn++)$n+=sc[kn].distanceTo(sc[kn+1])/2;if($n===0)Wa=sc[0];else for(kn=0,Mi=0;kn<bc-1;kn++)if(Gi=sc[kn],ma=sc[kn+1],ai=Gi.distanceTo(ma),Mi+=ai,Mi>$n){Sa=(Mi-$n)/ai,Wa=[ma.x-Sa*(ma.x-Gi.x),ma.y-Sa*(ma.y-Gi.y)];break}var Bc=_n.unproject($i(Wa));return Hi([Bc.lat+ms.lat,Bc.lng+ms.lng])}var cu={__proto__:null,simplify:Rs,pointToSegmentDistance:Qs,closestPointOnSegment:Ro,clipSegment:dc,_getEdgeIntersection:Uc,_getBitCode:_c,_sqClosestPointOnSegment:lu,isFlat:pc,_flat:ic,polylineCenter:id},Mu={project:function(un){return new Pi(un.lng,un.lat)},unproject:function(un){return new yi(un.y,un.x)},bounds:new Wi([-180,-90],[180,90])},Io={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Wi([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(un){var _n=Math.PI/180,kn=this.R,$n=un.lat*_n,ai=this.R_MINOR/kn,Mi=Math.sqrt(1-ai*ai),Gi=Mi*Math.sin($n),ma=Math.tan(Math.PI/4-$n/2)/Math.pow((1-Gi)/(1+Gi),Mi/2);return $n=-kn*Math.log(Math.max(ma,1e-10)),new Pi(un.lng*_n*kn,$n)},unproject:function(un){for(var _n=180/Math.PI,kn=this.R,$n=this.R_MINOR/kn,ai=Math.sqrt(1-$n*$n),Mi=Math.exp(-un.y/kn),Gi=Math.PI/2-2*Math.atan(Mi),ma=0,Sa=.1,Wa;ma<15&&Math.abs(Sa)>1e-7;ma++)Wa=ai*Math.sin(Gi),Wa=Math.pow((1-Wa)/(1+Wa),ai/2),Sa=Math.PI/2-2*Math.atan(Mi*Wa)-Gi,Gi+=Sa;return new yi(Gi*_n,un.x*_n/kn)}},pd={__proto__:null,LonLat:Mu,Mercator:Io,SphericalMercator:Ei},gd=an({},Ji,{code:"EPSG:3395",projection:Io,transformation:(function(){var un=.5/(Math.PI*Io.R);return vi(un,.5,-un,.5)})()}),Cd=an({},Ji,{code:"EPSG:4326",projection:Mu,transformation:vi(1/180,1,-1/180,.5)}),rh=an({},Ui,{projection:Mu,transformation:vi(1,0,-1,0),scale:function(un){return Math.pow(2,un)},zoom:function(un){return Math.log(un)/Math.LN2},distance:function(un,_n){var kn=_n.lng-un.lng,$n=_n.lat-un.lat;return Math.sqrt(kn*kn+$n*$n)},infinite:!0});Ui.Earth=Ji,Ui.EPSG3395=gd,Ui.EPSG3857=ti,Ui.EPSG900913=ui,Ui.EPSG4326=Cd,Ui.Simple=rh;var To=Yi.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(un){return un.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(un){return un&&un.removeLayer(this),this},getPane:function(un){return this._map.getPane(un?this.options[un]||un:this.options.pane)},addInteractiveTarget:function(un){return this._map._targets[dn(un)]=this,this},removeInteractiveTarget:function(un){return delete this._map._targets[dn(un)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(un){var _n=un.target;if(_n.hasLayer(this)){if(this._map=_n,this._zoomAnimated=_n._zoomAnimated,this.getEvents){var kn=this.getEvents();_n.on(kn,this),this.once("remove",function(){_n.off(kn,this)},this)}this.onAdd(_n),this.fire("add"),_n.fire("layeradd",{layer:this})}}});Js.include({addLayer:function(un){if(!un._layerAdd)throw new Error("The provided object is not a Layer.");var _n=dn(un);return this._layers[_n]?this:(this._layers[_n]=un,un._mapToAdd=this,un.beforeAdd&&un.beforeAdd(this),this.whenReady(un._layerAdd,un),this)},removeLayer:function(un){var _n=dn(un);return this._layers[_n]?(this._loaded&&un.onRemove(this),delete this._layers[_n],this._loaded&&(this.fire("layerremove",{layer:un}),un.fire("remove")),un._map=un._mapToAdd=null,this):this},hasLayer:function(un){return dn(un)in this._layers},eachLayer:function(un,_n){for(var kn in this._layers)un.call(_n,this._layers[kn]);return this},_addLayers:function(un){un=un?Rn(un)?un:[un]:[];for(var _n=0,kn=un.length;_n<kn;_n++)this.addLayer(un[_n])},_addZoomLimit:function(un){(!isNaN(un.options.maxZoom)||!isNaN(un.options.minZoom))&&(this._zoomBoundLayers[dn(un)]=un,this._updateZoomLevels())},_removeZoomLimit:function(un){var _n=dn(un);this._zoomBoundLayers[_n]&&(delete this._zoomBoundLayers[_n],this._updateZoomLevels())},_updateZoomLevels:function(){var un=1/0,_n=-1/0,kn=this._getZoomSpan();for(var $n in this._zoomBoundLayers){var ai=this._zoomBoundLayers[$n].options;un=ai.minZoom===void 0?un:Math.min(un,ai.minZoom),_n=ai.maxZoom===void 0?_n:Math.max(_n,ai.maxZoom)}
2this._layersMaxZoom=_n===-1/0?void 0:_n,this._layersMinZoom=un===1/0?void 0:un,kn!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Nc=To.extend({initialize:function(un,_n){Mn(this,_n),this._layers={};var kn,$n;if(un)for(kn=0,$n=un.length;kn<$n;kn++)this.addLayer(un[kn])},addLayer:function(un){var _n=this.getLayerId(un);return this._layers[_n]=un,this._map&&this._map.addLayer(un),this},removeLayer:function(un){var _n=un in this._layers?un:this.getLayerId(un);return this._map&&this._layers[_n]&&this._map.removeLayer(this._layers[_n]),delete this._layers[_n],this},hasLayer:function(un){var _n=typeof un=="number"?un:this.getLayerId(un);return _n in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(un){var _n=Array.prototype.slice.call(arguments,1),kn,$n;for(kn in this._layers)$n=this._layers[kn],$n[un]&&$n[un].apply($n,_n);return this},onAdd:function(un){this.eachLayer(un.addLayer,un)},onRemove:function(un){this.eachLayer(un.removeLayer,un)},eachLayer:function(un,_n){for(var kn in this._layers)un.call(_n,this._layers[kn]);return this},getLayer:function(un){return this._layers[un]},getLayers:function(){var un=[];return this.eachLayer(un.push,un),un},setZIndex:function(un){return this.invoke("setZIndex",un)},getLayerId:function(un){return dn(un)}}),ad=function(un,_n){return new Nc(un,_n)},Ds=Nc.extend({addLayer:function(un){return this.hasLayer(un)?this:(un.addEventParent(this),Nc.prototype.addLayer.call(this,un),this.fire("layeradd",{layer:un}))},removeLayer:function(un){return this.hasLayer(un)?(un in this._layers&&(un=this._layers[un]),un.removeEventParent(this),Nc.prototype.removeLayer.call(this,un),this.fire("layerremove",{layer:un})):this},setStyle:function(un){return this.invoke("setStyle",un)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var un=new Si;for(var _n in this._layers){var kn=this._layers[_n];un.extend(kn.getBounds?kn.getBounds():kn.getLatLng())}return un}}),qc=function(un,_n){return new Ds(un,_n)},Gc=wi.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(un){Mn(this,un)},createIcon:function(un){return this._createIcon("icon",un)},createShadow:function(un){return this._createIcon("shadow",un)},_createIcon:function(un,_n){var kn=this._getIconUrl(un);if(!kn){if(un==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var $n=this._createImg(kn,_n&&_n.tagName==="IMG"?_n:null);return this._setIconStyles($n,un),(this.options.crossOrigin||this.options.crossOrigin==="")&&($n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),$n},_setIconStyles:function(un,_n){var kn=this.options,$n=kn[_n+"Size"];typeof $n=="number"&&($n=[$n,$n]);var ai=$i($n),Mi=$i(_n==="shadow"&&kn.shadowAnchor||kn.iconAnchor||ai&&ai.divideBy(2,!0));un.className="leaflet-marker-"+_n+" "+(kn.className||""),Mi&&(un.style.marginLeft=-Mi.x+"px",un.style.marginTop=-Mi.y+"px"),ai&&(un.style.width=ai.x+"px",un.style.height=ai.y+"px")},_createImg:function(un,_n){return _n=_n||document.createElement("img"),_n.src=un,_n},_getIconUrl:function(un){return ls.retina&&this.options[un+"RetinaUrl"]||this.options[un+"Url"]}});function yd(un){return new Gc(un)}var ju=Gc.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(un){return typeof ju.imagePath!="string"&&(ju.imagePath=this._detectIconPath()),(this.options.imagePath||ju.imagePath)+Gc.prototype._getIconUrl.call(this,un)},_stripUrl:function(un){var _n=function(kn,$n,ai){var Mi=$n.exec(kn);return Mi&&Mi[ai]};return un=_n(un,/^url\((['"])?(.+)\1\)$/,2),un&&_n(un,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var un=Us("div","leaflet-default-icon-path",document.body),_n=Ju(un,"background-image")||Ju(un,"backgroundImage");if(document.body.removeChild(un),_n=this._stripUrl(_n),_n)return _n;var kn=document.querySelector('link[href$="leaflet.css"]');return kn?kn.href.substring(0,kn.href.length-11-1):""}}),zu=Ii.extend({initialize:function(un){this._marker=un},addHooks:function(){var un=this._marker._icon;this._draggable||(this._draggable=new Aa(un,un,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Hs(un,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&$o(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(un){var _n=this._marker,kn=_n._map,$n=this._marker.options.autoPanSpeed,ai=this._marker.options.autoPanPadding,Mi=Co(_n._icon),Gi=kn.getPixelBounds(),ma=kn.getPixelOrigin(),Sa=hi(Gi.min._subtract(ma).add(ai),Gi.max._subtract(ma).subtract(ai));if(!Sa.contains(Mi)){var Wa=$i((Math.max(Sa.max.x,Mi.x)-Sa.max.x)/(Gi.max.x-Sa.max.x)-(Math.min(Sa.min.x,Mi.x)-Sa.min.x)/(Gi.min.x-Sa.min.x),(Math.max(Sa.max.y,Mi.y)-Sa.max.y)/(Gi.max.y-Sa.max.y)-(Math.min(Sa.min.y,Mi.y)-Sa.min.y)/(Gi.min.y-Sa.min.y)).multiplyBy($n);kn.panBy(Wa,{animate:!1}),this._draggable._newPos._add(Wa),this._draggable._startPos._add(Wa),no(_n._icon,this._draggable._newPos),this._onDrag(un),this._panRequest=ei(this._adjustPan.bind(this,un))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(un){this._marker.options.autoPan&&(ci(this._panRequest),this._panRequest=ei(this._adjustPan.bind(this,un)))},_onDrag:function(un){var _n=this._marker,kn=_n._shadow,$n=Co(_n._icon),ai=_n._map.layerPointToLatLng($n);kn&&no(kn,$n),_n._latlng=ai,un.latlng=ai,un.oldLatLng=this._oldLatLng,_n.fire("move",un).fire("drag",un)},_onDragEnd:function(un){ci(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",un)}}),Lu=To.extend({options:{icon:new ju,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(un,_n){Mn(this,_n),this._latlng=Hi(un)},onAdd:function(un){this._zoomAnimated=this._zoomAnimated&&un.options.markerZoomAnimation,this._zoomAnimated&&un.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(un){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&un.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(un){var _n=this._latlng;return this._latlng=Hi(un),this.update(),this.fire("move",{oldLatLng:_n,latlng:this._latlng})},setZIndexOffset:function(un){return this.options.zIndexOffset=un,this.update()},getIcon:function(){return this.options.icon},setIcon:function(un){return this.options.icon=un,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var un=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(un)}return this},_initIcon:function(){var un=this.options,_n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),kn=un.icon.createIcon(this._icon),$n=!1;kn!==this._icon&&(this._icon&&this._removeIcon(),$n=!0,un.title&&(kn.title=un.title),kn.tagName==="IMG"&&(kn.alt=un.alt||"")),Hs(kn,_n),un.keyboard&&(kn.tabIndex="0",kn.setAttribute("role","button")),this._icon=kn,un.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ss(kn,"focus",this._panOnFocus,this);var ai=un.icon.createShadow(this._shadow),Mi=!1;ai!==this._shadow&&(this._removeShadow(),Mi=!0),ai&&(Hs(ai,_n),ai.alt=""),this._shadow=ai,un.opacity<1&&this._updateOpacity(),$n&&this.getPane().appendChild(this._icon),this._initInteraction(),ai&&Mi&&this.getPane(un.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,651 bytes, line 2
2),this.options.autoPanOnFocus&&Mo(this._icon,"focus",this._panOnFocus,this),bo(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&bo(this._shadow),this._shadow=null},_setPos:function(un){this._icon&&no(this._icon,un),this._shadow&&no(this._shadow,un),this._zIndex=un.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(un){this._icon&&(this._icon.style.zIndex=this._zIndex+un)},_animateZoom:function(un){var _n=this._map._latLngToNewLayerPoint(this._latlng,un.zoom,un.center).round();this._setPos(_n)},_initInteraction:function(){if(this.options.interactive&&(Hs(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),zu)){var un=this.options.draggable;this.dragging&&(un=this.dragging.enabled(),this.dragging.disable()),this.dragging=new zu(this),un&&this.dragging.enable()}},setOpacity:function(un){return this.options.opacity=un,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var un=this.options.opacity;this._icon&&Xo(this._icon,un),this._shadow&&Xo(this._shadow,un)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var un=this._map;if(un){var _n=this.options.icon.options,kn=_n.iconSize?$i(_n.iconSize):$i(0,0),$n=_n.iconAnchor?$i(_n.iconAnchor):$i(0,0);un.panInside(this._latlng,{paddingTopLeft:$n,paddingBottomRight:kn.subtract($n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Wo(un,_n){return new Lu(un,_n)}var Zl=To.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(un){this._renderer=un.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(un){return Mn(this,un),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&un&&Object.prototype.hasOwnProperty.call(un,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),uu=Zl.extend({options:{fill:!0,radius:10},initialize:function(un,_n){Mn(this,_n),this._latlng=Hi(un),this._radius=this.options.radius},setLatLng:function(un){var _n=this._latlng;return this._latlng=Hi(un),this.redraw(),this.fire("move",{oldLatLng:_n,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(un){return this.options.radius=this._radius=un,this.redraw()},getRadius:function(){return this._radius},setStyle:function(un){var _n=un&&un.radius||this._radius;return Zl.prototype.setStyle.call(this,un),this.setRadius(_n),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var un=this._radius,_n=this._radiusY||un,kn=this._clickTolerance(),$n=[un+kn,_n+kn];this._pxBounds=new Wi(this._point.subtract($n),this._point.add($n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(un){return un.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Wu(un,_n){return new uu(un,_n)}var vc=uu.extend({initialize:function(un,_n,kn){if(typeof _n=="number"&&(_n=an({},kn,{radius:_n})),Mn(this,_n),this._latlng=Hi(un),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(un){return this._mRadius=un,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var un=[this._radius,this._radiusY||this._radius];return new Si(this._map.layerPointToLatLng(this._point.subtract(un)),this._map.layerPointToLatLng(this._point.add(un)))},setStyle:Zl.prototype.setStyle,_project:function(){var un=this._latlng.lng,_n=this._latlng.lat,kn=this._map,$n=kn.options.crs;if($n.distance===Ji.distance){var ai=Math.PI/180,Mi=this._mRadius/Ji.R/ai,Gi=kn.project([_n+Mi,un]),ma=kn.project([_n-Mi,un]),Sa=Gi.add(ma).divideBy(2),Wa=kn.unproject(Sa).lat,ms=Math.acos((Math.cos(Mi*ai)-Math.sin(_n*ai)*Math.sin(Wa*ai))/(Math.cos(_n*ai)*Math.cos(Wa*ai)))/ai;(isNaN(ms)||ms===0)&&(ms=Mi/Math.cos(Math.PI/180*_n)),this._point=Sa.subtract(kn.getPixelOrigin()),this._radius=isNaN(ms)?0:Sa.x-kn.project([Wa,un-ms]).x,this._radiusY=Sa.y-Gi.y}else{var Ys=$n.unproject($n.project(this._latlng).subtract([this._mRadius,0]));this._point=kn.latLngToLayerPoint(this._latlng),this._radius=this._point.x-kn.latLngToLayerPoint(Ys).x}this._updateBounds()}});function du(un,_n,kn){return new vc(un,_n,kn)}var hc=Zl.extend({options:{smoothFactor:1,noClip:!1},initialize:function(un,_n){Mn(this,_n),this._setLatLngs(un)},getLatLngs:function(){return this._latlngs},setLatLngs:function(un){return this._setLatLngs(un),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(un){for(var _n=1/0,kn=null,$n=lu,ai,Mi,Gi=0,ma=this._parts.length;
2Gi<ma;Gi++)for(var Sa=this._parts[Gi],Wa=1,ms=Sa.length;Wa<ms;Wa++){ai=Sa[Wa-1],Mi=Sa[Wa];var Ys=$n(un,ai,Mi,!0);Ys<_n&&(_n=Ys,kn=$n(un,ai,Mi))}return kn&&(kn.distance=Math.sqrt(_n)),kn},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return id(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(un,_n){return _n=_n||this._defaultShape(),un=Hi(un),_n.push(un),this._bounds.extend(un),this.redraw()},_setLatLngs:function(un){this._bounds=new Si,this._latlngs=this._convertLatLngs(un)},_defaultShape:function(){return pc(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(un){for(var _n=[],kn=pc(un),$n=0,ai=un.length;$n<ai;$n++)kn?(_n[$n]=Hi(un[$n]),this._bounds.extend(_n[$n])):_n[$n]=this._convertLatLngs(un[$n]);return _n},_project:function(){var un=new Wi;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,un),this._bounds.isValid()&&un.isValid()&&(this._rawPxBounds=un,this._updateBounds())},_updateBounds:function(){var un=this._clickTolerance(),_n=new Pi(un,un);this._rawPxBounds&&(this._pxBounds=new Wi([this._rawPxBounds.min.subtract(_n),this._rawPxBounds.max.add(_n)]))},_projectLatlngs:function(un,_n,kn){var $n=un[0]instanceof yi,ai=un.length,Mi,Gi;if($n){for(Gi=[],Mi=0;Mi<ai;Mi++)Gi[Mi]=this._map.latLngToLayerPoint(un[Mi]),kn.extend(Gi[Mi]);_n.push(Gi)}else for(Mi=0;Mi<ai;Mi++)this._projectLatlngs(un[Mi],_n,kn)},_clipPoints:function(){var un=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(un))){if(this.options.noClip){this._parts=this._rings;return}var _n=this._parts,kn,$n,ai,Mi,Gi,ma,Sa;for(kn=0,ai=0,Mi=this._rings.length;kn<Mi;kn++)for(Sa=this._rings[kn],$n=0,Gi=Sa.length;$n<Gi-1;$n++)ma=dc(Sa[$n],Sa[$n+1],un,$n,!0),ma&&(_n[ai]=_n[ai]||[],_n[ai].push(ma[0]),(ma[1]!==Sa[$n+1]||$n===Gi-2)&&(_n[ai].push(ma[1]),ai++))}},_simplifyPoints:function(){for(var un=this._parts,_n=this.options.smoothFactor,kn=0,$n=un.length;kn<$n;kn++)un[kn]=Rs(un[kn],_n)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(un,_n){var kn,$n,ai,Mi,Gi,ma,Sa=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(un))return!1;for(kn=0,Mi=this._parts.length;kn<Mi;kn++)for(ma=this._parts[kn],$n=0,Gi=ma.length,ai=Gi-1;$n<Gi;ai=$n++)if(!(!_n&&$n===0)&&Qs(un,ma[ai],ma[$n])<=Sa)return!0;return!1}});function Uo(un,_n){return new hc(un,_n)}hc._flat=ic;var hu=hc.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ms(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(un){var _n=hc.prototype._convertLatLngs.call(this,un),kn=_n.length;return kn>=2&&_n[0]instanceof yi&&_n[0].equals(_n[kn-1])&&_n.pop(),_n},_setLatLngs:function(un){hc.prototype._setLatLngs.call(this,un),pc(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pc(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var un=this._renderer._bounds,_n=this.options.weight,kn=new Pi(_n,_n);if(un=new Wi(un.min.subtract(kn),un.max.add(kn)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(un))){if(this.options.noClip){this._parts=this._rings;return}for(var $n=0,ai=this._rings.length,Mi;$n<ai;$n++)Mi=Va(this._rings[$n],un,!0),Mi.length&&this._parts.push(Mi)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(un){var _n=!1,kn,$n,ai,Mi,Gi,ma,Sa,Wa;if(!this._pxBounds||!this._pxBounds.contains(un))return!1;for(Mi=0,Sa=this._parts.length;Mi<Sa;Mi++)for(kn=this._parts[Mi],Gi=0,Wa=kn.length,ma=Wa-1;Gi<Wa;ma=Gi++)$n=kn[Gi],ai=kn[ma],$n.y>un.y!=ai.y>un.y&&un.x<(ai.x-$n.x)*(un.y-$n.y)/(ai.y-$n.y)+$n.x&&(_n=!_n);return _n||hc.prototype._containsPoint.call(this,un,!0)}});function xu(un,_n){return new hu(un,_n)}var Ho=Ds.extend({initialize:function(un,_n){Mn(this,_n),this._layers={},un&&this.addData(un)},addData:function(un){var _n=Rn(un)?un:un.features,kn,$n,ai;if(_n){for(kn=0,$n=_n.length;kn<$n;kn++)ai=_n[kn],(ai.geometries||ai.geometry||ai.features||ai.coordinates)&&this.addData(ai);return this}var Mi=this.options;if(Mi.filter&&!Mi.filter(un))return this;var Gi=Zc(un,Mi);return Gi?(Gi.feature=Du(un),Gi.defaultOptions=Gi.options,this.resetStyle(Gi),Mi.onEachFeature&&Mi.onEachFeature(un,Gi),this.addLayer(Gi)):this},resetStyle:function(un){return un===void 0?this.eachLayer(this.resetStyle,this):(un.options=an({},un.defaultOptions),this._setLayerStyle(un,this.options.style),this)},setStyle:function(un){return this.eachLayer(function(_n){this._setLayerStyle(_n,un)},this)},_setLayerStyle:function(un,_n){un.setStyle&&(typeof _n=="function"&&(_n=_n(un.feature)),un.setStyle(_n))}});function Zc(un,_n){var kn=un.type==="Feature"?un.geometry:un,$n=kn?kn.coordinates:null,ai=[],Mi=_n&&_n.pointToLayer,Gi=_n&&_n.coordsToLatLng||vd,ma,Sa,Wa,ms;if(!$n&&!kn)return null;switch(kn.type){case"Point":return ma=Gi($n),Su(Mi,un,ma,_n);case"MultiPoint":for(Wa=0,ms=$n.length;Wa<ms;Wa++)ma=Gi($n[Wa]),ai.push(Su(Mi,un,ma,_n));return new Ds(ai);case"LineString":case"MultiLineString":return Sa=sd($n,kn.type==="LineString"?0:1,Gi),new hc(Sa,_n);case"Polygon":case"MultiPolygon":return Sa=sd($n,kn.type==="Polygon"?1:2,Gi),new hu(Sa,_n);case"GeometryCollection":for(Wa=0,ms=kn.geometries.length;Wa<ms;Wa++){var Ys=Zc({geometry:kn.geometries[Wa],type:"Feature",properties:un.properties},_n);Ys&&ai.push(Ys)}return new Ds(ai);case"FeatureCollection":for(Wa=0,ms=kn.features.length;Wa<ms;Wa++){var eo=Zc(kn.features[Wa],_n);eo&&ai.push(eo)}return new Ds(ai);default:throw new Error("Invalid GeoJSON object.")}}function Su(un,_n,kn,$n){return un?un(_n,kn):new Lu(kn,$n&&$n.markersInheritOptions&&$n)}function vd(un){return new yi(un[1],un[0],un[2])}function sd(un,_n,kn){for(var $n=[],ai=0,Mi=un.length,Gi;ai<Mi;ai++)Gi=_n?sd(un[ai],_n-1,kn):(kn||vd)(un[ai]),$n.push(Gi);return $n}function Tu(un,_n){return un=Hi(un),un.alt!==void 0?[yn(un.lng,_n),yn(un.lat,_n),yn(un.alt,_n)]:[yn(un.lng,_n),yn(un.lat,_n)]}function fu(un,_n,kn,$n){for(var ai=[],Mi=0,Gi=un.length;Mi<Gi;Mi++)ai.push(_n?fu(un[Mi],pc(un[Mi])?0:_n-1,kn,$n):Tu(un[Mi],$n));return!_n&&kn&&ai.length>0&&ai.push(ai[0].slice()),ai}function Ec(un,_n){return un.feature?an({},un.feature,{geometry:_n}):Du(_n)}function Du(un){return un.type==="Feature"||un.type==="FeatureCollection"?un:{type:"Feature",properties:{},geometry:un}}var Pu={toGeoJSON:function(un){return Ec(this,{type:"Point",coordinates:Tu(this.getLatLng(),un)})}};Lu.include(Pu),vc.include(Pu),uu.include(Pu),hc.include({toGeoJSON:function(un){var _n=!pc(this._latlngs),kn=fu(this._latlngs,_n?1:0,!1,un);return Ec(this,{type:(_n?"Multi":"")+"LineString",coordinates:kn})}}),hu.include({toGeoJSON:function(un){var _n=!pc(this._latlngs),kn=_n&&!pc(this._latlngs[0]),$n=fu(this._latlngs,kn?2:_n?1:0,!0,un);return _n||($n=[$n]),Ec(this,{type:(kn?"Multi":"")+"Polygon",coordinates:$n})}}),Nc.include({toMultiPoint:function(un){var _n=[];return this.eachLayer(function(kn){_n.push(kn.toGeoJSON(un).geometry.coordinates)}),Ec(this,{type:"MultiPoint",coordinates:_n})},toGeoJSON:function(un){var _n=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(_n==="MultiPoint")return this.toMultiPoint(un);var kn=_n==="GeometryCollection",$n=[];return this.eachLayer(function(ai){if(ai.toGeoJSON){var Mi=ai.toGeoJSON(un);if(kn)$n.push(Mi.geometry);else{var Gi=Du(Mi);Gi.type==="FeatureCollection"?$n.push.apply($n,Gi.features):$n.push(Gi)}}}),kn?Ec(this,{geometries:$n,type:"GeometryCollection"}):{type:"FeatureCollection",features:$n}}});function od(un,_n){return new Ho(un,_n)}var Kc=od,Oc=To.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(un,_n,kn){this._url=un,this._bounds=Ni(_n),Mn(this,kn)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Hs(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){bo(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(un){return this.options.opacity=un,this._image&&this._updateOpacity(),this},setStyle:function(un){return un.opacity&&this.setOpacity(un.opacity),this},bringToFront:function(){return this._map&&Bo(this._image),this},bringToBack:function(){return this._map&&nu(this._image),this},setUrl:function(un){return this._url=un,this._image&&(this._image.src=un),this},setBounds:function(un){return this._bounds=Ni(un),this._map&&this._reset(),this},getEvents:function(){var un={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(un.zoomanim=this._animateZoom),un},setZIndex:function(un){return this.options.zIndex=un,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var un=this._url.tagName==="IMG",_n=this._image=un?this._url:Us("img");if(Hs(_n,"leaflet-image-layer"),this._zoomAnimated&&Hs(_n,"leaflet-zoom-animated"),this.options.className&&Hs(_n,this.options.className),_n.onselectstart=gn,_n.onmousemove=gn,_n.onload=on(this.fire,this,"load"),_n.onerror=on(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),un){this._url=_n.src;return}_n.src=this._url,_n.alt=this.options.alt},_animateZoom:function(un){var _n=this._map.getZoomScale(un.zoom),kn=this._map._latLngBoundsToNewLayerBounds(this._bounds,un.zoom,un.center).min;ru(this._image,kn,_n)},_reset:function(){var un=this._image,_n=new Wi(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),kn=_n.getSize();no(un,_n.min),un.style.width=kn.x+"px",un.style.height=kn.y+"px"},_updateOpacity:function(){Xo(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var un=this.options.errorOverlayUrl;
2un&&this._url!==un&&(this._url=un,this._image.src=un)},getCenter:function(){return this._bounds.getCenter()}}),_o=function(un,_n,kn){return new Oc(un,_n,kn)},xo=Oc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var un=this._url.tagName==="VIDEO",_n=this._image=un?this._url:Us("video");if(Hs(_n,"leaflet-image-layer"),this._zoomAnimated&&Hs(_n,"leaflet-zoom-animated"),this.options.className&&Hs(_n,this.options.className),_n.onselectstart=gn,_n.onmousemove=gn,_n.onloadeddata=on(this.fire,this,"load"),un){for(var kn=_n.getElementsByTagName("source"),$n=[],ai=0;ai<kn.length;ai++)$n.push(kn[ai].src);this._url=kn.length>0?$n:[_n.src];return}Rn(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(_n.style,"objectFit")&&(_n.style.objectFit="fill"),_n.autoplay=!!this.options.autoplay,_n.loop=!!this.options.loop,_n.muted=!!this.options.muted,_n.playsInline=!!this.options.playsInline;for(var Mi=0;Mi<this._url.length;Mi++){var Gi=Us("source");Gi.src=this._url[Mi],_n.appendChild(Gi)}}});function qo(un,_n,kn){return new xo(un,_n,kn)}var Gs=Oc.extend({_initImage:function(){var un=this._image=this._url;Hs(un,"leaflet-image-layer"),this._zoomAnimated&&Hs(un,"leaflet-zoom-animated"),this.options.className&&Hs(un,this.options.className),un.onselectstart=gn,un.onmousemove=gn}});function Go(un,_n,kn){return new Gs(un,_n,kn)}var wc=To.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(un,_n){un&&(un instanceof yi||Rn(un))?(this._latlng=Hi(un),Mn(this,_n)):(Mn(this,un),this._source=_n),this.options.content&&(this._content=this.options.content)},openOn:function(un){return un=arguments.length?un:this._source._map,un.hasLayer(this)||un.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(un){return this._map?this.close():(arguments.length?this._source=un:un=this._source,this._prepareOpen(),this.openOn(un._map)),this},onAdd:function(un){this._zoomAnimated=un._zoomAnimated,this._container||this._initLayout(),un._fadeAnimated&&Xo(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),un._fadeAnimated&&Xo(this._container,1),this.bringToFront(),this.options.interactive&&(Hs(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(un){un._fadeAnimated?(Xo(this._container,0),this._removeTimeout=setTimeout(on(bo,void 0,this._container),200)):bo(this._container),this.options.interactive&&($o(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(un){return this._latlng=Hi(un),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(un){return this._content=un,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var un={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(un.zoomanim=this._animateZoom),un},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Bo(this._container),this},bringToBack:function(){return this._map&&nu(this._container),this},_prepareOpen:function(un){var _n=this._source;if(!_n._map)return!1;if(_n instanceof Ds){_n=null;var kn=this._source._layers;for(var $n in kn)if(kn[$n]._map){_n=kn[$n];break}if(!_n)return!1;this._source=_n}if(!un)if(_n.getCenter)un=_n.getCenter();else if(_n.getLatLng)un=_n.getLatLng();else if(_n.getBounds)un=_n.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(un),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var un=this._contentNode,_n=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof _n=="string")un.innerHTML=_n;else{for(;un.hasChildNodes();)un.removeChild(un.firstChild);un.appendChild(_n)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var un=this._map.latLngToLayerPoint(this._latlng),_n=$i(this.options.offset),kn=this._getAnchor();this._zoomAnimated?no(this._container,un.add(kn)):_n=_n.add(un).add(kn);var $n=this._containerBottom=-_n.y,ai=this._containerLeft=-Math.round(this._containerWidth/2)+_n.x;this._container.style.bottom=$n+"px",this._container.style.left=ai+"px"}},_getAnchor:function(){return[0,0]}});Js.include({_initOverlay:function(un,_n,kn,$n){var ai=_n;return ai instanceof un||(ai=new un($n).setContent(_n)),kn&&ai.setLatLng(kn),ai}}),To.include({_initOverlay:function(un,_n,kn,$n){var ai=kn;return ai instanceof un?(Mn(ai,$n),ai._source=this):(ai=_n&&!$n?_n:new un($n,this),ai.setContent(kn)),ai}});var Uu=wc.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(un){return un=arguments.length?un:this._source._map,!un.hasLayer(this)&&un._popup&&un._popup.options.autoClose&&un.removeLayer(un._popup),un._popup=this,wc.prototype.openOn.call(this,un)},onAdd:function(un){wc.prototype.onAdd.call(this,un),un.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Zl||this._source.on("preclick",Ou))},onRemove:function(un){wc.prototype.onRemove.call(this,un),un.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Zl||this._source.off("preclick",Ou))},getEvents:function(){var un=wc.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(un.preclick=this.close),this.options.keepInView&&
2(un.moveend=this._adjustPan),un},_initLayout:function(){var un="leaflet-popup",_n=this._container=Us("div",un+" "+(this.options.className||"")+" leaflet-zoom-animated"),kn=this._wrapper=Us("div",un+"-content-wrapper",_n);if(this._contentNode=Us("div",un+"-content",kn),Ru(_n),ed(this._contentNode),ss(_n,"contextmenu",Ou),this._tipContainer=Us("div",un+"-tip-container",_n),this._tip=Us("div",un+"-tip",this._tipContainer),this.options.closeButton){var $n=this._closeButton=Us("a",un+"-close-button",_n);$n.setAttribute("role","button"),$n.setAttribute("aria-label","Close popup"),$n.href="#close",$n.innerHTML='<span aria-hidden="true">&#215;</span>',ss($n,"click",function(ai){Oo(ai),this.close()},this)}},_updateLayout:function(){var un=this._contentNode,_n=un.style;_n.width="",_n.whiteSpace="nowrap";var kn=un.offsetWidth;kn=Math.min(kn,this.options.maxWidth),kn=Math.max(kn,this.options.minWidth),_n.width=kn+1+"px",_n.whiteSpace="",_n.height="";var $n=un.offsetHeight,ai=this.options.maxHeight,Mi="leaflet-popup-scrolled";ai&&$n>ai?(_n.height=ai+"px",Hs(un,Mi)):$o(un,Mi),this._containerWidth=this._container.offsetWidth},_animateZoom:function(un){var _n=this._map._latLngToNewLayerPoint(this._latlng,un.zoom,un.center),kn=this._getAnchor();no(this._container,_n.add(kn))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var un=this._map,_n=parseInt(Ju(this._container,"marginBottom"),10)||0,kn=this._container.offsetHeight+_n,$n=this._containerWidth,ai=new Pi(this._containerLeft,-kn-this._containerBottom);ai._add(Co(this._container));var Mi=un.layerPointToContainerPoint(ai),Gi=$i(this.options.autoPanPadding),ma=$i(this.options.autoPanPaddingTopLeft||Gi),Sa=$i(this.options.autoPanPaddingBottomRight||Gi),Wa=un.getSize(),ms=0,Ys=0;Mi.x+$n+Sa.x>Wa.x&&(ms=Mi.x+$n-Wa.x+Sa.x),Mi.x-ms-ma.x<0&&(ms=Mi.x-ma.x),Mi.y+kn+Sa.y>Wa.y&&(Ys=Mi.y+kn-Wa.y+Sa.y),Mi.y-Ys-ma.y<0&&(Ys=Mi.y-ma.y),(ms||Ys)&&(this.options.keepInView&&(this._autopanning=!0),un.fire("autopanstart").panBy([ms,Ys]))}},_getAnchor:function(){return $i(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Bd=function(un,_n){return new Uu(un,_n)};Js.mergeOptions({closePopupOnClick:!0}),Js.include({openPopup:function(un,_n,kn){return this._initOverlay(Uu,un,_n,kn).openOn(this),this},closePopup:function(un){return un=arguments.length?un:this._popup,un&&un.close(),this}}),To.include({bindPopup:function(un,_n){return this._popup=this._initOverlay(Uu,this._popup,un,_n),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(un){return this._popup&&(this instanceof Ds||(this._popup._source=this),this._popup._prepareOpen(un||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(un){return this._popup&&this._popup.setContent(un),this},getPopup:function(){return this._popup},_openPopup:function(un){if(!(!this._popup||!this._map)){Iu(un);var _n=un.layer||un.target;if(this._popup._source===_n&&!(_n instanceof Zl)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(un.latlng);return}this._popup._source=_n,this.openPopup(un.latlng)}},_movePopup:function(un){this._popup.setLatLng(un.latlng)},_onKeyPress:function(un){un.originalEvent.keyCode===13&&this._openPopup(un)}});var wd=wc.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(un){wc.prototype.onAdd.call(this,un),this.setOpacity(this.options.opacity),un.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(un){wc.prototype.onRemove.call(this,un),un.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var un=wc.prototype.getEvents.call(this);return this.options.permanent||(un.preclick=this.close),un},_initLayout:function(){var un="leaflet-tooltip",_n=un+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Us("div",_n),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+
2dn(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(un){var _n,kn,$n=this._map,ai=this._container,Mi=$n.latLngToContainerPoint($n.getCenter()),Gi=$n.layerPointToContainerPoint(un),ma=this.options.direction,Sa=ai.offsetWidth,Wa=ai.offsetHeight,ms=$i(this.options.offset),Ys=this._getAnchor();ma==="top"?(_n=Sa/2,kn=Wa):ma==="bottom"?(_n=Sa/2,kn=0):ma==="center"?(_n=Sa/2,kn=Wa/2):ma==="right"?(_n=0,kn=Wa/2):ma==="left"?(_n=Sa,kn=Wa/2):Gi.x<Mi.x?(ma="right",_n=0,kn=Wa/2):(ma="left",_n=Sa+(ms.x+Ys.x)*2,kn=Wa/2),un=un.subtract($i(_n,kn,!0)).add(ms).add(Ys),$o(ai,"leaflet-tooltip-right"),$o(ai,"leaflet-tooltip-left"),$o(ai,"leaflet-tooltip-top"),$o(ai,"leaflet-tooltip-bottom"),Hs(ai,"leaflet-tooltip-"+ma),no(ai,un)},_updatePosition:function(){var un=this._map.latLngToLayerPoint(this._latlng);this._setPosition(un)},setOpacity:function(un){this.options.opacity=un,this._container&&Xo(this._container,un)},_animateZoom:function(un){var _n=this._map._latLngToNewLayerPoint(this._latlng,un.zoom,un.center);this._setPosition(_n)},_getAnchor:function(){return $i(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Oh=function(un,_n){return new wd(un,_n)};Js.include({openTooltip:function(un,_n,kn){return this._initOverlay(wd,un,_n,kn).openOn(this),this},closeTooltip:function(un){return un.close(),this}}),To.include({bindTooltip:function(un,_n){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(wd,this._tooltip,un,_n),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(un){if(!(!un&&this._tooltipHandlersAdded)){var _n=un?"off":"on",kn={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?kn.add=this._openTooltip:(kn.mouseover=this._openTooltip,kn.mouseout=this.closeTooltip,kn.click=this._openTooltip,this._map?this._addFocusListeners():kn.add=this._addFocusListeners),this._tooltip.options.sticky&&(kn.mousemove=this._moveTooltip),this[_n](kn),this._tooltipHandlersAdded=!un}},openTooltip:function(un){return this._tooltip&&(this instanceof Ds||(this._tooltip._source=this),this._tooltip._prepareOpen(un)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(un){return this._tooltip&&this._tooltip.setContent(un),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(un){var _n=typeof un.getElement=="function"&&un.getElement();_n&&(ss(_n,"focus",function(){this._tooltip._source=un,this.openTooltip()},this),ss(_n,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(un){var _n=typeof un.getElement=="function"&&un.getElement();_n&&_n.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(un){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var _n=this;this._map.once("moveend",function(){_n._openOnceFlag=!1,_n._openTooltip(un)});return}this._tooltip._source=un.layer||un.target,this.openTooltip(this._tooltip.options.sticky?un.latlng:void 0)}},_moveTooltip:function(un){var _n=un.latlng,kn,$n;this._tooltip.options.sticky&&un.originalEvent&&(kn=this._map.mouseEventToContainerPoint(un.originalEvent),$n=this._map.containerPointToLayerPoint(kn),_n=this._map.layerPointToLatLng($n)),this._tooltip.setLatLng(_n)}});var Mh=Gc.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(un){var _n=un&&un.tagName==="DIV"?un:document.createElement("div"),kn=this.options;if(kn.html instanceof Element?(Sd(_n),_n.appendChild(kn.html)):_n.innerHTML=kn.html!==!1?kn.html:"",kn.bgPos){var $n=$i(kn.bgPos);_n.style.backgroundPosition=-$n.x+"px "+-$n.y+"px"}return this._setIconStyles(_n,"icon"),_n},createShadow:function(){return null}});function fh(un){return new Mh(un)}Gc.Default=ju;var Ad=To.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ls.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(un){Mn(this,un)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
2,beforeAdd:function(un){un._addZoomLimit(this)},onRemove:function(un){this._removeAllTiles(),bo(this._container),un._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Bo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(nu(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(un){return this.options.opacity=un,this._updateOpacity(),this},setZIndex:function(un){return this.options.zIndex=un,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var un=this._clampZoom(this._map.getZoom());un!==this._tileZoom&&(this._tileZoom=un,this._updateLevels()),this._update()}return this},getEvents:function(){var un={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=hn(this._onMoveEnd,this.options.updateInterval,this)),un.move=this._onMove),this._zoomAnimated&&(un.zoomanim=this._animateZoom),un},createTile:function(){return document.createElement("div")},getTileSize:function(){var un=this.options.tileSize;return un instanceof Pi?un:new Pi(un,un)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(un){for(var _n=this.getPane().children,kn=-un(-1/0,1/0),$n=0,ai=_n.length,Mi;$n<ai;$n++)Mi=_n[$n].style.zIndex,_n[$n]!==this._container&&Mi&&(kn=un(kn,+Mi));isFinite(kn)&&(this.options.zIndex=kn+un(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ls.ielt9){Xo(this._container,this.options.opacity);var un=+new Date,_n=!1,kn=!1;for(var $n in this._tiles){var ai=this._tiles[$n];if(!(!ai.current||!ai.loaded)){var Mi=Math.min(1,(un-ai.loaded)/200);Xo(ai.el,Mi),Mi<1?_n=!0:(ai.active?kn=!0:this._onOpaqueTile(ai),ai.active=!0)}}kn&&!this._noPrune&&this._pruneTiles(),_n&&(ci(this._fadeFrame),this._fadeFrame=ei(this._updateOpacity,this))}},_onOpaqueTile:gn,_initContainer:function(){this._container||(this._container=Us("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var un=this._tileZoom,_n=this.options.maxZoom;if(un!==void 0){for(var kn in this._levels)kn=Number(kn),this._levels[kn].el.children.length||kn===un?(this._levels[kn].el.style.zIndex=_n-Math.abs(un-kn),this._onUpdateLevel(kn)):(bo(this._levels[kn].el),this._removeTilesAtZoom(kn),this._onRemoveLevel(kn),delete this._levels[kn]);var $n=this._levels[un],ai=this._map;return $n||($n=this._levels[un]={},$n.el=Us("div","leaflet-tile-container leaflet-zoom-animated",this._container),$n.el.style.zIndex=_n,$n.origin=ai.project(ai.unproject(ai.getPixelOrigin()),un).round(),$n.zoom=un,this._setZoomTransform($n,ai.getCenter(),ai.getZoom()),gn($n.el.offsetWidth),this._onCreateLevel($n)),this._level=$n,$n}},_onUpdateLevel:gn,_onRemoveLevel:gn,_onCreateLevel:gn,_pruneTiles:function(){if(this._map){var un,_n,kn=this._map.getZoom();if(kn>this.options.maxZoom||kn<this.options.minZoom){this._removeAllTiles();return}for(un in this._tiles)_n=this._tiles[un],_n.retain=_n.current;for(un in this._tiles)if(_n=this._tiles[un],_n.current&&!_n.active){var $n=_n.coords;this._retainParent($n.x,$n.y,$n.z,$n.z-5)||this._retainChildren($n.x,$n.y,$n.z,$n.z+2)}for(un in this._tiles)this._tiles[un].retain||this._removeTile(un)}},_removeTilesAtZoom:function(un){for(var _n in this._tiles)this._tiles[_n].coords.z===un&&this._removeTile(_n)},_removeAllTiles:function(){for(var un in this._tiles)this._removeTile(un)},_invalidateAll:function(){for(var un in this._levels)bo(this._levels[un].el),this._onRemoveLevel(Number(un)),delete this._levels[un];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(un,_n,kn,$n){var ai=Math.floor(un/2),Mi=Math.floor(_n/2),Gi=kn-1,ma=new Pi(+ai,+Mi);ma.z=+Gi;var Sa=this._tileCoordsToKey(ma),Wa=this._tiles[Sa];return Wa&&Wa.active?(Wa.retain=!0,!0):(Wa&&Wa.loaded&&(Wa.retain=!0),Gi>$n?this._retainParent(ai,Mi,Gi,$n):!1)},_retainChildren:function(un,_n,kn,$n){for(var ai=2*un;ai<2*un+2;ai++)for(var Mi=2*_n;Mi<2*_n+2;Mi++){var Gi=new Pi(ai,Mi);Gi.z=kn+1;var ma=this._tileCoordsToKey(Gi),Sa=this._tiles[ma];if(Sa&&Sa.active){Sa.retain=!0;continue}else Sa&&Sa.loaded&&(Sa.retain=!0);kn+1<$n&&this._retainChildren(ai,Mi,kn+1,$n)}},_resetView:function(un){var _n=un&&(un.pinch||un.flyTo);
2this._setView(this._map.getCenter(),this._map.getZoom(),_n,_n)},_animateZoom:function(un){this._setView(un.center,un.zoom,!0,un.noUpdate)},_clampZoom:function(un){var _n=this.options;return _n.minNativeZoom!==void 0&&un<_n.minNativeZoom?_n.minNativeZoom:_n.maxNativeZoom!==void 0&&_n.maxNativeZoom<un?_n.maxNativeZoom:un},_setView:function(un,_n,kn,$n){var ai=Math.round(_n);this.options.maxZoom!==void 0&&ai>this.options.maxZoom||this.options.minZoom!==void 0&&ai<this.options.minZoom?ai=void 0:ai=this._clampZoom(ai);var Mi=this.options.updateWhenZooming&&ai!==this._tileZoom;(!$n||Mi)&&(this._tileZoom=ai,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),ai!==void 0&&this._update(un),kn||this._pruneTiles(),this._noPrune=!!kn),this._setZoomTransforms(un,_n)},_setZoomTransforms:function(un,_n){for(var kn in this._levels)this._setZoomTransform(this._levels[kn],un,_n)},_setZoomTransform:function(un,_n,kn){var $n=this._map.getZoomScale(kn,un.zoom),ai=un.origin.multiplyBy($n).subtract(this._map._getNewPixelOrigin(_n,kn)).round();ls.any3d?ru(un.el,ai,$n):no(un.el,ai)},_resetGrid:function(){var un=this._map,_n=un.options.crs,kn=this._tileSize=this.getTileSize(),$n=this._tileZoom,ai=this._map.getPixelWorldBounds(this._tileZoom);ai&&(this._globalTileRange=this._pxBoundsToTileRange(ai)),this._wrapX=_n.wrapLng&&!this.options.noWrap&&[Math.floor(un.project([0,_n.wrapLng[0]],$n).x/kn.x),Math.ceil(un.project([0,_n.wrapLng[1]],$n).x/kn.y)],this._wrapY=_n.wrapLat&&!this.options.noWrap&&[Math.floor(un.project([_n.wrapLat[0],0],$n).y/kn.x),Math.ceil(un.project([_n.wrapLat[1],0],$n).y/kn.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(un){var _n=this._map,kn=_n._animatingZoom?Math.max(_n._animateToZoom,_n.getZoom()):_n.getZoom(),$n=_n.getZoomScale(kn,this._tileZoom),ai=_n.project(un,this._tileZoom).floor(),Mi=_n.getSize().divideBy($n*2);return new Wi(ai.subtract(Mi),ai.add(Mi))},_update:function(un){var _n=this._map;if(_n){var kn=this._clampZoom(_n.getZoom());if(un===void 0&&(un=_n.getCenter()),this._tileZoom!==void 0){var $n=this._getTiledPixelBounds(un),ai=this._pxBoundsToTileRange($n),Mi=ai.getCenter(),Gi=[],ma=this.options.keepBuffer,Sa=new Wi(ai.getBottomLeft().subtract([ma,-ma]),ai.getTopRight().add([ma,-ma]));if(!(isFinite(ai.min.x)&&isFinite(ai.min.y)&&isFinite(ai.max.x)&&isFinite(ai.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Wa in this._tiles){var ms=this._tiles[Wa].coords;(ms.z!==this._tileZoom||!Sa.contains(new Pi(ms.x,ms.y)))&&(this._tiles[Wa].current=!1)}if(Math.abs(kn-this._tileZoom)>1){this._setView(un,kn);return}for(var Ys=ai.min.y;Ys<=ai.max.y;Ys++)for(var eo=ai.min.x;eo<=ai.max.x;eo++){var bc=new Pi(eo,Ys);if(bc.z=this._tileZoom,!!this._isValidTile(bc)){var sc=this._tiles[this._tileCoordsToKey(bc)];
vendor: 6,787 bytes, line 2
2sc?sc.current=!0:Gi.push(bc)}}if(Gi.sort(function(Bc,Rd){return Bc.distanceTo(Mi)-Rd.distanceTo(Mi)}),Gi.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Jc=document.createDocumentFragment();for(eo=0;eo<Gi.length;eo++)this._addTile(Gi[eo],Jc);this._level.el.appendChild(Jc)}}}},_isValidTile:function(un){var _n=this._map.options.crs;if(!_n.infinite){var kn=this._globalTileRange;if(!_n.wrapLng&&(un.x<kn.min.x||un.x>kn.max.x)||!_n.wrapLat&&(un.y<kn.min.y||un.y>kn.max.y))return!1}if(!this.options.bounds)return!0;var $n=this._tileCoordsToBounds(un);return Ni(this.options.bounds).overlaps($n)},_keyToBounds:function(un){return this._tileCoordsToBounds(this._keyToTileCoords(un))},_tileCoordsToNwSe:function(un){var _n=this._map,kn=this.getTileSize(),$n=un.scaleBy(kn),ai=$n.add(kn),Mi=_n.unproject($n,un.z),Gi=_n.unproject(ai,un.z);return[Mi,Gi]},_tileCoordsToBounds:function(un){var _n=this._tileCoordsToNwSe(un),kn=new Si(_n[0],_n[1]);return this.options.noWrap||(kn=this._map.wrapLatLngBounds(kn)),kn},_tileCoordsToKey:function(un){return un.x+":"+un.y+":"+un.z},_keyToTileCoords:function(un){var _n=un.split(":"),kn=new Pi(+_n[0],+_n[1]);return kn.z=+_n[2],kn},_removeTile:function(un){var _n=this._tiles[un];_n&&(bo(_n.el),delete this._tiles[un],this.fire("tileunload",{tile:_n.el,coords:this._keyToTileCoords(un)}))},_initTile:function(un){Hs(un,"leaflet-tile");var _n=this.getTileSize();un.style.width=_n.x+"px",un.style.height=_n.y+"px",un.onselectstart=gn,un.onmousemove=gn,ls.ielt9&&this.options.opacity<1&&Xo(un,this.options.opacity)},_addTile:function(un,_n){var kn=this._getTilePos(un),$n=this._tileCoordsToKey(un),ai=this.createTile(this._wrapCoords(un),on(this._tileReady,this,un));this._initTile(ai),this.createTile.length<2&&ei(on(this._tileReady,this,un,null,ai)),no(ai,kn),this._tiles[$n]={el:ai,coords:un,current:!0},_n.appendChild(ai),this.fire("tileloadstart",{tile:ai,coords:un})},_tileReady:function(un,_n,kn){_n&&this.fire("tileerror",{error:_n,tile:kn,coords:un});var $n=this._tileCoordsToKey(un);kn=this._tiles[$n],kn&&(kn.loaded=+new Date,this._map._fadeAnimated?(Xo(kn.el,0),ci(this._fadeFrame),this._fadeFrame=ei(this._updateOpacity,this)):(kn.active=!0,this._pruneTiles()),_n||(Hs(kn.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:kn.el,coords:un})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ls.ielt9||!this._map._fadeAnimated?ei(this._pruneTiles,this):setTimeout(on(this._pruneTiles,this),250)))},_getTilePos:function(un){return un.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(un){var _n=new Pi(this._wrapX?mn(un.x,this._wrapX):un.x,this._wrapY?mn(un.y,this._wrapY):un.y);return _n.z=un.z,_n},_pxBoundsToTileRange:function(un){var _n=this.getTileSize();return new Wi(un.min.unscaleBy(_n).floor(),un.max.unscaleBy(_n).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var un in this._tiles)if(!this._tiles[un].loaded)return!1;return!0}});function Rh(un){return new Ad(un)}var Nu=Ad.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(un,_n){this._url=un,_n=Mn(this,_n),_n.detectRetina&&ls.retina&&_n.maxZoom>0?(_n.tileSize=Math.floor(_n.tileSize/2),_n.zoomReverse?(_n.zoomOffset--,_n.minZoom=Math.min(_n.maxZoom,_n.minZoom+1)):(_n.zoomOffset++,_n.maxZoom=Math.max(_n.minZoom,_n.maxZoom-1)),_n.minZoom=Math.max(0,_n.minZoom)):_n.zoomReverse?_n.minZoom=Math.min(_n.maxZoom,_n.minZoom):_n.maxZoom=Math.max(_n.minZoom,_n.maxZoom),typeof _n.subdomains=="string"&&(_n.subdomains=_n.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(un,_n){return this._url===un&&_n===void 0&&(_n=!0),this._url=un,_n||this.redraw(),this},createTile:function(un,_n){var kn=document.createElement("img");return ss(kn,"load",on(this._tileOnLoad,this,_n,kn)),ss(kn,"error",on(this._tileOnError,this,_n,kn)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(kn.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(kn.referrerPolicy=this.options.referrerPolicy),kn.alt="",kn.src=this.getTileUrl(un),kn},getTileUrl:function(un){var _n={r:ls.retina?"@2x":"",s:this._getSubdomain(un),x:un.x,y:un.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var kn=this._globalTileRange.max.y-un.y;this.options.tms&&(_n.y=kn),_n["-y"]=kn}return En(this._url,an(_n,this.options))},_tileOnLoad:function(un,_n){ls.ielt9?setTimeout(on(un,this,null,_n),0):un(null,_n)},_tileOnError:function(un,_n,kn){var $n=this.options.errorTileUrl;$n&&_n.getAttribute("src")!==$n&&(_n.src=$n),un(kn,_n)},_onTileRemove:function(un){un.tile.onload=null},_getZoomForUrl:function(){var un=this._tileZoom,_n=this.options.maxZoom,kn=this.options.zoomReverse,$n=this.options.zoomOffset;return kn&&(un=_n-un),un+$n},_getSubdomain:function(un){var _n=Math.abs(un.x+un.y)%this.options.subdomains.length;return this.options.subdomains[_n]},_abortLoading:function(){var un,_n;for(un in this._tiles)if(this._tiles[un].coords.z!==this._tileZoom&&(_n=this._tiles[un].el,_n.onload=gn,_n.onerror=gn,!_n.complete)){_n.src=mi;var kn=this._tiles[un].coords;bo(_n),delete this._tiles[un],this.fire("tileabort",{tile:_n,coords:kn})}},_removeTile:function(un){var _n=this._tiles[un];if(_n)return _n.el.setAttribute("src",mi),Ad.prototype._removeTile.call(this,un)},_tileReady:function(un,_n,kn){if(!(!this._map||kn&&kn.getAttribute("src")===mi))return Ad.prototype._tileReady.call(this,un,_n,kn)}});function Lh(un,_n){return new Nu(un,_n)}var xh=Nu.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(un,_n){this._url=un;var kn=an({},this.defaultWmsParams);for(var $n in _n)$n in this.options||(kn[$n]=_n[$n]);_n=Mn(this,_n);var ai=_n.detectRetina&&ls.retina?2:1,Mi=this.getTileSize();kn.width=Mi.x*ai,kn.height=Mi.y*ai,this.wmsParams=kn},onAdd:function(un){this._crs=this.options.crs||un.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var _n=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[_n]=this._crs.code,Nu.prototype.onAdd.call(this,un)},getTileUrl:function(un){var _n=this._tileCoordsToNwSe(un),kn=this._crs,$n=hi(kn.project(_n[0]),kn.project(_n[1])),ai=$n.min,Mi=$n.max,Gi=(this._wmsVersion>=1.3&&this._crs===Cd?[ai.y,ai.x,Mi.y,Mi.x]:[ai.x,ai.y,Mi.x,Mi.y]).join(","),ma=Nu.prototype.getTileUrl.call(this,un);return ma+Tn(this.wmsParams,ma,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Gi},setParams:function(un,_n){return an(this.wmsParams,un),_n||this.redraw(),this}});function Ih(un,_n){return new xh(un,_n)}Nu.WMS=xh,Lh.wms=Ih;
vendor: 4,737 bytes, line 2
2var Cu=To.extend({options:{padding:.1},initialize:function(un){Mn(this,un),dn(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Hs(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var un={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(un.zoomanim=this._onAnimZoom),un},_onAnimZoom:function(un){this._updateTransform(un.center,un.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(un,_n){var kn=this._map.getZoomScale(_n,this._zoom),$n=this._map.getSize().multiplyBy(.5+this.options.padding),ai=this._map.project(this._center,_n),Mi=$n.multiplyBy(-kn).add(ai).subtract(this._map._getNewPixelOrigin(un,_n));ls.any3d?ru(this._container,Mi,kn):no(this._container,Mi)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var un in this._layers)this._layers[un]._reset()},_onZoomEnd:function(){for(var un in this._layers)this._layers[un]._project()},_updatePaths:function(){for(var un in this._layers)this._layers[un]._update()},_update:function(){var un=this.options.padding,_n=this._map.getSize(),kn=this._map.containerPointToLayerPoint(_n.multiplyBy(-un)).round();this._bounds=new Wi(kn,kn.add(_n.multiplyBy(1+un*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Sh=Cu.extend({options:{tolerance:0},getEvents:function(){var un=Cu.prototype.getEvents.call(this);return un.viewprereset=this._onViewPreReset,un},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Cu.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var un=this._container=document.createElement("canvas");ss(un,"mousemove",this._onMouseMove,this),ss(un,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ss(un,"mouseout",this._handleMouseOut,this),un._leaflet_disable_events=!0,this._ctx=un.getContext("2d")},_destroyContainer:function(){ci(this._redrawRequest),delete this._ctx,bo(this._container),Mo(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var un;this._redrawBounds=null;for(var _n in this._layers)un=this._layers[_n],un._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Cu.prototype._update.call(this);var un=this._bounds,_n=this._container,kn=un.getSize(),$n=ls.retina?2:1;no(_n,un.min),_n.width=$n*kn.x,_n.height=$n*kn.y,_n.style.width=kn.x+"px",_n.style.height=kn.y+"px",ls.retina&&this._ctx.scale(2,2),this._ctx.translate(-un.min.x,-un.min.y),this.fire("update")}},_reset:function(){Cu.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(un){this._updateDashArray(un),this._layers[dn(un)]=un;var _n=un._order={layer:un,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=_n),this._drawLast=_n,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(un){this._requestRedraw(un)},_removePath:function(un){var _n=un._order,kn=_n.next,$n=_n.prev;kn?kn.prev=$n:this._drawLast=$n,$n?$n.next=kn:this._drawFirst=kn,delete un._order,delete this._layers[dn(un)],this._requestRedraw(un)},_updatePath:function(un){this._extendRedrawBounds(un),un._project(),un._update(),this._requestRedraw(un)},_updateStyle:function(un){this._updateDashArray(un),this._requestRedraw(un)},_updateDashArray:function(un){if(typeof un.options.dashArray=="string"){var _n=un.options.dashArray.split(/[, ]+/),kn=[],$n,ai;for(ai=0;ai<_n.length;ai++){if($n=Number(_n[ai]),isNaN($n))return;kn.push($n)}un.options._dashArray=kn}else un.options._dashArray=un.options.dashArray},_requestRedraw:function(un){this._map&&(this._extendRedrawBounds(un),this._redrawRequest=this._redrawRequest||ei(this._redraw,this))},_extendRedrawBounds:function(un){if(un._pxBounds){var _n=(un.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Wi,this._redrawBounds.extend(un._pxBounds.min.subtract([_n,_n])),this._redrawBounds.extend(un._pxBounds.max.add([_n,_n]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var un=this._redrawBounds;if(un){var _n=un.getSize();this._ctx.clearRect(un.min.x,un.min.y,_n.x,_n.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore(
2)},_draw:function(){var un,_n=this._redrawBounds;if(this._ctx.save(),_n){var kn=_n.getSize();this._ctx.beginPath(),this._ctx.rect(_n.min.x,_n.min.y,kn.x,kn.y),this._ctx.clip()}this._drawing=!0;for(var $n=this._drawFirst;$n;$n=$n.next)un=$n.layer,(!_n||un._pxBounds&&un._pxBounds.intersects(_n))&&un._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(un,_n){if(this._drawing){var kn,$n,ai,Mi,Gi=un._parts,ma=Gi.length,Sa=this._ctx;if(ma){for(Sa.beginPath(),kn=0;kn<ma;kn++){for($n=0,ai=Gi[kn].length;$n<ai;$n++)Mi=Gi[kn][$n],Sa[$n?"lineTo":"moveTo"](Mi.x,Mi.y);_n&&Sa.closePath()}this._fillStroke(Sa,un)}}},_updateCircle:function(un){if(!(!this._drawing||un._empty())){var _n=un._point,kn=this._ctx,$n=Math.max(Math.round(un._radius),1),ai=(Math.max(Math.round(un._radiusY),1)||$n)/$n;ai!==1&&(kn.save(),kn.scale(1,ai)),kn.beginPath(),kn.arc(_n.x,_n.y/ai,$n,0,Math.PI*2,!1),ai!==1&&kn.restore(),this._fillStroke(kn,un)}},_fillStroke:function(un,_n){var kn=_n.options;kn.fill&&(un.globalAlpha=kn.fillOpacity,un.fillStyle=kn.fillColor||kn.color,un.fill(kn.fillRule||"evenodd")),kn.stroke&&kn.weight!==0&&(un.setLineDash&&un.setLineDash(_n.options&&_n.options._dashArray||[]),un.globalAlpha=kn.opacity,un.lineWidth=kn.weight,un.strokeStyle=kn.color,un.lineCap=kn.lineCap,un.lineJoin=kn.lineJoin,un.stroke())},_onClick:function(un){for(var _n=this._map.mouseEventToLayerPoint(un),kn,$n,ai=this._drawFirst;ai;ai=ai.next)kn=ai.layer,kn.options.interactive&&kn._containsPoint(_n)&&(!(un.type==="click"||un.type==="preclick")||!this._map._draggableMoved(kn))&&($n=kn);this._fireEvent($n?[$n]:!1,un)},_onMouseMove:function(un){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var _n=this._map.mouseEventToLayerPoint(un);this._handleMouseHover(un,_n)}},_handleMouseOut:function(un){var _n=this._hoveredLayer;_n&&($o(this._container,"leaflet-interactive"),this._fireEvent([_n],un,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(un,_n){if(!this._mouseHoverThrottled){for(var kn,$n,ai=this._drawFirst;ai;ai=ai.next)kn=ai.layer,kn.options.interactive&&kn._containsPoint(_n)&&($n=kn);$n!==this._hoveredLayer&&(this._handleMouseOut(un),$n&&(Hs(this._container,"leaflet-interactive"),this._fireEvent([$n],un,"mouseover"),this._hoveredLayer=$n)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,un),this._mouseHoverThrottled=!0,setTimeout(on(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(un,_n,kn){this._map._fireDOMEvent(_n,kn||_n.type,un)},_bringToFront:function(un){var _n=un._order;if(_n){var kn=_n.next,$n=_n.prev;if(kn)kn.prev=$n;else return;$n?$n.next=kn:kn&&(this._drawFirst=kn),_n.prev=this._drawLast,this._drawLast.next=_n,_n.next=null,this._drawLast=_n,this._requestRedraw(un)}},_bringToBack:function(un){var _n=un._order;if(_n){var kn=_n.next,$n=_n.prev;if($n)$n.next=kn;else return;kn?kn.prev=$n:$n&&(this._drawLast=$n),_n.prev=null,_n.next=this._drawFirst,this._drawFirst.prev=_n,this._drawFirst=_n,this._requestRedraw(un)}}});function Th(un){return ls.canvas?new Sh(un):null}var Yd=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(un){return document.createElement("<lvml:"+un+' class="lvml">')}}catch{}return function(un){return document.createElement("<"+un+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Fh={_initContainer:function(){this._container=Us("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Cu.prototype._update.call(this),this.fire("update"))},_initPath:function(un){var _n=un._container=Yd("shape");Hs(_n,"leaflet-vml-shape "+(this.options.className||"")),_n.coordsize="1 1",un._path=Yd("path"),_n.appendChild(un._path),this._updateStyle(un),this._layers[dn(un)]=un},_addPath:function(un){var _n=un._container;this._container.appendChild(_n),un.options.interactive&&un.addInteractiveTarget(_n)},_removePath:function(un){var _n=un._container;bo(_n),un.removeInteractiveTarget(_n),delete this._layers[dn(un)]},_updateStyle:function(un){var _n=un._stroke,kn=un._fill,$n=un.options,ai=un._container;ai.stroked=!!$n.stroke,ai.filled=!!$n.fill,$n.stroke?(_n||(_n=un._stroke=Yd("stroke")),ai.appendChild(_n),_n.weight=$n.weight+"px",_n.color=$n.color,_n.opacity=$n.opacity,$n.dashArray?_n.dashStyle=Rn($n.dashArray)?$n.dashArray.join(" "):$n.dashArray.replace(/( *, *)/g," "):_n.dashStyle="",_n.endcap=$n.lineCap.replace("butt","flat"),_n.joinstyle=$n.lineJoin):_n&&
2(ai.removeChild(_n),un._stroke=null),$n.fill?(kn||(kn=un._fill=Yd("fill")),ai.appendChild(kn),kn.color=$n.fillColor||$n.color,kn.opacity=$n.fillOpacity):kn&&(ai.removeChild(kn),un._fill=null)},_updateCircle:function(un){var _n=un._point.round(),kn=Math.round(un._radius),$n=Math.round(un._radiusY||kn);this._setPath(un,un._empty()?"M0 0":"AL "+_n.x+","+_n.y+" "+kn+","+$n+" 0,"+65535*360)},_setPath:function(un,_n){un._path.v=_n},_bringToFront:function(un){Bo(un._container)},_bringToBack:function(un){nu(un._container)}},$d=ls.vml?Yd:Cn,ld=Cu.extend({_initContainer:function(){this._container=$d("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$d("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){bo(this._container),Mo(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Cu.prototype._update.call(this);var un=this._bounds,_n=un.getSize(),kn=this._container;(!this._svgSize||!this._svgSize.equals(_n))&&(this._svgSize=_n,kn.setAttribute("width",_n.x),kn.setAttribute("height",_n.y)),no(kn,un.min),kn.setAttribute("viewBox",[un.min.x,un.min.y,_n.x,_n.y].join(" ")),this.fire("update")}},_initPath:function(un){var _n=un._path=$d("path");un.options.className&&Hs(_n,un.options.className),un.options.interactive&&Hs(_n,"leaflet-interactive"),this._updateStyle(un),this._layers[dn(un)]=un},_addPath:function(un){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(un._path),un.addInteractiveTarget(un._path)},_removePath:function(un){bo(un._path),un.removeInteractiveTarget(un._path),delete this._layers[dn(un)]},_updatePath:function(un){un._project(),un._update()},_updateStyle:function(un){var _n=un._path,kn=un.options;_n&&(kn.stroke?(_n.setAttribute("stroke",kn.color),_n.setAttribute("stroke-opacity",kn.opacity),_n.setAttribute("stroke-width",kn.weight),_n.setAttribute("stroke-linecap",kn.lineCap),_n.setAttribute("stroke-linejoin",kn.lineJoin),kn.dashArray?_n.setAttribute("stroke-dasharray",kn.dashArray):_n.removeAttribute("stroke-dasharray"),kn.dashOffset?_n.setAttribute("stroke-dashoffset",kn.dashOffset):_n.removeAttribute("stroke-dashoffset")):_n.setAttribute("stroke","none"),kn.fill?(_n.setAttribute("fill",kn.fillColor||kn.color),_n.setAttribute("fill-opacity",kn.fillOpacity),_n.setAttribute("fill-rule",kn.fillRule||"evenodd")):_n.setAttribute("fill","none"))},_updatePoly:function(un,_n){this._setPath(un,ki(un._parts,_n))},_updateCircle:function(un){var _n=un._point,kn=Math.max(Math.round(un._radius),1),$n=Math.max(Math.round(un._radiusY),1)||kn,ai="a"+kn+","+$n+" 0 1,0 ",Mi=un._empty()?"M0 0":"M"+(_n.x-kn)+","+_n.y+ai+kn*2+",0 "+ai+-kn*2+",0 ";this._setPath(un,Mi)},_setPath:function(un,_n){un._path.setAttribute("d",_n)},_bringToFront:function(un){Bo(un._path)},_bringToBack:function(un){nu(un._path)}});ls.vml&&ld.include(Fh);function Cc(un){return ls.svg||ls.vml?new ld(un):null}Js.include({getRenderer:function(un){var _n=un.options.renderer||this._getPaneRenderer(un.options.pane)||this.options.renderer||this._renderer;return _n||(_n=this._renderer=this._createRenderer()),this.hasLayer(_n)||this.addLayer(_n),_n},_getPaneRenderer:function(un){if(un==="overlayPane"||un===void 0)return!1;var _n=this._paneRenderers[un];return _n===void 0&&(_n=this._createRenderer({pane:un}),this._paneRenderers[un]=_n),_n},_createRenderer:function(un){return this.options.preferCanvas&&Th(un)||Cc(un)}});var ac=hu.extend({initialize:function(un,_n){hu.prototype.initialize.call(this,this._boundsToLatLngs(un),_n)},setBounds:function(un){return this.setLatLngs(this._boundsToLatLngs(un))},_boundsToLatLngs:function(un){return un=Ni(un),[un.getSouthWest
vendor: 5,836 bytes, line 2
2(),un.getNorthWest(),un.getNorthEast(),un.getSouthEast()]}});function mh(un,_n){return new ac(un,_n)}ld.create=$d,ld.pointsToPath=ki,Ho.geometryToLayer=Zc,Ho.coordsToLatLng=vd,Ho.coordsToLatLngs=sd,Ho.latLngToCoords=Tu,Ho.latLngsToCoords=fu,Ho.getFeature=Ec,Ho.asFeature=Du,Js.mergeOptions({boxZoom:!0});var ih=Ii.extend({initialize:function(un){this._map=un,this._container=un._container,this._pane=un._panes.overlayPane,this._resetStateTimeout=0,un.on("unload",this._destroy,this)},addHooks:function(){ss(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Mo(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){bo(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(un){if(!un.shiftKey||un.which!==1&&un.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Xu(),Qd(),this._startPoint=this._map.mouseEventToContainerPoint(un),ss(document,{contextmenu:Iu,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(un){this._moved||(this._moved=!0,this._box=Us("div","leaflet-zoom-box",this._container),Hs(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(un);var _n=new Wi(this._point,this._startPoint),kn=_n.getSize();no(this._box,_n.min),this._box.style.width=kn.x+"px",this._box.style.height=kn.y+"px"},_finish:function(){this._moved&&(bo(this._box),$o(this._container,"leaflet-crosshair")),wu(),eh(),Mo(document,{contextmenu:Iu,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(un){if(!(un.which!==1&&un.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(on(this._resetState,this),0);var _n=new Si(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(_n).fire("boxzoomend",{boxZoomBounds:_n})}},_onKeyDown:function(un){un.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Js.addInitHook("addHandler","boxZoom",ih),Js.mergeOptions({doubleClickZoom:!0});var Dh=Ii.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(un){var _n=this._map,kn=_n.getZoom(),$n=_n.options.zoomDelta,ai=un.originalEvent.shiftKey?kn-$n:kn+$n;_n.options.doubleClickZoom==="center"?_n.setZoom(ai):_n.setZoomAround(un.containerPoint,ai)}});Js.addInitHook("addHandler","doubleClickZoom",Dh),Js.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ah=Ii.extend({addHooks:function(){if(!this._draggable){var un=this._map;this._draggable=new Aa(un._mapPane,un._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),un.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),un.on("zoomend",this._onZoomEnd,this),un.whenReady(this._onZoomEnd,this))}Hs(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){$o(this._map._container,"leaflet-grab"),$o(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var un=this._map;if(un._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var _n=Ni(this._map.options.maxBounds);this._offsetLimit=hi(this._map.latLngToContainerPoint(_n.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(_n.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;un.fire("movestart").fire("dragstart"),un.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(un){if(this._map.options.inertia){var _n=this._lastTime=+new Date,kn=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(kn),this._times.push(_n),this._prunePositions(_n)}this._map.fire("move",un).fire("drag",un)},_prunePositions:function(un){for(;this._positions.length>1&&un-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var un=this._map.getSize().divideBy(2),_n=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=_n.subtract(un).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(un,_n){return un-(un-_n)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var un=this._draggable._newPos.subtract(this._draggable._startPos),_n=this._offsetLimit;un.x<_n.min.x&&(un.x=this._viscousLimit(un.x,_n.min.x)),un.y<_n.min.y&&(un.y=this._viscousLimit(un.y,_n.min.y)),un.x>_n.max.x&&(un.x=this._viscousLimit(un.x,_n.max.x)),un.y>_n.max.y&&(un.y=this._viscousLimit(un.y,_n.max.y)),this._draggable._newPos=this._draggable._startPos.add(un)}},_onPreDragWrap:function(){var un=this._worldWidth,_n=Math.round(un/2),kn=this._initialWorldOffset,$n=this._draggable._newPos.x,ai=($n-_n+kn)%un+_n-kn,Mi=($n+_n+kn)%un-_n-kn,Gi=Math.abs(ai+kn)<Math.abs(Mi+kn)?ai:Mi;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Gi},_onDragEnd:function(un){var _n=this._map,kn=_n.options,$n=!kn.inertia||un.noInertia||this._times.length<2;
2if(_n.fire("dragend",un),$n)_n.fire("moveend");else{this._prunePositions(+new Date);var ai=this._lastPos.subtract(this._positions[0]),Mi=(this._lastTime-this._times[0])/1e3,Gi=kn.easeLinearity,ma=ai.multiplyBy(Gi/Mi),Sa=ma.distanceTo([0,0]),Wa=Math.min(kn.inertiaMaxSpeed,Sa),ms=ma.multiplyBy(Wa/Sa),Ys=Wa/(kn.inertiaDeceleration*Gi),eo=ms.multiplyBy(-Ys/2).round();!eo.x&&!eo.y?_n.fire("moveend"):(eo=_n._limitOffset(eo,_n.options.maxBounds),ei(function(){_n.panBy(eo,{duration:Ys,easeLinearity:Gi,noMoveStart:!0,animate:!0})}))}}});Js.addInitHook("addHandler","dragging",ah),Js.mergeOptions({keyboard:!0,keyboardPanDelta:80});var sh=Ii.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(un){this._map=un,this._setPanDelta(un.options.keyboardPanDelta),this._setZoomDelta(un.options.zoomDelta)},addHooks:function(){var un=this._map._container;un.tabIndex<=0&&(un.tabIndex="0"),ss(un,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Mo(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var un=document.body,_n=document.documentElement,kn=un.scrollTop||_n.scrollTop,$n=un.scrollLeft||_n.scrollLeft;this._map._container.focus(),window.scrollTo($n,kn)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(un){var _n=this._panKeys={},kn=this.keyCodes,$n,ai;for($n=0,ai=kn.left.length;$n<ai;$n++)_n[kn.left[$n]]=[-1*un,0];for($n=0,ai=kn.right.length;$n<ai;$n++)_n[kn.right[$n]]=[un,0];for($n=0,ai=kn.down.length;$n<ai;$n++)_n[kn.down[$n]]=[0,un];for($n=0,ai=kn.up.length;$n<ai;$n++)_n[kn.up[$n]]=[0,-1*un]},_setZoomDelta:function(un){var _n=this._zoomKeys={},kn=this.keyCodes,$n,ai;for($n=0,ai=kn.zoomIn.length;$n<ai;$n++)_n[kn.zoomIn[$n]]=un;for($n=0,ai=kn.zoomOut.length;$n<ai;$n++)_n[kn.zoomOut[$n]]=-un},_addHooks:function(){ss(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Mo(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(un){if(!(un.altKey||un.ctrlKey||un.metaKey)){var _n=un.keyCode,kn=this._map,$n;if(_n in this._panKeys){if(!kn._panAnim||!kn._panAnim._inProgress)if($n=this._panKeys[_n],un.shiftKey&&($n=$i($n).multiplyBy(3)),kn.options.maxBounds&&($n=kn._limitOffset($i($n),kn.options.maxBounds)),kn.options.worldCopyJump){var ai=kn.wrapLatLng(kn.unproject(kn.project(kn.getCenter()).add($n)));kn.panTo(ai)}else kn.panBy($n)}else if(_n in this._zoomKeys)kn.setZoom(kn.getZoom()+(un.shiftKey?3:1)*this._zoomKeys[_n]);else if(_n===27&&kn._popup&&kn._popup.options.closeOnEscapeKey)kn.closePopup();else return;Iu(un)}}});Js.addInitHook("addHandler","keyboard",sh),Js.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var _h=Ii.extend({addHooks:function(){ss(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Mo(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(un){var _n=Pd(un),kn=this._map.options.wheelDebounceTime;this._delta+=_n,this._lastMousePos=this._map.mouseEventToContainerPoint(un),this._startTime||(this._startTime=+new Date);var $n=Math.max(kn-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(on(this._performZoom,this),$n),Iu(un)},_performZoom:function(){var un=this._map,_n=un.getZoom(),kn=this._map.options.zoomSnap||0;un._stop();var $n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),ai=4*Math.log(2/(1+Math.exp(-Math.abs($n))))/Math.LN2,Mi=kn?Math.ceil(ai/kn)*kn:ai,Gi=un._limitZoom(_n+(this._delta>0?Mi:-Mi))-_n;this._delta=0,this._startTime=null,Gi&&(un.options.scrollWheelZoom==="center"?un.setZoom(_n+Gi):un.setZoomAround(this._lastMousePos,_n+Gi))}});Js.addInitHook("addHandler","scrollWheelZoom",_h);var Vh=600;Js.mergeOptions({tapHold:ls.touchNative&&ls.safari&&ls.mobile,tapTolerance:15});var ph=Ii.extend({addHooks:function(){ss(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Mo(this._map._container,"touchstart",this._onDown,this)},_onDown:function(un){if(clearTimeout(this._holdTimeout),un.touches.length===1){var _n=un.touches[0];this._startPos=this._newPos=new Pi(_n.clientX,_n.clientY),this._holdTimeout=setTimeout(on(function(){this._cancel(),this._isTapValid()&&(ss(document,"touchend",Oo),ss(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",_n))},this),Vh),ss(document,"touchend touchcancel contextmenu",this._cancel,this),ss(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function un(){Mo(document,"touchend",Oo),Mo(document,"touchend touchcancel",un)},_cancel:function(){clearTimeout(this._holdTimeout),Mo(document,"touchend touchcancel contextmenu",this._cancel,this),Mo(document,"touchmove",this._onMove,this)},_onMove:function(un){var _n=un.touches[0];this._newPos=new Pi(_n.clientX,_n.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(un,_n){var kn=new MouseEvent(un,{bubbles:!0,cancelable:!0,view:window,screenX:_n.screenX,screenY:_n.screenY,clientX:_n.clientX,clientY:_n.clientY});kn._simulated=!0,_n.target.dispatchEvent(kn)}});Js.addInitHook("addHandler","tapHold",ph),Js.mergeOptions({touchZoom:ls.touch,bounceAtZoomLimits:!0});var Ed=Ii.extend({addHooks:function(){Hs(this._map._container,"leaflet-touch-zoom"),ss(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){$o(this._map._container,"leaflet-touch-zoom"),Mo(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(un){var _n=this._map;if(!(!un.touches||un.touches.length!==2||_n._animatingZoom||this._zooming)){var kn=_n.mouseEventToContainerPoint(un.touches[0]),$n=_n.mouseEventToContainerPoint(un.touches[1]);this._centerPoint=_n.getSize()._divideBy(2),this._startLatLng=_n.containerPointToLatLng(this._centerPoint),_n.options.touchZoom!=="center"&&(this._pinchStartLatLng=_n.containerPointToLatLng(kn.add($n)._divideBy(2))),this._startDist=kn.distanceTo($n),this._startZoom=_n.getZoom(),this._moved=!1,this._zooming=!0,_n._stop(),ss(document,"touchmove",this._onTouchMove,this),ss(document,"touchend touchcancel",this._onTouchEnd,this),Oo(un)}},_onTouchMove:function(un){if(!(!un.touches||un.touches.length!==2||!this._zooming)){var _n=this._map,kn=_n.mouseEventToContainerPoint(un.touches[0]),$n=_n.mouseEventToContainerPoint(un.touches[1]),ai=kn.distanceTo($n)/this._startDist;if(this._zoom=_n.getScaleZoom(ai,this._startZoom),!_n.options.bounceAtZoomLimits&&(this._zoom<_n.getMinZoom()&&ai<1||this._zoom>_n.getMaxZoom()&&ai>1)&&(this._zoom=_n._limitZoom(this._zoom)),_n.options.touchZoom==="center"){if(this._center=this._startLatLng,ai===1)return}else{var Mi=kn._add($n)._divideBy(2)._subtract(this._centerPoint);if(ai===1&&Mi.x===0&&Mi.y===0)return;this._center=_n.unproject(_n.project(this._pinchStartLatLng,this._zoom).subtract(Mi),this._zoom)}this._moved||(_n._moveStart(!0,!1),this._moved=!0),ci(this._animRequest);var Gi=on(_n._move,_n,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ei(Gi,this,!0),Oo(un)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ci(this._animRequest),Mo(document,"touchmove",this._onTouchMove,this),Mo(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Js.addInitHook("addHandler","touchZoom",Ed),Js.BoxZoom=ih,Js.DoubleClickZoom=Dh,Js.Drag=ah,Js.Keyboard=sh,Js.ScrollWheelZoom=_h,Js.TapHold=ph,Js.TouchZoom=Ed,tn.Bounds=Wi,tn.Browser=ls,tn.CRS=Ui,tn.Canvas=Sh,tn.Circle=vc,tn.CircleMarker=uu,tn.Class=wi,tn.Control=mc,tn.DivIcon=Mh,tn.DivOverlay=wc,tn.DomEvent=su,tn.DomUtil=bh,tn.Draggable=Aa,tn.Evented=Yi,tn.FeatureGroup=Ds,tn.GeoJSON=Ho,tn.GridLayer=Ad,tn.Handler=Ii,tn.Icon=Gc,tn.ImageOverlay=Oc,tn.LatLng=yi,tn.LatLngBounds=Si,tn.Layer=To,tn.LayerGroup=Nc,tn.LineUtil=cu,tn.Map=Js,tn.Marker=Lu,tn.Mixin=Xi,tn.Path=Zl,tn.Point=Pi,tn.PolyUtil=Vs,tn.Polygon=hu,tn.Polyline=hc,tn.Popup=Uu,tn.PosAnimation=Nd,tn.Projection=pd,tn.Rectangle=ac,tn.Renderer=Cu,tn.SVG=ld,tn.SVGOverlay=Gs,tn.TileLayer=Nu,tn.Tooltip=wd,tn.Transformation=ea,tn.Util=di,tn.VideoOverlay=xo,tn.bind=on,tn.bounds=hi,tn.canvas=Th,tn.circle=du,tn.circleMarker=Wu,tn.control=ou,tn.divIcon=fh,tn.extend=an,tn.featureGroup=qc,tn.geoJSON=od,tn.geoJson=Kc,tn.gridLayer=Rh,tn.icon=yd,tn.imageOverlay=_o,tn.latLng=Hi,tn.latLngBounds=Ni,tn.layerGroup=ad,tn.map=nh,tn.marker=Wo,tn.point=$i,tn.polygon=xu,tn.polyline=Uo,tn.popup=Bd,tn.rectangle=mh,tn.setOptions=Mn,tn.stamp=dn,tn.svg=Cc,tn.svgOverlay=Go,tn.tileLayer=Lh,tn.tooltip=Oh,tn.transformation=vi,tn.version=nn,tn.videoOverlay=qo;var Od=window.L;tn.noConflict=function(){return window.L=Od,this},window.L=tn}))})(leafletSrc$2,leafletSrc$2.exports)),leafletSrc$2.exports}var leafletSrcExports=requireLeafletSrc();const L$4=getDefaultExportFromCjs(leafletSrcExports),leafletSrc=_mergeNamespaces({__proto__:null,default:L$4},[leafletSrcExports]),scriptRel="modulepreload",assetsURL=function(en){return"/build/"+en},seen={},__vitePreload=function(He,tn,nn){let an=Promise.resolve();if(tn&&tn.length>0){let dn=function(hn){return Promise.all(hn.map(mn=>Promise.resolve(mn).then(gn=>({status:"fulfilled",value:gn}),gn=>({status:"rejected",reason:gn}))))};document.getElementsByTagName("link");const on=document.querySelector("meta[property=csp-nonce]"),sn=on?.nonce||on?.getAttribute("nonce");an=dn(tn.map(hn=>{if(hn=assetsURL(hn),hn in seen)return;seen[hn]=!0;const mn=hn.endsWith(".css"),gn=mn?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${hn}"]${gn}`))return;const yn=document.createElement("link");if(yn.rel=mn?"stylesheet":scriptRel,mn||(yn.as="script"),yn.crossOrigin="",yn.href=hn,sn&&yn.setAttribute("nonce",sn),document.head.appendChild(yn),mn)return new Promise((fn,bn)=>{yn.addEventListener("load",fn),yn.addEventListener("error",()=>bn(new Error(`Unable to preload CSS for ${hn}`)))})}))}function rn(on){const sn=new Event("vite:preloadError",{cancelable:!0});if(sn.payload=on,window.dispatchEvent(sn),!sn.defaultPrevented)throw on}return an.then(on=>{for(const sn of on||[])sn.status==="rejected"&&rn(sn.reason);return He().catch(rn)})},ce$1=(en,He)=>{for(const tn of Object.keys(He))en.on(tn,He[tn])},ye$1=en=>{for(const He of Object.keys(en)){const tn=en[He];tn&&k$1(tn.cancel)&&tn.cancel()}},Je=en=>!en||typeof en.charAt!="function"?en:en.charAt(0).toUpperCase()+en.slice(1),k$1=en=>typeof en=="function",L$3=(en,He,tn)=>{for(const nn in tn){const an="set"+Je(nn);en[an]?watch(()=>tn[nn],(rn,on)=>{en[an](rn,on)}):He[an]&&watch(()=>tn[nn],rn=>{He[an](rn)})}},f$2=(en,He,tn={})=>{const nn={...tn};
2for(const an in en){const rn=He[an],on=en[an];rn&&(rn&&rn.custom===!0||on!==void 0&&(nn[an]=on))}return nn},T$2=en=>{const He={},tn={};for(const nn in en)if(nn.startsWith("on")&&!nn.startsWith("onUpdate")&&nn!=="onReady"){const an=nn.slice(2).toLocaleLowerCase();He[an]=en[nn]}else tn[nn]=en[nn];return{listeners:He,attrs:tn}},qe$1=async en=>{const He=await Promise.all([__vitePreload(()=>import("./marker-icon-2x-1TirABJh.js"),[]),__vitePreload(()=>import("./marker-icon-B6h-nX3D.js"),[]),__vitePreload(()=>import("./marker-shadow-B9CpECYs.js"),[])]);delete en.Default.prototype._getIconUrl,en.Default.mergeOptions({iconRetinaUrl:He[0].default,iconUrl:He[1].default,shadowUrl:He[2].default})},Y$2=en=>{const He=ref((...nn)=>console.warn(`Method ${en} has been invoked without being replaced`)),tn=(...nn)=>He.value(...nn);return tn.wrapped=He,provide(en,tn),tn},V$2=(en,He)=>en.wrapped.value=He,b$2=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,m$3=en=>{const He=inject(en);if(He===void 0)throw new Error(`Attempt to inject ${en.description} before it was provided.`);return He},Kt$2=Object.freeze(Object.defineProperty({__proto__:null,WINDOW_OR_GLOBAL:b$2,assertInject:m$3,bindEventHandlers:ce$1,cancelDebounces:ye$1,capitalizeFirstLetter:Je,isFunction:k$1,propsBinder:L$3,propsToLeafletOptions:f$2,provideLeafletWrapper:Y$2,remapEvents:T$2,resetWebpackIcon:qe$1,updateLeafletWrapper:V$2},Symbol.toStringTag,{value:"Module"})),h$2=Symbol("useGlobalLeaflet"),M$1=Symbol("addLayer"),ee$1=Symbol("removeLayer"),H$2=Symbol("registerControl"),me$1=Symbol("registerLayerControl"),ve$1=Symbol("canSetParentHtml"),be$1=Symbol("setParentHtml"),fe$1=Symbol("setIcon"),ge$1=Symbol("bindPopup"),Le$1=Symbol("bindTooltip"),he$1=Symbol("unbindPopup"),Oe$1=Symbol("unbindTooltip"),Qt$1=Object.freeze(Object.defineProperty({__proto__:null,AddLayerInjection:M$1,BindPopupInjection:ge$1,BindTooltipInjection:Le$1,CanSetParentHtmlInjection:ve$1,RegisterControlInjection:H$2,RegisterLayerControlInjection:me$1,RemoveLayerInjection:ee$1,SetIconInjection:fe$1,SetParentHtmlInjection:be$1,UnbindPopupInjection:he$1,UnbindTooltipInjection:Oe$1,UseGlobalLeafletInjection:h$2},Symbol.toStringTag,{value:"Module"})),W$2={options:{type:Object,default:()=>({}),custom:!0}},J$1=en=>({options:en.options,methods:{}}),bt$2=Object.freeze(Object.defineProperty({__proto__:null,componentProps:W$2,setupComponent:J$1},Symbol.toStringTag,{value:"Module"})),D$2={...W$2,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},q$2=(en,He,tn)=>{const nn=m$3(M$1),an=m$3(ee$1),{options:rn,methods:on}=J$1(en),sn=f$2(en,D$2,rn),dn=()=>nn({leafletObject:He.value}),hn=()=>an({leafletObject:He.value}),mn={...on,setAttribution(gn){hn(),He.value.options.attribution=gn,en.visible&&dn()},setName(){hn(),en.visible&&dn()},setLayerType(){hn(),en.visible&&dn()},setVisible(gn){He.value&&(gn?dn():hn())},bindPopup(gn){if(!He.value||!k$1(He.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}He.value.bindPopup(gn)},bindTooltip(gn){if(!He.value||!k$1(He.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}He.value.bindTooltip(gn)},unbindTooltip(){He.value&&(k$1(He.value.closeTooltip)&&He.value.closeTooltip(),k$1(He.value.unbindTooltip)&&He.value.unbindTooltip())},unbindPopup(){He.value&&(k$1(He.value.closePopup)&&He.value.closePopup(),k$1(He.value.unbindPopup)&&He.value.unbindPopup())},updateVisibleProp(gn){tn.emit("update:visible",gn)}};return provide(ge$1,mn.bindPopup),provide(Le$1,mn.bindTooltip),provide(he$1,mn.unbindPopup),provide(Oe$1,mn.unbindTooltip),onUnmounted(()=>{mn.unbindPopup(),mn.unbindTooltip(),hn()}),{options:sn,methods:mn}},G$1=(en,He)=>{if(en&&He.default)return h$3("div",{style:{display:"none"}},He.default())},ft$1=Object.freeze(Object.defineProperty({__proto__:null,layerProps:D$2,render:G$1,setupLayer:q$2},Symbol.toStringTag,{value:"Module"})),Se$2={...D$2,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},Ke$1=(en,He,tn)=>{const{options:nn,methods:an}=q$2(en,He,tn);return{options:f$2(en,Se$2,nn),methods:an}},gt$1=Object.freeze(Object.defineProperty({__proto__:null,interactiveLayerProps:Se$2,setupInteractiveLayer:Ke$1},Symbol.toStringTag,{value:"Module"})),ne$1={...Se$2,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},_e$1=(en,He,tn)=>{const{options:nn,methods:an}=Ke$1(en,He,tn),rn=f$2(en,ne$1,nn),on=m$3(ee$1),sn={...an,setStroke(dn){He.value.setStyle({stroke:dn})},setColor(dn){He.value.setStyle({color:dn})},setWeight(dn){He.value.setStyle({weight:dn})},setOpacity(dn){He.value.setStyle({opacity:dn})},setLineCap(dn){He.value.setStyle({lineCap:dn})},setLineJoin(dn){He.value.setStyle({lineJoin:dn})},setDashArray(dn){He.value.setStyle({dashArray:dn})},setDashOffset(dn){He.value.setStyle({dashOffset:dn})},setFill(dn){He.value.setStyle({fill:dn})},setFillColor(dn){He.value.setStyle({fillColor:dn})},setFillOpacity(dn){He.value.setStyle({fillOpacity:dn})},setFillRule(dn){He.value.setStyle({fillRule:dn})}
2,setClassName(dn){He.value.setStyle({className:dn})}};return onBeforeUnmount(()=>{on({leafletObject:He.value})}),{options:rn,methods:sn}},Lt$1=Object.freeze(Object.defineProperty({__proto__:null,pathProps:ne$1,setupPath:_e$1},Symbol.toStringTag,{value:"Module"})),re$3={...ne$1,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}},je$1=(en,He,tn)=>{const{options:nn,methods:an}=_e$1(en,He,tn),rn=f$2(en,re$3,nn),on={...an,setRadius(sn){He.value.setRadius(sn)},setLatLng(sn){He.value.setLatLng(sn)}};return{options:rn,methods:on}},ht$1=Object.freeze(Object.defineProperty({__proto__:null,circleMarkerProps:re$3,setupCircleMarker:je$1},Symbol.toStringTag,{value:"Module"})),Pe$1={...re$3,radius:{type:Number}},Qe$1=(en,He,tn)=>{const{options:nn,methods:an}=je$1(en,He,tn),rn=f$2(en,Pe$1,nn),on={...an};return{options:rn,methods:on}},Ot$2=Object.freeze(Object.defineProperty({__proto__:null,circleProps:Pe$1,setupCircle:Qe$1},Symbol.toStringTag,{value:"Module"})),Yt$1=defineComponent({name:"LCircleMarker",props:re$3,setup(en,He){const tn=ref(),nn=ref(!1),an=inject(h$2),rn=m$3(M$1),{options:on,methods:sn}=je$1(en,tn,He);return onMounted(async()=>{const{circleMarker:dn}=an?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);tn.value=markRaw(dn(en.latLng,on));const{listeners:hn}=T$2(He.attrs);tn.value.on(hn),L$3(sn,tn.value,en),rn({...en,...sn,leafletObject:tn.value}),nn.value=!0,nextTick(()=>He.emit("ready",tn.value))}),{ready:nn,leafletObject:tn}},render(){return G$1(this.ready,this.$slots)}}),F$2={...W$2,position:{type:String}},K$2=(en,He)=>{const{options:tn,methods:nn}=J$1(en),an=f$2(en,F$2,tn),rn={...nn,setPosition(on){He.value&&He.value.setPosition(on)}};return onUnmounted(()=>{He.value&&He.value.remove()}),{options:an,methods:rn}},Xe=en=>en.default?h$3("div",{ref:"root"},en.default()):null,St$2=Object.freeze(Object.defineProperty({__proto__:null,controlProps:F$2,renderLControl:Xe,setupControl:K$2},Symbol.toStringTag,{value:"Module"}));defineComponent({name:"LControl",props:{...F$2,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(en,He){const tn=ref(),nn=ref(),an=inject(h$2),rn=m$3(H$2),{options:on,methods:sn}=K$2(en,tn);return onMounted(async()=>{const{Control:dn,DomEvent:hn}=an?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]),mn=dn.extend({onAdd(){return nn.value}});tn.value=markRaw(new mn(on)),L$3(sn,tn.value,en),rn({leafletObject:tn.value}),en.disableClickPropagation&&nn.value&&hn.disableClickPropagation(nn.value),en.disableScrollPropagation&&nn.value&&hn.disableScrollPropagation(nn.value),nextTick(()=>He.emit("ready",tn.value))}),{root:nn,leafletObject:tn}},render(){return Xe(this.$slots)}});const Ce={...F$2,prefix:{type:String}},Ye=(en,He)=>{const{options:tn,methods:nn}=K$2(en,He),an=f$2(en,Ce,tn),rn={...nn,setPrefix(on){He.value.setPrefix(on)}};return{options:an,methods:rn}},_t$1=Object.freeze(Object.defineProperty({__proto__:null,controlAttributionProps:Ce,setupControlAttribution:Ye},Symbol.toStringTag,{value:"Module"})),Te={...F$2,collapsed:{type:Boolean,default:void 0},autoZIndex:{type:Boolean,default:void 0},hideSingleBase:{type:Boolean,default:void 0},sortLayers:{type:Boolean,default:void 0},sortFunction:{type:Function}},Ve$1=(en,He)=>{const{options:tn}=K$2(en,He);return{options:f$2(en,Te,tn),methods:{addLayer(nn){nn.layerType==="base"?He.value.addBaseLayer(nn.leafletObject,nn.name):nn.layerType==="overlay"&&He.value.addOverlay(nn.leafletObject,nn.name)},removeLayer(nn){He.value.removeLayer(nn.leafletObject)}}}},jt$2=Object.freeze(Object.defineProperty({__proto__:null,controlLayersProps:Te,setupControlLayers:Ve$1},Symbol.toStringTag,{value:"Module"})),Me={...F$2,maxWidth:{type:Number},metric:{type:Boolean,default:void 0},imperial:{type:Boolean,default:void 0},updateWhenIdle:{type:Boolean,default:void 0}},xe$2=(en,He)=>{const{options:tn,methods:nn}=K$2(en,He);return{options:f$2(en,Me,tn),methods:nn}},Pt$1=Object.freeze(Object.defineProperty({__proto__:null,controlScaleProps:Me,setupControlScale:xe$2},Symbol.toStringTag,{value:"Module"})),Be={...F$2,zoomInText:{type:String},zoomInTitle:{type:String},zoomOutText:{type:String},zoomOutTitle:{type:String}},Re=(en,He)=>{const{options:tn,methods:nn}=K$2(en,He);return{options:f$2(en,Be,tn),methods:nn}},Ct$1=Object.freeze(Object.defineProperty({__proto__:null,controlZoomProps:Be,setupControlZoom:Re},Symbol.toStringTag,{value:"Module"})),te$1={...D$2},se$1=(en,He,tn)=>{const{options:nn,methods:an}=q$2(en,He,tn),rn=f$2(en,te$1,nn),on={...an,addLayer(sn){He.value.addLayer(sn.leafletObject)},removeLayer(sn){He.value.removeLayer(sn.leafletObject)}};return provide(M$1,on.addLayer),provide(ee$1,on.removeLayer),{options:rn,methods:on}},Tt$1=Object.freeze(Object.defineProperty({__proto__:null,layerGroupProps:te$1,setupLayerGroup:se$1},Symbol.toStringTag,{value:"Module"})),we$1={...te$1},et$2=(en,He,tn)=>{const{options:nn,methods:an}=se$1(en,He,tn),rn=f$2(en,we$1,nn),on={...an};return{options:rn,methods:on}},Mt$1=Object.freeze(Object.defineProperty({__proto__:null,featureGroupProps:we$1,setupFeatureGroup:et$2},Symbol.toStringTag,{value:"Module"})),Ie$1={...te$1,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}},tt$1=(en,He,tn)=>{const{options:nn,methods:an}=se$1(en,He,tn),rn=f$2(en,Ie$1,nn);Object.prototype.hasOwnProperty.call(en,"optionsStyle")&&(rn.style=en.optionsStyle);const on={...an,setGeojson(sn){He.value.clearLayers(),He.value.addData(sn)},setOptionsStyle(sn){He.value.setStyle(sn)},getGeoJSONData(){return He.value.toGeoJSON()},getBounds(){return He.value.getBounds()}};return{options:rn,methods:on}},Bt$1=Object.freeze(Object.defineProperty({__proto__:null,geoJSONProps:Ie$1,setupGeoJSON:tt$1},Symbol.toStringTag,{value:"Module"})),ae$1={...D$2,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},Ae$1=(en,He,tn)=>{const{options:nn,methods:an}=q$2(en,He,tn),rn=f$2(en,ae$1,nn),on={...an,setTileComponent(){var sn;(sn=He.value)==null||sn.redraw()}};return onUnmounted(()=>{He.value.off()}),{options:rn,methods:on}},ot$1=(en,He,tn,nn)=>en.extend({initialize(an){this.tileComponents={},this.on("tileunload",this._unloadTile),tn.setOptions(this,an)},createTile(an){const rn=this._tileCoordsToKey(an);this.tileComponents[rn]=He.create("div");const on=h$3({setup:nn,props:["coords"]}
2,{coords:an});return render$e(on,this.tileComponents[rn]),this.tileComponents[rn]},_unloadTile(an){const rn=this._tileCoordsToKey(an.coords);this.tileComponents[rn]&&(this.tileComponents[rn].innerHTML="",this.tileComponents[rn]=void 0)}}),wt$1=Object.freeze(Object.defineProperty({__proto__:null,CreateVueGridLayer:ot$1,gridLayerProps:ae$1,setupGridLayer:Ae$1},Symbol.toStringTag,{value:"Module"}));defineComponent({props:{...ae$1,childRender:{type:Function,required:!0}},setup(en,He){const tn=ref(),nn=ref(null),an=ref(!1),rn=inject(h$2),on=m$3(M$1),{options:sn,methods:dn}=Ae$1(en,tn,He);return onMounted(async()=>{const{GridLayer:hn,DomUtil:mn,Util:gn}=rn?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]),yn=ot$1(hn,mn,gn,en.childRender);tn.value=markRaw(new yn(sn));const{listeners:fn}=T$2(He.attrs);tn.value.on(fn),L$3(dn,tn.value,en),on({...en,...dn,leafletObject:tn.value}),an.value=!0,nextTick(()=>He.emit("ready",tn.value))}),{root:nn,ready:an,leafletObject:tn}},render(){return this.ready?h$3("div",{style:{display:"none"},ref:"root"}):null}});const de$1={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}},It$1=Object.freeze(Object.defineProperty({__proto__:null,iconProps:de$1},Symbol.toStringTag,{value:"Module"})),so=defineComponent({name:"LIcon",props:{...de$1,...W$2},setup(en,He){const tn=ref(),nn=inject(h$2),an=m$3(ve$1),rn=m$3(be$1),on=m$3(fe$1);let sn,dn,hn,mn,gn;const yn=(Tn,xn,En)=>{const Rn=Tn&&Tn.innerHTML;if(!xn){En&&gn&&an()&&rn(Rn);return}const{listeners:ni}=T$2(He.attrs);gn&&dn(gn,ni);const{options:mi}=J$1(en),bi=f$2(en,de$1,mi);Rn&&(bi.html=Rn),gn=bi.html?hn(bi):mn(bi),sn(gn,ni),on(gn)},fn=()=>{nextTick(()=>yn(tn.value,!0,!1))},bn=()=>{nextTick(()=>yn(tn.value,!1,!0))},Mn={setIconUrl:fn,setIconRetinaUrl:fn,setIconSize:fn,setIconAnchor:fn,setPopupAnchor:fn,setTooltipAnchor:fn,setShadowUrl:fn,setShadowRetinaUrl:fn,setShadowAnchor:fn,setBgPos:fn,setClassName:fn,setHtml:fn};return onMounted(async()=>{const{DomEvent:Tn,divIcon:xn,icon:En}=nn?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);sn=Tn.on,dn=Tn.off,hn=xn,mn=En,L$3(Mn,{},en),new MutationObserver(bn).observe(tn.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),fn()}),{root:tn}},render(){const en=this.$slots.default?this.$slots.default():void 0;return h$3("div",{ref:"root"},en)}}),Ge={...D$2,opacity:{type:Number},alt:{type:String},interactive:{type:Boolean,default:void 0},crossOrigin:{type:Boolean,default:void 0},errorOverlayUrl:{type:String},zIndex:{type:Number},className:{type:String},url:{type:String,required:!0,custom:!0},bounds:{type:[Array,Object],required:!0,custom:!0}},nt$2=(en,He,tn)=>{const{options:nn,methods:an}=q$2(en,He,tn),rn=f$2(en,Ge,nn),on={...an,setOpacity(sn){return He.value.setOpacity(sn)},setUrl(sn){return He.value.setUrl(sn)},setBounds(sn){return He.value.setBounds(sn)},getBounds(){return He.value.getBounds()},getElement(){return He.value.getElement()},bringToFront(){return He.value.bringToFront()},bringToBack(){return He.value.bringToBack()},setZIndex(sn){return He.value.setZIndex(sn)}};return{options:rn,methods:on}},At$1=Object.freeze(Object.defineProperty({__proto__:null,imageOverlayProps:Ge,setupImageOverlay:nt$2},Symbol.toStringTag,{value:"Module"})),ao=defineComponent({name:"LImageOverlay",props:Ge,setup(en,He){const tn=ref(),nn=ref(!1),an=inject(h$2),rn=m$3(M$1),{options:on,methods:sn}=nt$2(en,tn,He);return onMounted(async()=>{const{imageOverlay:dn}=an?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);tn.value=markRaw(dn(en.url,en.bounds,on));const{listeners:hn}=T$2(He.attrs);tn.value.on(hn),L$3(sn,tn.value,en),rn({...en,...sn,leafletObject:tn.value}),nn.value=!0,nextTick(()=>He.emit("ready",tn.value))}),{ready:nn,leafletObject:tn}},render(){return G$1(this.ready,this.$slots)}});function rt$1(en,He,tn){var nn,an,rn;He===void 0&&(He=50),tn===void 0&&(tn={});var on=(nn=tn.isImmediate)!=null&&nn,sn=(an=tn.callback)!=null&&an,dn=tn.maxWait,hn=Date.now(),mn=[];function gn(){if(dn!==void 0){var fn=Date.now()-hn;if(fn+He>=dn)return dn-fn}return He}var yn=function(){var fn=[].slice.call(arguments),bn=this;return new Promise(function(Mn,Tn){var xn=on&&rn===void 0;if(rn!==void 0&&clearTimeout(rn),rn=setTimeout(function(){if(rn=void 0,hn=Date.now(),!on){var Rn=en.apply(bn,fn);
2sn&&sn(Rn),mn.forEach(function(ni){return(0,ni.resolve)(Rn)}),mn=[]}},gn()),xn){var En=en.apply(bn,fn);return sn&&sn(En),Mn(En)}mn.push({resolve:Mn,reject:Tn})})};return yn.cancel=function(fn){rn!==void 0&&clearTimeout(rn),mn.forEach(function(bn){return(0,bn.reject)(fn)}),mn=[]},yn}const We={...W$2,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},io=defineComponent({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:We,setup(en,He){const tn=ref(),nn=reactive({ready:!1,layersToAdd:[],layersInControl:[]}),{options:an}=J$1(en),rn=f$2(en,We,an),{listeners:on,attrs:sn}=T$2(He.attrs),dn=Y$2(M$1),hn=Y$2(ee$1),mn=Y$2(H$2),gn=Y$2(me$1);provide(h$2,en.useGlobalLeaflet);const yn=computed(()=>{const xn={};return en.noBlockingAnimations&&(xn.animate=!1),xn}),fn=computed(()=>{const xn=yn.value;return en.padding&&(xn.padding=en.padding),en.paddingTopLeft&&(xn.paddingTopLeft=en.paddingTopLeft),en.paddingBottomRight&&(xn.paddingBottomRight=en.paddingBottomRight),xn}),bn={moveend:rt$1(xn=>{nn.leafletRef&&(He.emit("update:zoom",nn.leafletRef.getZoom()),He.emit("update:center",nn.leafletRef.getCenter()),He.emit("update:bounds",nn.leafletRef.getBounds()))}),overlayadd(xn){const En=nn.layersInControl.find(Rn=>Rn.name===xn.name);En&&En.updateVisibleProp(!0)},overlayremove(xn){const En=nn.layersInControl.find(Rn=>Rn.name===xn.name);En&&En.updateVisibleProp(!1)}};onMounted(async()=>{en.useGlobalLeaflet&&(b$2.L=b$2.L||await __vitePreload(()=>Promise.resolve().then(()=>leafletSrc),void 0));const{map:xn,CRS:En,Icon:Rn,latLngBounds:ni,latLng:mi,stamp:bi}=en.useGlobalLeaflet?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);try{rn.beforeMapMount&&await rn.beforeMapMount()}catch(si){console.error(`The following error occurred running the provided beforeMapMount hook ${si.message}`)}await qe$1(Rn);const _i=typeof rn.crs=="string"?En[rn.crs]:rn.crs;rn.crs=_i||En.EPSG3857;const oi={addLayer(si){si.layerType!==void 0&&(nn.layerControl===void 0?nn.layersToAdd.push(si):nn.layersInControl.find(fi=>bi(fi.leafletObject)===bi(si.leafletObject))||(nn.layerControl.addLayer(si),nn.layersInControl.push(si))),si.visible!==!1&&nn.leafletRef.addLayer(si.leafletObject)},removeLayer(si){si.layerType!==void 0&&(nn.layerControl===void 0?nn.layersToAdd=nn.layersToAdd.filter(fi=>fi.name!==si.name):(nn.layerControl.removeLayer(si.leafletObject),nn.layersInControl=nn.layersInControl.filter(fi=>bi(fi.leafletObject)!==bi(si.leafletObject)))),nn.leafletRef.removeLayer(si.leafletObject)},registerLayerControl(si){nn.layerControl=si,nn.layersToAdd.forEach(fi=>{nn.layerControl.addLayer(fi)}),nn.layersToAdd=[],mn(si)},registerControl(si){nn.leafletRef.addControl(si.leafletObject)},setZoom(si){const fi=nn.leafletRef.getZoom();si!==fi&&nn.leafletRef.setZoom(si,yn.value)},setCrs(si){const fi=nn.leafletRef.getBounds();nn.leafletRef.options.crs=si,nn.leafletRef.fitBounds(fi,{animate:!1,padding:[0,0]})},fitBounds(si){nn.leafletRef.fitBounds(si,fn.value)},setBounds(si){if(!si)return;const fi=ni(si);fi.isValid()&&!(nn.lastSetBounds||nn.leafletRef.getBounds()).equals(fi,0)&&(nn.lastSetBounds=fi,nn.leafletRef.fitBounds(fi))},setCenter(si){if(si==null)return;const fi=mi(si),ei=nn.lastSetCenter||nn.leafletRef.getCenter();(ei.lat!==fi.lat||ei.lng!==fi.lng)&&(nn.lastSetCenter=fi,nn.leafletRef.panTo(fi,yn.value))}};V$2(dn,oi.addLayer),V$2(hn,oi.removeLayer),V$2(mn,oi.registerControl),V$2(gn,oi.registerLayerControl),nn.leafletRef=markRaw(xn(tn.value,rn)),L$3(oi,nn.leafletRef,en),ce$1(nn.leafletRef,bn),ce$1(nn.leafletRef,on),nn.ready=!0,nextTick(()=>He.emit("ready",nn.leafletRef))}),onBeforeUnmount(()=>{ye$1(bn),nn.leafletRef&&(nn.leafletRef.off(),nn.leafletRef.remove())});const Mn=computed(()=>nn.leafletRef),Tn=computed(()=>nn.ready);return{root:tn,ready:Tn,leafletObject:Mn,attrs:sn}},render({attrs:en}){return en.style||(en.style={}),en.style.width||(en.style.width="100%"),en.style.height||(en.style.height="100%"),h$3("div",{...en,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),Gt$1=["Symbol(Comment)","Symbol(Text)"],zt$2=["LTooltip","LPopup"],ze$1={...D$2,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},st$1=(en,He,tn)=>{const{options:nn,methods:an}=q$2(en,He,tn),rn=f$2(en,ze$1,nn),on={...an,setDraggable(sn){He.value.dragging&&(sn?He.value.dragging.enable():He.value.dragging.disable())},latLngSync(sn){tn.emit("update:latLng",sn.latlng),tn.emit("update:lat-lng",sn.latlng)},setLatLng(sn){if(sn!=null&&He.value){const dn=He.value.getLatLng();(!dn||!dn.equals(sn))&&He.value.setLatLng(sn)}}};return{options:rn,methods:on}},at$1=(en,He)=>{const tn=He.slots.default&&He.slots.default();return tn&&tn.length&&tn.some(Nt$2)};function Nt$2(en){return!(Gt$1.includes(en.type.toString())||zt$2.includes(en.type.name))}const $t$1=Object.freeze(Object.defineProperty({__proto__:null,markerProps:ze$1,setupMarker:st$1,shouldBlankIcon:at$1},Symbol.toStringTag,{value:"Module"})),uo=defineComponent({name:"LMarker",props:ze$1,setup(en,He){const tn=ref(),nn=ref(!1),an=inject(h$2),rn=m$3(M$1);provide(ve$1,()=>{var hn;return!!((hn=tn.value)!=null&&hn.getElement())}),provide(be$1,hn=>{var mn,gn;const yn=k$1((mn=tn.value)==null?void 0:mn.getElement)&&((gn=tn.value)==null?void 0:gn.getElement());yn&&(yn.innerHTML=hn)}),provide(fe$1,hn=>{var mn;return((mn=tn.value)==null?void 0:mn.setIcon)&&tn.value.setIcon(hn)});const{options:on,methods:sn}=st$1(en,tn,He),dn={moveHandler:rt$1(sn.latLngSync)};return onMounted(async()=>{const{marker:hn,divIcon:mn}=an?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);at$1(on,He)&&(on.icon=mn({className:""})),tn.value=markRaw(hn(en.latLng,on));const{listeners:gn}=T$2(He.attrs);tn.value.on(gn),tn.value.on("move",dn.moveHandler),L$3(sn,tn.value,en),rn({...en,...sn,leafletObject:tn.value}),nn.value=!0,nextTick(()=>He.emit("ready",tn.value))}),onBeforeUnmount(()=>ye$1(dn)),{ready:nn,leafletObject:tn}},render(){return G$1(this.ready,this.$slots)}}),le$1={...ne$1,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},Ne$1=(en,He,tn)=>{const{options:nn,methods:an}=_e$1(en,He,tn),rn=f$2(en,le$1,nn),on={...an,setSmoothFactor(sn){He.value.setStyle({smoothFactor:sn}
2)},setNoClip(sn){He.value.setStyle({noClip:sn})},addLatLng(sn){He.value.addLatLng(sn)}};return{options:rn,methods:on}},kt$2=Object.freeze(Object.defineProperty({__proto__:null,polylineProps:le$1,setupPolyline:Ne$1},Symbol.toStringTag,{value:"Module"})),x$3={...le$1},$e=(en,He,tn)=>{const{options:nn,methods:an}=Ne$1(en,He,tn),rn=f$2(en,x$3,nn),on={...an,toGeoJSON(sn){return He.value.toGeoJSON(sn)}};return{options:rn,methods:on}},Ut$2=Object.freeze(Object.defineProperty({__proto__:null,polygonProps:x$3,setupPolygon:$e},Symbol.toStringTag,{value:"Module"})),ke$1={...W$2,content:{type:String,default:null}},Ue=(en,He)=>{const{options:tn,methods:nn}=J$1(en),an={...nn,setContent(rn){He.value&&rn!==null&&rn!==void 0&&He.value.setContent(rn)}};return{options:tn,methods:an}},De=en=>en.default?h$3("div",{ref:"root"},en.default()):null,Dt$1=Object.freeze(Object.defineProperty({__proto__:null,popperProps:ke$1,render:De,setupPopper:Ue},Symbol.toStringTag,{value:"Module"})),lt$2={...ke$1,latLng:{type:[Object,Array],default:()=>[]}},it$1=(en,He)=>{const{options:tn,methods:nn}=Ue(en,He);return{options:tn,methods:nn}},Ft$1=Object.freeze(Object.defineProperty({__proto__:null,popupProps:lt$2,setupPopup:it$1},Symbol.toStringTag,{value:"Module"})),yo=defineComponent({name:"LPopup",props:lt$2,setup(en,He){const tn=ref(),nn=ref(null),an=inject(h$2),rn=m$3(ge$1),on=m$3(he$1),{options:sn,methods:dn}=it$1(en,tn);return onMounted(async()=>{const{popup:hn}=an?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);tn.value=markRaw(hn(sn)),en.latLng!==void 0&&tn.value.setLatLng(en.latLng),L$3(dn,tn.value,en);const{listeners:mn}=T$2(He.attrs);tn.value.on(mn),tn.value.setContent(en.content||nn.value||""),rn(tn.value),nextTick(()=>He.emit("ready",tn.value))}),onBeforeUnmount(()=>{on()}),{root:nn,leafletObject:tn}},render(){return De(this.$slots)}}),Fe$2={...x$3,latLngs:{...x$3.latLngs,required:!1},bounds:{type:Object,custom:!0}},ut$1=(en,He,tn)=>{const{options:nn,methods:an}=$e(en,He,tn),rn=f$2(en,Fe$2,nn),on={...an,setBounds(sn){He.value.setBounds(sn)},setLatLngs(sn){He.value.setBounds(sn)}};return{options:rn,methods:on}},Zt$1=Object.freeze(Object.defineProperty({__proto__:null,rectangleProps:Fe$2,setupRectangle:ut$1},Symbol.toStringTag,{value:"Module"})),ie$1={...ae$1,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:en=>typeof en=="string"?!0:Array.isArray(en)?en.every(He=>typeof He=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},Ze=(en,He,tn)=>{const{options:nn,methods:an}=Ae$1(en,He,tn),rn=f$2(en,ie$1,nn),on={...an};return{options:rn,methods:on}},Et$2=Object.freeze(Object.defineProperty({__proto__:null,setupTileLayer:Ze,tileLayerProps:ie$1},Symbol.toStringTag,{value:"Module"})),vo=defineComponent({props:ie$1,setup(en,He){const tn=ref(),nn=inject(h$2),an=m$3(M$1),{options:rn,methods:on}=Ze(en,tn,He);return onMounted(async()=>{const{tileLayer:sn}=nn?b$2.L:await __vitePreload(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);tn.value=markRaw(sn(en.url,rn));const{listeners:dn}=T$2(He.attrs);tn.value.on(dn),L$3(on,tn.value,en),an({...en,...on,leafletObject:tn.value}),nextTick(()=>He.emit("ready",tn.value))}),{leafletObject:tn}},render(){return null}}),ct$1={...ke$1},dt$2=(en,He)=>{const{options:tn,methods:nn}=Ue(en,He),an=m$3(Oe$1);return onBeforeUnmount(()=>{an()}),{options:tn,methods:nn}},Ht$1=Object.freeze(Object.defineProperty({__proto__:null,setupTooltip:dt$2,tooltipProps:ct$1},Symbol.toStringTag,{value:"Module"})),Ee={...ie$1,layers:{type:String,required:!0},styles:{type:String},format:{type:String},transparent:{type:Boolean,default:void 0},version:{type:String},crs:{type:Object},uppercase:{type:Boolean,default:void 0}},pt$1=(en,He,tn)=>{const{options:nn,methods:an}=Ze(en,He,tn);return{options:f$2(en,Ee,nn),methods:{...an}}},Wt$1=Object.freeze(Object.defineProperty({__proto__:null,setupWMSTileLayer:pt$1,wmsTileLayerProps:Ee},Symbol.toStringTag,{value:"Module"})),go=Object.freeze(Object.defineProperty({__proto__:null,Circle:Ot$2,CircleMarker:ht$1,Component:bt$2,Control:St$2,ControlAttribution:_t$1,Control
2Layers:jt$2,ControlScale:Pt$1,ControlZoom:Ct$1,FeatureGroup:Mt$1,GeoJSON:Bt$1,GridLayer:wt$1,Icon:It$1,ImageOverlay:At$1,InteractiveLayer:gt$1,Layer:ft$1,LayerGroup:Tt$1,Marker:$t$1,Path:Lt$1,Polygon:Ut$2,Polyline:kt$2,Popper:Dt$1,Popup:Ft$1,Rectangle:Zt$1,TileLayer:Et$2,Tooltip:Ht$1,WmsTileLayer:Wt$1},Symbol.toStringTag,{value:"Module"}));var A$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},O$2={exports:{}};(function(en,He){(function(tn,nn){nn(He)})(A$1,function(tn){var nn=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(rn){L.Util.setOptions(this,rn),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var on=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,on?this._withAnimation:this._noAnimation),this._markerCluster=on?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(rn){if(rn instanceof L.LayerGroup)return this.addLayers([rn]);if(!rn.getLatLng)return this._nonPointGroup.addLayer(rn),this.fire("layeradd",{layer:rn}),this;if(!this._map)return this._needsClustering.push(rn),this.fire("layeradd",{layer:rn}),this;if(this.hasLayer(rn))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(rn,this._maxZoom),this.fire("layeradd",{layer:rn}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var on=rn,sn=this._zoom;if(rn.__parent)for(;on.__parent._zoom>=sn;)on=on.__parent;return this._currentShownBounds.contains(on.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(rn,on):this._animationAddLayerNonAnimated(rn,on)),this},removeLayer:function(rn){return rn instanceof L.LayerGroup?this.removeLayers([rn]):rn.getLatLng?this._map?rn.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(rn)),this._removeLayer(rn,!0),this.fire("layerremove",{layer:rn}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),rn.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(rn)&&(this._featureGroup.removeLayer(rn),rn.clusterShow&&rn.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,rn)&&this.hasLayer(rn)&&this._needsRemoving.push({layer:rn,latlng:rn._latlng}),this.fire("layerremove",{layer:rn}),this):(this._nonPointGroup.removeLayer(rn),this.fire("layerremove",{layer:rn}),this)},addLayers:function(rn,on){if(!L.Util.isArray(rn))return this.addLayer(rn);var sn=this._featureGroup,dn=this._nonPointGroup,hn=this.options.chunkedLoading,mn=this.options.chunkInterval,gn=this.options.chunkProgress,yn=rn.length,fn=0,bn=!0,Mn;if(this._map){var Tn=new Date().getTime(),xn=L.bind(function(){var Rn=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();fn<yn;fn++){if(hn&&fn%200===0){var ni=new Date().getTime()-Rn;if(ni>mn)break}if(Mn=rn[fn],Mn instanceof L.LayerGroup){bn&&(rn=rn.slice(),bn=!1),this._extractNonGroupLayers(Mn,rn),yn=rn.length;continue}if(!Mn.getLatLng){dn.addLayer(Mn),on||this.fire("layeradd",{layer:Mn});continue}if(!this.hasLayer(Mn)&&(this._addLayer(Mn,this._maxZoom),on||this.fire("layeradd",{layer:Mn}),Mn.__parent&&Mn.__parent.getChildCount()===2)){var mi=Mn.__parent.getAllChildMarkers(),bi=mi[0]===Mn?mi[1]:mi[0];sn.removeLayer(bi)}}gn&&gn(fn,yn,new Date().getTime()-Tn),fn===yn?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(xn,this.options.chunkDelay)},this);xn()}else for(var En=this._needsClustering;fn<yn;fn++){if(Mn=rn[fn],Mn instanceof L.LayerGroup){bn&&(rn=rn.slice(),bn=!1),this._extractNonGroupLayers(Mn,rn),yn=rn.length;continue}if(!Mn.getLatLng){dn.addLayer(Mn);continue}this.hasLayer(Mn)||En.push(Mn)}return this},removeLayers:function(rn){var on,sn,dn=rn.length,hn=this._featureGroup,mn=this._nonPointGroup,gn=!0;if(!this._map){for(on=0;on<dn;on++){if(sn=rn[on],sn instanceof L.LayerGroup){gn&&(rn=rn.slice(),gn=!1),this._extractNonGroupLayers(sn,rn),dn=rn.length;continue}this._arraySplice(this._needsClustering,sn),mn.removeLayer(sn),this.hasLayer(sn)&&this._needsRemoving.push({layer:sn,latlng:sn._latlng}),this.fire("layerremove",{layer:sn})}return this}if(this._unspiderfy){this._unspiderfy();var yn=rn.slice(),fn=dn;for(on=0;on<fn;on++){if(sn=yn[on],sn instanceof L.LayerGroup){this._extractNonGroupLayers(sn,yn),fn=yn.length;continue}this._unspiderfyLayer(sn)}}for(on=0;on<dn;on++){if(sn=rn[on],sn instanceof L.LayerGroup){gn&&(rn=rn.slice(),gn=!1),this._extractNonGroupLayers(sn,rn),dn=rn.length;continue}if(!sn.__parent){mn.removeLayer(sn),this.fire("layerremove",{layer:sn});continue}this._removeLayer(sn,!0,!0),this.fire("layerremove",{layer:sn}),hn.hasLayer(sn)&&(hn.removeLayer(sn),sn.clusterShow&&sn.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(rn){rn.off(this._childMarkerEventHandlers,this),delete rn.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var rn=new L.LatLngBounds;this._topClusterLevel&&rn.extend(this._topClusterLevel._bounds);for(var on=this._needsClustering.length-1;on>=0;on--)rn.extend(this._needsClustering[on].getLatLng());return rn.extend(this._nonPointGroup.getBounds()),rn},eachLayer:function(rn,on){var sn=this._needsClustering.slice(),dn=this._needsRemoving,hn,mn,gn;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(sn),mn=sn.length-1;mn>=0;mn--){for(hn=!0,gn=dn.length-1;gn>=0;gn--)if(dn[gn].layer===sn[mn]){hn=!1;break}hn&&rn.call(on,sn[mn])}this._nonPointGroup.eachLayer(rn,on)},getLayers:function(){var rn=[];return this.eachLayer(function(on){rn.push(on)}),rn},getLayer:function(rn){var on=null;return rn=parseInt(rn,10),this.eachLayer(function(sn){L.stamp(sn)===rn&&(on=sn)}),on}
2,hasLayer:function(rn){if(!rn)return!1;var on,sn=this._needsClustering;for(on=sn.length-1;on>=0;on--)if(sn[on]===rn)return!0;for(sn=this._needsRemoving,on=sn.length-1;on>=0;on--)if(sn[on].layer===rn)return!1;return!!(rn.__parent&&rn.__parent._group===this)||this._nonPointGroup.hasLayer(rn)},zoomToShowLayer:function(rn,on){var sn=this._map;typeof on!="function"&&(on=function(){});var dn=function(){(sn.hasLayer(rn)||sn.hasLayer(rn.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",dn,this),this.off("animationend",dn,this),sn.hasLayer(rn)?on():rn.__parent._icon&&(this.once("spiderfied",on,this),rn.__parent.spiderfy()))};rn._icon&&this._map.getBounds().contains(rn.getLatLng())?on():rn.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",dn,this),this._map.panTo(rn.getLatLng())):(this._map.on("moveend",dn,this),this.on("animationend",dn,this),rn.__parent.zoomToBounds())},onAdd:function(rn){this._map=rn;var on,sn,dn;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(rn),this._nonPointGroup.addTo(rn),this._gridClusters||this._generateInitialClusters(),this._maxLat=rn.options.crs.projection.MAX_LATITUDE,on=0,sn=this._needsRemoving.length;on<sn;on++)dn=this._needsRemoving[on],dn.newlatlng=dn.layer._latlng,dn.layer._latlng=dn.latlng;for(on=0,sn=this._needsRemoving.length;on<sn;on++)dn=this._needsRemoving[on],this._removeLayer(dn.layer,!0),dn.layer._latlng=dn.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),sn=this._needsClustering,this._needsClustering=[],this.addLayers(sn,!0)},onRemove:function(rn){rn.off("zoomend",this._zoomEnd,this),rn.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(rn){for(var on=rn;on&&!on._icon;)on=on.__parent;return on||null},_arraySplice:function(rn,on){for(var sn=rn.length-1;sn>=0;sn--)if(rn[sn]===on)return rn.splice(sn,1),!0},_removeFromGridUnclustered:function(rn,on){for(var sn=this._map,dn=this._gridUnclustered,hn=Math.floor(this._map.getMinZoom());on>=hn&&dn[on].removeObject(rn,sn.project(rn.getLatLng(),on));on--);},_childMarkerDragStart:function(rn){rn.target.__dragStart=rn.target._latlng},_childMarkerMoved:function(rn){if(!this._ignoreMove&&!rn.target.__dragStart){var on=rn.target._popup&&rn.target._popup.isOpen();this._moveChild(rn.target,rn.oldLatLng,rn.latlng),on&&rn.target.openPopup()}},_moveChild:function(rn,on,sn){rn._latlng=on,this.removeLayer(rn),rn._latlng=sn,this.addLayer(rn)},_childMarkerDragEnd:function(rn){var on=rn.target.__dragStart;delete rn.target.__dragStart,on&&this._moveChild(rn.target,on,rn.target._latlng)},_removeLayer:function(rn,on,sn){var dn=this._gridClusters,hn=this._gridUnclustered,mn=this._featureGroup,gn=this._map,yn=Math.floor(this._map.getMinZoom());on&&this._removeFromGridUnclustered(rn,this._maxZoom);var fn=rn.__parent,bn=fn._markers,Mn;for(this._arraySplice(bn,rn);fn&&(fn._childCount--,fn._boundsNeedUpdate=!0,!(fn._zoom<yn));)on&&fn._childCount<=1?(Mn=fn._markers[0]===rn?fn._markers[1]:fn._markers[0],dn[fn._zoom].removeObject(fn,gn.project(fn._cLatLng,fn._zoom)),hn[fn._zoom].addObject(Mn,gn.project(Mn.getLatLng(),fn._zoom)),this._arraySplice(fn.__parent._childClusters,fn),fn.__parent._markers.push(Mn),Mn.__parent=fn.__parent,fn._icon&&(mn.removeLayer(fn),sn||mn.addLayer(Mn))):fn._iconNeedsUpdate=!0,fn=fn.__parent;delete rn.__parent},_isOrIsParent:function(rn,on){for(;on;){if(rn===on)return!0;on=on.parentNode}return!1},fire:function(rn,on,sn){if(on&&on.layer instanceof L.MarkerCluster){if(on.originalEvent&&this._isOrIsParent(on.layer._icon,on.originalEvent.relatedTarget))return;rn="cluster"+rn}L.FeatureGroup.prototype.fire.call(this,rn,on,sn)},listens:function(rn,on){return L.FeatureGroup.prototype.listens.call(this,rn,on)||L.FeatureGroup.prototype.listens.call(this,"cluster"+rn,on)},_defaultIconCreateFunction:function(rn){var on=rn.getChildCount(),sn=" marker-cluster-";return on<10?sn+="small":on<100?sn+="medium":sn+="large",new L.DivIcon({html:"<div><span>"+on+"</span></div>",className:"marker-cluster"+sn,iconSize:new L.Point(40,40)})},_bindEvents:function(){var rn=this._map,on=this.options.spiderfyOnMaxZoom,sn=this.options.showCoverageOnHover,dn=this.options.zoomToBoundsOnClick,hn=this.options.spiderfyOnEveryZoom;(on||dn||hn)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),sn&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),rn.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(rn){var on=rn.layer,sn=on;if(!(rn.type==="clusterkeypress"&&rn.originalEvent&&rn.originalEvent.keyCode!==13)){for(;sn._childClusters.length===1;)sn=sn._childClusters[0];sn._zoom===this._maxZoom&&sn._childCount===on._childCount&&this.options.spiderfyOnMaxZoom?on.spiderfy():this.options.zoomToBoundsOnClick&&on.zoomToBounds(),this.options.spiderfyOnEveryZoom&&on.spiderfy(),rn.originalEvent&&rn.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(rn){var on=this._map;this._inZoomAnimation||(this._shownPolygon&&on.removeLayer(this._shownPolygon),rn.layer.getChildCount()>2&&rn.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(rn.layer.getConvexHull(),this.options.polygonOptions),on.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var rn=this.options.spiderfyOnMaxZoom,on=this.options.showCoverageOnHover,sn=this.options.zoomToBoundsOnClick,dn=this.options.spiderfyOnEveryZoom,hn=this._map;(rn||sn||dn)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),on&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),hn.off("zoomend",this._hideCoverage,this))}
2,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var rn=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,rn),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),rn),this._currentShownBounds=rn}},_generateInitialClusters:function(){var rn=Math.ceil(this._map.getMaxZoom()),on=Math.floor(this._map.getMinZoom()),sn=this.options.maxClusterRadius,dn=sn;typeof sn!="function"&&(dn=function(){return sn}),this.options.disableClusteringAtZoom!==null&&(rn=this.options.disableClusteringAtZoom-1),this._maxZoom=rn,this._gridClusters={},this._gridUnclustered={};for(var hn=rn;hn>=on;hn--)this._gridClusters[hn]=new L.DistanceGrid(dn(hn)),this._gridUnclustered[hn]=new L.DistanceGrid(dn(hn));this._topClusterLevel=new this._markerCluster(this,on-1)},_addLayer:function(rn,on){var sn=this._gridClusters,dn=this._gridUnclustered,hn=Math.floor(this._map.getMinZoom()),mn,gn;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(rn),rn.on(this._childMarkerEventHandlers,this);on>=hn;on--){mn=this._map.project(rn.getLatLng(),on);var yn=sn[on].getNearObject(mn);if(yn){yn._addChild(rn),rn.__parent=yn;return}if(yn=dn[on].getNearObject(mn),yn){var fn=yn.__parent;fn&&this._removeLayer(yn,!1);var bn=new this._markerCluster(this,on,yn,rn);sn[on].addObject(bn,this._map.project(bn._cLatLng,on)),yn.__parent=bn,rn.__parent=bn;var Mn=bn;for(gn=on-1;gn>fn._zoom;gn--)Mn=new this._markerCluster(this,gn,Mn),sn[gn].addObject(Mn,this._map.project(yn.getLatLng(),gn));fn._addChild(Mn),this._removeFromGridUnclustered(yn,on);return}dn[on].addObject(rn,mn)}this._topClusterLevel._addChild(rn),rn.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(rn){rn instanceof L.MarkerCluster&&rn._iconNeedsUpdate&&rn._updateIcon()})},_enqueue:function(rn){this._queue.push(rn),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var rn=0;rn<this._queue.length;rn++)this._queue[rn].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var rn=Math.round(this._map._zoom);this._processQueue(),this._zoom<rn&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,rn)):this._zoom>rn?(this._animationStart(),this._animationZoomOut(this._zoom,rn)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(rn){var on=this._maxLat;return on!==void 0&&(rn.getNorth()>=on&&(rn._northEast.lat=1/0),rn.getSouth()<=-on&&(rn._southWest.lat=-1/0)),rn},_animationAddLayerNonAnimated:function(rn,on){if(on===rn)this._featureGroup.addLayer(rn);else if(on._childCount===2){on._addToMap();var sn=on.getAllChildMarkers();this._featureGroup.removeLayer(sn[0]),this._featureGroup.removeLayer(sn[1])}else on._updateIcon()},_extractNonGroupLayers:function(rn,on){var sn=rn.getLayers(),dn=0,hn;for(on=on||[];dn<sn.length;dn++){if(hn=sn[dn],hn instanceof L.LayerGroup){this._extractNonGroupLayers(hn,on);continue}on.push(hn)}return on},_overrideMarkerIcon:function(rn){var on=rn.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[rn]}});return on}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(rn,on){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),rn),this._topClusterLevel._recursivelyAddChildrenToMap(null,on,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(rn,on){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),rn),this._topClusterLevel._recursivelyAddChildrenToMap(null,on,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(rn,on){this._animationAddLayerNonAnimated(rn,on)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(rn,on){var sn=this._getExpandedVisibleBounds(),dn=this._featureGroup,hn=Math.floor(this._map.getMinZoom()),mn;this._ignoreMove=!0,this._topClusterLevel._recursively(sn,rn,hn,function(gn){var yn=gn._latlng,fn=gn._markers,bn;for(sn.contains(yn)||(yn=null),gn._isSingleParent()&&rn+1===on?(dn.removeLayer(gn),gn._recursivelyAddChildrenToMap(null,on,sn)):(gn.clusterHide(),gn._recursivelyAddChildrenToMap(yn,on,sn)),mn=fn.length-1;mn>=0;mn--)bn=fn[mn],sn.contains(bn._latlng)||dn.removeLayer(bn)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(sn,on),dn.eachLayer(function(gn){!(gn instanceof L.MarkerCluster)&&gn._icon&&gn.clusterShow()}),this._topClusterLevel._recursively(sn,rn,on,function(gn){gn._recursivelyRestoreChildPositions(on)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(sn,rn,hn,function(gn){dn.removeLayer(gn),gn.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(rn,on){this._animationZoomOutSingle(this._topClusterLevel,rn-1,on),this._topClusterLevel._recursivelyAddChildrenToMap(null,on,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),rn,this._getExpandedVisibleBounds())},_animationAddLayer:function(rn,on){var sn=this,dn=this._featureGroup;dn.addLayer(rn),on!==rn&&(on._childCount>2?(on._updateIcon(),this._forceLayout(),this._animationStart(),rn._setPos(this._map.latLngToLayerPoint(on.getLatLng())),rn.clusterHide(),this._enqueue(function(){dn.removeLayer(rn),rn.clusterShow(),sn._animationEnd()})):(this._forceLayout(),sn._animationStart(),sn._animationZoomOutSingle(on,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(rn,on,sn){var dn=this._getExpandedVisibleBounds(),hn=Math.floor(this._map.getMinZoom());rn._recursivelyAnimateChildrenInAndAddSelfToMap(dn,hn,on+1,sn);var mn=this;this._forceLayout(),rn._recursivelyBecomeVisible(dn,sn),this._enqueue(function(){if(rn._childCount===1){var gn=rn._markers[0];this._ignoreMove=!0,gn.setLatLng(gn.getLatLng()),this._ignoreMove=!1,gn.clusterShow&&gn.clusterShow()}else rn._recursively(dn,sn,hn,function(yn){yn._recursivelyRemoveChildrenFromMap(dn,hn,on+1)});mn._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(rn){return new L.MarkerClusterGroup(rn)};
2var an=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(rn,on,sn,dn){L.Marker.prototype.initialize.call(this,sn?sn._cLatLng||sn.getLatLng():new L.LatLng(0,0),{icon:this,pane:rn.options.clusterPane}),this._group=rn,this._zoom=on,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,sn&&this._addChild(sn),dn&&this._addChild(dn)},getAllChildMarkers:function(rn,on){rn=rn||[];for(var sn=this._childClusters.length-1;sn>=0;sn--)this._childClusters[sn].getAllChildMarkers(rn,on);for(var dn=this._markers.length-1;dn>=0;dn--)on&&this._markers[dn].__dragStart||rn.push(this._markers[dn]);return rn},getChildCount:function(){return this._childCount},zoomToBounds:function(rn){for(var on=this._childClusters.slice(),sn=this._group._map,dn=sn.getBoundsZoom(this._bounds),hn=this._zoom+1,mn=sn.getZoom(),gn;on.length>0&&dn>hn;){hn++;var yn=[];for(gn=0;gn<on.length;gn++)yn=yn.concat(on[gn]._childClusters);on=yn}dn>
2hn?this._group._map.setView(this._latlng,hn):dn<=mn?this._group._map.setView(this._latlng,mn+1):this._group._map.fitBounds(this._bounds,rn)},getBounds:function(){var rn=new L.LatLngBounds;return rn.extend(this._bounds),rn},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(rn,on){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(rn),rn instanceof L.MarkerCluster?(on||(this._childClusters.push(rn),rn.__parent=this),this._childCount+=rn._childCount):(on||this._markers.push(rn),this._childCount++),this.__parent&&this.__parent._addChild(rn,!0)},_setClusterCenter:function(rn){this._cLatLng||(this._cLatLng=rn._cLatLng||rn._latlng)},_resetBounds:function(){var rn=this._bounds;rn._southWest&&(rn._southWest.lat=1/0,rn._southWest.lng=1/0),rn._northEast&&(rn._northEast.lat=-1/0,rn._northEast.lng=-1/0)},_recalculateBounds:function(){var rn=this._markers,on=this._childClusters,sn=0,dn=0,hn=this._childCount,mn,gn,yn,fn;if(hn!==0){for(this._resetBounds(),mn=0;mn<rn.length;mn++)yn=rn[mn]._latlng,this._bounds.extend(yn),sn+=yn.lat,dn+=yn.lng;for(mn=0;mn<on.length;mn++)gn=on[mn],gn._boundsNeedUpdate&&gn._recalculateBounds(),this._bounds.extend(gn._bounds),yn=gn._wLatLng,fn=gn._childCount,sn+=yn.lat*fn,dn+=yn.lng*fn;this._latlng=this._wLatLng=new L.LatLng(sn/hn,dn/hn),this._boundsNeedUpdate=!1}},_addToMap:function(rn){rn&&(this._backupLatlng=this._latlng,this.setLatLng(rn)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(rn,on,sn){this._recursively(rn,this._group._map.getMinZoom(),sn-1,function(dn){var hn=dn._markers,mn,gn;for(mn=hn.length-1;mn>=0;mn--)gn=hn[mn],gn._icon&&(gn._setPos(on),gn.clusterHide())},function(dn){var hn=dn._childClusters,mn,gn;for(mn=hn.length-1;mn>=0;mn--)gn=hn[mn],gn._icon&&(gn._setPos(on),gn.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(rn,on,sn,dn){this._recursively(rn,dn,on,function(hn){hn._recursivelyAnimateChildrenIn(rn,hn._group._map.latLngToLayerPoint(hn.getLatLng()).round(),sn),hn._isSingleParent()&&sn-1===dn?(hn.clusterShow(),hn._recursivelyRemoveChildrenFromMap(rn,on,sn)):hn.clusterHide(),hn._addToMap()})},_recursivelyBecomeVisible:function(rn,on){this._recursively(rn,this._group._map.getMinZoom(),on,null,function(sn){sn.clusterShow()})},_recursivelyAddChildrenToMap:function(rn,on,sn){this._recursively(sn,this._group._map.getMinZoom()-1,on,function(dn){if(on!==dn._zoom)for(var hn=dn._markers.length-1;hn>=0;hn--){var mn=dn._markers[hn];sn.contains(mn._latlng)&&(rn&&(mn._backupLatlng=mn.getLatLng(),mn.setLatLng(rn),mn.clusterHide&&mn.clusterHide()),dn._group._featureGroup.addLayer(mn))}},function(dn){dn._addToMap(rn)})},_recursivelyRestoreChildPositions:function(rn){for(var on=this._markers.length-1;on>=0;on--){var sn=this._markers[on];sn._backupLatlng&&(sn.setLatLng(sn._backupLatlng),delete sn._backupLatlng)}if(rn-1===this._zoom)for(var dn=this._childClusters.length-1;dn>=0;dn--)this._childClusters[dn]._restorePosition();else for(var hn=this._childClusters.length-1;hn>=0;hn--)this._childClusters[hn]._recursivelyRestoreChildPositions(rn)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(rn,on,sn,dn){var hn,mn;this._recursively(rn,on-1,sn-1,function(gn){for(mn=gn._markers.length-1;mn>=0;mn--)hn=gn._markers[mn],(!dn||!dn.contains(hn._latlng))&&(gn._group._featureGroup.removeLayer(hn),hn.clusterShow&&hn.clusterShow())},function(gn){for(mn=gn._childClusters.length-1;mn>=0;mn--)hn=gn._childClusters[mn],(!dn||!dn.contains(hn._latlng))&&(gn._group._featureGroup.removeLayer(hn),hn.clusterShow&&hn.clusterShow())})},_recursively:function(rn,on,sn,dn,hn){var mn=this._childClusters,gn=this._zoom,yn,fn;if(on<=gn&&(dn&&dn(this),hn&&gn===sn&&hn(this)),gn<on||gn<sn)for(yn=mn.length-1;yn>=0;yn--)fn=mn[yn],fn._boundsNeedUpdate&&fn._recalculateBounds(),rn.intersects(fn._bounds)&&fn._recursively(rn,on,sn,dn,hn)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var rn=this.options.opacity;return this.setOpacity(0),this.options.opacity=rn,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(rn){this._cellSize=rn,this._sqCellSize=rn*rn,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(rn,on){var sn=this._getCoord(on.x),dn=this._getCoord(on.y),hn=this._grid,mn=hn[dn]=hn[dn]||{},gn=mn[sn]=mn[sn]||[],yn=L.Util.stamp(rn);this._objectPoint[yn]=on,gn.push(rn)},updateObject:function(rn,on){this.removeObject(rn),this.addObject(rn,on)},removeObject:function(rn,on){var sn=this._getCoord(on.x),dn=this._getCoord(on.y),hn=this._grid,mn=hn[dn]=hn[dn]||{},gn=mn[sn]=mn[sn]||[],yn,fn;for(delete this._objectPoint[L.Util.stamp(rn)],yn=0,fn=gn.length;yn<fn;yn++)if(gn[yn]===rn)return gn.splice(yn,1),fn===1&&delete mn[sn],!0},eachObject:function(rn,on){var sn,dn,hn,mn,gn,yn,fn,bn=this._grid;for(sn in bn){gn=bn[sn];for(dn in gn)for(yn=gn[dn],hn=0,mn=yn.length;hn<mn;hn++)fn=rn.call(on,yn[hn]),fn&&(hn--,mn--)}},getNearObject:function(rn){var on=this._getCoord(rn.x),sn=this._getCoord(rn.y),dn,hn,mn,gn,yn,fn,bn,Mn,Tn=this._objectPoint,xn=this._sqCellSize,En=null;for(dn=sn-1;dn<=sn+1;dn++)if(gn=this._grid[dn],gn){for(hn=on-1;hn<=on+1;hn++)if(yn=gn[hn],yn)for(mn=0,fn=yn.length;mn<fn;mn++)bn=yn[mn],Mn=this._sqDist(Tn[L.Util.stamp(bn)],rn),(Mn<xn||Mn<=xn&&En===null)&&(xn=Mn,En=bn)}return En},_getCoord:function(rn){var on=Math.floor(rn/this._cellSize);return isFinite(on)?on:rn},_sqDist:function(rn,on){var sn=on.x-rn.x,dn=on.y-rn.y;return sn*sn+dn*dn}},(function(){L.QuickHull={getDistant:function(rn,on){var sn=on[1].lat-on[0].lat,dn=on[0].lng-on[1].lng;return dn*(rn.lat-on[0].lat)+sn*(rn.lng-on[0].lng)},findMostDistantPointFromBaseLine:function(rn,on){var sn=0,dn=null,hn=[],mn,gn,yn;for(mn=on.length-1;mn>=0;mn--){if(gn=on[mn],yn=this.getDistant(gn,rn),yn>0)hn.push(gn);else continue;yn>sn&&(sn=yn,dn=gn)}return{maxPoint:dn,newPoints:hn}},buildConvexHull:function(rn,on){var sn=[],dn=this.findMostDistantPointFromBaseLine(rn,on);return dn.maxPoint?(sn=sn.concat(this.buildConvexHull([rn[0],dn.maxPoint],dn.newPoints)),sn=sn.concat(this.buildConvexHull([dn.maxPoint,rn[1]],dn.newPoints)),sn):[rn[0]]},getConvexHull:function(rn){var on=!1,sn=!1,dn=!1,hn=!1,mn=null,gn=null,yn=null,f
2n=null,bn=null,Mn=null,Tn;for(Tn=rn.length-1;Tn>=0;Tn--){var xn=rn[Tn];(on===!1||xn.lat>on)&&(mn=xn,on=xn.lat),(sn===!1||xn.lat<sn)&&(gn=xn,sn=xn.lat),(dn===!1||xn.lng>dn)&&(yn=xn,dn=xn.lng),(hn===!1||xn.lng<hn)&&(fn=xn,hn=xn.lng)}sn!==on?(Mn=gn,bn=mn):(Mn=fn,bn=yn);var En=[].concat(this.buildConvexHull([Mn,bn],rn),this.buildConvexHull([bn,Mn],rn));return En}}})(),L.MarkerCluster.include({getConvexHull:function(){var rn=this.getAllChildMarkers(),on=[],sn,dn;for(dn=rn.length-1;dn>=0;dn--)sn=rn[dn].getLatLng(),on.push(sn);return L.QuickHull.getConvexHull(on)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var rn=this.getAllChildMarkers(null,!0),on=this._group,sn=on._map,dn=sn.latLngToLayerPoint(this._latlng),hn;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?hn=this._group.options.spiderfyShapePositions(rn.length,dn):rn.length>=this._circleSpiralSwitchover?hn=this._generatePointsSpiral(rn.length,dn):(dn.y+=10,hn=this._generatePointsCircle(rn.length,dn)),this._animationSpiderfy(rn,hn)}},unspiderfy:function(rn){this._group._inZoomAnimation||(this._animationUnspiderfy(rn),this._group._spiderfied=null)},_generatePointsCircle:function(rn,on){var sn=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+rn),dn=sn/this._2PI,hn=this._2PI/rn,mn=[],gn,yn;for(dn=Math.max(dn,35),mn.length=rn,gn=0;gn<rn;gn++)yn=this._circleStartAngle+gn*hn,mn[gn]=new L.Point(on.x+dn*Math.cos(yn),on.y+dn*Math.sin(yn))._round();return mn},_generatePointsSpiral:function(rn,on){var sn=this._group.options.spiderfyDistanceMultiplier,dn=sn*this._spiralLengthStart,hn=sn*this._spiralFootSeparation,mn=sn*this._spiralLengthFactor*this._2PI,gn=0,yn=[],fn;for(yn.length=rn,fn=rn;fn>=0;fn--)fn<rn&&(yn[fn]=new L.Point(on.x+dn*Math.cos(gn),on.y+dn*Math.sin(gn))._round()),gn+=hn/dn+fn*5e-4,dn+=mn/gn;return yn},_noanimationUnspiderfy:function(){var rn=this._group,on=rn._map,sn=rn._featureGroup,dn=this.getAllChildMarkers(null,!0),hn,mn;for(rn._ignoreMove=!0,this.setOpacity(1),mn=dn.length-1;mn>=0;mn--)hn=dn[mn],sn.removeLayer(hn),hn._preSpiderfyLatlng&&(hn.setLatLng(hn._preSpiderfyLatlng),delete hn._preSpiderfyLatlng),hn.setZIndexOffset&&hn.setZIndexOffset(0),hn._spiderLeg&&(on.removeLayer(hn._spiderLeg),delete hn._spiderLeg);rn.fire("unspiderfied",{cluster:this,markers:dn}),rn._ignoreMove=!1,rn._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(rn,on){var sn=this._group,dn=sn._map,hn=sn._featureGroup,mn=this._group.options.spiderLegPolylineOptions,gn,yn,fn,bn;for(sn._ignoreMove=!0,gn=0;gn<rn.length;gn++)bn=dn.layerPointToLatLng(on[gn]),yn=rn[gn],fn=new L.Polyline([this._latlng,bn],mn),dn.addLayer(fn),yn._spiderLeg=fn,yn._preSpiderfyLatlng=yn._latlng,yn.setLatLng(bn),yn.setZIndexOffset&&yn.setZIndexOffset(1e6),hn.addLayer(yn);this.setOpacity(.3),sn._ignoreMove=!1,sn.fire("spiderfied",{cluster:this,markers:rn})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(rn,on){var sn=this,dn=this._group,hn=dn._map,mn=dn._featureGroup,gn=this._latlng,yn=hn.latLngToLayerPoint(gn),fn=L.Path.SVG,b
vendor: 1,744 bytes, line 2
2n=L.extend({},this._group.options.spiderLegPolylineOptions),Mn=bn.opacity,Tn,xn,En,Rn,ni,mi;for(Mn===void 0&&(Mn=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),fn?(bn.opacity=0,bn.className=(bn.className||"")+" leaflet-cluster-spider-leg"):bn.opacity=Mn,dn._ignoreMove=!0,Tn=0;Tn<rn.length;Tn++)xn=rn[Tn],mi=hn.layerPointToLatLng(on[Tn]),En=new L.Polyline([gn,mi],bn),hn.addLayer(En),xn._spiderLeg=En,fn&&(Rn=En._path,ni=Rn.getTotalLength()+.1,Rn.style.strokeDasharray=ni,Rn.style.strokeDashoffset=ni),xn.setZIndexOffset&&xn.setZIndexOffset(1e6),xn.clusterHide&&xn.clusterHide(),mn.addLayer(xn),xn._setPos&&xn._setPos(yn);for(dn._forceLayout(),dn._animationStart(),Tn=rn.length-1;Tn>=0;Tn--)mi=hn.layerPointToLatLng(on[Tn]),xn=rn[Tn],xn._preSpiderfyLatlng=xn._latlng,xn.setLatLng(mi),xn.clusterShow&&xn.clusterShow(),fn&&(En=xn._spiderLeg,Rn=En._path,Rn.style.strokeDashoffset=0,En.setStyle({opacity:Mn}));this.setOpacity(.3),dn._ignoreMove=!1,setTimeout(function(){dn._animationEnd(),dn.fire("spiderfied",{cluster:sn,markers:rn})},200)},_animationUnspiderfy:function(rn){var on=this,sn=this._group,dn=sn._map,hn=sn._featureGroup,mn=rn?dn._latLngToNewLayerPoint(this._latlng,rn.zoom,rn.center):dn.latLngToLayerPoint(this._latlng),gn=this.getAllChildMarkers(null,!0),yn=L.Path.SVG,fn,bn,Mn,Tn,xn,En;for(sn._ignoreMove=!0,sn._animationStart(),this.setOpacity(1),bn=gn.length-1;bn>=0;bn--)fn=gn[bn],fn._preSpiderfyLatlng&&(fn.closePopup(),fn.setLatLng(fn._preSpiderfyLatlng),delete fn._preSpiderfyLatlng,En=!0,fn._setPos&&(fn._setPos(mn),En=!1),fn.clusterHide&&(fn.clusterHide(),En=!1),En&&hn.removeLayer(fn),yn&&(Mn=fn._spiderLeg,Tn=Mn._path,xn=Tn.getTotalLength()+.1,Tn.style.strokeDashoffset=xn,Mn.setStyle({opacity:0}
2)));sn._ignoreMove=!1,setTimeout(function(){var Rn=0;for(bn=gn.length-1;bn>=0;bn--)fn=gn[bn],fn._spiderLeg&&Rn++;for(bn=gn.length-1;bn>=0;bn--)fn=gn[bn],fn._spiderLeg&&(fn.clusterShow&&fn.clusterShow(),fn.setZIndexOffset&&fn.setZIndexOffset(0),Rn>1&&hn.removeLayer(fn),dn.removeLayer(fn._spiderLeg),delete fn._spiderLeg);sn._animationEnd(),sn.fire("unspiderfied",{cluster:on,markers:gn})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(rn){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(rn))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(rn){this._spiderfied&&this._spiderfied.unspiderfy(rn)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(rn){rn._spiderLeg&&(this._featureGroup.removeLayer(rn),rn.clusterShow&&rn.clusterShow(),rn.setZIndexOffset&&rn.setZIndexOffset(0),this._map.removeLayer(rn._spiderLeg),delete rn._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(rn){return rn?rn instanceof L.MarkerClusterGroup?rn=rn._topClusterLevel.getAllChildMarkers():rn instanceof L.LayerGroup?rn=rn._layers:rn instanceof L.MarkerCluster?rn=rn.getAllChildMarkers():rn instanceof L.Marker&&(rn=[rn]):rn=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(rn),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(rn),this},_flagParentsIconsNeedUpdate:function(rn){var on,sn;for(on in rn)for(sn=rn[on].__parent;sn;)sn._iconNeedsUpdate=!0,sn=sn.__parent},_refreshSingleMarkerModeMarkers:function(rn){var on,sn;for(on in rn)sn=rn[on],this.hasLayer(sn)&&sn.setIcon(this._overrideMarkerIcon(sn))}}),L.Marker.include({refreshIconOptions:function(rn,on){var sn=this.options.icon;return L.setOptions(sn,rn),this.setIcon(sn),on&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),tn.MarkerClusterGroup=nn,tn.MarkerCluster=an,Object.defineProperty(tn,"__esModule",{value:!0})})})(O$2,O$2.exports);const P$1=(en,He)=>{let tn;return(...nn)=>{const an=()=>(tn=void 0,en.apply(void 0,nn));clearTimeout(tn),tn=setTimeout(an,He)}},{featureGroupProps:N$2,setupFeatureGroup:U$1}=go.FeatureGroup,{AddLayerInjection:z$1,RemoveLayerInjection:j$1}=Qt$1,{propsToLeafletOptions:F$1}=Kt$2,D$1=["layeradd","layerremove","click","dblclick","mousedown","mouseup","mouseover","mouseout","contextmenu"],b$1=[...D$1,"clusterclick","clustermouseover","clustermouseout","animationend","spiderfied","unspiderfied"],B$1={...N$2,maxClusterRadius:{type:[Number,Function],default:80},clusterPane:{type:String,default:"markerPane"},spiderfyOnEveryZoom:{type:Boolean,default:!1},spiderfyOnMaxZoom:{type:Boolean,default:!0},showCoverageOnHover:{type:Boolean,default:!0},zoomToBoundsOnClick:{type:Boolean,default:!0},singleMarkerMode:{type:Boolean,default:!1},disableClusteringAtZoom:{type:Number,default:null},removeOutsideVisibleBounds:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},animateAddingMarkers:{type:Boolean,default:!1},spiderfyShapePositions:{type:Function,default:null},spiderfyDistanceMultiplier:{type:Number,default:1},spiderLegPolylineOptions:{type:Object,default:()=>({weight:1.5,color:"#222",opacity:.5})},chunkedLoading:{type:Boolean,default:!1},chunkInterval:{type:Number,default:200},chunkDelay:{type:Number,default:50},chunkProgress:{type:Function,default:null},polygonOptions:{type:Object,default:()=>({})},iconCreateFunction:{type:Function,default:null}},H$1=(en,He,tn)=>{const{options:nn,methods:an}
2=U$1(en,He,tn),rn=F$1(en,B$1,nn);let on=[];const sn=P$1(()=>{var gn,yn;on.length===1?(gn=He.value)==null||gn.addLayer(on[0]):(yn=He.value)==null||yn.addLayers(on),on=[]},0);let dn=[];const hn=P$1(()=>{var gn,yn;dn.length===1?(gn=He.value)==null||gn.removeLayer(dn[0]):(yn=He.value)==null||yn.removeLayers(dn),dn=[]},0),mn={...an,addLayer(gn){var yn;if(en.animateAddingMarkers)return(yn=He.value)==null?void 0:yn.addLayer(gn.leafletObject);on.push(gn.leafletObject),sn()},removeLayer(gn){var yn;if(en.animateAddingMarkers)return(yn=He.value)==null?void 0:yn.removeLayer(gn.leafletObject);dn.push(gn.leafletObject),hn()},setMaxClusterRadius(){throw new Error("Max cluster radius can't be set dynamically")},setClusterPane(){throw new Error("Cluster pane can't be set dynamically")},setSpiderfyOnEveryZoom(gn){He.value&&(He.value._unbindEvents(),He.value.options.spiderfyOnEveryZoom=gn,He.value._bindEvents())},setSpiderfyOnMaxZoom(gn){He.value&&(He.value._unbindEvents(),He.value.options.spiderfyOnMaxZoom=gn,He.value._bindEvents())},setShowCoverageOnHover(gn){He.value&&(He.value._unbindEvents(),He.value.options.showCoverageOnHover=gn,He.value._bindEvents())},setZoomToBoundsOnClick(gn){He.value&&(He.value._unbindEvents(),He.value.options.zoomToBoundsOnClick=gn,He.value._bindEvents())},setSingleMarkerMode(){throw new Error("Single marker mode can't be set dynamically")},setDisableClusteringAtZoom(){throw new Error("Disable Clustering at zoom can't be set dynamically")},setRemoveOutsideVisibleBounds(gn){He.value&&(He.value.options.removeOutsideVisibleBounds=gn)},setAnimate(){throw new Error("Animate can't be set dynamically")},setAnimateAddingMarkers(gn){He.value&&(He.value.options.animateAddingMarkers=gn)},setSpiderfyShapePositions(gn){He.value&&(He.value.options.spiderfyShapePositions=gn)},setSpiderfyDistanceMultiplier(gn){He.value&&(He.value.options.spiderfyDistanceMultiplier=gn)},setSpiderLegPolylineOptions(gn){He.value&&(He.value.options.spiderLegPolylineOptions=gn)},setChunkedLoading(gn){He.value&&(He.value.options.chunkedLoading=gn)},setChunkInterval(gn){He.value&&(He.value.options.chunkInterval=gn)},setChunkDelay(gn){He.value&&(He.value.options.chunkDelay=gn)},setChunkProgress(gn){He.value&&(He.value.options.chunkProgress=gn)},setPolygonOptions(gn){He.value&&(He.value.options.polygonOptions=gn)},setIconCreateFunction(gn){He.value&&(He.value._unbindEvents(),He.value.options.iconCreateFunction=gn,He.value._bindEvents())}};return provide(z$1,mn.addLayer),provide(j$1,mn.removeLayer),{options:rn,methods:mn}},{propsBinder:V$1,assertInject:q$1,WINDOW_OR_GLOBAL:W$1}=Kt$2,{AddLayerInjection:Q$1}=Qt$1,{render:X$1}=go.Layer,Y$1={props:B$1,emits:["ready",...b$1],setup(en,He){const tn=ref(),nn=ref(!1),an=q$1(Q$1),{methods:rn,options:on}=H$1(en,tn,He);return onMounted(async()=>{var sn;const{markerClusterGroup:dn}=W$1.L;tn.value=markRaw(dn(on));const hn=gn=>yn=>He.emit(gn,yn),mn=()=>{const gn={};for(const yn of b$1)gn[yn]=hn(yn);return gn};(sn=tn.value)==null||sn.on(mn()),V$1(rn,tn.value,en),an({...en,...rn,leafletObject:tn.value}),nn.value=!0,nextTick(()=>He.emit("ready",tn.value))}),{ready:nn,leafletObject:tn}},render(){return X$1(this.ready,this.$slots)}},_sfc_main$Z={name:"CustomMarkerIcon",components:{LIcon:so},props:{icon:{type:Array,required:!1,default:()=>["fas","map-marker-alt"]},active:{type:Boolean,required:!1,default:!1}}};function _sfc_render$Y(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("l-icon");return openBlock(),createBlock(sn,{"icon-size":[21,28],"icon-anchor":[10,28],"class-name":tn.active?"leaflet-marker-icon--active":""},{default:withCtx(()=>[createVNode(on,{icon:tn.icon,class:"custom-marker-icon__icon"},null,8,["icon"])]),_:1},8,["class-name"])}const CustomMarkerIcon=_export_sfc(_sfc_main$Z,[["render",_sfc_render$Y],["__scopeId","data-v-eb7924cd"]]);function getImageStyle(en,He){const nn=en.find(an=>an.style===He);return nn?{url:nn.url,width:nn.width,height:nn.height}:{url:en.url??"",width:0,height:0}}globalThis.L=L$4;const _sfc_main$Y={name:"CustomizedMap",components:{LImageOverlay:ao,CustomMarkerIcon,LMap:io,LMarker:uo,LTileLayer:vo,LIcon:so,LMarkerClusterGroup:Y$1,ButtonComponent},props:{map:{type:String,default:"osm"},mapLabelIds:{type:Array,default:()=>[]}},data(){return{mapObject:null,poiMarkers:[],selectedPoiMarker:null,carouselIndex:0,mapOverlay:!0,currentZoom:11}},computed:{...mapState("product",["mapProducts"]),selectedMapProduct(){return this.selectedPoiMarker?this.mapProducts.find(en=>en.uuid===this.selectedPoiMarker?.uuid)??null:null},selectedMapProductCarouselItems(){if(!this.selectedMapProduct)return[];const en=[];if(this.selectedMapProduct.image?.length){const He=getImageStyle(this.selectedMapProduct.image,"landscape_md");
2en.push({type:"image",src:He.url,width:He.width,height:He.height})}for(const He of this.selectedMapProduct.images??[])if(He?.length){const tn=getImageStyle(He,"landscape_md");en.push({type:"image",src:tn.url,width:tn.width,height:tn.height})}if(this.selectedMapProduct.videoUrl){const He=this.selectedMapProduct.videoUrl;if(He.startsWith(window.westtoerContentRepoUrl))en.push({type:"localVideo",src:He});else{const tn=He.match(/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|embed\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/)?.[1];en.push({type:"video",src:tn?`https://www.youtube.com/embed/${tn}`:He})}}return en},tileAttribution(){return'&copy; <a href="https://www.openstreetmap.org">OpenStreetMap</a> contributors, Tiles generated by <a href="https://www.champs-libres.coop" target="_blank">Champs-Libres</a>'}},watch:{selectedMapProduct(){this.carouselIndex=0},poiMarkers(en){if(en.length>0&&this.mapObject){const He=en.filter(tn=>tn.latitude&&tn.longitude).map(tn=>[tn.latitude,tn.longitude]);this.fitBounds(He)}}},mounted(){if(!document.querySelector("#customized-map-font")){const He=document.createElement("link");He.id="customized-map-font",He.rel="stylesheet",He.href="https://fonts.googleapis.com/css2?family=Manrope:wght@700&display=swap",document.head.appendChild(He)}const en=`/fetch-pois-by-label-ids/${this.mapLabelIds.join(",")}/${document.documentElement.lang}`;axios.get(en).then(He=>{this.poiMarkers=He.data.data.map(tn=>{const nn={data:tn,included:He.data.included};return new PoiTransformer(nn).getProduct()}).filter(Boolean)})},methods:{clusterIconCreateFunction(en){return L$4.divIcon({html:`<div class="cluster-icon">${en.getChildCount()}</div>`,iconSize:[40,40],iconAnchor:[20,20],className:""})},onMapReady(){if(this.mapObject=this.$refs.customisedMap,this.poiMarkers.length>0){const en=this.poiMarkers.filter(He=>He.latitude&&He.longitude).map(He=>[He.latitude,He.longitude]);this.fitBounds(en)}},fitBounds(en){const He=this.mapObject;He.leafletObject.invalidateSize(),He.leafletObject.fitBounds(en,{padding:[20,20]})},truncateHtml(en,He){if(en.replace(/<[^>]*>/g,"").length<=He)return en;let nn=0,an="",rn=!1;for(let on=0;on<en.length;on++){if(en[on]==="<"&&(rn=!0),!rn&&(nn++,nn>He)){an=an.trimEnd()+"&hellip;";break}an+=en[on],en[on]===">"&&(rn=!1)}return an},openCard(en){this.selectedPoiMarker=en,this.mapProducts.some(tn=>tn.uuid===en.uuid)||this.$store.dispatch("product/fetchMapPoi",en.uuid)}}},_hoisted_1$Y={class:"customized-map"},_hoisted_2$S={key:0,class:"customized-map__card"},_hoisted_3$P={key:0,class:"customized-map__card-spinner"},_hoisted_4$E={key:1,class:"customized-map__card-carousel"},_hoisted_5$B=["title","aria-label"],_hoisted_6$y=["src","width","height"],_hoisted_7$x=["src"],_hoisted_8$t=["src"],_hoisted_9$r=["title","aria-label"],_hoisted_10$p={class:"customized-map__card-content"},_hoisted_11$k={class:"customized-map__card-title"},_hoisted_12$h={class:"customized-map__card-map-product"},_hoisted_13$d={class:"customized-map__card-summary"},_hoisted_14$b=["innerHTML"],_hoisted_15$a=["aria-label"];function _sfc_render$X(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("button-component"),dn=resolveComponent("l-image-overlay"),hn=resolveComponent("l-tile-layer"),mn=resolveComponent("l-icon"),gn=resolveComponent("custom-marker-icon"),yn=resolveComponent("l-marker"),fn=resolveComponent("l-marker-cluster-group"),bn=resolveComponent("l-map");return openBlock(),createElementBlock("div",_hoisted_1$Y,[an.selectedPoiMarker?(openBlock(),createElementBlock("div",_hoisted_2$S,[createBaseVNode("button",{class:"customized-map__card-close",onClick:He[0]||(He[0]=Mn=>an.selectedPoiMarker=null)},[createVNode(on,{icon:["fas","times"]})]),rn.selectedMapProduct?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_3$P,[createVNode(on,{icon:["fas","spinner"],spin:""})])),rn.selectedMapProductCarouselItems.length?(openBlock(),createElementBlock("div",_hoisted_4$E,[an.carouselIndex>0?(openBlock(),createElementBlock("button",{key:0,class:"customized-map__card-carousel-btn customized-map__card-carousel-btn--prev",title:en.$t("Previous"),role:"button",tabindex:"-1","aria-label":en.$t("Previous"),onClick:He[1]||(He[1]=withModifiers(Mn=>an.carouselIndex--,["prevent"]))},[createVNode(on,{icon:["fas","chevron-left"]})],8,_hoisted_5$B)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.selectedMapProductCarouselItems,(Mn,Tn)=>(openBlock(),createElementBlock(Fragment,{key:Tn},[Mn.type==="image"&&Tn===an.carouselIndex?(openBlock(),createElementBlock("img",{key:0,src:Mn.src,width:Mn.width,height:Mn.height,class:"customized-map__card-carousel-media",alt:"",loading:"lazy"},null,8,_hoisted_6$y)):Mn.type==="localVideo"&&Tn===an.carouselIndex?(openBlock(),createElementBlock("video",{key:1,src:Mn.src,class:"customized-map__card-carousel-media",controls:""},null,8,_hoisted_7$x)):Mn.type==="video"&&Tn===an.carouselIndex?(openBlock(),createElementBlock("iframe",{key:2,src:Mn.src,class:"customized-map__card-carousel-media",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,_hoisted_8$t)):createCommentVNode("",!0)],64))),128)),an.carouselIndex<rn.selectedMapProductCarouselItems.length-1?(openBlock(),createElementBlock("button",{key:1,class:"customized-map__card-carousel-btn customized-map__card-carousel-btn--next",title:en.$t("Next"),role:"button",tabindex:"-1","aria-label":en.$t("Next"),onClick:He[2]||(He[2]=withModifiers(Mn=>an.carouselIndex++,["prevent"]))},[createVNode(on,{icon:["fas","chevron-right"]})],8,_hoisted_9$r)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_10$p,[createBaseVNode("h2",_hoisted_11$k,toDisplayString(an.selectedPoiMarker.title),
21),createBaseVNode("div",_hoisted_12$h,[createBaseVNode("div",_hoisted_13$d,[an.selectedPoiMarker.type&&an.selectedPoiMarker.city?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(en.$t("{type} in {locality}",{type:an.selectedPoiMarker.type,locality:an.selectedPoiMarker.city})),1)],64)):an.selectedPoiMarker.type?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(an.selectedPoiMarker.type),1)],64)):createCommentVNode("",!0)]),He[7]||(He[7]=createBaseVNode("div",{class:"customized-map__card-divider"},null,-1)),an.selectedPoiMarker&&an.selectedPoiMarker.winDescription&&!an.selectedPoiMarker.hideWinDescription?(openBlock(),createElementBlock("div",{key:0,class:"customized-map__card-description wysiwyg",innerHTML:rn.truncateHtml(an.selectedPoiMarker.winDescription,200)},null,8,_hoisted_14$b)):createCommentVNode("",!0),an.selectedPoiMarker.alias?(openBlock(),createBlock(sn,{key:1,name:en.$t("More info"),url:en.$store.getters["context/multilingualUrl"](an.selectedPoiMarker.alias),type:"primary",class:"customized-map__card-more-info"},null,8,["name","url"])):createCommentVNode("",!0)])])])):createCommentVNode("",!0),createVNode(bn,{ref:"customisedMap",zoom:11,"min-zoom":11,"max-zoom":16,"use-global-leaflet":!0,center:[51.326544411652044,3.421972043322451],options:{scrollWheelZoom:!1,touchZoom:!0,preferCanvas:!0},class:"customized-map",onReady:rn.onMapReady,"onUpdate:zoom":He[6]||(He[6]=Mn=>an.currentZoom=Mn)},{default:withCtx(()=>[tn.map!=="osm"?(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["customized-map__overlay",{"customized-map__overlay--active":an.mapOverlay}]),"aria-label":en.$t("Toggle overlay"),onClick:He[3]||(He[3]=withModifiers(Mn=>an.mapOverlay=!an.mapOverlay,["prevent"]))},[createVNode(on,{icon:["fas","layer-group"],class:"customized-map__overlay-icon"})],10,_hoisted_15$a)):createCommentVNode("",!0),an.mapOverlay&&tn.map==="zwinstreek"&&an.currentZoom<=12?(openBlock(),createBlock(dn,{key:1,url:"/images/zwinstreek-map.webp",bounds:[[51.181024482245284,3.0570176521630237],[51.472064341058804,3.7869264344818787]],opacity:.95,interactive:!0})):createCommentVNode("",!0),an.mapOverlay&&tn.map==="zwinstreek"&&an.currentZoom>=13?(openBlock(),createBlock(dn,{key:2,url:"/images/zwinstreek-map-1.webp",bounds:[[51.326544411652044,3.0570176521630237],[51.472064341058804,3.421972043322451]],opacity:.95,interactive:!0})):createCommentVNode("",!0),an.mapOverlay&&tn.map==="zwinstreek"&&an.currentZoom>=13?(openBlock(),createBlock(dn,{key:3,url:"/images/zwinstreek-map-2.webp",bounds:[[51.326544411652044,3.421972043322451],[51.472064341058804,3.7869264344818787]],opacity:.95,interactive:!0})):createCommentVNode("",!0),an.mapOverlay&&tn.map==="zwinstreek"&&an.currentZoom>=13?(openBlock(),createBlock(dn,{key:4,url:"/images/zwinstreek-map-3.webp",bounds:[[51.181024482245284,3.0570176521630237],[51.326544411652044,3.421972043322451]],opacity:.95,interactive:!0})):createCommentVNode("",!0),an.mapOverlay&&tn.map==="zwinstreek"&&an.currentZoom>=13?(openBlock(),createBlock(dn,{key:5,url:"/images/zwinstreek-map-4.webp",bounds:[[51.181024482245284,3.421972043322451],[51.326544411652044,3.7869264344818787]],opacity:.95,interactive:!0})):createCommentVNode("",!0),createVNode(hn,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap",attribution:rn.tileAttribution},null,8,["attribution"]),createVNode(fn,{"icon-create-function":rn.clusterIconCreateFunction},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(an.poiMarkers.filter(Mn=>Mn.latitude&&Mn.longitude),(Mn,Tn,xn,En)=>{const Rn=[an.selectedPoiMarker&&an.selectedPoiMarker.uuid===Mn.uuid];if(En&&En.key===Tn&&isMemoSame(En,Rn))return En;const ni=(openBlock(),createBlock(yn,{key:Tn,ref_for:!0,ref:"marker-"+Mn.uuid,"lat-lng":[Mn.latitude,Mn.longitude],radius:3,fill:!0,"fill-opacity":1,options:{title:Mn.title},onClick:mi=>rn.openCard(Mn)},{default:withCtx(()=>[tn.map==="zwinstreek"&&Mn.labels.some(mi=>mi.winUuid==="https://data.westtoer.be/id/concepts/80e35540-f323-4dee-9189-724043001771")?(openBlock(),createBlock(mn,{key:0,"icon-size":[40,56],"icon-anchor":[20,56],"class-name":an.selectedPoiMarker&&Mn.uuid===an.selectedPoiMarker.uuid?"leaflet-marker-icon--active":""},{default:withCtx(()=>[...He[8]||(He[8]=[createBaseVNode("img",{src:"/images/zwinstreek-zwinpoort.png",width:"40",height:"56",alt:"Zwinpoort"},null,-1)])]),_:1},8,["class-name"])):tn.map==="zwinstreek"&&Mn.labels.some(mi=>mi.winUuid==="https://data.westtoer.be/id/concepts/3feb24da-4fff-42ae-b23e-289b7f7ad91e")?(openBlock(),createBlock(mn,{key:1,"icon-size":[40,56],"icon-anchor":[20,56],"class-name":an.selectedPoiMarker&&Mn.uuid===an.selectedPoiMarker.uuid?"leaflet-marker-icon--active":""},{default:withCtx(()=>[...He[9]||(He[9]=[createBaseVNode("img",{src:"/images/zwinstreek-zwinspot.png",width:"40",height:"56",alt:"Zwinspot"},null,-1)])]),_:1},8,["class-name"])):(openBlock(),createBlock(gn,{key:2,active:!!(an.selectedPoiMarker&&Mn.uuid===an.selectedPoiMarker.uuid)},null,8,["active"]))]),_:2},1032,["lat-lng","options","onClick"]));return ni.memo=Rn,ni},He,4),128))]),_:1},8,["icon-create-function"])]),_:1},8,["onReady"])])}const CustomizedMap=_export_sfc(_sfc_main$Y,[["render",_sfc_render$X],["__scopeId","data-v-5acb8f9e"]]),REGISTRY={"data-vue-customized-map":{component:CustomizedMap,parseProps(en){const He=en.dataset.mapLabelIds??"";return{map:en.dataset.map??"osm",mapLabelIds:He.split(",").map(tn=>
2tn.trim()).filter(Boolean)}}}},REGISTRY_ATTRS=Object.keys(REGISTRY);function parseNode(en){if(en.nodeType===Node.TEXT_NODE){const tn=en.textContent??"";return tn?{k:"t",text:tn}:null}if(en.nodeType!==Node.ELEMENT_NODE)return null;const He=en;for(const tn of REGISTRY_ATTRS)if(He.hasAttribute(tn)){const nn=REGISTRY[tn];return{k:"c",def:nn,props:nn.parseProps(He)}}return{k:"e",tag:He.tagName.toLowerCase(),attrs:Array.from(He.attributes,tn=>[tn.name,tn.value]),children:Array.from(He.childNodes,parseNode).filter(tn=>tn!==null)}}function toVNode(en){if(en.k==="t")return createTextVNode(en.text);if(en.k==="c")return h$3(en.def.component,en.props);const He=Object.fromEntries(en.attrs),tn=en.children.map(toVNode);return tn.length?h$3(en.tag,He,tn):h$3(en.tag,He)}const _sfc_main$X=defineComponent({name:"MarkupRenderer",props:{markup:{type:String,default:""}},computed:{nodes(){const{markup:en}=this;if(!en||!REGISTRY_ATTRS.some(nn=>en.includes(nn)))return null;const tn=new DOMParser().parseFromString(`<div id="__r__">${en}</div>`,"text/html").getElementById("__r__");return tn?Array.from(tn.childNodes,parseNode).filter(nn=>nn!==null):null}},render(){if(!this.markup)return h$3("span");if(!this.nodes)return h$3("div",{innerHTML:this.markup});const en=this.nodes.map(toVNode);return en.length?en.length===1?en[0]:en:h$3("span")}}
2),_sfc_main$W={name:"InspirationPage",components:{Inspiration,FavoritesToggle,CampaignBadge,ResponsiveImage,SocialMedium,MarkupRenderer:_sfc_main$X},data(){return{encodedUrl:encodeURIComponent(window.location.href)}},computed:{...mapState("context",["mainContent"]),encodedTitle(){return encodeURIComponent(this.mainContent.title)},encodedSummary(){return encodeURIComponent(this.mainContent.summary)},facebookUrl(){return"https://www.facebook.com/sharer/sharer.php?u="+this.encodedUrl},twitterUrl(){return"https://twitter.com/intent/tweet?text="+this.encodedTitle+"&url="+this.encodedUrl},linkedInUrl(){return"https://www.linkedin.com/sharing/share-offsite?mini=true&url="+this.encodedUrl+"&title="+this.encodedTitle+"&summary="+this.encodedSummary},mailUrl(){return"mailto:?subject="+this.encodedTitle+"&body="+this.encodedUrl+`
3\r`+this.encodedSummary}}},_hoisted_1$X={class:"top"},_hoisted_2$R={class:"right"},_hoisted_3$O={class:"left"},_hoisted_4$D={class:"card"},_hoisted_5$A={class:"inspiration-page__title-wrapper"},_hoisted_6$x={class:"inspiration-page__title"},_hoisted_7$w={class:"summary"},_hoisted_8$s={class:"share-wrapper"},_hoisted_9$q={class:"label"},_hoisted_10$o={class:"shares"},_hoisted_11$j={key:0,class:"inspiration-page__main-content-markup"};function _sfc_render$W(en,He,tn,nn,an,rn){const on=resolveComponent("responsive-image"),sn=resolveComponent("favorites-toggle"),dn=resolveComponent("social-medium"),hn=resolveComponent("campaign-badge"),mn=resolveComponent("markup-renderer"),gn=resolveComponent("inspiration");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$X,[createBaseVNode("div",_hoisted_2$R,[createVNode(on,{fallback:en.mainContent.image.imageStyleUris.inspiration_page_md,md:en.mainContent.image.imageStyleUris.inspiration_page_md,xl:en.mainContent.image.imageStyleUris.inspiration_page_xl,alt:en.mainContent.image.alt},null,8,["fallback","md","xl","alt"])]),createBaseVNode("div",_hoisted_3$O,[createBaseVNode("div",_hoisted_4$D,[createBaseVNode("div",_hoisted_5$A,[createBaseVNode("h1",_hoisted_6$x,toDisplayString(en.mainContent.title),1),createVNode(sn,{"content-id":en.mainContent.uuid,type:en.mainContent.contentType},null,8,["content-id","type"])]),He[0]||(He[0]=createBaseVNode("div",{class:"line","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_7$w,toDisplayString(en.mainContent.summary),1)]),createBaseVNode("div",_hoisted_8$s,[createBaseVNode("div",_hoisted_9$q,toDisplayString(en.$t("Share this page"))+":",1),createBaseVNode("div",_hoisted_10$o,[createVNode(dn,{url:rn.facebookUrl,title:en.$t("Share on {medium}",{medium:"Facebook"}),icon:["fab","facebook-f"]},null,8,["url","title"]),createVNode(dn,{url:rn.twitterUrl,title:en.$t("Share on {medium}",{medium:"Twitter"}),icon:["fab","twitter"]},null,8,["url","title"]),createVNode(dn,{url:rn.linkedInUrl,title:en.$t("Share on {medium}",{medium:"LinkedIn"}),icon:["fab","linkedin-in"]},null,8,["url","title"]),createVNode(dn,{url:rn.mailUrl,title:en.$t("Share on {medium}",{medium:"Mail"}),icon:["far","envelope"]},null,8,["url","title"])])])])]),createVNode(hn),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_11$j,[createVNode(mn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),createVNode(gn)],64)}const InspirationPage=_export_sfc(_sfc_main$W,[["render",_sfc_render$W],["__scopeId","data-v-4cb8f671"]]),_sfc_main$V={name:"LandingPage",components:{CampaignBadge,ResponsiveImage,FavoritesToggle,MarkupRenderer:_sfc_main$X},computed:{...mapState("context",["mainContent"])}},_hoisted_1$W={class:"top"},_hoisted_2$Q={class:"right"},_hoisted_3$N={class:"left"},_hoisted_4$C={class:"card"},_hoisted_5$z={class:"landing-page__title-wrapper"},_hoisted_6$w={class:"landing-page__title"},_hoisted_7$v={class:"summary"},_hoisted_8$r={key:0,class:"landing-mage__main-content-markup"};function _sfc_render$V(en,He,tn,nn,an,rn){const on=resolveComponent("responsive-image"),sn=resolveComponent("favorites-toggle"),dn=resolveComponent("campaign-badge"),hn=resolveComponent("markup-renderer");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$W,[createBaseVNode("div",_hoisted_2$Q,[createVNode(on,{fallback:en.mainContent.image.imageStyleUris.landing_page_md,md:en.mainContent.image.imageStyleUris.landing_page_md,xl:en.mainContent.image.imageStyleUris.landing_page_xl,alt:en.mainContent.image.alt},null,8,["fallback","md","xl","alt"])]),createBaseVNode("div",_hoisted_3$N,[createBaseVNode("div",_hoisted_4$C,[createBaseVNode("div",_hoisted_5$z,[createBaseVNode("h1",_hoisted_6$w,toDisplayString(en.mainContent.title),
31),createVNode(sn,{"content-id":en.mainContent.uuid,type:en.mainContent.contentType},null,8,["content-id","type"])]),He[0]||(He[0]=createBaseVNode("div",{class:"line","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_7$v,toDisplayString(en.mainContent.summary),1)])])]),createVNode(dn),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_8$r,[createVNode(hn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0)],64)}const LandingPage=_export_sfc(_sfc_main$V,[["render",_sfc_render$V],["__scopeId","data-v-0d6e57e3"]]),_sfc_main$U={name:"Search",components:{IconSearch},data(){return{query:"",targetGroup:"tourists",targetSite:"current_site"}},computed:{...mapState("context",["site"]),...mapState("search",["count","products","appliedQuery","page"]),pages(){return Math.ceil(this.count/10)},visiblePages(){const en=[];for(let He=Math.max(2,this.page-1);He<Math.min(this.pages,this.page+2);He++)en.push(He);return en}},mounted(){this.setSite(this.site.machine_name),this.applyUrlQuery(),window.onpopstate=()=>{this.applyUrlQuery()}},methods:{...mapActions("search",["executeSearch","setSite","applyQuery","applyPage","applyProfessionalsFilter","applySiteFilter"]),truncatedSummary(en){const He=document.createElement("div");He.innerHTML=en.description,en.summary&&en.summary.length>0&&(He.innerHTML=en.summary);const tn=He.textContent||He.innerText||"";return tn.length<=180?tn:tn.substr(0,180)+"..."},applyUrlQuery(){const He=new URLSearchParams(window.location.search).get("query")??"";this.query=He,this.applyQuery({query:He,addHistory:!1})},distance(en){return en.distance?(Math.round(en.distance/100)/10).toLocaleString():"0"}}},_hoisted_1$V={class:"search"},_hoisted_2$P={class:"search__form"},_hoisted_3$M=["title"],_hoisted_4$B={key:0,class:"search__filters"},_hoisted_5$y={class:"search__filter search__filter--target-group"},_hoisted_6$v={class:"search__filter-title",for:"search__filter-select--target-group"},_hoisted_7$u={key:0,class:"search__filter-select-wrapper"},_hoisted_8$q={value:"tourists"},_hoisted_9$p={value:"professionals"},_hoisted_10$n={key:0,class:"search__filter search__filter--target-site"},_hoisted_11$i={class:"search__filter-title",for:"search__filter-select--target-site"},_hoisted_12$g={class:"search__filter-select-wrapper"},_hoisted_13$c={value:"current_site"},_hoisted_14$a={value:"west_flanders"},_hoisted_15$9={class:"search__results-wrapper"},_hoisted_16$7={key:0,class:"search__count"},_hoisted_17$7={key:1,class:"search__results"},_hoisted_18$7=["href","title"],_hoisted_19$6={class:"search__result-left"},_hoisted_20$4=["src"],_hoisted_21$4={class:"search__result-right"},_hoisted_22$4={class:"search__product-title"},_hoisted_23$3={key:0,class:"search__product-info"},_hoisted_24$3={key:1,class:"search__product-info"},_hoisted_25$3=["innerHTML"],_hoisted_26$3={key:1,class:"search__pager"},_hoisted_27$3=["title"],_hoisted_28$3=["title"],_hoisted_29$3={key:1,class:"overview__pager-ellipsis"},_hoisted_30$2=["title","onClick"],_hoisted_31$2={key:2,class:"overview__pager-ellipsis"},_hoisted_32$2=["title"],_hoisted_33$2=["title"];function _sfc_render$U(en,He,tn,nn,an,rn){const on=resolveComponent("icon-search"),sn=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$V,[createBaseVNode("div",_hoisted_2$P,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":He[0]||(He[0]=dn=>an.query=dn),type:"text",class:"search__query",onKeypress:He[1]||(He[1]=withKeys(dn=>en.applyQuery({query:an.query}),["enter"]))},null,544),[[vModelText,an.query]]),createBaseVNode("a",{href:"#",class:"search__button",title:en.$t("Search"),onClick:He[2]||(He[2]=withModifiers(dn=>en.applyQuery({query:an.query}),["prevent"]))},[createVNode(on)],8,_hoisted_3$M)]),!en.site.hideTargetGroupFilter||!en.site.westFlandersContentOnly?(openBlock(),createElementBlock("div",_hoisted_4$B,[createBaseVNode("div",_hoisted_5$y,[createBaseVNode("label",_hoisted_6$v,toDisplayString(en.$t("Look for"))+":",1),en.site.hideTargetGroupFilter?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_7$u,[withDirectives(createBaseVNode("select",{id:"search__filter-select--target-group","onUpdate:modelValue":He[3]||(He[3]=dn=>an.targetGroup=dn),class:"search__filter-select",onChange:He[4]||(He[4]=dn=>en.applyProfessionalsFilter(an.targetGroup==="professionals"))},[createBaseVNode("option",_hoisted_8$q,toDisplayString(en.$t("Information for tourists")),1),createBaseVNode("option",_hoisted_9$p,toDisplayString(en.$t("Information for professionals")),1)],544),[[vModelSelect,an.targetGroup]]),createVNode(sn,{icon:["fas","chevron-down"],class:"search__filter-select-icon"})]))]),!en.site.westFlandersContentOnly&&!en.site.hideRegionFilter?(openBlock(),createElementBlock("div",_hoisted_10$n,[createBaseVNode("label",_hoisted_11$i,toDisplayString(en.$t("in")),1),createBaseVNode("div",_hoisted_12$g,[withDirectives(createBaseVNode("select",{id:"search__filter-select--target-site","onUpdate:modelValue":He[5]||(He[5]=dn=>an.targetSite=dn),class:"search__filter-select",onChange:He[6]||(He[6]=dn=>en.applySiteFilter(an.targetSite==="west_flanders"))},[createBaseVNode("option",_hoisted_13$c,toDisplayString(en.site.name),1),createBaseVNode("option",_hoisted_14$a,toDisplayString(en.$t("West Flanders")),1)],544),[[vModelSelect,an.targetSite]]),createVNode(sn,{icon:["fas","chevron-down"],class:"search__filter-select-icon"})])])):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_15$9,[en.appliedQuery.length>0?(openBlock(),createElementBlock("div",_hoisted_16$7,toDisplayString(en.$t('{count} results for "{query}"',{count:en.count,query:en.appliedQuery})),1)):createCommentVNode("",!0),en.products.length>0?(openBlock(),createElementBlock("div",_hoisted_17$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.products,(dn,hn)=>(openBlock(),createElementBlock("a",{key:hn,href:en.$store.getters["context/multilingualUrl"](dn.alias),title:dn.title,class:"search__result"},[createBaseVNode("div",_hoisted_19$6,[createBaseVNode("img",{src:dn.image,alt:"",class:"search__product-image"},null,8,_hoisted_20$4)]),createBaseVNode("div",_hoisted_21$4,[createBaseVNode("h2",_hoisted_22$4,toDisplayString(dn.title),1),dn.contentType==="route"&&dn.localities.length>0?(openBlock(),createElementBlock("p",_hoisted_23$3,toDisplayString(en.$t("{type} from {localities} - {distance}km",{type:dn.type,localities:dn.localities.filter((mn,gn,yn)=>yn.indexOf(mn)===gn).join(", "),distance:rn.distance(dn)})),1)):dn.type&&dn.localities.length>0?(openBlock(),createElementBlock("p",_hoisted_24$3,toDisplayString(en.$t("{type} in {locality}",{type:dn.type,locality:dn.localities[0]})),1)):createCommentVNode("",!0),He[11]||(He[11]=createBaseVNode("div",{class:"search__product-line","aria-hidden":"true"},null,-1)),createBaseVNode("p",{class:"search__product-summary",innerHTML:rn.truncatedSummary(dn)},null,8,_hoisted_25$3)])],8,_hoisted_18$7))),128))])):createCommentVNode("",!0)]),en.count>en.products.length?(openBlock(),createElementBlock("div",_hoisted_26$3,[en.page>1?(openBlock(),createElementBlock("a",{key:0,href:"#",class:"search__pager-link-arrow",title:en.$t("Previous"),onClick:He[7]||
3(He[7]=withModifiers(dn=>en.applyPage(en.page-1),["prevent"]))},[createVNode(sn,{icon:["fas","chevron-left"],class:"search__pager-link-arrow-icon"})],8,_hoisted_27$3)):createCommentVNode("",!0),createBaseVNode("a",{href:"#",class:"search__pager-link",title:en.$t("Page {index}",{index:1}),onClick:He[8]||(He[8]=withModifiers(dn=>en.applyPage(1),["prevent"]))},"1",8,_hoisted_28$3),en.page>2?(openBlock(),createElementBlock("span",_hoisted_29$3,"...")):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.visiblePages,dn=>(openBlock(),createElementBlock("a",{key:dn,href:"#",class:"search__pager-link",title:en.$t("Page {index}",{index:dn}),onClick:withModifiers(hn=>en.applyPage(dn),["prevent"])},toDisplayString(dn),9,_hoisted_30$2))),128)),en.page<rn.pages-2?(openBlock(),createElementBlock("span",_hoisted_31$2,"...")):createCommentVNode("",!0),createBaseVNode("a",{href:"#",class:"search__pager-link",title:en.$t("Page {index}",{index:rn.pages}),onClick:He[9]||(He[9]=withModifiers(dn=>en.applyPage(rn.pages),["prevent"]))},toDisplayString(rn.pages),9,_hoisted_32$2),en.page<rn.pages?(openBlock(),createElementBlock("a",{key:3,href:"#",class:"search__pager-link-arrow",title:en.$t("Next"),onClick:He[10]||(He[10]=withModifiers(dn=>en.applyPage(en.page+1),["prevent"]))},[createVNode(sn,{icon:["fas","chevron-right"],class:"search__pager-link-arrow-icon"})],8,_hoisted_33$2)):createCommentVNode("",!0)])):createCommentVNode("",!0)])}const Search=_export_sfc(_sfc_main$U,[["render",_sfc_render$U],["__scopeId","data-v-2d658126"]]),_sfc_main$T={props:{contentId:{required:!0,type:String},title:{required:!0,type:String},description:{required:!1,type:String,default:void 0},contentType:{required:!0,type:String},image:{required:!0,type:String},alias:{required:!0,type:String},langcode:{required:!0,type:String},productType:{required:!1,type:String,default:void 0},localities:{required:!1,type:Array,default:void 0},period:{required:!1,type:Object,default:void 0},showDeleteButton:{required:!1,type:Boolean,default:!1}},computed:{formattedPeriod(){if(!this.period)return;const en=hooks(this.period.start).format("DD/MM/YYYY"),He=hooks(this.period.end).format("DD/MM/YYYY");return en===He?en:`${en} - ${He}`}},methods:{...mapActions("favorites",["removeFavorite"])}},_hoisted_1$U=["href"],_hoisted_2$O={class:"favorite__image-wrapper"},_hoisted_3$L=["src"],_hoisted_4$A={class:"favorite__content"},_hoisted_5$x={class:"favorite__title"},_hoisted_6$u={key:0,class:"favorite__product-info"},_hoisted_7$t={key:1,class:"favorite__product-info"},_hoisted_8$p={key:2,class:"favorite__period"},_hoisted_9$o={class:"favorite__content-details"},_hoisted_10$m={key:0,class:"favorite__description"},_hoisted_11$h={class:"favorite__arrow"},_hoisted_12$f=["title"];function _sfc_render$T(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("a",{href:en.$store.getters["context/multilingualUrl"](tn.alias),class:"favorite"},[createBaseVNode("div",_hoisted_2$O,[createBaseVNode("img",{src:tn.image,alt:"",class:"favorite__image"},null,8,_hoisted_3$L)]),createBaseVNode("div",_hoisted_4$A,[createBaseVNode("h2",_hoisted_5$x,toDisplayString(tn.title),1),tn.contentType==="route"?(openBlock(),createElementBlock("div",_hoisted_6$u,toDisplayString(en.$t("{type} from {localities}",{type:tn.productType,localities:tn.localities.filter((sn,dn,hn)=>hn.indexOf(sn)===dn).join(", ")})),1)):tn.productType&&tn.localities?(openBlock(),createElementBlock("div",_hoisted_7$t,toDisplayString(en.$t("{type} in {locality}",{type:tn.productType,locality:tn.localities.join(", ")})),1)):createCommentVNode("",!0),tn.period?(openBlock(),createElementBlock("div",_hoisted_8$p,toDisplayString(rn.formattedPeriod),1)):createCommentVNode("",!0),He[1]||(He[1]=createBaseVNode("div",{class:"favorite__divider","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_9$o,[tn.description?(openBlock(),createElementBlock("div",_hoisted_10$m,toDisplayString(tn.description),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_11$h,[createVNode(on,{icon:["fas","arrow-right"],class:"favorite__arrow-icon"})])])]),tn.showDeleteButton?(openBlock(),createElementBlock("div",{key:0,class:"favorite__delete",tabindex:"0",title:en.$t("Remove from favorites"),onClick:He[0]||(He[0]=withModifiers(sn=>en.removeFavorite(tn.contentId),["prevent"]))},[createVNode(on,{icon:["far","trash-alt"]})],8,_hoisted_12$f)):createCommentVNode("",!0)],8,_hoisted_1$U)}const Favorite=_export_sfc(_sfc_main$T,[["render",_sfc_render$T],["__scopeId","data-v-f82d34a2"]]);function _typeof$1(en){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},_typeof$1(en)}var u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb
vendor: 4,186 bytes, line 3
3=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(en,He){for(var tn=new u16(31),nn=0;nn<31;++nn)tn[nn]=He+=1<<en[nn-1];for(var an=new i32(tn[30]),nn=1;nn<30;++nn)for(var rn=tn[nn];rn<tn[nn+1];++rn)an[rn]=rn-tn[nn]<<5|nn;return{b:tn,r:an}},_a=freb(fleb,2),fl$1=_a.b,revfl=_a.r;fl$1[28]=258,revfl[258]=28;var _b=freb(fdeb,0),revfd=_b.r,rev=new u16(32768);for(var i$3=0;i$3<32768;++i$3){var x$2=(i$3&43690)>>1|(i$3&21845)<<1;x$2=(x$2&52428)>>2|(x$2&13107)<<2,x$2=(x$2&61680)>>4|(x$2&3855)<<4,rev[i$3]=((x$2&65280)>>8|(x$2&255)<<8)>>1}var hMap=(function(en,He,tn){for(var nn=en.length,an=0,rn=new u16(He);an<nn;++an)en[an]&&++rn[en[an]-1];var on=new u16(He);for(an=1;an<He;++an)on[an]=on[an-1]+rn[an-1]<<1;var sn;if(tn){sn=new u16(1<<He);var dn=15-He;for(an=0;an<nn;++an)if(en[an])for(var hn=an<<4|en[an],mn=He-en[an],gn=on[en[an]-1]++<<mn,yn=gn|(1<<mn)-1;gn<=yn;++gn)sn[rev[gn]>>dn]=hn}else for(sn=new u16(nn),an=0;an<nn;++an)en[an]&&(sn[an]=rev[on[en[an]-1]++]>>15-en[an]);return sn}),flt=new u8(288);for(var i$3=0;i$3<144;++i$3)flt[i$3]=8;for(var i$3=144;i$3<256;++i$3)flt[i$3]=9;for(var i$3=256;i$3<280;++i$3)flt[i$3]=7;for(var i$3=280;i$3<288;++i$3)flt[i$3]=8;var fdt=new u8(32);for(var i$3=0;i$3<32;++i$3)fdt[i$3]=5;var flm=hMap(flt,9,0),fdm=hMap(fdt,5,0),shft=function(en){return(en+7)/8|0},slc=function(en,He,tn){return(tn==null||tn>en.length)&&(tn=en.length),new u8(en.subarray(He,tn))},wbits=function(en,He,tn){tn<<=He&7;var nn=He/8|0;en[nn]|=tn,en[nn+1]|=tn>>8},wbits16=function(en,He,tn){tn<<=He&7;var nn=He/8|0;en[nn]|=tn,en[nn+1]|=tn>>8,en[nn+2]|=tn>>16},hTree=function(en,He){for(var tn=[],nn=0;nn<en.length;++nn)en[nn]&&tn.push({s:nn,f:en[nn]});var an=tn.length,rn=tn.slice();if(!an)return{t:et$1,l:0};if(an==1){var on=new u8(tn[0].s+1);return on[tn[0].s]=1,{t:on,l:1}}tn.sort(function(mi,bi){return mi.f-bi.f}),tn.push({s:-1,f:25001});var sn=tn[0],dn=tn[1],hn=0,mn=1,gn=2;for(tn[0]={s:-1,f:sn.f+dn.f,l:sn,r:dn};mn!=an-1;)sn=tn[tn[hn].f<tn[gn].f?hn++:gn++],dn=tn[hn!=mn&&tn[hn].f<tn[gn].f?hn++:gn++],tn[mn++]={s:-1,f:sn.f+dn.f,l:sn,r:dn};for(var yn=rn[0].s,nn=1;nn<an;++nn)rn[nn].s>yn&&(yn=rn[nn].s);var fn=new u16(yn+1),bn=ln(tn[mn-1],fn,0);if(bn>He){var nn=0,Mn=0,Tn=bn-He,xn=1<<Tn;for(rn.sort(function(bi,_i){return fn[_i.s]-fn[bi.s]||bi.f-_i.f});nn<an;++nn){var En=rn[nn].s;if(fn[En]>He)Mn+=xn-(1<<bn-fn[En]),fn[En]=He;else break}for(Mn>>=Tn;Mn>0;){var Rn=rn[nn].s;fn[Rn]<He?Mn-=1<<He-fn[Rn]++-1:++nn}for(;nn>=0&&Mn;--nn){var ni=rn[nn].s;fn[ni]==He&&(--fn[ni],++Mn)}bn=He}return{t:new u8(fn),l:bn}},ln=function(en,He,tn){return en.s==-1?Math.max(ln(en.l,He,tn+1),ln(en.r,He,tn+1)):He[en.s]=tn},lc=function(en){for(var He=en.length;He&&!en[--He];);for(var tn=new u16(++He),nn=0,an=en[0],rn=1,on=function(dn){tn[nn++]=dn},sn=1;sn<=He;++sn)if(en[sn]==an&&sn!=He)++rn;else{if(!an&&rn>2){for(;rn>138;rn-=138)on(32754);rn>2&&(on(rn>10?rn-11<<5|28690:rn-3<<5|12305),rn=0)}else if(rn>3){for(on(an),--rn;rn>6;rn-=6)on(8304);rn>2&&(on(rn-3<<5|8208),rn=0)}for(;rn--;)on(an);rn=1,an=en[sn]}return{c:tn.subarray(0,nn),n:He}},clen=function(en,He){for(var tn=0,nn=0;nn<He.length;++nn)tn+=en[nn]*He[nn];return tn},wfblk=function(en,He,tn){var nn=tn.length,an=shft(He+2);en[an]=nn&255,en[an+1]=nn>>8,en[an+2]=en[an]^255,en[an+3]=en[an+1]^255;for(var rn=0;rn<nn;++rn)en[an+rn+4]=tn[rn];return(an+4+nn)*8},wblk=function(en,He,tn,nn,an,rn,on,sn,dn,hn,mn){wbits(He,mn++,tn),++an[256];for(var gn=hTree(an,15),yn=gn.t,fn=gn.l,bn=hTree(rn,15),Mn=bn.t,Tn=bn.l,xn=lc(yn),En=xn.c,Rn=xn.n,ni=lc(Mn),mi=ni.c,bi=ni.n,_i=new u16(19),oi=0;oi<En.length;++oi)++_i[En[oi]&31];for(var oi=0;oi<mi.length;++oi)++_i[mi[oi]&31];for(var si=hTree(_i,7),fi=si.t,ei=si.l,ci=19;ci>4&&!fi[clim[ci-1]];--ci);var di=hn+5<<3,wi=clen(an,flt)+clen(rn,fdt)+on,Ci=clen(an,yn)+clen(rn,Mn)+on+14+3*ci+clen(_i,fi)+2*_i[16]+3*_i[17]+7*_i[18];if(dn>=0&&di<=wi&&di<=Ci)return wfblk(He,mn,en.subarray(dn,dn+hn));var ji,Yi,Pi,Fi;if(wbits(He,mn,1+(Ci<wi)),mn+=2,Ci<wi){ji=hMap(yn,fn,0),Yi=yn,Pi=hMap(Mn,Tn,0),Fi=Mn;var $i=hMap(fi,ei,0);wbits(He,mn,Rn-257),wbits(He,mn+5,bi-1),wbits(He,mn+10,ci-4),mn+=14;for(var oi=0;oi<ci;
vendor: 4,529 bytes, line 3
3++oi)wbits(He,mn+3*oi,fi[clim[oi]]);mn+=3*ci;for(var Wi=[En,mi],hi=0;hi<2;++hi)for(var Si=Wi[hi],oi=0;oi<Si.length;++oi){var Ni=Si[oi]&31;wbits(He,mn,$i[Ni]),mn+=fi[Ni],Ni>15&&(wbits(He,mn,Si[oi]>>5&127),mn+=Si[oi]>>12)}}else ji=flm,Yi=flt,Pi=fdm,Fi=fdt;for(var oi=0;oi<sn;++oi){var yi=nn[oi];if(yi>255){var Ni=yi>>18&31;wbits16(He,mn,ji[Ni+257]),mn+=Yi[Ni+257],Ni>7&&(wbits(He,mn,yi>>23&31),mn+=fleb[Ni]);var Hi=yi&31;wbits16(He,mn,Pi[Hi]),mn+=Fi[Hi],Hi>3&&(wbits16(He,mn,yi>>5&8191),mn+=fdeb[Hi])}else wbits16(He,mn,ji[yi]),mn+=Yi[yi]}return wbits16(He,mn,ji[256]),mn+Yi[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et$1=new u8(0),dflt=function(en,He,tn,nn,an,rn){var on=rn.z||en.length,sn=new u8(nn+on+5*(1+Math.ceil(on/7e3))+an),dn=sn.subarray(nn,sn.length-an),hn=rn.l,mn=(rn.r||0)&7;if(He){mn&&(dn[0]=rn.r>>3);for(var gn=deo[He-1],yn=gn>>13,fn=gn&8191,bn=(1<<tn)-1,Mn=rn.p||new u16(32768),Tn=rn.h||new u16(bn+1),xn=Math.ceil(tn/3),En=2*xn,Rn=function(ui){return(en[ui]^en[ui+1]<<xn^en[ui+2]<<En)&bn},ni=new i32(25e3),mi=new u16(288),bi=new u16(32),_i=0,oi=0,si=rn.i||0,fi=0,ei=rn.w||0,ci=0;si+2<on;++si){var di=Rn(si),wi=si&32767,Ci=Tn[di];if(Mn[wi]=Ci,Tn[di]=wi,ei<=si){var ji=on-si;if((_i>7e3||fi>24576)&&(ji>423||!hn)){mn=wblk(en,dn,0,ni,mi,bi,oi,fi,ci,si-ci,mn),fi=_i=oi=0,ci=si;for(var Yi=0;Yi<286;++Yi)mi[Yi]=0;for(var Yi=0;Yi<30;++Yi)bi[Yi]=0}var Pi=2,Fi=0,$i=fn,Wi=wi-Ci&32767;if(ji>2&&di==Rn(si-Wi))for(var hi=Math.min(yn,ji)-1,Si=Math.min(32767,si),Ni=Math.min(258,ji);Wi<=Si&&--$i&&wi!=Ci;){if(en[si+Pi]==en[si+Pi-Wi]){for(var yi=0;yi<Ni&&en[si+yi]==en[si+yi-Wi];++yi);if(yi>Pi){if(Pi=yi,Fi=Wi,yi>hi)break;for(var Hi=Math.min(Wi,yi-2),Ui=0,Yi=0;Yi<Hi;++Yi){var Ji=si-Wi+Yi&32767,Oi=Mn[Ji],Ei=Ji-Oi&32767;Ei>Ui&&(Ui=Ei,Ci=Ji)}}}wi=Ci,Ci=Mn[wi],Wi+=wi-Ci&32767}if(Fi){ni[fi++]=268435456|revfl[Pi]<<18|revfd[Fi];var ea=revfl[Pi]&31,vi=revfd[Fi]&31;oi+=fleb[ea]+fdeb[vi],++mi[257+ea],++bi[vi],ei=si+Pi,++_i}else ni[fi++]=en[si],++mi[en[si]]}}for(si=Math.max(si,ei);si<on;++si)ni[fi++]=en[si],++mi[en[si]];mn=wblk(en,dn,hn,ni,mi,bi,oi,fi,ci,si-ci,mn),hn||(rn.r=mn&7|dn[mn/8|0]<<3,mn-=7,rn.h=Tn,rn.p=Mn,rn.i=si,rn.w=ei)}else{for(var si=rn.w||0;si<on+hn;si+=65535){var ti=si+65535;ti>=on&&(dn[mn/8|0]=hn,ti=on),mn=wfblk(dn,mn+1,en.subarray(si,ti))}rn.i=on}return slc(sn,0,nn+shft(mn)+an)},adler=function(){var en=1,He=0;return{p:function(tn){for(var nn=en,an=He,rn=tn.length|0,on=0;on!=rn;){for(var sn=Math.min(on+2655,rn);on<sn;++on)an+=nn+=tn[on];nn=(nn&65535)+15*(nn>>16),an=(an&65535)+15*(an>>16)}en=nn,He=an},d:function(){return en%=65521,He%=65521,(en&255)<<24|(en&65280)<<8|(He&255)<<8|He>>8}}},dopt=function(en,He,tn,nn,an){if(!an&&(an={l:1},He.dictionary)){var rn=He.dictionary.subarray(-32768),on=new u8(rn.length+en.length);on.set(rn),on.set(en,rn.length),en=on,an.w=rn.length}return dflt(en,He.level==null?6:He.level,He.mem==null?an.l?Math.ceil(Math.max(8,Math.min(13,Math.log(en.length)))*1.5):20:12+He.mem,tn,nn,an)},wbytes=function(en,He,tn){for(;tn;++He)en[He]=tn,tn>>>=8},zlh=function(en,He){var tn=He.level,nn=tn==0?0:tn<6?1:tn==9?3:2;if(en[0]=120,en[1]=nn<<6|(He.dictionary&&32),en[1]|=31-(en[0]<<8|en[1])%31,He.dictionary){var an=adler();an.p(He.dictionary),wbytes(en,2,an.d())}};function zlibSync(en,He){He||(He={});var tn=adler();tn.p(en);var nn=dopt(en,He,He.dictionary?6:2,4);return zlh(nn,He),wbytes(nn,nn.length-4,tn.d()),nn}var td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et$1,{stream:!0}),tds=1}catch{}function _arrayWithHoles(en){if(Array.isArray(en))return en}function _iterableToArrayLimit(en,He){var tn=en==null?null:typeof Symbol<"u"&&en[Symbol.iterator]||en["@@iterator"];if(tn!=null){var nn,an,rn,on,sn=[],dn=!0,hn=!1;try{if(rn=(tn=tn.call(en)).next,He!==0)for(;!(dn=(nn=rn.call(tn)).done)&&(sn.push(nn.value),sn.length!==He);dn=!0);}catch(mn){hn=!0,an=mn}finally{try{if(!dn&&tn.return!=null&&(on=tn.return(),Object(on)!==on))return}finally{if(hn)throw an}}return sn}}function _arrayLikeToArray(en,He){(He==null||He>en.length)&&(He=en.length);for(var tn=0,nn=Array(He);tn<He;tn++)nn[tn]=en[tn];return nn}function _unsupportedIterableToArray(en,He){if(en){if(typeof en=="string")return _arrayLikeToArray(en,He);var tn={}.toString.call(en).slice(8,-1);return tn==="Object"&&en.constructor&&(tn=en.constructor.name),tn==="Map"||tn==="Set"?Array.from(en):tn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tn)?_arrayLikeToArray(en,He):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to de
3structure non-iterable instance.
4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(en,He){return _arrayWithHoles(en)||_iterableToArrayLimit(en,He)||_unsupportedIterableToArray(en,He)||_nonIterableRest()}function decode(en,He="utf8"){return new TextDecoder(He).decode(en)}const encoder=new TextEncoder;function encode(en){return encoder.encode(en)}const defaultByteLength=1024*8,hostBigEndian=(()=>{const en=new Uint8Array(4),He=new Uint32Array(en.buffer);return!((He[0]=1)&en[0])})(),typedArrays={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class IOBuffer{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(He=defaultByteLength,tn={}){let nn=!1;typeof He=="number"?He=new ArrayBuffer(He):(nn=!0,this.lastWrittenByte=He.byteLength);const an=tn.offset?tn.offset>>>0:0,rn=He.byteLength-an;let on=an;(ArrayBuffer.isView(He)||He instanceof IOBuffer)&&(He.byteLength!==He.buffer.byteLength&&(on=He.byteOffset+an),He=He.buffer),nn?this.lastWrittenByte=rn:this.lastWrittenByte=0,this.buffer=He,this.length=rn,this.byteLength=rn,this.byteOffset=on,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,on,rn),this._mark=0,this._marks=[]}available(He=1){return this.offset+He<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(He=1){return this.offset+=He,this}back(He=1){return this.offset-=He,this}seek(He){return this.offset=He,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const He=this._marks.pop();if(He===void 0)throw new Error("Mark stack empty");return this.seek(He),this}rewind(){return this.offset=0,this}ensureAvailable(He=1){if(!this.available(He)){const nn=(this.offset+He)*2,an=new Uint8Array(nn);an.set(new Uint8Array(this.buffer)),this.buffer=an.buffer,this.length=nn,this.byteLength=nn,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(He=1){return this.readArray(He,"uint8")}readArray(He,tn){const nn=typedArrays[tn].BYTES_PER_ELEMENT*He,an=this.byteOffset+this.offset,rn=this.buffer.slice(an,an+nn);if(this.littleEndian===hostBigEndian&&tn!=="uint8"&&tn!=="int8"){const sn=new Uint8Array(this.buffer.slice(an,an+nn));sn.reverse();const dn=new typedArrays[tn](sn.buffer);return this.offset+=nn,dn.reverse(),dn}const on=new typedArrays[tn](rn);return this.offset+=nn,on}readInt16(){const He=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,He}readUint16(){const He=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,He}readInt32(){const He=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,He}readUint32(){const He=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,He}readFloat32(){const He=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,He}readFloat64(){const He=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,He}readBigInt64(){const He=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,He}readBigUint64(){const He=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,He}readChar(){return String.fromCharCode(this.readInt8())}readChars(He=1){let tn="";for(let nn=0;nn<He;nn++)tn+=this.readChar();return tn}readUtf8(He=1){return decode(this.readBytes(He))}decodeText(He=1,tn="utf8"){return decode(this.readBytes(He),tn)}writeBoolean(He){return this.writeUint8(He?255:0),this}writeInt8(He){return this.ensureAvailable(1),this._data.setInt8(this.offset++,He),this._updateLastWrittenByte(),this}writeUint8(He){return this.ensureAvailable(1),this._data.setUint8(this.offset++,He),this._updateLastWrittenByte(),this}writeByte(He){return this.writeUint8(He)}writeBytes(He){this.ensureAvailable(He.length);for(let tn=0;tn<He.length;tn++)this._data.setUint8(this.offset++,He[tn]);return this._updateLastWrittenByte(),this}writeInt16(He){return this.ensureAvailable(2),this._data.setInt16(this.offset,He,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(He){return this.ensureAvailable(2),this._data.setUint16(this.offset,He,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(He){return this.ensureAvailable(4),this._data.setInt32(this.offset,He,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(He){return this.ensureAvailable(4),this._data.setUint32(this.offset,He,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(He){return this.ensureAvailable(4),this._data.setFloat32(this.offset,He,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(He){return this.ensureAvailable(8),this._data.setFloat64(this.offset,He,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(He){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,He,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(He){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,He,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(He){return this.writeUint8(He.charCodeAt(0))}writeChars(He){for(let tn=0;tn<He.length;tn++)this.writeUint8(He.charCodeAt(tn));return this}writeUtf8(He){return this.writeBytes(encode(He))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function zero$1$1(en){let He=en.length;for(;--He>=0;)en[He]=0}const MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1$1(base_length);const base_dist=new Array(D_CODES$1);zero$1$1(base_dist);
vendor: 11,295 bytes, line 4
4const adler32=(en,He,tn,nn)=>{let an=en&65535|0,rn=en>>>16&65535|0,on=0;for(;tn!==0;){on=tn>2e3?2e3:tn,tn-=on;do an=an+He[nn++]|0,rn=rn+an|0;while(--on);an%=65521,rn%=65521}return an|rn<<16|0};var adler32_1=adler32;const makeTable=()=>{let en,He=[];for(var tn=0;tn<256;tn++){en=tn;for(var nn=0;nn<8;nn++)en=en&1?3988292384^en>>>1:en>>>1;He[tn]=en}return He},crcTable$1=new Uint32Array(makeTable()),crc32=(en,He,tn,nn)=>{const an=crcTable$1,rn=nn+tn;en^=-1;for(let on=nn;on<rn;on++)en=en>>>8^an[(en^He[on])&255];return en^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const _has$1=(en,He)=>Object.prototype.hasOwnProperty.call(en,He);var assign=function(en){const He=Array.prototype.slice.call(arguments,1);for(;He.length;){const tn=He.shift();if(tn){if(typeof tn!="object")throw new TypeError(tn+"must be non-object");for(const nn in tn)_has$1(tn,nn)&&(en[nn]=tn[nn])}}return en},flattenChunks=en=>{let He=0;for(let nn=0,an=en.length;nn<an;nn++)He+=en[nn].length;const tn=new Uint8Array(He);for(let nn=0,an=0,rn=en.length;nn<rn;nn++){let on=en[nn];tn.set(on,an),an+=on.length}return tn},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let en=0;en<256;en++)_utf8len[en]=en>=252?6:en>=248?5:en>=240?4:en>=224?3:en>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=en=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(en);let He,tn,nn,an,rn,on=en.length,sn=0;for(an=0;an<on;an++)tn=en.charCodeAt(an),(tn&64512)===55296&&an+1<on&&(nn=en.charCodeAt(an+1),(nn&64512)===56320&&(tn=65536+(tn-55296<<10)+(nn-56320),an++)),sn+=tn<128?1:tn<2048?2:tn<65536?3:4;for(He=new Uint8Array(sn),rn=0,an=0;rn<sn;an++)tn=en.charCodeAt(an),(tn&64512)===55296&&an+1<on&&(nn=en.charCodeAt(an+1),(nn&64512)===56320&&(tn=65536+(tn-55296<<10)+(nn-56320),an++)),tn<128?He[rn++]=tn:tn<2048?(He[rn++]=192|tn>>>6,He[rn++]=128|tn&63):tn<65536?(He[rn++]=224|tn>>>12,He[rn++]=128|tn>>>6&63,He[rn++]=128|tn&63):(He[rn++]=240|tn>>>18,He[rn++]=128|tn>>>12&63,He[rn++]=128|tn>>>6&63,He[rn++]=128|tn&63);return He};const buf2binstring=(en,He)=>{if(He<65534&&en.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,en.length===He?en:en.subarray(0,He));let tn="";for(let nn=0;nn<He;nn++)tn+=String.fromCharCode(en[nn]);return tn};var buf2string=(en,He)=>{const tn=He||en.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(en.subarray(0,He));let nn,an;const rn=new Array(tn*2);for(an=0,nn=0;nn<tn;){let on=en[nn++];if(on<128){rn[an++]=on;continue}let sn=_utf8len[on];if(sn>4){rn[an++]=65533,nn+=sn-1;continue}for(on&=sn===2?31:sn===3?15:7;sn>1&&nn<tn;)on=on<<6|en[nn++]&63,sn--;if(sn>1){rn[an++]=65533;continue}on<65536?rn[an++]=on:(on-=65536,rn[an++]=55296|on>>10&1023,rn[an++]=56320|on&1023)}return buf2binstring(rn,an)},utf8border=(en,He)=>{He=He||en.length,He>en.length&&(He=en.length);let tn=He-1;for(;tn>=0&&(en[tn]&192)===128;)tn--;return tn<0||tn===0?He:tn+_utf8len[en[tn]]>He?tn:He},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const BAD$1=16209,TYPE$1=16191;var inffast=function(He,tn){let nn,an,rn,on,sn,dn,hn,mn,gn,yn,fn,bn,Mn,Tn,xn,En,Rn,ni,mi,bi,_i,oi,si,fi;const ei=He.state;nn=He.next_in,si=He.input,an=nn+(He.avail_in-5),rn=He.next_out,fi=He.output,on=rn-(tn-He.avail_out),sn=rn+(He.avail_out-257),dn=ei.dmax,hn=ei.wsize,mn=ei.whave,gn=ei.wnext,yn=ei.window,fn=ei.hold,bn=ei.bits,Mn=ei.lencode,Tn=ei.distcode,xn=(1<<ei.lenbits)-1,En=(1<<ei.distbits)-1;e:do{bn<15&&(fn+=si[nn++]<<bn,bn+=8,fn+=si[nn++]<<bn,bn+=8),Rn=Mn[fn&xn];t:for(;;){if(ni=Rn>>>24,fn>>>=ni,bn-=ni,ni=Rn>>>16&255,ni===0)fi[rn++]=Rn&65535;else if(ni&16){mi=Rn&65535,ni&=15,ni&&(bn<ni&&(fn+=si[nn++]<<bn,bn+=8),mi+=fn&(1<<ni)-1,fn>>>=ni,bn-=ni),bn<15&&(fn+=si[nn++]<<bn,bn+=8,fn+=si[nn++]<<bn,bn+=8),Rn=Tn[fn&En];n:for(;;){if(ni=Rn>>>24,fn>>>=ni,bn-=ni,ni=Rn>>>16&255,ni&16){if(bi=Rn&65535,ni&=15,bn<ni&&(fn+=si[nn++]<<bn,bn+=8,bn<ni&&(fn+=si[nn++]<<bn,bn+=8)),bi+=fn&(1<<ni)-1,bi>dn){He.msg="invalid distance too far back",ei.mode=BAD$1;break e}if(fn>>>=ni,bn-=ni,ni=rn-on,bi>ni){if(ni=bi-ni,ni>mn&&ei.sane){He.msg="invalid distance too far back",ei.mode=BAD$1;break e}if(_i=0,oi=yn,gn===0){if(_i+=hn-ni,ni<mi){mi-=ni;do fi[rn++]=yn[_i++];while(--ni);_i=rn-bi,oi=fi}}else if(gn<ni){if(_i+=hn+gn-ni,ni-=gn,ni<mi){mi-=ni;do fi[rn++]=yn[_i++];while(--ni);if(_i=0,gn<mi){ni=gn,mi-=ni;do fi[rn++]=yn[_i++];while(--ni);_i=rn-bi,oi=fi}}}else if(_i+=gn-ni,ni<mi){mi-=ni;do fi[rn++]=yn[_i++];while(--ni);_i=rn-bi,oi=fi}for(;mi>2;)fi[rn++]=oi[_i++],fi[rn++]=oi[_i++],fi[rn++]=oi[_i++],mi-=3;mi&&(fi[rn++]=oi[_i++],mi>1&&(fi[rn++]=oi[_i++]))}else{_i=rn-bi;do fi[rn++]=fi[_i++],fi[rn++]=fi[_i++],fi[rn++]=fi[_i++],mi-=3;while(mi>2);mi&&(fi[rn++]=fi[_i++],mi>1&&(fi[rn++]=fi[_i++]))}}else if((ni&64)===0){Rn=Tn[(Rn&65535)+(fn&(1<<ni)-1)];continue n}else{He.msg="invalid distance code",ei.mode=BAD$1;break e}break}}else if((ni&64)===0){Rn=Mn[(Rn&65535)+(fn&(1<<ni)-1)];continue t}else if(ni&32){ei.mode=TYPE$1;break e}else{He.msg="invalid literal/length code",ei.mode=BAD$1;break e}break}}while(nn<an&&rn<sn);mi=bn>>3,nn-=mi,bn-=mi<<3,fn&=(1<<bn)-1,He.next_in=nn,He.next_out=rn,He.avail_in=nn<an?5+(an-nn):5-(nn-an),He.avail_out=rn<sn?257+(sn-rn):257-(rn-sn),ei.hold=fn,ei.bits=bn};const MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=(en,He,tn,nn,an,rn,on,sn)=>{const dn=sn.bits;let hn=0,mn=0,gn=0,yn=0,fn=0,bn=0,Mn=0,Tn=0,xn=0,En=0,Rn,ni,mi,bi,_i,oi=null,si;const fi=new Uint16Array(MAXBITS+1),ei=new Uint16Array(MAXBITS+1);let ci=null,di,wi,Ci;for(hn=0;hn<=MAXBITS;hn++)fi[hn]=0;for(mn=0;mn<nn;mn++)fi[He[tn+mn]]++;for(fn=dn,yn=MAXBITS;yn>=1&&fi[yn]===0;yn--);if(fn>yn&&(fn=yn),yn===0)return an[rn++]=1<<24|64<<16|0,an[rn++]=1<<24|64<<16|0,sn.bits=1,0;for(gn=1;gn<yn&&fi[gn]===0;gn++);for(fn<gn&&(fn=gn),Tn=1,hn=1;hn<=MAXBITS;hn++)if(Tn<<=1,Tn-=fi[hn],Tn<0)return-1;if(Tn>0&&(en===CODES$1||yn!==1))return-1;for(ei[1]=0,hn=1;hn<MAXBITS;hn++)ei[hn+1]=ei[hn]+fi[hn];for(mn=0;mn<nn;mn++)He[tn+mn]!==0&&(on[ei[He[tn+mn]]++]=mn);if(en===CODES$1?(oi=ci=on,si=20):en===LENS$1?(oi=lbase,ci=lext,si=257):(oi=dbase,ci=dext,si=0),En=0,mn=0,hn=gn,_i=rn,bn=fn,Mn=0,mi=-1,xn=1<<fn,bi=xn-1,en===LENS$1&&xn>ENOUGH_LENS$1||en===DISTS$1&&xn>ENOUGH_DISTS$1)return 1;for(;;){di=hn-Mn,on[mn]+1<si?(wi=0,Ci=on[mn]):on[mn]>=si?(wi=ci[on[mn]-si],Ci=oi[on[mn]-si]):(wi=96,Ci=0),Rn=1<<hn-Mn,ni=1<<bn,gn=ni;do ni-=Rn,an[_i+(En>>Mn)+ni]=di<<24|wi<<16|Ci|0;while(ni!==0);for(Rn=1<<hn-1;En&Rn;)Rn>>=1;if(Rn!==0?(En&=Rn-1,En+=Rn):En=0,mn++,--fi[hn]===0){if(hn===yn)break;hn=He[tn+on[mn]]}if(hn>fn&&(En&bi)!==mi){for(Mn===0&&(Mn=fn),_i+=gn,bn=hn-Mn,Tn=1<<bn;bn+Mn<yn&&(Tn-=fi[bn+Mn],!(Tn<=0));)bn++,Tn<<=1;if(xn+=1<<bn,en===LENS$1&&xn>ENOUGH_LENS$1||en===DISTS$1&&xn>ENOUGH_DISTS$1)return 1;mi=En&bi,an[mi]=fn<<24|bn<<16|_i-rn|0}}return En!==0&&(an[_i+En]=hn-Mn<<24|64<<16|0),sn.bits=fn,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=en=>(en>>>24&255)+(en>>>8&65280)+((en&65280)<<8)+((en&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=en=>{if(!en)return 1;const He=en.state;return!He||He.strm!==en||He.mode<HEAD||He.mode>SYNC?1:0},inflateResetKeep=en=>{if(inflateStateCheck(en))return Z_STREAM_ERROR$1;const He=en.state;return en.total_in=en.total_out=He.total=0,en.msg="",He.wrap&&(en.adler=He.wrap&1),He.mode=HEAD,He.last=0,He.havedict=0,He.flags=-1,He.dmax=32768,He.head=null,He.hold=0,He.bits=0,He.lencode=He.lendyn=new Int32Array(ENOUGH_LENS),He.distcode=He.distdyn=new Int32Array(ENOUGH_DISTS),He.sane=1,He.back=-1,Z_OK$1},inflateReset=en=>{if(inflateStateCheck(en))return Z_STREAM_ERROR$1;const He=en.state;return He.wsize=0,He.whave=0,He.wnext=0,inflateResetKeep(en)},inflateReset2=(en,He)=>{let tn;if(inflateStateCheck(en))return Z_STREAM_ERROR$1;const nn=en.state;return He<0?(tn=0,He=-He):(tn=(He>>4)+5,He<48&&(He&=15)),He&&(He<8||He>15)?Z_STREAM_ERROR$1:(nn.window!==null&&nn.wbits!==He&&(nn.window=null),nn.wrap=tn,nn.wbits=He,inflateReset(en))},inflateInit2=(en,He)=>{if(!en)return Z_STREAM_ERROR$1;const tn=new InflateState;en.state=tn,tn.strm=en,tn.window=null,tn.mode=HEAD;const nn=inflateReset2(en,He);return nn!==Z_OK$1&&(en.state=null),nn},inflateInit=en=>inflateInit2(en,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=en=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let He=0;for(;He<144;)en.lens[He++]=8;for(;He<256;)en.lens[He++]=9;for(;He<280;)en.lens[He++]=7;for(;He<288;)en.lens[He++]=8;for(inftrees(LENS,en.lens,0,288,lenfix,0,en.work,{bits:9}),He=0;He<32;)en.lens[He++]=5;inftrees(DISTS,en.lens,0,32,distfix,0,en.work,{bits:5}),virgin=!1}en.lencode=lenfix,en.lenbits=9,en.distcode=distfix,en.distbits=5},updatewindow=(en,He,tn,nn)=>{let an;const rn=en.state;return rn.window===null&&(rn.wsize=1<<rn.wbits,rn.wnext=0,rn.whave=0,rn.window=new Uint8Array(rn.wsize)),nn>=rn.wsize?(rn.window.set(He.subarray(tn-rn.wsize,tn),0),rn.wnext=0,rn.whave=rn.wsize):(an=rn.wsize-rn.wnext,an>
vendor: 8,926 bytes, line 4
4nn&&(an=nn),rn.window.set(He.subarray(tn-nn,tn-nn+an),rn.wnext),nn-=an,nn?(rn.window.set(He.subarray(tn-nn,tn),0),rn.wnext=nn,rn.whave=rn.wsize):(rn.wnext+=an,rn.wnext===rn.wsize&&(rn.wnext=0),rn.whave<rn.wsize&&(rn.whave+=an))),0},inflate$2=(en,He)=>{let tn,nn,an,rn,on,sn,dn,hn,mn,gn,yn,fn,bn,Mn,Tn=0,xn,En,Rn,ni,mi,bi,_i,oi;const si=new Uint8Array(4);let fi,ei;const ci=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(en)||!en.output||!en.input&&en.avail_in!==0)return Z_STREAM_ERROR$1;tn=en.state,tn.mode===TYPE&&(tn.mode=TYPEDO),on=en.next_out,an=en.output,dn=en.avail_out,rn=en.next_in,nn=en.input,sn=en.avail_in,hn=tn.hold,mn=tn.bits,gn=sn,yn=dn,oi=Z_OK$1;e:for(;;)switch(tn.mode){case HEAD:if(tn.wrap===0){tn.mode=TYPEDO;break}for(;mn<16;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(tn.wrap&2&&hn===35615){tn.wbits===0&&(tn.wbits=15),tn.check=0,si[0]=hn&255,si[1]=hn>>>8&255,tn.check=crc32_1(tn.check,si,2,0),hn=0,mn=0,tn.mode=FLAGS;break}if(tn.head&&(tn.head.done=!1),!(tn.wrap&1)||(((hn&255)<<8)+(hn>>8))%31){en.msg="incorrect header check",tn.mode=BAD;break}if((hn&15)!==Z_DEFLATED){en.msg="unknown compression method",tn.mode=BAD;break}if(hn>>>=4,mn-=4,_i=(hn&15)+8,tn.wbits===0&&(tn.wbits=_i),_i>15||_i>tn.wbits){en.msg="invalid window size",tn.mode=BAD;break}tn.dmax=1<<tn.wbits,tn.flags=0,en.adler=tn.check=1,tn.mode=hn&512?DICTID:TYPE,hn=0,mn=0;break;case FLAGS:for(;mn<16;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(tn.flags=hn,(tn.flags&255)!==Z_DEFLATED){en.msg="unknown compression method",tn.mode=BAD;break}if(tn.flags&57344){en.msg="unknown header flags set",tn.mode=BAD;break}tn.head&&(tn.head.text=hn>>8&1),tn.flags&512&&tn.wrap&4&&(si[0]=hn&255,si[1]=hn>>>8&255,tn.check=crc32_1(tn.check,si,2,0)),hn=0,mn=0,tn.mode=TIME;case TIME:for(;mn<32;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}tn.head&&(tn.head.time=hn),tn.flags&512&&tn.wrap&4&&(si[0]=hn&255,si[1]=hn>>>8&255,si[2]=hn>>>16&255,si[3]=hn>>>24&255,tn.check=crc32_1(tn.check,si,4,0)),hn=0,mn=0,tn.mode=OS;case OS:for(;mn<16;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}tn.head&&(tn.head.xflags=hn&255,tn.head.os=hn>>8),tn.flags&512&&tn.wrap&4&&(si[0]=hn&255,si[1]=hn>>>8&255,tn.check=crc32_1(tn.check,si,2,0)),hn=0,mn=0,tn.mode=EXLEN;case EXLEN:if(tn.flags&1024){for(;mn<16;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}tn.length=hn,tn.head&&(tn.head.extra_len=hn),tn.flags&512&&tn.wrap&4&&(si[0]=hn&255,si[1]=hn>>>8&255,tn.check=crc32_1(tn.check,si,2,0)),hn=0,mn=0}else tn.head&&(tn.head.extra=null);tn.mode=EXTRA;case EXTRA:if(tn.flags&1024&&(fn=tn.length,fn>sn&&(fn=sn),fn&&(tn.head&&(_i=tn.head.extra_len-tn.length,tn.head.extra||(tn.head.extra=new Uint8Array(tn.head.extra_len)),tn.head.extra.set(nn.subarray(rn,rn+fn),_i)),tn.flags&512&&tn.wrap&4&&(tn.check=crc32_1(tn.check,nn,fn,rn)),sn-=fn,rn+=fn,tn.length-=fn),tn.length))break e;tn.length=0,tn.mode=NAME;case NAME:if(tn.flags&2048){if(sn===0)break e;fn=0;do _i=nn[rn+fn++],tn.head&&_i&&tn.length<65536&&(tn.head.name+=String.fromCharCode(_i));while(_i&&fn<sn);if(tn.flags&512&&tn.wrap&4&&(tn.check=crc32_1(tn.check,nn,fn,rn)),sn-=fn,rn+=fn,_i)break e}else tn.head&&(tn.head.name=null);tn.length=0,tn.mode=COMMENT;case COMMENT:if(tn.flags&4096){if(sn===0)break e;fn=0;do _i=nn[rn+fn++],tn.head&&_i&&tn.length<65536&&(tn.head.comment+=String.fromCharCode(_i));while(_i&&fn<sn);if(tn.flags&512&&tn.wrap&4&&(tn.check=crc32_1(tn.check,nn,fn,rn)),sn-=fn,rn+=fn,_i)break e}else tn.head&&(tn.head.comment=null);tn.mode=HCRC;case HCRC:if(tn.flags&512){for(;mn<16;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(tn.wrap&4&&hn!==(tn.check&65535)){en.msg="header crc mismatch",tn.mode=BAD;break}hn=0,mn=0}tn.head&&(tn.head.hcrc=tn.flags>>9&1,tn.head.done=!0),en.adler=tn.check=0,tn.mode=TYPE;break;case DICTID:for(;mn<32;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}en.adler=tn.check=zswap32(hn),hn=0,mn=0,tn.mode=DICT;case DICT:if(tn.havedict===0)return en.next_out=on,en.avail_out=dn,en.next_in=rn,en.avail_in=sn,tn.hold=hn,tn.bits=mn,Z_NEED_DICT$1;en.adler=tn.check=1,tn.mode=TYPE;case TYPE:if(He===Z_BLOCK||He===Z_TREES)break e;case TYPEDO:if(tn.last){hn>>>=mn&7,mn-=mn&7,tn.mode=CHECK;break}for(;mn<3;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}switch(tn.last=hn&1,hn>>>=1,mn-=1,hn&3){case 0:tn.mode=STORED;break;case 1:if(fixedtables(tn),tn.mode=LEN_,He===Z_TREES){hn>>>=2,mn-=2;break e}break;case 2:tn.mode=TABLE;break;case 3:en.msg="invalid block type",tn.mode=BAD}hn>>>=2,mn-=2;break;case STORED:for(hn>>>=mn&7,mn-=mn&7;mn<32;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if((hn&65535)!==(hn>>>16^65535)){en.msg="invalid stored block lengths",tn.mode=BAD;break}if(tn.length=hn&65535,hn=0,mn=0,tn.mode=COPY_,He===Z_TREES)break e;case COPY_:tn.mode=COPY;case COPY:if(fn=tn.length,fn){if(fn>sn&&(fn=sn),fn>dn&&(fn=dn),fn===0)break e;an.set(nn.subarray(rn,rn+fn),on),sn-=fn,rn+=fn,dn-=fn,on+=fn,tn.length-=fn;break}tn.mode=TYPE;break;case TABLE:for(;mn<14;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(tn.nlen=(hn&31)+257,hn>>>=5,mn-=5,tn.ndist=(hn&31)+1,hn>>>=5,mn-=5,tn.ncode=(hn&15)+4,hn>>>=4,mn-=4,tn.nlen>286||tn.ndist>30){en.msg="too many length or distance symbols",tn.mode=BAD;break}tn.have=0,tn.mode=LENLENS;case LENLENS:for(;tn.have<tn.ncode;){for(;mn<3;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}tn.lens[ci[tn.have++]]=hn&7,hn>>>=3,mn-=3}for(;tn.have<19;)tn.lens[ci[tn.have++]]=0;if(tn.lencode=tn.lendyn,tn.lenbits=7,fi={bits:tn.lenbits},oi=inftrees(CODES,tn.lens,0,19,tn.lencode,0,tn.work,fi),tn.lenbits=fi.bits,oi){en.msg="invalid code lengths set",tn.mode=BAD;break}tn.have=0,tn.mode=CODELENS;case CODELENS:for(;tn.have<tn.nlen+tn.ndist;){for(;Tn=tn.lencode[hn&(1<<tn.lenbits)-1],xn=Tn>>>24,En=Tn>>>16&255,Rn=Tn&65535,!(xn<=mn);){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(Rn<16)hn>>>=xn,mn-=xn,tn.lens[tn.have++]=Rn;else{if(Rn===16){for(ei=xn+2;mn<ei;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(hn>>>=xn,mn-=xn,tn.have===0){en.msg="invalid bit length repeat",tn.mode=BAD;break}_i=tn.lens[tn.have-1],fn=3+(hn&3),hn>>>=2,mn-=2}else if(Rn===17){for(ei=xn+3;mn<ei;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}hn>>>=xn,mn-=xn,_i=0,fn=3+(hn&7),hn>>>=3,mn-=3}else{for(ei=xn+7;mn<ei;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}hn>>>=xn,mn-=xn,_i=0,fn=11+(hn&127),hn>>>=7,mn-=7}if(tn.have+fn>tn.nlen+tn.ndist){en.msg="invalid bit length repeat",tn.mode=BAD;break}for(;fn--;)tn.lens[tn.have++]=_i}}if(tn.mode===BAD)break;if(tn.lens[256]===0){en.msg="invalid code -- missing end-of-block",tn.mode=BAD;break}if(tn.lenbits=9,fi={bits:tn.lenbits},oi=inftrees(LENS,tn.lens,0,tn.nlen,tn.lencode,0,tn.work,fi),tn.lenbits=fi.bits,oi){en.msg="invalid literal/lengths set",tn.mode=BAD;break}if(tn.distbits=6,tn.distcode=tn.distdyn,fi={bits:tn.distbits},oi=inftrees(DISTS,tn.lens,tn.nlen,tn.ndist,tn.distcode,0,tn.work,fi),tn.distbits=fi.bits,oi){en.msg="invalid distances set",tn.mode=BAD;break}if(tn.mode=LEN_,He===Z_TREES)break e;case LEN_:tn.mode=LEN;case LEN:if(sn>=6&&dn>=258){en.next_out=on,en.avail_out=dn,en.next_in=rn,en.avail_in=sn,tn.hold=hn,tn.bits=mn,inffast(en,yn),on=en.next_out,an=en.output,dn=en.avail_out,rn=en.next_in,nn=en.input,sn=en.avail_in,hn=tn.hold,mn=tn.bits,tn.mode===TYPE&&(tn.back=-1);break}for(tn.back=0;Tn=tn.lencode[hn&(1<<tn.lenbits)-1],xn=Tn>>>24,En=Tn>>>16&255,Rn=Tn&65535,!(xn<=mn);){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(En&&(En&240)===0){for(ni=xn,mi=En,bi=Rn;Tn=tn.lencode[bi+((hn&(1<<ni+mi)-1)>>ni)],xn=Tn>>>24,En=Tn>>>16&255,Rn=Tn&65535,!(ni+xn<=mn);){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}hn>>>=ni,mn-=ni,tn.back+=ni}if(hn>>>=xn,mn-=xn,tn.back+=xn,tn.length=Rn,En===0){tn.mode=LIT;break}if(En&32){tn.back=-1,tn.mode=TYPE;break}if(En&64){en.msg="invalid literal/length code",tn.mode=BAD;break}tn.extra=En&15,tn.mode=LENEXT;case LENEXT:if(tn.extra){for(ei=tn.extra;mn<ei;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}tn.length+=hn&(1<<tn.extra)-1,hn>>>=tn.extra,mn-=tn.extra,tn.back+=tn.extra}tn.was=tn.length,tn.mode=DIST;case DIST:for(;Tn=tn.distcode[hn&(1<<tn.distbits)-1],xn=Tn>>>24,En=Tn>>>16&255,Rn=Tn&65535,!(xn<=mn);){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if((En&240)===0){for(ni=xn,mi=En,bi=Rn;Tn=tn.distcode[bi+((hn&(1<<ni+mi)-1)>>ni)],xn=Tn>>>24,En=Tn>>>16&255,Rn=Tn&65535,!(ni+xn<=mn);){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}hn>>>=ni,mn-=ni,tn.back+=ni}if(hn>>>=xn,mn-=xn,tn.back+=xn,En&64){en.msg="invalid distance code",tn.mode=BAD;break}tn.offset=Rn,tn.extra=En&15,tn.mode=DISTEXT;case DISTEXT:if(tn.extra){for(ei=tn.extra;mn<ei;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}tn.offset+=hn&(1<<tn.extra)-1,hn>>>=tn.extra,mn-=tn.extra,tn.back+=tn.extra}if(tn.offset>tn.dmax){en.msg="invalid distance too far back",tn.mode=BAD;break}tn.mode=MATCH;case MATCH:if(dn===0)break e;if(fn=yn-dn,tn.offset>fn){if(fn=tn.offset-fn,fn>tn.whave&&tn.sane){en.msg="invalid distance too far back",tn.mode=BAD;break}fn>
vendor: 4,280 bytes, line 4
4tn.wnext?(fn-=tn.wnext,bn=tn.wsize-fn):bn=tn.wnext-fn,fn>tn.length&&(fn=tn.length),Mn=tn.window}else Mn=an,bn=on-tn.offset,fn=tn.length;fn>dn&&(fn=dn),dn-=fn,tn.length-=fn;do an[on++]=Mn[bn++];while(--fn);tn.length===0&&(tn.mode=LEN);break;case LIT:if(dn===0)break e;an[on++]=tn.length,dn--,tn.mode=LEN;break;case CHECK:if(tn.wrap){for(;mn<32;){if(sn===0)break e;sn--,hn|=nn[rn++]<<mn,mn+=8}if(yn-=dn,en.total_out+=yn,tn.total+=yn,tn.wrap&4&&yn&&(en.adler=tn.check=tn.flags?crc32_1(tn.check,an,yn,on-yn):adler32_1(tn.check,an,yn,on-yn)),yn=dn,tn.wrap&4&&(tn.flags?hn:zswap32(hn))!==tn.check){en.msg="incorrect data check",tn.mode=BAD;break}hn=0,mn=0}tn.mode=LENGTH;case LENGTH:if(tn.wrap&&tn.flags){for(;mn<32;){if(sn===0)break e;sn--,hn+=nn[rn++]<<mn,mn+=8}if(tn.wrap&4&&hn!==(tn.total&4294967295)){en.msg="incorrect length check",tn.mode=BAD;break}hn=0,mn=0}tn.mode=DONE;case DONE:oi=Z_STREAM_END$1;break e;case BAD:oi=Z_DATA_ERROR$1;break e;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return en.next_out=on,en.avail_out=dn,en.next_in=rn,en.avail_in=sn,tn.hold=hn,tn.bits=mn,(tn.wsize||yn!==en.avail_out&&tn.mode<BAD&&(tn.mode<CHECK||He!==Z_FINISH$1))&&updatewindow(en,en.output,en.next_out,yn-en.avail_out),gn-=en.avail_in,yn-=en.avail_out,en.total_in+=gn,en.total_out+=yn,tn.total+=yn,tn.wrap&4&&yn&&(en.adler=tn.check=tn.flags?crc32_1(tn.check,an,yn,en.next_out-yn):adler32_1(tn.check,an,yn,en.next_out-yn)),en.data_type=tn.bits+(tn.last?64:0)+(tn.mode===TYPE?128:0)+(tn.mode===LEN_||tn.mode===COPY_?256:0),(gn===0&&yn===0||He===Z_FINISH$1)&&oi===Z_OK$1&&(oi=Z_BUF_ERROR),oi},inflateEnd=en=>{if(inflateStateCheck(en))return Z_STREAM_ERROR$1;let He=en.state;return He.window&&(He.window=null),en.state=null,Z_OK$1},inflateGetHeader=(en,He)=>{if(inflateStateCheck(en))return Z_STREAM_ERROR$1;const tn=en.state;return(tn.wrap&2)===0?Z_STREAM_ERROR$1:(tn.head=He,He.done=!1,Z_OK$1)},inflateSetDictionary=(en,He)=>{const tn=He.length;let nn,an,rn;return inflateStateCheck(en)||(nn=en.state,nn.wrap!==0&&nn.mode!==DICT)?Z_STREAM_ERROR$1:nn.mode===DICT&&(an=1,an=adler32_1(an,He,tn,0),an!==nn.check)?Z_DATA_ERROR$1:(rn=updatewindow(en,He,tn,tn),rn?(nn.mode=MEM,Z_MEM_ERROR$1):(nn.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString$3=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(en){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},en||{});const He=this.options;He.raw&&He.windowBits>=0&&He.windowBits<16&&(He.windowBits=-He.windowBits,He.windowBits===0&&(He.windowBits=-15)),He.windowBits>=0&&He.windowBits<16&&!(en&&en.windowBits)&&(He.windowBits+=32),He.windowBits>15&&He.windowBits<48&&(He.windowBits&15)===0&&(He.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let tn=inflate_1$2.inflateInit2(this.strm,He.windowBits);if(tn!==Z_OK)throw new Error(messages[tn]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),He.dictionary&&(typeof He.dictionary=="string"?He.dictionary=strings.string2buf(He.dictionary):toString$3.call(He.dictionary)==="[object ArrayBuffer]"&&(He.dictionary=new Uint8Array(He.dictionary)),He.raw&&(tn=inflate_1$2.inflateSetDictionary(this.strm,He.dictionary),tn!==Z_OK)))throw new Error(messages[tn])}Inflate$1.prototype.push=function(en,He){const tn=this.strm,nn=this.options.chunkSize,an=this.options.dictionary;let rn,on,sn;
vendor: 11,464 bytes, line 4
4if(this.ended)return!1;for(He===~~He?on=He:on=He===!0?Z_FINISH:Z_NO_FLUSH,toString$3.call(en)==="[object ArrayBuffer]"?tn.input=new Uint8Array(en):tn.input=en,tn.next_in=0,tn.avail_in=tn.input.length;;){for(tn.avail_out===0&&(tn.output=new Uint8Array(nn),tn.next_out=0,tn.avail_out=nn),rn=inflate_1$2.inflate(tn,on),rn===Z_NEED_DICT&&an&&(rn=inflate_1$2.inflateSetDictionary(tn,an),rn===Z_OK?rn=inflate_1$2.inflate(tn,on):rn===Z_DATA_ERROR&&(rn=Z_NEED_DICT));tn.avail_in>0&&rn===Z_STREAM_END&&tn.state.wrap>0&&en[tn.next_in]!==0;)inflate_1$2.inflateReset(tn),rn=inflate_1$2.inflate(tn,on);switch(rn){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(rn),this.ended=!0,!1}if(sn=tn.avail_out,tn.next_out&&(tn.avail_out===0||rn===Z_STREAM_END))if(this.options.to==="string"){let dn=strings.utf8border(tn.output,tn.next_out),hn=tn.next_out-dn,mn=strings.buf2string(tn.output,dn);tn.next_out=hn,tn.avail_out=nn-hn,hn&&tn.output.set(tn.output.subarray(dn,dn+hn),0),this.onData(mn)}else this.onData(tn.output.length===tn.next_out?tn.output:tn.output.subarray(0,tn.next_out));if(!(rn===Z_OK&&sn===0)){if(rn===Z_STREAM_END)return rn=inflate_1$2.inflateEnd(this.strm),this.onEnd(rn),this.ended=!0,!0;if(tn.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(en){this.chunks.push(en)};Inflate$1.prototype.onEnd=function(en){en===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=en,this.msg=this.strm.msg};function inflate$1(en,He){const tn=new Inflate$1(He);if(tn.push(en),tn.err)throw tn.msg||messages[tn.err];return tn.result}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2};const{Inflate,inflate}=inflate_1$1;var Inflate_1=Inflate,inflate_1=inflate;const crcTable=[];for(let en=0;en<256;en++){let He=en;for(let tn=0;tn<8;tn++)He&1?He=3988292384^He>>>1:He=He>>>1;crcTable[en]=He}const initialCrc=4294967295;function updateCrc(en,He,tn){let nn=en;for(let an=0;an<tn;an++)nn=crcTable[(nn^He[an])&255]^nn>>>8;return nn}function crc(en,He){return(updateCrc(initialCrc,en,He)^initialCrc)>>>0}function checkCrc(en,He,tn){const nn=en.readUint32(),an=crc(new Uint8Array(en.buffer,en.byteOffset+en.offset-He-4,He),He);if(an!==nn)throw new Error(`CRC mismatch for chunk ${tn}. Expected ${nn}, found ${an}`)}function unfilterNone(en,He,tn){for(let nn=0;nn<tn;nn++)He[nn]=en[nn]}function unfilterSub(en,He,tn,nn){let an=0;for(;an<nn;an++)He[an]=en[an];for(;an<tn;an++)He[an]=en[an]+He[an-nn]&255}function unfilterUp(en,He,tn,nn){let an=0;if(tn.length===0)for(;an<nn;an++)He[an]=en[an];else for(;an<nn;an++)He[an]=en[an]+tn[an]&255}function unfilterAverage(en,He,tn,nn,an){let rn=0;if(tn.length===0){for(;rn<an;rn++)He[rn]=en[rn];for(;rn<nn;rn++)He[rn]=en[rn]+(He[rn-an]>>1)&255}else{for(;rn<an;rn++)He[rn]=en[rn]+(tn[rn]>>1)&255;for(;rn<nn;rn++)He[rn]=en[rn]+(He[rn-an]+tn[rn]>>1)&255}}function unfilterPaeth(en,He,tn,nn,an){let rn=0;if(tn.length===0){for(;rn<an;rn++)He[rn]=en[rn];for(;rn<nn;rn++)He[rn]=en[rn]+He[rn-an]&255}else{for(;rn<an;rn++)He[rn]=en[rn]+tn[rn]&255;for(;rn<nn;rn++)He[rn]=en[rn]+paethPredictor(He[rn-an],tn[rn],tn[rn-an])&255}}function paethPredictor(en,He,tn){const nn=en+He-tn,an=Math.abs(nn-en),rn=Math.abs(nn-He),on=Math.abs(nn-tn);return an<=rn&&an<=on?en:rn<=on?He:tn}function applyUnfilter(en,He,tn,nn,an,rn){switch(en){case 0:unfilterNone(He,tn,an);break;case 1:unfilterSub(He,tn,an,rn);break;case 2:unfilterUp(He,tn,nn,an);break;case 3:unfilterAverage(He,tn,nn,an,rn);break;case 4:unfilterPaeth(He,tn,nn,an,rn);break;default:throw new Error(`Unsupported filter: ${en}`)}}const uint16$1=new Uint16Array([255]),uint8$1=new Uint8Array(uint16$1.buffer),osIsLittleEndian$1=uint8$1[0]===255;function decodeInterlaceAdam7(en){const{data:He,width:tn,height:nn,channels:an,depth:rn}=en,on=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],sn=Math.ceil(rn/8)*an,dn=new Uint8Array(nn*tn*sn);let hn=0;for(let mn=0;mn<7;mn++){const gn=on[mn],yn=Math.ceil((tn-gn.x)/gn.xStep),fn=Math.ceil((nn-gn.y)/gn.yStep);if(yn<=0||fn<=0)continue;const bn=yn*sn,Mn=new Uint8Array(bn);for(let Tn=0;Tn<fn;Tn++){const xn=He[hn++],En=He.subarray(hn,hn+bn);hn+=bn;const Rn=new Uint8Array(bn);applyUnfilter(xn,En,Rn,Mn,bn,sn),Mn.set(Rn);for(let ni=0;ni<yn;ni++){const mi=gn.x+ni*gn.xStep,bi=gn.y+Tn*gn.yStep;if(!(mi>=tn||bi>=nn))for(let _i=0;_i<sn;_i++)dn[(bi*tn+mi)*sn+_i]=Rn[ni*sn+_i]}}}if(rn===16){const mn=new Uint16Array(dn.buffer);if(osIsLittleEndian$1)for(let gn=0;gn<mn.length;gn++)mn[gn]=swap16$1(mn[gn]);return mn}else return dn}function swap16$1(en){return(en&255)<<8|en>>8&255}const uint16=new Uint16Array([255]),uint8=new Uint8Array(uint16.buffer),osIsLittleEndian=uint8[0]===255,empty$1=new Uint8Array(0);function decodeInterlaceNull(en){const{data:He,width:tn,height:nn,channels:an,depth:rn}=en,on=Math.ceil(rn/8)*an,sn=Math.ceil(rn/8*an*tn),dn=new Uint8Array(nn*sn);let hn=empty$1,mn=0,gn,yn;for(let fn=0;fn<nn;fn++){switch(gn=He.subarray(mn+1,mn+1+sn),yn=dn.subarray(fn*sn,(fn+1)*sn),He[mn]){case 0:unfilterNone(gn,yn,sn);break;case 1:unfilterSub(gn,yn,sn,on);break;case 2:unfilterUp(gn,yn,hn,sn);break;case 3:unfilterAverage(gn,yn,hn,sn,on);break;case 4:unfilterPaeth(gn,yn,hn,sn,on);break;default:throw new Error(`Unsupported filter: ${He[mn]}`)}hn=yn,mn+=sn+1}if(rn===16){const fn=new Uint16Array(dn.buffer);if(osIsLittleEndian)for(let bn=0;bn<fn.length;bn++)fn[bn]=swap16(fn[bn]);return fn}else return dn}function swap16(en){return(en&255)<<8|en>>8&255}const pngSignature=Uint8Array.of(137,80,78,71,13,10,26,10);function checkSignature(en){if(!hasPngSignature(en.readBytes(pngSignature.length)))throw new Error("wrong PNG signature")}function hasPngSignature(en){if(en.length<pngSignature.length)return!1;for(let He=0;He<pngSignature.length;He++)if(en[He]!==pngSignature[He])return!1;return!0}const textChunkName="tEXt",NULL=0,latin1Decoder=new TextDecoder("latin1");function validateKeyword(en){if(validateLatin1(en),en.length===0||en.length>79)throw new Error("keyword length must be between 1 and 79")}const latin1Regex=/^[\u0000-\u00FF]*$/;function validateLatin1(en){if(!latin1Regex.test(en))throw new Error("invalid latin1 text")}function decodetEXt(en,He,tn){const nn=readKeyword(He);en[nn]=readLatin1(He,tn-nn.length-1)}function readKeyword(en){for(en.mark();en.readByte()!==NULL;);const He=en.offset;en.reset();const tn=latin1Decoder.decode(en.readBytes(He-en.offset-1));return en.skip(1),validateKeyword(tn),tn}function readLatin1(en,He){return latin1Decoder.decode(en.readBytes(He))}const ColorType={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},CompressionMethod={UNKNOWN:-1,DEFLATE:0},FilterMethod={UNKNOWN:-1,ADAPTIVE:0},InterlaceMethod={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},DisposeOpType={NONE:0,BACKGROUND:1,PREVIOUS:2},BlendOpType={SOURCE:0,OVER:1};class PngDecoder extends IOBuffer{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(He,tn={}){super(He);const{checkCrc:nn=!1}=tn;this._checkCrc=nn,this._inflator=new Inflate_1,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=CompressionMethod.UNKNOWN,this._filterMethod=FilterMethod.UNKNOWN,this._interlaceMethod=InterlaceMethod.UNKNOWN,this._colorType=ColorType.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(checkSignature(this);!this._end;){const He=this.readUint32(),tn=this.readChars(4);this.decodeChunk(He,tn)}return this.decodeImage(),this._png}decodeApng(){for(checkSignature(this);!this._end;){const He=this.readUint32(),tn=this.readChars(4);this.decodeApngChunk(He,tn)}return this.decodeApngImage(),this._apng}decodeChunk(He,tn){const nn=this.offset;switch(tn){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(He);break;case"IDAT":this.decodeIDAT(He);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(He);break;case"iCCP":this.decodeiCCP(He);break;case textChunkName:decodetEXt(this._png.text,this,He);break;case"pHYs":this.decodepHYs();break;default:this.skip(He);break}if(this.offset-nn!==He)throw new Error(`Length mismatch while decoding chunk ${tn}`);this._checkCrc?checkCrc(this,He+4,tn):this.skip(4)}decodeApngChunk(He,tn){const nn=this.offset;switch(tn!=="fdAT"&&tn!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),tn){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(He);break;default:this.decodeChunk(He,tn),this.offset=nn+He;break}if(this.offset-nn!==He)throw new Error(`Length mismatch while decoding chunk ${tn}`);this._checkCrc?checkCrc(this,He+4,tn):this.skip(4)}decodeIHDR(){const He=this._png;He.width=this.readUint32(),He.height=this.readUint32(),He.depth=checkBitDepth(this.readUint8());const tn=this.readUint8();this._colorType=tn;let nn;switch(tn){case ColorType.GREYSCALE:nn=1;break;case ColorType.TRUECOLOUR:nn=3;break;case ColorType.INDEXED_COLOUR:nn=1;break;case ColorType.GREYSCALE_ALPHA:nn=2;break;case ColorType.TRUECOLOUR_ALPHA:nn=4;break;case ColorType.UNKNOWN:default:throw new Error(`Unknown color type: ${tn}`)}if(this._png.channels=nn,this._compressionMethod=this.readUint8(),this._compressionMethod!==CompressionMethod.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const He={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(He)}decodePLTE(He){if(He%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${He}`);const tn=He/3;this._hasPalette=!0;const nn=[];this._palette=nn;for(let an=0;an<tn;an++)nn.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(He){this._writingDataChunks=!0;const tn=He,nn=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,nn,tn)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(He)}decodeFDAT(He){this._writingDataChunks=!0;let tn=He,nn=this.offset+this.byteOffset;if(nn+=4,tn-=4,this._inflator.push(new Uint8Array(this.buffer,nn,tn)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(He)}decodetRNS(He){switch(this._colorType){case ColorType.GREYSCALE:case ColorType.TRUECOLOUR:{if(He%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${He}`);if(He/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alph
vendor: 4,988 bytes, line 4
4a values than there are pixels (${He/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(He/2);for(let tn=0;tn<He/2;tn++)this._transparency[tn]=this.readUint16();break}case ColorType.INDEXED_COLOUR:{if(He>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${He} vs ${this._palette.length})`);let tn=0;for(;tn<He;tn++){const nn=this.readByte();this._palette[tn].push(nn)}for(;tn<this._palette.length;tn++)this._palette[tn].push(255);break}case ColorType.UNKNOWN:case ColorType.GREYSCALE_ALPHA:case ColorType.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(He){const tn=readKeyword(this),nn=this.readUint8();if(nn!==CompressionMethod.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${nn}`);const an=this.readBytes(He-tn.length-2);this._png.iccEmbeddedProfile={name:tn,profile:inflate_1(an)}}decodepHYs(){const He=this.readUint32(),tn=this.readUint32(),nn=this.readByte();this._png.resolution={x:He,y:tn,unit:nn}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let He=0;He<this._numberOfFrames;He++){const tn={sequenceNumber:this._frames[He].sequenceNumber,delayNumber:this._frames[He].delayNumber,delayDenominator:this._frames[He].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},nn=this._frames.at(He);if(nn){if(nn.data=decodeInterlaceNull({data:nn.data,width:nn.width,height:nn.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),He===0||nn.xOffset===0&&nn.yOffset===0&&nn.width===this._png.width&&nn.height===this._png.height)tn.data=nn.data;else{const an=this._apng.frames.at(He-1);this.disposeFrame(nn,an,tn),this.addFrameDataToCanvas(tn,nn)}this._apng.frames.push(tn)}}return this._apng}disposeFrame(He,tn,nn){switch(He.disposeOp){case DisposeOpType.NONE:break;case DisposeOpType.BACKGROUND:for(let an=0;an<this._png.height;an++)for(let rn=0;rn<this._png.width;rn++){const on=(an*He.width+rn)*this._png.channels;for(let sn=0;sn<this._png.channels;sn++)nn.data[on+sn]=0}break;case DisposeOpType.PREVIOUS:nn.data.set(tn.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(He,tn){const nn=1<<this._png.depth,an=(rn,on)=>{const sn=((rn+tn.yOffset)*this._png.width+tn.xOffset+on)*this._png.channels,dn=(rn*tn.width+on)*this._png.channels;return{index:sn,frameIndex:dn}};switch(tn.blendOp){case BlendOpType.SOURCE:for(let rn=0;rn<tn.height;rn++)for(let on=0;on<tn.width;on++){const{index:sn,frameIndex:dn}=an(rn,on);for(let hn=0;hn<this._png.channels;hn++)He.data[sn+hn]=tn.data[dn+hn]}break;case BlendOpType.OVER:for(let rn=0;rn<tn.height;rn++)for(let on=0;on<tn.width;on++){const{index:sn,frameIndex:dn}=an(rn,on);for(let hn=0;hn<this._png.channels;hn++){const mn=tn.data[dn+this._png.channels-1]/nn,gn=hn%(this._png.channels-1)===0?1:tn.data[dn+hn],yn=Math.floor(mn*gn+(1-mn)*He.data[sn+hn]);He.data[sn+hn]+=yn}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const He=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==FilterMethod.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)this._png.data=decodeInterlaceNull({data:He,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===InterlaceMethod.ADAM7)this._png.data=decodeInterlaceAdam7({data:He,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const He=this._inflator.result,tn=this._frames.at(-1);tn?tn.data=He:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:DisposeOpType.NONE,blendOp:BlendOpType.SOURCE,data:He}),this._inflator=new Inflate_1,this._writingDataChunks=!1}}function checkBitDepth(en){if(en!==1&&en!==2&&en!==4&&en!==8&&en!==16)throw new Error(`invalid bit depth: ${en}`);return en}var ResolutionUnitSpecifier;(function(en){en[en.UNKNOWN=0]="UNKNOWN",en[en.METRE=1]="METRE"}
4)(ResolutionUnitSpecifier||(ResolutionUnitSpecifier={}));function decodePng(en,He){return new PngDecoder(en,He).decode()}var i$2=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function a$2(){i$2.console&&typeof i$2.console.log=="function"&&i$2.console.log.apply(i$2.console,arguments)}var o$2={log:a$2,warn:function(en){i$2.console&&(typeof i$2.console.warn=="function"?i$2.console.warn.apply(i$2.console,arguments):a$2.call(null,arguments))},error:function(en){i$2.console&&(typeof i$2.console.error=="function"?i$2.console.error.apply(i$2.console,arguments):a$2(en))}};function s$2(en,He,tn){var nn=new XMLHttpRequest;nn.open("GET",en),nn.responseType="blob",nn.onload=function(){l$2(nn.response,He,tn)},nn.onerror=function(){o$2.error("could not download file")},nn.send()}function u$2(en){var He=new XMLHttpRequest;He.open("HEAD",en,!1);try{He.send()}catch{}return He.status>=200&&He.status<=299}function c$2(en){try{en.dispatchEvent(new MouseEvent("click"))}catch{var He=document.createEvent("MouseEvents");
vendor: 3,379 bytes, line 4
4He.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),en.dispatchEvent(He)}}var l$2=i$2.saveAs||((typeof window>"u"?"undefined":_typeof$1(window))!=="object"||window!==i$2?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(en,He,tn){var nn=i$2.URL||i$2.webkitURL,an=document.createElement("a");He=He||en.name||"download",an.download=He,an.rel="noopener",typeof en=="string"?(an.href=en,an.origin!==location.origin?u$2(an.href)?s$2(en,He,tn):c$2(an,an.target="_blank"):c$2(an)):(an.href=nn.createObjectURL(en),setTimeout(function(){nn.revokeObjectURL(an.href)},4e4),setTimeout(function(){c$2(an)},0))}:"msSaveOrOpenBlob"in navigator?function(en,He,tn){if(He=He||en.name||"download",typeof en=="string")if(u$2(en))s$2(en,He,tn);else{var nn=document.createElement("a");nn.href=en,nn.target="_blank",setTimeout(function(){c$2(nn)})}else navigator.msSaveOrOpenBlob((function(an,rn){return rn===void 0?rn={autoBom:!1}:_typeof$1(rn)!=="object"&&(o$2.warn("Deprecated: Expected third argument to be a object"),rn={autoBom:!rn}),rn.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(an.type)?new Blob(["\uFEFF",an],{type:an.type}):an})(en,tn),He)}:function(en,He,tn,nn){if((nn=nn||open("","_blank"))&&(nn.document.title=nn.document.body.innerText="downloading..."),typeof en=="string")return s$2(en,He,tn);var an=en.type==="application/octet-stream",rn=/constructor/i.test(i$2.HTMLElement)||i$2.safari,on=/CriOS\/[\d]+/.test(navigator.userAgent);if((on||an&&rn)&&(typeof FileReader>"u"?"undefined":_typeof$1(FileReader))==="object"){var sn=new FileReader;sn.onloadend=function(){var mn=sn.result;mn=on?mn:mn.replace(/^data:[^;]*;/,"data:attachment/file;"),nn?nn.location.href=mn:location=mn,nn=null},sn.readAsDataURL(en)}else{var dn=i$2.URL||i$2.webkitURL,hn=dn.createObjectURL(en);nn?nn.location=hn:location.href=hn,nn=null,setTimeout(function(){dn.revokeObjectURL(hn)},4e4)}});function h$1(en){var He;en=en||"",this.ok=!1,en.charAt(0)=="#"&&(en=en.substr(1,6)),en={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
40",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[en=(en=en.replace(/ /g,"")).toLowerCase()]||en;for(var tn=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(sn){return[parseInt(sn[1]),parseInt(sn[2]),parseInt(sn[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(sn){return[parseInt(sn[1],16),parseInt(sn[2],16),parseInt(sn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(sn){return[parseInt(sn[1]+sn[1],16),parseInt(sn[2]+sn[2],16),parseInt(sn[3]+sn[3],16)]}}],nn=0;nn<tn.length;nn++){var an=tn[nn].re,rn=tn[nn].process,on=an.exec(en);on&&(He=rn(on),this.r=He[0],this.g=He[1],this.b=He[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var sn=this.r.toString(16),dn=this.g.toString(16),hn=this.b.toString(16);return sn.length==1&&(sn="0"+sn),dn.length==1&&(dn="0"+dn),hn.length==1&&(hn="0"+hn),"#"+sn+dn+hn}}var f$1=i$2.atob.bind(i$2),d=i$2.btoa.bind(i$2);function p$1(en,He){var tn=en[0],nn=en[1],an=en[2],rn=en[3];tn=m$2(tn,nn,an,rn,He[0],7,-680876936),rn=m$2(rn,tn,nn,an,He[1],12,-389564586),an=m$2(an,rn,tn,nn,He[2],17,606105819),nn=m$2(nn,an,rn,tn,He[3],22,-1044525330),tn=m$2(tn,nn,an,rn,He[4],7,-176418897),rn=m$2(rn,tn,nn,an,He[5],12,1200080426),an=m$2(an,rn,tn,nn,He[6],17,-1473231341),nn=m$2(nn,an,rn,tn,He[7],22,-45705983),tn=m$2(tn,nn,an,rn,He[8],7,1770035416),rn=m$2(rn,tn,nn,an,He[9],12,-1958414417),an=m$2(an,rn,tn,nn,He[10],17,-42063),nn=m$2(nn,an,rn,tn,He[11],22,-1990404162),tn=m$2(tn,nn,an,rn,He[12],7,1804603682),rn=m$2(rn,tn,nn,an,He[13],12,-40341101),an=m$2(an,rn,tn,nn,He[14],17,-1502002290),tn=v$1(tn,nn=m$2(nn,an,rn,tn,He[15],22,1236535329),an,rn,He[1],5,-165796510),rn=v$1(rn,tn,nn,an,He[6],9,-1069501632),an=v$1(an,rn,tn,nn,He[11],14,643717713),nn=v$1(nn,an,rn,tn,He[0],20,-373897302),tn=v$1(tn,nn,an,rn,He[5],5,-701558691),rn=v$1(rn,tn,nn,an,He[10],9,38016083),an=v$1(an,rn,tn,nn,He[15],14,-660478335),nn=v$1(nn,an,rn,tn,He[4],20,-405537848),tn=v$1(tn,nn,an,rn,He[9],5,568446438),rn=v$1(rn,tn,nn,an,He[14],9,-1019803690),an=v$1(an,rn,tn,nn,He[3],14,-187363961),nn=v$1(nn,an,rn,tn,He[8],20,1163531501),tn=v$1(tn,nn,an,rn,He[13],5,-1444681467),rn=v$1(rn,tn,nn,an,He[2],9,-51403784),an=v$1(an,rn,tn,nn,He[7],14,1735328473),tn=b(tn,nn=v$1(nn,an,rn,tn,He[12],20,-1926607734),an,rn,He[5],4,-378558),rn=b(rn,tn,nn,an,He[8],11,-2022574463),an=b(an,rn,tn,nn,He[11],16,1839030562),nn=b(nn,an,rn,tn,He[14],23,-35309556),tn=b(tn,nn,an,rn,He[1],4,-1530992060),rn=b(rn,tn,nn,an,He[4],11,1272893353),an=b(an,rn,tn,nn,He[7],16,-155497632),nn=b(nn,an,rn,tn,He[10],23,-1094730640),tn=b(tn,nn,an,rn,He[13],4,681279174),rn=b(rn,tn,nn,an,He[0],11,-358537222),an=b(an,rn,tn,nn,He[3],16,-722521979),nn=b(nn,an,rn,tn,He[6],23,76029189),tn=b(tn,nn,an,rn,He[9],4,-640364487),rn=b(rn,tn,nn,an,He[12],11,-421815835),an=b(an,rn,tn,nn,He[15],16,530742520),tn=y$3(tn,nn=b(nn,an,rn,tn,He[2],23,-995338651),an,rn,He[0],6,-198630844),rn=y$3(rn,tn,nn,an,He[7],10,1126891415),an=y$3(an,rn,tn,nn,He[14],15,-1416354905),nn=y$3(nn,an,rn,tn,He[5],21,-57434055),tn=y$3(tn,nn,an,rn,He[12],6,1700485571),rn=y$3(rn,tn,nn,an,He[3],10,-1894986606),an=y$3(an,rn,tn,nn,He[10],15,-1051523),nn=y$3(nn,an,rn,tn,He[1],21,-2054922799),tn=y$3(tn,nn,an,rn,He[8],6,1873313359),rn=y$3(rn,tn,nn,an,He[15],10,-30611744),an=y$3(an,rn,tn,nn,He[6],15,-1560198380),nn=y$3(nn,an,rn,tn,He[13],21,1309151649),tn=y$3(tn,nn,an,rn,He[4],6,-145523070),rn=y$3(rn,tn,nn,an,He[11],10,-1120210379),an=y$3(an,rn,tn,nn,He[2],15,718787259),nn=y$3(nn,an,rn,tn,He[9],21,-343485551),en[0]=P(tn,en[0]),en[1]=P(nn,en[1]),en[2]=P(an,en[2]),en[3]=P(rn,en[3])}function g(en,He,tn,nn,an,rn){return He=P(P(He,en),P(nn,rn)),P(He<<an|He>>>32-an,tn)}function m$2(en,He,tn,nn,an,rn,on){return g(He&tn|~He&nn,en,He,an,rn,on)}function v$1(en,He,tn,nn,an,rn,on){return g(He&nn|tn&~nn,en,He,an,rn,on)}function b(en,He,tn,nn,an,rn,on){return g(He^tn^nn,en,He,an,rn,on)}function y$3(en,He,tn,nn,an,rn,on){return g(tn^(He|~nn),en,He,an,rn,on)}function w(en){var He,tn=en.length,nn=[1732584193,-271733879,-1732584194,271733878];for(He=64;He<=en.length;He+=64)p$1(nn,N$1(en.substring(He-64,He)));en=en.substring(He-64);var an=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(He=0;He<en.length;He++)an[He>>
vendor: 12,777 bytes, line 4
42]|=en.charCodeAt(He)<<(He%4<<3);if(an[He>>2]|=128<<(He%4<<3),He>55)for(p$1(nn,an),He=0;He<16;He++)an[He]=0;return an[14]=8*tn,p$1(nn,an),nn}function N$1(en){var He,tn=[];for(He=0;He<64;He+=4)tn[He>>2]=en.charCodeAt(He)+(en.charCodeAt(He+1)<<8)+(en.charCodeAt(He+2)<<16)+(en.charCodeAt(He+3)<<24);return tn}var L$2="0123456789abcdef".split("");function x$1(en){for(var He="",tn=0;tn<4;tn++)He+=L$2[en>>8*tn+4&15]+L$2[en>>8*tn&15];return He}function A(en){return String.fromCharCode(255&en,(65280&en)>>8,(16711680&en)>>16,(4278190080&en)>>24)}function S(en){return w(en).map(A).join("")}var _$1=(function(en){for(var He=0;He<en.length;He++)en[He]=x$1(en[He]);return en.join("")})(w("hello"))!="5d41402abc4b2a76b9719d911017c592";function P(en,He){if(_$1){var tn=(65535&en)+(65535&He);return(en>>16)+(He>>16)+(tn>>16)<<16|65535&tn}return en+He&4294967295}function k(en,He){var tn,nn,an,rn;if(en!==tn){for(var on=(an=en,rn=1+(256/en.length|0),new Array(rn+1).join(an)),sn=[],dn=0;dn<256;dn++)sn[dn]=dn;var hn=0;for(dn=0;dn<256;dn++){var mn=sn[dn];hn=(hn+mn+on.charCodeAt(dn))%256,sn[dn]=sn[hn],sn[hn]=mn}tn=en,nn=sn}else sn=nn;var gn=He.length,yn=0,fn=0,bn="";for(dn=0;dn<gn;dn++)fn=(fn+(mn=sn[yn=(yn+1)%256]))%256,sn[yn]=sn[fn],sn[fn]=mn,on=sn[(sn[yn]+sn[fn])%256],bn+=String.fromCharCode(He.charCodeAt(dn)^on);return bn}var F={print:4,modify:8,copy:16,"annot-forms":32};function I(en,He,tn,nn){this.v=1,this.r=2;var an=192;en.forEach(function(sn){if(F.perm!==void 0)throw new Error("Invalid permission: "+sn);an+=F[sn]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var rn=(He+this.padding).substr(0,32),on=(tn+this.padding).substr(0,32);this.O=this.processOwnerPassword(rn,on),this.P=-(1+(255^an)),this.encryptionKey=S(rn+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(nn)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function j(en){if(/[^\u0000-\u00ff]/.test(en))throw new Error("Invalid PDF Name Object: "+en+", Only accept ASCII characters.");for(var He="",tn=en.length,nn=0;nn<tn;nn++){var an=en.charCodeAt(nn);He+=an<33||an===35||an===37||an===40||an===41||an===47||an===60||an===62||an===91||an===93||an===123||an===125||an>126?"#"+("0"+an.toString(16)).slice(-2):en[nn]}return He}function C(en){if(_typeof$1(en)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var He={};this.subscribe=function(tn,nn,an){if(an=an||!1,typeof tn!="string"||typeof nn!="function"||typeof an!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");He.hasOwnProperty(tn)||(He[tn]={});var rn=Math.random().toString(35);return He[tn][rn]=[nn,!!an],rn},this.unsubscribe=function(tn){for(var nn in He)if(He[nn][tn])return delete He[nn][tn],Object.keys(He[nn]).length===0&&delete He[nn],!0;return!1},this.publish=function(tn){if(He.hasOwnProperty(tn)){var nn=Array.prototype.slice.call(arguments,1),an=[];for(var rn in He[tn]){var on=He[tn][rn];try{on[0].apply(en,nn)}catch(sn){i$2.console&&o$2.error("jsPDF PubSub Error",sn.message,sn)}on[1]&&an.push(rn)}an.length&&an.forEach(this.unsubscribe)}},this.getTopics=function(){return He}}function O$1(en){if(!(this instanceof O$1))return new O$1(en);var He="opacity,stroke-opacity".split(",");for(var tn in en)en.hasOwnProperty(tn)&&He.indexOf(tn)>=0&&(this[tn]=en[tn]);this.id="",this.objectNumber=-1}function B(en,He){this.gState=en,this.matrix=He,this.id="",this.objectNumber=-1}function M(en,He,tn,nn,an){if(!(this instanceof M))return new M(en,He,tn,nn,an);this.type=en==="axial"?2:3,this.coords=He,this.colors=tn,B.call(this,nn,an)}function q(en,He,tn,nn,an){if(!(this instanceof q))return new q(en,He,tn,nn,an);this.boundingBox=en,this.xStep=He,this.yStep=tn,this.stream="",this.cloneIndex=0,B.call(this,nn,an)}function E(en){var He,tn=typeof arguments[0]=="string"?arguments[0]:"p",nn=arguments[1],an=arguments[2],rn=arguments[3],on=[],sn=1,dn=16,hn="S",mn=null;_typeof$1(en=en||{})==="object"&&(tn=en.orientation,nn=en.unit||nn,an=en.format||an,rn=en.compress||en.compressPdf||rn,(mn=en.encryption||null)!==null&&(mn.userPassword=mn.userPassword||"",mn.ownerPassword=mn.ownerPassword||"",mn.userPermissions=mn.userPermissions||[]),sn=typeof en.userUnit=="number"?Math.abs(en.userUnit):1,en.precision!==void 0&&(He=en.precision),en.floatPrecision!==void 0&&(dn=en.floatPrecision),hn=en.defaultPathOperation||"S"),on=en.filters||(rn===!0?["FlateEncode"]:on),nn=nn||"mm",tn=(""+(tn||"P")).toLowerCase();var gn=en.putOnlyUsedFonts||!1,yn={},fn={internal:{},__private__:{}};fn.__private__.PubSub=C;var bn="1.3",Mn=fn.__private__.getPdfVersion=function(){return bn};fn.__private__.setPdfVersion=function(An){bn=An};var Tn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};fn.__private__.getPageFormats=function(){return Tn};var xn=fn.__private__.getPageFormat=function(An){return Tn[An]};an=an||"a4";var En="compat",Rn="advanced",ni=En;function mi(){this.saveGraphicsState(),Cn(new fs(Xa,0,0,-Xa,0,_d()*Xa).toString()+" cm"),this.setFontSize(this.getFontSize()/Xa),hn="n",ni=Rn}function bi(){this.restoreGraphicsState(),hn="S",ni=En}var _i=fn.__private__.combineFontStyleAndFontWeight=function(An,gi){if(An=="bold"&&gi=="normal"||An=="bold"&&gi==400||An=="normal"&&gi=="italic"||An=="bold"&&gi=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return gi&&(An=gi==400||gi==="normal"?An==="italic"?"italic":"normal":gi!=700&&gi!=="bold"||An!=="normal"?(gi==700?"bold":gi)+""+An:"bold"),An};fn.advancedAPI=function(An){var gi=ni===En;return gi&&mi.call(this),typeof An!="function"||(An(this),gi&&bi.call(this)),this},fn.compatAPI=function(An){var gi=ni===Rn;return gi&&bi.call(this),typeof An!="function"||(An(this),gi&&mi.call(this)),this},fn.isAdvancedAPI=function(){return ni===Rn};var oi,si=function(An){if(ni!==Rn)throw new Error(An+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},fi=fn.roundToPrecision=fn.__private__.roundToPrecision=function(An,gi){var Ii=He||gi;if(isNaN(An)||isNaN(Ii))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return An.toFixed(Ii).replace(/0+$/,"")};oi=fn.hpf=fn.__private__.hpf=typeof dn=="number"?function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.hpf");return fi(An,dn)}:dn==="smart"?function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.hpf");return fi(An,An>-1&&An<1?16:5)}:function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.hpf");return fi(An,16)};var ei=fn.f2=fn.__private__.f2=function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.f2");return fi(An,2)},ci=fn.__private__.f3=function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.f3");return fi(An,3)},di=fn.scale=fn.__private__.scale=function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.scale");return ni===En?An*Xa:ni===Rn?An:void 0},wi=function(An){return di((function(gi){return ni===En?_d()-gi:ni===Rn?gi:void 0})(An))};fn.__private__.setPrecision=fn.setPrecision=function(An){typeof parseInt(An,10)=="number"&&(He=parseInt(An,10))};var Ci,ji="00000000000000000000000000000000",Yi=fn.__private__.getFileId=function(){return ji},Pi=fn.__private__.setFileId=function(An){return ji=An!==void 0&&/^[a-fA-F0-9]{32}$/.test(An)?An.toUpperCase():ji.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),mn!==null&&(Eo=new I(mn.userPermissions,mn.userPassword,mn.ownerPassword,ji)),ji};fn.setFileId=function(An){return Pi(An),this},fn.getFileId=function(){return Yi()};var Fi=fn.__private__.convertDateToPDFDate=function(An){var gi=An.getTimezoneOffset(),Ii=gi<0?"+":"-",Xi=Math.floor(Math.abs(gi/60)),ua=Math.abs(gi%60),Aa=[Ii,Ni(Xi),"'",Ni(ua),"'"].join("");return["D:",An.getFullYear(),Ni(An.getMonth()+1),Ni(An.getDate()),Ni(An.getHours()),Ni(An.getMinutes()),Ni(An.getSeconds()),Aa].join("")},$i=fn.__private__.convertPDFDateToDate=function(An){var gi=parseInt(An.substr(2,4),10),Ii=parseInt(An.substr(6,2),10)-1,Xi=parseInt(An.substr(8,2),10),ua=parseInt(An.substr(10,2),10),Aa=parseInt(An.substr(12,2),10),Va=parseInt(An.substr(14,2),10);return new Date(gi,Ii,Xi,ua,Aa,Va,0)},Wi=fn.__private__.setCreationDate=function(An){var gi;if(An===void 0&&(An=new Date),An instanceof Date)gi=Fi(An);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(An))throw new Error("Invalid argument passed to jsPDF.setCreationDate");gi=An}return Ci=gi},hi=fn.__private__.getCreationDate=function(An){var gi=Ci;return An==="jsDate"&&(gi=$i(Ci)),gi};fn.setCreationDate=function(An){return Wi(An),this},fn.getCreationDate=function(An){return hi(An)};var Si,Ni=fn.__private__.padd2=function(An){return("0"+parseInt(An)).slice(-2)},yi=fn.__private__.padd2Hex=function(An){return("00"+(An=An.toString())).substr(An.length)},Hi=0,Ui=[],Ji=[],Oi=0,Ei=[],ea=[],vi=!1,ti=Ji;fn.__private__.setCustomOutputDestination=function(An){vi=!0,ti=An};var ui=function(An){vi||(ti=An)};fn.__private__.resetCustomOutputDestination=function(){vi=!1,ti=Ji};var Cn=fn.__private__.out=function(An){return An=An.toString(),Oi+=An.length+1,ti.push(An),ti},ki=fn.__private__.write=function(An){return Cn(arguments.length===1?An.toString():Array.prototype.join.call(arguments," "))},Zi=fn.__private__.getArrayBuffer=function(An){for(var gi=An.length,Ii=new ArrayBuffer(gi),Xi=new Uint8Array(Ii);gi--;)Xi[gi]=An.charCodeAt(gi);return Ii},ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];fn.__private__.getStandardFonts=function(){return ta};var Ri=en.fontSize||16;fn.__private__.setFontSize=fn.setFontSize=function(An){return Ri=ni===Rn?An/Xa:An,this};var ha,qi=fn.__private__.getFontSize=fn.getFontSize=function(){return ni===En?Ri:Ri*Xa},ca=en.R2L||!1;fn.__private__.setR2L=fn.setR2L=function(An){return ca=An,this},fn.__private__.getR2L=fn.getR2L=function(){return ca};var Bi,Na=fn.__private__.setZoomMode=function(An){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(An))ha=An;else if(isNaN(An)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(An)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+An+'" is not recognized.');ha=An}else ha=parseInt(An,10)};fn.__private__.getZoomMode=function(){return ha};var pa,Ea=fn.__private__.setPageMode=function(An){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(An)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+An+'" is not recognized.');Bi=An};fn.__private__.getPageMode=function(){return Bi};var ns=fn.__private__.setLayoutMode=function(An){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(An)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+An+'" is not recognized.');pa=An};fn.__private__.getLayoutMode=function(){return pa},fn.__private__.setDisplayMode=fn.setDisplayMode=function(An,gi,Ii){return Na(An),ns(gi),Ea(Ii),this};var vs={title:"",subject:"",author:"",keywords:"",creator:""};fn.__private__.getDocumentProperty=function(An){if(Object.keys(vs).indexOf(An)===-1)throw new Error("Invalid argument passed to 
4jsPDF.getDocumentProperty");return vs[An]},fn.__private__.getDocumentProperties=function(){return vs},fn.__private__.setDocumentProperties=fn.setProperties=fn.setDocumentProperties=function(An){for(var gi in vs)vs.hasOwnProperty(gi)&&An[gi]&&(vs[gi]=An[gi]);return this},fn.__private__.setDocumentProperty=function(An,gi){if(Object.keys(vs).indexOf(An)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vs[An]=gi};var rs,Xa,_s,mo,Is,$s={},Ps={},Ws=[],ps={},oo={},bs={},As={},ts=null,cs=0,ws=[],js=new C(fn),Ma=en.hotfixes||[],Jo={},eu={},ko=[],fs=function An(gi,Ii,Xi,ua,Aa,Va){if(!(this instanceof An))return new An(gi,Ii,Xi,ua,Aa,Va);isNaN(gi)&&(gi=1),isNaN(Ii)&&(Ii=0),isNaN(Xi)&&(Xi=0),isNaN(ua)&&(ua=1),isNaN(Aa)&&(Aa=0),isNaN(Va)&&(Va=0),this._matrix=[gi,Ii,Xi,ua,Aa,Va]};Object.defineProperty(fs.prototype,"sx",{get:function(){return this._matrix[0]},set:function(An){this._matrix[0]=An}}),Object.defineProperty(fs.prototype,"shy",{get:function(){return this._matrix[1]},set:function(An){this._matrix[1]=An}}),Object.defineProperty(fs.prototype,"shx",{get:function(){return this._matrix[2]},set:function(An){this._matrix[2]=An}}),Object.defineProperty(fs.prototype,"sy",{get:function(){return this._matrix[3]},set:function(An){this._matrix[3]=An}}),Object.defineProperty(fs.prototype,"tx",{get:function(){return this._matrix[4]},set:function(An){this._matrix[4]=An}}),Object.defineProperty(fs.prototype,"ty",{get:function(){return this._matrix[5]},set:function(An){this._matrix[5]=An}}),Object.defineProperty(fs.prototype,"a",{get:function(){return this._matrix[0]},set:function(An){this._matrix[0]=An}}),Object.defineProperty(fs.prototype,"b",{get:function(){return this._matrix[1]},set:function(An){this._matrix[1]=An}}),Object.defineProperty(fs.prototype,"c",{get:function(){return this._matrix[2]},set:function(An){this._matrix[2]=An}}),Object.defineProperty(fs.prototype,"d",{get:function(){return this._matrix[3]},set:function(An){this._matrix[3]=An}}),Object.defineProperty(fs.prototype,"e",{get:function(){return this._matrix[4]},set:function(An){this._matrix[4]=An}}),Object.defineProperty(fs.prototype,"f",{get:function(){return this._matrix[5]},set:function(An){this._matrix[5]=An}}),Object.defineProperty(fs.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(fs.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(fs.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(fs.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),fs.prototype.join=function(An){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(oi).join(An)},fs.prototype.multiply=function(An){var gi=An.sx*this.sx+An.shy*this.shx,Ii=An.sx*this.shy+An.shy*this.sy,Xi=An.shx*this.sx+An.sy*this.shx,ua=An.shx*this.shy+An.sy*this.sy,Aa=An.tx*this.sx+An.ty*this.shx+this.tx,Va=An.tx*this.shy+An.ty*this.sy+this.ty;return new fs(gi,Ii,Xi,ua,Aa,Va)},fs.prototype.decompose=function(){var An=this.sx,gi=this.shy,Ii=this.shx,Xi=this.sy,ua=this.tx,Aa=this.ty,Va=Math.sqrt(An*An+gi*gi),Ms=(An/=Va)*Ii+(gi/=Va)*Xi;Ii-=An*Ms,Xi-=gi*Ms;var xs=Math.sqrt(Ii*Ii+Xi*Xi);return Ms/=xs,An*(Xi/=xs)<gi*(Ii/=xs)&&(An=-An,gi=-gi,Ms=-Ms,Va=-Va),{scale:new fs(Va,0,0,xs,0,0),translate:new fs(1,0,0,1,ua,Aa),rotate:new fs(An,gi,-gi,An,0,0),skew:new fs(1,0,Ms,1,0,0)}},fs.prototype.toString=function(An){return this.join(" ")},fs.prototype.inversed=function(){var An=this.sx,gi=this.shy,Ii=this.shx,Xi=this.sy,ua=this.tx,Aa=this.ty,Va=1/(An*Xi-gi*Ii),Ms=Xi*Va,xs=-gi*Va,Vs=-Ii*Va,Rs=An*Va;return new fs(Ms,xs,Vs,Rs,-Ms*ua-Vs*Aa,-xs*ua-Rs*Aa)},fs.prototype.applyToPoint=function(An){var gi=An.x*this.sx+An.y*this.shx+this.tx,Ii=An.x*this.shy+An.y*this.sy+this.ty;return new su(gi,Ii)},fs.prototype.applyToRectangle=function(An){var gi=this.applyToPoint(An),Ii=this.applyToPoint(new su(An.x+An.w,An.y+An.h));return new Nd(gi.x,gi.y,Ii.x-gi.x,Ii.y-gi.y)},fs.prototype.clone=function(){var An=this.sx,gi=this.shy,Ii=this.shx,Xi=this.sy,ua=this.tx,Aa=this.ty;return new fs(An,gi,Ii,Xi,ua,Aa)},fn.Matrix=fs;var os=fn.matrixMult=function(An,gi){return gi.multiply(An)},kc=new fs(1,0,0,1,0,0);fn.unitMatrix=fn.identityMatrix=kc;var ys=function(An,gi){if(!oo[An]){var Ii=(gi instanceof M?"Sh":"P")+(Object.keys(ps).length+1).toString(10);gi.id=Ii,oo[An]=Ii,ps[Ii]=gi,js.publish("addPattern",gi)}};fn.ShadingPattern=M,fn.TilingPattern=q,fn.addShadingPattern=function(An,gi){return si("addShadingPattern()"),ys(An,gi),this},fn.beginTilingPattern=function(An){si("beginTilingPattern()"),nh(An.boundingBox[0],An.boundingBox[1],An.boundingBox[2]-An.boundingBox[0],An.boundingBox[3]-An.boundingBox[1],An.matrix)},fn.endTilingPattern=function(An,gi){si("endTilingPattern()"),gi.stream=ea[Si].join(`
5`),ys(An,gi),js.publish("endTilingPattern",gi),ko.pop().restore(
vendor: 18,939 bytes, lines 5-10
5)};var Vo,ho=fn.__private__.newObject=function(){var An=ls();return ia(An,!0),An},ls=fn.__private__.newObjectDeferred=function(){return Hi++,Ui[Hi]=function(){return Oi},Hi},ia=function(An,gi){return gi=typeof gi=="boolean"&&gi,Ui[An]=Oi,gi&&Cn(An+" 0 obj"),An},Fa=fn.__private__.newAdditionalObject=function(){var An={objId:ls(),content:""};return Ei.push(An),An},us=ls(),as=ls(),Cs=fn.__private__.decodeColorString=function(An){var gi=An.split(" ");if(gi.length!==2||gi[1]!=="g"&&gi[1]!=="G")gi.length!==5||gi[4]!=="k"&&gi[4]!=="K"||(gi=[(1-gi[0])*(1-gi[3]),(1-gi[1])*(1-gi[3]),(1-gi[2])*(1-gi[3]),"r"]);else{var Ii=parseFloat(gi[0]);gi=[Ii,Ii,Ii,"r"]}for(var Xi="#",ua=0;ua<3;ua++)Xi+=("0"+Math.floor(255*parseFloat(gi[ua])).toString(16)).slice(-2);return Xi},to=fn.__private__.encodeColorString=function(An){var gi;typeof An=="string"&&(An={ch1:An});var Ii=An.ch1,Xi=An.ch2,ua=An.ch3,Aa=An.ch4,Va=An.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Ii=="string"&&Ii.charAt(0)!=="#"){var Ms=new h$1(Ii);if(Ms.ok)Ii=Ms.toHex();else if(!/^\d*\.?\d*$/.test(Ii))throw new Error('Invalid color "'+Ii+'" passed to jsPDF.encodeColorString.')}if(typeof Ii=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Ii)&&(Ii="#"+Ii[1]+Ii[1]+Ii[2]+Ii[2]+Ii[3]+Ii[3]),typeof Ii=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Ii)){var xs=parseInt(Ii.substr(1),16);Ii=xs>>16&255,Xi=xs>>8&255,ua=255&xs}if(Xi===void 0||Aa===void 0&&Ii===Xi&&Xi===ua)gi=typeof Ii=="string"?Ii+" "+Va[0]:An.precision===2?ei(Ii/255)+" "+Va[0]:ci(Ii/255)+" "+Va[0];else if(Aa===void 0||_typeof$1(Aa)==="object"){if(Aa&&!isNaN(Aa.a)&&Aa.a===0)return["1.","1.","1.",Va[1]].join(" ");gi=typeof Ii=="string"?[Ii,Xi,ua,Va[1]].join(" "):An.precision===2?[ei(Ii/255),ei(Xi/255),ei(ua/255),Va[1]].join(" "):[ci(Ii/255),ci(Xi/255),ci(ua/255),Va[1]].join(" ")}else gi=typeof Ii=="string"?[Ii,Xi,ua,Aa,Va[2]].join(" "):An.precision===2?[ei(Ii),ei(Xi),ei(ua),ei(Aa),Va[2]].join(" "):[ci(Ii),ci(Xi),ci(ua),ci(Aa),Va[2]].join(" ");return gi},co=fn.__private__.getFilters=function(){return on},tc=fn.__private__.putStream=function(An){var gi=(An=An||{}).data||"",Ii=An.filters||co(),Xi=An.alreadyAppliedFilters||[],ua=An.addLength1||!1,Aa=gi.length,Va=An.objectId,Ms=function(jo){return jo};if(mn!==null&&Va===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");mn!==null&&(Ms=Eo.encryptor(Va,0));var xs={};Ii===!0&&(Ii=["FlateEncode"]);var Vs=An.additionalKeyValues||[],Rs=(xs=E.API.processDataByFilters!==void 0?E.API.processDataByFilters(gi,Ii):{data:gi,reverseChain:[]}).reverseChain+(Array.isArray(Xi)?Xi.join(" "):Xi.toString());if(xs.data.length!==0&&(Vs.push({key:"Length",value:xs.data.length}),ua===!0&&Vs.push({key:"Length1",value:Aa})),Rs.length!=0)if(Rs.split("/").length-1==1)Vs.push({key:"Filter",value:Rs});else{Vs.push({key:"Filter",value:"["+Rs+"]"});for(var Qs=0;Qs<Vs.length;Qs+=1)if(Vs[Qs].key==="DecodeParms"){for(var Ro=[],Qo=0;Qo<xs.reverseChain.split("/").length-1;Qo+=1)Ro.push("null");Ro.push(Vs[Qs].value),Vs[Qs].value="["+Ro.join(" ")+"]"}}Cn("<<");for(var Lo=0;Lo<Vs.length;Lo++)Cn("/"+Vs[Lo].key+" "+Vs[Lo].value);Cn(">>"),xs.data.length!==0&&(Cn("stream"),Cn(Ms(xs.data)),Cn("endstream"))},Vc=fn.__private__.putPage=function(An){var gi=An.number,Ii=An.data,Xi=An.objId,ua=An.contentsObjId;ia(Xi,!0),Cn("<</Type /Page"),Cn("/Parent "+An.rootDictionaryObjId+" 0 R"),Cn("/Resources "+An.resourceDictionaryObjId+" 0 R"),Cn("/MediaBox ["+parseFloat(oi(An.mediaBox.bottomLeftX))+" "+parseFloat(oi(An.mediaBox.bottomLeftY))+" "+oi(An.mediaBox.topRightX)+" "+oi(An.mediaBox.topRightY)+"]"),An.cropBox!==null&&Cn("/CropBox ["+oi(An.cropBox.bottomLeftX)+" "+oi(An.cropBox.bottomLeftY)+" "+oi(An.cropBox.topRightX)+" "+oi(An.cropBox.topRightY)+"]"),An.bleedBox!==null&&Cn("/BleedBox ["+oi(An.bleedBox.bottomLeftX)+" "+oi(An.bleedBox.bottomLeftY)+" "+oi(An.bleedBox.topRightX)+" "+oi(An.bleedBox.topRightY)+"]"),An.trimBox!==null&&Cn("/TrimBox ["+oi(An.trimBox.bottomLeftX)+" "+oi(An.trimBox.bottomLeftY)+" "+oi(An.trimBox.topRightX)+" "+oi(An.trimBox.topRightY)+"]"),An.artBox!==null&&Cn("/ArtBox ["+oi(An.artBox.bottomLeftX)+" "+oi(An.artBox.bottomLeftY)+" "+oi(An.artBox.topRightX)+" "+oi(An.artBox.topRightY)+"]"),typeof An.userUnit=="number"&&An.userUnit!==1&&Cn("/UserUnit "+An.userUnit),js.publish("putPage",{objId:Xi,pageContext:ws[gi],pageNumber:gi,page:Ii}),Cn("/Contents "+ua+" 0 R"),Cn(">>"),Cn("endobj");var Aa=Ii.join(`
6`);return ni===Rn&&(Aa+=`
7Q`),ia(ua,!0),tc({data:Aa,filters:co(),objectId:ua}),Cn("endobj"),Xi},Yo=fn.__private__.putPages=function(){var An,gi,Ii=[];for(An=1;An<=cs;An++)ws[An].objId=ls(),ws[An].contentsObjId=ls();for(An=1;An<=cs;An++)Ii.push(Vc({number:An,data:ea[An],objId:ws[An].objId,contentsObjId:ws[An].contentsObjId,mediaBox:ws[An].mediaBox,cropBox:ws[An].cropBox,bleedBox:ws[An].bleedBox,trimBox:ws[An].trimBox,artBox:ws[An].artBox,userUnit:ws[An].userUnit,rootDictionaryObjId:us,resourceDictionaryObjId:as}));ia(us,!0),Cn("<</Type /Pages");var Xi="/Kids [";for(gi=0;gi<cs;gi++)Xi+=Ii[gi]+" 0 R ";Cn(Xi+"]"),Cn("/Count "+cs),Cn(">>"),Cn("endobj"),js.publish("postPutPages")},uc=function(An){js.publish("putFont",{font:An,out:Cn,newObject:ho,putStream:tc}),An.isAlreadyPutted!==!0&&(An.objectNumber=ho(),Cn("<<"),Cn("/Type /Font"),Cn("/BaseFont /"+j(An.postScriptName)),Cn("/Subtype /Type1"),typeof An.encoding=="string"&&Cn("/Encoding /"+An.encoding),Cn("/FirstChar 32"),Cn("/LastChar 255"),Cn(">>"),Cn("endobj"))},vu=function(An){An.objectNumber=ho();var gi=[];gi.push({key:"Type",value:"/XObject"}),gi.push({key:"Subtype",value:"/Form"}),gi.push({key:"BBox",value:"["+[oi(An.x),oi(An.y),oi(An.x+An.width),oi(An.y+An.height)].join(" ")+"]"}),gi.push({key:"Matrix",value:"["+An.matrix.toString()+"]"});var Ii=An.pages[1].join(`
8`);tc({data:Ii,additionalKeyValues:gi,objectId:An.objectNumber}),Cn("endobj")},nc=function(An,gi){gi||(gi=21);var Ii=ho(),Xi=(function(Va,Ms){var xs,Vs=[],Rs=1/(Ms-1);for(xs=0;xs<1;xs+=Rs)Vs.push(xs);if(Vs.push(1),Va[0].offset!=0){var Qs={offset:0,color:Va[0].color};Va.unshift(Qs)}if(Va[Va.length-1].offset!=1){var Ro={offset:1,color:Va[Va.length-1].color};Va.push(Ro)}for(var Qo="",Lo=0,jo=0;jo<Vs.length;jo++){for(xs=Vs[jo];xs>Va[Lo+1].offset;)Lo++;var zo=Va[Lo].offset,dc=(xs-zo)/(Va[Lo+1].offset-zo),Uc=Va[Lo].color,_c=Va[Lo+1].color;Qo+=yi(Math.round((1-dc)*Uc[0]+dc*_c[0]).toString(16))+yi(Math.round((1-dc)*Uc[1]+dc*_c[1]).toString(16))+yi(Math.round((1-dc)*Uc[2]+dc*_c[2]).toString(16))}return Qo.trim()})(An.colors,gi),ua=[];ua.push({key:"FunctionType",value:"0"}),ua.push({key:"Domain",value:"[0.0 1.0]"}),ua.push({key:"Size",value:"["+gi+"]"}),ua.push({key:"BitsPerSample",value:"8"}),ua.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ua.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),tc({data:Xi,additionalKeyValues:ua,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Ii}),Cn("endobj"),An.objectNumber=ho(),Cn("<< /ShadingType "+An.type),Cn("/ColorSpace /DeviceRGB");var Aa="/Coords ["+oi(parseFloat(An.coords[0]))+" "+oi(parseFloat(An.coords[1]))+" ";An.type===2?Aa+=oi(parseFloat(An.coords[2]))+" "+oi(parseFloat(An.coords[3])):Aa+=oi(parseFloat(An.coords[2]))+" "+oi(parseFloat(An.coords[3]))+" "+oi(parseFloat(An.coords[4]))+" "+oi(parseFloat(An.coords[5])),Cn(Aa+="]"),An.matrix&&Cn("/Matrix ["+An.matrix.toString()+"]"),Cn("/Function "+Ii+" 0 R"),Cn("/Extend [true true]"),Cn(">>"),Cn("endobj")},Tc=function(An,gi){var Ii=ls(),Xi=ho();gi.push({resourcesOid:Ii,objectOid:Xi}),An.objectNumber=Xi;var ua=[];ua.push({key:"Type",value:"/Pattern"}),ua.push({key:"PatternType",value:"1"}),ua.push({key:"PaintType",value:"1"}),ua.push({key:"TilingType",value:"1"}),ua.push({key:"BBox",value:"["+An.boundingBox.map(oi).join(" ")+"]"}),ua.push({key:"XStep",value:oi(An.xStep)}),ua.push({key:"YStep",value:oi(An.yStep)}),ua.push({key:"Resources",value:Ii+" 0 R"}),An.matrix&&ua.push({key:"Matrix",value:"["+An.matrix.toString()+"]"}),tc({data:An.stream,additionalKeyValues:ua,objectId:An.objectNumber}),Cn("endobj")},Ku=function(An){for(var gi in An.objectNumber=ho(),Cn("<<"),An)switch(gi){case"opacity":Cn("/ca "+ei(An[gi]));break;case"stroke-opacity":Cn("/CA "+ei(An[gi]))}Cn(">>"),Cn("endobj")},Jd=function(An){ia(An.resourcesOid,!0),Cn("<<"),Cn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var gi in Cn("/Font <<"),$s)$s.hasOwnProperty(gi)&&(gn===!1||gn===!0&&yn.hasOwnProperty(gi))&&Cn("/"+gi+" "+$s[gi].objectNumber+" 0 R");Cn(">>")})(),(function(){if(Object.keys(ps).length>0){for(var gi in Cn("/Shading <<"),ps)ps.hasOwnProperty(gi)&&ps[gi]instanceof M&&ps[gi].objectNumber>=0&&Cn("/"+gi+" "+ps[gi].objectNumber+" 0 R");js.publish("putShadingPatternDict"),Cn(">>")}})(),(function(gi){if(Object.keys(ps).length>0){for(var Ii in Cn("/Pattern <<"),ps)ps.hasOwnProperty(Ii)&&ps[Ii]instanceof fn.TilingPattern&&ps[Ii].objectNumber>=0&&ps[Ii].objectNumber<gi&&Cn("/"+Ii+" "+ps[Ii].objectNumber+" 0 R");js.publish("putTilingPatternDict"),Cn(">>")}})(An.objectOid),(function(){if(Object.keys(bs).length>0){var gi;for(gi in Cn("/ExtGState <<"),bs)bs.hasOwnProperty(gi)&&bs[gi].objectNumber>=0&&Cn("/"+gi+" "+bs[gi].objectNumber+" 0 R");js.publish("putGStateDict"),Cn(">>")}})(),(function(){for(var gi in Cn("/XObject <<"),Jo)Jo.hasOwnProperty(gi)&&Jo[gi].objectNumber>=0&&Cn("/"+gi+" "+Jo[gi].objectNumber+" 0 R");js.publish("putXobjectDict"),Cn(">>")})(),Cn(">>"),Cn("endobj")},ch=function(An){Ps[An.fontName]=Ps[An.fontName]||{},Ps[An.fontName][An.fontStyle]=An.id},uh=function(An,gi,Ii,Xi,ua){var Aa={id:"F"+(Object.keys($s).length+1).toString(10),postScriptName:An,fontName:gi,fontStyle:Ii,encoding:Xi,isStandardFont:ua||!1,metadata:{}};return js.publish("addFont",{font:Aa,instance:this}),$s[Aa.id]=Aa,ch(Aa),Aa.id},Es=fn.__private__.pdfEscape=fn.pdfEscape=function(An,gi){return(function(Ii,Xi){var ua,Aa,Va,Ms,xs,Vs,Rs,Qs,Ro;if(Va=(Xi=Xi||{}).sourceEncoding||"Unicode",xs=Xi.outputEncoding,(Xi.autoencode||xs)&&$s[rs].metadata&&$s[rs].metadata[Va]&&$s[rs].metadata[Va].encoding&&(Ms=$s[rs].metadata[Va].encoding,!xs&&$s[rs].encoding&&(xs=$s[rs].encoding),!xs&&Ms.codePages&&(xs=Ms.codePages[0]),typeof xs=="string"&&(xs=Ms[xs]),xs)){for(Rs=!1,Vs=[],ua=0,Aa=Ii.length;ua<Aa;ua++)(Qs=xs[Ii.charCodeAt(ua)])?Vs.push(String.fromCharCode(Qs)):Vs.push(Ii[ua]),Vs[ua].charCodeAt(0)>>8&&(Rs=!0);Ii=Vs.join("")}for(ua=Ii.length;Rs===void 0&&ua!==0;)Ii.charCodeAt(ua-1)>>8&&(Rs=!0),ua--;if(!Rs)return Ii;for(Vs=Xi.noBOM?[]:[254,255],ua=0,Aa=Ii.length;ua<Aa;ua++){if((Ro=(Qs=Ii.charCodeAt(ua))>>8)>>8)throw new Error("Character at position "+ua+" of string '"+Ii+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Vs.push(Ro),Vs.push(Qs-(Ro<<8))}return String.fromCharCode.apply(void 0,Vs)})(An,gi).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$u=fn.__private__.beginPage=function(An){ea[++cs]=[],ws[cs]={objId:0,contentsObjId:0,userUnit:Number(sn),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(An[0]),topRightY:Number(An[1])}},dd(cs),ui(ea[Si])},xd=function(An,gi){var Ii,Xi,ua;switch(tn=gi||tn,typeof An=="string"&&(Ii=xn(An.toLowerCase()),Array.isArray(Ii)&&(Xi=Ii[0],ua=Ii[1])),Array.isArray(An)&&(Xi=An[0]*Xa,ua=An[1]*Xa),isNaN(Xi)&&(Xi=an[0],ua=an[1]),(Xi>14400||ua>14400)&&(o$2.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Xi=Math.min(14400,Xi),ua=Math.min(14400,ua)),an=[Xi,ua],tn.substr(0,1)){case"l":ua>Xi&&(an=[ua,Xi]);break;case"p":Xi>ua&&(an=[ua,Xi])}$u(an),ss(fd),Cn(ed),Fu!==0&&Cn(Fu+" J"),Pd!==0&&Cn(Pd+" j"),js.publish("addPage",{pageNumber:cs})},tu=function(An){An>0&&An<=cs&&(ea.splice(An,1),ws.splice(An,1),cs--,Si>cs&&(Si=cs),this.setPage(Si))},dd=function(An){An>0&&An<=cs&&(Si=An)},Xd=fn.__private__.getNumberOfPages=fn.getNumberOfPages=function(){return ea.length-1},Ju=function(An,gi,Ii){var Xi,ua=void 0;return Ii=Ii||{},An=An!==void 0?An:$s[rs].fontName,gi=gi!==void 0?gi:$s[rs].fontStyle,Xi=An.toLowerCase(),Ps[Xi]!==void 0&&Ps[Xi][gi]!==void 0?ua=Ps[Xi][gi]:Ps[An]!==void 0&&Ps[An][gi]!==void 0?ua=Ps[An][gi]:Ii.disableWarning===!1&&o$2.warn("Unable to look up font label for font '"+An+"', '"+gi+"'. Refer to getFontList() for available fonts."),ua||Ii.noFallback||(ua=Ps.times[gi])==null&&(ua=Ps.times.normal),ua},Us=fn.__private__.putInfo=function(){var An=ho(),gi=function(Xi){return Xi};for(var Ii in mn!==null&&(gi=Eo.encryptor(An,0)),Cn("<<"),Cn("/Producer ("+Es(gi("jsPDF "+E.version))+")"),vs)vs.hasOwnProperty(Ii)&&vs[Ii]&&Cn("/"+Ii.substr(0,1).toUpperCase()+Ii.substr(1)+" ("+Es(gi(vs[Ii]))+")");Cn("/CreationDate ("+Es(gi(Ci))+")"),Cn(">>"),Cn("endobj")},bo=fn.__private__.putCatalog=function(An){var gi=(An=An||{}).rootDictionaryObjId||us;switch(ho(),Cn("<<"),Cn("/Type /Catalog"),Cn("/Pages "+gi+" 0 R"),ha||(ha="fullwidth"),ha){case"fullwidth":Cn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Cn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Cn("/OpenAction [3 0 R /Fit]");break;case"original":Cn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Ii=""+ha;Ii.substr(Ii.length-1)==="%"&&(ha=parseInt(ha)/100),typeof ha=="number"&&Cn("/OpenAction [3 0 R /XYZ null null "+ei(ha)+"]")}switch(pa||(pa="continuous"),pa){case"continuous":Cn("/PageLayout /OneColumn");break;case"single":Cn("/PageLayout /SinglePage");break;case"two":case"twoleft":Cn("/PageLayout /TwoColumnLeft");break;case"tworight":Cn("/PageLayout /TwoColumnRight")}Bi&&Cn("/PageMode /"+Bi),js.publish("putCatalog"),Cn(">>"),Cn("endobj")},Sd=fn.__private__.putTrailer=function(){Cn("trailer"),Cn("<<"),Cn("/Size "+(Hi+1)),Cn("/Root "+Hi+" 0 R"),Cn("/Info "+(Hi-1)+" 0 R"),mn!==null&&Cn("/Encrypt "+Eo.oid+" 0 R"),Cn("/ID [ <"+ji+"> <"+ji+"> ]"),Cn(">>")},Bo=fn.__private__.putHeader=function(){Cn("%PDF-"+bn),Cn("%ºß¬à")},nu=fn.__private__.putXRef=function(){var An="0000000000";Cn("xref"),Cn("0 "+(Hi+1)),Cn("0000000000 65535 f ");for(var gi=1;gi<=Hi;gi++)typeof Ui[gi]=="function"?Cn((An+Ui[gi]()).slice(-10)+" 00000 n "):Ui[gi]!==void 0?Cn((An+Ui[gi]).slice(-10)+" 00000 n "):Cn("0000000000 00000 n ")},Dc=fn.__private__.buildDocument=function(){var An;Hi=0,Oi=0,Ji=[],Ui=[],Ei=[],us=ls(),as=ls(),ui(Ji),js.publish("buildDocument"),Bo(),Yo(),(function(){js.publish("putAdditionalObjects");for(var Ii=0;Ii<Ei.length;Ii++){var Xi=Ei[Ii];ia(Xi.objId,!0),Cn(Xi.content),Cn("endobj")}js.publish("postPutAdditionalObjects")})(),An=[],(function(){for(var Ii in $s)$s.hasOwnProperty(Ii)&&(gn===!1||gn===!0&&yn.hasOwnProperty(Ii))&&uc($s[Ii])})(),(function(){var Ii;for(Ii in bs)bs.hasOwnProperty(Ii)&&Ku(bs[Ii])})(),(function(){for(var Ii in Jo)Jo.hasOwnProperty(Ii)&&vu(Jo[Ii])})(),(function(Ii){var Xi;for(Xi in ps)ps.hasOwnProperty(Xi)&&(ps[Xi]instanceof M?nc(ps[Xi]):ps[Xi]instanceof q&&Tc(ps[Xi],Ii))})(An),js.publish("putResources"),An.forEach(Jd),Jd({resourcesOid:as,objectOid:Number.MAX_SAFE_INTEGER}),js.publish("postPutResources"),mn!==null&&(Eo.oid=ho(),Cn("<<"),Cn("/Filter /Standard"),Cn("/V "+Eo.v),Cn("/R "+Eo.r),Cn("/U <"+Eo.toHexString(Eo.U)+">"),Cn("/O <"+Eo.toHexString(Eo.O)+">"),Cn("/P "+Eo.P),Cn(">>"),Cn("endobj")),Us(),bo();var gi=Oi;return nu(),Sd(),Cn("startxref"),Cn(""+gi),Cn("%%EOF"),ui(ea[Si]),Ji.join(`
9`)},Hs=fn.__private__.getBlob=function(An){return new Blob([Zi(An)],{type:"application/pdf"})},$o=fn.output=fn.__private__.output=(Vo=function(An,gi){switch(typeof(gi=gi||{})=="string"?gi={filename:gi}:gi.filename=gi.filename||"generated.pdf",An){case void 0:return Dc();case"save":fn.save(gi.filename);break;case"arraybuffer":return Zi(Dc());case"blob":return Hs(Dc());case"bloburi":case"bloburl":if(i$2.URL!==void 0&&typeof i$2.URL.createObjectURL=="function")return i$2.URL&&i$2.URL.createObjectURL(Hs(Dc()))||void 0;o$2.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Ii="",Xi=Dc();try{Ii=d(Xi)}catch{Ii=d(unescape(encodeURIComponent(Xi)))}return"data:application/pdf;filename="+gi.filename+";base64,"+Ii;case"pdfobjectnewwindow":if(Object.prototype.toString.call(i$2)==="[object Window]"){var ua="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Aa=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';gi.pdfObjectUrl&&(ua=gi.pdfObjectUrl,Aa="");var Va='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+ua+'"'+Aa+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(gi)+");<\/script></body></html>",Ms=i$2.open();return Ms!==null&&Ms.document.write(Va),Ms}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(i$2)==="[object Window]"){var xs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(gi.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+gi.filename+'" width="500px" height="400px" /></body></html>',Vs=i$2.open();if(Vs!==null){Vs.document.write(xs);var Rs=this;Vs.document.documentElement.querySelector("#pdfViewer").onload=function(){Vs.document.title=gi.filename,Vs.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Rs.output("bloburl"))}}return Vs}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(i$2)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Qs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",gi)+'"></iframe></body></html>',Ro=i$2.open();if(Ro!==null&&(Ro.document.write(Qs),Ro.document.title=gi.filename),Ro||typeof safari>"u")return Ro;break;case"datauri":case"dataurl":return i$2.document.location.href=this.output("datauristring",gi);default:return null}},Vo.foo=function(){try{return Vo.apply(this,arguments)}catch(Ii){var An=Ii.stack||"";~An.indexOf(" at ")&&(An=An.split(" at ")[1]);var gi="Error in function "+An.split(`
10`)[0].split("<")[0]+": "+Ii.message;if(!i$2.console)throw new Error(gi);i$2.console.error(gi,Ii),i$2.alert&&alert(gi)}},Vo.foo.bar=Vo,Vo.foo),Pc=function(An){return Array.isArray(Ma)===!0&&Ma.indexOf(An)>-1};switch(nn){case"pt":Xa=1;break;case"mm":Xa=72/25.4;break;case"cm":Xa=72/2.54;break;case"in":Xa=72;break;case"px":Xa=Pc("px_scaling")==1?.75:96/72;break;case"pc":case"em":Xa=12;break;case"ex":Xa=6;break;default:if(typeof nn!="number")throw new Error("Invalid unit: "+nn);Xa=nn}var Eo=null;Wi(),Pi();var Xo=fn.__private__.getPageInfo=fn.getPageInfo=function(An){if(isNaN(An)||An%1!=0)throw new Error("Invalid argument passed to 
10jsPDF.getPageInfo");return{objId:ws[An].objId,pageNumber:An,pageContext:ws[An]}},Hc=fn.__private__.getPageInfoByObjId=function(An){if(isNaN(An)||An%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var gi in ws)if(ws[gi].objId===An)break;return Xo(gi)},jc=fn.__private__.getCurrentPageInfo=fn.getCurrentPageInfo=function(){return{objId:ws[Si].objId,pageNumber:Si,pageContext:ws[Si]}};fn.addPage=function(){return xd.apply(this,arguments),this},fn.setPage=function(){return dd.apply(this,arguments),ui.call(this,ea[Si]),this},fn.insertPage=function(An){return this.addPage(),this.movePage(Si,An),this},fn.movePage=function(An,gi){var Ii,Xi;if(An>gi){Ii=ea[An],Xi=ws[An];for(var ua=An;ua>gi;ua--)ea[ua]=ea[ua-1],ws[ua]=ws[ua-1];ea[gi]=Ii,ws[gi]=Xi,this.setPage(gi)}else if(An<gi){Ii=ea[An],Xi=ws[An];for(var Aa=An;Aa<gi;Aa++)ea[Aa]=ea[Aa+1],ws[Aa]=ws[Aa+1];ea[gi]=Ii,ws[gi]=Xi,this.setPage(gi)}return this},fn.deletePage=function(){return tu.apply(this,arguments),this},fn.__private__.text=fn.text=function(An,gi,Ii,Xi,ua){var Aa,Va,Ms,xs,Vs,Rs,Qs,Ro,Qo,Lo=(Xi=Xi||{}).scope||this;if(typeof An=="number"&&typeof gi=="number"&&(typeof Ii=="string"||Array.isArray(Ii))){var jo=Ii;Ii=gi,gi=An,An=jo}if(arguments[3]instanceof fs==0?(Ms=arguments[4],xs=arguments[5],_typeof$1(Qs=arguments[3])==="object"&&Qs!==null||(typeof Ms=="string"&&(xs=Ms,Ms=null),typeof Qs=="string"&&(xs=Qs,Qs=null),typeof Qs=="number"&&(Ms=Qs,Qs=null),Xi={flags:Qs,angle:Ms,align:xs})):(si("The transform parameter of text() with a Matrix value"),Qo=ua),isNaN(gi)||isNaN(Ii)||An==null)throw new Error("Invalid arguments passed to jsPDF.text");if(An.length===0)return Lo;var zo,dc="",Uc=typeof Xi.lineHeightFactor=="number"?Xi.lineHeightFactor:ku,_c=Lo.internal.scaleFactor;function Hu(_o){return _o=_o.split("	").join(Array(Xi.TabLen||9).join(" ")),Es(_o,Qs)}function lu(_o){for(var xo,qo=_o.concat(),Gs=[],Go=qo.length;Go--;)typeof(xo=qo.shift())=="string"?Gs.push(xo):Array.isArray(_o)&&(xo.length===1||xo[1]===void 0&&xo[2]===void 0)?Gs.push(xo[0]):Gs.push([xo[0],xo[1],xo[2]]);return Gs}function pc(_o,xo){var qo;if(typeof _o=="string")qo=xo(_o)[0];else if(Array.isArray(_o)){for(var Gs,Go,wc=_o.concat(),Uu=[],Bd=wc.length;Bd--;)typeof(Gs=wc.shift())=="string"?Uu.push(xo(Gs)[0]):Array.isArray(Gs)&&typeof Gs[0]=="string"&&(Go=xo(Gs[0],Gs[1],Gs[2]),Uu.push([Go[0],Go[1],Go[2]]));qo=Uu}return qo}var ic=!1,id=!0;if(typeof An=="string")ic=!0;else if(Array.isArray(An)){var cu=An.concat();Va=[];for(var Mu,Io=cu.length;Io--;)(typeof(Mu=cu.shift())!="string"||Array.isArray(Mu)&&typeof Mu[0]!="string")&&(id=!1);ic=id}if(ic===!1)throw new Error('Type of text must be string or Array. "'+An+'" is not recognized.');typeof An=="string"&&(An=An.match(/[\r?\n]/)?An.split(/\r\n|\r|\n/g):[An]);var pd=Ri/Lo.internal.scaleFactor,gd=pd*(Uc-1);switch(Xi.baseline){case"bottom":Ii-=gd;break;case"top":Ii+=pd-gd;break;case"hanging":Ii+=pd-2*gd;break;case"middle":Ii+=pd/2-gd}if((Rs=Xi.maxWidth||0)>0&&(typeof An=="string"?An=Lo.splitTextToSize(An,Rs):Object.prototype.toString.call(An)==="[object Array]"&&(An=An.reduce(function(_o,xo){return _o.concat(Lo.splitTextToSize(xo,Rs))},[]))),Aa={text:An,x:gi,y:Ii,options:Xi,mutex:{pdfEscape:Es,activeFontKey:rs,fonts:$s,activeFontSize:Ri}},js.publish("preProcessText",Aa),An=Aa.text,Ms=(Xi=Aa.options).angle,Qo instanceof fs==0&&Ms&&typeof Ms=="number"){Ms*=Math.PI/180,Xi.rotationDirection===0&&(Ms=-Ms),ni===Rn&&(Ms=-Ms);var Cd=Math.cos(Ms),rh=Math.sin(Ms);Qo=new fs(Cd,rh,-rh,Cd,0,0)}else Ms&&Ms instanceof fs&&(Qo=Ms);ni!==Rn||Qo||(Qo=kc),(Vs=Xi.charSpace||bu)!==void 0&&(dc+=oi(di(Vs))+` Tc
11`,this.setCharSpace(this.getCharSpace()||0)),(Ro=Xi.horizontalScale)!==void 0&&(dc+=oi(100*Ro)+` Tz
12`),Xi.lang;var To=-1,Nc=Xi.renderingMode!==void 0?Xi.renderingMode:Xi.stroke,ad=Lo.internal.getCurrentPageInfo().pageContext;switch(Nc){case 0:case!1:case"fill":To=0;break;case 1:case!0:case"stroke":To=1;break;case 2:case"fillThenStroke":To=2;break;case 3:case"invisible":To=3;break;case 4:case"fillAndAddForClipping":To=4;break;case 5:case"strokeAndAddPathForClipping":To=5;break;
vendor: 90,182 bytes, lines 12-43
12case 6:case"fillThenStrokeAndAddToPathForClipping":To=6;break;case 7:case"addToPathForClipping":To=7}var Ds=ad.usedRenderingMode!==void 0?ad.usedRenderingMode:-1;To!==-1?dc+=To+` Tr
13`:Ds!==-1&&(dc+=`0 Tr
14`),To!==-1&&(ad.usedRenderingMode=To),xs=Xi.align||"left";var qc,Gc=Ri*Uc,yd=Lo.internal.pageSize.getWidth(),ju=$s[rs];Vs=Xi.charSpace||bu,Rs=Xi.maxWidth||0,Qs=Object.assign({autoencode:!0,noBOM:!0},Xi.flags);var zu=[],Lu=function(_o){return Lo.getStringUnitWidth(_o,{font:ju,charSpace:Vs,fontSize:Ri,doKerning:!1})*Ri/_c};if(Object.prototype.toString.call(An)==="[object Array]"){var Wo;Va=lu(An),xs!=="left"&&(qc=Va.map(Lu));var Zl,uu=0;if(xs==="right"){gi-=qc[0],An=[],Io=Va.length;for(var Wu=0;Wu<Io;Wu++)Wu===0?(Zl=iu(gi),Wo=au(Ii)):(Zl=di(uu-qc[Wu]),Wo=-Gc),An.push([Va[Wu],Zl,Wo]),uu=qc[Wu]}else if(xs==="center"){gi-=qc[0]/2,An=[],Io=Va.length;for(var vc=0;vc<Io;vc++)vc===0?(Zl=iu(gi),Wo=au(Ii)):(Zl=di((uu-qc[vc])/2),Wo=-Gc),An.push([Va[vc],Zl,Wo]),uu=qc[vc]}else if(xs==="left"){An=[],Io=Va.length;for(var du=0;du<Io;du++)An.push(Va[du])}else if(xs==="justify"&&ju.encoding==="Identity-H"){An=[],Io=Va.length,Rs=Rs!==0?Rs:yd;for(var hc=0,Uo=0;Uo<Io;Uo++)if(Wo=Uo===0?au(Ii):-Gc,Zl=Uo===0?iu(gi):hc,Uo<Io-1){var hu=di((Rs-qc[Uo])/(Va[Uo].split(" ").length-1)),xu=Va[Uo].split(" ");An.push([xu[0]+" ",Zl,Wo]),hc=0;for(var Ho=1;Ho<xu.length;Ho++){var Zc=(Lu(xu[Ho-1]+" "+xu[Ho])-Lu(xu[Ho]))*_c+hu;Ho==xu.length-1?An.push([xu[Ho],Zc,0]):An.push([xu[Ho]+" ",Zc,0]),hc-=Zc}}else An.push([Va[Uo],Zl,Wo]);An.push(["",hc,0])}else{if(xs!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(An=[],Io=Va.length,Rs=Rs!==0?Rs:yd,Uo=0;Uo<Io;Uo++){Wo=Uo===0?au(Ii):-Gc,Zl=Uo===0?iu(gi):0;var Su=Va[Uo].split(" ").length-1,vd=Su>0?(Rs-qc[Uo])/Su:0;Uo<Io-1?zu.push(oi(di(vd))):zu.push(0),An.push([Va[Uo],Zl,Wo])}}}(typeof Xi.R2L=="boolean"?Xi.R2L:ca)===!0&&(An=pc(An,function(_o,xo,qo){return[_o.split("").reverse().join(""),xo,qo]})),Aa={text:An,x:gi,y:Ii,options:Xi,mutex:{pdfEscape:Es,activeFontKey:rs,fonts:$s,activeFontSize:Ri}},js.publish("postProcessText",Aa),An=Aa.text,zo=Aa.mutex.isHex||!1;var sd=$s[rs].encoding;sd!=="WinAnsiEncoding"&&sd!=="StandardEncoding"||(An=pc(An,function(_o,xo,qo){return[Hu(_o),xo,qo]})),Va=lu(An),An=[];for(var Tu,fu,Ec,Du=Array.isArray(Va[0])?1:0,Pu="",od=function(_o,xo,qo){var Gs="";return qo instanceof fs?(qo=typeof Xi.angle=="number"?os(qo,new fs(1,0,0,1,_o,xo)):os(new fs(1,0,0,1,_o,xo),qo),ni===Rn&&(qo=os(new fs(1,0,0,-1,0,0),qo)),Gs=qo.join(" ")+` Tm
15`):Gs=oi(_o)+" "+oi(xo)+` Td
16`,Gs},Kc=0;Kc<Va.length;Kc++){switch(Pu="",Du){case 1:Ec=(zo?"<":"(")+Va[Kc][0]+(zo?">":")"),Tu=parseFloat(Va[Kc][1]),fu=parseFloat(Va[Kc][2]);break;case 0:Ec=(zo?"<":"(")+Va[Kc]+(zo?">":")"),Tu=iu(gi),fu=au(Ii)}zu!==void 0&&zu[Kc]!==void 0&&(Pu=zu[Kc]+` Tw
17`),Kc===0?An.push(Pu+od(Tu,fu,Qo)+Ec):Du===0?An.push(Pu+Ec):Du===1&&An.push(Pu+od(Tu,fu,Qo)+Ec)}An=Du===0?An.join(` Tj
18T* `):An.join(` Tj
19`),An+=` Tj
20`;var Oc=`BT
21/`;return Oc+=rs+" "+Ri+` Tf
22`,Oc+=oi(Ri*Uc)+` TL
23`,Oc+=Oo+`
24`,Oc+=dc,Oc+=An,Cn(Oc+="ET"),yn[rs]=!0,Lo};var ru=fn.__private__.clip=fn.clip=function(An){return Cn(An==="evenodd"?"W*":"W"),this};fn.clipEvenOdd=function(){return ru("evenodd")},fn.__private__.discardPath=fn.discardPath=function(){return Cn("n"),this};var no=fn.__private__.isValidStyle=function(An){var gi=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(An)!==-1&&(gi=!0),gi};fn.__private__.setDefaultPathOperation=fn.setDefaultPathOperation=function(An){return no(An)&&(hn=An),this};var Co=fn.__private__.getStyle=fn.getStyle=function(An){var gi=hn;switch(An){case"D":case"S":gi="S";break;case"F":gi="f";break;case"FD":case"DF":gi="B";break;case"f":case"f*":case"B":case"B*":gi=An}return gi},Xu=fn.close=function(){return Cn("h"),this};fn.stroke=function(){return Cn("S"),this},fn.fill=function(An){return wu("f",An),this},fn.fillEvenOdd=function(An){return wu("f*",An),this},fn.fillStroke=function(An){return wu("B",An),this},fn.fillStrokeEvenOdd=function(An){return wu("B*",An),this};var wu=function(An,gi){_typeof$1(gi)==="object"?Qd(gi,An):Cn(An)},Eu=function(An){An===null||ni===Rn&&An===void 0||(An=Co(An),Cn(An))};function hd(An,gi,Ii,Xi,ua){var Aa=new q(gi||this.boundingBox,Ii||this.xStep,Xi||this.yStep,this.gState,ua||this.matrix);Aa.stream=this.stream;var Va=An+"$$"+this.cloneIndex+++"$$";return ys(Va,Aa),Aa}var Qd=function(An,gi){var Ii=oo[An.key],Xi=ps[Ii];if(Xi instanceof M)Cn("q"),Cn(eh(gi)),Xi.gState&&fn.setGState(Xi.gState),Cn(An.matrix.toString()+" cm"),Cn("/"+Ii+" sh"),Cn("Q");else if(Xi instanceof q){var ua=new fs(1,0,0,-1,0,_d());An.matrix&&(ua=ua.multiply(An.matrix||kc),Ii=hd.call(Xi,An.key,An.boundingBox,An.xStep,An.yStep,ua).id),Cn("q"),Cn("/Pattern cs"),Cn("/"+Ii+" scn"),Xi.gState&&fn.setGState(Xi.gState),Cn(gi),Cn("Q")}},eh=function(An){switch(An){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Qu=fn.moveTo=function(An,gi){return Cn(oi(di(An))+" "+oi(wi(gi))+" m"),this},Td=fn.lineTo=function(An,gi){return Cn(oi(di(An))+" "+oi(wi(gi))+" l"),this},fc=fn.curveTo=function(An,gi,Ii,Xi,ua,Aa){return Cn([oi(di(An)),oi(wi(gi)),oi(di(Ii)),oi(wi(Xi)),oi(di(ua)),oi(wi(Aa)),"c"].join(" ")),this};fn.__private__.line=fn.line=function(An,gi,Ii,Xi,ua){if(isNaN(An)||isNaN(gi)||isNaN(Ii)||isNaN(Xi)||!no(ua))throw new Error("Invalid arguments passed to jsPDF.line");return ni===En?this.lines([[Ii-An,Xi-gi]],An,gi,[1,1],ua||"S"):this.lines([[Ii-An,Xi-gi]],An,gi,[1,1]).stroke()},fn.__private__.lines=fn.lines=function(An,gi,Ii,Xi,ua,Aa){var Va,Ms,xs,Vs,Rs,Qs,Ro,Qo,Lo,jo,zo,dc;if(typeof An=="number"&&(dc=Ii,Ii=gi,gi=An,An=dc),Xi=Xi||[1,1],Aa=Aa||!1,isNaN(gi)||isNaN(Ii)||!Array.isArray(An)||!Array.isArray(Xi)||!no(ua)||typeof Aa!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Qu(gi,Ii),Va=Xi[0],Ms=Xi[1],Vs=An.length,jo=gi,zo=Ii,xs=0;xs<Vs;xs++)(Rs=An[xs]).length===2?(jo=Rs[0]*Va+jo,zo=Rs[1]*Ms+zo,Td(jo,zo)):(Qs=Rs[0]*Va+jo,Ro=Rs[1]*Ms+zo,Qo=Rs[2]*Va+jo,Lo=Rs[3]*Ms+zo,jo=Rs[4]*Va+jo,zo=Rs[5]*Ms+zo,fc(Qs,Ro,Qo,Lo,jo,zo));return Aa&&Xu(),Eu(ua),this},fn.path=function(An){for(var gi=0;gi<An.length;gi++){var Ii=An[gi],Xi=Ii.c;switch(Ii.op){case"m":Qu(Xi[0],Xi[1]);break;case"l":Td(Xi[0],Xi[1]);break;case"c":fc.apply(this,Xi);break;case"h":Xu()}}return this},fn.__private__.rect=fn.rect=function(An,gi,Ii,Xi,ua){if(isNaN(An)||isNaN(gi)||isNaN(Ii)||isNaN(Xi)||!no(ua))throw new Error("Invalid arguments passed to jsPDF.rect");return ni===En&&(Xi=-Xi),Cn([oi(di(An)),oi(wi(gi)),oi(di(Ii)),oi(di(Xi)),"re"].join(" ")),Eu(ua),this},fn.__private__.triangle=fn.triangle=function(An,gi,Ii,Xi,ua,Aa,Va){if(isNaN(An)||isNaN(gi)||isNaN(Ii)||isNaN(Xi)||isNaN(ua)||isNaN(Aa)||!no(Va))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Ii-An,Xi-gi],[ua-Ii,Aa-Xi],[An-ua,gi-Aa]],An,gi,[1,1],Va,!0),this},fn.__private__.roundedRect=fn.roundedRect=function(An,gi,Ii,Xi,ua,Aa,Va){if(isNaN(An)||isNaN(gi)||isNaN(Ii)||isNaN(Xi)||isNaN(ua)||isNaN(Aa)||!no(Va))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ms=4/3*(Math.SQRT2-1);return ua=Math.min(ua,.5*Ii),Aa=Math.min(Aa,.5*Xi),this.lines([[Ii-2*ua,0],[ua*Ms,0,ua,Aa-Aa*Ms,ua,Aa],[0,Xi-2*Aa],[0,Aa*Ms,-ua*Ms,Aa,-ua,Aa],[2*ua-Ii,0],[-ua*Ms,0,-ua,-Aa*Ms,-ua,-Aa],[0,2*Aa-Xi],[0,-Aa*Ms,ua*Ms,-Aa,ua,-Aa]],An+ua,gi,[1,1],Va,!0),this},fn.__private__.ellipse=fn.ellipse=function(An,gi,Ii,Xi,ua){if(isNaN(An)||isNaN(gi)||isNaN(Ii)||isNaN(Xi)||!no(ua))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Aa=4/3*(Math.SQRT2-1)*Ii,Va=4/3*(Math.SQRT2-1)*Xi;return Qu(An+Ii,gi),fc(An+Ii,gi-Va,An+Aa,gi-Xi,An,gi-Xi),fc(An-Aa,gi-Xi,An-Ii,gi-Va,An-Ii,gi),fc(An-Ii,gi+Va,An-Aa,gi+Xi,An,gi+Xi),fc(An+Aa,gi+Xi,An+Ii,gi+Va,An+Ii,gi),Eu(ua),this},fn.__private__.circle=fn.circle=function(An,gi,Ii,Xi){if(isNaN(An)||isNaN(gi)||isNaN(Ii)||!no(Xi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(An,gi,Ii,Ii,Xi)},fn.setFont=function(An,gi,Ii){return Ii&&(gi=_i(gi,Ii)),rs=Ju(An,gi,{disableWarning:!1}),this};var Dd=fn.__private__.getFont=fn.getFont=function(){return $s[Ju.apply(fn,arguments)]};fn.__private__.getFontList=fn.getFontList=function(){var An,gi,Ii={};for(An in Ps)if(Ps.hasOwnProperty(An))for(gi in Ii[An]=[],Ps[An])Ps[An].hasOwnProperty(gi)&&Ii[An].push(gi);return Ii},fn.addFont=function(An,gi,Ii,Xi,ua){var Aa=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Aa.indexOf(arguments[3])!==-1?ua=arguments[3]:arguments[3]&&Aa.indexOf(arguments[3])==-1&&(Ii=_i(Ii,Xi)),uh.call(this,An,gi,Ii,ua=ua||"Identity-H")};var ku,fd=en.lineWidth||.200025,bh=fn.__private__.getLineWidth=fn.getLineWidth=function(){return fd},ss=fn.__private__.setLineWidth=fn.setLineWidth=function(An){return fd=An,Cn(oi(di(An))+" w"),this};fn.__private__.setLineDash=E.API.setLineDash=E.API.setLineDashPattern=function(An,gi){if(An=An||[],gi=gi||0,isNaN(gi)||!Array.isArray(An))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return An=An.map(function(Ii){return oi(di(Ii))}).join(" "),gi=oi(di(gi)),Cn("["+An+"] "+gi+" d"),this};var zc=fn.__private__.getLineHeight=fn.getLineHeight=function(){return Ri*ku};fn.__private__.getLineHeight=fn.getLineHeight=function(){return Ri*ku};var Mo=fn.__private__.setLineHeightFactor=fn.setLineHeightFactor=function(An){return typeof(An=An||1.15)=="number"&&(ku=An),this},dh=fn.__private__.getLineHeightFactor=fn.getLineHeightFactor=function(){return ku};Mo(en.lineHeight);var iu=fn.__private__.getHorizontalCoordinate=function(An){return di(An)},au=fn.__private__.getVerticalCoordinate=function(An){return ni===Rn?An:ws[Si].mediaBox.topRightY-ws[Si].mediaBox.bottomLeftY-di(An)},th=fn.__private__.getHorizontalCoordinateString=fn.getHorizontalCoordinateString=function(An){return oi(iu(An))},Ou=fn.__private__.getVerticalCoordinateString=fn.getVerticalCoordinateString=function(An){return oi(au(An))},ed=en.strokeColor||"0 G";fn.__private__.getStrokeColor=fn.getDrawColor=function(){return Cs(ed)},fn.__private__.setStrokeColor=fn.setDrawColor=function(An,gi,Ii,Xi){return ed=to({ch1:An,ch2:gi,ch3:Ii,ch4:Xi,pdfColorType:"draw",precision:2}),Cn(ed),this};var Ru=en.fillColor||"0 g";fn.__private__.getFillColor=fn.getFillColor=function(){return Cs(Ru)},fn.__private__.setFillColor=fn.setFillColor=function(An,gi,Ii,Xi){return Ru=to({ch1:An,ch2:gi,ch3:Ii,ch4:Xi,pdfColorType:"fill",precision:2}),Cn(Ru),this};var Oo=en.textColor||"0 g",Iu=fn.__private__.getTextColor=fn.getTextColor=function(){return Cs(Oo)};fn.__private__.setTextColor=fn.setTextColor=function(An,gi,Ii,Xi){return Oo=to({ch1:An,ch2:gi,ch3:Ii,ch4:Xi,pdfColorType:"text",precision:3}),this};var bu=en.charSpace,nd=fn.__private__.getCharSpace=fn.getCharSpace=function(){return parseFloat(bu||0)};fn.__private__.setCharSpace=fn.setCharSpace=function(An){if(isNaN(An))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return bu=An,this};var Fu=0;fn.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},fn.__private__.setLineCap=fn.setLineCap=function(An){var gi=fn.CapJoinStyles[An];if(gi===void 0)throw new Error("Line cap style of '"+An+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Fu=gi,Cn(gi+" J"),this};var Pd=0;fn.__private__.setLineJoin=fn.setLineJoin=function(An){var gi=fn.CapJoinStyles[An];if(gi===void 0)throw new Error("Line join style of '"+An+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pd=gi,Cn(gi+" j"),this},fn.__private__.setLineMiterLimit=fn.__private__.setMiterLimit=fn.setLineMiterLimit=fn.setMiterLimit=function(An){if(An=An||0,isNaN(An))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Cn(oi(di(An))+" M"),this},fn.GState=O$1,fn.setGState=function(An){(An=typeof An=="string"?bs[As[An]]:rd(null,An)).equals(ts)||(Cn("/"+An.id+" gs"),ts=An)};var rd=function(An,gi){if(!An||!As[An]){var Ii=!1;for(var Xi in bs)if(bs.hasOwnProperty(Xi)&&bs[Xi].equals(gi)){Ii=!0;break}if(Ii)gi=bs[Xi];else{var ua="GS"+(Object.keys(bs).length+1).toString(10);bs[ua]=gi,gi.id=ua}return An&&(As[An]=gi.id),js.publish("addGState",gi),gi}};fn.addGState=function(An,gi){return rd(An,gi),this},fn.saveGraphicsState=function(){return Cn("q"),Ws.push({key:rs,size:Ri,color:Oo}),this},fn.restoreGraphicsState=function(){Cn("Q");var An=Ws.pop();return rs=An.key,Ri=An.size,Oo=An.color,ts=null,this},fn.setCurrentTransformationMatrix=function(An){return Cn(An.toString()+" cm"),this},fn.comment=function(An){return Cn("#"+An),this};var su=function(An,gi){var Ii=An||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ii},set:function(Aa){isNaN(Aa)||(Ii=parseFloat(Aa))}});var Xi=gi||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Xi},set:function(Aa){isNaN(Aa)||(Xi=parseFloat(Aa))}});var ua="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ua},set:function(Aa){ua=Aa.toString()}}),this},Nd=function(An,gi,Ii,Xi){su.call(this,An,gi),this.type="rect";var ua=Ii||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ua},set:function(Va){isNaN(Va)||(ua=parseFloat(Va))}});var Aa=Xi||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Aa},set:function(Va){isNaN(Va)||(Aa=parseFloat(Va))}}),this},Js=function(){this.page=cs,this.currentPage=Si,this.pages=ea.slice(0),this.pagesContext=ws.slice(0),this.x=_s,this.y=mo,this.matrix=Is,this.width=ou(Si),this.height=Wc(Si),this.outputDestination=ti,this.id="",this.objectNumber=-1};Js.prototype.restore=function(){cs=this.page,Si=this.currentPage,ws=this.pagesContext,ea=this.pages,_s=this.x,mo=this.y,Is=this.matrix,Os(Si,this.width),rc(Si,this.height),ti=this.outputDestination};var nh=function(An,gi,Ii,Xi,ua){ko.push(new Js),cs=Si=0,ea=[],_s=An,mo=gi,Is=ua,$u([Ii,Xi])};for(var mc in fn.beginFormObject=function(An,gi,Ii,Xi,ua){return nh(An,gi,Ii,Xi,ua),this},fn.endFormObject=function(An){return(function(gi){if(eu[gi])ko.pop().restore();else{var Ii=new Js,Xi="Xo"+(Object.keys(Jo).length+1).toString(10);Ii.id=Xi,eu[gi]=Xi,Jo[Xi]=Ii,js.publish("addFormObject",Ii),ko.pop().restore()}})(An),this},fn.doFormObject=function(An,gi){var Ii=Jo[eu[An]];return Cn("q"),Cn(gi.toString()+" cm"),Cn("/"+Ii.id+" Do"),Cn("Q"),this},fn.getFormObject=function(An){var gi=Jo[eu[An]];return{x:gi.x,y:gi.y,width:gi.width,height:gi.height,matrix:gi.matrix}},fn.save=function(An,gi){return An=An||"generated.pdf",(gi=gi||{}).returnPromise=gi.returnPromise||!1,gi.returnPromise===!1?(l$2(Hs(Dc()),An),typeof l$2.unload=="function"&&i$2.setTimeout&&setTimeout(l$2.unload,911),this):new Promise(function(Ii,Xi){try{var ua=l$2(Hs(Dc()),An);typeof l$2.unload=="function"&&i$2.setTimeout&&setTimeout(l$2.unload,911),Ii(ua)}catch(Aa){Xi(Aa.message)}})},E.API)E.API.hasOwnProperty(mc)&&(mc==="events"&&E.API.events.length?(function(An,gi){var Ii,Xi,ua;for(ua=gi.length-1;ua!==-1;ua--)Ii=gi[ua][0],Xi=gi[ua][1],An.subscribe.apply(An,[Ii].concat(typeof Xi=="function"?[Xi]:Xi))})(js,E.API.events):fn[mc]=E.API[mc]);function ou(An){return ws[An].mediaBox.topRightX-ws[An].mediaBox.bottomLeftX}function Os(An,gi){ws[An].mediaBox.topRightX=gi+ws[An].mediaBox.bottomLeftX}function Wc(An){return ws[An].mediaBox.topRightY-ws[An].mediaBox.bottomLeftY}function rc(An,gi){ws[An].mediaBox.topRightY=gi+ws[An].mediaBox.bottomLeftY}var Vu=fn.getPageWidth=function(An){return ou(An=An||Si)/Xa},md=fn.setPageWidth=function(An,gi){Os(An,gi*Xa)},_d=fn.getPageHeight=function(An){return Wc(An=An||Si)/Xa},hh=fn.setPageHeight=function(An,gi){rc(An,gi*Xa)};return fn.internal={pdfEscape:Es,getStyle:Co,getFont:Dd,getFontSize:qi,getCharSpace:nd,getTextColor:Iu,getLineHeight:zc,getLineHeightFactor:dh,getLineWidth:bh,write:ki,getHorizontalCoordinate:iu,getVerticalCoordinate:au,getCoordinateString:th,getVerticalCoordinateString:Ou,collections:{},newObject:ho,newAdditionalObject:Fa,newObjectDeferred:ls,newObjectDeferredBegin:ia,getFilters:co,putStream:tc,events:js,scaleFactor:Xa,pageSize:{getWidth:function(){return Vu(Si)},setWidth:function(An){md(Si,An)},getHeight:function(){return _d(Si)},setHeight:function(An){hh(Si,An)}},encryptionOptions:mn,encryption:Eo,getEncryptor:function(An){return mn!==null?Eo.encryptor(An,0):function(gi){return gi}},output:$o,getNumberOfPages:Xd,get pages(){return ea},out:Cn,f2:ei,f3:ci,getPageInfo:Xo,getPageInfoByObjId:Hc,getCurrentPageInfo:jc,getPDFVersion:Mn,Point:su,Rectangle:Nd,Matrix:fs,hasHotfix:Pc},Object.defineProperty(fn.internal.pageSize,"width",{get:function(){return Vu(Si)},set:function(An){md(Si,An)},enumerable:!0,configurable:!0}),Object.defineProperty(fn.internal.pageSize,"height",{get:function(){return _d(Si)},set:function(An){hh(Si,An)},enumerable:!0,configurable:!0}),(function(An){for(var gi=0,Ii=ta.length;gi<Ii;gi++){var Xi=uh.call(this,An[gi][0],An[gi][1],An[gi][2],ta[gi][3],!0);gn===!1&&(yn[Xi]=!0);var ua=An[gi][0].split("-");ch({id:Xi,fontName:ua[0],fontStyle:ua[1]||""})}js.publish("addFonts",{fonts:$s,dictionary:Ps})}).call(fn,ta),rs="F1",xd(an,tn),js.publish("initialized"),fn}I.prototype.lsbFirstWord=function(en){return String.fromCharCode(255&en,en>>8&255,en>>16&255,en>>24&255)},I.prototype.toHexString=function(en){return en.split("").map(function(He){return("0"+(255&He.charCodeAt(0)).toString(16)).slice(-2)}).join("")},I.prototype.hexToBytes=function(en){for(var He=[],tn=0;tn<en.length;tn+=2)He.push(String.fromCharCode(parseInt(en.substr(tn,2),16)));return He.join("")},I.prototype.processOwnerPassword=function(en,He){return k(S(He).substr(0,5),en)},I.prototype.encryptor=function(en,He){var tn=S(this.encryptionKey+String.fromCharCode(255&en,en>>8&255,en>>16&255,255&He,He>>8&255)).substr(0,10);return function(nn){return k(tn,nn)}},O$1.prototype.equals=function(en){var He,tn="id,objectNumber,equals";if(!en||_typeof$1(en)!==_typeof$1(this))return!1;var nn=0;for(He in this)if(!(tn.indexOf(He)>=0)){if(this.hasOwnProperty(He)&&!en.hasOwnProperty(He)||this[He]!==en[He])return!1;nn++}for(He in en)en.hasOwnProperty(He)&&tn.indexOf(He)<0&&nn--;return nn===0},E.API={events:[]},E.version="4.1.0";var R=E.API,D=1,T$1=function(en){return en.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},z=function(en){return en.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},U=function(en){return en.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(He){var tn=He.charCodeAt(0).toString(16).toUpperCase();return"#"+(tn.length===1?"0"+tn:tn)})},H=function(en){return en.toFixed(2)},W=function(en){return en.toFixed(5)};R.__acroform__={};var V=function(en,He){en.prototype=Object.create(He.prototype),en.prototype.constructor=en},G=function(en){return en*D},Y=function(en){var He=new lt$1,tn=At.internal.getHeight(en)||0,nn=At.internal.getWidth(en)||0;return He.BBox=[0,0,Number(H(nn)),Number(H(tn))],He},J=R.__acroform__.setBit=function(en,He){if(en=en||0,He=He||0,isNaN(en)||isNaN(He))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return en|1<<He},X=R.__acroform__.clearBit=function(en,He){if(en=en||0,He=He||0,isNaN(en)||isNaN(He))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return en&~(1<<He)},K$1=R.__acroform__.getBit=function(en,He){if(isNaN(en)||isNaN(He))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return en&1<<He?1:0},Z=R.__acroform__.getBitForPdf=function(en,He){if(isNaN(en)||isNaN(He))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return K$1(en,He-1)},$=R.__acroform__.setBitForPdf=function(en,He){if(isNaN(en)||isNaN(He))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return J(en,He-1)},Q=R.__acroform__.clearBitForPdf=function(en,He){if(isNaN(en)||isNaN(He))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return X(en,He-1)},tt=R.__acroform__.calculateCoordinates=function(en,He){var tn=He.internal.getHorizontalCoordinate,nn=He.internal.getVerticalCoordinate,an=en[0],rn=en[1],on=en[2],sn=en[3],dn={};return dn.lowerLeft_X=tn(an)||0,dn.lowerLeft_Y=nn(rn+sn)||0,dn.upperRight_X=tn(an+on)||0,dn.upperRight_Y=nn(rn)||0,[Number(H(dn.lowerLeft_X)),Number(H(dn.lowerLeft_Y)),Number(H(dn.upperRight_X)),Number(H(dn.upperRight_Y))]},et=function(en){if(en.appearanceStreamContent)return en.appearanceStreamContent;if(en.V||en.DV){var He=[],tn=en._V||en.DV,nn=rt(en,tn),an=en.scope.internal.getFont(en.fontName,en.fontStyle).id;He.push("/Tx BMC"),He.push("q"),He.push("BT"),He.push(en.scope.__private__.encodeColorString(en.color)),He.push("/"+an+" "+H(nn.fontSize)+" Tf"),He.push("1 0 0 1 0 0 Tm"),He.push(nn.text),He.push("ET"),He.push("Q"),He.push("EMC");var rn=Y(en);return rn.scope=en.scope,rn.stream=He.join(`
25`),rn}},rt=function(en,He){var tn=en.fontSize===0?en.maxFontSize:en.fontSize,nn={text:"",fontSize:""},an=(He=(He=He.substr(0,1)=="("?He.substr(1):He).substr(He.length-1)==")"?He.substr(0,He.length-1):He).split(" ");an=en.multiline?an.map(function(ei){return ei.split(`
26`)}):an.map(function(ei){return[ei]});var rn=tn,on=At.internal.getHeight(en)||0;on=on<0?-on:on;var sn=At.internal.getWidth(en)||0;sn=sn<0?-sn:sn;var dn=function(ei,ci,di){if(ei+1<an.length){var wi=ci+" "+an[ei+1][0];return nt$1(wi,en,di).width<=sn-4}return!1};rn++;e:for(;rn>0;){He="",rn--;var hn,mn,gn=nt$1("3",en,rn).height,yn=en.multiline?on-rn:(on-gn)/2,fn=yn+=2,bn=0,Mn=0,Tn=0;if(rn<=0){He=`(...) Tj
27`,He+="% Width of Text: "+nt$1(He,en,rn=12).width+", FieldWidth:"+sn+`
28`;break}for(var xn="",En=0,Rn=0;Rn<an.length;Rn++)if(an.hasOwnProperty(Rn)){var ni=!1;if(an[Rn].length!==1&&Tn!==an[Rn].length-1){if((gn+2)*(En+2)+2>on)continue e;xn+=an[Rn][Tn],ni=!0,Mn=Rn,Rn--}else{xn=(xn+=an[Rn][Tn]+" ").substr(xn.length-1)==" "?xn.substr(0,xn.length-1):xn;var mi=parseInt(Rn),bi=dn(mi,xn,rn),_i=Rn>=an.length-1;if(bi&&!_i){xn+=" ",Tn=0;continue}if(bi||_i){if(_i)Mn=mi;else if(en.multiline&&(gn+2)*(En+2)+2>on)continue e}else{if(!en.multiline||(gn+2)*(En+2)+2>on)continue e;Mn=mi}}for(var oi="",si=bn;si<=Mn;si++){var fi=an[si];if(en.multiline){if(si===Mn){oi+=fi[Tn]+" ",Tn=(Tn+1)%fi.length;continue}if(si===bn){oi+=fi[fi.length-1]+" ";continue}}oi+=fi[0]+" "}switch(oi=oi.substr(oi.length-1)==" "?oi.substr(0,oi.length-1):oi,mn=nt$1(oi,en,rn).width,en.textAlign){case"right":hn=sn-mn-2;break;case"center":hn=(sn-mn)/2;break;default:hn=2}He+=H(hn)+" "+H(fn)+` Td
29`,He+="("+T$1(oi)+`) Tj
30`,He+=-H(hn)+` 0 Td
31`,fn=-(rn+2),mn=0,bn=ni?Mn:Mn+1,En++,xn=""}break}return nn.text=He,nn.fontSize=rn,nn},nt$1=function(en,He,tn){var nn=He.scope.internal.getFont(He.fontName,He.fontStyle),an=He.scope.getStringUnitWidth(en,{font:nn,fontSize:parseFloat(tn),charSpace:0})*parseFloat(tn);return{height:He.scope.getStringUnitWidth("3",{font:nn,fontSize:parseFloat(tn),charSpace:0})*parseFloat(tn)*1.5,width:an}},it={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},at=function(en,He){var tn={type:"reference",object:en};He.internal.getPageInfo(en.page).pageContext.annotations.find(function(nn){return nn.type===tn.type&&nn.object===tn.object})===void 0&&He.internal.getPageInfo(en.page).pageContext.annotations.push(tn)},ot=function(en,He){if(He.scope=en,en.internal!==void 0&&(en.internal.acroformPlugin===void 0||en.internal.acroformPlugin.isInitialized===!1)){if(ft.FieldNum=0,en.internal.acroformPlugin=JSON.parse(JSON.stringify(it)),en.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");D=en.internal.scaleFactor,en.internal.acroformPlugin.acroFormDictionaryRoot=new ht,en.internal.acroformPlugin.acroFormDictionaryRoot.scope=en,en.internal.acroformPlugin.acroFormDictionaryRoot._eventID=en.internal.events.subscribe("postPutResources",function(){(function(tn){tn.internal.events.unsubscribe(tn.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete tn.internal.acroformPlugin.acroFormDictionaryRoot._eventID,tn.internal.acroformPlugin.printedOut=!0})(en)}),en.internal.events.subscribe("buildDocument",function(){(function(tn){tn.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var nn=tn.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var an in nn)if(nn.hasOwnProperty(an)){var rn=nn[an];rn.objId=void 0,rn.hasAnnotation&&at(rn,tn)}})(en)}),en.internal.events.subscribe("putCatalog",function(){(function(tn){if(tn.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");tn.internal.write("/AcroForm "+tn.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(en)}),en.internal.events.subscribe("postPutPages",function(tn){(function(nn,an){var rn=!nn;for(var on in nn||(an.internal.newObjectDeferredBegin(an.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),an.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),nn=nn||an.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(nn.hasOwnProperty(on)){var sn=nn[on],dn=[],hn=sn.Rect;if(sn.Rect&&(sn.Rect=tt(sn.Rect,an)),an.internal.newObjectDeferredBegin(sn.objId,!0),sn.DA=At.createDefaultAppearanceStream(sn),_typeof$1(sn)==="object"&&typeof sn.getKeyValueListForStream=="function"&&(dn=sn.getKeyValueListForStream()),sn.Rect=hn,sn.hasAppearanceStream&&!sn.appearanceStreamContent){var mn=et(sn);dn.push({key:"AP",value:"<</N "+mn+">>"}),an.internal.acroformPlugin.xForms.push(mn)}if(sn.appearanceStreamContent){var gn="";for(var yn in sn.appearanceStreamContent)if(sn.appearanceStreamContent.hasOwnProperty(yn)){var fn=sn.appearanceStreamContent[yn];if(gn+="/"+yn+" ",gn+="<<",Object.keys(fn).length>=1||Array.isArray(fn)){for(var on in fn)if(fn.hasOwnProperty(on)){var bn=fn[on];typeof bn=="function"&&(bn=bn.call(an,sn)),gn+="/"+on+" "+bn+" ",an.internal.acroformPlugin.xForms.indexOf(bn)>=0||an.internal.acroformPlugin.xForms.push(bn)}}else typeof(bn=fn)=="function"&&(bn=bn.call(an,sn)),gn+="/"+on+" "+bn,an.internal.acroformPlugin.xForms.indexOf(bn)>=0||an.internal.acroformPlugin.xForms.push(bn);gn+=">>"}dn.push({key:"AP",value:`<<
32`+gn+">>"})}an.internal.putStream({additionalKeyValues:dn,objectId:sn.objId}),an.internal.out("endobj")}rn&&(function(Mn,Tn){for(var xn in Mn)if(Mn.hasOwnProperty(xn)){var En=xn,Rn=Mn[xn];Tn.internal.newObjectDeferredBegin(Rn.objId,!0),_typeof$1(Rn)==="object"&&typeof Rn.putStream=="function"&&Rn.putStream(),delete Mn[En]}})(an.internal.acroformPlugin.xForms,an)})(tn,en)}),en.internal.acroformPlugin.isInitialized=!0}},st=R.__acroform__.arrayToPdfArray=function(en,He,tn){var nn=function(on){return on};if(Array.isArray(en)){for(var an="[",rn=0;rn<en.length;rn++)switch(rn!==0&&(an+=" "),_typeof$1(en[rn])){case"boolean":case"number":case"object":an+=en[rn].toString();break;case"string":en[rn].substr(0,1)==="/"?an+="/"+U(en[rn].substr(1)):(He!==void 0&&tn&&(nn=tn.internal.getEncryptor(He)),an+="("+T$1(nn(en[rn].toString()))+")")}return an+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ut=function(en,He,tn){var nn=function(an){return an};return He!==void 0&&tn&&(nn=tn.internal.getEncryptor(He)),(en=en||"").toString(),"("+T$1(nn(en))+")"},ct=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(en){this._objId=en}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ct.prototype.toString=function(){return this.objId+" 0 R"},ct.prototype.putStream=function(){var en=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:en,objectId:this.objId}),this.scope.internal.out("endobj")},ct.prototype.getKeyValueListForStream=function(){var en=[],He=Object.getOwnPropertyNames(this).filter(function(rn){return rn!="content"&&rn!="appearanceStreamContent"&&rn!="scope"&&rn!="objId"&&rn.substring(0,1)!="_"});for(var tn in He)if(Object.getOwnPropertyDescriptor(this,He[tn]).configurable===!1){var nn=He[tn],an=this[nn];an&&(Array.isArray(an)?en.push({key:nn,value:st(an,this.objId,this.scope)}):an instanceof ct?(an.scope=this.scope,en.push({key:nn,value:an.objId+" 0 R"})):typeof an!="function"&&en.push({key:nn,value:an}))}return en};var lt$1=function(){ct.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var en,He=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return He},set:function(tn){He=tn}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(tn){en=tn.trim()},get:function(){return en||null}})};V(lt$1,ct);var ht=function(){ct.call(this);var en,He=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return He.length>0?He:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return He}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(en){var tn=function(nn){return nn};return this.scope&&(tn=this.scope.internal.getEncryptor(this.objId)),"("+T$1(tn(en))+")"}},set:function(tn){en=tn}})};V(ht,ct);var ft=function en(){ct.call(this);var He=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return He},set:function(xn){if(isNaN(xn))throw new Error('Invalid value "'+xn+'" for attribute F supplied.');He=xn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Z(He,3)},set:function(xn){xn?this.F=$(He,3):this.F=Q(He,3)}});var tn=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return tn},set:function(xn){if(isNaN(xn))throw new Error('Invalid value "'+xn+'" for attribute Ff supplied.');tn=xn}});var nn=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(nn.length!==0)return nn},set:function(xn){nn=xn!==void 0?xn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[0])?0:nn[0]},set:function(xn){nn[0]=xn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[1])?0:nn[1]},set:function(xn){nn[1]=xn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[2])?0:nn[2]},set:function(xn){nn[2]=xn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!nn||isNaN(nn[3])?0:nn[3]},set:function(xn){nn[3]=xn}});var an="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return an},set:function(xn){switch(xn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":an=xn;break;default:throw new Error('Invalid value "'+xn+'" for attribute FT supplied.')}}});var rn=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!rn||rn.length<1){if(this instanceof wt)return;rn="FieldObject"+en.FieldNum++}var xn=function(En){return En};return this.scope&&(xn=this.scope.internal.getEncryptor(this.objId)),"("+T$1(xn(rn))+")"},set:function(xn){rn=xn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return rn},set:function(xn){rn=xn}});var on="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return on},set:function(xn){on=xn}});var sn="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return sn},set:function(xn){sn=xn}});var dn=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return dn},set:function(xn){dn=xn}});var hn=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return hn===void 0?50/D:hn},set:function(xn){hn=xn}});var mn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return mn},set:function(xn){mn=xn}});var gn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!gn||this instanceof wt||this instanceof Lt))return ut(gn,this.objId,this.scope)},set:function(xn){xn=xn.toString(),gn=xn}});var yn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(yn)return this instanceof vt==0?ut(yn,this.objId,this.scope):yn},set:function(xn){xn=xn.toString(),yn=this instanceof vt==0?xn.substr(0,1)==="("?z(xn.substr(1,xn.length-2)):z(xn):xn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==1?z(yn.substr(1,yn.length-1)):yn},set:function(xn){xn=xn.toString(),yn=this instanceof vt==1?"/"+U(xn):xn}});var fn=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(fn)return fn},set:function(xn){this.V=xn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(fn)return this instanceof vt==0?ut(fn,this.objId,this.scope):fn},set:function(xn){xn=xn.toString(),fn=this instanceof vt==0?xn.substr(0,1)==="("?z(xn.substr(1,xn.length-2)):z(xn):xn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==1?z(fn.substr(1,fn.length-1)):fn},set:function(xn){xn=xn.toString(),fn=this instanceof vt==1?"/"+U(xn):xn}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var bn,Mn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Mn},set:function(xn){xn=!!xn,Mn=xn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(bn)return bn},set:function(xn){bn=xn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,1)},set:function(xn){xn?this.Ff=$(this.Ff,1):this.Ff=Q(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,2)},set:function(xn){xn?this.Ff=$(this.Ff,2):this.Ff=Q(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,3)},set:function(xn){xn?this.Ff=$(this.Ff,3):this.Ff=Q(this.Ff,3)}});var Tn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Tn!==null)return Tn},set:function(xn){if([0,1,2].indexOf(xn)===-1)throw new Error('Invalid value "'+xn+'" for attribute Q supplied.');Tn=xn}}),Object.defineProperty(this,"textAlign",{get:function(){var xn;switch(Tn){case 0:default:xn="left";break;case 1:xn="center";break;case 2:xn="right"}return xn},configurable:!0,enumerable:!0,set:function(xn){switch(xn){case"right":case 2:Tn=2;break;case"center":case 1:Tn=1;break;default:Tn=0}}})};V(ft,ct);var dt$1=function(){ft.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var en=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return en},set:function(tn){en=tn}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return en},set:function(tn){en=tn}});var He=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return st(He,this.objId,this.scope)},set:function(tn){var nn,an;an=[],typeof(nn=tn)=="string"&&(an=(function(rn,on,sn){sn||(sn=1);for(var dn,hn=[];dn=on.exec(rn);)hn.push(dn[sn]);return hn})(nn,/\((.*?)\)/g)),He=an}}),this.getOptions=function(){return He},this.setOptions=function(tn){He=tn,this.sort&&He.sort()},this.addOption=function(tn){tn=(tn=tn||"").toString(),He.push(tn),this.sort&&He.sort()},this.removeOption=function(tn,nn){for(nn=nn||!1,tn=(tn=tn||"").toString();He.indexOf(tn)!==-1&&(He.splice(He.indexOf(tn),1),nn!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,18)},set:function(tn){tn?this.Ff=$(this.Ff,18):this.Ff=Q(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,19)},set:function(tn){this.combo===!0&&(tn?this.Ff=$(this.Ff,19):this.Ff=Q(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,20)},set:function(tn){tn?(this.Ff=$(this.Ff,20),He.sort()):this.Ff=Q(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,22)},set:function(tn){tn?this.Ff=$(this.Ff,22):this.Ff=Q(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,23)},set:function(tn){tn?this.Ff=$(this.Ff,23):this.Ff=Q(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,27)},set:function(tn){tn?this.Ff=$(this.Ff,27):this.Ff=Q(this.Ff,27)}}),this.hasAppearanceStream=!1};V(dt$1,ft);var pt=function(){dt$1.call(this),this.fontName="helvetica",this.combo=!1};V(pt,dt$1);var gt=function(){pt.call(this),this.combo=!0};V(gt,pt);var mt=function(){gt.call(this),this.edit=!0};V(mt,gt);var vt=function(){ft.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,15)},set:function(tn){tn?this.Ff=$(this.Ff,15):this.Ff=Q(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,16)},set:function(tn){tn?this.Ff=$(this.Ff,16):this.Ff=Q(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,17)},set:function(tn){tn?this.Ff=$(this.Ff,17):this.Ff=Q(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,26)},set:function(tn){tn?this.Ff=$(this.Ff,26):this.Ff=Q(this.Ff,26)}});var en,He={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var tn=function(rn){return rn};if(this.scope&&(tn=this.scope.internal.getEncryptor(this.objId)),Object.keys(He).length!==0){var nn,an=[];for(nn in an.push("<<"),He)an.push("/"+nn+" ("+T$1(tn(He[nn]))+")");return an.push(">>"),an.join(`
33`)}},set:function(tn){_typeof$1(tn)==="object"&&(He=tn)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return He.CA||""},set:function(tn){typeof tn=="string"&&(He.CA=tn)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return en},set:function(tn){en=tn}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return en.substr(1,en.length-1)},set:function(tn){en="/"+U(tn)}})};V(vt,ft);var bt$1=function(){vt.call(this),this.pushButton=!0};V(bt$1,vt);var yt$1=function(){vt.call(this),this.radio=!0,this.pushButton=!1;var en=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return en},set:function(He){en=He!==void 0?He:[]}})};V(yt$1,vt);var wt=function(){var en,He;ft.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return en},set:function(an){en=an}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return He},set:function(an){He=an}});var tn,nn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var an=function(sn){return sn};this.scope&&(an=this.scope.internal.getEncryptor(this.objId));var rn,on=[];for(rn in on.push("<<"),nn)on.push("/"+rn+" ("+T$1(an(nn[rn]))+")");return on.push(">>"),on.join(`
34`)},set:function(an){_typeof$1(an)==="object"&&(nn=an)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return nn.CA||""},set:function(an){typeof an=="string"&&(nn.CA=an)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return tn},set:function(an){tn=an}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return tn.substr(1,tn.length-1)},set:function(an){tn="/"+an}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=At.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};V(wt,ft),yt$1.prototype.setAppearance=function(en){if(!("createAppearanceStream"in en)||!("getCA"in en))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var He in this.Kids)if(this.Kids.hasOwnProperty(He)){var tn=this.Kids[He];tn.appearanceStreamContent=en.createAppearanceStream(tn.optionName),tn.caption=en.getCA()}},yt$1.prototype.createOption=function(en){var He=new wt;return He.Parent=this,He.optionName=en,this.Kids.push(He),St$1.call(this.scope,He),He};var Nt$1=function(){vt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=At.CheckBox.createAppearanceStream()};V(Nt$1,vt);var Lt=function(){ft.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,13)},set:function(He){He?this.Ff=$(this.Ff,13):this.Ff=Q(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,21)},set:function(He){He?this.Ff=$(this.Ff,21):this.Ff=Q(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,23)},set:function(He){He?this.Ff=$(this.Ff,23):this.Ff=Q(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,24)},set:function(He){He?this.Ff=$(this.Ff,24):this.Ff=Q(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,25)},set:function(He){He?this.Ff=$(this.Ff,25):this.Ff=Q(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,26)},set:function(He){He?this.Ff=$(this.Ff,26):this.Ff=Q(this.Ff,26)}});var en=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return en},set:function(He){en=He}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return en},set:function(He){Number.isInteger(He)&&(en=He)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};V(Lt,ft);var xt=function(){Lt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,14)},set:function(en){en?this.Ff=$(this.Ff,14):this.Ff=Q(this.Ff,14)}}),this.password=!0};V(xt,Lt);var At={CheckBox:{createAppearanceStream:function(){return{N:{On:At.CheckBox.YesNormal},D:{On:At.CheckBox.YesPushDown,Off:At.CheckBox.OffPushDown}}},YesPushDown:function(en){var He=Y(en);He.scope=en.scope;var tn=[],nn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,an=en.scope.__private__.encodeColorString(en.color),rn=rt(en,en.caption);return tn.push("0.749023 g"),tn.push("0 0 "+H(At.internal.getWidth(en))+" "+H(At.internal.getHeight(en))+" re"),tn.push("f"),tn.push("BMC"),tn.push("q"),tn.push("0 0 1 rg"),tn.push("/"+nn+" "+H(rn.fontSize)+" Tf "+an),tn.push("BT"),tn.push(rn.text),tn.push("ET"),tn.push("Q"),tn.push("EMC"),He.stream=tn.join(`
35`),He},YesNormal:function(en){var He=Y(en);He.scope=en.scope;var tn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,nn=en.scope.__private__.encodeColorString(en.color),an=[],rn=At.internal.getHeight(en),on=At.internal.getWidth(en),sn=rt(en,en.caption);return an.push("1 g"),an.push("0 0 "+H(on)+" "+H(rn)+" re"),an.push("f"),an.push("q"),an.push("0 0 1 rg"),an.push("0 0 "+H(on-1)+" "+H(rn-1)+" re"),an.push("W"),an.push("n"),an.push("0 g"),an.push("BT"),an.push("/"+tn+" "+H(sn.fontSize)+" Tf "+nn),an.push(sn.text),an.push("ET"),an.push("Q"),He.stream=an.join(`
36`),He},OffPushDown:function(en){var He=Y(en);He.scope=en.scope;var tn=[];return tn.push("0.749023 g"),tn.push("0 0 "+H(At.internal.getWidth(en))+" "+H(At.internal.getHeight(en))+" re"),tn.push("f"),He.stream=tn.join(`
37`),He}},RadioButton:{Circle:{createAppearanceStream:function(en){var He={D:{Off:At.RadioButton.Circle.OffPushDown},N:{}};return He.N[en]=At.RadioButton.Circle.YesNormal,He.D[en]=At.RadioButton.Circle.YesPushDown,He},getCA:function(){return"l"},YesNormal:function(en){var He=Y(en);He.scope=en.scope;var tn=[],nn=At.internal.getWidth(en)<=At.internal.getHeight(en)?At.internal.getWidth(en)/4:At.internal.getHeight(en)/4;nn=Number((.9*nn).toFixed(5));var an=At.internal.Bezier_C,rn=Number((nn*an).toFixed(5));return tn.push("q"),tn.push("1 0 0 1 "+W(At.internal.getWidth(en)/2)+" "+W(At.internal.getHeight(en)/2)+" cm"),tn.push(nn+" 0 m"),tn.push(nn+" "+rn+" "+rn+" "+nn+" 0 "+nn+" c"),tn.push("-"+rn+" "+nn+" -"+nn+" "+rn+" -"+nn+" 0 c"),tn.push("-"+nn+" -"+rn+" -"+rn+" -"+nn+" 0 -"+nn+" c"),tn.push(rn+" -"+nn+" "+nn+" -"+rn+" "+nn+" 0 c"),tn.push("f"),tn.push("Q"),He.stream=tn.join(`
38`),He},YesPushDown:function(en){var He=Y(en);He.scope=en.scope;var tn=[],nn=At.internal.getWidth(en)<=At.internal.getHeight(en)?At.internal.getWidth(en)/4:At.internal.getHeight(en)/4;nn=Number((.9*nn).toFixed(5));var an=Number((2*nn).toFixed(5)),rn=Number((an*At.internal.Bezier_C).toFixed(5)),on=Number((nn*At.internal.Bezier_C).toFixed(5));return tn.push("0.749023 g"),tn.push("q"),tn.push("1 0 0 1 "+W(At.internal.getWidth(en)/2)+" "+W(At.internal.getHeight(en)/2)+" cm"),tn.push(an+" 0 m"),tn.push(an+" "+rn+" "+rn+" "+an+" 0 "+an+" c"),tn.push("-"+rn+" "+an+" -"+an+" "+rn+" -"+an+" 0 c"),tn.push("-"+an+" -"+rn+" -"+rn+" -"+an+" 0 -"+an+" c"),tn.push(rn+" -"+an+" "+an+" -"+rn+" "+an+" 0 c"),tn.push("f"),tn.push("Q"),tn.push("0 g"),tn.push("q"),tn.push("1 0 0 1 "+W(At.internal.getWidth(en)/2)+" "+W(At.internal.getHeight(en)/2)+" cm"),tn.push(nn+" 0 m"),tn.push(nn+" "+on+" "+on+" "+nn+" 0 "+nn+" c"),tn.push("-"+on+" "+nn+" -"+nn+" "+on+" -"+nn+" 0 c"),tn.push("-"+nn+" -"+on+" -"+on+" -"+nn+" 0 -"+nn+" c"),tn.push(on+" -"+nn+" "+nn+" -"+on+" "+nn+" 0 c"),tn.push("f"),tn.push("Q"),He.stream=tn.join(`
39`),He},OffPushDown:function(en){var He=Y(en);He.scope=en.scope;var tn=[],nn=At.internal.getWidth(en)<=At.internal.getHeight(en)?At.internal.getWidth(en)/4:At.internal.getHeight(en)/4;nn=Number((.9*nn).toFixed(5));var an=Number((2*nn).toFixed(5)),rn=Number((an*At.internal.Bezier_C).toFixed(5));return tn.push("0.749023 g"),tn.push("q"),tn.push("1 0 0 1 "+W(At.internal.getWidth(en)/2)+" "+W(At.internal.getHeight(en)/2)+" cm"),tn.push(an+" 0 m"),tn.push(an+" "+rn+" "+rn+" "+an+" 0 "+an+" c"),tn.push("-"+rn+" "+an+" -"+an+" "+rn+" -"+an+" 0 c"),tn.push("-"+an+" -"+rn+" -"+rn+" -"+an+" 0 -"+an+" c"),tn.push(rn+" -"+an+" "+an+" -"+rn+" "+an+" 0 c"),tn.push("f"),tn.push("Q"),He.stream=tn.join(`
40`),He}},Cross:{createAppearanceStream:function(en){var He={D:{Off:At.RadioButton.Cross.OffPushDown},N:{}};return He.N[en]=At.RadioButton.Cross.YesNormal,He.D[en]=At.RadioButton.Cross.YesPushDown,He},getCA:function(){return"8"},YesNormal:function(en){var He=Y(en);He.scope=en.scope;var tn=[],nn=At.internal.calculateCross(en);return tn.push("q"),tn.push("1 1 "+H(At.internal.getWidth(en)-2)+" "+H(At.internal.getHeight(en)-2)+" re"),tn.push("W"),tn.push("n"),tn.push(H(nn.x1.x)+" "+H(nn.x1.y)+" m"),tn.push(H(nn.x2.x)+" "+H(nn.x2.y)+" l"),tn.push(H(nn.x4.x)+" "+H(nn.x4.y)+" m"),tn.push(H(nn.x3.x)+" "+H(nn.x3.y)+" l"),tn.push("s"),tn.push("Q"),He.stream=tn.join(`
41`),He},YesPushDown:function(en){var He=Y(en);He.scope=en.scope;var tn=At.internal.calculateCross(en),nn=[];return nn.push("0.749023 g"),nn.push("0 0 "+H(At.internal.getWidth(en))+" "+H(At.internal.getHeight(en))+" re"),nn.push("f"),nn.push("q"),nn.push("1 1 "+H(At.internal.getWidth(en)-2)+" "+H(At.internal.getHeight(en)-2)+" re"),nn.push("W"),nn.push("n"),nn.push(H(tn.x1.x)+" "+H(tn.x1.y)+" m"),nn.push(H(tn.x2.x)+" "+H(tn.x2.y)+" l"),nn.push(H(tn.x4.x)+" "+H(tn.x4.y)+" m"),nn.push(H(tn.x3.x)+" "+H(tn.x3.y)+" l"),nn.push("s"),nn.push("Q"),He.stream=nn.join(`
42`),He},OffPushDown:function(en){var He=Y(en);He.scope=en.scope;var tn=[];return tn.push("0.749023 g"),tn.push("0 0 "+H(At.internal.getWidth(en))+" "+H(At.internal.getHeight(en))+" re"),tn.push("f"),He.stream=tn.join(`
43`),He}}},createDefaultAppearanceStream:function(en){var He=en.scope.internal.getFont(en.fontName,en.fontStyle).id,tn=en.scope.__private__.encodeColorString(en.color);return"/"+He+" "+en.fontSize+" Tf "+tn}};At.internal={Bezier_C:.551915024494,calculateCross:function(en){var He=At.internal.getWidth(en),tn=At.internal.getHeight(en),nn=Math.min(He,tn);return{x1:{x:(He-nn)/2,y:(tn-nn)/2+nn},x2:{x:(He-nn)/2+nn,y:(tn-nn)/2},x3:{x:(He-nn)/2,y:(tn-nn)/2},x4:{x:(He-nn)/2+nn,y:(tn-nn)/2+nn}}}},At.internal.getWidth=function(en){var He=0;return _typeof$1(en)==="object"&&(He=G(en.Rect[2])),He},At.internal.getHeight=function(en){var He=0;return _typeof$1(en)==="object"&&(He=G(en.Rect[3])),He};var St$1=R.addField=function(en){if(ot(this,en),!(en instanceof ft))throw new Error("Invalid argument passed to jsPDF.addField.");var He;return(He=en).scope.internal.acroformPlugin.printedOut&&(He.scope.internal.acroformPlugin.printedOut=!1,He.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),He.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(He),en.page=en.scope.internal.getCurrentPageInfo().pageNumber,this};R.AcroFormChoiceField=dt$1,R.AcroFormListBox=pt,R.AcroFormComboBox=gt,R.AcroFormEditBox=mt,R.AcroFormButton=vt,R.AcroFormPushButton=bt$1,R.AcroFormRadioButton=yt$1,R.AcroFormCheckBox=Nt$1,R.AcroFormTextField=Lt,R.AcroFormPasswordField=xt,R.AcroFormAppearance=At,R.AcroForm={ChoiceField:dt$1,ListBox:pt,ComboBox:gt,EditBox:mt,Button:vt,PushButton:bt$1,RadioButton:yt$1,CheckBox:Nt$1,TextField:Lt,PasswordField:xt,Appearance:At},E.AcroForm={ChoiceField:dt$1,ListBox:pt,ComboBox:gt,EditBox:mt,Button:vt,PushButton:bt$1,RadioButton:yt$1,CheckBox:Nt$1,TextField:Lt,PasswordField:xt,Appearance:At};E.AcroForm;function Pt(en){return en.reduce(function(He,tn,nn){return He[tn]=nn,He},{})}(function(en){var He="addImage_";en.__addimage__={};var tn="UNKNOWN",nn={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},an=en.__addimage__.getImageFileTypeByImageData=function(ei,ci){var di,wi,Ci,ji,Yi,Pi=tn;if((ci=ci||tn)==="RGBA"||ei.data!==void 0&&ei.data instanceof Uint8ClampedArray&&"height"in ei&&"width"in ei)return"RGBA";if(bi(ei))for(Yi in nn)for(Ci=nn[Yi],di=0;di<Ci.length;di+=1){for(ji=!0,wi=0;wi<Ci[di].length;wi+=1)if(Ci[di][wi]!==void 0&&Ci[di][wi]!==ei[wi]){ji=!1;break}if(ji===!0){Pi=Yi;break}}else for(Yi in nn)for(Ci=nn[Yi],di=0;di<Ci.length;di+=1){for(ji=!0,wi=0;wi<Ci[di].length;wi+=1)if(Ci[di][wi]!==void 0&&Ci[di][wi]!==ei.charCodeAt(wi)){ji=!1;break}if(ji===!0){Pi=Yi;break}}return Pi===tn&&ci!==tn&&(Pi=ci),Pi},rn=function ei(ci){for(var di=this.internal.write,wi=this.internal.putStream,Ci=(0,this.internal.getFilters)();Ci.indexOf("FlateEncode")!==-1;)Ci.splice(Ci.indexOf("FlateEncode"),1);ci.objectId=this.internal.newObject();var ji=[];if(ji.push({key:"Type",value:"/XObject"}),ji.push({key:"Subtype",value:"/Image"}),ji.push({key:"Width",value:ci.width}),ji.push({key:"Height",value:ci.height}),ci.colorSpace===xn.INDEXED?ji.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(ci.palette.length/3-1)+" "+("sMask"in ci&&ci.sMask!==void 0?ci.objectId+2:ci.objectId+1)+" 0 R]"}):(ji.push({key:"ColorSpace",value:"/"+ci.colorSpace}),ci.colorSpace===xn.DEVICE_CMYK&&ji.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ji.push({key:"BitsPerComponent",value:ci.bitsPerComponent}),"decodeParameters"in ci&&ci.decodeParameters!==void 0&&ji.push({key:"DecodeParms",value:"<<"+ci.decodeParameters+">>"}),"transparency"in ci&&Array.isArray(ci.transparency)&&ci.transparency.length>0){for(var Yi="",Pi=0,Fi=ci.transparency.length;Pi<Fi;Pi++)Yi+=ci.transparency[Pi]+" "+ci.transparency[Pi]+" ";ji.push({key:"Mask",value:"["+Yi+"]"})}ci.sMask!==void 0&&ji.push({key:"SMask",value:ci.objectId+1+" 0 R"});var $i=ci.filter!==void 0?["/"+ci.filter]:void 0;if(wi({data:ci.data,additionalKeyValues:ji,alreadyAppliedFilters:$i,objectId:ci.objectId}),di("endobj"),"sMask"in ci&&ci.sMask!==void 0){var Wi,hi=(Wi=ci.sMaskBitsPerComponent)!==null&&Wi!==void 0?Wi:ci.bitsPerComponent,Si={width:ci.width,height:ci.height,colorSpace:"DeviceGray",bitsPerComponent:hi,data:ci.sMask};"filter"in ci&&(Si.decodeParameters="/Predictor ".concat(ci.predictor," /Colors 1 /BitsPerComponent ").concat(hi," /Columns ").concat(ci.width),Si.filter=ci.filter),ei.call(this,Si)}if(ci.colorSpace===xn.INDEXED){var Ni=this.internal.newObject();wi({data:oi(new Uint8Array(ci.palette)),objectId:Ni}),di("endobj")}},on=function(){var ei=this.internal.collections[He+"images"];for(var ci in ei)rn.call(this,ei[ci])},sn=function(){var ei,ci=this.internal.collections[He+"images"],di=this.internal.write;for(var wi in ci)di("/I"+(ei=ci[wi]).index,ei.objectId,"0","R")},dn=function(){this.internal.collections[He+"images"]||(this.internal.collections[He+"images"]={},this.internal.events.subscribe("putResources",on),this.internal.events.subscribe("putXobjectDict",sn))},hn=function(){var ei=this.internal.collections[He+"images"];return dn.call(this),ei},mn=function(){return Object.keys(this.internal.collections[He+"images"]).length},gn=function(ei){return typeof en["process"+ei.toUpperCase()]=="function"},yn=function(ei){return _typeof$1(ei)==="object"&&ei.nodeType===1},fn=function(ei,ci){if(ei.nodeName==="IMG"&&ei.hasAttribute("src")){var di=""+ei.getAttribute("src");if(di.indexOf("data:image/")===0)return f$1(unescape(di).split("base64,").pop());var wi=en.loadFile(di,!0);if(wi!==void 0)return wi}if(ei.nodeName==="CANVAS"){if(ei.width===0||ei.height===0)throw new Error("Given canvas must have data. Canvas width: "+ei.width+", height: "+ei.height);var Ci;switch(ci){case"PNG":Ci="image/png";break;case"WEBP":Ci="image/webp";break;default:Ci="image/jpeg"}return f$1(ei.toDataURL(Ci,1).split("base64,").pop())}},bn=function(ei){var ci=this.internal.collections[He+"images"];if(ci){for(var di in ci)if(ei===ci[di].alias)return ci[di]}},Mn=function(ei,ci,di){return ei||ci||(ei=-96,ci=-96),ei<0&&(ei=-1*di.width*72/ei/this.internal.scaleFactor),ci<0&&(ci=-1*di.height*72/ci/this.internal.scaleFactor),ei===0&&(ei=ci*di.width/di.height),ci===0&&(ci=ei*di.height/di.width),[ei,ci]},Tn=function(ei,ci,di,wi,Ci,ji){var Yi=Mn.call(this,di,wi,Ci),Pi=this.internal.getCoordinateString,Fi=this.internal.getVerticalCoordinateString,$i=hn.call(this);if(di=Yi[0],wi=Yi[1],$i[Ci.index]=Ci,ji){ji*=Math.PI/180;var Wi=Math.cos(ji),hi=Math.sin(ji),Si=function(yi){return yi.toFixed(4)},Ni=[Si(Wi),Si(hi),Si(-1*hi),Si(Wi),0,0,"cm"]}this.internal.write("q"),ji?(this.internal.write([1,"0","0",1,Pi(ei),Fi(ci+wi),"cm"].join(" ")),this.internal.write(Ni.join(" ")),this.internal.write([Pi(di),"0","0",Pi(wi),"0","0","cm"].join(" "))):this.internal.write([Pi(di),"0","0",Pi(wi),Pi(ei),Fi(ci+wi),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ci.index+" Do"),this.internal.write("Q")},xn=en.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};en.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var En=en.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Rn=en.__addimage__.sHashCode=function(ei){var ci,di,wi=0;if(typeof ei=="string")for(di=ei.length,ci=0;ci<di;ci++)wi=(wi<<5)-wi+ei.charCodeAt(ci),wi|=0;else if(bi(ei))for(di=ei.byteLength/2,ci=0;ci<di;ci++)wi=(wi<<5)-wi+ei[ci],wi|=0;return wi},ni=en.__addimage__.validateStringAsBase64=function(ei){(ei=ei||"").toString().trim();var ci=!0;return ei.length===0&&(ci=!1),ei.length%4!=0&&(ci=!1),/^[A-Za-z0-9+/]+$/.test(ei.substr(0,ei.length-2))===!1&&(ci=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(ei.substr(-2))===!1&&(ci=!1),ci},mi=en.__addimage__.extractImageFromDataUrl=function(ei){if(ei==null||!(ei=ei.trim()).startsWith("data:"))return null;var ci=ei.indexOf(",");return ci<0?null:ei.substring(0,ci).trim().endsWith("base64")?ei.substring(ci+1):null};en.__addimage__.isArrayBuffer=function(ei){return ei instanceof ArrayBuffer};var bi=en.__addimage__.isArrayBufferView=function(ei){return ei instanceof Int8Array||ei instanceof Uint8Array||ei instanceof Uint8ClampedArray||ei instanceof Int16Array||ei instanceof Uint16Array||ei instanceof Int32Array||ei instanceof Uint32Array||ei instanceof Float32Array||ei instanceof Float64Array},_i=en.__addimage__.binaryStringToUint8Array=function(ei){for(var ci=ei.length,di=new Uint8Array(ci),wi=0;wi<ci;wi++)di[wi]=ei.charCodeAt(wi);return di},oi=en.__addimage__.arrayBufferToBinaryString=function(ei){for(var ci="",di=bi(ei)?ei:new Uint8Array(ei),wi=0;wi<di.length;wi+=8192)ci+=String.fromCharCode.apply(null,di.subarray(wi,wi+8192));return ci};en.addImage=function(){var ei,ci,di,wi,Ci,ji,Yi,Pi,Fi;if(typeof arguments[1]=="number"?(ci=tn,di=arguments[1],wi=arguments[2],Ci=arguments[3],ji=arguments[4],Yi=arguments[5],Pi=arguments[6],Fi=arguments[7]):(ci=arguments[1],di=arguments[2],wi=arguments[3],Ci=arguments[4],ji=arguments[5],Yi=arguments[6],Pi=arguments[7],Fi=arguments[8]),_typeof$1(ei=arguments[0])==="object"&&!yn(ei)&&"imageData"in ei){var $i=ei;ei=$i.imageData,ci=$i.format||ci||tn,di=$i.x||di||0,wi=$i.y||wi||0,Ci=$i.w||$i.width||Ci,ji=$i.h||$i.height||ji,Yi=$i.alias||Yi,Pi=$i.compression||Pi,Fi=$i.rotation||$i.angle||Fi}var Wi=this.internal.getFilters();if(Pi===void 0&&Wi.indexOf("FlateEncode")!==-1&&(Pi="SLOW"),isNaN(di)||isNaN(wi))throw new Error("Invalid coordinates passed to jsPDF.addImage");dn.call(this);var hi=si.call(this,ei,ci,Yi,Pi);return Tn.call(this,di,wi,Ci,ji,hi,Fi),this};var si=function(ei,ci,di,wi){var Ci,ji,Yi;if(typeof ei=="string"&&an(ei)===tn){ei=unescape(ei);var Pi=fi(ei,!1);(Pi!==""||(Pi=en.loadFile(ei,!0))!==void 0)&&(ei=Pi)}if(yn(ei)&&(ei=fn(ei,ci)),ci=an(ei,ci),!gn(ci))throw new Error("addImage does not support files of type '"+ci+"', please ensure that a plugin for '"+ci+"' support is added.");if(((Yi=di)==null||Yi.length===0)&&(di=(function(Fi){return typeof Fi=="string"||bi(Fi)?Rn(Fi):bi(Fi.data)?Rn(Fi.data):null})(ei)),(Ci=bn.call(this,di))||(ei instanceof Uint8Array||ci==="RGBA"||(ji=ei,ei=_i(ei)),Ci=this["process"+ci.toUpperCase()](ei,mn.call(this),di,(function(Fi){return Fi&&typeof Fi=="string"&&(Fi=Fi.toUpperCase()),Fi in en.image_compression?Fi:En.NONE})(wi),ji)),!Ci)throw new Error("An unknown error occurred whilst processing the image.");return Ci},fi=en.__addimage__.convertBase64ToBinaryString=function(ei,ci){ci=typeof ci!="boolean"||ci;var di,wi="";if(typeof ei=="string"){var Ci;di=(Ci=mi(ei))!==null&&Ci!==void 0?Ci:ei;try{wi=f$1(di)}catch(ji){if(ci)throw ni(di)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ji.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return wi};en.getImageProperties=function(ei){var ci,di,wi="";if(yn(ei)&&(ei=fn(ei)),typeof ei=="string"&&an(ei)===tn&&((wi=fi(ei,!1))===""&&(wi=en.loadFile(ei)||""),ei=wi),di=an(ei),!gn(di))throw new Error("addImage does not support files of type '"+di+"', please ensure that a plugin for '"+di+"' support is added.");if(ei instanceof Uint8Array||(ei=_i(ei)),!(ci=this["process"+di.toUpperCase()](ei)))throw new Error("An unknown error occurred whilst processing the image");return ci.fileType=di,ci}})(E.API),(function(en){var He=function(tn){if(tn!==void 0&&tn!="")return!0};E.API.events.push(["addPage",function(tn){this.internal.getPageInfo(tn.pageNumber).pageContext.annotations=[]}]),en.events.push(["putPage",function(tn){for(var nn,an,rn,on=this.internal.getCoordinateString,sn=this.internal.getVerticalCoordinateString,dn=this.internal.getPageInfoByObjId(tn.objId),hn=tn.pageContext.annotations,mn=!1,gn=0;gn<hn.length&&!mn;gn++)switch((nn=hn[gn]).type){case"link":(He(nn.options.url)||He(nn.options.pageNumber))&&(mn=!0);break;case"reference":case"text":case"freetext":mn=!0}if(mn!=0){this.internal.write("/Annots [");for(var yn=0;yn<hn.length;yn++){nn=hn[yn];var fn=this.internal.pdfEscape,bn=this.internal.getEncryptor(tn.objId);switch(nn.type){case"reference":this.internal.write(" "+nn.object.objId+" 0 R ");break;case"text":var Mn=this.internal.newAdditionalObject(),Tn=this.internal.newAdditionalObject(),xn=this.internal.getEncryptor(Mn.objId),En=nn.title||"Note";rn="<</Type /Annot /Subtype /Text "+(an="/Rect ["+on(nn.bounds.x)+" "+sn(nn.bounds.y+nn.bounds.h)+" "+on(nn.bounds.x+nn.bounds.w)+" "+sn(nn.bounds.y)+"] ")+"/Contents ("+fn(xn(nn.contents))+")",rn+=" /Popup "+Tn.objId+" 0 R",rn+=" /P "+dn.objId+" 0 R",rn+=" /T ("+fn(xn(En))+") >>",Mn.content=rn;var Rn=Mn.objId+" 0 R";rn="<</Type /Annot /Subtype /Popup "+(an="/Rect ["+on(nn.bounds.x+30)+" "+sn(nn.bounds.y+nn.bounds.h)+" "+on(nn.bounds.x+nn.bounds.w+30)+" "+sn(nn.bounds.y)+"] ")+" /Parent "+Rn,nn.open&&(rn+=" /Open true"),rn+=" >>",Tn.content=rn,this.internal.write(Mn.objId,"0 R",Tn.objId,"0 R");break;case"freetext":an="/Rect ["+on(nn.bounds.x)+" "+sn(nn.bounds.y)+" "+on(nn.bounds.x+nn.bounds.w)+" "+sn(nn.bounds.y+nn.bounds.h)+"] ";var ni=nn.color||"#000000";rn="<</Type /Annot /Subtype /FreeText "+an+"/Contents ("+fn(bn(nn.contents))+")",rn+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ni+")",rn+=" /Border [0 0 0]",rn+=" >>",this.internal.write(rn);break;case"link":if(nn.options.name){var mi=this.annotations._nameMap[nn.options.name];nn.options.pageNumber=mi.page,nn.options.top=mi.y}else nn.options.top||(nn.options.top=0);if(an="/Rect ["+nn.finalBounds.x+" "+nn.finalBounds.y+" "+nn.finalBounds.w+" "+nn.finalBounds.h+"] ",rn="",nn.options.url)rn="<</Type /Annot /Subtype /Link "+an+"/Border [0 0 0] /A <</S /URI /URI ("+fn(bn(nn.options.url))+") >>";else if(nn.options.pageNumber)switch(rn="<</Type /Annot /Subtype /Link "+an+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(nn.options.pageNumber).objId+" 0 R",nn.options.magFactor=nn.options.magFactor||"XYZ",nn.options.magFactor){case"Fit":rn+=" /Fit]";break;case"FitH":rn+=" /FitH "+nn.options.top+"]";break;case"FitV":nn.options.left=nn.options.left||0,rn+=" /FitV "+nn.options.left+"]";break;default:var bi=sn(nn.options.top);nn.options.left=nn.options.left||0,nn.options.zoom===void 0&&(nn.options.zoom=0),rn+=" /XYZ "+nn.options.left+" "+bi+" "+nn.options.zoom+"]"}rn!=""&&(rn+=" >>",this.internal.write(rn))}}this.internal.write("]")}}]),en.createAnnotation=function(tn){var nn=this.internal.getCurrentPageInfo();switch(tn.type){case"link":this.link(tn.bounds.x,tn.bounds.y,tn.bounds.w,tn.bounds.h,tn);break;case"text":case"freetext":nn.pageContext.annotations.push(tn)}},en.link=function(tn,nn,an,rn,on){var sn=this.internal.getCurrentPageInfo(),dn=this.internal.getCoordinateString,hn=this.internal.getVerticalCoordinateString;sn.pageContext.annotations.push({finalBounds:{x:dn(tn),y:hn(nn),w:dn(tn+an),h:hn(nn+rn)},options:on,type:"link"})},en.textWithLink=function(tn,nn,an,rn){var on,sn,dn=this.getTextWidth(tn),hn=this.internal.getLineHeight()/this.internal.scaleFactor;if(rn.maxWidth!==void 0){sn=rn.maxWidth;var mn=this.splitTextToSize(tn,sn).length;on=Math.ceil(hn*mn)}else sn=dn,on=hn;return this.text(tn,nn,an,rn),an+=.2*hn,rn.align==="center"&&(nn-=dn/2),rn.align==="right"&&(nn-=dn),this.link(nn,an-hn,sn,on,rn),dn},en.getTextWidth=function(tn){var nn=this.internal.getFontSize();return this.getStringUnitWidth(tn)*nn/this.internal.scaleFactor}})(E.API),(function(en){var He={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},tn={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},nn={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},an=[1570,1571,1573,1575];en.__arabicParser__={};var rn=en.__arabicParser__.isInArabicSubstitutionA=function(Mn){return He[Mn.charCodeAt(0)]!==void 0},on=en.__arabicParser__.isArabicLetter=function(Mn){return typeof Mn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Mn)},sn=en.__arabicParser__.isArabicEndLetter=function(Mn){return on(Mn)&&rn(Mn)&&He[Mn.charCodeAt(0)].length<=2},dn=en.__arabicParser__.isArabicAlfLetter=function(Mn){return on(Mn)&&an.indexOf(Mn.charCodeAt(0))>=0};en.__arabicParser__.arabicLetterHasIsolatedForm=function(Mn){return on(Mn)&&rn(Mn)&&He[Mn.charCodeAt(0)].length>=1};var hn=en.__arabicParser__.arabicLetterHasFinalForm=function(Mn){return on(Mn)&&rn(Mn)&&He[Mn.charCodeAt(0)].length>=2};en.__arabicParser__.arabicLetterHasInitialForm=function(Mn){return on(Mn)&&rn(Mn)&&He[Mn.charCodeAt(0)].length>=3};var mn=en.__arabicParser__.arabicLetterHasMedialForm=function(Mn){return on(Mn)&&rn(Mn)&&He[Mn.charCodeAt(0)].length==4},gn=en.__arabicParser__.resolveLigatures=function(Mn){var Tn=0,xn=tn,En="",Rn=0;for(Tn=0;Tn<Mn.length;Tn+=1)xn[Mn.charCodeAt(Tn)]!==void 0?(Rn++,typeof(xn=xn[Mn.charCodeAt(Tn)])=="number"&&(En+=String.fromCharCode(xn),xn=tn,Rn=0),Tn===Mn.length-1&&(xn=tn,En+=Mn.charAt(Tn-(Rn-1)),Tn-=Rn-1,Rn=0)):(xn=tn,En+=Mn.charAt(Tn-Rn),Tn-=Rn,Rn=0);return En};en.__arabicParser__.isArabicDiacritic=function(Mn){return Mn!==void 0&&nn[Mn.charCodeAt(0)]!==void 0};var yn=en.__arabicParser__.getCorrectForm=function(Mn,Tn,xn){return on(Mn)?rn(Mn)===!1?-1:!hn(Mn)||!on(Tn)&&!on(xn)||!on(xn)&&sn(Tn)||sn(Mn)&&!on(Tn)||sn(Mn)&&dn(Tn)||sn(Mn)&&sn(Tn)?0:mn(Mn)&&on(Tn)&&!sn(Tn)&&on(xn)&&hn(xn)?3:sn(Mn)||!on(xn)?1:2:-1},fn=function(Mn){var Tn=0,xn=0,En=0,Rn="",ni="",mi="",bi=(Mn=Mn||"").split("\\s+"),_i=[];for(Tn=0;Tn<bi.length;Tn+=1){for(_i.push(""),xn=0;xn<bi[Tn].length;xn+=1)Rn=bi[Tn][xn],ni=bi[Tn][xn-1],mi=bi[Tn][xn+1],on(Rn)?(En=yn(Rn,ni,mi),_i[Tn]+=En!==-1?String.fromCharCode(He[Rn.charCodeAt(0)][En]):Rn):_i[Tn]+=Rn;_i[Tn]=gn(_i[Tn])}return _i.join(" ")},bn=en.__arabicParser__.processArabic=en.processArabic=function(){var Mn,Tn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,xn=[];if(Array.isArray(Tn)){var En=0;for(xn=[],En=0;En<Tn.length;En+=1)Array.isArray(Tn[En])?xn.push([fn(Tn[En][0]),Tn[En][1],Tn[En][2]]):xn.push([fn(Tn[En])]);Mn=xn}else Mn=fn(Tn);return typeof arguments[0]=="string"?Mn:(arguments[0].text=Mn,arguments[0])};en.events.push(["preProcessText",bn])})(E.API),E.API.autoPrint=function(en){var He;return(en=en||{}).variant=en.variant||"non-conform",en.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){He=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+He+" 0 R")})),this},(function(en){var He=function(){var tn=void 0;Object.defineProperty(this,"pdf",{get:function(){return tn},set:function(sn){tn=sn}});var nn=150;Object.defineProperty(this,"width",{get:function(){return nn},set:function(sn){nn=isNaN(sn)||Number.isInteger(sn)===!1||sn<0?150:sn,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=nn+1)}});var an=300;Object.defineProperty(this,"height",{get:function(){return an},set:function(sn){an=isNaN(sn)||Number.isInteger(sn)===!1||sn<0?300:sn,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=an+1)}});var rn=[];Object.defineProperty(this,"childNodes",{get:function(){return rn},set:function(sn){rn=sn}});var on={};Object.defineProperty(this,"style",{get:function(){return on},set:function(sn){on=sn}}),Object.defineProperty(this,"parentNode",{})};He.prototype.getContext=function(tn,nn){var an;if((tn=tn||"2d")!=="2d")return null;for(an in nn)this.pdf.context2d.hasOwnProperty(an)&&(this.pdf.context2d[an]=nn[an]);return this.pdf.context2d._canvas=this,this.pdf.context2d},He.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},en.events.push(["initialized",function(){this.canvas=new He,this.canvas.pdf=this}])})(E.API),(function(en){var He={left:0,top:0,bottom:0,right:0},tn=!1,nn=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},He),this.internal.__cell__.margins.width=this.getPageWidth(),an.call(this))},an=function(){this.internal.__cell__.lastCell=new rn,this.internal.__cell__.pages=1},rn=function(){var dn=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return dn},set:function(Mn){dn=Mn}});var hn=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return hn},set:function(Mn){hn=Mn}});var mn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return mn},set:function(Mn){mn=Mn}});var gn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return gn},set:function(Mn){gn=Mn}});var yn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return yn},set:function(Mn){yn=Mn}});var fn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return fn},set:function(Mn){fn=Mn}});var bn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return bn},set:function(Mn){bn=Mn}}),this};rn.prototype.clone=function(){return new rn(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},rn.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},en.setHeaderFunction=function(dn){return nn.call(this),this.internal.__cell__.headerFunction=typeof dn=="function"?dn:void 0,this},en.getTextDimensions=function(dn,hn){nn.call(this);var mn=(hn=hn||{}).fontSize||this.getFontSize(),gn=hn.font||this.getFont(),yn=hn.scaleFactor||this.internal.scaleFactor,fn=0,bn=0,Mn=0,Tn=this;if(!Array.isArray(dn)&&typeof dn!="string"){if(typeof dn!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");dn=String(dn)}var xn=hn.maxWidth;xn>0?typeof dn=="string"?dn=this.splitTextToSize(dn,xn):Object.prototype.toString.call(dn)==="[object Array]"&&(dn=dn.reduce(function(Rn,ni){return Rn.concat(Tn.splitTextToSize(ni,xn))},[])):dn=Array.isArray(dn)?dn:[dn];for(var En=0;En<dn.length;En++)fn<(Mn=this.getStringUnitWidth(dn[En],{font:gn})*mn)&&(fn=Mn);return fn!==0&&(bn=dn.length),{w:fn/=yn,h:Math.max((bn*mn*this.getLineHeightFactor()-mn*(this.getLineHeightFactor()-1))/yn,0)}},en.cellAddPage=function(){nn.call(this),this.addPage();var dn=this.internal.__cell__.margins||He;return this.internal.__cell__.lastCell=new rn(dn.left,dn.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var on=en.cell=function(){var dn;dn=arguments[0]instanceof rn?arguments[0]:new rn(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),nn.call(this);var hn=this.internal.__cell__.lastCell,mn=this.internal.__cell__.padding,gn=this.internal.__cell__.margins||He,yn=this.internal.__cell__.tableHeaderRow,fn=this.internal.__cell__.printHeaders;return hn.lineNumber!==void 0&&(hn.lineNumber===dn.lineNumber?(dn.x=(hn.x||0)+(hn.width||0),dn.y=hn.y||0):hn.y+hn.height+dn.height+gn.bottom>this.getPageHeight()?(this.cellAddPage(),dn.y=gn.top,fn&&yn&&(this.printHeaderRow(dn.lineNumber,!0),dn.y+=yn[0].height)):dn.y=hn.y+hn.height||dn.y),dn.text[0]!==void 0&&(this.rect(dn.x,dn.y,dn.width,dn.height,tn===!0?"FD":void 0),dn.align==="right"?this.text(dn.text,dn.x+dn.width-mn,dn.y+mn,{align:"right",baseline:"top"}):dn.align==="center"?this.text(dn.text,dn.x+dn.width/2,dn.y+mn,{align:"center",baseline:"top",maxWidth:dn.width-mn-mn}):this.text(dn.text,dn.x+mn,dn.y+mn,{align:"left",baseline:"top",maxWidth:dn.width-mn-mn})),this.internal.__cell__.lastCell=dn,this};en.table=function(dn,hn,mn,gn,yn){if(nn.call(this),!mn)throw new Error("No data for PDF table.");var fn,bn,Mn,Tn,xn=[],En=[],Rn=[],ni={},mi={},bi=[],_i=[],oi=(yn=yn||{}).autoSize||!1,si=yn.printHeaders!==!1,fi=yn.css&&yn.css["font-size"]!==void 0?16*yn.css["font-size"]:yn.fontSize||12,ei=yn.margins||Object.assign({width:this.getPageWidth()},He),ci=typeof yn.padding=="number"?yn.padding:3,di=yn.headerBackgroundColor||"#c8c8c8",wi=yn.headerTextColor||"#000";if(an.call(this),this.internal.__cell__.printHeaders=si,this.internal.__cell__.margins=ei,this.internal.__cell__.table_font_size=fi,this.internal.__cell__.padding=ci,this.internal.__cell__.headerBackgroundColor=di,this.internal.__cell__.headerTextColor=wi,this.setFontSize(fi),gn==null)En=xn=Object.keys(mn[0]),Rn=xn.map(function(){return"left"});else if(Array.isArray(gn)&&_typeof$1(gn[0])==="object")for(xn=gn.map(function($i){return $i.name}),En=gn.map(function($i){return $i.prompt||$i.name||""}),Rn=gn.map(function($i){return $i.align||"left"}),fn=0;fn<gn.length;fn+=1)mi[gn[fn].name]=.7499990551181103*gn[fn].width;else Array.isArray(gn)&&typeof gn[0]=="string"&&(En=xn=gn,Rn=xn.map(function(){return"left"}));if(oi||Array.isArray(gn)&&typeof gn[0]=="string")for(fn=0;fn<xn.length;fn+=1){for(ni[Tn=xn[fn]]=mn.map(function($i){return $i[Tn]}),this.setFont(void 0,"bold"),bi.push(this.getTextDimensions(En[fn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),bn=ni[Tn],this.setFont(void 0,"normal"),Mn=0;Mn<bn.length;Mn+=1)bi.push(this.getTextDimensions(bn[Mn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);mi[Tn]=Math.max.apply(null,bi)+ci+ci,bi=[]}if(si){var Ci={};for(fn=0;fn<xn.length;fn+=1)Ci[xn[fn]]={},Ci[xn[fn]].text=En[fn],Ci[xn[fn]].align=Rn[fn];var ji=sn.call(this,Ci,mi);_i=xn.map(function($i){return new rn(dn,hn,mi[$i],ji,Ci[$i].text,void 0,Ci[$i].align)}),this.setTableHeaderRow(_i),this.printHeaderRow(1,!1)}var Yi=gn.reduce(function($i,Wi){return $i[Wi.name]=Wi.align,$i},{});for(fn=0;fn<mn.length;fn+=1){"rowStart"in yn&&yn.rowStart instanceof Function&&yn.rowStart({row:fn,data:mn[fn]},this);var Pi=sn.call(this,mn[fn],mi);for(Mn=0;Mn<xn.length;Mn+=1){var Fi=mn[fn][xn[Mn]];"cellStart"in yn&&yn.cellStart instanceof Function&&yn.cellStart({row:fn,col:Mn,data:Fi},this),on.call(this,new rn(dn,hn,mi[xn[Mn]],Pi,Fi,fn+2,Yi[xn[Mn]]))}}return this.internal.__cell__.table_x=dn,this.internal.__cell__.table_y=hn,this};var sn=function(dn,hn){var mn=this.internal.__cell__.padding,gn=this.internal.__cell__.table_font_size,yn=this.internal.scaleFactor;return Object.keys(dn).map(function(fn){var bn=dn[fn];return this.splitTextToSize(bn.hasOwnProperty("text")?bn.text:bn,hn[fn]-mn-mn)},this).map(function(fn){return this.getLineHeightFactor()*fn.length*gn/yn+mn+mn},this).reduce(function(fn,bn){return Math.max(fn,bn)},0)};en.setTableHeaderRow=function(dn){nn.call(this),this.internal.__cell__.tableHeaderRow=dn},en.printHeaderRow=function(dn,hn){if(nn.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var mn;if(tn=!0,typeof this.internal.__cell__.headerFunction=="function"){var gn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new rn(gn[0],gn[1],gn[2],gn[3],void 0,-1)}this.setFont(void 0,"bold");for(var yn=[],fn=0;fn<this.internal.__cell__.tableHeaderRow.length;fn+=1){mn=this.internal.__cell__.tableHeaderRow[fn].clone(),hn&&(mn.y=this.internal.__cell__.margins.top||0,yn.push(mn)),mn.lineNumber=dn;var bn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),on.call(this,mn),this.setTextColor(bn)}yn.length>0&&this.setTableHeaderRow(yn),this.setFont(void 0,"normal"),tn=!1}})(E.API);var kt$1={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ft=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],It=Pt(Ft),jt$1=[100,200,300,400,500,600,700,800,900],Ct=Pt(jt$1);function Ot$1(en){var He=en.family.replace(/"|'/g,"").toLowerCase(),tn=(function(rn){return kt$1[rn=rn||"normal"]?rn:"normal"})(en.style),nn=(function(rn){return rn?typeof rn=="number"?rn>=100&&rn<=900&&rn%100==0?rn:400:/^\d00$/.test(rn)?parseInt(rn):rn==="bold"?700:400:400})(en.weight),an=(function(rn){return typeof It[rn=rn||"normal"]=="number"?rn:"normal"})(en.stretch);return{family:He,style:tn,weight:nn,stretch:an,src:en.src||[],ref:en.ref||{name:He,style:[an,tn,nn].join(" ")}}}function Bt(en,He,tn,nn){var an;for(an=tn;an>=0&&an<He.length;an+=nn)if(en[He[an]])return en[He[an]];for(an=tn;an>=0&&an<He.length;an-=nn)if(en[He[an]])return en[He[an]]}var Mt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Et$1(en){return[en.stretch,en.style,en.weight,en.family].join(" ")}function Rt(en){return en.trimLeft()}function Dt(en,He){for(var tn=0;tn<en.length;){if(en.charAt(tn)===He)return[en.substring(0,tn),en.substring(tn+1)];tn+=1}return null}function Tt(en){var He=en.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return He===null?null:[He[0],en.substring(He[0].length)]}var zt$1,Ut$1,Ht,Wt,Vt$1,Gt=["times"];function Yt(en,He,tn,nn,an){var rn=4,on=Kt$1;switch(an){case E.API.image_compression.FAST:rn=1,on=Xt$1;break;case E.API.image_compression.MEDIUM:rn=6,on=Zt;break;case E.API.image_compression.SLOW:rn=9,on=$t}en=(function(dn,hn,mn,gn){for(var yn,fn=dn.length/hn,bn=new Uint8Array(dn.length+fn),Mn=[Jt$1,Xt$1,Kt$1,Zt,$t],Tn=0;Tn<fn;Tn+=1){var xn=Tn*hn,En=dn.subarray(xn,xn+hn);if(gn)bn.set(gn(En,mn,yn),xn+Tn);else{for(var Rn=Mn.length,ni=[],mi=0;mi<Rn;mi+=1)ni[mi]=Mn[mi](En,mn,yn);var bi=te(ni.concat());bn.set(ni[bi],xn+Tn)}yn=En}return bn})(en,He,Math.ceil(tn*nn/8),on);var sn=zlibSync(en,{level:rn});return E.API.__addimage__.arrayBufferToBinaryString(sn)}function Jt$1(en){var He=Array.apply([],en);return He.unshift(0),He}function Xt$1(en,He){var tn=en.length,nn=[];nn[0]=1;for(var an=0;an<tn;an+=1){var rn=en[an-He]||0;nn[an+1]=en[an]-rn+256&255}return nn}function Kt$1(en,He,tn){var nn=en.length,an=[];an[0]=2;for(var rn=0;rn<nn;rn+=1){var on=tn&&tn[rn]||0;an[rn+1]=en[rn]-on+256&255}return an}function Zt(en,He,tn){var nn=en.length,an=[];an[0]=3;for(var rn=0;rn<nn;rn+=1){var on=en[rn-He]||0,sn=tn&&tn[rn]||0;an[rn+1]=en[rn]+256-(on+sn>>>1)&255}return an}function $t(en,He,tn){var nn=en.length,an=[];an[0]=4;for(var rn=0;rn<nn;rn+=1){var on=Qt(en[rn-He]||0,tn&&tn[rn]||0,tn&&tn[rn-He]||0);an[rn+1]=en[rn]-on+256&255}return an}function Qt(en,He,tn){if(en===He&&He===tn)return en;var nn=Math.abs(He-tn),an=Math.abs(en-tn),rn=Math.abs(en+He-tn-tn);return nn<=an&&nn<=rn?en:an<=rn?He:tn}function te(en){var He=en.map(function(tn){return tn.reduce(function(nn,an){return nn+Math.abs(an)},0)});return He.indexOf(Math.min.apply(null,He))}function ee(en,He,tn){var nn=He*tn,an=Math.floor(nn/8),rn=16-(nn-8*an+tn),on=(1<<tn)-1;return ne(en,an)>>rn&on}function re$2(en,He,tn,nn){var an=tn*nn,rn=Math.floor(an/8),on=16-(an-8*rn+nn),sn=(1<<nn)-1,dn=(He&sn)<<on;(function(hn,mn,gn){if(mn+1<hn.byteLength)hn.setUint16(mn,gn,!1);else{var yn=gn>>8&255;hn.setUint8(mn,yn)}})(en,rn,ne(en,rn)&~(sn<<on)&65535|dn)}function ne(en,He){return He+1<en.byteLength?en.getUint16(He,!1):en.getUint8(He)<<8}function ie(en){var He=0;if(en[He++]!==71||en[He++]!==73||en[He++]!==70||en[He++]!==56||(en[He++]+1&253)!=56||en[He++]!==97)throw new Error("Invalid GIF 87a/89a header.");var tn=en[He++]|en[He++]<<8,nn=en[He++]|en[He++]<<8,an=en[He++],rn=an>>7,on=1<<1+(7&an);en[He++],en[He++];var sn=null,dn=null;rn&&(sn=He,dn=on,He+=3*on);var hn=!0,mn=[],gn=0,yn=null,fn=0,bn=null;for(this.width=tn,this.height=nn;hn&&He<en.length;)switch(en[He++]){case 33:switch(en[He++]){case 255:if(en[He]!==11||en[He+1]==78&&en[He+2]==69&&en[He+3]==84&&en[He+4]==83&&en[He+5]==67&&en[He+6]==65&&en[He+7]==80&&en[He+8]==69&&en[He+9]==50&&en[He+10]==46&&en[He+11]==48&&en[He+12]==3&&en[He+13]==1&&en[He+16]==0)He+=14,bn=en[He++]|en[He++]<<8,He++;else for(He+=12;;){if(!((ei=en[He++])>=0))throw Error("Invalid block size");if(ei===0)break;He+=ei}break;case 249:if(en[He++]!==4||en[He+4]!==0)throw new Error("Invalid graphics extension block.");var Mn=en[He++];gn=en[He++]|en[He++]<<8,yn=en[He++],1&Mn||(yn=null),fn=Mn>>2&7,He++;break;case 254:for(;;){if(!((ei=en[He++])>=0))throw Error("Invalid block size");if(ei===0)break;He+=ei}break;default:throw new Error("Unknown graphic control label: 0x"+en[He-1].toString(16))}break;case 44:var Tn=en[He++]|en[He++]<<8,xn=en[He++]|en[He++]<<8,En=en[He++]|en[He++]<<8,Rn=en[He++]|en[He++]<<8,ni=en[He++],mi=ni>>6&1,bi=1<<1+(7&ni),_i=sn,oi=dn,si=!1;ni>>7&&(si=!0,_i=He,oi=bi,He+=3*bi);var fi=He;for(He++;;){var ei;if(!((ei=en[He++])>=0))throw Error("Invalid block size");if(ei===0)break;He+=ei}mn.push({x:Tn,y:xn,width:En,height:Rn,has_local_palette:si,palette_offset:_i,palette_size:oi,data_offset:fi,data_length:He-fi,transparent_index:yn,interlaced:!!mi,delay:gn,disposal:fn});break;case 59:hn=!1;break;default:throw new Error("Unknown gif block: 0x"+en[He-1].toString(16))}this.numFrames=function(){return mn.length},this.loopCount=function(){return bn},this.frameInfo=function(ci){if(ci<0||ci>=mn.length)throw new Error("Frame index out of range.");return mn[ci]},this.decodeAndBlitFrameBGRA=function(ci,di){var wi=this.frameInfo(ci),Ci=wi.width*wi.height,ji=new Uint8Array(Ci);ae(en,wi.data_offset,ji,Ci);var Yi=wi.palette_offset,Pi=wi.transparent_index;Pi===null&&(Pi=256);var Fi=wi.width,$i=tn-Fi,Wi=Fi,hi=4*(wi.y*tn+wi.x),Si=4*((wi.y+wi.height)*tn+wi.x),Ni=hi,yi=4*$i;wi.interlaced===!0&&(yi+=4*tn*7);for(var Hi=8,Ui=0,Ji=ji.length;Ui<Ji;++Ui){var Oi=ji[Ui];if(Wi===0&&(Wi=Fi,(Ni+=yi)>=Si&&(yi=4*$i+4*tn*(Hi-1),Ni=hi+(Fi+$i)*(Hi<<1),Hi>>=1)),Oi===Pi)Ni+=4;else{var Ei=en[Yi+3*Oi],ea=en[Yi+3*Oi+1],vi=en[Yi+3*Oi+2];di[Ni++]=vi,di[Ni++]=ea,di[Ni++]=Ei,di[Ni++]=255}--Wi}},this.decodeAndBlitFrameRGBA=function(ci,di){var wi=this.frameInfo(ci),Ci=wi.width*wi.height,ji=new Uint8Array(Ci);ae(en,wi.data_offset,ji,Ci);var Yi=wi.palette_offset,Pi=wi.transparent_index;Pi===null&&(Pi=256);var Fi=wi.width,$i=tn-Fi,Wi=Fi,hi=4*(wi.y*tn+wi.x),Si=4*((wi.y+wi.height)*tn+wi.x),Ni=hi,yi=4*$i;wi.interlaced===!0&&(yi+=4*tn*7);for(var Hi=8,Ui=0,Ji=ji.length;Ui<Ji;++Ui){var Oi=ji[Ui];if(Wi===0&&(Wi=Fi,(Ni+=yi)>=Si&&(yi=4*$i+4*tn*(Hi-1),Ni=hi+(Fi+$i)*(Hi<<1),Hi>>=1)),Oi===Pi)Ni+=4;else{var Ei=en[Yi+3*Oi],ea=en[Yi+3*Oi+1],vi=en[Yi+3*Oi+2];di[Ni++]=Ei,di[Ni++]=ea,di[Ni++]=vi,di[Ni++]=255}--Wi}}}function ae(en,He,tn,nn){for(var an=en[He++],rn=1<<an,on=rn+1,sn=on+1,dn=an+1,hn=(1<<dn)-1,mn=0,gn=0,yn=0,fn=en[He++],bn=new Int32Array(4096),Mn=null;;){for(;mn<16&&fn!==0;)gn|=en[He++]<<mn,mn+=8,fn===1?fn=en[He++]:--fn;if(mn<dn)break;var Tn=gn&hn;if(gn>>=dn,mn-=dn,Tn!==rn){if(Tn===on)break;for(var xn=Tn<sn?Tn:Mn,En=0,Rn=xn;Rn>rn;)Rn=bn[Rn]>>8,++En;var ni=Rn;if(yn+En+(xn!==Tn?1:0)>nn)return void o$2.log("Warning, gif stream longer than expected.");tn[yn++]=ni;var mi=yn+=En;for(xn!==Tn&&(tn[yn++]=ni),Rn=xn;En--;)Rn=bn[Rn],tn[--mi]=255&Rn,Rn>>=8;Mn!==null&&sn<4096&&(bn[sn++]=Mn<<8|ni,sn>=hn+1&&dn<12&&(++dn,hn=hn<<1|1)),Mn=Tn}else sn=on+1,hn=(1<<(dn=an+1))-1,Mn=null}return yn!==nn&&o$2.log("Warning, gif stream shorter than expected."),tn}function oe(en){var He,tn,nn,an,rn,on=Math.floor,sn=new Array(64),dn=new Array(64),hn=new Array(64),mn=new Array(64),gn=new Array(65535),yn=new Array(65535),fn=new Array(64),bn=new Array(64),Mn=[],Tn=0,xn=7,En=new Array(64),Rn=new Array(64),ni=new Array(64),mi=new Array(256),bi=new Array(2048),_i=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],oi=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],si=[0,1,2,3,4,5,6,7,8,9,10,11],fi=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],ei=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],ci=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],di=[0,1,2,3,4,5,6,7,8,9,10,11],wi=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ci=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ji(hi,Si){for(var Ni=0,yi=0,Hi=new Array,Ui=1;Ui<=16;Ui++){for(var Ji=1;Ji<=hi[Ui];Ji++)Hi[Si[yi]]=[],Hi[Si[yi]][0]=Ni,Hi[Si[yi]][1]=Ui,yi++,Ni++;Ni*=2}return Hi}function Yi(hi){for(var Si=hi[0],Ni=hi[1]-1;Ni>=0;)Si&1<<Ni&&(Tn|=1<<xn),Ni--,--xn<0&&(Tn==255?(Pi(255),Pi(0)):Pi(Tn),xn=7,Tn=0)}function Pi(hi){Mn.push(hi)}function Fi(hi){Pi(hi>>8&255),Pi(255&hi)}function $i(hi,Si,Ni,yi,Hi){for(var Ui,Ji=Hi[0],Oi=Hi[240],Ei=(function(Ri,ha){var qi,ca,Bi,Na,pa,Ea,ns,vs,rs,Xa,_s=0;for(rs=0;rs<8;++rs){qi=Ri[_s],ca=Ri[_s+1],Bi=Ri[_s+2],Na=Ri[_s+3],pa=Ri[_s+4],Ea=Ri[_s+5],ns=Ri[_s+6];var mo=qi+(vs=Ri[_s+7]),Is=qi-vs,$s=ca+ns,Ps=ca-ns,Ws=Bi+Ea,ps=Bi-Ea,oo=Na+pa,bs=Na-pa,As=mo+oo,ts=mo-oo,cs=$s+Ws,ws=$s-Ws;Ri[_s]=As+cs,Ri[_s+4]=As-cs;var js=.707106781*(ws+ts);Ri[_s+2]=ts+js,Ri[_s+6]=ts-js;var Ma=.382683433*((As=bs+ps)-(ws=Ps+Is)),Jo=.5411961*As+Ma,eu=1.306562965*ws+Ma,ko=.707106781*(cs=ps+Ps),fs=Is+ko,os=Is-ko;Ri[_s+5]=os+Jo,Ri[_s+3]=os-Jo,Ri[_s+1]=fs+eu,Ri[_s+7]=fs-eu,_s+=8}for(_s=0,rs=0;rs<8;++rs){qi=Ri[_s],ca=Ri[_s+8],Bi=Ri[_s+16],Na=Ri[_s+24],pa=Ri[_s+32],Ea=Ri[_s+40],ns=Ri[_s+48];var kc=qi+(vs=Ri[_s+56]),ys=qi-vs,Vo=ca+ns,ho=ca-ns,ls=Bi+Ea,ia=Bi-Ea,Fa=Na+pa,us=Na-pa,as=kc+Fa,Cs=kc-Fa,to=Vo+ls,co=Vo-ls;Ri[_s]=as+to,Ri[_s+32]=as-to;var tc=.707106781*(co+Cs);Ri[_s+16]=Cs+tc,Ri[_s+48]=Cs-tc;var Vc=.382683433*((as=us+ia)-(co=ho+ys)),Yo=.5411961*as+Vc,uc=1.306562965*co+Vc,vu=.707106781*(to=ia+ho),nc=ys+vu,Tc=ys-vu;Ri[_s+40]=Tc+Yo,Ri[_s+24]=Tc-Yo,Ri[_s+8]=nc+uc,Ri[_s+56]=nc-uc,_s++}for(rs=0;rs<64;++rs)Xa=Ri[rs]*ha[rs],fn[rs]=Xa>0?Xa+.5|0:Xa-.5|0;return fn})(hi,Si),ea=0;ea<64;++ea)bn[_i[ea]]=Ei[ea];var vi=bn[0]-Ni;Ni=bn[0],vi==0?Yi(yi[0]):(Yi(yi[yn[Ui=32767+vi]]),Yi(gn[Ui]));for(var ti=63;ti>0&&bn[ti]==0;)ti--;if(ti==0)return Yi(Ji),Ni;for(var ui,Cn=1;Cn<=ti;){for(var ki=Cn;bn[Cn]==0&&Cn<=ti;)++Cn;var Zi=Cn-ki;
43if(Zi>=16){ui=Zi>>4;for(var ta=1;ta<=ui;++ta)Yi(Oi);Zi&=15}Ui=32767+bn[Cn],Yi(Hi[(Zi<<4)+yn[Ui]]),Yi(gn[Ui]),Cn++}return ti!=63&&Yi(Ji),Ni}function Wi(hi){hi=Math.min(Math.max(hi,1),100),rn!=hi&&((function(Si){for(var Ni=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],yi=0;yi<64;yi++){var Hi=on((Ni[yi]*Si+50)/100);Hi=Math.min(Math.max(Hi,1),255),sn[_i[yi]]=Hi}for(var Ui=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ji=0;Ji<64;Ji++){var Oi=on((Ui[Ji]*Si+50)/100);Oi=Math.min(Math.max(Oi,1),255),dn[_i[Ji]]=Oi}for(var Ei=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ea=0,vi=0;vi<8;vi++)for(var ti=0;ti<8;ti++)hn[ea]=1/(sn[_i[ea]]*Ei[vi]*Ei[ti]*8),mn[ea]=1/(dn[_i[ea]]*Ei[vi]*Ei[ti]*8),ea++})(hi<50?Math.floor(5e3/hi):Math.floor(200-2*hi)),rn=hi)}this.encode=function(hi,Si){Si&&Wi(Si),Mn=new Array,Tn=0,xn=7,Fi(65496),Fi(65504),Fi(16),Pi(74),Pi(70),Pi(73),Pi(70),Pi(0),Pi(1),Pi(1),Pi(0),Fi(1),Fi(1),Pi(0),Pi(0),(function(){Fi(65499),Fi(132),Pi(0);for(var ca=0;ca<64;ca++)Pi(sn[ca]);Pi(1);for(var Bi=0;Bi<64;Bi++)Pi(dn[Bi])})(),(function(ca,Bi){Fi(65472),Fi(17),Pi(8),Fi(Bi),Fi(ca),Pi(3),Pi(1),Pi(17),Pi(0),Pi(2),Pi(17),Pi(1),Pi(3),Pi(17),Pi(1)})(hi.width,hi.height),(function(){Fi(65476),Fi(418),Pi(0);for(var ca=0;ca<16;ca++)Pi(oi[ca+1]);for(var Bi=0;Bi<=11;Bi++)Pi(si[Bi]);Pi(16);for(var Na=0;Na<16;Na++)Pi(fi[Na+1]);for(var pa=0;pa<=161;pa++)Pi(ei[pa]);Pi(1);for(var Ea=0;Ea<16;Ea++)Pi(ci[Ea+1]);for(var ns=0;ns<=11;ns++)Pi(di[ns]);Pi(17);for(var vs=0;vs<16;vs++)Pi(wi[vs+1]);for(var rs=0;rs<=161;rs++)Pi(Ci[rs])})(),Fi(65498),Fi(12),Pi(3),Pi(1),Pi(0),Pi(2),Pi(17),Pi(3),Pi(17),Pi(0),Pi(63),Pi(0);var Ni=0,yi=0,Hi=0;Tn=0,xn=7,this.encode.displayName="_encode_";for(var Ui,Ji,Oi,Ei,ea,vi,ti,ui,Cn,ki=hi.data,Zi=hi.width,ta=hi.height,Ri=4*Zi,ha=0;ha<ta;){for(Ui=0;Ui<Ri;){for(ea=Ri*ha+Ui,ti=-1,ui=0,Cn=0;Cn<64;Cn++)vi=ea+(ui=Cn>>3)*Ri+(ti=4*(7&Cn)),ha+ui>=ta&&(vi-=Ri*(ha+1+ui-ta)),Ui+ti>=Ri&&(vi-=Ui+ti-Ri+4),Ji=ki[vi++],Oi=ki[vi++],Ei=ki[vi++],En[Cn]=(bi[Ji]+bi[Oi+256|0]+bi[Ei+512|0]>>16)-128,Rn[Cn]=(bi[Ji+768|0]+bi[Oi+1024|0]+bi[Ei+1280|0]>>16)-128,ni[Cn]=(bi[Ji+1280|0]+bi[Oi+1536|0]+bi[Ei+1792|0]>>16)-128;Ni=$i(En,hn,Ni,He,nn),yi=$i(Rn,mn,yi,tn,an),Hi=$i(ni,mn,Hi,tn,an),Ui+=32}ha+=8}if(xn>=0){var qi=[];qi[1]=xn+1,qi[0]=(1<<xn+1)-1,Yi(qi)}return Fi(65497),new Uint8Array(Mn)},en=en||50,(function(){for(var hi=String.fromCharCode,Si=0;Si<256;Si++)mi[Si]=hi(Si)})(),He=ji(oi,si),tn=ji(ci,di),nn=ji(fi,ei),an=ji(wi,Ci),(function(){for(var hi=1,Si=2,Ni=1;Ni<=15;Ni++){for(var yi=hi;yi<Si;yi++)yn[32767+yi]=Ni,gn[32767+yi]=[],gn[32767+yi][1]=Ni,gn[32767+yi][0]=yi;for(var Hi=-(Si-1);Hi<=-hi;Hi++)yn[32767+Hi]=Ni,gn[32767+Hi]=[],gn[32767+Hi][1]=Ni,gn[32767+Hi][0]=Si-1+Hi;hi<<=1,Si<<=1}})(),(function(){for(var hi=0;hi<256;hi++)bi[hi]=19595*hi,bi[hi+256|0]=38470*hi,bi[hi+512|0]=7471*hi+32768,bi[hi+768|0]=-11059*hi,bi[hi+1024|0]=-21709*hi,bi[hi+1280|0]=32768*hi+8421375,bi[hi+1536|0]=-27439*hi,bi[hi+1792|0]=-5329*hi})(),Wi(en)}function se(en,He){if(this.pos=0,this.buffer=en,this.datav=new DataView(en.buffer),this.is_with_alpha=!!He,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ue(en){function He(si){if(!si)throw Error("assert :P")}function tn(si,fi,ei){for(var ci=0;4>ci;
vendor: 27,058 bytes, line 43
43ci++)if(si[fi+ci]!=ei.charCodeAt(ci))return!0;return!1}function nn(si,fi,ei,ci,di){for(var wi=0;wi<di;wi++)si[fi+wi]=ei[ci+wi]}function an(si,fi,ei,ci){for(var di=0;di<ci;di++)si[fi+di]=ei}function rn(si){return new Int32Array(si)}function on(si,fi){for(var ei=[],ci=0;ci<si;ci++)ei.push(new fi);return ei}function sn(si,fi){var ei=[];return(function ci(di,wi,Ci){for(var ji=Ci[wi],Yi=0;Yi<ji&&(di.push(Ci.length>wi+1?[]:new fi),!(Ci.length<wi+1));Yi++)ci(di[Yi],wi+1,Ci)})(ei,0,si),ei}var dn=function(){var si=this;function fi(wn,Sn){for(var On=1<<Sn-1>>>0;wn&On;)On>>>=1;return On?(wn&On-1)+On:wn}function ei(wn,Sn,On,ri,Vn){He(!(ri%On));do wn[Sn+(ri-=On)]=Vn;while(0<ri)}function ci(wn,Sn,On,ri,Vn){if(He(2328>=Vn),512>=Vn)var Li=rn(512);else if((Li=rn(Vn))==null)return 0;return(function(Ti,Ai,xi,Vi,aa,ga){var zi,da,fa=Ai,$a=1<<xi,va=rn(16),Ta=rn(16);for(He(aa!=0),He(Vi!=null),He(Ti!=null),He(0<xi),da=0;da<aa;++da){if(15<Vi[da])return 0;++va[Vi[da]]}if(va[0]==aa)return 0;for(Ta[1]=0,zi=1;15>zi;++zi){if(va[zi]>1<<zi)return 0;Ta[zi+1]=Ta[zi]+va[zi]}for(da=0;da<aa;++da)zi=Vi[da],0<Vi[da]&&(ga[Ta[zi]++]=da);if(Ta[15]==1)return(Vi=new di).g=0,Vi.value=ga[0],ei(Ti,fa,1,$a,Vi),$a;var Ra,es=-1,Za=$a-1,Ns=0,ks=1,Xs=1,Ss=1<<xi;for(da=0,zi=1,aa=2;zi<=xi;++zi,aa<<=1){if(ks+=Xs<<=1,0>(Xs-=va[zi]))return 0;for(;0<va[zi];--va[zi])(Vi=new di).g=zi,Vi.value=ga[da++],ei(Ti,fa+Ns,aa,Ss,Vi),Ns=fi(Ns,zi)}for(zi=xi+1,aa=2;15>=zi;++zi,aa<<=1){if(ks+=Xs<<=1,0>(Xs-=va[zi]))return 0;for(;0<va[zi];--va[zi]){if(Vi=new di,(Ns&Za)!=es){for(fa+=Ss,Ra=1<<(es=zi)-xi;15>es&&!(0>=(Ra-=va[es]));)++es,Ra<<=1;$a+=Ss=1<<(Ra=es-xi),Ti[Ai+(es=Ns&Za)].g=Ra+xi,Ti[Ai+es].value=fa-Ai-es}Vi.g=zi-xi,Vi.value=ga[da++],ei(Ti,fa+(Ns>>xi),aa,Ss,Vi),Ns=fi(Ns,zi)}}return ks!=2*Ta[15]-1?0:$a})(wn,Sn,On,ri,Vn,Li)}function di(){this.value=this.g=0}function wi(){this.value=this.g=0}function Ci(){this.G=on(5,di),this.H=rn(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=on(Lu,wi)}function ji(wn,Sn,On,ri){He(wn!=null),He(Sn!=null),He(2147483648>ri),wn.Ca=254,wn.I=0,wn.b=-8,wn.Ka=0,wn.oa=Sn,wn.pa=On,wn.Jd=Sn,wn.Yc=On+ri,wn.Zc=4<=ri?On+ri-4+1:On,Ji(wn)}function Yi(wn,Sn){for(var On=0;0<Sn--;)On|=Ei(wn,128)<<Sn;return On}function Pi(wn,Sn){var On=Yi(wn,Sn);return Oi(wn)?-On:On}function Fi(wn,Sn,On,ri){var Vn,Li=0;for(He(wn!=null),He(Sn!=null),He(4294967288>ri),wn.Sb=ri,wn.Ra=0,wn.u=0,wn.h=0,4<ri&&(ri=4),Vn=0;Vn<ri;++Vn)Li+=Sn[On+Vn]<<8*Vn;wn.Ra=Li,wn.bb=ri,wn.oa=Sn,wn.pa=On}function $i(wn){for(;8<=wn.u&&wn.bb<wn.Sb;)wn.Ra>>>=8,wn.Ra+=wn.oa[wn.pa+wn.bb]<<uu-8>>>0,++wn.bb,wn.u-=8;yi(wn)&&(wn.h=1,wn.u=0)}function Wi(wn,Sn){if(He(0<=Sn),!wn.h&&Sn<=Zl){var On=Ni(wn)&Wo[Sn];return wn.u+=Sn,$i(wn),On}return wn.h=1,wn.u=0}function hi(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Si(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Ni(wn){return wn.Ra>>>(wn.u&uu-1)>>>0}function yi(wn){return He(wn.bb<=wn.Sb),wn.h||wn.bb==wn.Sb&&wn.u>uu}function Hi(wn,Sn){wn.u=Sn,wn.h=yi(wn)}function Ui(wn){wn.u>=Wu&&(He(wn.u>=Wu),$i(wn))}function Ji(wn){He(wn!=null&&wn.oa!=null),wn.pa<wn.Zc?(wn.I=(wn.oa[wn.pa++]|wn.I<<8)>>>0,wn.b+=8):(He(wn!=null&&wn.oa!=null),wn.pa<wn.Yc?(wn.b+=8,wn.I=wn.oa[wn.pa++]|wn.I<<8):wn.Ka?wn.b=0:(wn.I<<=8,wn.b+=8,wn.Ka=1))}function Oi(wn){return Yi(wn,1)}function Ei(wn,Sn){var On=wn.Ca;0>wn.b&&Ji(wn);var ri=wn.b,Vn=On*Sn>>>8,Li=(wn.I>>>ri>Vn)+0;for(Li?(On-=Vn,wn.I-=Vn+1<<ri>>>0):On=Vn+1,ri=On,Vn=0;256<=ri;)Vn+=8,ri>>=8;return ri=7^Vn+vc[ri],wn.b-=ri,wn.Ca=(On<<ri)-1,Li}function ea(wn,Sn,On){wn[Sn+0]=On>>24&255,wn[Sn+1]=On>>16&255,wn[Sn+2]=On>>8&255,wn[Sn+3]=255&On}function vi(wn,Sn){return wn[Sn+0]|wn[Sn+1]<<8}function ti(wn,Sn){return vi(wn,Sn)|wn[Sn+2]<<16}function ui(wn,Sn){return vi(wn,Sn)|vi(wn,Sn+2)<<16}function Cn(wn,Sn){var On=1<<Sn;return He(wn!=null),He(0<Sn),wn.X=rn(On),wn.X==null?0:(wn.Mb=32-Sn,wn.Xa=Sn,1)}function ki(wn,Sn){He(wn!=null),He(Sn!=null),He(wn.Xa==Sn.Xa),nn(Sn.X,0,wn.X,0,1<<Sn.Xa)}function Zi(){this.X=[],this.Xa=this.Mb=0}function ta(wn,Sn,On,ri){He(On!=null),He(ri!=null);var Vn=On[0],Li=ri[0];return Vn==0&&(Vn=(wn*Li+Sn/2)/Sn),Li==0&&(Li=(Sn*Vn+wn/2)/wn),0>=Vn||0>=Li?0:(On[0]=Vn,ri[0]=Li,1)}function Ri(wn,Sn){return wn+(1<<Sn)-1>>>Sn}function ha(wn,Sn){return((4278255360&wn)+(4278255360&Sn)>>>0&4278255360)+((16711935&wn)+(16711935&Sn)>>>0&16711935)>>>0}function qi(wn,Sn){si[Sn]=function(On,ri,Vn,Li,Ti,Ai,xi){var Vi;for(Vi=0;Vi<Ti;++Vi){var aa=si[wn](Ai[xi+Vi-1],Vn,Li+Vi);Ai[xi+Vi]=ha(On[ri+Vi],aa)}}}function ca(){this.ud=this.hd=this.jd=0}function Bi(wn,Sn){return((4278124286&(wn^Sn))>>>1)+(wn&Sn)>>>0}function Na(wn){return 0<=wn&&256>wn?wn:0>wn?0:255<wn?255:void 0}function pa(wn,Sn){return Na(wn+(wn-Sn+.5>>1))}function Ea(wn,Sn,On){return Math.abs(Sn-On)-Math.abs(wn-On)}function ns(wn,Sn,On,ri,Vn,Li,Ti){for(ri=Li[Ti-1],On=0;On<Vn;++On)Li[Ti+On]=ri=ha(wn[Sn+On],ri)}function vs(wn,Sn,On,ri,Vn){var Li;for(Li=0;Li<On;++Li){var Ti=wn[Sn+Li],Ai=Ti>>8&255,xi=16711935&(xi=(xi=16711935&Ti)+((Ai<<16)+Ai));ri[Vn+Li]=(4278255360&Ti)+xi>>>0}}function rs(wn,Sn){Sn.jd=255&wn,Sn.hd=wn>>8&255,Sn.ud=wn>>16&255}function Xa(wn,Sn,On,ri,Vn,Li){var Ti;for(Ti=0;Ti<ri;++Ti){var Ai=Sn[On+Ti],xi=Ai>>>8,Vi=Ai,aa=255&(aa=(aa=Ai>>>16)+((wn.jd<<24>>24)*(xi<<24>>24)>>>5));Vi=255&(Vi=(Vi+=(wn.hd<<24>>24)*(xi<<24>>24)>>>5)+((wn.ud<<24>>24)*(aa<<24>>24)>>>5)),Vn[Li+Ti]=(4278255360&Ai)+(aa<<16)+Vi}}function _s(wn,Sn,On,ri,Vn){si[Sn]=function(Li,Ti,Ai,xi,Vi,aa,ga,zi,da){for(xi=ga;xi<zi;++xi)for(ga=0;ga<da;++ga)Vi[aa++]=Vn(Ai[ri(Li[Ti++])])},si[wn]=function(Li,Ti,Ai,xi,Vi,aa,ga){var zi=8>>Li.b,da=Li.Ea,fa=Li.K[0],$a=Li.w;if(8>zi)for(Li=(1<<Li.b)-1,$a=(1<<zi)-1;Ti<Ai;++Ti){var va,Ta=0;for(va=0;va<da;++va)va&Li||(Ta=ri(xi[Vi++])),aa[ga++]=Vn(fa[Ta&$a]),Ta>>=zi}else si["VP8LMapColor"+On](xi,Vi,fa,$a,aa,ga,Ti,Ai,da)}}function mo(wn,Sn,On,ri,Vn){for(On=Sn+On;Sn<On;){var Li=wn[Sn++];ri[Vn++]=Li>>16&255,ri[Vn++]=Li>>8&255,ri[Vn++]=255&Li}}function Is(wn,Sn,On,ri,Vn){for(On=Sn+On;Sn<On;){var Li=wn[Sn++];ri[Vn++]=Li>>16&255,ri[Vn++]=Li>>8&255,ri[Vn++]=255&Li,ri[Vn++]=Li>>24&255}}function $s(wn,Sn,On,ri,Vn){for(On=Sn+On;Sn<On;){var Li=(Ti=wn[Sn++])>>16&240|Ti>>12&15,Ti=240&Ti|Ti>>28&15;ri[Vn++]=Li,ri[Vn++]=Ti}}function Ps(wn,Sn,On,ri,Vn){for(On=Sn+On;Sn<On;){var Li=(Ti=wn[Sn++])>>16&248|Ti>>13&7,Ti=Ti>>5&224|Ti>>3&31;ri[Vn++]=Li,ri[Vn++]=Ti}}function Ws(wn,Sn,On,ri,Vn){for(On=Sn+On;Sn<On;){var Li=wn[Sn++];ri[Vn++]=255&Li,ri[Vn++]=Li>>8&255,ri[Vn++]=Li>>16&255}}function ps(wn,Sn,On,ri,Vn,Li){if(Li==0)for(On=Sn+On;Sn<On;)ea(ri,((Li=wn[Sn++])[0]>>24|Li[1]>>8&65280|Li[2]<<8&16711680|Li[3]<<24)>>>0),Vn+=32;else nn(ri,Vn,wn,Sn,On)}function oo(wn,Sn){si[Sn][0]=si[wn+"0"],si[Sn][1]=si[wn+"1"],si[Sn][2]=si[wn+"2"],si[Sn][3]=si[wn+"3"],si[Sn][4]=si[wn+"4"],si[Sn][5]=si[wn+"5"],si[Sn][6]=si[wn+"6"],si[Sn][7]=si[wn+"7"],si[Sn][8]=si[wn+"8"],si[Sn][9]=si[wn+"9"],si[Sn][10]=si[wn+"10"],si[Sn][11]=si[wn+"11"],si[Sn][12]=si[wn+"12"],si[Sn][13]=si[wn+"13"],si[Sn][14]=si[wn+"0"],si[Sn][15]=si[wn+"0"]}function bs(wn){return wn==ph||wn==Ed||wn==Od||wn==un}function As(){this.eb=[],this.size=this.A=this.fb=0}function ts(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function cs(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new As,this.f.kb=new ts,this.sd=null}function ws(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function js(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Ma(wn){return alert("todo:WebPSamplerProcessPlane"),wn.T}function Jo(wn,Sn){var On=wn.T,ri=Sn.ba.f.RGBA,Vn=ri.eb,Li=ri.fb+wn.ka*ri.A,Ti=Mc[Sn.ba.S],Ai=wn.y,xi=wn.O,Vi=wn.f,aa=wn.N,ga=wn.ea,zi=wn.W,da=Sn.cc,fa=Sn.dc,$a=Sn.Mc,va=Sn.Nc,Ta=wn.ka,Ra=wn.ka+wn.T,es=wn.U,Za=es+1>>1;for(Ta==0?Ti(Ai,xi,null,null,Vi,aa,ga,zi,Vi,aa,ga,zi,Vn,Li,null,null,es):(Ti(Sn.ec,Sn.fc,Ai,xi,da,fa,$a,va,Vi,aa,ga,zi,Vn,Li-ri.A,Vn,Li,es),++On);Ta+2<Ra;Ta+=2)da=Vi,fa=aa,$a=ga,va=zi,aa+=wn.Rc,zi+=wn.Rc,Li+=2*ri.A,Ti(Ai,(xi+=2*wn.fa)-wn.fa,Ai,xi,da,fa,$a,va,Vi,aa,ga,zi,Vn,Li-ri.A,Vn,Li,es);return xi+=wn.fa,wn.j+Ra<wn.o?(nn(Sn.ec,Sn.fc,Ai,xi,es),nn(Sn.cc,Sn.dc,Vi,aa,Za),nn(Sn.Mc,Sn.Nc,ga,zi,Za),On--):1&Ra||Ti(Ai,xi,null,null,Vi,aa,ga,zi,Vi,aa,ga,zi,Vn,Li+ri.A,null,null,es),On}function eu(wn,Sn,On){var ri=wn.F,Vn=[wn.J];if(ri!=null){var Li=wn.U,Ti=Sn.ba.S,Ai=Ti==sh||Ti==Od;Sn=Sn.ba.f.RGBA;var xi=[0],Vi=wn.ka;xi[0]=wn.T,wn.Kb&&(Vi==0?--xi[0]:(--Vi,Vn[0]-=wn.width),wn.j+wn.ka+wn.T==wn.o&&(xi[0]=wn.o-wn.j-Vi));var aa=Sn.eb;Vi=Sn.fb+Vi*Sn.A,wn=xh(ri,Vn[0],wn.width,Li,xi,aa,Vi+(Ai?0:3),Sn.A),He(On==xi),wn&&bs(Ti)&&Nu(aa,Vi,Ai,Li,xi,Sn.A)}return 0}function ko(wn){var Sn=wn.ma,On=Sn.ba.S,ri=11>On,Vn=On==ih||On==ah||On==sh||On==_h||On==12||bs(On);if(Sn.memory=null,Sn.Ib=null,Sn.Jb=null,Sn.Nd=null,!yd(Sn.Oa,wn,Vn?11:12))return 0;if(Vn&&bs(On)&&lu(),wn.da)alert("todo:use_scaling");else{if(ri){if(Sn.Ib=Ma,wn.Kb){if(On=wn.U+1>>1,Sn.memory=rn(wn.U+2*On),Sn.memory==null)return 0;Sn.ec=Sn.memory,Sn.fc=0,Sn.cc=Sn.ec,Sn.dc=Sn.fc+wn.U,Sn.Mc=Sn.cc,Sn.Nc=Sn.dc+On,Sn.Ib=Jo,lu()}}else alert("todo:EmitYUV");Vn&&(Sn.Jb=eu,ri&&_c())}if(ri&&!lf){for(wn=0;256>wn;++wn)Sf[wn]=89858*(wn-128)+Id>>zh,rf[wn]=-22014*(wn-128)+Id,Df[wn]=-45773*(wn-128),Tf[wn]=113618*(wn-128)+Id>>zh;for(wn=qu;wn<nf;++wn)Sn=76283*(wn-16)+Id>>zh,Pf[wn-qu]=Us(Sn,255),Nf[wn-qu]=Us(Sn+8>>4,15);lf=1}return 1}function fs(wn){var Sn=wn.ma,On=wn.U,ri=wn.T;return He(!(1&wn.ka)),0>=On||0>=ri?0:(On=Sn.Ib(wn,Sn),Sn.Jb!=null&&Sn.Jb(wn,Sn,On),Sn.Dc+=On,1)}function os(wn){wn.ma.memory=null}function kc(wn,Sn,On,ri){return Wi(wn,8)!=47?0:(Sn[0]=Wi(wn,14)+1,On[0]=Wi(wn,14)+1,ri[0]=Wi(wn,1),Wi(wn,3)!=0?0:!wn.h)}function ys(wn,Sn){if(4>wn)return wn+1;var On=wn-2>>1;return(2+(1&wn)<<On)+Wi(Sn,On)+1}function Vo(wn,Sn){return 120<Sn?Sn-120:1<=(On=((On=Gi[Sn-1])>>4)*wn+(8-(15&On)))?On:1;var On}function ho(wn,Sn,On){var ri=Ni(On),Vn=wn[Sn+=255&ri].g-8;return 0<Vn&&(Hi(On,On.u+8),ri=Ni(On),Sn+=wn[Sn].value,Sn+=ri&(1<<Vn)-1),Hi(On,On.u+wn[Sn].g),wn[Sn].value}function ls(wn,Sn,On){return On.g+=wn.g,On.value+=wn.value<<Sn>>>0,He(8>=On.g),wn.g}function ia(wn,Sn,On){var ri=wn.xc;return He((Sn=ri==0?0:wn.vc[wn.md*(On>>ri)+(Sn>>ri)])<wn.Wb),wn.Ya[Sn]}function Fa(wn,Sn,On,ri){var Vn=wn.ab,Li=wn.c*Sn,Ti=wn.C;Sn=Ti+Sn;var Ai=On,xi=ri;for(ri=wn.Ta,On=wn.Ua;0<Vn--;){var Vi=wn.gc[Vn],aa=Ti,ga=Sn,zi=Ai,da=xi,fa=(xi=ri,Ai=On,Vi.Ea);switch(He(aa<ga),He(ga<=Vi.nc),Vi.hc){case 2:Uo(zi,da,(ga-aa)*fa,xi,Ai);break;case 0:var $a=aa,va=ga,Ta=xi,Ra=Ai,es=(Ss=Vi).Ea;$a==0&&(du(zi,da,null,null,1,Ta,Ra),ns(zi,da+1,0,0,es-1,Ta,Ra+1),da+=es,Ra+=es,++$a);for(var Za=1<<Ss.b,Ns=Za-1,ks=Ri(es,Ss.b),Xs=Ss.K,Ss=Ss.w+($a>>Ss.b)*ks;$a<va;){var ro=Xs,gc=Ss,Bs=1;for(hc(zi,da,Ta,Ra-es,1,Ta,Ra);Bs<es;){var Ts=(Bs&~Ns)+Za;Ts>es&&(Ts=es),(0,Su[ro[gc++]>>8&15])(zi,da+ +Bs,Ta,Ra+Bs-es,Ts-Bs,Ta,Ra+Bs),Bs=Ts}da+=es,Ra+=es,++$a&Ns||(Ss+=ks)}ga!=Vi.nc&&nn(xi,Ai-fa,xi,Ai+(ga-aa-1)*fa,fa);break;case 1:for(fa=zi,va=da,es=(zi=Vi.Ea)-(Ra=zi&~(Ta=(da=1<<Vi.b)-1)),$a=Ri(zi,Vi.b),Za=Vi.K,Vi=Vi.w+(aa>>Vi.b)*$a;aa<ga;){for(Ns=Za,ks=Vi,Xs=new ca,Ss=va+Ra,ro=va+zi;va<Ss;)rs(Ns[ks++],Xs),vd(Xs,fa,va,da,xi,Ai),va+=da,Ai+=da;va<ro&&(rs(Ns[ks++],Xs),vd(Xs,fa,va,es,xi,Ai),va+=es,Ai+=es),++aa&Ta||(Vi+=$a)}break;case 3:if(zi==xi&&da==Ai&&0<Vi.b){for(va=xi,zi=fa=Ai+(ga-aa)*fa-(Ra=(ga-aa)*Ri(Vi.Ea,Vi.b)),da=xi,Ta=Ai,$a=[],Ra=(es=Ra)-1;0<=Ra;--Ra)$a[Ra]=da[Ta+Ra];for(Ra=es-1;0<=Ra;--Ra)va[zi+Ra]=$a[Ra];hu(Vi,aa,ga,xi,fa,xi,Ai)}else hu(Vi,aa,ga,zi,da,xi,Ai)}Ai=ri,xi=On}xi!=On&&nn(ri,On,Ai,xi,Li)}function us(wn,Sn){var On=wn.V,ri=wn.Ba+wn.c*wn.C,Vn=Sn-wn.C;if(He(Sn<=wn.l.o),He(16>=Vn),0<Vn){var Li=wn.l,Ti=wn.Ta,Ai=wn.Ua,xi=Li.width;if(Fa(wn,Vn,On,ri),Vn=Ai=[Ai],He((On=wn.C)<(ri=Sn)),He(Li.v<Li.va),ri>Li.o&&(ri=Li.o),On<Li.j){var Vi=Li.j-On;On=Li.j,Vn[0]+=Vi*xi}if(On>=ri?On=0:(Vn[0]+=4*Li.v,Li.ka=On-Li.j,Li.U=Li.va-Li.v,Li.T=ri-On,On=1),On){if(Ai=Ai[0],11>(On=wn.ca).S){var aa=On.f.RGBA,ga=(ri=On.S,Vn=Li.U,Li=Li.T,Vi=aa.eb,aa.A),zi=Li;for(aa=aa.fb+wn.Ma*aa.A;0<zi--;){var da=Ti,fa=Ai,$a=Vn,va=Vi,Ta=aa;switch(ri){case mh:sd(da,fa,$a,va,Ta);break;case ih:Tu(da,fa,$a,va,Ta);break;case ph:Tu(da,fa,$a,va,Ta),Nu(va,Ta,0,$a,1,0);break;case Dh:Du(da,fa,$a,va,Ta);break;case ah:ps(da,fa,$a,va,Ta,1);break;case Ed:ps(da,fa,$a,va,Ta,1),Nu(va,Ta,0,$a,1,0);break;case sh:ps(da,fa,$a,va,Ta,0);break;case Od:ps(da,fa,$a,va,Ta,0),Nu(va,Ta,1,$a,1,0);break;case _h:fu(da,fa,$a,va,Ta);break;case un:fu(da,fa,$a,va,Ta),Lh(va,Ta,$a,1,0);break;case Vh:Ec(da,fa,$a,va,Ta);break;default:He(0)}Ai+=xi,aa+=ga}wn.Ma+=Li}else alert("todo:EmitRescaledRowsYUVA");He(wn.Ma<=On.height)}}wn.C=Sn,He(wn.C<=wn.i)}function as(wn){var Sn;if(0<wn.ua)return 0;for(Sn=0;Sn<wn.Wb;++Sn){var On=wn.Ya[Sn].G,ri=wn.Ya[Sn].H;if(0<On[1][ri[1]+0].g||0<On[2][ri[2]+0].g||0<On[3][ri[3]+0].g)return 0}return 1}function Cs(wn,Sn,On,ri,Vn,Li){if(wn.Z!=0){var Ti=wn.qd,Ai=wn.rd;for(He(Do[wn.Z]!=null);Sn<On;++Sn)Do[wn.Z](Ti,Ai,ri,Vn,ri,Vn,Li),Ti=ri,Ai=Vn,Vn+=Li;wn.qd=Ti,wn.rd=Ai}}function to(wn,Sn){var On=wn.l.ma,ri=On.Z==0||On.Z==1?wn.l.j:wn.C;if(ri=wn.C<ri?ri:wn.C,He(Sn<=wn.l.o),Sn>ri){var Vn=wn.l.width,Li=On.ca,Ti=On.tb+Vn*ri,Ai=wn.V,xi=wn.Ba+wn.c*ri,Vi=wn.gc;He(wn.ab==1),He(Vi[0].hc==3),Ho(Vi[0],ri,Sn,Ai,xi,Li,Ti),Cs(On,ri,Sn,Li,Ti,Vn)}wn.C=wn.Ma=Sn}function co(wn,Sn,On,ri,Vn,Li,Ti){var Ai=wn.$/ri,xi=wn.$%ri,Vi=wn.m,aa=wn.s,ga=On+wn.$,zi=ga;Vn=On+ri*Vn;var da=On+ri*Li,fa=280+aa.ua,$a=wn.Pb?Ai:16777216,va=0<aa.ua?aa.Wa:null,Ta=aa.wc,Ra=ga<da?ia(aa,xi,Ai):null;He(wn.C<Li),He(da<=Vn);var es=!1;e:for(;;){for(;es||ga<da;){var Za=0;if(Ai>=$a){var Ns=ga-On;He(($a=wn).Pb),$a.wd=$a.m,$a.xd=Ns,0<$a.s.ua&&ki($a.s.Wa,$a.s.vb),$a=Ai+Sa}if(xi&Ta||(Ra=ia(aa,xi,Ai)),He(Ra!=null),Ra.Qb&&(Sn[ga]=Ra.qb,es=!0),!es)if(Ui(Vi),Ra.jc){Za=Vi,Ns=Sn;var ks=ga,Xs=Ra.pd[Ni(Za)&Lu-1];He(Ra.jc),256>Xs.g?(Hi(Za,Za.u+Xs.g),Ns[ks]=Xs.value,Za=0):(Hi(Za,Za.u+Xs.g-256),He(256<=Xs.value),Za=Xs.value),Za==0&&(es=!0)}else Za=ho(Ra.G[0],Ra.H[0],Vi);if(Vi.h)break;if(es||256>Za){if(!es)if(Ra.nd)Sn[ga]=(Ra.qb|Za<<8)>>>0;else{if(Ui(Vi),es=ho(Ra.G[1],Ra.H[1],Vi),Ui(Vi),Ns=ho(Ra.G[2],Ra.H[2],Vi),ks=ho(Ra.G[3],Ra.H[3],Vi),Vi.h)break;Sn[ga]=(ks<<24|es<<16|Za<<8|Ns)>>>0}if(es=!1,++ga,++xi>=ri&&(xi=0,++Ai,Ti!=null&&Ai<=Li&&!(Ai%16)&&Ti(wn,Ai),va!=null))for(;zi<ga;)Za=Sn[zi++],va.X[(506832829*Za&4294967295)>>>va.Mb]=Za}else if(280>Za){if(Za=ys(Za-256,Vi),Ns=ho(Ra.G[4],Ra.H[4],Vi),Ui(Vi),Ns=Vo(ri,Ns=ys(Ns,Vi)),Vi.h)break;if(ga-On<Ns||Vn-ga<Za)break e;for(ks=0;ks<Za;++ks)Sn[ga+ks]=Sn[ga+ks-Ns];for(ga+=Za,xi+=Za;xi>=ri;)xi-=ri,++Ai,Ti!=null&&Ai<=Li&&!(Ai%16)&&Ti(wn,Ai);if(He(ga<=Vn),xi&Ta&&(Ra=ia(aa,xi,Ai)),va!=null)for(;zi<ga;)Za=Sn[zi++],va.X[(506832829*Za&4294967295)>>>va.Mb]=Za}else{if(!(Za<fa))break e;for(es=Za-280,He(va!=null);zi<ga;)Za=Sn[zi++],va.X[(506832829*Za&4294967295)>>>va.Mb]=Za;Za=ga,He(!(es>>>(Ns=va).Xa)),Sn[Za]=Ns.X[es],es=!0}es||He(Vi.h==yi(Vi))}if(wn.Pb&&Vi.h&&ga<Vn)He(wn.m.h),wn.a=5,wn.m=wn.wd,wn.$=wn.xd,0<wn.s.ua&&ki(wn.s.vb,wn.s.Wa);else{if(Vi.h)break e;Ti?.(wn,Ai>Li?Li:Ai),wn.a=0,wn.$=ga-On}return 1}return wn.a=3,0}function tc(wn){He(wn!=null),wn.vc=null,wn.yc=null,wn.Ya=null;var Sn=wn.Wa;Sn!=null&&(Sn.X=null),wn.vb=null,He(wn!=null)}function Vc(){var wn=new Vs;return wn==null?null:(wn.a=0,wn.xb=Ph,oo("Predictor","VP8LPredictors"),oo("Predictor","VP8LPredictors_C"),oo("PredictorAdd","VP8LPredictorsAdd"),oo("PredictorAdd","VP8LPredictorsAdd_C"),Uo=vs,vd=Xa,sd=mo,Tu=Is,fu=$s,Ec=Ps,Du=Ws,si.VP8LMapColor32b=xu,si.VP8LMapColor8b=Zc,wn)}function Yo(wn,Sn,On,ri,Vn){var Li=1,Ti=[wn],Ai=[Sn],xi=ri.m,Vi=ri.s,aa=null,ga=0;e:for(;;){if(On)for(;Li&&Wi(xi,1);){var zi=Ti,da=Ai,fa=ri,$a=1,va=fa.m,Ta=fa.gc[fa.ab],Ra=Wi(va,2);if(fa.Oc&1<<Ra)Li=0;else{switch(fa.Oc|=1<<Ra,Ta.hc=Ra,Ta.Ea=zi[0],Ta.nc=da[0],Ta.K=[null],++fa.ab,He(4>=fa.ab),Ra){case 0:case 1:Ta.b=Wi(va,3)+2,$a=Yo(Ri(Ta.Ea,Ta.b),Ri(Ta.nc,Ta.b),0,fa,Ta.K),Ta.K=Ta.K[0];break;case 3:var es,Za=Wi(va,8)+1,Ns=16<Za?0:4<Za?1:2<Za?2:3;if(zi[0]=Ri(Ta.Ea,Ns),Ta.b=Ns,es=$a=Yo(Za,1,0,fa,Ta.K)){var ks,Xs=Za,Ss=Ta,ro=1<<(8>>Ss.b),gc=rn(ro);if(gc==null)es=0;else{var Bs=Ss.K[0],Ts=Ss.w;for(gc[0]=Ss.K[0][0],ks=1;ks<1*Xs;++ks)gc[ks]=ha(Bs[Ts+ks],gc[ks-1]);for(;ks<4*ro;++ks)gc[ks]=0;Ss.K[0]=null,Ss.K[0]=gc,es=1}}$a=es;break;case 2:break;default:He(0)}Li=$a}}if(Ti=Ti[0],Ai=Ai[0],Li&&Wi(xi,1)&&!(Li=1<=(ga=Wi(xi,4))&&11>=ga)){ri.a=3;break e}var ds;if(ds=Li)t:{var oc,qs,po,Fo=ri,Lc=Ti,Rc=Ai,Xl=ga,Yc=On,Ic=Fo.m,yc=Fo.s,zs=[null],Po=1,ec=0,No=ma[Xl];n:for(;;){if(Yc&&Wi(Ic,1)){var xc=Wi(Ic,3)+2,Gu=Ri(Lc,xc),cc=Ri(Rc,xc),Xc=Gu*cc;if(!Yo(Gu,cc,0,Fo,zs))break n;for(zs=zs[0],yc.xc=xc,oc=0;oc<Xc;++oc){var Ao=zs[oc]>>8&65535;zs[oc]=Ao,Ao>=Po&&(Po=Ao+1)}}if(Ic.h)break n;for(qs=0;5>qs;++qs){var fo=$n[qs];!qs&&0<Xl&&(fo+=1<<Xl),ec<fo&&(ec=fo)}var Zo=on(Po*No,di),Fc=Po,_u=on(Fc,Ci);if(_u==null)var pu=null;else He(65536>=Fc),pu=_u;var Qc=rn(ec);if(pu==null||Qc==null||Zo==null){Fo.a=1;break n}var gu=Zo;for(oc=po=0;oc<Po;++oc){var So=pu[oc],Ko=So.G,Sc=So.H,gs=0,vn=1,Pn=0;for(qs=0;5>qs;++qs){fo=$n[qs],Ko[qs]=gu,Sc[qs]=po,!qs&&0<Xl&&(fo+=1<<Xl);i:{var In,li=fo,Di=Fo,Qi=Qc,Ca=gu,hs=po,Fs=0,Zs=Di.m,$c=Wi(Zs,1);if(an(Qi,0,0,li),$c){var bd=Wi(Zs,1)+1,Fd=Wi(Zs,1),Hf=Wi(Zs,Fd==0?1:8);Qi[Hf]=1,bd==2&&(Qi[Hf=Wi(Zs,8)]=1);var cf=1}else{var Af=rn(19),jf=Wi(Zs,4)+4;if(19<jf){Di.a=3;var yu=0;break i}for(In=0;In<jf;++In)Af[Mi[In]]=Wi(Zs,3);var uf=void 0,Nh=void 0,zf=Di,Ch=Af,df=li,Wf=Qi,Yf=0,yh=zf.m,Uf=8,qf=on(128,di);r:for(;ci(qf,0,7,Ch,19);){if(Wi(yh,1)){var $f=2+2*Wi(yh,3);if((uf=2+Wi(yh,$f))>df)break r}else uf=df;for(Nh=0;Nh<df&&uf--;){Ui(yh);var Gf=qf[0+(127&Ni(yh))];Hi(yh,yh.u+Gf.g);var Bh=Gf.value;if(16>Bh)Wf[Nh++]=Bh,Bh!=0&&(Uf=Bh);else{var Xf=Bh==16,Zf=Bh-16,Ef=kn[Zf],Of=Wi(yh,_n[Zf])+Ef;if(Nh+Of>df)break r;for(var Qf=Xf?Uf:0;0<Of--;)Wf[Nh++]=Qf}}Yf=1;break r}Yf||(zf.a=3),cf=Yf}(cf=cf&&!Zs.h)&&(Fs=ci(Ca,hs,8,Qi,li)),cf&&Fs!=0?yu=Fs:(Di.a=3,yu=0)}if(yu==0)break n;if(vn&&ai[qs]==1&&(vn=gu[po].g==0),gs+=gu[po].g,po+=yu,3>=qs){var af,Rf=Qc[0];for(af=1;af<fo;++af)Qc[af]>Rf&&(Rf=Qc[af]);Pn+=Rf}}if(So.nd=vn,So.Qb=0,vn&&(So.qb=(Ko[3][Sc[3]+0].value<<24|Ko[1][Sc[1]+0].value<<16|Ko[2][Sc[2]+0].value)>>>0,gs==0&&256>Ko[0][Sc[0]+0].value&&(So.Qb=1,So.qb+=Ko[0][Sc[0]+0].value<<8)),So.jc=!So.Qb&&6>Pn,So.jc){var hf,Vd=So;for(hf=0;hf<Lu;++hf){var vh=hf,Au=Vd.pd[vh],ff=Vd.G[0][Vd.H[0]+vh];256<=ff.value?(Au.g=ff.g+256,Au.value=ff.value):(Au.g=0,Au.value=0,vh>>=ls(ff,8,Au),vh>>=ls(Vd.G[1][Vd.H[1]+vh],16,Au),vh>>=ls(Vd.G[2][Vd.H[2]+vh],0,Au),ls(Vd.G[3][Vd.H[3]+vh],24,Au))}}}yc.vc=zs,yc.Wb=Po,yc.Ya=pu,yc.yc=Zo,ds=1;break t}ds=0}if(!(Li=ds)){ri.a=3;break e}if(0<ga){if(Vi.ua=1<<ga,!Cn(Vi.Wa,ga)){ri.a=1,Li=0;break e}}else Vi.ua=0;var If=ri,mf=Ti,Kf=Ai,wh=If.s,Yu=wh.xc;if(If.c=mf,If.i=Kf,wh.md=Ri(mf,Yu),wh.wc=Yu==0?-1:(1<<Yu)-1,On){ri.xb=Qh;break e}if((aa=rn(Ti*Ai))==null){ri.a=1,Li=0;break e}Li=(Li=co(ri,aa,0,Ti,Ai,Ai,null))&&!xi.h;break e}return Li?(Vn!=null?Vn[0]=aa:(He(aa==null),He(On)),ri.$=0,On||tc(Vi)):tc(Vi),Li}function uc(wn,Sn){var On=wn.c*wn.i,ri=On+Sn+16*Sn;return He(wn.c<=Sn),wn.V=rn(ri),wn.V==null?(wn.Ta=null,wn.Ua=0,wn.a=1,0):(wn.Ta=wn.V,wn.Ua=wn.Ba+On+Sn,1)}function vu(wn,Sn){var On=wn.C,ri=Sn-On,Vn=wn.V,Li=wn.Ba+wn.c*On;for(He(Sn<=wn.l.o);0<ri;){var Ti=16<ri?16:ri,Ai=wn.l.ma,xi=wn.l.width,Vi=xi*Ti,aa=Ai.ca,ga=Ai.tb+xi*On,zi=wn.Ta,da=wn.Ua;Fa(wn,Ti,Vn,Li),Ih(zi,da,aa,ga,Vi),Cs(Ai,On,On+Ti,aa,ga,xi),ri-=Ti,Vn+=Ti*wn.c,On+=Ti}He(On==Sn),wn.C=wn.Ma=Sn}function nc(){this.ub=this.yd=this.td=this.Rb=0}function Tc(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ku(){this.Fb=this.Bb=this.Cb=0,this.Zb=rn(4),this.Lb=rn(4)}function Jd(){this.Yb=(function(){var wn=[];return(function Sn(On,ri,Vn){for(var Li=Vn[ri],Ti=0;Ti<Li&&(On.push(Vn.length>ri+1?[]:0),!(Vn.length<ri+1));Ti++)Sn(On[Ti],ri+1,Vn)})(wn,0,[3,11]),wn})()}function ch(){this.jb=rn(3),this.Wc=sn([4,8],Jd),this.Xc=sn([4,17],Jd)}function uh(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new rn(4),this.od=new rn(4)}function Es(){this.ld=this.La=this.dd=this.tc=0}function $u(){this.Na=this.la=0}function xd(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function tu(){this.ad=rn(384),this.Za=0,this.Ob=rn(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function dd(){this.uc=this.M=this.Nb=0,this.wa=Array(new Es),this.Y=0,this.ya=Array(new tu),this.aa=0,this.l=new bo}function Xd(){this.y=rn(16),this.f=rn(8),this.ea=rn(8)}function Ju(){this.cb=this.a=0,this.sc="",this.m=new hi,this.Od=new nc,this.Kc=new Tc,this.ed=new uh,this.Qa=new Ku,this.Ic=this.$c=this.Aa=0,this.D=new dd,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=on(8,hi),this.ia=0,this.pb=on(4,xd),this.Pa=new ch,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Xd),this.Hd=0,this.rb=Array(new $u),this.sb=0,this.wa=Array(new Es),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new tu),this.L=this.aa=0,this.gd=sn([4,2],Es),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Us(wn,Sn){return 0>wn?0:wn>Sn?Sn:wn}function bo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Sd(){var wn=new Ju;return wn!=null&&(wn.a=0,wn.sc="OK",wn.cb=0,wn.Xb=0,Ys||(Ys=Hs)),wn}function Bo(wn,Sn,On){return wn.a==0&&(wn.a=Sn,wn.sc=On,wn.cb=0),0}function nu(wn,Sn,On){return 3<=On&&wn[Sn+0]==157&&wn[Sn+1]==1&&wn[Sn+2]==42}function Dc(wn,Sn){if(wn==null)return 0;if(wn.a=0,wn.sc="OK",Sn==null)return Bo(wn,2,"null VP8Io passed to VP8GetHeaders()");var On=Sn.data,ri=Sn.w,Vn=Sn.ha;if(4>Vn)return Bo(wn,7,"Truncated header.");var Li=On[ri+0]|On[ri+1]<<8|On[ri+2]<<16,Ti=wn.Od;if(Ti.Rb=!(1&Li),Ti.td=Li>>1&7,Ti.yd=Li>>4&1,Ti.ub=Li>>5,3<Ti.td)return Bo(wn,3,"Incorrect keyframe parameters.");if(!Ti.yd)return Bo(wn,4,"Frame not displayable.");ri+=3,Vn-=3;var Ai=wn.Kc;if(Ti.Rb){if(7>Vn)return Bo(wn,7,"cannot parse picture header");if(!nu(On,ri,Vn))return Bo(wn,3,"Bad code word");Ai.c=16383&(On[ri+4]<<8|On[ri+3]),Ai.Td=On[ri+4]>>6,Ai.i=16383&(On[ri+6]<<8|On[ri+5]),Ai.Ud=On[ri+6]>>6,ri+=7,Vn-=7,wn.za=Ai.c+15>>4,wn.Ub=Ai.i+15>>4,Sn.width=Ai.c,Sn.height=Ai.i,Sn.Da=0,Sn.j=0,Sn.v=0,Sn.va=Sn.width,Sn.o=Sn.height,Sn.da=0,Sn.ib=Sn.width,Sn.hb=Sn.height,Sn.U=Sn.width,Sn.T=Sn.height,an((Li=wn.Pa).jb,0,255,Li.jb.length),He((Li=wn.Qa)!=null),Li.Cb=0,Li.Bb=0,Li.Fb=1,an(Li.Zb,0,0,Li.Zb.length),an(Li.Lb,0,0,Li.Lb)}if(Ti.ub>Vn)return Bo(wn,7,"bad partition length");ji(Li=wn.m,On,ri,Ti.ub),ri+=Ti.ub,Vn-=Ti.ub,Ti.Rb&&(Ai.Ld=Oi(Li),Ai.Kd=Oi(Li)),Ai=wn.Qa;var xi,Vi=wn.Pa;if(He(Li!=null),He(Ai!=null),Ai.Cb=Oi(Li),Ai.Cb){if(Ai.Bb=Oi(Li),Oi(Li)){for(Ai.Fb=Oi(Li),xi=0;4>xi;++xi)Ai.Zb[xi]=Oi(Li)?Pi(Li,7):0;for(xi=0;4>xi;++xi)Ai.Lb[xi]=Oi(Li)?Pi(Li,6):0}if(Ai.Bb)for(xi=0;3>xi;++xi)Vi.jb[xi]=Oi(Li)?Yi(Li,8):255}else Ai.Bb=0;if(Li.Ka)return Bo(wn,3,"cannot parse segment header");if((Ai=wn.ed).zd=Oi(Li),Ai.Tb=Yi(Li,6),Ai.wb=Yi(Li,3),Ai.Pc=Oi(Li),Ai.Pc&&Oi(Li)){for(Vi=0;4>Vi;++Vi)Oi(Li)&&(Ai.vd[Vi]=Pi(Li,6));for(Vi=0;4>Vi;++Vi)Oi(Li)&&(Ai.od[Vi]=Pi(Li,6))}if(wn.L=Ai.Tb==0?0:Ai.zd?1:2,Li.Ka)return Bo(wn,3,"cannot parse filter header");var aa=Vn;if(Vn=xi=ri,ri=xi+aa,Ai=aa,wn.Xb=(1<<Yi(wn.m,2))-1,aa<3*(Vi=wn.Xb))On=7;else{for(xi+=3*Vi,Ai-=3*Vi,aa=0;aa<Vi;++aa){var ga=On[Vn+0]|On[Vn+1]<<8|On[Vn+2]<<16;ga>Ai&&(ga=Ai),ji(wn.Jc[+aa],On,xi,ga),xi+=ga,Ai-=ga,Vn+=3}ji(wn.Jc[+Vi],On,xi,Ai),On=xi<ri?0:5}if(On!=0)return Bo(wn,On,"cannot parse partitions");for(On=Yi(xi=wn.m,7),Vn=Oi(xi)?Pi(xi,4):0,ri=Oi(xi)?Pi(xi,4):0,Ai=Oi(xi)?Pi(xi,4):0,Vi=Oi(xi)?Pi(xi,4):0,xi=Oi(xi)?Pi(xi,4):0,aa=wn.Qa,ga=0;4>ga;++ga){if(aa.Cb){var zi=aa.Zb[ga];aa.Fb||(zi+=On)}else{if(0<ga){wn.pb[ga]=wn.pb[0];continue}zi=On}var da=wn.pb[ga];da.Sc[0]=Wa[Us(zi+Vn,127)],da.Sc[1]=ms[Us(zi+0,127)],da.Eb[0]=2*Wa[Us(zi+ri,127)],da.Eb[1]=101581*ms[Us(zi+Ai,127)]>>16,8>da.Eb[1]&&(da.Eb[1]=8),da.Qc[0]=Wa[Us(zi+Vi,117)],da.Qc[1]=ms[Us(zi+xi,127)],da.lc=zi+xi}if(!Ti.Rb)return Bo(wn,4,"Not a key frame.");for(Oi(Li),Ti=wn.Pa,On=0;4>On;++On){for(Vn=0;8>Vn;++Vn)for(ri=0;3>ri;++ri)for(Ai=0;11>Ai;++Ai)Vi=Ei(Li,Rd[On][Vn][ri][Ai])?Yi(Li,8):Jc[On][Vn][ri][Ai],Ti.Wc[On][Vn].Yb[ri][Ai]=Vi;for(Vn=0;17>Vn;++Vn)Ti.Xc[On][Vn]=Ti.Wc[On][Xh[Vn]]}return wn.kc=Oi(Li),wn.kc&&(wn.Bd=Yi(Li,8)),wn.cb=1}function Hs(wn,Sn,On,ri,Vn,Li,Ti){var Ai=Sn[Vn].Yb[On];for(On=0;16>Vn;++Vn){if(!Ei(wn,Ai[On+0]))return Vn;for(;!Ei(wn,Ai[On+1]);)if(Ai=Sn[++Vn].Yb[0],On=0,Vn==16)return 16;var xi=Sn[Vn+1].Yb;if(Ei(wn,Ai[On+2])){var Vi=wn,aa=0;if(Ei(Vi,(zi=Ai)[(ga=On)+3]))if(Ei(Vi,zi[ga+6])){for(Ai=0,ga=2*(aa=Ei(Vi,zi[ga+8]))+(zi=Ei(Vi,zi[ga+9+aa])),aa=0,zi=eo[ga];zi[Ai];++Ai)aa+=aa+Ei(Vi,zi[Ai]);aa+=3+(8<<ga)}else Ei(Vi,zi[ga+7])?(aa=7+2*Ei(Vi,165),aa+=Ei(Vi,145)):aa=5+Ei(Vi,159);else aa=Ei(Vi,zi[ga+4])?3+Ei(Vi,zi[ga+5]):2;Ai=xi[2]}else aa=1,Ai=xi[1];xi=Ti+bc[Vn],0>(Vi=wn).b&&Ji(Vi);var ga,zi=Vi.b,da=(ga=Vi.Ca>>1)-(Vi.I>>zi)>>31;--Vi.b,Vi.Ca+=da,Vi.Ca|=1,Vi.I-=(ga+1&da)<<zi,Li[xi]=((aa^da)-da)*ri[(0<Vn)+0]}return 16}function $o(wn){var Sn=wn.rb[wn.sb-1];Sn.la=0,Sn.Na=0,an(wn.zc,0,0,wn.zc.length),wn.ja=0}function Pc(wn,Sn,On,ri,Vn){Vn=wn[Sn+On+32*ri]+(Vn>>3),wn[Sn+On+32*ri]=-256&Vn?0>Vn?0:255:Vn}function Eo(wn,Sn,On,ri,Vn,Li){Pc(wn,Sn,0,On,ri+Vn),Pc(wn,Sn,1,On,ri+Li),Pc(wn,Sn,2,On,ri-Li),Pc(wn,Sn,3,On,ri-Vn)}function Xo(wn){return(20091*wn>>16)+wn}function Hc(wn,Sn,On,ri){var Vn,Li=0,Ti=rn(16);for(Vn=0;4>Vn;++Vn){var Ai=wn[Sn+0]+wn[Sn+8],xi=wn[Sn+0]-wn[Sn+8],Vi=(35468*wn[Sn+4]>>16)-Xo(wn[Sn+12]),aa=Xo(wn[Sn+4])+(35468*wn[Sn+12]>>16);Ti[Li+0]=Ai+aa,Ti[Li+1]=xi+Vi,Ti[Li+2]=xi-Vi,Ti[Li+3]=Ai-aa,Li+=4,Sn++}for(Vn=Li=0;4>Vn;++Vn)Ai=(wn=Ti[Li+0]+4)+Ti[Li+8],xi=wn-Ti[Li+8],Vi=(35468*Ti[Li+4]>>16)-Xo(Ti[Li+12]),Pc(On,ri,0,0,Ai+(aa=Xo(Ti[Li+4])+(35468*Ti[Li+12]>>16))),Pc(On,ri,1,0,xi+Vi),Pc(On,ri,2,0,xi-Vi),Pc(On,ri,3,0,Ai-aa),Li++,ri+=32}function jc(wn,Sn,On,ri){var Vn=wn[Sn+0]+4,Li=35468*wn[Sn+4]>>16,Ti=Xo(wn[Sn+4]),Ai=35468*wn[Sn+1]>>16;Eo(On,ri,0,Vn+Ti,wn=Xo(wn[Sn+1]),Ai),Eo(On,ri,1,Vn+Li,wn,Ai),Eo(On,ri,2,Vn-Li,wn,Ai),Eo(On,ri,3,Vn-Ti,wn,Ai)}function ru(wn,Sn,On,ri,Vn){Hc(wn,Sn,On,ri),Vn&&Hc(wn,Sn+16,On,ri+4)}function no(wn,Sn,On,ri){od(wn,Sn+0,On,ri,1),od(wn,Sn+32,On,ri+128,1)}function Co(wn,Sn,On,ri){var Vn;for(wn=wn[Sn+0]+4,Vn=0;4>Vn;++Vn)for(Sn=0;4>Sn;++Sn)Pc(On,ri,Sn,Vn,wn)}function Xu(wn,Sn,On,ri){wn[Sn+0]&&_o(wn,Sn+0,On,ri),wn[Sn+16]&&_o(wn,Sn+16,On,ri+4),wn[Sn+32]&&_o(wn,Sn+32,On,ri+128),wn[Sn+48]&&_o(wn,Sn+48,On,ri+128+4)}function wu(wn,Sn,On,ri){var Vn,Li=rn(16);for(Vn=0;4>Vn;++Vn){var Ti=wn[Sn+0+Vn]+wn[Sn+12+Vn],Ai=wn[Sn+4+Vn]+wn[Sn+8+Vn],xi=wn[Sn+4+Vn]-wn[Sn+8+Vn],Vi=wn[Sn+0+Vn]-wn[Sn+12+Vn];Li[0+Vn]=Ti+Ai,Li[8+Vn]=Ti-Ai,Li[4+Vn]=Vi+xi,Li[12+Vn]=Vi-xi}for(Vn=0;4>Vn;++Vn)Ti=(wn=Li[0+4*Vn]+3)+Li[3+4*Vn],Ai=Li[1+4*Vn]+Li[2+4*Vn],xi=Li[1+4*Vn]-Li[2+4*Vn],Vi=wn-Li[3+4*Vn],On[ri+0]=Ti+Ai>>3,On[ri+16]=Vi+xi>>
vendor: 4,222 bytes, line 43
433,On[ri+32]=Ti-Ai>>3,On[ri+48]=Vi-xi>>3,ri+=64}function Eu(wn,Sn,On){var ri,Vn=Sn-32,Li=Cc,Ti=255-wn[Vn-1];for(ri=0;ri<On;++ri){var Ai,xi=Li,Vi=Ti+wn[Sn-1];for(Ai=0;Ai<On;++Ai)wn[Sn+Ai]=xi[Vi+wn[Vn+Ai]];Sn+=32}}function hd(wn,Sn){Eu(wn,Sn,4)}function Qd(wn,Sn){Eu(wn,Sn,8)}function eh(wn,Sn){Eu(wn,Sn,16)}function Qu(wn,Sn){var On;for(On=0;16>On;++On)nn(wn,Sn+32*On,wn,Sn-32,16)}function Td(wn,Sn){var On;for(On=16;0<On;--On)an(wn,Sn,wn[Sn-1],16),Sn+=32}function fc(wn,Sn,On){var ri;for(ri=0;16>ri;++ri)an(Sn,On+32*ri,wn,16)}function Dd(wn,Sn){var On,ri=16;for(On=0;16>On;++On)ri+=wn[Sn-1+32*On]+wn[Sn+On-32];fc(ri>>5,wn,Sn)}function ku(wn,Sn){var On,ri=8;for(On=0;16>On;++On)ri+=wn[Sn-1+32*On];fc(ri>>4,wn,Sn)}function fd(wn,Sn){var On,ri=8;for(On=0;16>On;++On)ri+=wn[Sn+On-32];fc(ri>>4,wn,Sn)}function bh(wn,Sn){fc(128,wn,Sn)}function ss(wn,Sn,On){return wn+2*Sn+On+2>>2}function zc(wn,Sn){var On,ri=Sn-32;for(ri=new Uint8Array([ss(wn[ri-1],wn[ri+0],wn[ri+1]),ss(wn[ri+0],wn[ri+1],wn[ri+2]),ss(wn[ri+1],wn[ri+2],wn[ri+3]),ss(wn[ri+2],wn[ri+3],wn[ri+4])]),On=0;4>On;++On)nn(wn,Sn+32*On,ri,0,ri.length)}function Mo(wn,Sn){var On=wn[Sn-1],ri=wn[Sn-1+32],Vn=wn[Sn-1+64],Li=wn[Sn-1+96];ea(wn,Sn+0,16843009*ss(wn[Sn-1-32],On,ri)),ea(wn,Sn+32,16843009*ss(On,ri,Vn)),ea(wn,Sn+64,16843009*ss(ri,Vn,Li)),ea(wn,Sn+96,16843009*ss(Vn,Li,Li))}function dh(wn,Sn){var On,ri=4;for(On=0;4>On;++On)ri+=wn[Sn+On-32]+wn[Sn-1+32*On];for(ri>>=3,On=0;4>On;++On)an(wn,Sn+32*On,ri,4)}function iu(wn,Sn){var On=wn[Sn-1+0],ri=wn[Sn-1+32],Vn=wn[Sn-1+64],Li=wn[Sn-1-32],Ti=wn[Sn+0-32],Ai=wn[Sn+1-32],xi=wn[Sn+2-32],Vi=wn[Sn+3-32];wn[Sn+0+96]=ss(ri,Vn,wn[Sn-1+96]),wn[Sn+1+96]=wn[Sn+0+64]=ss(On,ri,Vn),wn[Sn+2+96]=wn[Sn+1+64]=wn[Sn+0+32]=ss(Li,On,ri),wn[Sn+3+96]=wn[Sn+2+64]=wn[Sn+1+32]=wn[Sn+0+0]=ss(Ti,Li,On),wn[Sn+3+64]=wn[Sn+2+32]=wn[Sn+1+0]=ss(Ai,Ti,Li),wn[Sn+3+32]=wn[Sn+2+0]=ss(xi,Ai,Ti),wn[Sn+3+0]=ss(Vi,xi,Ai)}function au(wn,Sn){var On=wn[Sn+1-32],ri=wn[Sn+2-32],Vn=wn[Sn+3-32],Li=wn[Sn+4-32],Ti=wn[Sn+5-32],Ai=wn[Sn+6-32],xi=wn[Sn+7-32];wn[Sn+0+0]=ss(wn[Sn+0-32],On,ri),wn[Sn+1+0]=wn[Sn+0+32]=ss(On,ri,Vn),wn[Sn+2+0]=wn[Sn+1+32]=wn[Sn+0+64]=ss(ri,Vn,Li),wn[Sn+3+0]=wn[Sn+2+32]=wn[Sn+1+64]=wn[Sn+0+96]=ss(Vn,Li,Ti),wn[Sn+3+32]=wn[Sn+2+64]=wn[Sn+1+96]=ss(Li,Ti,Ai),wn[Sn+3+64]=wn[Sn+2+96]=ss(Ti,Ai,xi),wn[Sn+3+96]=ss(Ai,xi,xi)}function th(wn,Sn){var On=wn[Sn-1+0],ri=wn[Sn-1+32],Vn=wn[Sn-1+64],Li=wn[Sn-1-32],Ti=wn[Sn+0-32],Ai=wn[Sn+1-32],xi=wn[Sn+2-32],Vi=wn[Sn+3-32];wn[Sn+0+0]=wn[Sn+1+64]=Li+Ti+1>>1,wn[Sn+1+0]=wn[Sn+2+64]=Ti+Ai+1>>1,wn[Sn+2+0]=wn[Sn+3+64]=Ai+xi+1>>1,wn[Sn+3+0]=xi+Vi+1>>1,wn[Sn+0+96]=ss(Vn,ri,On),wn[Sn+0+64]=ss(ri,On,Li),wn[Sn+0+32]=wn[Sn+1+96]=ss(On,Li,Ti),wn[Sn+1+32]=wn[Sn+2+96]=ss(Li,Ti,Ai),wn[Sn+2+32]=wn[Sn+3+96]=ss(Ti,Ai,xi),wn[Sn+3+32]=ss(Ai,xi,Vi)}function Ou(wn,Sn){var On=wn[Sn+0-32],ri=wn[Sn+1-32],Vn=wn[Sn+2-32],Li=wn[Sn+3-32],Ti=wn[Sn+4-32],Ai=wn[Sn+5-32],xi=wn[Sn+6-32],Vi=wn[Sn+7-32];wn[Sn+0+0]=On+ri+1>>1,wn[Sn+1+0]=wn[Sn+0+64]=ri+Vn+1>>1,wn[Sn+2+0]=wn[Sn+1+64]=Vn+Li+1>>1,wn[Sn+3+0]=wn[Sn+2+64]=Li+Ti+1>>1,wn[Sn+0+32]=ss(On,ri,Vn),wn[Sn+1+32]=wn[Sn+0+96]=ss(ri,Vn,Li),wn[Sn+2+32]=wn[Sn+1+96]=ss(Vn,Li,Ti),wn[Sn+3+32]=wn[Sn+2+96]=ss(Li,Ti,Ai),wn[Sn+3+64]=ss(Ti,Ai,xi),wn[Sn+3+96]=ss(Ai,xi,Vi)}function ed(wn,Sn){var On=wn[Sn-1+0],ri=wn[Sn-1+32],Vn=wn[Sn-1+64],Li=wn[Sn-1+96];wn[Sn+0+0]=On+ri+1>>1,wn[Sn+2+0]=wn[Sn+0+32]=ri+Vn+1>>1,wn[Sn+2+32]=wn[Sn+0+64]=Vn+Li+1>>1,wn[Sn+1+0]=ss(On,ri,Vn),wn[Sn+3+0]=wn[Sn+1+32]=ss(ri,Vn,Li),wn[Sn+3+32]=wn[Sn+1+64]=ss(Vn,Li,Li),wn[Sn+3+64]=wn[Sn+2+64]=wn[Sn+0+96]=wn[Sn+1+96]=wn[Sn+2+96]=wn[Sn+3+96]=Li}function Ru(wn,Sn){var On=wn[Sn-1+0],ri=wn[Sn-1+32],Vn=wn[Sn-1+64],Li=wn[Sn-1+96],Ti=wn[Sn-1-32],Ai=wn[Sn+0-32],xi=wn[Sn+1-32],Vi=wn[Sn+2-32];wn[Sn+0+0]=wn[Sn+2+32]=On+Ti+1>>1,wn[Sn+0+32]=wn[Sn+2+64]=ri+On+1>>1,wn[Sn+0+64]=wn[Sn+2+96]=Vn+ri+1>>1,wn[Sn+0+96]=Li+Vn+1>>1,wn[Sn+3+0]=ss(Ai,xi,Vi),wn[Sn+2+0]=ss(Ti,Ai,xi),wn[Sn+1+0]=wn[Sn+3+32]=ss(On,Ti,Ai),wn[Sn+1+32]=wn[Sn+3+64]=ss(ri,On,Ti),wn[Sn+1+64]=wn[Sn+3+96]=ss(Vn,ri,On),wn[Sn+1+96]=ss(Li,Vn,ri)}function Oo(wn,Sn){var On;for(On=0;8>On;++On)nn(wn,Sn+32*On,wn,Sn-32,8)}function Iu(wn,Sn){var On;for(On=0;8>On;++On)an(wn,Sn,wn[Sn-1],8),Sn+=32}function bu(wn,Sn,On){var ri;for(ri=0;8>ri;++ri)an(Sn,On+32*ri,wn,8)}
vendor: 20,245 bytes, line 43
43function nd(wn,Sn){var On,ri=8;for(On=0;8>On;++On)ri+=wn[Sn+On-32]+wn[Sn-1+32*On];bu(ri>>4,wn,Sn)}function Fu(wn,Sn){var On,ri=4;for(On=0;8>On;++On)ri+=wn[Sn+On-32];bu(ri>>3,wn,Sn)}function Pd(wn,Sn){var On,ri=4;for(On=0;8>On;++On)ri+=wn[Sn-1+32*On];bu(ri>>3,wn,Sn)}function rd(wn,Sn){bu(128,wn,Sn)}function su(wn,Sn,On){var ri=wn[Sn-On],Vn=wn[Sn+0],Li=3*(Vn-ri)+$d[1020+wn[Sn-2*On]-wn[Sn+On]],Ti=ld[112+(Li+4>>3)];wn[Sn-On]=Cc[255+ri+ld[112+(Li+3>>3)]],wn[Sn+0]=Cc[255+Vn-Ti]}function Nd(wn,Sn,On,ri){var Vn=wn[Sn+0],Li=wn[Sn+On];return ac[255+wn[Sn-2*On]-wn[Sn-On]]>ri||ac[255+Li-Vn]>ri}function Js(wn,Sn,On,ri){return 4*ac[255+wn[Sn-On]-wn[Sn+0]]+ac[255+wn[Sn-2*On]-wn[Sn+On]]<=ri}function nh(wn,Sn,On,ri,Vn){var Li=wn[Sn-3*On],Ti=wn[Sn-2*On],Ai=wn[Sn-On],xi=wn[Sn+0],Vi=wn[Sn+On],aa=wn[Sn+2*On],ga=wn[Sn+3*On];return 4*ac[255+Ai-xi]+ac[255+Ti-Vi]>ri?0:ac[255+wn[Sn-4*On]-Li]<=Vn&&ac[255+Li-Ti]<=Vn&&ac[255+Ti-Ai]<=Vn&&ac[255+ga-aa]<=Vn&&ac[255+aa-Vi]<=Vn&&ac[255+Vi-xi]<=Vn}function mc(wn,Sn,On,ri){var Vn=2*ri+1;for(ri=0;16>ri;++ri)Js(wn,Sn+ri,On,Vn)&&su(wn,Sn+ri,On)}function ou(wn,Sn,On,ri){var Vn=2*ri+1;for(ri=0;16>ri;++ri)Js(wn,Sn+ri*On,1,Vn)&&su(wn,Sn+ri*On,1)}function Os(wn,Sn,On,ri){var Vn;for(Vn=3;0<Vn;--Vn)mc(wn,Sn+=4*On,On,ri)}function Wc(wn,Sn,On,ri){var Vn;for(Vn=3;0<Vn;--Vn)ou(wn,Sn+=4,On,ri)}function rc(wn,Sn,On,ri,Vn,Li,Ti,Ai){for(Li=2*Li+1;0<Vn--;){if(nh(wn,Sn,On,Li,Ti))if(Nd(wn,Sn,On,Ai))su(wn,Sn,On);else{var xi=wn,Vi=Sn,aa=On,ga=xi[Vi-2*aa],zi=xi[Vi-aa],da=xi[Vi+0],fa=xi[Vi+aa],$a=xi[Vi+2*aa],va=27*(Ra=$d[1020+3*(da-zi)+$d[1020+ga-fa]])+63>>7,Ta=18*Ra+63>>7,Ra=9*Ra+63>>7;xi[Vi-3*aa]=Cc[255+xi[Vi-3*aa]+Ra],xi[Vi-2*aa]=Cc[255+ga+Ta],xi[Vi-aa]=Cc[255+zi+va],xi[Vi+0]=Cc[255+da-va],xi[Vi+aa]=Cc[255+fa-Ta],xi[Vi+2*aa]=Cc[255+$a-Ra]}Sn+=ri}}function Vu(wn,Sn,On,ri,Vn,Li,Ti,Ai){for(Li=2*Li+1;0<Vn--;){if(nh(wn,Sn,On,Li,Ti))if(Nd(wn,Sn,On,Ai))su(wn,Sn,On);else{var xi=wn,Vi=Sn,aa=On,ga=xi[Vi-aa],zi=xi[Vi+0],da=xi[Vi+aa],fa=ld[112+(4+($a=3*(zi-ga))>>3)],$a=ld[112+($a+3>>3)],va=fa+1>>1;xi[Vi-2*aa]=Cc[255+xi[Vi-2*aa]+va],xi[Vi-aa]=Cc[255+ga+$a],xi[Vi+0]=Cc[255+zi-fa],xi[Vi+aa]=Cc[255+da-va]}Sn+=ri}}function md(wn,Sn,On,ri,Vn,Li){rc(wn,Sn,On,1,16,ri,Vn,Li)}function _d(wn,Sn,On,ri,Vn,Li){rc(wn,Sn,1,On,16,ri,Vn,Li)}function hh(wn,Sn,On,ri,Vn,Li){var Ti;for(Ti=3;0<Ti;--Ti)Vu(wn,Sn+=4*On,On,1,16,ri,Vn,Li)}function An(wn,Sn,On,ri,Vn,Li){var Ti;for(Ti=3;0<Ti;--Ti)Vu(wn,Sn+=4,1,On,16,ri,Vn,Li)}function gi(wn,Sn,On,ri,Vn,Li,Ti,Ai){rc(wn,Sn,Vn,1,8,Li,Ti,Ai),rc(On,ri,Vn,1,8,Li,Ti,Ai)}function Ii(wn,Sn,On,ri,Vn,Li,Ti,Ai){rc(wn,Sn,1,Vn,8,Li,Ti,Ai),rc(On,ri,1,Vn,8,Li,Ti,Ai)}function Xi(wn,Sn,On,ri,Vn,Li,Ti,Ai){Vu(wn,Sn+4*Vn,Vn,1,8,Li,Ti,Ai),Vu(On,ri+4*Vn,Vn,1,8,Li,Ti,Ai)}function ua(wn,Sn,On,ri,Vn,Li,Ti,Ai){Vu(wn,Sn+4,1,Vn,8,Li,Ti,Ai),Vu(On,ri+4,1,Vn,8,Li,Ti,Ai)}function Aa(){this.ba=new cs,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new js,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Va(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ms(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function xs(){this.ua=0,this.Wa=new Zi,this.vb=new Zi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Ci,this.yc=new di}function Vs(){this.xb=this.a=0,this.l=new bo,this.ca=new cs,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Si,this.Pb=0,this.wd=new Si,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new xs,this.ab=0,this.gc=on(4,Ms),this.Oc=0}function Rs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new bo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Qs(wn,Sn,On,ri,Vn,Li,Ti){for(wn=wn==null?0:wn[Sn+0],Sn=0;Sn<Ti;++Sn)Vn[Li+Sn]=wn+On[ri+Sn]&255,wn=Vn[Li+Sn]}function Ro(wn,Sn,On,ri,Vn,Li,Ti){var Ai;if(wn==null)Qs(null,null,On,ri,Vn,Li,Ti);else for(Ai=0;Ai<Ti;++Ai)Vn[Li+Ai]=wn[Sn+Ai]+On[ri+Ai]&255}function Qo(wn,Sn,On,ri,Vn,Li,Ti){if(wn==null)Qs(null,null,On,ri,Vn,Li,Ti);else{var Ai,xi=wn[Sn+0],Vi=xi,aa=xi;for(Ai=0;Ai<Ti;++Ai)Vi=aa+(xi=wn[Sn+Ai])-Vi,aa=On[ri+Ai]+(-256&Vi?0>Vi?0:255:Vi)&255,Vi=xi,Vn[Li+Ai]=aa}}function Lo(wn,Sn,On,ri){var Vn=Sn.width,Li=Sn.o;if(He(wn!=null&&Sn!=null),0>On||0>=ri||On+ri>Li)return null;if(!wn.Cc){if(wn.ga==null){var Ti;if(wn.ga=new Rs,(Ti=wn.ga==null)||(Ti=Sn.width*Sn.o,He(wn.Gb.length==0),wn.Gb=rn(Ti),wn.Uc=0,wn.Gb==null?Ti=0:(wn.mb=wn.Gb,wn.nb=wn.Uc,wn.rc=null,Ti=1),Ti=!Ti),!Ti){Ti=wn.ga;var Ai=wn.Fa,xi=wn.P,Vi=wn.qc,aa=wn.mb,ga=wn.nb,zi=xi+1,da=Vi-1,fa=Ti.l;if(He(Ai!=null&&aa!=null&&Sn!=null),Do[0]=null,Do[1]=Qs,Do[2]=Ro,Do[3]=Qo,Ti.ca=aa,Ti.tb=ga,Ti.c=Sn.width,Ti.i=Sn.height,He(0<Ti.c&&0<Ti.i),1>=Vi)Sn=0;else if(Ti.$a=3&Ai[xi+0],Ti.Z=Ai[xi+0]>>2&3,Ti.Lc=Ai[xi+0]>>4&3,xi=Ai[xi+0]>>6&3,0>Ti.$a||1<Ti.$a||4<=Ti.Z||1<Ti.Lc||xi)Sn=0;else if(fa.put=fs,fa.ac=ko,fa.bc=os,fa.ma=Ti,fa.width=Sn.width,fa.height=Sn.height,fa.Da=Sn.Da,fa.v=Sn.v,fa.va=Sn.va,fa.j=Sn.j,fa.o=Sn.o,Ti.$a)e:{He(Ti.$a==1),Sn=Vc();t:for(;;){if(Sn==null){Sn=0;break e}if(He(Ti!=null),Ti.mc=Sn,Sn.c=Ti.c,Sn.i=Ti.i,Sn.l=Ti.l,Sn.l.ma=Ti,Sn.l.width=Ti.c,Sn.l.height=Ti.i,Sn.a=0,Fi(Sn.m,Ai,zi,da),!Yo(Ti.c,Ti.i,1,Sn,null)||(Sn.ab==1&&Sn.gc[0].hc==3&&as(Sn.s)?(Ti.ic=1,Ai=Sn.c*Sn.i,Sn.Ta=null,Sn.Ua=0,Sn.V=rn(Ai),Sn.Ba=0,Sn.V==null?(Sn.a=1,Sn=0):Sn=1):(Ti.ic=0,Sn=uc(Sn,Ti.c)),!Sn))break t;Sn=1;break e}Ti.mc=null,Sn=0}else Sn=da>=Ti.c*Ti.i;Ti=!Sn}if(Ti)return null;wn.ga.Lc!=1?wn.Ga=0:ri=Li-On}He(wn.ga!=null),He(On+ri<=Li);e:{if(Sn=(Ai=wn.ga).c,Li=Ai.l.o,Ai.$a==0){if(zi=wn.rc,da=wn.Vc,fa=wn.Fa,xi=wn.P+1+On*Sn,Vi=wn.mb,aa=wn.nb+On*Sn,He(xi<=wn.P+wn.qc),Ai.Z!=0)for(He(Do[Ai.Z]!=null),Ti=0;Ti<ri;++Ti)Do[Ai.Z](zi,da,fa,xi,Vi,aa,Sn),zi=Vi,da=aa,aa+=Sn,xi+=Sn;else for(Ti=0;Ti<ri;++Ti)nn(Vi,aa,fa,xi,Sn),zi=Vi,da=aa,aa+=Sn,xi+=Sn;wn.rc=zi,wn.Vc=da}else{if(He(Ai.mc!=null),Sn=On+ri,He((Ti=Ai.mc)!=null),He(Sn<=Ti.i),Ti.C>=Sn)Sn=1;else if(Ai.ic||_c(),Ai.ic){Ai=Ti.V,zi=Ti.Ba,da=Ti.c;var $a=Ti.i,va=(fa=1,xi=Ti.$/da,Vi=Ti.$%da,aa=Ti.m,ga=Ti.s,Ti.$),Ta=da*$a,Ra=da*Sn,es=ga.wc,Za=va<Ra?ia(ga,Vi,xi):null;He(va<=Ta),He(Sn<=$a),He(as(ga));t:for(;;){for(;!aa.h&&va<Ra;){if(Vi&es||(Za=ia(ga,Vi,xi)),He(Za!=null),Ui(aa),256>($a=ho(Za.G[0],Za.H[0],aa)))Ai[zi+va]=$a,++va,++Vi>=da&&(Vi=0,++xi<=Sn&&!(xi%16)&&to(Ti,xi));else{if(!(280>$a)){fa=0;break t}$a=ys($a-256,aa);var Ns,ks=ho(Za.G[4],Za.H[4],aa);if(Ui(aa),!(va>=(ks=Vo(da,ks=ys(ks,aa)))&&Ta-va>=$a)){fa=0;break t}for(Ns=0;Ns<$a;++Ns)Ai[zi+va+Ns]=Ai[zi+va+Ns-ks];for(va+=$a,Vi+=$a;Vi>=da;)Vi-=da,++xi<=Sn&&!(xi%16)&&to(Ti,xi);va<Ra&&Vi&es&&(Za=ia(ga,Vi,xi))}He(aa.h==yi(aa))}to(Ti,xi>Sn?Sn:xi);break t}!fa||aa.h&&va<Ta?(fa=0,Ti.a=aa.h?5:3):Ti.$=va,Sn=fa}else Sn=co(Ti,Ti.V,Ti.Ba,Ti.c,Ti.i,Sn,vu);if(!Sn){ri=0;break e}}On+ri>=Li&&(wn.Cc=1),ri=1}if(!ri)return null;if(wn.Cc&&((ri=wn.ga)!=null&&(ri.mc=null),wn.ga=null,0<wn.Ga))return alert("todo:WebPDequantizeLevels"),null}return wn.nb+On*Vn}function jo(wn,Sn,On,ri,Vn,Li){for(;0<Vn--;){var Ti,Ai=wn,xi=Sn+(On?1:0),Vi=wn,aa=Sn+(On?0:3);for(Ti=0;Ti<ri;++Ti){var ga=Vi[aa+4*Ti];ga!=255&&(ga*=32897,Ai[xi+4*Ti+0]=Ai[xi+4*Ti+0]*ga>>23,Ai[xi+4*Ti+1]=Ai[xi+4*Ti+1]*ga>>23,Ai[xi+4*Ti+2]=Ai[xi+4*Ti+2]*ga>>23)}Sn+=Li}}function zo(wn,Sn,On,ri,Vn){for(;0<ri--;){var Li;for(Li=0;Li<On;++Li){var Ti=wn[Sn+2*Li+0],Ai=15&(Vi=wn[Sn+2*Li+1]),xi=4369*Ai,Vi=(240&Vi|Vi>>4)*xi>>16;wn[Sn+2*Li+0]=(240&Ti|Ti>>4)*xi>>16&240|(15&Ti|Ti<<4)*xi>>16>>4&15,wn[Sn+2*Li+1]=240&Vi|Ai}Sn+=Vn}}function dc(wn,Sn,On,ri,Vn,Li,Ti,Ai){var xi,Vi,aa=255;for(Vi=0;Vi<Vn;++Vi){for(xi=0;xi<ri;++xi){var ga=wn[Sn+xi];Li[Ti+4*xi]=ga,aa&=ga}Sn+=On,Ti+=Ai}return aa!=255}function Uc(wn,Sn,On,ri,Vn){var Li;for(Li=0;Li<Vn;++Li)On[ri+Li]=wn[Sn+Li]>>8}function _c(){Nu=jo,Lh=zo,xh=dc,Ih=Uc}function Hu(wn,Sn,On){si[wn]=function(ri,Vn,Li,Ti,Ai,xi,Vi,aa,ga,zi,da,fa,$a,va,Ta,Ra,es){var Za,Ns=es-1>>1,ks=Ai[xi+0]|Vi[aa+0]<<16,Xs=ga[zi+0]|da[fa+0]<<16;He(ri!=null);var Ss=3*ks+Xs+131074>>2;for(Sn(ri[Vn+0],255&Ss,Ss>>16,$a,va),Li!=null&&(Ss=3*Xs+ks+131074>>2,Sn(Li[Ti+0],255&Ss,Ss>>16,Ta,Ra)),Za=1;Za<=Ns;++Za){var ro=Ai[xi+Za]|Vi[aa+Za]<<16,gc=ga[zi+Za]|da[fa+Za]<<16,Bs=ks+ro+Xs+gc+524296,Ts=Bs+2*(ro+Xs)>>3;Ss=Ts+ks>>1,ks=(Bs=Bs+2*(ks+gc)>>3)+ro>>1,Sn(ri[Vn+2*Za-1],255&Ss,Ss>>16,$a,va+(2*Za-1)*On),Sn(ri[Vn+2*Za-0],255&ks,ks>>16,$a,va+(2*Za-0)*On),Li!=null&&(Ss=Bs+Xs>>1,ks=Ts+gc>>1,Sn(Li[Ti+2*Za-1],255&Ss,Ss>>16,Ta,Ra+(2*Za-1)*On),Sn(Li[Ti+2*Za+0],255&ks,ks>>16,Ta,Ra+(2*Za+0)*On)),ks=ro,Xs=gc}1&es||(Ss=3*ks+Xs+131074>>2,Sn(ri[Vn+es-1],255&Ss,Ss>>16,$a,va+(es-1)*On),Li!=null&&(Ss=3*Xs+ks+131074>>2,Sn(Li[Ti+es-1],255&Ss,Ss>>16,Ta,Ra+(es-1)*On)))}}function lu(){Mc[mh]=ef,Mc[ih]=Hh,Mc[Dh]=tf,Mc[ah]=gh,Mc[sh]=kd,Mc[_h]=jh,Mc[Vh]=Lf,Mc[ph]=Hh,Mc[Ed]=gh,Mc[Od]=kd,Mc[un]=jh}function pc(wn){return wn&-16384?0>wn?0:255:wn>>xf}function ic(wn,Sn){return pc((19077*wn>>8)+(26149*Sn>>8)-14234)}function id(wn,Sn,On){return pc((19077*wn>>8)-(6419*Sn>>8)-(13320*On>>8)+8708)}function cu(wn,Sn){return pc((19077*wn>>8)+(33050*Sn>>8)-17685)}function Mu(wn,Sn,On,ri,Vn){ri[Vn+0]=ic(wn,On),ri[Vn+1]=id(wn,Sn,On),ri[Vn+2]=cu(wn,Sn)}function Io(wn,Sn,On,ri,Vn){ri[Vn+0]=cu(wn,Sn),ri[Vn+1]=id(wn,Sn,On),ri[Vn+2]=ic(wn,On)}function pd(wn,Sn,On,ri,Vn){var Li=id(wn,Sn,On);Sn=Li<<3&224|cu(wn,Sn)>>3,ri[Vn+0]=248&ic(wn,On)|Li>>5,ri[Vn+1]=Sn}function gd(wn,Sn,On,ri,Vn){var Li=240&cu(wn,Sn)|15;ri[Vn+0]=240&ic(wn,On)|id(wn,Sn,On)>>4,ri[Vn+1]=Li}function Cd(wn,Sn,On,ri,Vn){ri[Vn+0]=255,Mu(wn,Sn,On,ri,Vn+1)}function rh(wn,Sn,On,ri,Vn){Io(wn,Sn,On,ri,Vn),ri[Vn+3]=255}function To(wn,Sn,On,ri,Vn){Mu(wn,Sn,On,ri,Vn),ri[Vn+3]=255}function Nc(wn,Sn,On){si[wn]=function(ri,Vn,Li,Ti,Ai,xi,Vi,aa,ga){for(var zi=aa+(-2&ga)*On;aa!=zi;)Sn(ri[Vn+0],Li[Ti+0],Ai[xi+0],Vi,aa),Sn(ri[Vn+1],Li[Ti+0],Ai[xi+0],Vi,aa+On),Vn+=2,++Ti,++xi,aa+=2*On;1&ga&&Sn(ri[Vn+0],Li[Ti+0],Ai[xi+0],Vi,aa)}}function ad(wn,Sn,On){return On==0?wn==0?Sn==0?6:5:Sn==0?4:0:On}function Ds(wn,Sn,On,ri,Vn){switch(wn>>>30){case 3:od(Sn,On,ri,Vn,0);break;case 2:Kc(Sn,On,ri,Vn);break;case 1:_o(Sn,On,ri,Vn)}}function qc(wn,Sn){var On,ri,Vn=Sn.M,Li=Sn.Nb,Ti=wn.oc,Ai=wn.pc+40,xi=wn.oc,Vi=wn.pc+584,aa=wn.oc,ga=wn.pc+600;for(On=0;16>On;++On)Ti[Ai+32*On-1]=129;for(On=0;8>On;++On)xi[Vi+32*On-1]=129,aa[ga+32*On-1]=129;for(0<Vn?Ti[Ai-1-32]=xi[Vi-1-32]=aa[ga-1-32]=129:(an(Ti,Ai-32-1,127,21),an(xi,Vi-32-1,127,9),an(aa,ga-32-1,127,9)),ri=0;ri<wn.za;++ri){var zi=Sn.ya[Sn.aa+ri];if(0<ri){for(On=-1;16>On;++On)nn(Ti,Ai+32*On-4,Ti,Ai+32*On+12,4);for(On=-1;8>On;++On)nn(xi,Vi+32*On-4,xi,Vi+32*On+4,4),nn(aa,ga+32*On-4,aa,ga+32*On+4,4)}var da=wn.Gd,fa=wn.Hd+ri,$a=zi.ad,va=zi.Hc;if(0<Vn&&(nn(Ti,Ai-32,da[fa].y,0,16),nn(xi,Vi-32,da[fa].f,0,8),nn(aa,ga-32,da[fa].ea,0,8)),zi.Za){var Ta=Ti,Ra=Ai-32+16;for(0<Vn&&(ri>=wn.za-1?an(Ta,Ra,da[fa].y[15],4):nn(Ta,Ra,da[fa+1].y,0,4)),On=0;4>On;On++)Ta[Ra+128+On]=Ta[Ra+256+On]=Ta[Ra+384+On]=Ta[Ra+0+On];for(On=0;16>On;++On,va<<=2)Ta=Ti,Ra=Ai+Wh[On],mu[zi.Ob[On]](Ta,Ra),Ds(va,$a,16*+On,Ta,Ra)}else if(Ta=ad(ri,Vn,zi.Ob[0]),cd[Ta](Ti,Ai),va!=0)for(On=0;16>On;++On,va<<=2)Ds(va,$a,16*+On,Ti,Ai+Wh[On]);for(On=zi.Gc,Ta=ad(ri,Vn,zi.Dd),Bu[Ta](xi,Vi),Bu[Ta](aa,ga),va=$a,Ta=xi,Ra=Vi,255&(zi=0|On)&&(170&zi?Oc(va,256,Ta,Ra):xo(va,256,Ta,Ra)),zi=aa,va=ga,255&(On>>=8)&&(170&On?Oc($a,320,zi,va):xo($a,320,zi,va)),Vn<wn.Ub-1&&(nn(da[fa].y,0,Ti,Ai+480,16),nn(da[fa].f,0,xi,Vi+224,8),nn(da[fa].ea,0,aa,ga+224,8)),On=8*Li*wn.B,da=wn.sa,fa=wn.ta+16*ri+16*Li*wn.R,$a=wn.qa,zi=wn.ra+8*ri+On,va=wn.Ha,Ta=wn.Ia+8*ri+On,On=0;16>On;++On)nn(da,fa+On*wn.R,Ti,Ai+32*On,16);for(On=0;8>On;++On)nn($a,zi+On*wn.B,xi,Vi+32*On,8),nn(va,Ta+On*wn.B,aa,ga+32*On,8)}}function Gc(wn,Sn,On,ri,Vn,Li,Ti,Ai,xi){var Vi=[0],aa=[0],ga=0,zi=xi!=null?xi.kd:0,da=xi??new Va;if(wn==null||12>On)return 7;da.data=wn,da.w=Sn,da.ha=On,Sn=[Sn],On=[On],da.gb=[da.gb];e:{var fa=Sn,$a=On,va=da.gb;if(He(wn!=null),He($a!=null),He(va!=null),va[0]=0,12<=$a[0]&&!tn(wn,fa[0],"RIFF")){if(tn(wn,fa[0]+8,"WEBP")){va=3;break e}var Ta=ui(wn,fa[0]+4);if(12>Ta||4294967286<Ta){va=3;break e}if(zi&&Ta>$a[0]-8){va=7;break e}va[0]=Ta,fa[0]+=12,$a[0]-=12}va=0}if(va!=0)return va;for(Ta=0<da.gb[0],On=On[0];;){e:{var Ra=wn;$a=Sn,va=On;var es=Vi,Za=aa,Ns=fa=[0];if((Ss=ga=[ga])[0]=0,8>va[0])va=7;else{if(!tn(Ra,$a[0],"VP8X")){if(ui(Ra,$a[0]+4)!=10){va=3;break e}if(18>va[0]){va=7;break e}var ks=ui(Ra,$a[0]+8),Xs=1+ti(Ra,$a[0]+12);if(2147483648<=Xs*(Ra=1+ti(Ra,$a[0]+15))){va=3;break e}Ns!=null&&(Ns[0]=ks),es!=null&&(es[0]=Xs),Za!=null&&(Za[0]=Ra),$a[0]+=18,va[0]-=18,Ss[0]=1}va=0}}if(ga=ga[0],fa=fa[0],va!=0)return va;if($a=!!(2&fa),!Ta&&ga)return 3;if(Li!=null&&(Li[0]=!!(16&fa)),Ti!=null&&(Ti[0]=$a),Ai!=null&&(Ai[0]=0),Ti=Vi[0],fa=aa[0],ga&&$a&&xi==null){va=0;break}if(4>On){va=7;break}if(Ta&&ga||!Ta&&!ga&&!tn(wn,Sn[0],"ALPH")){On=[On],da.na=[da.na],da.P=[da.P],da.Sa=[da.Sa];e:{ks=wn,va=Sn,Ta=On;var Ss=da.gb;es=da.na,Za=da.P,Ns=da.Sa,Xs=22,He(ks!=null),He(Ta!=null),Ra=va[0];var ro=Ta[0];for(He(es!=null),He(Ns!=null),es[0]=null,Za[0]=null,Ns[0]=0;;){if(va[0]=Ra,Ta[0]=ro,8>ro){va=7;break e}var gc=ui(ks,Ra+4);if(4294967286<gc){va=3;break e}var Bs=8+gc+1&-2;if(Xs+=Bs,0<Ss&&Xs>Ss){va=3;break e}if(!tn(ks,Ra,"VP8 ")||!tn(ks,Ra,"VP8L")){va=0;break e}if(ro[0]<Bs){va=7;break e}tn(ks,Ra,"ALPH")||(es[0]=ks,Za[0]=Ra+8,Ns[0]=gc),Ra+=Bs,ro-=Bs}}if(On=On[0],da.na=da.na[0],da.P=da.P[0],da.Sa=da.Sa[0],va!=0)break}On=[On],da.Ja=[da.Ja],da.xa=[da.xa];e:if(Ss=wn,va=Sn,Ta=On,es=da.gb[0],Za=da.Ja,Ns=da.xa,ks=va[0],Ra=!tn(Ss,ks,"VP8 "),Xs=!tn(Ss,ks,"VP8L"),He(Ss!=null),He(Ta!=null),He(Za!=null),He(Ns!=null),8>Ta[0])va=7;else{if(Ra||Xs){if(Ss=ui(Ss,ks+4),12<=es&&Ss>es-12){va=3;break e}if(zi&&Ss>Ta[0]-8){va=7;break e}Za[0]=Ss,va[0]+=8,Ta[0]-=8,Ns[0]=Xs}else Ns[0]=5<=Ta[0]&&Ss[ks+0]==47&&!(Ss[ks+4]>>5),Za[0]=Ta[0];va=0}if(On=On[0],da.Ja=da.Ja[0],da.xa=da.xa[0],Sn=Sn[0],va!=0)break;if(4294967286<da.Ja)return 3;if(Ai==null||$a||(Ai[0]=da.xa?2:1),Ti=[Ti],fa=[fa],da.xa){if(5>On){va=7;break}Ai=Ti,zi=fa,$a=Li,wn==null||5>On?wn=0:5<=On&&wn[Sn+0]==47&&!(wn[Sn+4]>>5)?(Ta=[0],Ss=[0],es=[0],Fi(Za=new Si,wn,Sn,On),kc(Za,Ta,Ss,es)?(Ai!=null&&(Ai[0]=Ta[0]),zi!=null&&(zi[0]=Ss[0]),$a!=null&&($a[0]=es[0]),wn=1):wn=0):wn=0}else{if(10>On){va=7;break}Ai=fa,wn==null||10>On||!nu(wn,Sn+3,On-3)?wn=0:(zi=wn[Sn+0]|wn[Sn+1]<<8|wn[Sn+2]<<16,$a=16383&(wn[Sn+7]<<8|wn[Sn+6]),wn=16383&(wn[Sn+9]<<8|wn[Sn+8]),1&zi||3<(zi>>1&7)||!(zi>>4&1)||zi>>5>=da.Ja||!$a||!wn?wn=0:(Ti&&(Ti[0]=$a),Ai&&(Ai[0]=wn),wn=1))}if(!wn||(Ti=Ti[0],fa=fa[0],ga&&(Vi[0]!=Ti||aa[0]!=fa)))return 3;xi!=null&&(xi[0]=da,xi.offset=Sn-xi.w,He(4294967286>Sn-xi.w),He(xi.offset==xi.ha-On));break}return va==0||va==7&&ga&&xi==null?(Li!=null&&(Li[0]|=da.na!=null&&0<da.na.length),ri!=null&&(ri[0]=Ti),Vn!=null&&(Vn[0]=fa),0):va}function yd(wn,Sn,On){var ri=Sn.width,Vn=Sn.height,Li=0,Ti=0,Ai=ri,xi=Vn;if(Sn.Da=wn!=null&&0<wn.Da,Sn.Da&&(Ai=wn.cd,xi=wn.bd,Li=wn.v,Ti=wn.j,11>On||(Li&=-2,Ti&=-2),0>Li||0>Ti||0>=Ai||0>=xi||Li+Ai>ri||Ti+xi>Vn))return 0;if(Sn.v=Li,Sn.j=Ti,Sn.va=Li+Ai,Sn.o=Ti+xi,Sn.U=Ai,Sn.T=xi,Sn.da=wn!=null&&0<wn.da,Sn.da){if(!ta(Ai,xi,On=[wn.ib],Li=[wn.hb]))return 0;Sn.ib=On[0],Sn.hb=Li[0]}return Sn.ob=wn!=null&&wn.ob,Sn.Kb=wn==null||!wn.Sd,Sn.da&&(Sn.ob=Sn.ib<3*ri/4&&Sn.hb<3*Vn/4,Sn.Kb=0),1}function ju(wn){if(wn==null)return 2;if(11>wn.S){var Sn=wn.f.RGBA;Sn.fb+=(wn.height-1)*Sn.A,Sn.A=-Sn.A}else Sn=wn.f.kb,wn=wn.height,Sn.O+=(wn-1)*Sn.fa,Sn.fa=-Sn.fa,Sn.N+=(wn-1>>1)*Sn.Ab,Sn.Ab=-Sn.Ab,Sn.W+=(wn-1>>1)*Sn.Db,Sn.Db=-Sn.Db,Sn.F!=null&&(Sn.J+=(wn-1)*Sn.lb,Sn.lb=-Sn.lb);return 0}function zu(wn,Sn,On,ri){if(ri==null||0>=wn||0>=Sn)return 2;if(On!=null){if(On.Da){var Vn=On.cd,Li=On.bd,Ti=-2&On.v,Ai=-2&On.j;if(0>Ti||0>Ai||0>=Vn||0>=Li||Ti+Vn>wn||Ai+Li>Sn)return 2;wn=Vn,Sn=Li}if(On.da){if(!ta(wn,Sn,Vn=[On.ib],Li=[On.hb]))return 2;wn=Vn[0],Sn=Li[0]}}ri.width=wn,ri.height=Sn;e:{var xi=ri.width,Vi=ri.height;if(wn=ri.S,0>=xi||0>=Vi||!(wn>=mh&&13>wn))wn=2;else{if(0>=ri.Rd&&ri.sd==null){Ti=Li=Vn=Sn=0;var aa=(Ai=xi*Ac[wn])*Vi;if(11>wn||(Li=(Vi+1)/2*(Sn=(xi+1)/2),wn==12&&(Ti=(Vn=xi)*Vi)),(Vi=rn(aa+2*Li+Ti))==null){wn=1;break e}ri.sd=Vi,11>wn?((xi=ri.f.RGBA).eb=Vi,xi.fb=0,xi.A=Ai,xi.size=aa):((xi=ri.f.kb).y=Vi,xi.O=0,xi.fa=Ai,xi.Fd=aa,xi.f=Vi,xi.N=0+aa,xi.Ab=Sn,xi.Cd=Li,xi.ea=Vi,xi.W=0+aa+Li,xi.Db=Sn,xi.Ed=Li,wn==12&&(xi.F=Vi,xi.J=0+aa+2*Li),xi.Tc=Ti,xi.lb=Vn)}if(Sn=1,Vn=ri.S,Li=ri.width,Ti=ri.height,Vn>=mh&&13>Vn)if(11>Vn)wn=ri.f.RGBA,Sn&=(Ai=Math.abs(wn.A))*(Ti-1)+Li<=wn.size,Sn&=Ai>=Li*Ac[Vn],Sn&=wn.eb!=null;else{wn=ri.f.kb,Ai=(Li+1)/2,aa=(Ti+1)/2,xi=Math.abs(wn.fa),Vi=Math.abs(wn.Ab);var ga=Math.abs(wn.Db),zi=Math.abs(wn.lb),da=zi*(Ti-1)+Li;Sn&=xi*(Ti-1)+Li<=wn.Fd,Sn&=Vi*(aa-1)+Ai<=wn.Cd,Sn=(Sn&=ga*(aa-1)+Ai<=wn.Ed)&xi>=Li&Vi>=Ai&ga>=Ai,Sn&=wn.y!=null,Sn&=wn.f!=null,Sn&=wn.ea!=null,Vn==12&&(Sn&=zi>=Li,Sn&=da<=wn.Tc,Sn&=wn.F!=null)}else Sn=0;wn=Sn?0:2}}return wn!=0||On!=null&&On.fd&&(wn=ju(ri)),wn}var Lu=64,Wo=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Zl=24,uu=32,Wu=8,vc=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];qi("Predictor0","PredictorAdd0"),si.Predictor0=function(){return 4278190080},si.Predictor1=function(wn){return wn},si.Predictor2=function(wn,Sn,On){return Sn[On+0]},si.Predictor3=function(wn,Sn,On){return Sn[On+1]},si.Predictor4=function(wn,Sn,On){return Sn[On-1]},si.Predictor5=function(wn,Sn,On){return Bi(Bi(wn,Sn[On+1]),Sn[On+0])},si.Predictor6=function(wn,Sn,On){return Bi(wn,Sn[On-1])},si.Predictor7=function(wn,Sn,On){return Bi(wn,Sn[On+0])},si.Predictor8=function(wn,Sn,On){return Bi(Sn[On-1],Sn[On+0])},si.Predictor9=function(wn,Sn,On){return Bi(Sn[On+0],Sn[On+1])},si.Predictor10=function(wn,Sn,On){return Bi(Bi(wn,Sn[On-1]),Bi(Sn[On+0],Sn[On+1]))},si.Predictor11=function(wn,Sn,On){var ri=Sn[On+0];return 0>=Ea(ri>>24&255,wn>>24&255,(Sn=Sn[On-1])>>24&255)+Ea(ri>>16&255,wn>>16&255,Sn>>16&255)+Ea(ri>>8&255,wn>>8&255,Sn>>8&255)+Ea(255&ri,255&wn,255&Sn)?ri:wn},si.Predictor12=function(wn,Sn,On){var ri=Sn[On+0];return(Na((wn>>24&255)+(ri>>24&255)-((Sn=Sn[On-1])>>24&255))<<24|Na((wn>>16&255)+(ri>>16&255)-(Sn>>16&255))<<16|Na((wn>>8&255)+(ri>>8&255)-(Sn>>8&255))<<8|Na((255&wn)+(255&ri)-(255&Sn)))>>>0},si.Predictor13=function(wn,Sn,On){var ri=Sn[On-1];return(pa((wn=Bi(wn,Sn[On+0]))>>24&255,ri>>24&255)<<24|pa(wn>>16&255,ri>>16&255)<<16|pa(wn>>8&255,ri>>8&255)<<8|pa(255&wn,255&ri))>>>0};var du=si.PredictorAdd0;si.PredictorAdd1=ns,qi("Predictor2","PredictorAdd2"),qi("Predictor3","PredictorAdd3"),qi("Predictor4","PredictorAdd4"),qi("Predictor5","PredictorAdd5"),qi("Predictor6","PredictorAdd6"),qi("Predictor7","PredictorAdd7"),qi("Predictor8","PredictorAdd8"),qi("Predictor9","PredictorAdd9"),qi("Predictor10","PredictorAdd10"),qi("Predictor11","PredictorAdd11"),qi("Predictor12","PredictorAdd12"),qi("Predictor13","PredictorAdd13");var hc=si.PredictorAdd2;_s("ColorIndexInverseTransform","MapARGB","32b",function(wn){return wn>>8&255},function(wn){return wn}),_s("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(wn){return wn},function(wn){return wn>>8&255});var Uo,hu=si.ColorIndexInverseTransform,xu=si.MapARGB,Ho=si.VP8LColorIndexInverseTransformAlpha,Zc=si.MapAlpha,Su=si.VP8LPredictorsAdd=[];Su.length=16,(si.VP8LPredictors=[]).length=16,(si.VP8LPredictorsAdd_C=[]).length=16,(si.VP8LPredictors_C=[]).length=16;var vd,sd,Tu,fu,Ec,Du,Pu,od,Kc,Oc,_o,xo,qo,Gs,Go,wc,Uu,Bd,wd,Oh,Mh,fh,Ad,Rh,Nu,Lh,xh,Ih,Cu=rn(511),Sh=rn(2041),Th=rn(225),Yd=rn(767),Fh=0,$d=Sh,ld=Th,Cc=Yd,ac=Cu,mh=0,ih=1,Dh=2,ah=3,sh=4,_h=5,Vh=6,ph=7,Ed=8,Od=9,un=10,_n=[2,3,7],kn=[3,3,11],$n=[280,256,256,256,40],ai=[0,1,1,1,0],Mi=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Gi=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,
vendor: 4,135 bytes, line 43
4364,114,126,97,111,80,113,127,96,112],ma=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Sa=8,Wa=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ms=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ys=null,eo=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],bc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],sc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Jc=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
435,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Bc=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
431,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Rd=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 10,353 bytes, line 43
435,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Xh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],cd=[],mu=[],Bu=[],Qh=1,Ph=2,Do=[],Mc=[];Hu("UpsampleRgbLinePair",Mu,3),Hu("UpsampleBgrLinePair",Io,3),Hu("UpsampleRgbaLinePair",To,4),Hu("UpsampleBgraLinePair",rh,4),Hu("UpsampleArgbLinePair",Cd,4),Hu("UpsampleRgba4444LinePair",gd,2),Hu("UpsampleRgb565LinePair",pd,2);var ef=si.UpsampleRgbLinePair,tf=si.UpsampleBgrLinePair,Hh=si.UpsampleRgbaLinePair,gh=si.UpsampleBgraLinePair,kd=si.UpsampleArgbLinePair,jh=si.UpsampleRgba4444LinePair,Lf=si.UpsampleRgb565LinePair,zh=16,Id=1<<zh-1,qu=-227,nf=482,xf=6,lf=0,Sf=rn(256),Tf=rn(256),Df=rn(256),rf=rn(256),Pf=rn(nf-qu),Nf=rn(nf-qu);Nc("YuvToRgbRow",Mu,3),Nc("YuvToBgrRow",Io,3),Nc("YuvToRgbaRow",To,4),Nc("YuvToBgraRow",rh,4),Nc("YuvToArgbRow",Cd,4),Nc("YuvToRgba4444Row",gd,2),Nc("YuvToRgb565Row",pd,2);var Wh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Uh=[0,2,8],Cf=[8,7,6,4,4,2,2,2,1,1,1,1],Bf=1;this.WebPDecodeRGBA=function(wn,Sn,On,ri,Vn){var Li=ih,Ti=new Aa,Ai=new cs;Ti.ba=Ai,Ai.S=Li,Ai.width=[Ai.width],Ai.height=[Ai.height];var xi=Ai.width,Vi=Ai.height,aa=new ws;if(aa==null||wn==null)var ga=2;else He(aa!=null),ga=Gc(wn,Sn,On,aa.width,aa.height,aa.Pd,aa.Qd,aa.format,null);if(ga!=0?xi=0:(xi!=null&&(xi[0]=aa.width[0]),Vi!=null&&(Vi[0]=aa.height[0]),xi=1),xi){Ai.width=Ai.width[0],Ai.height=Ai.height[0],ri!=null&&(ri[0]=Ai.width),Vn!=null&&(Vn[0]=Ai.height);e:{if(ri=new bo,(Vn=new Va).data=wn,Vn.w=Sn,Vn.ha=On,Vn.kd=1,Sn=[0],He(Vn!=null),((wn=Gc(Vn.data,Vn.w,Vn.ha,null,null,null,Sn,null,Vn))==0||wn==7)&&Sn[0]&&(wn=4),(Sn=wn)==0){if(He(Ti!=null),ri.data=Vn.data,ri.w=Vn.w+Vn.offset,ri.ha=Vn.ha-Vn.offset,ri.put=fs,ri.ac=ko,ri.bc=os,ri.ma=Ti,Vn.xa){if((wn=Vc())==null){Ti=1;break e}if((function(zi,da){var fa=[0],$a=[0],va=[0];t:for(;;){if(zi==null)return 0;if(da==null)return zi.a=2,0;if(zi.l=da,zi.a=0,Fi(zi.m,da.data,da.w,da.ha),!kc(zi.m,fa,$a,va)){zi.a=3;break t}if(zi.xb=Ph,da.width=fa[0],da.height=$a[0],!Yo(fa[0],$a[0],1,zi,null))break t;return 1}return He(zi.a!=0),0})(wn,ri)){if(ri=(Sn=zu(ri.width,ri.height,Ti.Oa,Ti.ba))==0){t:{ri=wn;n:for(;;){if(ri==null){ri=0;break t}if(He(ri.s.yc!=null),He(ri.s.Ya!=null),He(0<ri.s.Wb),He((On=ri.l)!=null),He((Vn=On.ma)!=null),ri.xb!=0){if(ri.ca=Vn.ba,ri.tb=Vn.tb,He(ri.ca!=null),!yd(Vn.Oa,On,ah)){ri.a=2;break n}if(!uc(ri,On.width)||On.da)break n;if((On.da||bs(ri.ca.S))&&_c(),11>ri.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ri.ca.f.kb.F!=null&&_c()),ri.Pb&&0<ri.s.ua&&ri.s.vb.X==null&&!Cn(ri.s.vb,ri.s.Wa.Xa)){ri.a=1;break n}ri.xb=0}if(!co(ri,ri.V,ri.Ba,ri.c,ri.i,On.o,us))break n;Vn.Dc=ri.Ma,ri=1;break t}He(ri.a!=0),ri=0}ri=!ri}ri&&(Sn=wn.a)}else Sn=wn.a}else{if((wn=new Sd)==null){Ti=1;break e}if(wn.Fa=Vn.na,wn.P=Vn.P,wn.qc=Vn.Sa,Dc(wn,ri)){if((Sn=zu(ri.width,ri.height,Ti.Oa,Ti.ba))==0){if(wn.Aa=0,On=Ti.Oa,He((Vn=wn)!=null),On!=null){if(0<(xi=0>(xi=On.Md)?0:100<xi?255:255*xi/100)){for(Vi=aa=0;4>Vi;++Vi)12>(ga=Vn.pb[Vi]).lc&&(ga.ia=xi*Cf[0>ga.lc?0:ga.lc]>>3),aa|=ga.ia;aa&&(alert("todo:VP8InitRandom"),Vn.ia=1)}Vn.Ga=On.Id,100<Vn.Ga?Vn.Ga=100:0>Vn.Ga&&(Vn.Ga=0)}(function(zi,da){if(zi==null)return 0;if(da==null)return Bo(zi,2,"NULL VP8Io parameter in VP8Decode().");if(!zi.cb&&!Dc(zi,da))return 0;if(He(zi.cb),da.ac==null||da.ac(da)){da.ob&&(zi.L=0);var fa=Uh[zi.L];if(zi.L==2?(zi.yb=0,zi.zb=0):(zi.yb=da.v-fa>>4,zi.zb=da.j-fa>>4,0>zi.yb&&(zi.yb=0),0>zi.zb&&(zi.zb=0)),zi.Va=da.o+15+fa>>4,zi.Hb=da.va+15+fa>>4,zi.Hb>zi.za&&(zi.Hb=zi.za),zi.Va>zi.Ub&&(zi.Va=zi.Ub),0<zi.L){var $a=zi.ed;for(fa=0;4>fa;++fa){var va;if(zi.Qa.Cb){var Ta=zi.Qa.Lb[fa];zi.Qa.Fb||(Ta+=$a.Tb)}else Ta=$a.Tb;for(va=0;1>=va;++va){var Ra=zi.gd[fa][va],es=Ta;if($a.Pc&&(es+=$a.vd[0],va&&(es+=$a.od[0])),0<(es=0>es?0:63<es?63:es)){var Za=es;0<$a.wb&&(Za=4<$a.wb?Za>>2:Za>>1)>9-$a.wb&&(Za=9-$a.wb),1>Za&&(Za=1),Ra.dd=Za,Ra.tc=2*es+Za,Ra.ld=40<=es?2:15<=es?1:0}else Ra.tc=0;Ra.La=va}}}fa=0}else Bo(zi,6,"Frame setup failed"),fa=zi.a;if(fa=fa==0){if(fa){zi.$c=0,0<zi.Aa||(zi.Ic=Bf);t:{fa=zi.Ic,$a=4*(Za=zi.za);var Ns=32*Za,ks=Za+1,Xs=0<zi.L?Za*(0<zi.Aa?2:1):0,Ss=(zi.Aa==2?2:1)*Za;if((Ra=$a+832+(va=3*(16*fa+Uh[zi.L])/2*Ns)+(Ta=zi.Fa!=null&&0<zi.Fa.length?zi.Kc.c*zi.Kc.i:0))!=Ra)fa=0;else{if(Ra>zi.Vb){if(zi.Vb=0,zi.Ec=rn(Ra),zi.Fc=0,zi.Ec==null){fa=Bo(zi,1,"no memory during frame initialization.");break t}zi.Vb=Ra}Ra=zi.Ec,es=zi.Fc,zi.Ac=Ra,zi.Bc=es,es+=$a,zi.Gd=on(Ns,Xd),zi.Hd=0,zi.rb=on(ks+1,$u),zi.sb=1,zi.wa=Xs?on(Xs,Es):null,zi.Y=0,zi.D.Nb=0,zi.D.wa=zi.wa,zi.D.Y=zi.Y,0<zi.Aa&&(zi.D.Y+=Za),He(!0),zi.oc=Ra,zi.pc=es,es+=832,zi.ya=on(Ss,tu),zi.aa=0,zi.D.ya=zi.ya,zi.D.aa=zi.aa,zi.Aa==2&&(zi.D.aa+=Za),zi.R=16*Za,zi.B=8*Za,Za=(Ns=Uh[zi.L])*zi.R,Ns=Ns/2*zi.B,zi.sa=Ra,zi.ta=es+Za,zi.qa=zi.sa,zi.ra=zi.ta+16*fa*zi.R+Ns,zi.Ha=zi.qa,zi.Ia=zi.ra+8*fa*zi.B+Ns,zi.$c=0,es+=va,zi.mb=Ta?Ra:null,zi.nb=Ta?es:null,He(es+Ta<=zi.Fc+zi.Vb),$o(zi),an(zi.Ac,zi.Bc,0,$a),fa=1}}if(fa){if(da.ka=0,da.y=zi.sa,da.O=zi.ta,da.f=zi.qa,da.N=zi.ra,da.ea=zi.Ha,da.Vd=zi.Ia,da.fa=zi.R,da.Rc=zi.B,da.F=null,da.J=0,!Fh){for(fa=-255;255>=fa;++fa)Cu[255+fa]=0>fa?-fa:fa;for(fa=-1020;1020>=fa;++fa)Sh[1020+fa]=-128>fa?-128:127<fa?127:fa;for(fa=-112;112>=fa;++fa)Th[112+fa]=-16>fa?-16:15<fa?15:fa;for(fa=-255;510>=fa;++fa)Yd[255+fa]=0>fa?0:255<fa?255:fa;Fh=1}Pu=wu,od=ru,Oc=no,_o=Co,xo=Xu,Kc=jc,qo=md,Gs=_d,Go=gi,wc=Ii,Uu=hh,Bd=An,wd=Xi,Oh=ua,Mh=mc,fh=ou,Ad=Os,Rh=Wc,mu[0]=dh,mu[1]=hd,mu[2]=zc,mu[3]=Mo,mu[4]=iu,mu[5]=th,mu[6]=au,mu[7]=Ou,mu[8]=Ru,mu[9]=ed,cd[0]=Dd,cd[1]=eh,cd[2]=Qu,cd[3]=Td,cd[4]=ku,cd[5]=fd,cd[6]=bh,Bu[0]=nd,Bu[1]=Qd,Bu[2]=Oo,Bu[3]=Iu,Bu[4]=Pd,Bu[5]=Fu,Bu[6]=rd,fa=1}else fa=0}fa&&(fa=(function(ro,gc){for(ro.M=0;ro.M<ro.Va;++ro.M){var Bs,Ts=ro.Jc[ro.M&ro.Xb],ds=ro.m,oc=ro;for(Bs=0;Bs<oc.za;++Bs){var qs=ds,po=oc,Fo=po.Ac,Lc=po.Bc+4*Bs,Rc=po.zc,Xl=po.ya[po.aa+Bs];if(po.Qa.Bb?Xl.$b=Ei(qs,po.Pa.jb[0])?2+Ei(qs,po.Pa.jb[2]):Ei(qs,po.Pa.jb[1]):Xl.$b=0,po.kc&&(Xl.Ad=Ei(qs,po.Bd)),Xl.Za=!Ei(qs,145)+0,Xl.Za){var Yc=Xl.Ob,Ic=0;for(po=0;4>po;++po){var yc,zs=Rc[0+po];for(yc=0;4>yc;++yc){zs=Bc[Fo[Lc+yc]][zs];for(var Po=sc[Ei(qs,zs[0])];0<Po;)Po=sc[2*Po+Ei(qs,zs[Po])];zs=-Po,Fo[Lc+yc]=zs}nn(Yc,Ic,Fo,Lc,4),Ic+=4,Rc[0+po]=zs}}else zs=Ei(qs,156)?Ei(qs,128)?1:3:Ei(qs,163)?2:0,Xl.Ob[0]=zs,an(Fo,Lc,zs,4),an(Rc,0,zs,4);Xl.Dd=Ei(qs,142)?Ei(qs,114)?Ei(qs,183)?1:3:2:0}if(oc.m.Ka)return Bo(ro,7,"Premature end-of-partition0 encountered.");for(;ro.ja<ro.za;++ro.ja){if(oc=Ts,qs=(ds=ro).rb[ds.sb-1],Fo=ds.rb[ds.sb+ds.ja],Bs=ds.ya[ds.aa+ds.ja],Lc=ds.kc?Bs.Ad:0)qs.la=Fo.la=0,Bs.Za||(qs.Na=Fo.Na=0),Bs.Hc=0,Bs.Gc=0,Bs.ia=0;else{var ec,No;if(qs=Fo,Fo=oc,Lc=ds.Pa.Xc,Rc=ds.ya[ds.aa+ds.ja],Xl=ds.pb[Rc.$b],po=Rc.ad,Yc=0,Ic=ds.rb[ds.sb-1],zs=yc=0,an(po,Yc,0,384),Rc.Za)var xc=0,Gu=Lc[3];else{Po=rn(16);var cc=qs.Na+Ic.Na;if(cc=Ys(Fo,Lc[1],cc,Xl.Eb,0,Po,0),qs.Na=Ic.Na=(0<cc)+0,1<cc)Pu(Po,0,po,Yc);else{var Xc=Po[0]+3>>3;for(Po=0;256>Po;Po+=16)po[Yc+Po]=Xc}xc=1,Gu=Lc[0]}var Ao=15&qs.la,fo=15&Ic.la;for(Po=0;4>Po;++Po){var Zo=1&fo;for(Xc=No=0;4>Xc;++Xc)Ao=Ao>>1|(Zo=(cc=Ys(Fo,Gu,cc=Zo+(1&Ao),Xl.Sc,xc,po,Yc))>xc)<<7,No=No<<2|(3<cc?3:1<cc?2:po[Yc+0]!=0),Yc+=16;Ao>>=4,fo=fo>>1|Zo<<7,yc=(yc<<8|No)>>>0}for(Gu=Ao,xc=fo>>4,ec=0;4>ec;ec+=2){for(No=0,Ao=qs.la>>4+ec,fo=Ic.la>>4+ec,Po=0;2>Po;++Po){for(Zo=1&fo,Xc=0;2>Xc;++Xc)cc=Zo+(1&Ao),Ao=Ao>>1|(Zo=0<(cc=Ys(Fo,Lc[2],cc,Xl.Qc,0,po,Yc)))<<3,No=No<<2|(3<cc?3:1<cc?2:po[Yc+0]!=0),Yc+=16;Ao>>=2,fo=fo>>1|Zo<<5}zs|=No<<4*ec,Gu|=Ao<<4<<ec,xc|=(240&fo)<<ec}qs.la=Gu,Ic.la=xc,Rc.Hc=yc,Rc.Gc=zs,Rc.ia=43690&zs?0:Xl.ia,Lc=!(yc|zs)}if(0<ds.L&&(ds.wa[ds.Y+ds.ja]=ds.gd[Bs.$b][Bs.Za],ds.wa[ds.Y+ds.ja].La|=!Lc),oc.Ka)return Bo(ro,7,"Premature end-of-file encountered.")}if($o(ro),ds=gc,oc=1,Bs=(Ts=ro).D,qs=0<Ts.L&&Ts.M>=Ts.zb&&Ts.M<=Ts.Va,Ts.Aa==0)t:{if(Bs.M=Ts.M,Bs.uc=qs,qc(Ts,Bs),oc=1,Bs=(No=Ts.D).Nb,qs=(zs=Uh[Ts.L])*Ts.R,Fo=zs/2*Ts.B,Po=16*Bs*Ts.R,Xc=8*Bs*Ts.B,Lc=Ts.sa,Rc=Ts.ta-qs+Po,Xl=Ts.qa,po=Ts.ra-Fo+Xc,Yc=Ts.Ha,Ic=Ts.Ia-Fo+Xc,fo=(Ao=No.M)==0,yc=Ao>=Ts.Va-1,Ts.Aa==2&&qc(Ts,No),No.uc)for(Zo=(cc=Ts).D.M,He(cc.D.uc),No=cc.yb;No<cc.Hb;++No){xc=No,Gu=Zo;var Fc=(_u=(Pn=cc).D).Nb;ec=Pn.R;var _u=_u.wa[_u.Y+xc],pu=Pn.sa,Qc=Pn.ta+16*Fc*ec+16*xc,gu=_u.dd,So=_u.tc;if(So!=0)if(He(3<=So),Pn.L==1)0<xc&&fh(pu,Qc,ec,So+4),_u.La&&Rh(pu,Qc,ec,So),0<Gu&&Mh(pu,Qc,ec,So+4),_u.La&&Ad(pu,Qc,ec,So);else{var Ko=Pn.B,Sc=Pn.qa,gs=Pn.ra+8*Fc*Ko+8*xc,vn=Pn.Ha,Pn=Pn.Ia+8*Fc*Ko+8*xc;Fc=_u.ld,0<xc&&(Gs(pu,Qc,ec,So+4,gu,Fc),wc(Sc,gs,vn,Pn,Ko,So+4,gu,Fc)),_u.La&&(Bd(pu,Qc,ec,So,gu,Fc),Oh(Sc,gs,vn,Pn,Ko,So,gu,Fc)),0<Gu&&(qo(pu,Qc,ec,So+4,gu,Fc),Go(Sc,gs,vn,Pn,Ko,So+4,gu,Fc)),_u.La&&(Uu(pu,Qc,ec,So,gu,Fc),wd(Sc,gs,vn,Pn,Ko,So,gu,Fc))}}if(Ts.ia&&alert("todo:DitherRow"),ds.put!=null){if(No=16*Ao,Ao=16*(Ao+1),fo?(ds.y=Ts.sa,ds.O=Ts.ta+Po,ds.f=Ts.qa,ds.N=Ts.ra+Xc,ds.ea=Ts.Ha,ds.W=Ts.Ia+Xc):(No-=zs,ds.y=Lc,ds.O=Rc,ds.f=Xl,ds.N=po,ds.ea=Yc,ds.W=Ic),yc||(Ao-=zs),Ao>ds.o&&(Ao=ds.o),ds.F=null,ds.J=null,Ts.Fa!=null&&0<Ts.Fa.length&&No<Ao&&(ds.J=Lo(Ts,ds,No,Ao-No),ds.F=Ts.mb,ds.F==null&&ds.F.length==0)){oc=Bo(Ts,3,"Could not decode alpha data.");break t}No<ds.j&&(zs=ds.j-No,No=ds.j,He(!(1&zs)),ds.O+=Ts.R*zs,ds.N+=Ts.B*(zs>>1),ds.W+=Ts.B*(zs>>1),ds.F!=null&&(ds.J+=ds.width*zs)),No<Ao&&(ds.O+=ds.v,ds.N+=ds.v>>1,ds.W+=ds.v>>1,ds.F!=null&&(ds.J+=ds.v),ds.ka=No-ds.j,ds.U=ds.va-ds.v,ds.T=Ao-No,oc=ds.put(ds))}Bs+1!=Ts.Ic||yc||(nn(Ts.sa,Ts.ta-qs,Lc,Rc+16*Ts.R,qs),nn(Ts.qa,Ts.ra-Fo,Xl,po+8*Ts.B,Fo),nn(Ts.Ha,Ts.Ia-Fo,Yc,Ic+8*Ts.B,Fo))}if(!oc)return Bo(ro,6,"Output aborted.")}return 1})(zi,da)),da.bc!=null&&da.bc(da),fa&=1}return fa?(zi.cb=0,fa):0})(wn,ri)||(Sn=wn.a)}}else Sn=wn.a}Sn==0&&Ti.Oa!=null&&Ti.Oa.fd&&(Sn=ju(Ti.ba))}Ti=Sn}Li=Ti!=0?null:11>Li?Ai.f.RGBA.eb:Ai.f.kb.y}else Li=null;return Li}
43;var Ac=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function hn(si,fi){for(var ei="",ci=0;ci<4;ci++)ei+=String.fromCharCode(si[fi++]);return ei}function mn(si,fi){return si[fi+0]|si[fi+1]<<8}function gn(si,fi){return(si[fi+0]|si[fi+1]<<8|si[fi+2]<<16)>>>0}function yn(si,fi){return(si[fi+0]|si[fi+1]<<8|si[fi+2]<<16|si[fi+3]<<24)>>>0}new dn;var fn=[0],bn=[0],Mn=[],Tn=new dn,xn=en,En=(function(si,fi){var ei={},ci=0,di=!1,wi=0,Ci=0;if(ei.frames=[],!(function(hi,Si){for(var Ni=0;Ni<4;Ni++)if(hi[Si+Ni]!="RIFF".charCodeAt(Ni))return!0;return!1})(si,fi)){for(yn(si,fi+=4),fi+=8;fi<si.length;){var ji=hn(si,fi),Yi=yn(si,fi+=4);fi+=4;var Pi=Yi+(1&Yi);switch(ji){case"VP8 ":case"VP8L":ei.frames[ci]===void 0&&(ei.frames[ci]={}),(Wi=ei.frames[ci]).src_off=di?Ci:fi-8,Wi.src_size=wi+Yi+8,ci++,di&&(di=!1,wi=0,Ci=0);break;case"VP8X":(Wi=ei.header={}).feature_flags=si[fi];var Fi=fi+4;Wi.canvas_width=1+gn(si,Fi),Fi+=3,Wi.canvas_height=1+gn(si,Fi),Fi+=3;break;case"ALPH":di=!0,wi=Pi+8,Ci=fi-8;break;case"ANIM":(Wi=ei.header).bgcolor=yn(si,fi),Fi=fi+4,Wi.loop_count=mn(si,Fi),Fi+=2;break;case"ANMF":var $i,Wi;(Wi=ei.frames[ci]={}).offset_x=2*gn(si,fi),fi+=3,Wi.offset_y=2*gn(si,fi),fi+=3,Wi.width=1+gn(si,fi),fi+=3,Wi.height=1+gn(si,fi),fi+=3,Wi.duration=gn(si,fi),fi+=3,$i=si[fi++],Wi.dispose=1&$i,Wi.blend=$i>>1&1}ji!="ANMF"&&(fi+=Pi)}return ei}})(xn,0);En.response=xn,En.rgbaoutput=!0,En.dataurl=!1;var Rn=En.header?En.header:null,ni=En.frames?En.frames:null;if(Rn){Rn.loop_counter=Rn.loop_count,fn=[Rn.canvas_height],bn=[Rn.canvas_width];for(var mi=0;mi<ni.length&&ni[mi].blend!=0;mi++);}var bi=ni[0],_i=Tn.WebPDecodeRGBA(xn,bi.src_off,bi.src_size,bn,fn);bi.rgba=_i,bi.imgwidth=bn[0],bi.imgheight=fn[0];for(var oi=0;oi<bn[0]*fn[0]*4;oi++)Mn[oi]=_i[oi];return this.width=bn,this.height=fn,this.data=Mn,this}function ce(){var en,He=this.internal.__metadata__.metadata,tn=unescape(encodeURIComponent(He));en=this.internal.__metadata__.rawXml?tn:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+tn.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+en.length+" >>"),this.internal.write("stream"),this.internal.write(en),this.internal.write("endstream"),this.internal.write("endobj")}function le(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(en){var He,tn,nn,an,rn,on,sn,dn,hn,mn=function(hi){return hi=hi||{},this.isStrokeTransparent=hi.isStrokeTransparent||!1,this.strokeOpacity=hi.strokeOpacity||1,this.strokeStyle=hi.strokeStyle||"#000000",this.fillStyle=hi.fillStyle||"#000000",this.isFillTransparent=hi.isFillTransparent||!1,this.fillOpacity=hi.fillOpacity||1,this.font=hi.font||"10px sans-serif",this.textBaseline=hi.textBaseline||"alphabetic",this.textAlign=hi.textAlign||"left",this.lineWidth=hi.lineWidth||1,this.lineJoin=hi.lineJoin||"miter",this.lineCap=hi.lineCap||"butt",this.path=hi.path||[],this.transform=hi.transform!==void 0?hi.transform.clone():new dn,this.globalCompositeOperation=hi.globalCompositeOperation||"normal",this.globalAlpha=hi.globalAlpha||1,this.clip_path=hi.clip_path||[],this.currentPoint=hi.currentPoint||new on,this.miterLimit=hi.miterLimit||10,this.lastPoint=hi.lastPoint||new on,this.lineDashOffset=hi.lineDashOffset||0,this.lineDash=hi.lineDash||[],this.margin=hi.margin||[0,0,0,0],this.prevPageLastElemOffset=hi.prevPageLastElemOffset||0,this.ignoreClearRect=typeof hi.ignoreClearRect!="boolean"||hi.ignoreClearRect,this};en.events.push(["initialized",function(){this.context2d=new gn(this),He=this.internal.f2,tn=this.internal.getCoordinateString,nn=this.internal.getVerticalCoordinateString,an=this.internal.getHorizontalCoordinate,rn=this.internal.getVerticalCoordinate,on=this.internal.Point,
vendor: 4,523 bytes, line 43
43sn=this.internal.Rectangle,dn=this.internal.Matrix,hn=new mn}]);var gn=function(hi){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Si=hi;Object.defineProperty(this,"pdf",{get:function(){return Si}});var Ni=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ni},set:function(Cn){Ni=!!Cn}});var yi=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return yi},set:function(Cn){yi=!!Cn}});var Hi=0;Object.defineProperty(this,"posX",{get:function(){return Hi},set:function(Cn){isNaN(Cn)||(Hi=Cn)}});var Ui=0;Object.defineProperty(this,"posY",{get:function(){return Ui},set:function(Cn){isNaN(Cn)||(Ui=Cn)}}),Object.defineProperty(this,"margin",{get:function(){return hn.margin},set:function(Cn){var ki;typeof Cn=="number"?ki=[Cn,Cn,Cn,Cn]:((ki=new Array(4))[0]=Cn[0],ki[1]=Cn.length>=2?Cn[1]:ki[0],ki[2]=Cn.length>=3?Cn[2]:ki[0],ki[3]=Cn.length>=4?Cn[3]:ki[1]),hn.margin=ki}});var Ji=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ji},set:function(Cn){Ji=Cn}});var Oi=0;Object.defineProperty(this,"lastBreak",{get:function(){return Oi},set:function(Cn){Oi=Cn}});var Ei=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ei},set:function(Cn){Ei=Cn}}),Object.defineProperty(this,"ctx",{get:function(){return hn},set:function(Cn){Cn instanceof mn&&(hn=Cn)}}),Object.defineProperty(this,"path",{get:function(){return hn.path},set:function(Cn){hn.path=Cn}});var ea=[];Object.defineProperty(this,"ctxStack",{get:function(){return ea},set:function(Cn){ea=Cn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Cn){var ki;ki=yn(Cn),this.ctx.fillStyle=ki.style,this.ctx.isFillTransparent=ki.a===0,this.ctx.fillOpacity=ki.a,this.pdf.setFillColor(ki.r,ki.g,ki.b,{a:ki.a}),this.pdf.setTextColor(ki.r,ki.g,ki.b,{a:ki.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Cn){var ki=yn(Cn);this.ctx.strokeStyle=ki.style,this.ctx.isStrokeTransparent=ki.a===0,this.ctx.strokeOpacity=ki.a,ki.a===0?this.pdf.setDrawColor(255,255,255):(ki.a,this.pdf.setDrawColor(ki.r,ki.g,ki.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Cn){["butt","round","square"].indexOf(Cn)!==-1&&(this.ctx.lineCap=Cn,this.pdf.setLineCap(Cn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Cn){isNaN(Cn)||(this.ctx.lineWidth=Cn,this.pdf.setLineWidth(Cn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Cn){["bevel","round","miter"].indexOf(Cn)!==-1&&(this.ctx.lineJoin=Cn,this.pdf.setLineJoin(Cn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Cn){isNaN(Cn)||(this.ctx.miterLimit=Cn,this.pdf.setMiterLimit(Cn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Cn){this.ctx.textBaseline=Cn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Cn){["right","end","center","left","start"].indexOf(Cn)!==-1&&(this.ctx.textAlign=Cn)}});var vi=null,ti=null,ui=null;Object.defineProperty(this,"fontFaces",{get:function(){return ui},set:function(Cn){vi=null,ti=null,ui=Cn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Cn){var ki;if(this.ctx.font=Cn,(ki=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(Cn))!==null){var Zi=ki[1];ki[2];var ta=ki[3],Ri=ki[4];ki[5];var ha=ki[6],qi=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ri)[2];Ri=Math.floor(qi==="px"?parseFloat(Ri)*this.pdf.internal.scaleFactor:qi==="em"?parseFloat(Ri)*this.pdf.getFontSize():parseFloat(Ri)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ri);var ca=(function(_s){var mo,Is,$s=[],Ps=_s.trim();if(Ps==="")return Gt;if(Ps in qt)return[qt[Ps]];for(;Ps!=="";){switch(Is=null,mo=(Ps=Rt(Ps)).charAt(0)){case'"':case"'":Is=Dt(Ps.substring(1),mo);break;default:Is=Tt(Ps)}if(Is===null||($s.push(Is[0]),(Ps=Rt(Is[1]))!==""&&Ps.charAt(0)!==","))return Gt;Ps=Ps.replace(/^,/,"")}return $s})(ha);if(this.fontFaces){var Bi=(function(_s,mo){var Is=_s.getFontList(
43),$s=JSON.stringify(Is);if(vi===null||ti!==$s){var Ps=(function(Ws){var ps=[];return Object.keys(Ws).forEach(function(oo){Ws[oo].forEach(function(bs){var As=null;switch(bs){case"bold":As={family:oo,weight:"bold"};break;case"italic":As={family:oo,style:"italic"};break;case"bolditalic":As={family:oo,weight:"bold",style:"italic"};break;case"":case"normal":As={family:oo}}As!==null&&(As.ref={name:oo,style:bs},ps.push(As))})}),ps})(Is);vi=(function(Ws){for(var ps={},oo=0;oo<Ws.length;++oo){var bs=Ot$1(Ws[oo]),As=bs.family,ts=bs.stretch,cs=bs.style,ws=bs.weight;ps[As]=ps[As]||{},ps[As][ts]=ps[As][ts]||{},ps[As][ts][cs]=ps[As][ts][cs]||{},ps[As][ts][cs][ws]=bs}return ps})(Ps.concat(mo)),ti=$s}return vi})(this.pdf,this.fontFaces),Na=ca.map(function(_s){return{family:_s,stretch:"normal",weight:ta,style:Zi}}),pa=(function(_s,mo,Is){for(var $s=(Is=Is||{}).defaultFontFamily||"times",Ps=Object.assign({},Mt,Is.genericFontFamilies||{}),Ws=null,ps=null,oo=0;oo<mo.length;++oo)if(Ps[(Ws=Ot$1(mo[oo])).family]&&(Ws.family=Ps[Ws.family]),_s.hasOwnProperty(Ws.family)){ps=_s[Ws.family];break}if(!(ps=ps||_s[$s]))throw new Error("Could not find a font-family for the rule '"+Et$1(Ws)+"' and default family '"+$s+"'.");if(ps=(function(bs,As){if(As[bs])return As[bs];var ts=It[bs],cs=ts<=It.normal?-1:1,ws=Bt(As,Ft,ts,cs);if(!ws)throw new Error("Could not find a matching font-stretch value for "+bs);return ws})(Ws.stretch,ps),ps=(function(bs,As){if(As[bs])return As[bs];for(var ts=kt$1[bs],cs=0;cs<ts.length;++cs)if(As[ts[cs]])return As[ts[cs]];throw new Error("Could not find a matching font-style for "+bs)})(Ws.style,ps),!(ps=(function(bs,As){if(As[bs])return As[bs];if(bs===400&&As[500])return As[500];if(bs===500&&As[400])return As[400];var ts=Ct[bs],cs=Bt(As,jt$1,ts,bs<400?-1:1);if(!cs)throw new Error("Could not find a matching font-weight for value "+bs);return cs})(Ws.weight,ps)))throw new Error("Failed to resolve a font for the rule '"+Et$1(Ws)+"'.");return ps})(Bi,Na);this.pdf.setFont(pa.ref.name,pa.ref.style)}
vendor: 4,284 bytes, line 43
43else{var Ea="";(ta==="bold"||parseInt(ta,10)>=700||Zi==="bold")&&(Ea="bold"),Zi==="italic"&&(Ea+="italic"),Ea.length===0&&(Ea="normal");for(var ns="",vs={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},rs=0;rs<ca.length;rs++){if(this.pdf.internal.getFont(ca[rs],Ea,{noFallback:!0,disableWarning:!0})!==void 0){ns=ca[rs];break}if(Ea==="bolditalic"&&this.pdf.internal.getFont(ca[rs],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ns=ca[rs],Ea="bold";else if(this.pdf.internal.getFont(ca[rs],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ns=ca[rs],Ea="normal";break}}if(ns===""){for(var Xa=0;Xa<ca.length;Xa++)if(vs[ca[Xa]]){ns=vs[ca[Xa]];break}}ns=ns===""?"Times":ns,this.pdf.setFont(ns,Ea)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Cn){this.ctx.globalCompositeOperation=Cn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Cn){this.ctx.globalAlpha=Cn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Cn){this.ctx.lineDashOffset=Cn,Wi.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Cn){this.ctx.lineDash=Cn,Wi.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Cn){this.ctx.ignoreClearRect=!!Cn}})};gn.prototype.setLineDash=function(hi){this.lineDash=hi},gn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},gn.prototype.fill=function(){ni.call(this,"fill",!1)},gn.prototype.stroke=function(){ni.call(this,"stroke",!1)},gn.prototype.beginPath=function(){this.path=[{type:"begin"}]},gn.prototype.moveTo=function(hi,Si){if(isNaN(hi)||isNaN(Si))throw o$2.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ni=this.ctx.transform.applyToPoint(new on(hi,Si));this.path.push({type:"mt",x:Ni.x,y:Ni.y}),this.ctx.lastPoint=new on(hi,Si)},gn.prototype.closePath=function(){var hi=new on(0,0),Si=0;for(Si=this.path.length-1;Si!==-1;Si--)if(this.path[Si].type==="begin"&&_typeof$1(this.path[Si+1])==="object"&&typeof this.path[Si+1].x=="number"){hi=new on(this.path[Si+1].x,this.path[Si+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new on(hi.x,hi.y)},gn.prototype.lineTo=function(hi,Si){if(isNaN(hi)||isNaN(Si))throw o$2.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ni=this.ctx.transform.applyToPoint(new on(hi,Si));this.path.push({type:"lt",x:Ni.x,y:Ni.y}),this.ctx.lastPoint=new on(Ni.x,Ni.y)},gn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ni.call(this,null,!0)},gn.prototype.quadraticCurveTo=function(hi,Si,Ni,yi){if(isNaN(Ni)||isNaN(yi)||isNaN(hi)||isNaN(Si))throw o$2.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Hi=this.ctx.transform.applyToPoint(new on(Ni,yi)),Ui=this.ctx.transform.applyToPoint(new on(hi,Si));this.path.push({type:"qct",x1:Ui.x,y1:Ui.y,x:Hi.x,y:Hi.y}),this.ctx.lastPoint=new on(Hi.x,Hi.y)},gn.prototype.bezierCurveTo=function(hi,Si,Ni,yi,Hi,Ui){if(isNaN(Hi)||isNaN(Ui)||isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi))throw o$2.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ji=this.ctx.transform.applyToPoint(new on(Hi,Ui)),Oi=this.ctx.transform.applyToPoint(new on(hi,Si)),Ei=this.ctx.transform.applyToPoint(new on(Ni,yi));this.path.push({type:"bct",x1:Oi.x,y1:Oi.y,x2:Ei.x,y2:Ei.y,x:Ji.x,y:Ji.y}),this.ctx.lastPoint=new on(Ji.x,Ji.y)},gn.prototype.arc=function(hi,Si,Ni,yi,Hi,Ui){if(isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi)||isNaN(Hi))throw o$2.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to 
43jsPDF.context2d.arc");if(Ui=!!Ui,!this.ctx.transform.isIdentity){var Ji=this.ctx.transform.applyToPoint(new on(hi,Si));hi=Ji.x,Si=Ji.y;var Oi=this.ctx.transform.applyToPoint(new on(0,Ni)),Ei=this.ctx.transform.applyToPoint(new on(0,0));Ni=Math.sqrt(Math.pow(Oi.x-Ei.x,2)+Math.pow(Oi.y-Ei.y,2))}Math.abs(Hi-yi)>=2*Math.PI&&(yi=0,Hi=2*Math.PI),this.path.push({type:"arc",x:hi,y:Si,radius:Ni,startAngle:yi,endAngle:Hi,counterclockwise:Ui})},gn.prototype.arcTo=function(hi,Si,Ni,yi,Hi){throw new Error("arcTo not implemented.")},gn.prototype.rect=function(hi,Si,Ni,yi){if(isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi))throw o$2.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(hi,Si),this.lineTo(hi+Ni,Si),this.lineTo(hi+Ni,Si+yi),this.lineTo(hi,Si+yi),this.lineTo(hi,Si),this.lineTo(hi+Ni,Si),this.lineTo(hi,Si)},gn.prototype.fillRect=function(hi,Si,Ni,yi){if(isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi))throw o$2.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!fn.call(this)){var Hi={};this.lineCap!=="butt"&&(Hi.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Hi.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(hi,Si,Ni,yi),this.fill(),Hi.hasOwnProperty("lineCap")&&(this.lineCap=Hi.lineCap),Hi.hasOwnProperty("lineJoin")&&(this.lineJoin=Hi.lineJoin)}},gn.prototype.strokeRect=function(hi,Si,Ni,yi){if(isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi))throw o$2.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");bn.call(this)||(this.beginPath(),this.rect(hi,Si,Ni,yi),this.stroke())},gn.prototype.clearRect=function(hi,Si,Ni,yi){if(isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi))throw o$2.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(hi,Si,Ni,yi))},gn.prototype.save=function(hi){hi=typeof hi!="boolean"||hi;for(var Si=this.pdf.internal.getCurrentPageInfo().pageNumber,Ni=0;Ni<this.pdf.internal.getNumberOfPages();Ni++)this.pdf.setPage(Ni+1),this.pdf.internal.out("q");if(this.pdf.setPage(Si),hi){this.ctx.fontSize=this.pdf.internal.getFontSize();var yi=new mn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=yi}},gn.prototype.restore=function(hi){hi=typeof hi!="boolean"||hi;for(var Si=this.pdf.internal.getCurrentPageInfo().pageNumber,Ni=0;Ni<this.pdf.internal.getNumberOfPages();Ni++)this.pdf.setPage(Ni+1),this.pdf.internal.out("Q");this.pdf.setPage(Si),hi&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},gn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var yn=function(hi){var Si,Ni,yi,Hi;if(hi.isCanvasGradient===!0&&(hi=hi.getColor()),!hi)return{r:0,g:0,b:0,a:0,style:hi};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(hi))Si=0,Ni=0,yi=0,Hi=0;else{var Ui=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(hi);if(Ui!==null)Si=parseInt(Ui[1]),Ni=parseInt(Ui[2]),yi=parseInt(Ui[3]),Hi=1;else if((Ui=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(hi))!==null)Si=parseInt(Ui[1]),Ni=parseInt(Ui[2]),yi=parseInt(Ui[3]),Hi=parseFloat(Ui[4]);else{if(Hi=1,typeof hi=="string"&&hi.charAt(0)!=="#"){var Ji=new h$1(hi);hi=Ji.ok?Ji.toHex():"#000000"}hi.length===4?(Si=hi.substring(1,2),Si+=Si,Ni=hi.substring(2,3),Ni+=Ni,yi=hi.substring(3,4),yi+=yi):(Si=hi.substring(1,3),Ni=hi.substring(3,5),yi=hi.substring(5,7)),Si=parseInt(Si,16),Ni=parseInt(Ni,16),yi=parseInt(yi,16)}}return{r:Si,g:Ni,b:yi,a:Hi,style:hi}},fn=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},bn=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};gn.prototype.fillText=function(hi,Si,Ni,yi){if(isNaN(Si)||isNaN(Ni)||typeof hi!="string")throw o$2.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
43jsPDF.context2d.fillText");if(yi=isNaN(yi)?void 0:yi,!fn.call(this)){var Hi=Pi(this.ctx.transform.rotation),Ui=this.ctx.transform.scaleX;ci.call(this,{text:hi,x:Si,y:Ni,scale:Ui,angle:Hi,align:this.textAlign,maxWidth:yi})}},gn.prototype.strokeText=function(hi,Si,Ni,yi){if(isNaN(Si)||isNaN(Ni)||typeof hi!="string")throw o$2.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!bn.call(this)){yi=isNaN(yi)?void 0:yi;var Hi=Pi(this.ctx.transform.rotation),Ui=this.ctx.transform.scaleX;ci.call(this,{text:hi,x:Si,y:Ni,scale:Ui,renderingMode:"stroke",angle:Hi,align:this.textAlign,maxWidth:yi})}},gn.prototype.measureText=function(hi){if(typeof hi!="string")throw o$2.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Si=this.pdf,Ni=this.pdf.internal.scaleFactor,yi=Si.internal.getFontSize(),Hi=Si.getStringUnitWidth(hi)*yi/Si.internal.scaleFactor;return new function(Ui){var Ji=(Ui=Ui||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ji}}),this}({width:Hi*=Math.round(96*Ni/72*1e4)/1e4})},gn.prototype.scale=function(hi,Si){if(isNaN(hi)||isNaN(Si))throw o$2.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ni=new dn(hi,0,0,Si,0,0);this.ctx.transform=this.ctx.transform.multiply(Ni)},gn.prototype.rotate=function(hi){if(isNaN(hi))throw o$2.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Si=new dn(Math.cos(hi),Math.sin(hi),-Math.sin(hi),Math.cos(hi),0,0);this.ctx.transform=this.ctx.transform.multiply(Si)},gn.prototype.translate=function(hi,Si){if(isNaN(hi)||isNaN(Si))throw o$2.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ni=new dn(1,0,0,1,hi,Si);this.ctx.transform=this.ctx.transform.multiply(Ni)},gn.prototype.transform=function(hi,Si,Ni,yi,Hi,Ui){if(isNaN(hi)||isNaN(Si)||isNaN(Ni)||isNaN(yi)||isNaN(Hi)||isNaN(Ui))throw o$2.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ji=new dn(hi,Si,Ni,yi,Hi,Ui);this.ctx.transform=this.ctx.transform.multiply(Ji)},gn.prototype.setTransform=function(hi,Si,Ni,yi,Hi,Ui){hi=isNaN(hi)?1:hi,Si=isNaN(Si)?0:Si,Ni=isNaN(Ni)?0:Ni,yi=isNaN(yi)?1:yi,Hi=isNaN(Hi)?0:Hi,Ui=isNaN(Ui)?0:Ui,this.ctx.transform=new dn(hi,Si,Ni,yi,Hi,Ui)};var Mn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};gn.prototype.drawImage=function(hi,Si,Ni,yi,Hi,Ui,Ji,Oi,Ei){var ea=this.pdf.getImageProperties(hi),vi=1,ti=1,ui=1,Cn=1;yi!==void 0&&Oi!==void 0&&(ui=Oi/yi,Cn=Ei/Hi,vi=ea.width/yi*Oi/yi,ti=ea.height/Hi*Ei/Hi),Ui===void 0&&(Ui=Si,Ji=Ni,Si=0,Ni=0),yi!==void 0&&Oi===void 0&&(Oi=yi,Ei=Hi),yi===void 0&&Oi===void 0&&(Oi=ea.width,Ei=ea.height);var ki=this.ctx.transform.decompose(),Zi=Pi(ki.rotate.shx),ta=new dn,Ri=(ta=(ta=(ta=ta.multiply(ki.translate)).multiply(ki.skew)).multiply(ki.scale)).applyToRectangle(new sn(Ui-Si*ui,Ji-Ni*Cn,yi*vi,Hi*ti));if(this.autoPaging){for(var ha,qi=Tn.call(this,Ri),ca=[],Bi=0;Bi<qi.length;Bi+=1)ca.indexOf(qi[Bi])===-1&&ca.push(qi[Bi]);Rn(ca);for(var Na=ca[0],pa=ca[ca.length-1],Ea=Na;Ea<pa+1;Ea++){this.pdf.setPage(Ea);var ns=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],vs=Ea===1?this.posY+this.margin[0]:this.margin[0],rs=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xa=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_s=Ea===1?0:rs+(Ea-2)*Xa;if(this.ctx.clip_path.length!==0){var mo=this.path;ha=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=En(ha,this.posX+this.margin[3],-_s+vs+this.ctx.prevPageLastElemOffset),mi.call(this,"fill",!0),this.path=mo}var Is=JSON.parse(JSON.stringify(Ri));Is=En([Is],this.posX+this.margin[3],-_s+vs+this.ctx.prevPageLastElemOffset)[0];var $s=(Ea>Na||Ea<pa)&&Mn.call(this);$s&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ns,Xa,null).clip().discardPath()),this.pdf.addImage(hi,"JPEG",Is.x,Is.y,Is.w,Is.h,null,null,Zi),$s&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(hi,"JPEG",Ri.x,Ri.y,Ri.w,Ri.h,null,null,Zi)};var Tn=function(hi,Si,Ni){var yi=[];Si=Si||this.pdf.internal.pageSize.width,Ni=Ni||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Hi=this.posY+this.ctx.prevPageLastElemOffset;switch(hi.type){default:case"mt":case"lt":yi.push(Math.floor((hi.y+Hi)/Ni)+1);break;case"arc":yi.push(Math.floor((hi.y+Hi-hi.radius)/Ni)+1),yi.push(Math.floor((hi.y+Hi+hi.radius)/Ni)+1);break;case"qct":var Ui=Fi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,hi.x1,hi.y1,hi.x,hi.y);yi.push(Math.floor((Ui.y+Hi)/Ni)+1),yi.push(Math.floor((Ui.y+Ui.h+Hi)/Ni)+1);break;case"bct":var Ji=$i(this.ctx.lastPoint.x,this.ctx.lastPoint.y,hi.x1,hi.y1,hi.x2,hi.y2,hi.x,hi.y);
vendor: 1,028 bytes, line 43
43yi.push(Math.floor((Ji.y+Hi)/Ni)+1),yi.push(Math.floor((Ji.y+Ji.h+Hi)/Ni)+1);break;case"rect":yi.push(Math.floor((hi.y+Hi)/Ni)+1),yi.push(Math.floor((hi.y+hi.h+Hi)/Ni)+1)}for(var Oi=0;Oi<yi.length;Oi+=1)for(;this.pdf.internal.getNumberOfPages()<yi[Oi];)xn.call(this);return yi},xn=function(){var hi=this.fillStyle,Si=this.strokeStyle,Ni=this.font,yi=this.lineCap,Hi=this.lineWidth,Ui=this.lineJoin;this.pdf.addPage(),this.fillStyle=hi,this.strokeStyle=Si,this.font=Ni,this.lineCap=yi,this.lineWidth=Hi,this.lineJoin=Ui},En=function(hi,Si,Ni){for(var yi=0;yi<hi.length;yi++)switch(hi[yi].type){case"bct":hi[yi].x2+=Si,hi[yi].y2+=Ni;case"qct":hi[yi].x1+=Si,hi[yi].y1+=Ni;default:hi[yi].x+=Si,hi[yi].y+=Ni}return hi},Rn=function(hi){return hi.sort(function(Si,Ni){return Si-Ni})},ni=function(hi,Si){var Ni=this.fillStyle,yi=this.strokeStyle,Hi=this.lineCap,Ui=this.lineWidth,Ji=Math.abs(Ui*this.ctx.transform.scaleX),Oi=this.lineJoin;if(this.autoPaging){for(var Ei,ea,vi=JSON.parse(JSON.stringify(this.path)),ti=JSON.parse(JSON.str
vendor: 9,342 bytes, line 43
43ingify(this.path)),ui=[],Cn=0;Cn<ti.length;Cn++)if(ti[Cn].x!==void 0)for(var ki=Tn.call(this,ti[Cn]),Zi=0;Zi<ki.length;Zi+=1)ui.indexOf(ki[Zi])===-1&&ui.push(ki[Zi]);for(var ta=0;ta<ui.length;ta++)for(;this.pdf.internal.getNumberOfPages()<ui[ta];)xn.call(this);Rn(ui);for(var Ri=ui[0],ha=ui[ui.length-1],qi=Ri;qi<ha+1;qi++){this.pdf.setPage(qi),this.fillStyle=Ni,this.strokeStyle=yi,this.lineCap=Hi,this.lineWidth=Ji,this.lineJoin=Oi;var ca=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bi=qi===1?this.posY+this.margin[0]:this.margin[0],Na=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],pa=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ea=qi===1?0:Na+(qi-2)*pa;if(this.ctx.clip_path.length!==0){var ns=this.path;Ei=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=En(Ei,this.posX+this.margin[3],-Ea+Bi+this.ctx.prevPageLastElemOffset),mi.call(this,hi,!0),this.path=ns}if(ea=JSON.parse(JSON.stringify(vi)),this.path=En(ea,this.posX+this.margin[3],-Ea+Bi+this.ctx.prevPageLastElemOffset),Si===!1||qi===0){var vs=(qi>Ri||qi<ha)&&Mn.call(this);vs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ca,pa,null).clip().discardPath()),mi.call(this,hi,Si),vs&&this.pdf.restoreGraphicsState()}this.lineWidth=Ui}this.path=vi}else this.lineWidth=Ji,mi.call(this,hi,Si),this.lineWidth=Ui},mi=function(hi,Si){if((hi!=="stroke"||Si||!bn.call(this))&&(hi==="stroke"||Si||!fn.call(this))){for(var Ni,yi,Hi=[],Ui=this.path,Ji=0;Ji<Ui.length;Ji++){var Oi=Ui[Ji];switch(Oi.type){case"begin":Hi.push({begin:!0});break;case"close":Hi.push({close:!0});break;case"mt":Hi.push({start:Oi,deltas:[],abs:[]});break;case"lt":var Ei=Hi.length;if(Ui[Ji-1]&&!isNaN(Ui[Ji-1].x)&&(Ni=[Oi.x-Ui[Ji-1].x,Oi.y-Ui[Ji-1].y],Ei>0)){for(;Ei>=0;Ei--)if(Hi[Ei-1].close!==!0&&Hi[Ei-1].begin!==!0){Hi[Ei-1].deltas.push(Ni),Hi[Ei-1].abs.push(Oi);break}}break;case"bct":Ni=[Oi.x1-Ui[Ji-1].x,Oi.y1-Ui[Ji-1].y,Oi.x2-Ui[Ji-1].x,Oi.y2-Ui[Ji-1].y,Oi.x-Ui[Ji-1].x,Oi.y-Ui[Ji-1].y],Hi[Hi.length-1].deltas.push(Ni);break;case"qct":var ea=Ui[Ji-1].x+2/3*(Oi.x1-Ui[Ji-1].x),vi=Ui[Ji-1].y+2/3*(Oi.y1-Ui[Ji-1].y),ti=Oi.x+2/3*(Oi.x1-Oi.x),ui=Oi.y+2/3*(Oi.y1-Oi.y),Cn=Oi.x,ki=Oi.y;Ni=[ea-Ui[Ji-1].x,vi-Ui[Ji-1].y,ti-Ui[Ji-1].x,ui-Ui[Ji-1].y,Cn-Ui[Ji-1].x,ki-Ui[Ji-1].y],Hi[Hi.length-1].deltas.push(Ni);break;case"arc":Hi.push({deltas:[],abs:[],arc:!0}),Array.isArray(Hi[Hi.length-1].abs)&&Hi[Hi.length-1].abs.push(Oi)}}yi=Si?null:hi==="stroke"?"stroke":"fill";for(var Zi=!1,ta=0;ta<Hi.length;ta++)if(Hi[ta].arc)for(var Ri=Hi[ta].abs,ha=0;ha<Ri.length;ha++){var qi=Ri[ha];qi.type==="arc"?oi.call(this,qi.x,qi.y,qi.radius,qi.startAngle,qi.endAngle,qi.counterclockwise,void 0,Si,!Zi):di.call(this,qi.x,qi.y),Zi=!0}else if(Hi[ta].close===!0)this.pdf.internal.out("h"),Zi=!1;else if(Hi[ta].begin!==!0){var ca=Hi[ta].start.x,Bi=Hi[ta].start.y;wi.call(this,Hi[ta].deltas,ca,Bi),Zi=!0}yi&&si.call(this,yi),Si&&fi.call(this)}},bi=function(hi){var Si=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ni=Si*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return hi-Ni;case"top":return hi+Si-Ni;case"hanging":return hi+Si-2*Ni;case"middle":return hi+Si/2-Ni;default:return hi}},_i=function(hi){return hi+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};gn.prototype.createLinearGradient=function(){var hi=function(){};return hi.colorStops=[],hi.addColorStop=function(Si,Ni){this.colorStops.push([Si,Ni])},hi.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},hi.isCanvasGradient=!0,hi},gn.prototype.createPattern=function(){return this.createLinearGradient()},gn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var oi=function(hi,Si,Ni,yi,Hi,Ui,Ji,Oi,Ei){for(var ea=ji.call(this,Ni,yi,Hi,Ui),vi=0;vi<ea.length;vi++){var ti=ea[vi];vi===0&&(Ei?ei.call(this,ti.x1+hi,ti.y1+Si):di.call(this,ti.x1+hi,ti.y1+Si)),Ci.call(this,hi,Si,ti.x2,ti.y2,ti.x3,ti.y3,ti.x4,ti.y4)}Oi?fi.call(this):si.call(this,Ji)},si=function(hi){switch(hi){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},fi=function(){this.pdf.clip(),this.pdf.discardPath()},ei=function(hi,Si){this.pdf.internal.out(tn(hi)+" "+nn(Si)+" m")},ci=function(hi){var Si;switch(hi.align){case"right":case"end":Si="right";break;case"center":Si="center";break;default:Si="left"}var Ni,yi,Hi,Ui=this.pdf.getTextDimensions(hi.text),Ji=bi.call(this,hi.y),Oi=_i.call(this,Ji)-Ui.h,Ei=this.ctx.transform.applyToPoint(new on(hi.x,Ji));if(this.autoPaging){var ea=this.ctx.transform.decompose(),vi=new dn;vi=(vi=(vi=vi.multiply(ea.translate)).multiply(ea.skew)).multiply(ea.scale);for(var ti=this.ctx.transform.applyToRectangle(new sn(hi.x,Ji,Ui.w,Ui.h)),ui=vi.applyToRectangle(new sn(hi.x,Oi,Ui.w,Ui.h)),Cn=Tn.call(this,ui),ki=[],Zi=0;Zi<Cn.length;Zi+=1)ki.indexOf(Cn[Zi])===-1&&ki.push(Cn[Zi]);Rn(ki);for(var ta=ki[0],Ri=ki[ki.length-1],ha=ta;ha<Ri+1;ha++){this.pdf.setPage(ha);var qi=ha===1?this.posY+this.margin[0]:this.margin[0],ca=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Bi=this.pdf.internal.pageSize.height-this.margin[2],Na=Bi-this.margin[0],pa=this.pdf.internal.pageSize.width-this.margin[1],Ea=pa-this.margin[3],ns=ha===1?0:ca+(ha-2)*Na;if(this.ctx.clip_path.length!==0){var vs=this.path;Ni=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=En(Ni,this.posX+this.margin[3],-1*ns+qi),mi.call(this,"fill",!0),this.path=vs}var rs=En([JSON.parse(JSON.stringify(ui))],this.posX+this.margin[3],-ns+qi+this.ctx.prevPageLastElemOffset)[0];hi.scale>=.01&&(yi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(yi*hi.scale),Hi=this.lineWidth,this.lineWidth=Hi*hi.scale);var Xa=this.autoPaging!=="text";if(Xa||rs.y+rs.h<=Bi){if(Xa||rs.y>=qi&&rs.x<=pa){var _s=Xa?hi.text:this.pdf.splitTextToSize(hi.text,hi.maxWidth||pa-rs.x)[0],mo=En([JSON.parse(JSON.stringify(ti))],this.posX+this.margin[3],-ns+qi+this.ctx.prevPageLastElemOffset)[0],Is=Xa&&(ha>ta||ha<Ri)&&Mn.call(this);Is&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ea,Na,null).clip().discardPath()),this.pdf.text(_s,mo.x,mo.y,{angle:hi.angle,align:Si,renderingMode:hi.renderingMode}),Is&&this.pdf.restoreGraphicsState()}}else rs.y<Bi&&(this.ctx.prevPageLastElemOffset+=Bi-rs.y);hi.scale>=.01&&(this.pdf.setFontSize(yi),this.lineWidth=Hi)}}else hi.scale>=.01&&(yi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(yi*hi.scale),Hi=this.lineWidth,this.lineWidth=Hi*hi.scale),this.pdf.text(hi.text,Ei.x+this.posX,Ei.y+this.posY,{angle:hi.angle,align:Si,renderingMode:hi.renderingMode,maxWidth:hi.maxWidth}),hi.scale>=.01&&(this.pdf.setFontSize(yi),this.lineWidth=Hi)},di=function(hi,Si,Ni,yi){Ni=Ni||0,yi=yi||0,this.pdf.internal.out(tn(hi+Ni)+" "+nn(Si+yi)+" l")},wi=function(hi,Si,Ni){return this.pdf.lines(hi,Si,Ni,null,null)},Ci=function(hi,Si,Ni,yi,Hi,Ui,Ji,Oi){this.pdf.internal.out([He(an(Ni+hi)),He(rn(yi+Si)),He(an(Hi+hi)),He(rn(Ui+Si)),He(an(Ji+hi)),He(rn(Oi+Si)),"c"].join(" "))},ji=function(hi,Si,Ni,yi){for(var Hi=2*Math.PI,Ui=Math.PI/2;Si>Ni;)Si-=Hi;var Ji=Math.abs(Ni-Si);Ji<Hi&&yi&&(Ji=Hi-Ji);for(var Oi=[],Ei=yi?-1:1,ea=Si;Ji>1e-5;){var vi=ea+Ei*Math.min(Ji,Ui);Oi.push(Yi.call(this,hi,ea,vi)),Ji-=Math.abs(vi-ea),ea=vi}return Oi},Yi=function(hi,Si,Ni){var yi=(Ni-Si)/2,Hi=hi*Math.cos(yi),Ui=hi*Math.sin(yi),Ji=Hi,Oi=-Ui,Ei=Ji*Ji+Oi*Oi,ea=Ei+Ji*Hi+Oi*Ui,vi=4/3*(Math.sqrt(2*Ei*ea)-ea)/(Ji*Ui-Oi*Hi),ti=Ji-vi*Oi,ui=Oi+vi*Ji,Cn=ti,ki=-ui,Zi=yi+Si,ta=Math.cos(Zi),Ri=Math.sin(Zi);return{x1:hi*Math.cos(Si),y1:hi*Math.sin(Si),x2:ti*ta-ui*Ri,y2:ti*Ri+ui*ta,x3:Cn*ta-ki*Ri,y3:Cn*Ri+ki*ta,x4:hi*Math.cos(Ni),y4:hi*Math.sin(Ni)}},Pi=function(hi){return 180*hi/Math.PI},Fi=function(hi,Si,Ni,yi,Hi,Ui){var Ji=hi+.5*(Ni-hi),Oi=Si+.5*(yi-Si),Ei=Hi+.5*(Ni-Hi),ea=Ui+.5*(yi-Ui),vi=Math.min(hi,Hi,Ji,Ei),ti=Math.max(hi,Hi,Ji,Ei),ui=Math.min(Si,Ui,Oi,ea),Cn=Math.max(Si,Ui,Oi,ea);return new sn(vi,ui,ti-vi,Cn-ui)},$i=function(hi,Si,Ni,yi,Hi,Ui,Ji,Oi){var Ei,ea,vi,ti,ui,Cn,ki,Zi,ta,Ri,ha,qi,ca,Bi,Na=Ni-hi,pa=yi-Si,Ea=Hi-Ni,ns=Ui-yi,vs=Ji-Hi,rs=Oi-Ui;for(ea=0;ea<41;ea++)ta=(ki=(vi=hi+(Ei=ea/40)*Na)+Ei*((ui=Ni+Ei*Ea)-vi))+Ei*(ui+Ei*(Hi+Ei*vs-ui)-ki),Ri=(Zi=(ti=Si+Ei*pa)+Ei*((Cn=yi+Ei*ns)-ti))+Ei*(Cn+Ei*(Ui+Ei*rs-Cn)-Zi),ea==0?(ha=ta,qi=Ri,ca=ta,Bi=Ri):(ha=Math.min(ha,ta),qi=Math.min(qi,Ri),ca=Math.max(ca,ta),Bi=Math.max(Bi,Ri));return new sn(Math.round(ha),Math.round(qi),Math.round(ca-ha),Math.round(Bi-qi))},Wi=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var hi,Si,Ni=(hi=this.ctx.lineDash,Si=this.ctx.lineDashOffset,JSON.stringify({lineDash:hi,lineDashOffset:Si}));this.prevLineDash!==Ni&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ni)}}})(E.API),(function(en){var He=function(on){var sn,dn,hn,mn,gn,yn,fn,bn,Mn,Tn;for(dn=[],hn=0,mn=(on+=sn="\0\0\0\0".slice(on.length%4||4)).length;mn>hn;hn+=4)(gn=(on.charCodeAt(hn)<<24)+(on.charCodeAt(hn+1)<<16)+(on.charCodeAt(hn+2)<<8)+on.charCodeAt(hn+3))!==0?(yn=(gn=((gn=((gn=((gn=(gn-(Tn=gn%85))/85)-(Mn=gn%85))/85)-(bn=gn%85))/85)-(fn=gn%85))/85)%85,dn.push(yn+33,fn+33,bn+33,Mn+33,Tn+33)):dn.push(122);return(function(xn,En){for(var Rn=En;Rn>0;Rn--)xn.pop()})(dn,sn.length),String.fromCharCode.apply(String,dn)+"~>"}
43,tn=function(on){var sn,dn,hn,mn,gn,yn=String,fn="length",bn=255,Mn="charCodeAt",Tn="slice",xn="replace";for(on[Tn](-2),on=on[Tn](0,-2)[xn](/\s/g,"")[xn]("z","!!!!!"),hn=[],mn=0,gn=(on+=sn="uuuuu"[Tn](on[fn]%5||5))[fn];gn>mn;mn+=5)dn=52200625*(on[Mn](mn)-33)+614125*(on[Mn](mn+1)-33)+7225*(on[Mn](mn+2)-33)+85*(on[Mn](mn+3)-33)+(on[Mn](mn+4)-33),hn.push(bn&dn>>24,bn&dn>>16,bn&dn>>8,bn&dn);return(function(En,Rn){for(var ni=Rn;ni>0;ni--)En.pop()})(hn,sn[fn]),yn.fromCharCode.apply(yn,hn)},nn=function(on){return on.split("").map(function(sn){return("0"+sn.charCodeAt().toString(16)).slice(-2)}).join("")+">"},an=function(on){var sn=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((on=on.replace(/\s/g,"")).indexOf(">")!==-1&&(on=on.substr(0,on.indexOf(">"))),on.length%2&&(on+="0"),sn.test(on)===!1)return"";for(var dn="",hn=0;hn<on.length;hn+=2)dn+=String.fromCharCode("0x"+(on[hn]+on[hn+1]));return dn},rn=function(on){for(var sn=new Uint8Array(on.length),dn=on.length;dn--;)sn[dn]=on.charCodeAt(dn);return(sn=zlibSync(sn)).reduce(function(hn,mn){return hn+String.fromCharCode(mn)},"")};en.processDataByFilters=function(on,sn){var dn=0,hn=on||"",mn=[];for(typeof(sn=sn||[])=="string"&&(sn=[sn]),dn=0;dn<sn.length;dn+=1)switch(sn[dn]){case"ASCII85Decode":case"/ASCII85Decode":hn=tn(hn),mn.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":hn=He(hn),mn.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":hn=an(hn),mn.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":hn=nn(hn),mn.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":hn=rn(hn),mn.push("/FlateDecode");break;default:throw new Error('The filter: "'+sn[dn]+'" is not implemented')}return{data:hn,reverseChain:mn.reverse().join(" ")}}})(E.API),(function(en){en.loadFile=function(He,tn,nn){return(function(an,rn,on){rn=rn!==!1,on=typeof on=="function"?on:function(){};var sn=void 0;try{sn=(function(dn,hn,mn){var gn=new XMLHttpRequest,yn=0,fn=function(bn){var Mn=bn.length,Tn=[],xn=String.fromCharCode;for(yn=0;yn<Mn;yn+=1)Tn.push(xn(255&bn.charCodeAt(yn)));return Tn.join("")};if(gn.open("GET",dn,!hn),gn.overrideMimeType("text/plain; charset=x-user-defined"),hn===!1&&(gn.onload=function(){gn.status===200?mn(fn(this.responseText)):mn(void 0)}),gn.send(null),hn&&gn.status===200)return fn(gn.responseText)})(an,rn,on)}catch{}return sn})(He,tn,nn)},en.allowFsRead=void 0,en.loadImageFile=en.loadFile})(E.API),(function(en){function He(){return(i$2.html2canvas?Promise.resolve(i$2.html2canvas):__vitePreload(()=>import("./html2canvas.esm-Ge7aVWlp.js"),[])).catch(function(sn){return Promise.reject(new Error("Could not load html2canvas: "+sn))}).then(function(sn){return sn.default?sn.default:sn})}function tn(){return(i$2.DOMPurify?Promise.resolve(i$2.DOMPurify):__vitePreload(()=>import("./purify.es-Bzr520pe.js"),[])).catch(function(sn){return Promise.reject(new Error("Could not load dompurify: "+sn))}).then(function(sn){return sn.default?sn.default:sn})}var nn=function(sn){var dn=_typeof$1(sn);return dn==="undefined"?"undefined":dn==="string"||sn instanceof String?"string":dn==="number"||sn instanceof Number?"number":dn==="function"||sn instanceof Function?"function":sn&&sn.constructor===Array?"array":sn&&sn.nodeType===1?"element":dn==="object"?"object":"unknown"},an=function(sn,dn){var hn=document.createElement(sn);for(var mn in dn.className&&(hn.className=dn.className),dn.innerHTML&&dn.dompurify&&(hn.innerHTML=dn.dompurify.sanitize(dn.innerHTML)),dn.style)hn.style[mn]=dn.style[mn];return hn},rn=function sn(dn,hn){for(var mn=dn.nodeType===3?document.createTextNode(dn.nodeValue):dn.cloneNode(!1),gn=dn.firstChild;gn;gn=gn.nextSibling)hn!==!0&&gn.nodeType===1&&gn.nodeName==="SCRIPT"||mn.appendChild(sn(gn,hn));return dn.nodeType===1&&(dn.nodeName==="CANVAS"?(mn.width=dn.width,mn.height=dn.height,mn.getContext("2d").drawImage(dn,0,0)):dn.nodeName!=="TEXTAREA"&&dn.nodeName!=="SELECT"||(mn.value=dn.value),mn.addEventListener("load",function(){mn.scrollTop=dn.scrollTop,mn.scrollLeft=dn.scrollLeft},!0)),mn},on=function sn(dn){var hn=Object.assign(sn.convert(Promise.resolve()),JSON.parse(JSON.stringify(sn.template))),mn=sn.convert(Promise.resolve(),hn);return(mn=mn.setProgress(1,sn,1,[sn])).set(dn)};(on.prototype=Object.create(Promise.prototype)).constructor=on,on.convert=function(sn,dn){return sn.__proto__=dn||on.prototype,sn},on.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},on.prototype.from=function(sn,dn){return this.then(function(){switch(dn=dn||(function(hn){switch(nn(hn)){case"string":return"string";case"element":return hn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(sn),dn){case"string":return this.then(tn).then(function(hn){return this.set({src:an("div",{innerHTML:sn,dompurify:hn})})});case"element":return this.set({src:sn});case"canvas":return this.set({canvas:sn});case"img":return this.set({img:sn});default:return this.error("Unknown source type.")}})},on.prototype.to=function(sn){switch(sn){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();
vendor: 14,233 bytes, lines 43-49
43case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},on.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var sn={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},dn=rn(this.prop.src,this.opt.html2canvas.javascriptEnabled);dn.tagName==="BODY"&&(sn.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=an("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=an("div",{className:"html2pdf__container",style:sn}),this.prop.container.appendChild(dn),this.prop.container.firstChild.appendChild(an("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},on.prototype.toCanvas=function(){var sn=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(sn).then(He).then(function(dn){var hn=Object.assign({},this.opt.html2canvas);return delete hn.onrendered,dn(this.prop.container,hn)}).then(function(dn){(this.opt.html2canvas.onrendered||function(){})(dn),this.prop.canvas=dn,document.body.removeChild(this.prop.overlay)})},on.prototype.toContext2d=function(){var sn=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(sn).then(He).then(function(dn){var hn=this.opt.jsPDF,mn=this.opt.fontFaces,gn=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,yn=Object.assign({async:!0,allowTaint:!0,scale:gn,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete yn.onrendered,hn.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,hn.context2d.posX=this.opt.x,hn.context2d.posY=this.opt.y,hn.context2d.margin=this.opt.margin,hn.context2d.fontFaces=mn,mn)for(var fn=0;fn<mn.length;++fn){var bn=mn[fn],Mn=bn.src.find(function(Tn){return Tn.format==="truetype"});Mn&&hn.addFont(Mn.url,bn.ref.name,bn.ref.style)}return yn.windowHeight=yn.windowHeight||0,yn.windowHeight=yn.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):yn.windowHeight,hn.context2d.save(!0),dn(this.prop.container,yn)}).then(function(dn){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(dn),this.prop.canvas=dn,document.body.removeChild(this.prop.overlay)})},on.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var sn=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=sn})},on.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},on.prototype.output=function(sn,dn,hn){return(hn=hn||"pdf").toLowerCase()==="img"||hn.toLowerCase()==="image"?this.outputImg(sn,dn):this.outputPdf(sn,dn)},on.prototype.outputPdf=function(sn,dn){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(sn,dn)})},on.prototype.outputImg=function(sn){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(sn){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+sn+'" is not supported.'}})},on.prototype.save=function(sn){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(sn?{filename:sn}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},on.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},on.prototype.set=function(sn){if(nn(sn)!=="object")return this;var dn=Object.keys(sn||{}).map(function(hn){if(hn in on.template.prop)return function(){this.prop[hn]=sn[hn]};switch(hn){case"margin":return this.setMargin.bind(this,sn.margin);case"jsPDF":return function(){return this.opt.jsPDF=sn.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,sn.pageSize);default:return function(){this.opt[hn]=sn[hn]}}},this);return this.then(function(){return this.thenList(dn)})},on.prototype.get=function(sn,dn){return this.then(function(){var hn=sn in on.template.prop?this.prop[sn]:this.opt[sn];return dn?dn(hn):hn})},on.prototype.setMargin=function(sn){return this.then(function(){switch(nn(sn)){case"number":sn=[sn,sn,sn,sn];case"array":if(sn.length===2&&(sn=[sn[0],sn[1],sn[0],sn[1]]),sn.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=sn}).then(this.setPageSize)},on.prototype.setPageSize=function(sn){function dn(hn,mn){return Math.floor(hn*mn/72*96)}return this.then(function(){(sn=sn||E.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(sn.inner={width:sn.width-this.opt.margin[1]-this.opt.margin[3],height:sn.height-this.opt.margin[0]-this.opt.margin[2]},sn.inner.px={width:dn(sn.inner.width,sn.k),height:dn(sn.inner.height,sn.k)},sn.inner.ratio=sn.inner.height/sn.inner.width),this.prop.pageSize=sn})},on.prototype.setProgress=function(sn,dn,hn,mn){return sn!=null&&(this.progress.val=sn),dn!=null&&(this.progress.state=dn),hn!=null&&(this.progress.n=hn),mn!=null&&(this.progress.stack=mn),this.progress.ratio=this.progress.val/this.progress.state,this},on.prototype.updateProgress=function(sn,dn,hn,mn){return this.setProgress(sn?this.progress.val+sn:null,dn||null,hn?this.progress.n+hn:null,mn?this.progress.stack.concat(mn):null)},on.prototype.then=function(sn,dn){var hn=this;return this.thenCore(sn,dn,function(mn,gn){return hn.updateProgress(null,null,1,[mn]),Promise.prototype.then.call(this,function(yn){return hn.updateProgress(null,mn),yn}).then(mn,gn).then(function(yn){return hn.updateProgress(1),yn})})},on.prototype.thenCore=function(sn,dn,hn){hn=hn||Promise.prototype.then;var mn=this;sn&&(sn=sn.bind(mn)),dn&&(dn=dn.bind(mn));var gn=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?mn:on.convert(Object.assign({},mn),Promise.prototype),yn=hn.call(gn,sn,dn);return on.convert(yn,mn.__proto__)},on.prototype.thenExternal=function(sn,dn){return Promise.prototype.then.call(this,sn,dn)},on.prototype.thenList=function(sn){var dn=this;return sn.forEach(function(hn){dn=dn.thenCore(hn)}),dn},on.prototype.catch=function(sn){sn&&(sn=sn.bind(this));var dn=Promise.prototype.catch.call(this,sn);return on.convert(dn,this)},on.prototype.catchExternal=function(sn){return Promise.prototype.catch.call(this,sn)},on.prototype.error=function(sn){return this.then(function(){throw new Error(sn)})},on.prototype.using=on.prototype.set,on.prototype.saveAs=on.prototype.save,on.prototype.export=on.prototype.output,on.prototype.run=on.prototype.then,E.getPageSize=function(sn,dn,hn){if(_typeof$1(sn)==="object"){var mn=sn;sn=mn.orientation,dn=mn.unit||dn,hn=mn.format||hn}dn=dn||"mm",hn=hn||"a4",sn=(""+(sn||"P")).toLowerCase();var gn,yn=(""+hn).toLowerCase(),fn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(dn){case"pt":gn=1;break;case"mm":gn=72/25.4;break;case"cm":gn=72/2.54;break;case"in":gn=72;break;case"px":gn=.75;break;case"pc":case"em":gn=12;break;case"ex":gn=6;break;default:throw"Invalid unit: "+dn}var bn,Mn=0,Tn=0;if(fn.hasOwnProperty(yn))Mn=fn[yn][1]/gn,Tn=fn[yn][0]/gn;else try{Mn=hn[1],Tn=hn[0]}catch{throw new Error("Invalid format: "+hn)}if(sn==="p"||sn==="portrait")sn="p",Tn>Mn&&(bn=Tn,Tn=Mn,Mn=bn);else{if(sn!=="l"&&sn!=="landscape")throw"Invalid orientation: "+sn;sn="l",Mn>Tn&&(bn=Tn,Tn=Mn,Mn=bn)}return{width:Tn,height:Mn,unit:dn,k:gn,orientation:sn}},en.html=function(sn,dn){(dn=dn||{}).callback=dn.callback||function(){},dn.html2canvas=dn.html2canvas||{},dn.html2canvas.canvas=dn.html2canvas.canvas||this.canvas,dn.jsPDF=dn.jsPDF||this,dn.fontFaces=dn.fontFaces?dn.fontFaces.map(Ot$1):null;var hn=new on(dn);return dn.worker?hn:hn.from(sn).doCallback()}})(E.API),E.API.addJS=function(en){var He,tn,nn=en;return this.internal.events.subscribe("postPutResources",function(){He=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(He+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),tn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+nn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){He!==void 0&&tn!==void 0&&this.internal.out("/Names <</JavaScript "+He+" 0 R>>")}),this},(function(en){var He;en.events.push(["postPutResources",function(){var tn=this,nn=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var an=tn.outline.render().split(/\r\n/),rn=0;rn<an.length;rn++){var on=an[rn],sn=nn.exec(on);if(sn!=null){var dn=sn[1];tn.internal.newObjectDeferredBegin(dn,!1)}tn.internal.write(on)}if(this.outline.createNamedDestinations){var hn=this.internal.pages.length,mn=[];for(rn=0;rn<hn;rn++){var gn=tn.internal.newObject();mn.push(gn);var yn=tn.internal.getPageInfo(rn+1);tn.internal.write("<< /D["+yn.objId+" 0 R /XYZ null null null]>> endobj")}var fn=tn.internal.newObject();for(tn.internal.write("<< /Names [ "),rn=0;rn<mn.length;rn++)tn.internal.write("(page_"+(rn+1)+")"+mn[rn]+" 0 R");tn.internal.write(" ] >>","endobj"),He=tn.internal.newObject(),tn.internal.write("<< /Dests "+fn+" 0 R"),tn.internal.write(">>","endobj")}}]),en.events.push(["putCatalog",function(){var tn=this;tn.outline.root.children.length>0&&(tn.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&tn.internal.write("/Names "+He+" 0 R"))}]),en.events.push(["initialized",function(){var tn=this;tn.outline={createNamedDestinations:!1,root:{children:[]}},tn.outline.add=function(nn,an,rn){var on={title:an,options:rn,children:[]};return nn==null&&(nn=this.root),nn.children.push(on),on},tn.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=tn,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},tn.outline.genIds_r=function(nn){nn.id=tn.internal.newObjectDeferred();for(var an=0;an<nn.children.length;an++)this.genIds_r(nn.children[an])},tn.outline.renderRoot=function(nn){this.objStart(nn),this.line("/Type /Outlines"),nn.children.length>0&&(this.line("/First "+this.makeRef(nn.children[0])),this.line("/Last "+this.makeRef(nn.children[nn.children.length-1]))),this.line("/Count "+this.count_r({count:0},nn)),this.objEnd()},tn.outline.renderItems=function(nn){for(var an=this.ctx.pdf.internal.getVerticalCoordinateString,rn=0;rn<nn.children.length;rn++){var on=nn.children[rn];this.objStart(on),this.line("/Title "+this.makeString(on.title)),this.line("/Parent "+this.makeRef(nn)),rn>0&&this.line("/Prev "+this.makeRef(nn.children[rn-1])),rn<nn.children.length-1&&this.line("/Next "+this.makeRef(nn.children[rn+1])),on.children.length>0&&(this.line("/First "+this.makeRef(on.children[0])),this.line("/Last "+this.makeRef(on.children[on.children.length-1])));var sn=this.count=this.count_r({count:0},on);if(sn>0&&this.line("/Count "+sn),on.options&&on.options.pageNumber){var dn=tn.internal.getPageInfo(on.options.pageNumber);this.line("/Dest ["+dn.objId+" 0 R /XYZ 0 "+an(0)+" 0]")}this.objEnd()}for(var hn=0;hn<nn.children.length;hn++)this.renderItems(nn.children[hn])},tn.outline.line=function(nn){this.ctx.val+=nn+`\r
44`},tn.outline.makeRef=function(nn){return nn.id+" 0 R"},tn.outline.makeString=function(nn){return"("+tn.internal.pdfEscape(nn)+")"},tn.outline.objStart=function(nn){this.ctx.val+=`\r
45`+nn.id+` 0 obj\r
46<<\r
47`},tn.outline.objEnd=function(){this.ctx.val+=`>> \r
48endobj\r
49`},tn.outline.count_r=function(nn,an){for(var rn=0;rn<an.children.length;rn++)nn.count++,this.count_r(nn,an.children[rn]);return nn.count}}])})(E.API),(function(en){var He=[192,193,194,195,196,197,198,199];en.processJPEG=function(tn,nn,an,rn,on,sn){var dn,hn=this.decode.DCT_DECODE,mn=null;if(typeof tn=="string"||this.__addimage__.isArrayBuffer(tn)||this.__addimage__.isArrayBufferView(tn)){switch(tn=on||tn,tn=this.__addimage__.isArrayBuffer(tn)?new Uint8Array(tn):tn,dn=(function(gn){for(var yn,fn=256*gn.charCo
49deAt(4)+gn.charCodeAt(5),bn=gn.length,Mn={width:0,height:0,numcomponents:1},Tn=4;Tn<bn;Tn+=2){if(Tn+=fn,He.indexOf(gn.charCodeAt(Tn+1))!==-1){yn=256*gn.charCodeAt(Tn+5)+gn.charCodeAt(Tn+6),Mn={width:256*gn.charCodeAt(Tn+7)+gn.charCodeAt(Tn+8),height:yn,numcomponents:gn.charCodeAt(Tn+9)};break}fn=256*gn.charCodeAt(Tn+2)+gn.charCodeAt(Tn+3)}return Mn})(tn=this.__addimage__.isArrayBufferView(tn)?this.__addimage__.arrayBufferToBinaryString(tn):tn),dn.numcomponents){case 1:sn=this.color_spaces.DEVICE_GRAY;break;case 4:sn=this.color_spaces.DEVICE_CMYK;break;case 3:sn=this.color_spaces.DEVICE_RGB}mn={data:tn,width:dn.width,height:dn.height,colorSpace:sn,bitsPerComponent:8,filter:hn,index:nn,alias:an}}return mn}})(E.API),E.API.processPNG=function(en,He,tn,nn){if(this.__addimage__.isArrayBuffer(en)&&(en=new Uint8Array(en)),this.__addimage__.isArrayBufferView(en)){var an,rn=decodePng(en,{checkCrc:!0}),on=rn.width,sn=rn.height,dn=rn.channels,hn=rn.palette,mn=rn.depth;an=hn&&dn===1?(function(oi){for(var si=oi.width,fi=oi.height,ei=oi.data,ci=oi.palette,di=oi.depth,wi=!1,Ci=[],ji=[],Yi=void 0,Pi=!1,Fi=0,$i=0;$i<ci.length;$i++){var Wi=_slicedToArray(ci[$i],4),hi=Wi[0],Si=Wi[1],Ni=Wi[2],yi=Wi[3];Ci.push(hi,Si,Ni),yi!=null&&(yi===0?(Fi++,ji.length<1&&ji.push($i)):yi<255&&(Pi=!0))}if(Pi||Fi>1){wi=!0,ji=void 0;var Hi=si*fi;Yi=new Uint8Array(Hi);for(var Ui=new DataView(ei.buffer),Ji=0;Ji<Hi;Ji++){var Oi=ee(Ui,Ji,di),Ei=_slicedToArray(ci[Oi],4)[3];Yi[Ji]=Ei}}else Fi===0&&(ji=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:wi?8:void 0,colorBytes:ei,alphaBytes:Yi,needSMask:wi,palette:Ci,mask:ji}})(rn):dn===2||dn===4?(function(oi){for(var si=oi.data,fi=oi.width,ei=oi.height,ci=oi.channels,di=oi.depth,wi=ci===2?"DeviceGray":"DeviceRGB",Ci=ci-1,ji=fi*ei,Yi=Ci,Pi=ji*Yi,Fi=1*ji,$i=Math.ceil(Pi*di/8),Wi=Math.ceil(Fi*di/8),hi=new Uint8Array($i),Si=new Uint8Array(Wi),Ni=new DataView(si.buffer),yi=new DataView(hi.buffer),Hi=new DataView(Si.buffer),Ui=!1,Ji=0;Ji<ji;Ji++){for(var Oi=Ji*ci,Ei=0;Ei<Yi;Ei++)re$2(yi,ee(Ni,Oi+Ei,di),Ji*Yi+Ei,di);var ea=ee(Ni,Oi+Yi,di);ea<(1<<di)-1&&(Ui=!0),re$2(Hi,ea,1*Ji,di)}return{colorSpace:wi,colorsPerPixel:Ci,sMaskBitsPerComponent:Ui?di:void 0,colorBytes:hi,alphaBytes:Si,needSMask:Ui}})(rn):(function(oi){var si=oi.data,fi=oi.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:fi,colorsPerPixel:fi==="DeviceGray"?1:3,colorBytes:si instanceof Uint16Array?(function(ei){for(var ci=ei.length,di=new Uint8Array(2*ci),wi=new DataView(di.buffer,di.byteOffset,di.byteLength),Ci=0;Ci<ci;Ci++)wi.setUint16(2*Ci,ei[Ci],!1);return di})(si):si,needSMask:!1}})(rn);var gn,yn,fn,bn=an,Mn=bn.colorSpace,Tn=bn.colorsPerPixel,xn=bn.sMaskBitsPerComponent,En=bn.colorBytes,Rn=bn.alphaBytes,ni=bn.needSMask,mi=bn.palette,bi=bn.mask,_i=null;return nn!==E.API.image_compression.NONE&&typeof zlibSync=="function"?(_i=(function(oi){var si;switch(oi){case E.API.image_compression.FAST:si=11;break;case E.API.image_compression.MEDIUM:si=13;break;case E.API.image_compression.SLOW:si=14;break;default:si=12}return si})(nn),gn=this.decode.FLATE_DECODE,yn="/Predictor ".concat(_i," /Colors ").concat(Tn," /BitsPerComponent ").concat(mn," /Columns ").concat(on),en=Yt(En,Math.ceil(on*Tn*mn/8),Tn,mn,nn),ni&&(fn=Yt(Rn,Math.ceil(on*xn/8),1,xn,nn))):(gn=void 0,yn=void 0,en=En,ni&&(fn=Rn)),(this.__addimage__.isArrayBuffer(en)||this.__addimage__.isArrayBufferView(en))&&(en=this.__addimage__.arrayBufferToBinaryString(en)),(fn&&this.__addimage__.isArrayBuffer(fn)||this.__addimage__.isArrayBufferView(fn))&&(fn=this.__addimage__.arrayBufferToBinaryString(fn)),{alias:tn,data:en,index:He,filter:gn,decodeParameters:yn,transparency:bi,palette:mi,sMask:fn,predictor:_i,width:on,height:sn,bitsPerComponent:mn,sMaskBitsPerComponent:xn,colorSpace:Mn}}},(function(en){en.processGIF89A=function(He,tn,nn,an){var rn=new ie(He),on=rn.width,sn=rn.height,dn=[];rn.decodeAndBlitFrameRGBA(0,dn);var hn={data:dn,width:on,height:sn},mn=new oe(100).encode(hn,100);return en.processJPEG.call(this,mn,tn,nn,an)},en.processGIF87A=en.processGIF89A})(E.API),se.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var en=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(en);for(var He=0;He<en;He++){var tn=this.datav.getUint8(this.pos++,!0),nn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),rn=this.datav.getUint8(this.pos++,!0);this.palette[He]={red:an,green:nn,blue:tn,quad:rn}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},se.prototype.parseBGR=function(){this.pos=this.offset;var en="bit"+this.bitPP,He=this.width*this.height*4;if(He>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(He);try{this[en]()}catch(tn){o$2.log("bit decode error:"+tn)}},se.prototype.bit1=function(){var en,He=Math.ceil(this.width/8),tn=He%4;for(en=this.height-1;en>=0;en--){for(var nn=this.bottom_up?en:this.height-1-en,an=0;an<He;an++)for(var rn=this.datav.getUint8(this.pos++,!0),on=nn*this.width*4+8*an*4,
vendor: 5,035 bytes, line 49
49sn=0;sn<8&&8*an+sn<this.width;sn++){var dn=this.palette[rn>>7-sn&1];this.data[on+4*sn]=dn.blue,this.data[on+4*sn+1]=dn.green,this.data[on+4*sn+2]=dn.red,this.data[on+4*sn+3]=255}tn!==0&&(this.pos+=4-tn)}},se.prototype.bit4=function(){for(var en=Math.ceil(this.width/2),He=en%4,tn=this.height-1;tn>=0;tn--){for(var nn=this.bottom_up?tn:this.height-1-tn,an=0;an<en;an++){var rn=this.datav.getUint8(this.pos++,!0),on=nn*this.width*4+2*an*4,sn=rn>>4,dn=15&rn,hn=this.palette[sn];if(this.data[on]=hn.blue,this.data[on+1]=hn.green,this.data[on+2]=hn.red,this.data[on+3]=255,2*an+1>=this.width)break;hn=this.palette[dn],this.data[on+4]=hn.blue,this.data[on+4+1]=hn.green,this.data[on+4+2]=hn.red,this.data[on+4+3]=255}He!==0&&(this.pos+=4-He)}},se.prototype.bit8=function(){for(var en=this.width%4,He=this.height-1;He>=0;He--){for(var tn=this.bottom_up?He:this.height-1-He,nn=0;nn<this.width;nn++){var an=this.datav.getUint8(this.pos++,!0),rn=tn*this.width*4+4*nn;if(an<this.palette.length){var on=this.palette[an];this.data[rn]=on.red,this.data[rn+1]=on.green,this.data[rn+2]=on.blue,this.data[rn+3]=255}else this.data[rn]=255,this.data[rn+1]=255,this.data[rn+2]=255,this.data[rn+3]=255}en!==0&&(this.pos+=4-en)}},se.prototype.bit15=function(){for(var en=this.width%3,He=parseInt("11111",2),tn=this.height-1;tn>=0;tn--){for(var nn=this.bottom_up?tn:this.height-1-tn,an=0;an<this.width;an++){var rn=this.datav.getUint16(this.pos,!0);this.pos+=2;var on=(rn&He)/He*255|0,sn=(rn>>5&He)/He*255|0,dn=(rn>>10&He)/He*255|0,hn=rn>>15?255:0,mn=nn*this.width*4+4*an;this.data[mn]=dn,this.data[mn+1]=sn,this.data[mn+2]=on,this.data[mn+3]=hn}this.pos+=en}},se.prototype.bit16=function(){for(var en=this.width%3,He=parseInt("11111",2),tn=parseInt("111111",2),nn=this.height-1;nn>=0;nn--){for(var an=this.bottom_up?nn:this.height-1-nn,rn=0;rn<this.width;rn++){var on=this.datav.getUint16(this.pos,!0);this.pos+=2;var sn=(on&He)/He*255|0,dn=(on>>5&tn)/tn*255|0,hn=(on>>11)/He*255|0,mn=an*this.width*4+4*rn;this.data[mn]=hn,this.data[mn+1]=dn,this.data[mn+2]=sn,this.data[mn+3]=255}this.pos+=en}},se.prototype.bit24=function(){for(var en=this.height-1;en>=0;en--){for(var He=this.bottom_up?en:this.height-1-en,tn=0;tn<this.width;tn++){var nn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),rn=this.datav.getUint8(this.pos++,!0),on=He*this.width*4+4*tn;this.data[on]=rn,this.data[on+1]=an,this.data[on+2]=nn,this.data[on+3]=255}this.pos+=this.width%4}},se.prototype.bit32=function(){for(var en=this.height-1;en>=0;en--)for(var He=this.bottom_up?en:this.height-1-en,tn=0;tn<this.width;tn++){var nn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),rn=this.datav.getUint8(this.pos++,!0),on=this.datav.getUint8(this.pos++,!0),sn=He*this.width*4+4*tn;this.data[sn]=rn,this.data[sn+1]=an,this.data[sn+2]=nn,this.data[sn+3]=on}},se.prototype.getData=function(){return this.data},(function(en){en.processBMP=function(He,tn,nn,an){var rn=new se(He,!1),on=rn.width,sn=rn.height,dn={data:rn.getData(),width:on,height:sn},hn=new oe(100).encode(dn,100);return en.processJPEG.call(this,hn,tn,nn,an)}})(E.API),ue.prototype.getData=function(){return this.data},(function(en){en.processWEBP=function(He,tn,nn,an){var rn=new ue(He),on=rn.width,sn=rn.height,dn={data:rn.getData(),width:on,height:sn},hn=new oe(100).encode(dn,100);return en.processJPEG.call(this,hn,tn,nn,an)}})(E.API),E.API.processRGBA=function(en,He,tn){for(var nn=en.data,an=nn.length,rn=new Uint8Array(an/4*3),on=new Uint8Array(an/4),sn=0,dn=0,hn=0;hn<an;hn+=4){var mn=nn[hn],gn=nn[hn+1],yn=nn[hn+2],fn=nn[hn+3];rn[sn++]=mn,rn[sn++]=gn,rn[sn++]=yn,on[dn++]=fn}var bn=this.__addimage__.arrayBufferToBinaryString(rn);return{alpha:this.__addimage__.arrayBufferToBinaryString(on),data:bn,index:He,alias:tn,colorSpace:"DeviceRGB",bitsPerComponent:8,width:en.width,height:en.height}},E.API.setLanguage=function(en){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
49a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[en]!==void 0&&(this.internal.languageSettings.languageCode=en,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},zt$1=E.API,Ut$1=zt$1.getCharWidthsArray=function(en,He){var tn,nn,an=(He=He||{}).font||this.internal.getFont(),rn=He.fontSize||this.internal.getFontSize(),on=He.charSpace||this.internal.getCharSpace(),sn=He.widths?He.widths:an.metadata.Unicode.widths,dn=sn.fof?sn.fof:1,hn=He.kerning?He.kerning:an.metadata.Unicode.kerning,mn=hn.fof?hn.fof:1,gn=He.doKerning!==!1,yn=0,fn=en.length,bn=0,Mn=sn[0]||dn,Tn=[];for(tn=0;tn<fn;tn++)nn=en.charCodeAt(tn),typeof an.metadata.widthOfString=="function"?Tn.push((an.metadata.widthOfGlyph(an.metadata.characterToGlyph(nn))+on*(1e3/rn)||0)/1e3):(yn=gn&&_typeof$1(hn[nn])==="object"&&!isNaN(parseInt(hn[nn][bn],10))?hn[nn][bn]/mn:0,Tn.push((sn[nn]||Mn)/dn+yn)),bn=nn;return Tn},Ht=zt$1.getStringUnitWidth=function(en,He){var tn=(He=He||{}).fontSize||this.internal.getFontSize(),nn=He.font||this.internal.getFont(),an=He.charSpace||this.internal.getCharSpace();return zt$1.processArabic&&(en=zt$1.processArabic(en)),typeof nn.metadata.widthOfString=="function"?nn.metadata.widthOfString(en,tn,an)/tn:Ut$1.apply(this,arguments).reduce(function(rn,on){return rn+on},0)}
vendor: 4,569 bytes, lines 49-51
49,Wt=function(en,He,tn,nn){for(var an=[],rn=0,on=en.length,sn=0;rn!==on&&sn+He[rn]<tn;)sn+=He[rn],rn++;an.push(en.slice(0,rn));var dn=rn;for(sn=0;rn!==on;)sn+He[rn]>nn&&(an.push(en.slice(dn,rn)),sn=0,dn=rn),sn+=He[rn],rn++;return dn!==rn&&an.push(en.slice(dn,rn)),an},Vt$1=function(en,He,tn){tn||(tn={});var nn,an,rn,on,sn,dn,hn,mn=[],gn=[mn],yn=tn.textIndent||0,fn=0,bn=0,Mn=en.split(" "),Tn=Ut$1.apply(this,[" ",tn])[0];if(dn=tn.lineIndent===-1?Mn[0].length+2:tn.lineIndent||0){var xn=Array(dn).join(" "),En=[];Mn.map(function(ni){(ni=ni.split(/\s*\n/)).length>1?En=En.concat(ni.map(function(mi,bi){return(bi&&mi.length?`
50`:"")+mi})):En.push(ni[0])}),Mn=En,dn=Ht.apply(this,[xn,tn])}for(rn=0,on=Mn.length;rn<on;rn++){var Rn=0;if(nn=Mn[rn],dn&&nn[0]==`
51`&&(nn=nn.substr(1),Rn=1),yn+fn+(bn=(an=Ut$1.apply(this,[nn,tn])).reduce(function(ni,mi){return ni+mi},0))>He||Rn){if(bn>He){for(sn=Wt.apply(this,[nn,an,He-(yn+fn),He]),mn.push(sn.shift()),mn=[sn.pop()];sn.length;)gn.push([sn.shift()]);bn=an.slice(nn.length-(mn[0]?mn[0].length:0)).reduce(function(ni,mi){return ni+mi},0)}else mn=[nn];gn.push(mn),yn=bn+dn,fn=Tn}else mn.push(nn),yn+=fn+bn,fn=Tn}return hn=dn?function(ni,mi){return(mi?xn:"")+ni.join(" ")}:function(ni){return ni.join(" ")},gn.map(hn)},zt$1.splitTextToSize=function(en,He,tn){var nn,an=(tn=tn||{}).fontSize||this.internal.getFontSize(),rn=(function(mn){if(mn.widths&&mn.kerning)return{widths:mn.widths,kerning:mn.kerning};var gn=this.internal.getFont(mn.fontName,mn.fontStyle),yn="Unicode";return gn.metadata[yn]?{widths:gn.metadata[yn].widths||{0:1},kerning:gn.metadata[yn].kerning||{}}:{font:gn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,tn);nn=Array.isArray(en)?en:String(en).split(/\r?\n/);var on=1*this.internal.scaleFactor*He/an;rn.textIndent=tn.textIndent?1*tn.textIndent*this.internal.scaleFactor/an:0,rn.lineIndent=tn.lineIndent;var sn,dn,hn=[];for(sn=0,dn=nn.length;sn<dn;sn++)hn=hn.concat(Vt$1.apply(this,[nn[sn],on,rn]));return hn},(function(en){en.__fontmetrics__=en.__fontmetrics__||{};for(var He="0123456789abcdef",tn="klmnopqrstuvwxyz",nn={},an={},rn=0;rn<16;rn++)nn[tn[rn]]=He[rn],an[He[rn]]=tn[rn];var on=function(yn){return"0x"+parseInt(yn,10).toString(16)},sn=en.__fontmetrics__.compress=function(yn){var fn,bn,Mn,Tn,xn=["{"];for(var En in yn){if(fn=yn[En],isNaN(parseInt(En,10))?bn="'"+En+"'":(En=parseInt(En,10),bn=(bn=on(En).slice(2)).slice(0,-1)+an[bn.slice(-1)]),typeof fn=="number")fn<0?(Mn=on(fn).slice(3),Tn="-"):(Mn=on(fn).slice(2),Tn=""),Mn=Tn+Mn.slice(0,-1)+an[Mn.slice(-1)];else{if(_typeof$1(fn)!=="object")throw new Error("Don't know what to do with value type "+_typeof$1(fn)+".");Mn=sn(fn)}xn.push(bn+Mn)}return xn.push("}"),xn.join("")},dn=en.__fontmetrics__.uncompress=function(yn){if(typeof yn!="string")throw new Error("Invalid argument passed to uncompress.");for(var fn,bn,Mn,Tn,xn={},En=1,Rn=xn,ni=[],mi="",bi="",_i=yn.length-1,oi=1;oi<_i;oi+=1)(Tn=yn[oi])=="'"?fn?(Mn=fn.join(""),fn=void 0):fn=[]:fn?fn.push(Tn):Tn=="{"?(ni.push([Rn,Mn]),Rn={},Mn=void 0):Tn=="}"?((bn=ni.pop())[0][bn[1]]=Rn,Mn=void 0,Rn=bn[0]):Tn=="-"?En=-1:Mn===void 0?nn.hasOwnProperty(Tn)?(mi+=nn[Tn],Mn=parseInt(mi,16)*En,En=1,mi=""):mi+=Tn:nn.hasOwnProperty(Tn)?(bi+=nn[Tn],Rn[Mn]=parseInt(bi,16)*En,En=1,Mn=void 0,bi=""):bi+=Tn;return xn},hn={codePages:["WinAnsiEncoding"],WinAnsiEncoding:dn("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},mn={Unicode:{Courier:hn,"Courier-Bold":hn,"Courier-BoldOblique":hn,"Courier-Oblique":hn,Helvetica:hn,"Helvetica-Bold":hn,"Helvetica-BoldOblique":hn,"Helvetica-Oblique":hn,"Times-Roman":hn,"Times-Bold":hn,"Times-BoldItalic":hn,"Times-Italic":hn}},gn={Unicode:{"Courier-Oblique":dn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":dn("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3me
51k3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":dn("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
51dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:dn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":dn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":dn("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:dn("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:dn("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
51dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":dn("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
51dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:dn("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":dn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":dn("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
51fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":dn("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":dn("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
51dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};en.events.push(["addFont",function(yn){var fn=yn.font,bn=gn.Unicode[fn.postScriptName];bn&&(fn.metadata.Unicode={},fn.metadata.Unicode.widths=bn.widths,fn.metadata.Unicode.kerning=bn.kerning);var Mn=mn.Unicode[fn.postScriptName];Mn&&(fn.metadata.Unicode.encoding=Mn,fn.encoding=Mn.codePages[0])}])})(E.API),(function(en){var He=function(tn){for(var nn=tn.length,an=new Uint8Array(nn),rn=0;rn<nn;rn++)an[rn]=tn.charCodeAt(rn);return an};en.API.events.push(["addFont",function(tn){var nn=void 0,an=tn.font,rn=tn.instance;if(!an.isStandardFont){if(rn===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+an.postScriptName+"').");if(typeof(nn=rn.existsFileInVFS(an.postScriptName)===!1?rn.loadFile(an.postScriptName):rn.getFileFromVFS(an.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+an.postScriptName+"').");(function(on,sn){sn=/^\x00\x01\x00\x00/.test(sn)?He(sn):He(f$1(sn)),on.metadata=en.API.TTFFont.open(sn),on.metadata.Unicode=on.metadata.Unicode||{encoding:{},kerning:{},widths:[]},on.metadata.glyIdsUsed=[0]})(an,nn)}}])})(E),E.API.addSvgAsImage=function(en,He,tn,nn,an,rn,on,sn){if(isNaN(He)||isNaN(tn))throw o$2.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(nn)||isNaN(an))throw o$2.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var dn=document.createElement("canvas");dn.width=nn,dn.height=an;var hn=dn.getContext("2d");hn.fillStyle="#fff",hn.fillRect(0,0,dn.width,dn.height);var mn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},gn=this;return(i$2.canvg?Promise.resolve(i$2.canvg):__vitePreload(()=>import("./index.es-BV0J5gm7.js"),__vite__mapDeps([0,1]))).catch(function(yn){return Promise.reject(new Error("Could not load canvg: "+yn))}).then(function(yn){return yn.default?yn.default:yn}).then(function(yn){return yn.fromString(hn,en,mn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(yn){return yn.render(mn)}).then(function(){gn.addImage(dn.toDataURL("image/jpeg",1),He,tn,nn,an,on,sn)})},E.API.putTotalPages=function(en){var He,tn=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(He=new RegExp(en,"g"),tn=this.internal.getNumberOfPages()):(He=new RegExp(this.pdfEscape16(en,this.internal.getFont()),"g"),tn=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var nn=1;nn<=this.internal.getNumberOfPages();nn++)for(var an=0;an<this.internal.pages[nn].length;an++)this.internal.pages[nn][an]=this.internal.pages[nn][an].replace(He,tn);return this},E.API.viewerPreferences=function(en,He){var tn;en=en||{},He=He||!1;var nn,an,rn,on={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},sn=Object.keys(on),dn=[],hn=0,mn=0,gn=0;function yn(bn,Mn){var Tn,xn=!1;for(Tn=0;Tn<bn.length;Tn+=1)bn[Tn]===Mn&&(xn=!0);return xn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(on)),this.internal.viewerpreferences.isSubscribed=!1),tn=this.internal.viewerpreferences.configuration,en==="reset"||He===!0){var fn=sn.length;for(gn=0;gn<fn;gn+=1)tn[sn[gn]].value=tn[sn[gn]].defaultValue,tn[sn[gn]].explicitSet=!1}if(_typeof$1(en)==="object"){for(an in en)if(rn=en[an],yn(sn,an)&&rn!==void 0){if(tn[an].type==="boolean"&&typeof rn=="boolean")tn[an].value=rn;else if(tn[an].type==="name"&&yn(tn[an].valueSet,rn))tn[an].value=rn;
vendor: 4,779 bytes, lines 51-79
51else if(tn[an].type==="integer"&&Number.isInteger(rn))tn[an].value=rn;else if(tn[an].type==="array"){for(hn=0;hn<rn.length;hn+=1)if(nn=!0,rn[hn].length===1&&typeof rn[hn][0]=="number")dn.push(String(rn[hn]-1));else if(rn[hn].length>1){for(mn=0;mn<rn[hn].length;mn+=1)typeof rn[hn][mn]!="number"&&(nn=!1);nn===!0&&dn.push([rn[hn][0]-1,rn[hn][1]-1].join(" "))}tn[an].value="["+dn.join(" ")+"]"}else tn[an].value=tn[an].defaultValue;tn[an].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var bn,Mn=[];for(bn in tn)tn[bn].explicitSet===!0&&(tn[bn].type==="name"?Mn.push("/"+bn+" /"+tn[bn].value):Mn.push("/"+bn+" "+tn[bn].value));Mn.length!==0&&this.internal.write(`/ViewerPreferences
52<<
53`+Mn.join(`
54`)+`
55>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=tn,this},E.API.addMetadata=function(en,He){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:en,namespaceUri:He??"http://jspdf.default.namespaceuri/",rawXml:typeof He=="boolean"&&He},this.internal.events.subscribe("putCatalog",le),this.internal.events.subscribe("postPutResources",ce)),this},(function(en){var He=en.API,tn=He.pdfEscape16=function(rn,on){for(var sn,dn=on.metadata.Unicode.widths,hn=["","0","00","000","0000"],mn=[""],gn=0,yn=rn.length;gn<yn;++gn){if(sn=on.metadata.characterToGlyph(rn.charCodeAt(gn)),on.metadata.glyIdsUsed.push(sn),on.metadata.toUnicode[sn]=rn.charCodeAt(gn),dn.indexOf(sn)==-1&&(dn.push(sn),dn.push([parseInt(on.metadata.widthOfGlyph(sn),10)])),sn=="0")return mn.join("");sn=sn.toString(16),mn.push(hn[4-sn.length],sn)}return mn.join("")},nn=function(rn){var on,sn,dn,hn,mn,gn,yn;for(mn=`/CIDInit /ProcSet findresource begin
5612 dict begin
57begincmap
58/CIDSystemInfo <<
59  /Registry (Adobe)
60  /Ordering (UCS)
61  /Supplement 0
62>> def
63/CMapName /Adobe-Identity-UCS def
64/CMapType 2 def
651 begincodespacerange
66<0000><ffff>
67endcodespacerange`,dn=[],gn=0,yn=(sn=Object.keys(rn).sort(function(fn,bn){return fn-bn})).length;gn<yn;gn++)on=sn[gn],dn.length>=100&&(mn+=`
68`+dn.length+` beginbfchar
69`+dn.join(`
70`)+`
71endbfchar`,dn=[]),rn[on]!==void 0&&rn[on]!==null&&typeof rn[on].toString=="function"&&(hn=("0000"+rn[on].toString(16)).slice(-4),on=("0000"+(+on).toString(16)).slice(-4),dn.push("<"+on+"><"+hn+">"));return dn.length&&(mn+=`
72`+dn.length+` beginbfchar
73`+dn.join(`
74`)+`
75endbfchar
76`),mn+`endcmap
77CMapName currentdict /CMap defineresource pop
78end
79end`};He.events.push(["putFont",function(rn){(function(on){var sn=on.font,dn=on.out,hn=on.newObject,mn=on.putStream;if(sn.metadata instanceof en.API.TTFFont&&sn.encoding==="Identity-H"){for(var gn=sn.metadata.Unicode.widths,yn=sn.metadata.subset.encode(sn.metadata.glyIdsUsed,1),fn="",bn=0;bn<yn.length;bn++)fn+=String.fromCharCode(yn[bn]);var Mn=hn();mn({data:fn,addLength1:!0,objectId:Mn}),dn("endobj");var Tn=hn();mn({data:nn(sn.metadata.toUnicode),addLength1:!0,objectId:Tn}),dn("endobj");var xn=hn();dn("<<"),dn("/Type /FontDescriptor"),dn("/FontName /"+j(sn.fontName)),dn("/FontFile2 "+Mn+" 0 R"),dn("/FontBBox "+en.API.PDFObject.convert(sn.metadata.bbox)),dn("/Flags "+sn.metadata.flags),dn("/StemV "+sn.metadata.stemV),dn("/ItalicAngle "+sn.metadata.italicAngle),dn("/Ascent "+sn.metadata.ascender),dn("/Descent "+sn.metadata.decender),dn("/CapHeight "+sn.metadata.capHeight),dn(">>"),dn("endobj");var En=hn();dn("<<"),dn("/Type /Font"),dn("/BaseFont /"+j(sn.fontName)),dn("/FontDescriptor "+xn+" 0 R"),dn("/W "+en.API.PDFObject.convert(gn)),dn("/CIDToGIDMap /Identity"),dn("/DW 1000"),dn("/Subtype /CIDFontType2"),dn("/CIDSystemInfo"),dn("<<"),dn("/Supplement 0"),dn("/Registry (Adobe)"),dn("/Ordering ("+sn.encoding+")"),dn(">>"),dn(">>"),dn("endobj"),sn.objectNumber=hn(),dn("<<"),dn("/Type /Font"),dn("/Subtype /Type0"),dn("/ToUnicode "+Tn+" 0 R"),dn("/BaseFont /"+j(sn.fontName)),dn("/Encoding /"+sn.encoding),dn("/DescendantFonts ["+En+" 0 R]"),dn(">>"),dn("endobj"),sn.isAlreadyPutted=!0}})(rn)}]),He.events.push(["putFont",function(rn){(function(on){var sn=on.font,dn=on.out,hn=on.newObject,mn=on.putStream;if(sn.metadata instanceof en.API.TTFFont&&sn.encoding==="WinAnsiEncoding"){for(var gn=sn.metadata.rawData,yn="",fn=0;fn<gn.length;fn++)yn+=String.fromCharCode(gn[fn]);var bn=hn();mn({data:yn,addLength1:!0,objectId:bn}),dn("endobj");var Mn=hn();mn({data:nn(sn.metadata.toUnicode),addLength1:!0,objectId:Mn}),dn("endobj");var Tn=hn();dn("<<"),dn("/Descent "+sn.metadata.decender),dn("/CapHeight "+sn.metadata.capHeight),dn("/StemV "+sn.metadata.stemV),dn("/Type /FontDescriptor"),dn("/FontFile2 "+bn+" 0 R"),dn("/Flags 96"),dn("/FontBBox "+en.API.PDFObject.convert(sn.metadata.bbox)),dn("/FontName /"+j(sn.fontName)),dn("/ItalicAngle "+sn.metadata.italicAngle),dn("/A
79scent "+sn.metadata.ascender),dn(">>"),dn("endobj"),sn.objectNumber=hn();for(var xn=0;xn<sn.metadata.hmtx.widths.length;xn++)sn.metadata.hmtx.widths[xn]=parseInt(sn.metadata.hmtx.widths[xn]*(1e3/sn.metadata.head.unitsPerEm));dn("<</Subtype/TrueType/Type/Font/ToUnicode "+Mn+" 0 R/BaseFont/"+j(sn.fontName)+"/FontDescriptor "+Tn+" 0 R/Encoding/"+sn.encoding+" /FirstChar 29 /LastChar 255 /Widths "+en.API.PDFObject.convert(sn.metadata.hmtx.widths)+">>"),dn("endobj"),sn.isAlreadyPutted=!0}})(rn)}]);var an=function(rn){var on,sn=rn.text||"",dn=rn.x,hn=rn.y,mn=rn.options||{},gn=rn.mutex||{},yn=gn.pdfEscape,fn=gn.activeFontKey,bn=gn.fonts,Mn=fn,Tn="",xn=0,En="",Rn=bn[Mn].encoding;if(bn[Mn].encoding!=="Identity-H")return{text:sn,x:dn,y:hn,options:mn,mutex:gn};for(En=sn,Mn=fn,Array.isArray(sn)&&(En=sn[0]),xn=0;xn<En.length;xn+=1)bn[Mn].metadata.hasOwnProperty("cmap")&&(on=bn[Mn].metadata.cmap.unicode.codeMap[En[xn].charCodeAt(0)]),on||En[xn].charCodeAt(0)<256&&bn[Mn].metadata.hasOwnProperty("Unicode")?Tn+=En[xn]:Tn+="";var ni="";return parseInt(Mn.slice(1))<14||Rn==="WinAnsiEncoding"?ni=yn(Tn,Mn).split("").map(function(mi){return mi.charCodeAt(0).toString(16)}).join(""):Rn==="Identity-H"&&(ni=tn(Tn,bn[Mn])),gn.isHex=!0,{text:ni,x:dn,y:hn,options:mn,mutex:gn}};He.events.push(["postProcessText",function(rn){var on=rn.text||"",sn=[],dn={text:on,x:rn.x,y:rn.y,options:rn.options,mutex:rn.mutex};if(Array.isArray(on)){var hn=0;for(hn=0;hn<on.length;hn+=1)Array.isArray(on[hn])&&on[hn].length===3?sn.push([an(Object.assign({},dn,{text:on[hn][0]})).text,on[hn][1],on[hn][2]]):sn.push(an(Object.assign({},dn,{text:on[hn]})).text);rn.text=sn}else rn.text=an(Object.assign({},dn,{text:on})).text}])})(E),(function(en){var He=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};en.existsFileInVFS=function(tn){return He.call(this),this.internal.vFS[tn]!==void 0},en.addFileToVFS=function(tn,nn){return He.call(this),this.internal.vFS[tn]=nn,this},en.getFileFromVFS=function(tn){return He.call(this),this.internal.vFS[tn]!==void 0?this.internal.vFS[tn]:null}})(E.API),(function(en){en.__bidiEngine__=en.prototype.__bidiEngine__=function(nn){var an,rn,on,sn,dn,hn,mn,gn=He,yn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],fn=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],bn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Mn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Tn=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],xn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),En=!1,Rn=0;this.__bidiEngine__={};var ni=function(ei){var ci=ei.charCodeAt(),di=ci>>8,wi=Mn[di];return wi!==void 0?gn[256*wi+(255&ci)]:di===252||di===253?"AL":xn.test(di)?"L":di===8?"R":"N"},mi=function(ei){for(var ci,di=0;di<ei.length;di++){if((ci=ni(ei.charAt(di)))==="L")return!1;if(ci==="R")return!0}return!1},bi=function(ei,ci,di,wi){var Ci,ji,Yi,Pi,Fi=ci[wi];switch(Fi){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":En=!1;break;case"N":case"AN":break;case"EN":En&&(Fi="AN");break;case"AL":En=!0,Fi="R";break;case"WS":case"BN":Fi="N";break;case"CS":wi<1||wi+1>=ci.length||(Ci=di[wi-1])!=="EN"&&Ci!=="AN"||(ji=ci[wi+1])!=="EN"&&ji!=="AN"?Fi="N":En&&(ji="AN"),Fi=ji===Ci?ji:"N";break;case"ES":Fi=(Ci=wi>0?di[wi-1]:"B")==="EN"&&wi+1<ci.length&&ci[wi+1]==="EN"?"EN":"N";break;case"ET":if(wi>0&&di[wi-1]==="EN"){Fi="EN";break}if(En){Fi="N";break}for(Yi=wi+1,Pi=ci.length;Yi<Pi&&ci[Yi]==="ET";)Yi++;Fi=Yi<Pi&&ci[Yi]==="EN"?"EN":"N";break;case"NSM":if(on&&!sn){for(Pi=ci.length,Yi=wi+1;Yi<Pi&&ci[Yi]==="NSM";)Yi++;if(Yi<Pi){var $i=ei[wi],Wi=$i>=1425&&$i<=2303||$i===64286;if(Ci=ci[Yi],Wi&&(Ci==="R"||Ci==="AL")){Fi="R";break}}}Fi=wi<1||(Ci=ci[wi-1])==="B"?"N":di[wi-1];break;case"B":En=!1,an=!0,Fi=Rn;break;case"S":rn=!0,Fi="N"}return Fi},_i=function(ei,ci,di){var wi=ei.split("");return di&&oi(wi,di,{hiLevel:Rn}),wi.reverse(),ci&&ci.reverse(),wi.join("")},oi=function(ei,ci,di){var wi,Ci,ji,Yi,Pi,Fi=-1,$i=ei.length,Wi=0,hi=[],Si=Rn?fn:yn,Ni=[];for(En=!1,an=!1,rn=!1,Ci=0;Ci<$i;Ci++)Ni[Ci]=ni(ei[Ci]);for(ji=0;ji<$i;ji++){if(Pi=Wi,hi[ji]=bi(ei,Ni,hi,ji),wi=240&(Wi=Si[Pi][bn[hi[ji]]]),Wi&=15,ci[ji]=Yi=Si[Wi][5],wi>0)if(wi===16){for(Ci=Fi;Ci<ji;Ci++)ci[Ci]=1;Fi=-1}else Fi=-1;if(Si[Wi][6])Fi===-1&&(Fi=ji);else if(Fi>-1){for(Ci=Fi;Ci<ji;Ci++)ci[Ci]=Yi;Fi=-1}Ni[ji]==="B"&&(ci[ji]=0),di.hiLevel|=Yi}rn&&(function(yi,Hi,Ui){for(var Ji=0;Ji<Ui;Ji++)if(yi[Ji]==="S"){Hi[Ji]=Rn;for(var Oi=Ji-1;Oi>=0&&yi[Oi]==="WS";Oi--)Hi[Oi]=Rn}})(Ni,ci,$i)},si=function(ei,ci,di,wi,Ci){if(!(Ci.hiLevel<ei)){if(ei===1&&Rn===1&&!an)return ci.reverse(),void(di&&di.reverse());for(var ji,Yi,Pi,Fi,$i=ci.length,Wi=0;Wi<$i;){if(wi[Wi]>=ei){for(Pi=Wi+1;Pi<$i&&wi[Pi]>=ei;)Pi++;for(Fi=Wi,Yi=Pi-1;Fi<Yi;Fi++,Yi--)ji=ci[Fi],ci[Fi]=ci[Yi],ci[Yi]=ji,di&&(ji=di[Fi],di[Fi]=di[Yi],di[Yi]=ji);Wi=Pi}Wi++}}},fi=function(ei,ci,di){var wi=ei.split(""),Ci={hiLevel:Rn};return di||(di=[]),oi(wi,di,Ci),(function(ji,Yi,Pi){if(Pi.hiLevel!==0&&mn)for(var Fi,$i=0;$i<ji.length;
vendor: 16,400 bytes, line 79
79$i++)Yi[$i]===1&&(Fi=Tn.indexOf(ji[$i]))>=0&&(ji[$i]=Tn[Fi+1])})(wi,di,Ci),si(2,wi,ci,di,Ci),si(1,wi,ci,di,Ci),wi.join("")};return this.__bidiEngine__.doBidiReorder=function(ei,ci,di){if((function(Ci,ji){if(ji)for(var Yi=0;Yi<Ci.length;Yi++)ji[Yi]=Yi;sn===void 0&&(sn=mi(Ci)),hn===void 0&&(hn=mi(Ci))})(ei,ci),on||!dn||hn)if(on&&dn&&sn^hn)Rn=sn?1:0,ei=_i(ei,ci,di);else if(!on&&dn&&hn)Rn=sn?1:0,ei=fi(ei,ci,di),ei=_i(ei,ci);else if(!on||sn||dn||hn){if(on&&!dn&&sn^hn)ei=_i(ei,ci),sn?(Rn=0,ei=fi(ei,ci,di)):(Rn=1,ei=fi(ei,ci,di),ei=_i(ei,ci));else if(on&&sn&&!dn&&hn)Rn=1,ei=fi(ei,ci,di),ei=_i(ei,ci);else if(!on&&!dn&&sn^hn){var wi=mn;sn?(Rn=1,ei=fi(ei,ci,di),Rn=0,mn=!1,ei=fi(ei,ci,di),mn=wi):(Rn=0,ei=fi(ei,ci,di),ei=_i(ei,ci),Rn=1,mn=!1,ei=fi(ei,ci,di),mn=wi,ei=_i(ei,ci))}}else Rn=0,ei=fi(ei,ci,di);else Rn=sn?1:0,ei=fi(ei,ci,di);return ei},this.__bidiEngine__.setOptions=function(ei){ei&&(on=ei.isInputVisual,dn=ei.isOutputVisual,sn=ei.isInputRtl,hn=ei.isOutputRtl,mn=ei.isSymmetricSwapping)},this.__bidiEngine__.setOptions(nn),this.__bidiEngine__};var He=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],tn=new en.__bidiEngine__({isInputVisual:!0});en.API.events.push(["postProcessText",function(nn){var an=nn.text;nn.x,nn.y;var rn=nn.options||{};nn.mutex,rn.lang;var on=[];if(rn.isInputVisual=typeof rn.isInputVisual!="boolean"||rn.isInputVisual,tn.setOptions(rn),Object.prototype.toString.call(an)==="[object Array]"){var sn=0;for(on=[],sn=0;sn<an.length;sn+=1)Object.prototype.toString.call(an[sn])==="[object Array]"?on.push([tn.doBidiReorder(an[sn][0]),an[sn][1],an[sn][2]]):on.push([tn.doBidiReorder(an[sn])]);nn.text=on}else nn.text=tn.doBidiReorder(an);tn.setOptions({isInputVisual:!0})}])})(E),E.API.TTFFont=(function(){function en(He){var tn;if(this.rawData=He,tn=this.contents=new fe(He),this.contents.pos=4,tn.readString(4)==="ttcf")throw new Error("TTCF not supported.");tn.pos=0,this.parse(),this.subset=new je(this),this.registerTTF()}return en.open=function(He){return new en(He)},en.prototype.parse=function(){return this.directory=new de(this.contents),this.head=new me(this),this.name=new xe$1(this),this.cmap=new be(this),this.toUnicode={},this.hhea=new ye(this),this.maxp=new Ae(this),this.hmtx=new Se$1(this),this.post=new Ne(this),this.os2=new we(this),this.loca=new Ie(this),this.glyf=new Pe(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},en.prototype.registerTTF=function(){var He,tn,nn,an,rn;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var on,sn,dn,hn;for(hn=[],on=0,sn=(dn=this.bbox).length;on<sn;on++)He=dn[on],hn.push(Math.round(He*this.scaleFactor));return hn}).call(this),this.stemV=0,this.post.exists?(nn=255&(an=this.post.italic_angle),32768&(tn=an>>16)&&(tn=-(1+(65535^tn))),this.italicAngle=+(tn+"."+nn)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(rn=this.familyClass)===1||rn===2||rn===3||rn===4||rn===5||rn===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},en.prototype.characterToGlyph=function(He){var tn;return((tn=this.cmap.unicode)!=null?tn.codeMap[He]:void 0)||0},en.prototype.widthOfGlyph=function(He){var tn;return tn=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(He).advance*tn},en.prototype.widthOfString=function(He,tn,nn){var an,rn,on,sn;for(on=0,rn=0,sn=(He=""+He).length;0<=sn?rn<sn:rn>sn;rn=0<=sn?++rn:--rn)an=He.charCodeAt(rn),on+=this.widthOfGlyph(this.characterToGlyph(an))+nn*(1e3/tn)||0;return on*(tn/1e3)},en.prototype.lineHeight=function(He,tn){var nn;return tn==null&&(tn=!1),nn=tn?this.lineGap:0,(this.ascender+nn-this.decender)/1e3*He},en})();var he,fe=(function(){function en(He){this.data=He??[],this.pos=0,this.length=this.data.length}return en.prototype.readByte=function(){return this.data[this.pos++]},en.prototype.writeByte=function(He){return this.data[this.pos++]=He},en.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},en.prototype.writeUInt32=function(He){return this.writeByte(He>>>24&255),this.writeByte(He>>16&255),this.writeByte(He>>8&255),this.writeByte(255&He)},en.prototype.readInt32=function(){var He;return(He=this.readUInt32())>=2147483648?He-4294967296:He},en.prototype.writeInt32=function(He){return He<0&&(He+=4294967296),this.writeUInt32(He)},en.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},en.prototype.writeUInt16=function(He){return this.writeByte(He>>8&255),this.writeByte(255&He)},en.prototype.readInt16=function(){var He;return(He=this.readUInt16())>=32768?He-65536:He},en.prototype.writeInt16=function(He){return He<0&&(He+=65536),this.writeUInt16(He)},en.prototype.readString=function(He){var tn,nn;for(nn=[],tn=0;0<=He?tn<He:tn>He;tn=0<=He?++tn:--tn)nn[tn]=String.fromCharCode(this.readByte());return nn.join("")},en.prototype.writeString=function(He){var tn,nn,an;for(an=[],tn=0,nn=He.length;0<=nn?tn<nn:tn>nn;tn=0<=nn?++tn:--tn)an.push(this.writeByte(He.charCodeAt(tn)));return an},en.prototype.readShort=function(){return this.readInt16()},en.prototype.writeShort=function(He){return this.writeInt16(He)},en.prototype.readLongLong=function(){var He,tn,nn,an,rn,on,sn,dn;return He=this.readByte(),tn=this.readByte(),nn=this.readByte(),an=this.readByte(),rn=this.readByte(),on=this.readByte(),sn=this.readByte(),dn=this.readByte(),128&He?-1*(72057594037927940*(255^He)+281474976710656*(255^tn)+1099511627776*(255^nn)+4294967296*(255^an)+16777216*(255^rn)+65536*(255^on)+256*(255^sn)+(255^dn)+1):72057594037927940*He+281474976710656*tn+1099511627776*nn+4294967296*an+16777216*rn+65536*on+256*sn+dn},en.prototype.writeLongLong=function(He){var tn,nn;return tn=Math.floor(He/4294967296),nn=4294967295&He,this.writeByte(tn>>24&255),this.writeByte(tn>>16&255),this.writeByte(tn>>8&255),this.writeByte(255&tn),this.writeByte(nn>>24&255),this.writeByte(nn>>16&255),this.writeByte(nn>>8&255),this.writeByte(255&nn)},en.prototype.readInt=function(){return this.readInt32()},en.prototype.writeInt=function(He){return this.writeInt32(He)},en.prototype.read=function(He){var tn,nn;for(tn=[],nn=0;0<=He?nn<He:nn>He;nn=0<=He?++nn:--nn)tn.push(this.readByte());return tn},en.prototype.write=function(He){var tn,nn,an,rn;for(rn=[],nn=0,an=He.length;nn<an;
79nn++)tn=He[nn],rn.push(this.writeByte(tn));return rn},en})(),de=(function(){var en;function He(tn){var nn,an,rn;for(this.scalarType=tn.readInt(),this.tableCount=tn.readShort(),this.searchRange=tn.readShort(),this.entrySelector=tn.readShort(),this.rangeShift=tn.readShort(),this.tables={},an=0,rn=this.tableCount;0<=rn?an<rn:an>rn;an=0<=rn?++an:--an)nn={tag:tn.readString(4),checksum:tn.readInt(),offset:tn.readInt(),length:tn.readInt()},this.tables[nn.tag]=nn}return He.prototype.encode=function(tn){var nn,an,rn,on,sn,dn,hn,mn,gn,yn,fn,bn,Mn;for(Mn in fn=Object.keys(tn).length,dn=Math.log(2),gn=16*Math.floor(Math.log(fn)/dn),on=Math.floor(gn/dn),mn=16*fn-gn,(an=new fe).writeInt(this.scalarType),an.writeShort(fn),an.writeShort(gn),an.writeShort(on),an.writeShort(mn),rn=16*fn,hn=an.pos+rn,sn=null,bn=[],tn)for(yn=tn[Mn],an.writeString(Mn),an.writeInt(en(yn)),an.writeInt(hn),an.writeInt(yn.length),bn=bn.concat(yn),Mn==="head"&&(sn=hn),hn+=yn.length;hn%4;)bn.push(0),hn++;return an.write(bn),nn=2981146554-en(an.data),an.pos=sn+8,an.writeUInt32(nn),an.data},en=function(tn){var nn,an,rn,on;for(tn=_e.call(tn);tn.length%4;)tn.push(0);for(rn=new fe(tn),an=0,nn=0,on=tn.length;nn<on;nn=nn+=4)an+=rn.readUInt32();return 4294967295&an},He})(),pe={}.hasOwnProperty,ge=function(en,He){for(var tn in He)pe.call(He,tn)&&(en[tn]=He[tn]);function nn(){this.constructor=en}return nn.prototype=He.prototype,en.prototype=new nn,en.__super__=He.prototype,en};he=(function(){function en(He){var tn;this.file=He,tn=this.file.directory.tables[this.tag],this.exists=!!tn,tn&&(this.offset=tn.offset,this.length=tn.length,this.parse(this.file.contents))}return en.prototype.parse=function(){},en.prototype.encode=function(){},en.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},en})();var me=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="head",en.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.revision=He.readInt(),this.checkSumAdjustment=He.readInt(),this.magicNumber=He.readInt(),this.flags=He.readShort(),this.unitsPerEm=He.readShort(),this.created=He.readLongLong(),this.modified=He.readLongLong(),this.xMin=He.readShort(),this.yMin=He.readShort(),this.xMax=He.readShort(),this.yMax=He.readShort(),this.macStyle=He.readShort(),this.lowestRecPPEM=He.readShort(),this.fontDirectionHint=He.readShort(),this.indexToLocFormat=He.readShort(),this.glyphDataFormat=He.readShort()},en.prototype.encode=function(He){var tn;return(tn=new fe).writeInt(this.version),tn.writeInt(this.revision),tn.writeInt(this.checkSumAdjustment),tn.writeInt(this.magicNumber),tn.writeShort(this.flags),tn.writeShort(this.unitsPerEm),tn.writeLongLong(this.created),tn.writeLongLong(this.modified),tn.writeShort(this.xMin),tn.writeShort(this.yMin),tn.writeShort(this.xMax),tn.writeShort(this.yMax),tn.writeShort(this.macStyle),tn.writeShort(this.lowestRecPPEM),tn.writeShort(this.fontDirectionHint),tn.writeShort(He),tn.writeShort(this.glyphDataFormat),tn.data},en})(),ve=(function(){function en(He,tn){var nn,an,rn,on,sn,dn,hn,mn,gn,yn,fn,bn,Mn,Tn,xn,En,Rn;switch(this.platformID=He.readUInt16(),this.encodingID=He.readShort(),this.offset=tn+He.readInt(),gn=He.pos,He.pos=this.offset,this.format=He.readUInt16(),this.length=He.readUInt16(),this.language=He.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(dn=0;dn<256;++dn)this.codeMap[dn]=He.readByte();break;case 4:for(fn=He.readUInt16(),yn=fn/2,He.pos+=6,rn=(function(){var ni,mi;for(mi=[],dn=ni=0;0<=yn?ni<yn:ni>yn;dn=0<=yn?++ni:--ni)mi.push(He.readUInt16());return mi})(),He.pos+=2,Mn=(function(){var ni,mi;for(mi=[],dn=ni=0;0<=yn?ni<yn:ni>yn;dn=0<=yn?++ni:--ni)mi.push(He.readUInt16());return mi})(),hn=(function(){var ni,mi;for(mi=[],dn=ni=0;0<=yn?ni<yn:ni>yn;dn=0<=yn?++ni:--ni)mi.push(He.readUInt16());return mi})(),mn=(function(){var ni,mi;for(mi=[],dn=ni=0;0<=yn?ni<yn:ni>yn;dn=0<=yn?++ni:--ni)mi.push(He.readUInt16());return mi})(),an=(this.length-He.pos+this.offset)/2,sn=(function(){var ni,mi;for(mi=[],dn=ni=0;0<=an?ni<an:ni>an;dn=0<=an?++ni:--ni)mi.push(He.readUInt16());return mi})(),dn=xn=0,Rn=rn.length;xn<Rn;
vendor: 6,566 bytes, line 79
79dn=++xn)for(Tn=rn[dn],nn=En=bn=Mn[dn];bn<=Tn?En<=Tn:En>=Tn;nn=bn<=Tn?++En:--En)mn[dn]===0?on=nn+hn[dn]:(on=sn[mn[dn]/2+(nn-bn)-(yn-dn)]||0)!==0&&(on+=hn[dn]),this.codeMap[nn]=65535&on}He.pos=gn}return en.encode=function(He,tn){var nn,an,rn,on,sn,dn,hn,mn,gn,yn,fn,bn,Mn,Tn,xn,En,Rn,ni,mi,bi,_i,oi,si,fi,ei,ci,di,wi,Ci,ji,Yi,Pi,Fi,$i,Wi,hi,Si,Ni,yi,Hi,Ui,Ji,Oi,Ei,ea,vi;switch(wi=new fe,on=Object.keys(He).sort(function(ti,ui){return ti-ui}),tn){case"macroman":for(Mn=0,Tn=(function(){var ti=[];for(bn=0;bn<256;++bn)ti.push(0);return ti})(),En={0:0},rn={},Ci=0,Fi=on.length;Ci<Fi;Ci++)En[Oi=He[an=on[Ci]]]==null&&(En[Oi]=++Mn),rn[an]={old:He[an],new:En[He[an]]},Tn[an]=En[He[an]];return wi.writeUInt16(1),wi.writeUInt16(0),wi.writeUInt32(12),wi.writeUInt16(0),wi.writeUInt16(262),wi.writeUInt16(0),wi.write(Tn),{charMap:rn,subtable:wi.data,maxGlyphID:Mn+1};case"unicode":for(ci=[],gn=[],Rn=0,En={},nn={},xn=hn=null,ji=0,$i=on.length;ji<$i;ji++)En[mi=He[an=on[ji]]]==null&&(En[mi]=++Rn),nn[an]={old:mi,new:En[mi]},sn=En[mi]-an,xn!=null&&sn===hn||(xn&&gn.push(xn),ci.push(an),hn=sn),xn=an;for(xn&&gn.push(xn),gn.push(65535),ci.push(65535),fi=2*(si=ci.length),oi=2*Math.pow(Math.log(si)/Math.LN2,2),yn=Math.log(oi/2)/Math.LN2,_i=2*si-oi,dn=[],bi=[],fn=[],bn=Yi=0,Wi=ci.length;Yi<Wi;bn=++Yi){if(ei=ci[bn],mn=gn[bn],ei===65535){dn.push(0),bi.push(0);break}if(ei-(di=nn[ei].new)>=32768)for(dn.push(0),bi.push(2*(fn.length+si-bn)),an=Pi=ei;ei<=mn?Pi<=mn:Pi>=mn;an=ei<=mn?++Pi:--Pi)fn.push(nn[an].new);else dn.push(di-ei),bi.push(0)}for(wi.writeUInt16(3),wi.writeUInt16(1),wi.writeUInt32(12),wi.writeUInt16(4),wi.writeUInt16(16+8*si+2*fn.length),wi.writeUInt16(0),wi.writeUInt16(fi),wi.writeUInt16(oi),wi.writeUInt16(yn),wi.writeUInt16(_i),Ui=0,hi=gn.length;Ui<hi;Ui++)an=gn[Ui],wi.writeUInt16(an);for(wi.writeUInt16(0),Ji=0,Si=ci.length;Ji<Si;Ji++)an=ci[Ji],wi.writeUInt16(an);for(Ei=0,Ni=dn.length;Ei<Ni;Ei++)sn=dn[Ei],wi.writeUInt16(sn);for(ea=0,yi=bi.length;ea<yi;ea++)ni=bi[ea],wi.writeUInt16(ni);for(vi=0,Hi=fn.length;vi<Hi;vi++)Mn=fn[vi],wi.writeUInt16(Mn);return{charMap:nn,subtable:wi.data,maxGlyphID:Rn+1}}},en})(),be=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="cmap",en.prototype.parse=function(He){var tn,nn,an;for(He.pos=this.offset,this.version=He.readUInt16(),an=He.readUInt16(),this.tables=[],this.unicode=null,nn=0;0<=an?nn<an:nn>an;nn=0<=an?++nn:--nn)tn=new ve(He,this.offset),this.tables.push(tn),tn.isUnicode&&this.unicode==null&&(this.unicode=tn);return!0},en.encode=function(He,tn){var nn,an;return tn==null&&(tn="macroman"),nn=ve.encode(He,tn),(an=new fe).writeUInt16(0),an.writeUInt16(1),nn.table=an.data.concat(nn.subtable),nn},en})(),ye=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="hhea",en.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.ascender=He.readShort(),this.decender=He.readShort(),this.lineGap=He.readShort(),this.advanceWidthMax=He.readShort(),this.minLeftSideBearing=He.readShort(),this.minRightSideBearing=He.readShort(),this.xMaxExtent=He.readShort(),this.caretSlopeRise=He.readShort(),this.caretSlopeRun=He.readShort(),this.caretOffset=He.readShort(),He.pos+=8,this.metricDataFormat=He.readShort(),this.numberOfMetrics=He.readUInt16()},en})(),we=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="OS/2",en.prototype.parse=function(He){if(He.pos=this.offset,this.version=He.readUInt16(),this.averageCharWidth=He.readShort(),this.weightClass=He.readUInt16(),this.widthClass=He.readUInt16(),this.type=He.readShort(),this.ySubscriptXSize=He.readShort(),this.ySubscriptYSize=He.readShort(),this.ySubscriptXOffset=He.readShort(),this.ySubscriptYOffset=He.readShort(),this.ySuperscriptXSize=He.readShort(),this.ySuperscriptYSize=He.readShort(),this.ySuperscriptXOffset=He.readShort(),this.ySuperscriptYOffset=He.readShort(),this.yStrikeoutSize=He.readShort(),this.yStrikeoutPosition=He.readShort(),this.familyClass=He.readShort(),this.panose=(function(){var tn,nn;for(nn=[],tn=0;tn<10;++tn)nn.push(He.readByte());return nn})(),this.charRange=(function(){var tn,nn;for(nn=[],tn=0;tn<4;++tn)nn.push(He.readInt());return nn})(),this.vendorID=He.readString(4),this.selection=He.readShort(),this.firstCharIndex=He.readShort(),this.lastCharIndex=He.readShort(),this.version>0&&(this.ascent=He.readShort(),this.descent=He.readShort(),this.lineGap=He.readShort(),this.winAscent=He.readShort(),this.winDescent=He.readShort(),this.codePageRange=(function(){var tn,nn;for(nn=[],tn=0;tn<2;tn=++tn)nn.push(He.readInt());return nn})(),this.version>1))return this.xHeight=He.readShort(),this.capHeight=He.readShort(),this.defaultChar=He.readShort(),this.breakChar=He.readShort(),this.maxContext=He.readShort()},en})(),Ne=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="post",en.prototype.parse=function(He){var tn,nn,an;switch(He.pos=this.offset,this.format=He.readInt(),this.italicAngle=He.readInt(),this.underlinePosition=He.readShort(),this.underlineThickness=He.readShort(),this.isFixedPitch=He.readInt(),this.minMemType42=He.readInt(),this.maxMemType42=He.readInt(),this.minMemType1=He.readInt(),this.maxMemType1=He.readInt(),this.format){case 65536:case 196608:break;case 131072:var rn;for(nn=He.readUInt16(),this.glyphNameIndex=[],rn=0;0<=nn?rn<nn:rn>nn;rn=0<=nn?++rn:--rn)this.glyphNameIndex.push(He.readUInt16());for(this.names=[],an=[];He.pos<this.offset+this.length;)tn=He.readByte(),an.push(this.names.push(He.readString(tn)));return an;case 151552:return nn=He.readUInt16(),this.offsets=He.read(nn);case 262144:return this.map=(function(){var on,sn,dn;for(dn=[],rn=on=0,sn=this.file.maxp.numGlyphs;0<=sn?on<sn:on>sn;rn=0<=sn?++on:--on)dn.push(He.readUInt32());return dn}).call(this)}},en})(),Le=function(en,He){this.raw=en,this.length=en.length,this.platformID=He.platformID,this.encodingID=He.encodingID,this.languageID=He.languageID},xe$1=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="name",en.prototype.parse=function(He){var tn,nn,an,rn,on,sn,dn,hn,mn,gn,yn;for(He.pos=this.offset,He.readShort(),tn=He.readShort(),sn=He.readShort(),nn=[],rn=0;0<=tn?rn<tn:rn>tn;rn=0<=tn?++rn:--rn)nn.push({platformID:He.readShort(),encodingID:He.readShort(),languageID:He.readShort(),nameID:He.readShort(),length:He.readShort(),offset:this.offset+sn+He.readShort()});for(dn={}
79,rn=mn=0,gn=nn.length;mn<gn;rn=++mn)an=nn[rn],He.pos=an.offset,hn=He.readString(an.length),on=new Le(hn,an),dn[yn=an.nameID]==null&&(dn[yn]=[]),dn[an.nameID].push(on);this.strings=dn,this.copyright=dn[0],this.fontFamily=dn[1],this.fontSubfamily=dn[2],this.uniqueSubfamily=dn[3],this.fontName=dn[4],this.version=dn[5];try{this.postscriptName=dn[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=dn[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=dn[7],this.manufacturer=dn[8],this.designer=dn[9],this.description=dn[10],this.vendorUrl=dn[11],this.designerUrl=dn[12],this.license=dn[13],this.licenseUrl=dn[14],this.preferredFamily=dn[15],this.preferredSubfamily=dn[17],this.compatibleFull=dn[18],this.sampleText=dn[19]},en})(),Ae=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="maxp",en.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.numGlyphs=He.readUInt16(),this.maxPoints=He.readUInt16(),this.maxContours=He.readUInt16(),this.maxCompositePoints=He.readUInt16(),this.maxComponentContours=He.readUInt16(),this.maxZones=He.readUInt16(),this.maxTwilightPoints=He.readUInt16(),this.maxStorage=He.readUInt16(),this.maxFunctionDefs=He.readUInt16(),this.maxInstructionDefs=He.readUInt16(),this.maxStackElements=He.readUInt16(),this.maxSizeOfInstructions=He.readUInt16(),this.maxComponentElements=He.readUInt16(),this.maxComponentDepth=He.readUInt16()},en})(),Se$1=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="hmtx",en.prototype.parse=function(He){var tn,nn,an,rn,on,sn,dn;for(He.pos=this.offset,this.metrics=[],tn=0,sn=this.file.hhea.numberOfMetrics;0<=sn?tn<sn:tn>sn;tn=0<=sn?++tn:--tn)this.metrics.push({advance:He.readUInt16(),lsb:He.readInt16()});for(an=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var hn,mn;for(mn=[],tn=hn=0;0<=an?hn<an:hn>an;tn=0<=an?++hn:--hn)mn.push(He.readInt16());return mn})(),this.widths=(function(){var hn,mn,gn,yn;for(yn=[],hn=0,mn=(gn=this.metrics).length;hn<mn;hn++)rn=gn[hn],yn.push(rn.advance);return yn}).call(this),nn=this.widths[this.widths.length-1],dn=[],tn=on=0;0<=an?on<an:on>an;tn=0<=an?++on:--on)dn.push(this.widths.push(nn));return dn},en.prototype.forGlyph=function(He){return He in this.metrics?this.metrics[He]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[He-this.metrics.length]}},en})(),_e=[].slice,Pe=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="glyf",en.prototype.parse=function(){return this.cache={}},en.prototype.glyphFor=function(He){var tn,nn,an,rn,on,sn,dn,hn,mn,gn;return He in this.cache?this.cache[He]:(rn=this.file.loca,tn=this.file.contents,nn=rn.indexOf(He),(an=rn.lengthOf(He))===0?this.cache[He]=null:(tn.pos=this.offset+nn,on=(sn=new fe(tn.read(an))).readShort(),hn=sn.readShort(),gn=sn.readShort(),dn=sn.readShort(),mn=sn.readShort(),this.cache[He]=on===-1?new Fe$1(sn,hn,gn,dn,mn):new ke(sn,on,hn,gn,dn,mn),this.cache[He]))},en.prototype.encode=function(He,tn,nn){var an,rn,on,sn,dn;for(on=[],rn=[],sn=0,dn=tn.length;sn<dn;sn++)an=He[tn[sn]],rn.push(on.length),an&&(on=on.concat(an.encode(nn)));return rn.push(on.length),{table:on,offsets:rn}},en})(),ke=(function(){function en(He,tn,nn,an,rn,on){this.raw=He,this.numberOfContours=tn,this.xMin=nn,this.yMin=an,this.xMax=rn,this.yMax=on,this.compound=!1}return en.prototype.encode=function(){return this.raw.data},en})(),Fe$1=(function(){function en(He,tn,nn,an,rn){var on,sn;for(this.raw=He,this.xMin=tn,this.yMin=nn,this.xMax=an,this.yMax=rn,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],on=this.raw;sn=on.readShort(),this.glyphOffsets.push(on.pos),this.glyphIDs.push(on.readUInt16()),32&sn;)on.pos+=1&sn?4:2,128&sn?on.pos+=8:64&sn?on.pos+=4:8&sn&&(on.pos+=2)}return en.prototype.encode=function(){var He,tn,nn;for(tn=new fe(_e.call(this.raw.data)),He=0,nn=this.glyphIDs.length;He<nn;++He)tn.pos=this.glyphOffsets[He];return tn.data},en})(),Ie=(function(){function en(){return en.__super__.constructor.apply(this,arguments)}return ge(en,he),en.prototype.tag="loca",en.prototype.parse=function(He){var tn,nn;return He.pos=this.offset,tn=this.file.head.indexToLocFormat,this.offsets=tn===0?(function(){var an,rn;for(rn=[],nn=0,an=this.length;nn<an;nn+=2)rn.push(2*He.readUInt16());return rn}).call(this):(function(){var an,rn;for(rn=[],nn=0,an=this.length;nn<an;nn+=4)rn.push(He.readUInt32());return rn}).call(this)},en.prototype.indexOf=function(He){return this.offsets[He]},en.prototype.lengthOf=function(He){return this.offsets[He+1]-this.offsets[He]},en.prototype.encode=function(He,tn){for(var nn=new Uint32Array(this.offsets.length),an=0,rn=0,on=0;on<nn.length;++on)if(nn[on]=an,rn<tn.length&&tn[rn]==on){++rn,nn[on]=an;var sn=this.offsets[on],dn=this.offsets[on+1]-sn;dn>0&&(an+=dn)}for(var hn=new Array(4*nn.length),mn=0;mn<nn.length;++mn)hn[4*mn+3]=255&nn[mn],hn[4*mn+2]=(65280&nn[mn])>>8,hn[4*mn+1]=(16711680&nn[mn])>>16,hn[4*mn]=(4278190080&nn[mn])>>24;return hn},en})(),je=(function(){function en(He){this.font=He,this.subset={},this.unicodes={},this.next=33}return en.prototype.generateCmap=function(){var He,tn,nn,an,rn;for(tn in an=this.font.cmap.tables[0].codeMap,He={},rn=this.subset)nn=rn[tn],He[tn]=an[nn];return He},en.prototype.glyphsFor=function(He){var tn,nn,an,rn,on,sn,dn;for(an={},on=0,sn=He.length;on<sn;on++)an[rn=He[on]]=this.font.glyf.glyphFor(rn);for(rn in tn=[],an)(nn=an[rn])!=null&&nn.compound&&tn.push.apply(tn,nn.glyphIDs);if(tn.length>0)for(rn in dn=this.glyphsFor(tn))nn=dn[rn],an[rn]=nn;return an},en.prototype.encode=function(He,tn){var nn,an,rn,on,sn,dn,hn,mn,gn,yn,fn,bn,Mn,Tn,xn;for(an in nn=be.encode(this.generateCmap(),"unicode"),on=this.glyphsFor(He),fn={0:0}
79,xn=nn.charMap)fn[(dn=xn[an]).old]=dn.new;for(bn in yn=nn.maxGlyphID,on)bn in fn||(fn[bn]=yn++);return mn=(function(En){var Rn,ni;for(Rn in ni={},En)ni[En[Rn]]=Rn;return ni})(fn),gn=Object.keys(mn).sort(function(En,Rn){return En-Rn}),Mn=(function(){var En,Rn,ni;for(ni=[],En=0,Rn=gn.length;En<Rn;En++)sn=gn[En],ni.push(mn[sn]);return ni})(),rn=this.font.glyf.encode(on,Mn,fn),hn=this.font.loca.encode(rn.offsets,Mn),Tn={cmap:this.font.cmap.raw(),glyf:rn.table,loca:hn,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(tn)},this.font.os2.exists&&(Tn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Tn)},en})();E.API.PDFObject=(function(){var en;function He(){}return en=function(tn,nn){return(Array(nn+1).join("0")+tn).slice(-nn)},He.convert=function(tn){var nn,an,rn,on;if(Array.isArray(tn))return"["+(function(){var sn,dn,hn;for(hn=[],sn=0,dn=tn.length;sn<dn;sn++)nn=tn[sn],hn.push(He.convert(nn));return hn})().join(" ")+"]";if(typeof tn=="string")return"/"+tn;if(tn?.isString)return"("+tn+")";if(tn instanceof Date)return"(D:"+en(tn.getUTCFullYear(),4)+en(tn.getUTCMonth(),2)+en(tn.getUTCDate(),2)+en(tn.getUTCHours(),2)+en(tn.getUTCMinutes(),2)+en(tn.getUTCSeconds(),2)+"Z)";if({}.toString.call(tn)==="[object Object]"){for(an in rn=["<<"],tn)on=tn[an],rn.push("/"+an+" "+He.convert(on));return rn.push(">>"),rn.join(`
80`)}return""+tn},He})();var qrious$1={exports:{}},qrious=qrious$1.exports,hasRequiredQrious;function requireQrious(){return hasRequiredQrious||(hasRequiredQrious=1,(function(en,He){(function(tn,nn){en.exports=nn()})(qrious,(function(){var tn=function(){},nn=Object.prototype.hasOwnProperty,an=Array.prototype.slice;function rn(vi,ti){var ui;return typeof Object.create=="function"?ui=Object.create(vi):(tn.prototype=vi,ui=new tn,tn.prototype=null),ti&&sn(!0,ui,ti),ui}function on(vi,ti,ui,Cn){var ki=this;return typeof vi!="string"&&(Cn=ui,ui=ti,ti=vi,vi=null),typeof ti!="function"&&(Cn=ui,ui=ti,ti=function(){return ki.apply(this,arguments)}),sn(!1,ti,ki,Cn),ti.prototype=rn(ki.prototype,ui),ti.prototype.constructor=ti,ti.class_=vi||ki.class_,ti.super_=ki,ti}function sn(vi,ti,ui){ui=an.call(arguments,2);for(var Cn,ki,Zi=0,ta=ui.length;Zi<ta;Zi++){ki=ui[Zi];for(Cn in ki)(!vi||nn.call(ki,Cn))&&(ti[Cn]=ki[Cn])}}var dn=on;function hn(){}hn.class_="Nevis",hn.super_=Object,hn.extend=dn;var mn=hn,gn=mn,yn=gn.extend(function(vi,ti,ui){this.qrious=vi,this.element=ti,this.element.qrious=vi,this.enabled=!!ui},{draw:function(vi){},getElement:function(){return this.enabled||(this.enabled=!0,this.render()),this.element},getModuleSize:function(vi){var ti=this.qrious,ui=ti.padding||0,Cn=Math.floor((ti.size-ui*2)/vi.width);return Math.max(1,Cn)},getOffset:function(vi){var ti=this.qrious,ui=ti.padding;if(ui!=null)return ui;var Cn=this.getModuleSize(vi),ki=Math.floor((ti.size-Cn*vi.width)/2);return Math.max(0,ki)},render:function(vi){this.enabled&&(this.resize(),this.reset(),this.draw(vi))},reset:function(){},resize:function(){}}),fn=yn,bn=fn.extend({draw:function(vi){var ti,ui,Cn=this.qrious,ki=this.getModuleSize(vi),Zi=this.getOffset(vi),ta=this.element.getContext("2d");for(ta.fillStyle=Cn.foreground,ta.globalAlpha=Cn.foregroundAlpha,ti=0;ti<vi.width;ti++)for(ui=0;ui<vi.width;ui++)vi.buffer[ui*vi.width+ti]&&ta.fillRect(ki*ti+Zi,ki*ui+Zi,ki,ki)},reset:function(){var vi=this.qrious,ti=this.element.getContext("2d"),ui=vi.size;ti.lineWidth=1,ti.clearRect(0,0,ui,ui),ti.fillStyle=vi.background,ti.globalAlpha=vi.backgroundAlpha,ti.fillRect(0,0,ui,ui)},resize:function(){var vi=this.element;vi.width=vi.height=this.qrious.size}}),Mn=bn,Tn=gn.extend(null,{BLOCK:[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28]}),xn=Tn,En=gn.extend(null,{BLOCKS:[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,3
vendor: 4,494 bytes, line 80
800,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],FINAL_FORMAT:[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],LEVELS:{L:1,M:2,Q:3,H:4}}),Rn=En,ni=gn.extend(null,{EXPONENT:[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],LOG:[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175]}),mi=ni,bi=gn.extend(null,{BLOCK:[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177]}),_i=bi,oi=gn.extend(function(vi){var ti,ui,Cn,ki,Zi,ta=vi.value.length;for(this._badness=[],this._level=Rn.LEVELS[vi.level],this._polynomial=[],this._value=vi.value,this._version=0,this._stringBuffer=[];this._version<40&&(this._version++,Cn=(this._level-1)*4+(this._version-1)*16,ki=Rn.BLOCKS[Cn++],Zi=Rn.BLOCKS[Cn++],ti=Rn.BLOCKS[Cn++],ui=Rn.BLOCKS[Cn],Cn=ti*(ki+Zi)+Zi-3+(this._version<=9),!(ta<=Cn)););this._dataBlock=ti,this._eccBlock=ui,this._neccBlock1=ki,this._neccBlock2=Zi;var Ri=this.width=17+4*this._version;this.buffer=oi._createArray(Ri*Ri),this._ecc=oi._createArray(ti+(ti+ui)*(ki+Zi)+Zi),this._mask=oi._createArray((Ri*(Ri+1)+1)/2),this._insertFinders(),this._insertAlignments(),this.buffer[8+Ri*(Ri-8)]=1,this._insertTimingGap(),this._reverseMask(),this._insertTimingRowAndColumn(),this._insertVersion(),this._syncMask(),this._convertBitStream(ta),this._calculatePolynomial(),this._appendEccToData(),this._interleaveBlocks(),this._pack(),this._finish()},{_addAlignment:function(vi,ti){var ui,Cn=this.buffer,ki=this.width;for(Cn[vi+ki*ti]=1,ui=-2;ui<2;ui++)Cn[vi+ui+ki*(ti-2)]=1,Cn[vi-2+ki*(ti+ui+1)]=1,Cn[vi+2+ki*(ti+ui)]=1,Cn[vi+ui+1+ki*(ti+2)]=1;for(ui=0;ui<2;ui++)this._setMask(vi-1,ti+ui),this._setMask(vi+1,ti-ui),this._setMask(vi-ui,ti-1),this._setMask(vi+ui,ti+1)},_appendData:function(vi,ti,ui,Cn){var ki,Zi,ta,Ri=this._polynomial,ha=this._stringBuffer;for(Zi=0;Zi<Cn;
80Zi++)ha[ui+Zi]=0;for(Zi=0;Zi<ti;Zi++){if(ki=mi.LOG[ha[vi+Zi]^ha[ui]],ki!==255)for(ta=1;ta<Cn;ta++)ha[ui+ta-1]=ha[ui+ta]^mi.EXPONENT[oi._modN(ki+Ri[Cn-ta])];else for(ta=ui;ta<ui+Cn;ta++)ha[ta]=ha[ta+1];ha[ui+Cn-1]=ki===255?0:mi.EXPONENT[oi._modN(ki+Ri[0])]}},_appendEccToData:function(){var vi,ti=0,ui=this._dataBlock,Cn=this._calculateMaxLength(),ki=this._eccBlock;for(vi=0;vi<this._neccBlock1;vi++)this._appendData(ti,ui,Cn,ki),ti+=ui,Cn+=ki;for(vi=0;vi<this._neccBlock2;vi++)this._appendData(ti,ui+1,Cn,ki),ti+=ui+1,Cn+=ki},_applyMask:function(vi){var ti,ui,Cn,ki,Zi=this.buffer,ta=this.width;switch(vi){case 0:for(ki=0;ki<ta;ki++)for(Cn=0;Cn<ta;Cn++)!(Cn+ki&1)&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 1:for(ki=0;ki<ta;ki++)for(Cn=0;Cn<ta;Cn++)!(ki&1)&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 2:for(ki=0;ki<ta;ki++)for(ti=0,Cn=0;Cn<ta;Cn++,ti++)ti===3&&(ti=0),!ti&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 3:for(ui=0,ki=0;ki<ta;ki++,ui++)for(ui===3&&(ui=0),ti=ui,Cn=0;Cn<ta;Cn++,ti++)ti===3&&(ti=0),!ti&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 4:for(ki=0;ki<ta;ki++)for(ti=0,ui=ki>>1&1,Cn=0;Cn<ta;Cn++,ti++)ti===3&&(ti=0,ui=!ui),!ui&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 5:for(ui=0,ki=0;ki<ta;ki++,ui++)for(ui===3&&(ui=0),ti=0,Cn=0;Cn<ta;Cn++,ti++)ti===3&&(ti=0),!((Cn&ki&1)+!(!ti|!ui))&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 6:for(ui=0,ki=0;ki<ta;ki++,ui++)for(ui===3&&(ui=0),ti=0,Cn=0;Cn<ta;Cn++,ti++)ti===3&&(ti=0),!((Cn&ki&1)+(ti&&ti===ui)&1)&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break;case 7:for(ui=0,ki=0;ki<ta;ki++,ui++)for(ui===3&&(ui=0),ti=0,Cn=0;Cn<ta;Cn++,ti++)ti===3&&(ti=0),!((ti&&ti===ui)+(Cn+ki&1)&1)&&!this._isMasked(Cn,ki)&&(Zi[Cn+ki*ta]^=1);break}},_calculateMaxLength:function(){return this._dataBlock*(this._neccBlock1+this._neccBlock2)+this._neccBlock2},_calculatePolynomial:function(){var vi,ti,ui=this._eccBlock,Cn=this._polynomial;for(Cn[0]=1,vi=0;vi<ui;vi++){for(Cn[vi+1]=1,ti=vi;ti>0;ti--)Cn[ti]=Cn[ti]?Cn[ti-1]^mi.EXPONENT[oi._modN(mi.LOG[Cn[ti]]+vi)]:Cn[ti-1];Cn[0]=mi.EXPONENT[oi._modN(mi.LOG[Cn[0]]+vi)]}for(vi=0;vi<=ui;vi++)Cn[vi]=mi.LOG[Cn[vi]]},_checkBadness:function(){var vi,ti,ui,Cn,ki,Zi=0,ta=this._badness,Ri=this.buffer,ha=this.width;for(ki=0;ki<ha-1;ki++)for(Cn=0;Cn<ha-1;Cn++)(Ri[Cn+ha*ki]&&Ri[Cn+1+ha*ki]&&Ri[Cn+ha*(ki+1)]&&Ri[Cn+1+ha*(ki+1)]||!(Ri[Cn+ha*ki]||Ri[Cn+1+ha*ki]||Ri[Cn+ha*(ki+1)]||Ri[Cn+1+ha*(ki+1)]))&&(Zi+=oi.N2);var qi=0;for(ki=0;ki<ha;ki++){for(ui=0,ta[0]=0,vi=0,Cn=0;Cn<ha;Cn++)ti=Ri[Cn+ha*ki],vi===ti?ta[ui]++:ta[++ui]=1,vi=ti,qi+=vi?1:-1;Zi+=this._getBadness(ui)}qi<0&&(qi=-qi);var ca=0,Bi=qi;for(Bi+=Bi<<2,Bi<<=1;Bi>ha*ha;)Bi-=ha*ha,ca++;for(Zi+=ca*oi.N4,Cn=0;Cn<ha;Cn++){for(ui=0,ta[0]=0,vi=0,ki=0;ki<ha;ki++)ti=Ri[Cn+ha*ki],vi===ti?ta[ui]++:ta[++ui]=1,vi=ti;Zi+=this._getBadness(ui)}return Zi},_convertBitStream:function(vi){var ti,ui,Cn=this._ecc,ki=this._version;for(ui=0;ui<vi;ui++)Cn[ui]=this._value.charCodeAt(ui);var Zi=this._stringBuffer=Cn.slice(),ta=this._calculateMaxLength();vi>=ta-2&&(vi=ta-2,ki>9&&vi--);var Ri=vi;if(ki>9){for(Zi[Ri+2]=0,Zi[Ri+3]=0;Ri--;)ti=Zi[Ri],Zi[Ri+3]|=255&ti<<4,Zi[Ri+2]=ti>>4;Zi[2]|=255&vi<<4,Zi[1]=vi>>4,Zi[0]=64|vi>>12}else{for(Zi[Ri+1]=0,Zi[Ri+2]=0;Ri--;)ti=Zi[Ri],Zi[Ri+2]|=255&ti<<4,Zi[Ri+1]=ti>>4;Zi[1]|=255&vi<<4,Zi[0]=64|vi>>4}for(Ri=vi+3-(ki<10);Ri<ta;)Zi[Ri++]=236,Zi[Ri++]=17},_getBadness:function(vi){var ti,ui=0,Cn=this._badness;for(ti=0;ti<=vi;ti++)Cn[ti]>=5&&(ui+=oi.N1+Cn[ti]-5);for(ti=3;ti<vi-1;ti+=2)Cn[ti-2]===Cn[ti+2]&&Cn[ti+2]===Cn[ti-1]&&Cn[ti-1]===Cn[ti+1]&&Cn[ti-1]*3===Cn[ti]&&(Cn[ti-3]===0||ti+3>vi||Cn[ti-3]*3>=Cn[ti]*4||Cn[ti+3]*3>=Cn[ti]*4)&&(ui+=oi.N3);return ui},_finish:function(){this._stringBuffer=this.buffer.slice();var vi,ti,ui=0,Cn=3e4;for(ti=0;ti<8&&(this._applyMask(ti),vi=this._checkBadness(),vi<Cn&&(Cn=vi,ui=ti),ui!==7);ti++)this.buffer=this._stringBuffer.slice();ui!==ti&&this._applyMask(ui),Cn=Rn.FINAL_FORMAT[ui+(this._level-1<<3)];var ki=this.buffer,Zi=this.width;for(ti=0;ti<8;ti++,Cn>>=1)Cn&1&&(ki[Zi-1-ti+Zi*8]=1,ti<6?ki[8+Zi*ti]=1:ki[8+Zi*(ti+1)]=1);for(ti=0;ti<7;ti++,Cn>>=1)Cn&1&&(ki[8+Zi*(Zi-7+ti)]=1,ti?ki[6-ti+Zi*8]=1:ki[7+Zi*8]=1)},_interleaveBlocks:function(){var vi,ti,ui=this._dataBlock,Cn=this._ecc,ki=this._eccBlock,Zi=0,ta=this._calculateMaxLength(),Ri=this._neccBlock1,ha=this._neccBlock2,qi=this._stringBuffer;for(vi=0;vi<ui;vi++){for(ti=0;ti<Ri;ti++)Cn[Zi++]=qi[vi+ti*ui];for(ti=0;ti<ha;ti++)Cn[Zi++]=qi[Ri*ui+vi+ti*(ui+1)]}for(ti=0;ti<ha;ti++)Cn[Zi++]=qi[Ri*ui+vi+ti*(ui+1)];for(vi=0;vi<ki;vi++)for(ti=0;ti<Ri+ha;ti++)Cn[Zi++]=qi[ta+vi+ti*ki];this._stringBuffer=Cn},_insertAlignments:function(){var vi,ti,ui,Cn=this._version,ki=this.width;if(Cn>1)for(vi=xn.BLOCK[Cn],ui=ki-7;;){for(ti=ki-7;ti>vi-3&&(this._addAlignment(ti,ui),!(ti<vi));)ti-=vi;if(ui<=vi+9)break;ui-=vi,this._addAlignment(6,ui),this._addAlignment(ui,6)}},_insertFinders:function(){var vi,ti,ui,Cn,ki=this.buffer,Zi=this.width;for(vi=0;vi<3;vi++){for(ti=0,Cn=0,vi===1&&(ti=Zi-7),vi===2&&(Cn=Zi-7),ki[Cn+3+Zi*(ti+3)]=1,ui=0;ui<6;ui++)ki[Cn+ui+Zi*ti]=1,ki[Cn+Zi*(ti+ui+1)]=1,ki[Cn+6+Zi*(ti+ui)]=1,ki[Cn+ui+1+Zi*(ti+6)]=1;for(ui=1;ui<5;ui++)this._setMask(Cn+ui,ti+1),this._setMask(Cn+1,ti+ui+1),this._setMask(Cn+5,ti+ui),this._setMask(Cn+ui+1,ti+5);for(ui=2;ui<4;ui++)ki[Cn+ui+Zi*(ti+2)]=1,ki[Cn+2+Zi*(ti+ui+1)]=1,ki[Cn+4+Zi*(ti+ui)]=1,ki[Cn+ui+1+Zi*(ti+4)]=1}},_insertTimingGap:function(){var vi,ti,ui=this.width;for(ti=0;ti<7;ti++)this._setMask(7,ti),this._setMask(ui-8,ti),this._setMask(7,ti+ui-7);for(vi=0;vi<8;vi++)this._setMask(vi,7),this._setMask(vi+ui-8,7),this._setMask(vi,ui-8)},_insertTimingRowAndColumn:function(){var vi,ti=this.buffer,ui=this.width;for(vi=0;vi<ui-14;vi++)vi&1?(this._setMask(8+vi,6),this._setMask(6,8+vi)):(ti[8+vi+ui*6]=1,ti[6+ui*(8+vi)]=1)},_insertVersion:function(){var vi,ti,ui,Cn,ki=this.buffer,Zi=this._version,ta=this.width;if(Zi>6)for(vi=_i.BLOCK[Zi-7],ti=17,ui=0;ui<6;ui++)for(Cn=0;Cn<3;Cn++,ti--)1&(ti>11?Zi>>ti-12:vi>>ti)?(ki[5-ui+ta*(2-Cn+ta-11)]=1,ki[2-Cn+ta-11+ta*(5-ui)]=1):(this._setMask(5-ui,2-Cn+ta-11),this._setMask(2-Cn+ta-11,5-ui))},_isMasked:function(vi,ti){var ui=oi._getMaskBit(vi,ti);return this._mask[ui]===1},_pack:function(){var vi,ti,ui,Cn=1,ki=1,Zi=this.width,ta=Zi-1,Ri=Zi-1,ha=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;
80for(ti=0;ti<ha;ti++)for(vi=this._stringBuffer[ti],ui=0;ui<8;ui++,vi<<=1){128&vi&&(this.buffer[ta+Zi*Ri]=1);do ki?ta--:(ta++,Cn?Ri!==0?Ri--:(ta-=2,Cn=!Cn,ta===6&&(ta--,Ri=9)):Ri!==Zi-1?Ri++:(ta-=2,Cn=!Cn,ta===6&&(ta--,Ri-=8))),ki=!ki;while(this._isMasked(ta,Ri))}},_reverseMask:function(){var vi,ti,ui=this.width;for(vi=0;vi<9;vi++)this._setMask(vi,8);for(vi=0;vi<8;vi++)this._setMask(vi+ui-8,8),this._setMask(8,vi);for(ti=0;ti<7;ti++)this._setMask(8,ti+ui-7)},_setMask:function(vi,ti){var ui=oi._getMaskBit(vi,ti);this._mask[ui]=1},_syncMask:function(){var vi,ti,ui=this.width;for(ti=0;ti<ui;ti++)for(vi=0;vi<=ti;vi++)this.buffer[vi+ui*ti]&&this._setMask(vi,ti)}},{_createArray:function(vi){var ti,ui=[];for(ti=0;ti<vi;ti++)ui[ti]=0;return ui},_getMaskBit:function(vi,ti){var ui;return vi>ti&&(ui=vi,vi=ti,ti=ui),ui=ti,ui+=ti*ti,ui>>=1,ui+=vi,ui},_modN:function(vi){for(;vi>=255;)vi-=255,vi=(vi>>8)+(vi&255);return vi},N1:3,N2:3,N3:40,N4:10}),si=oi,fi=fn.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var vi=this.element;vi.width=vi.height=this.qrious.size}}),ei=fi,ci=gn.extend(function(vi,ti,ui,Cn){this.name=vi,this.modifiable=!!ti,this.defaultValue=ui,this._valueTransformer=Cn},{transform:function(vi){var ti=this._valueTransformer;return typeof ti=="function"?ti(vi,this):vi}}),di=ci,wi=gn.extend(null,{abs:function(vi){return vi!=null?Math.abs(vi):null},hasOwn:function(vi,ti){return Object.prototype.hasOwnProperty.call(vi,ti)},noop:function(){},toUpperCase:function(vi){return vi!=null?vi.toUpperCase():null}}),Ci=wi,ji=gn.extend(function(vi){this.options={},vi.forEach(function(ti){this.options[ti.name]=ti},this)},{exists:function(vi){return this.options[vi]!=null},get:function(vi,ti){return ji._get(this.options[vi],ti)},getAll:function(vi){var ti,ui=this.options,Cn={};for(ti in ui)Ci.hasOwn(ui,ti)&&(Cn[ti]=ji._get(ui[ti],vi));return Cn},init:function(vi,ti,ui){typeof ui!="function"&&(ui=Ci.noop);var Cn,ki;for(Cn in this.options)Ci.hasOwn(this.options,Cn)&&(ki=this.options[Cn],ji._set(ki,ki.defaultValue,ti),ji._createAccessor(ki,ti,ui));this._setAll(vi,ti,!0)},set:function(vi,ti,ui){return this._set(vi,ti,ui)},setAll:function(vi,ti){return this._setAll(vi,ti)},_set:function(vi,ti,ui,Cn){var ki=this.options[vi];if(!ki)throw new Error("Invalid option: "+vi);if(!ki.modifiable&&!Cn)throw new Error("Option cannot be modified: "+vi);return ji._set(ki,ti,ui)},_setAll:function(vi,ti,ui){if(!vi)return!1;var Cn,ki=!1;for(Cn in vi)Ci.hasOwn(vi,Cn)&&this._set(Cn,vi[Cn],ti,ui)&&(ki=!0);return ki}},{_createAccessor:function(vi,ti,ui){var Cn={get:function(){return ji._get(vi,ti)}};vi.modifiable&&(Cn.set=function(ki){ji._set(vi,ki,ti)&&ui(ki,vi)}),Object.defineProperty(ti,vi.name,Cn)},_get:function(vi,ti){return ti["_"+vi.name]},_set:function(vi,ti,ui){var Cn="_"+vi.name,ki=ui[Cn],Zi=vi.transform(ti??vi.defaultValue);return ui[Cn]=Zi,Zi!==ki}}),Yi=ji,Pi=gn.extend(function(){this._services={}},{getService:function(vi){var ti=this._services[vi];if(!ti)throw new Error("Service is not being managed with name: "+vi);return ti},setService:function(vi,ti){if(this._services[vi])throw new Error("Service is already managed with name: "+vi);ti&&(this._services[vi]=ti)}}),Fi=Pi,$i=new Yi([new di("background",!0,"white"),new di("backgroundAlpha",!0,1,Ci.abs),new di("element"),new di("foreground",!0,"black"),new di("foregroundAlpha",!0,1,Ci.abs),new di("level",!0,"L",Ci.toUpperCase),new di("mime",!0,"image/png"),new di("padding",!0,null,Ci.abs),new di("size",!0,100,Ci.abs),new di("value",!0,"")]),Wi=new Fi,hi=gn.extend(function(vi){$i.init(vi,this,this.update.bind(this));var ti=$i.get("element",this),ui=Wi.getService("element"),Cn=ti&&ui.isCanvas(ti)?ti:ui.createCanvas(),ki=ti&&ui.isImage(ti)?ti:ui.createImage();this._canvasRenderer=new Mn(this,Cn,!0),this._imageRenderer=new ei(this,ki,ki===ti),this.update()},{get:function(){return $i.getAll(this)},set:function(vi){$i.setAll(vi,this)&&this.update()},toDataURL:function(vi){return this.canvas.toDataURL(vi||this.mime)},update:function(){var vi=new si({level:this.level,value:this.value});this._canvasRenderer.render(vi),this._imageRenderer.render(vi)}},{use:function(vi){Wi.setService(vi.getName(),vi)}});Object.defineProperties(hi.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var Si=hi,Ni=Si,yi=gn.extend({getName:function(){}}),Hi=yi,Ui=Hi.extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(vi){},isImage:function(vi){}}),Ji=Ui,Oi=Ji.extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(vi){return vi instanceof HTMLCanvasElement},isImage:function(vi){return vi instanceof HTMLImageElement}}),Ei=Oi;Ni.use(new Ei);var ea=Ni;return ea}))})(qrious$1)),qrious$1.exports}var qriousExports=requireQrious();const QRious=getDefaultExportFromCjs(qriousExports),_sfc_main$S={props:{contentId:{required:!0,type:String},title:{required:!0,type:String},description:{required:!1,type:String,default:void 0},image:{required:!0,type:String},alias:{required:!0,type:String},langcode:{required:!0,type:String},productType:{required:!1,type:String,default:void 0},localities:{required:!1,type:Array,default:void 0},period:{required:!1,type:Object,default:void 0},address:{required:!1,type:Object,default:void 0},phone:{required:!1,type:String,default:void 0},mobile:{required:!1,type:String,default:void 0}}
80,computed:{...mapState("context",["site"]),formattedPeriod(){if(!this.period)return;const en=hooks(this.period.start).format("DD/MM/YYYY"),He=hooks(this.period.end).format("DD/MM/YYYY");return en===He?en:`${en} - ${He}`}},methods:{...mapActions("favorites",["removeFavorite"])},mounted(){let en=this.$store.getters["context/multilingualUrl"](this.alias);new QRious({element:this.$refs.qrCode,value:window.location.origin+en})}},_hoisted_1$T={class:"favorite"},_hoisted_2$N={class:"favorite__image-wrapper"},_hoisted_3$K=["src"],_hoisted_4$z={class:"favorite__content"},_hoisted_5$w={class:"favorite__title"},_hoisted_6$t={key:0,class:"favorite__product-info"},_hoisted_7$s={key:1,class:"favorite__product-info"},_hoisted_8$o={key:2,class:"favorite__period"},_hoisted_9$n={key:3,class:"favorite__phone"},_hoisted_10$l={key:4,class:"favorite__mobile"},_hoisted_11$g={key:5,class:"favorite__description"},_hoisted_12$e={ref:"qrCode",class:"favorite__qr"};function _sfc_render$S(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$T,[createBaseVNode("div",_hoisted_2$N,[createBaseVNode("img",{src:tn.image,alt:"",class:"favorite__image"},null,8,_hoisted_3$K)]),createBaseVNode("div",_hoisted_4$z,[createBaseVNode("h2",_hoisted_5$w,toDisplayString(tn.title),1),tn.productType?(openBlock(),createElementBlock("div",_hoisted_6$t,toDisplayString(tn.productType),1)):createCommentVNode("",!0),tn.address||tn.localities?(openBlock(),createElementBlock("div",_hoisted_7$s,[tn.address?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(tn.address.address_line1)+", "+toDisplayString(tn.address.postal_code)+" "+toDisplayString(tn.address.locality),1)],64)):tn.localities?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(tn.localities.join(", ")),1)],64)):createCommentVNode("",!0)])):createCommentVNode("",!0),tn.period?(openBlock(),createElementBlock("div",_hoisted_8$o,toDisplayString(rn.formattedPeriod),1)):createCommentVNode("",!0),tn.phone?(openBlock(),createElementBlock("div",_hoisted_9$n,toDisplayString(tn.phone),1)):createCommentVNode("",!0),tn.mobile?(openBlock(),createElementBlock("div",_hoisted_10$l,toDisplayString(tn.mobile),1)):createCommentVNode("",!0),tn.description?(openBlock(),createElementBlock("div",_hoisted_11$g,toDisplayString(tn.description),1)):createCommentVNode("",!0)]),createBaseVNode("img",_hoisted_12$e,null,512)])}const PrintableFavorite=_export_sfc(_sfc_main$S,[["render",_sfc_render$S],["__scopeId","data-v-b694023e"]]);var raf={exports:{}},performanceNow$1={exports:{}},performanceNow=performanceNow$1.exports,hasRequiredPerformanceNow;function requirePerformanceNow(){return hasRequiredPerformanceNow||(hasRequiredPerformanceNow=1,(function(){var en,He,tn,nn,an,rn;typeof performance<"u"&&performance!==null&&performance.now?performanceNow$1.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow$1.exports=function(){return(en()-an)/1e6},He=process.hrtime,en=function(){var on;return on=He(),on[0]*1e9+on[1]},nn=en(),rn=process.uptime()*1e9,an=nn-rn):Date.now?(performanceNow$1.exports=function(){return Date.now()-tn},tn=Date.now()):(performanceNow$1.exports=function(){return new Date().getTime()-tn},tn=new Date().getTime())}).call(performanceNow)),performanceNow$1.exports}var hasRequiredRaf;function requireRaf(){if(hasRequiredRaf)return raf.exports;hasRequiredRaf=1;for(var en=requirePerformanceNow(),He=typeof window>"u"?commonjsGlobal:window,tn=["moz","webkit"],nn="AnimationFrame",an=He["request"+nn],rn=He["cancel"+nn]||He["cancelRequest"+nn],on=0;!an&&on<tn.length;on++)an=He[tn[on]+"Request"+nn],rn=He[tn[on]+"Cancel"+nn]||He[tn[on]+"CancelRequest"+nn];if(!an||!rn){var sn=0,dn=0,hn=[],mn=1e3/60;an=function(gn){if(hn.length===0){var yn=en(),fn=Math.max(0,mn-(yn-sn));sn=fn+yn,setTimeout(function(){var bn=hn.slice(0);hn.length=0;for(var Mn=0;Mn<bn.length;Mn++)if(!bn[Mn].cancelled)try{bn[Mn].callback(sn)}catch(Tn){setTimeout(function(){throw Tn},0)}},Math.round(fn))}return hn.push({handle:++dn,callback:gn,cancelled:!1}),dn},rn=function(gn){for(var yn=0;yn<hn.length;yn++)hn[yn].handle===gn&&(hn[yn].cancelled=!0)}}return raf.exports=function(gn){return an.call(He,gn)},raf.exports.cancel=function(){rn.apply(He,arguments)},raf.exports.polyfill=function(gn){gn||(gn=He),gn.requestAnimationFrame=an,gn.cancelAnimationFrame=rn},raf.exports}var rafExports=requireRaf();const requestAnimationFrame$1=getDefaultExportFromCjs(rafExports);var rgbcolor,hasRequiredRgbcolor;function requireRgbcolor(){return hasRequiredRgbcolor||(hasRequiredRgbcolor=1,rgbcolor=function(en){this.ok=!1,this.alpha=1,en.charAt(0)=="#"&&(en=en.substr(1,6)),en=en.replace(/ /g,""),en=en.toLowerCase();var He={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
800",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};en=He[en]||en;for(var tn=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(dn){return[parseInt(dn[1]),parseInt(dn[2]),parseInt(dn[3]),parseFloat(dn[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(dn){return[parseInt(dn[1]),parseInt(dn[2]),parseInt(dn[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(dn){return[parseInt(dn[1],16),parseInt(dn[2],16),parseInt(dn[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(dn){return[parseInt(dn[1]+dn[1],16),parseInt(dn[2]+dn[2],16),parseInt(dn[3]+dn[3],16)]}}],nn=0;nn<tn.length;nn++){var an=tn[nn].re,rn=tn[nn].process,on=an.exec(en);if(on){var sn=rn(on);this.r=sn[0],this.g=sn[1],this.b=sn[2],sn.length>3&&(this.alpha=sn[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var dn=this.r.toString(16),hn=this.g.toString(16),mn=this.b.toString(16);return dn.length==1&&(dn="0"+dn),hn.length==1&&(hn="0"+hn),mn.length==1&&(mn="0"+mn),"#"+dn+hn+mn},this.getHelpXML=function(){for(var dn=new Array,hn=0;hn<tn.length;hn++)for(var mn=tn[hn].example,gn=0;gn<mn.length;gn++)dn[dn.length]=mn[gn];for(var yn in He)dn[dn.length]=yn;var fn=document.createElement("ul");fn.setAttribute("id","rgbcolor-examples");for(var hn=0;hn<dn.length;hn++)try{var bn=document.createElement("li"),Mn=new RGBColor(dn[hn]),Tn=document.createElement("div");Tn.style.cssText="margin: 3px; border: 1px solid black; background:"+Mn.toHex()+"; color:"+Mn.toHex(),Tn.appendChild(document.createTextNode("test"));var xn=document.createTextNode(" "+dn[hn]+" -> "+Mn.toRGB()+" -> "+Mn.toHex());bn.appendChild(Tn),bn.appendChild(xn),fn.appendChild(bn)}catch{}return fn}}),rgbcolor}var rgbcolorExports=requireRgbcolor();const RGBColor$1=getDefaultExportFromCjs(rgbcolorExports);var t$1=function(en,He){return(t$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tn,nn){tn.__proto__=nn}||function(tn,nn){for(var an in nn)Object.prototype.hasOwnProperty.call(nn,an)&&(tn[an]=nn[an])})(en,He)};function r$1(en,He){if(typeof He!="function"&&He!==null)throw new TypeError("Class extends value "+String(He)+" is not a constructor or null");function tn(){this.constructor=en}
vendor: 4,491 bytes, line 80
80t$1(en,He),en.prototype=He===null?Object.create(He):(tn.prototype=He.prototype,new tn)}function e$1(en){var He="";Array.isArray(en)||(en=[en]);for(var tn=0;tn<en.length;tn++){var nn=en[tn];if(nn.type===_.CLOSE_PATH)He+="z";else if(nn.type===_.HORIZ_LINE_TO)He+=(nn.relative?"h":"H")+nn.x;else if(nn.type===_.VERT_LINE_TO)He+=(nn.relative?"v":"V")+nn.y;else if(nn.type===_.MOVE_TO)He+=(nn.relative?"m":"M")+nn.x+" "+nn.y;else if(nn.type===_.LINE_TO)He+=(nn.relative?"l":"L")+nn.x+" "+nn.y;else if(nn.type===_.CURVE_TO)He+=(nn.relative?"c":"C")+nn.x1+" "+nn.y1+" "+nn.x2+" "+nn.y2+" "+nn.x+" "+nn.y;else if(nn.type===_.SMOOTH_CURVE_TO)He+=(nn.relative?"s":"S")+nn.x2+" "+nn.y2+" "+nn.x+" "+nn.y;else if(nn.type===_.QUAD_TO)He+=(nn.relative?"q":"Q")+nn.x1+" "+nn.y1+" "+nn.x+" "+nn.y;else if(nn.type===_.SMOOTH_QUAD_TO)He+=(nn.relative?"t":"T")+nn.x+" "+nn.y;else{if(nn.type!==_.ARC)throw new Error('Unexpected command type "'+nn.type+'" at index '+tn+".");He+=(nn.relative?"a":"A")+nn.rX+" "+nn.rY+" "+nn.xRot+" "+ +nn.lArcFlag+" "+ +nn.sweepFlag+" "+nn.x+" "+nn.y}}return He}function i$1(en,He){var tn=en[0],nn=en[1];return[tn*Math.cos(He)-nn*Math.sin(He),tn*Math.sin(He)+nn*Math.cos(He)]}function a$1(){for(var en=[],He=0;He<arguments.length;He++)en[He]=arguments[He];for(var tn=0;tn<en.length;tn++)if(typeof en[tn]!="number")throw new Error("assertNumbers arguments["+tn+"] is not a number. "+typeof en[tn]+" == typeof "+en[tn]);return!0}var n$1=Math.PI;function o$1(en,He,tn){en.lArcFlag=en.lArcFlag===0?0:1,en.sweepFlag=en.sweepFlag===0?0:1;var nn=en.rX,an=en.rY,rn=en.x,on=en.y;nn=Math.abs(en.rX),an=Math.abs(en.rY);var sn=i$1([(He-rn)/2,(tn-on)/2],-en.xRot/180*n$1),dn=sn[0],hn=sn[1],mn=Math.pow(dn,2)/Math.pow(nn,2)+Math.pow(hn,2)/Math.pow(an,2);1<mn&&(nn*=Math.sqrt(mn),an*=Math.sqrt(mn)),en.rX=nn,en.rY=an;var gn=Math.pow(nn,2)*Math.pow(hn,2)+Math.pow(an,2)*Math.pow(dn,2),yn=(en.lArcFlag!==en.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(nn,2)*Math.pow(an,2)-gn)/gn)),fn=nn*hn/an*yn,bn=-an*dn/nn*yn,Mn=i$1([fn,bn],en.xRot/180*n$1);en.cX=Mn[0]+(He+rn)/2,en.cY=Mn[1]+(tn+on)/2,en.phi1=Math.atan2((hn-bn)/an,(dn-fn)/nn),en.phi2=Math.atan2((-hn-bn)/an,(-dn-fn)/nn),en.sweepFlag===0&&en.phi2>en.phi1&&(en.phi2-=2*n$1),en.sweepFlag===1&&en.phi2<en.phi1&&(en.phi2+=2*n$1),en.phi1*=180/n$1,en.phi2*=180/n$1}function s$1(en,He,tn){a$1(en,He,tn);var nn=en*en+He*He-tn*tn;if(0>nn)return[];if(nn===0)return[[en*tn/(en*en+He*He),He*tn/(en*en+He*He)]];var an=Math.sqrt(nn);return[[(en*tn+He*an)/(en*en+He*He),(He*tn-en*an)/(en*en+He*He)],[(en*tn-He*an)/(en*en+He*He),(He*tn+en*an)/(en*en+He*He)]]}var u$1,h=Math.PI/180;function c$1(en,He,tn){return(1-tn)*en+tn*He}function y$2(en,He,tn,nn){return en+Math.cos(nn/180*n$1)*He+Math.sin(nn/180*n$1)*tn}function p(en,He,tn,nn){var an=1e-6,rn=He-en,on=tn-He,sn=3*rn+3*(nn-tn)-6*on,dn=6*(on-rn),hn=3*rn;return Math.abs(sn)<an?[-hn/dn]:(function(mn,gn,yn){var fn=mn*mn/4-gn;if(fn<-yn)return[];if(fn<=yn)return[-mn/2];var bn=Math.sqrt(fn);return[-mn/2-bn,-mn/2+bn]})(dn/sn,hn/sn,an)}function m$1(en,He,tn,nn,an){var rn=1-an;return en*(rn*rn*rn)+He*(3*rn*rn*an)+tn*(3*rn*an*an)+nn*(an*an*an)}(function(en){function He(){return an((function(sn,dn,hn){return sn.relative&&(sn.x1!==void 0&&(sn.x1+=dn),sn.y1!==void 0&&(sn.y1+=hn),sn.x2!==void 0&&(sn.x2+=dn),sn.y2!==void 0&&(sn.y2+=hn),sn.x!==void 0&&(sn.x+=dn),sn.y!==void 0&&(sn.y+=hn),sn.relative=!1),sn}))}function tn(){var sn=NaN,dn=NaN,hn=NaN,mn=NaN;return an((function(gn,yn,fn){return gn.type&_.SMOOTH_CURVE_TO&&(gn.type=_.CURVE_TO,sn=isNaN(sn)?yn:sn,dn=isNaN(dn)?fn:dn,gn.x1=gn.relative?yn-sn:2*yn-sn,gn.y1=gn.relative?fn-dn:2*fn-dn),gn.type&_.CURVE_TO?(sn=gn.relative?yn+gn.x2:gn.x2,dn=gn.relative?fn+gn.y2:gn.y2):(sn=NaN,dn=NaN),gn.type&_.SMOOTH_QUAD_TO&&(gn.type=_.QUAD_TO,hn=isNaN(hn)?yn:hn,mn=isNaN(mn)?fn:mn,gn.x1=gn.relative?yn-hn:2*yn-hn,gn.y1=gn.relative?fn-mn:2*fn-mn),gn.type&_.QUAD_TO?(hn=gn.relative?yn+gn.x1:gn.x1,mn=gn.relative?fn+gn.y1:gn.y1):(hn=NaN,mn=NaN),gn}))}function nn(){var sn=NaN,dn=NaN;return an((function(hn,mn,gn){if(hn.type&_.SMOOTH_QUAD_TO&&(hn.type=_.QUAD_TO,sn=isNaN(sn)?mn:sn,dn=isNaN(dn)?gn:dn,hn.x1=hn.relative?mn-sn:2*mn-sn,hn.y1=hn.relative?gn-dn:2*gn-dn),hn.type&_.QUAD_TO){sn=hn.relative?mn+hn.x1:hn.x1,dn=hn.relative?gn+hn.y1:hn.y1;var yn=hn.x1,fn=hn.y1;hn.type=_.CURVE_TO,hn.x1=((hn.relative?0:mn)+2*yn)/3,hn.y1=((hn.relative?0:gn)+2*fn)/3,hn.x2=(hn.x+2*yn)/3,hn.y2=(hn.y+2*fn)/3}else sn=NaN,dn=NaN;return hn}))}function an(sn){var dn=0,hn=0,mn=NaN,gn=NaN;
vendor: 8,956 bytes, lines 80-81
80return function(yn){if(isNaN(mn)&&!(yn.type&_.MOVE_TO))throw new Error("path must start with moveto");var fn=sn(yn,dn,hn,mn,gn);return yn.type&_.CLOSE_PATH&&(dn=mn,hn=gn),yn.x!==void 0&&(dn=yn.relative?dn+yn.x:yn.x),yn.y!==void 0&&(hn=yn.relative?hn+yn.y:yn.y),yn.type&_.MOVE_TO&&(mn=dn,gn=hn),fn}}function rn(sn,dn,hn,mn,gn,yn){return a$1(sn,dn,hn,mn,gn,yn),an((function(fn,bn,Mn,Tn){var xn=fn.x1,En=fn.x2,Rn=fn.relative&&!isNaN(Tn),ni=fn.x!==void 0?fn.x:Rn?0:bn,mi=fn.y!==void 0?fn.y:Rn?0:Mn;function bi(hi){return hi*hi}fn.type&_.HORIZ_LINE_TO&&dn!==0&&(fn.type=_.LINE_TO,fn.y=fn.relative?0:Mn),fn.type&_.VERT_LINE_TO&&hn!==0&&(fn.type=_.LINE_TO,fn.x=fn.relative?0:bn),fn.x!==void 0&&(fn.x=fn.x*sn+mi*hn+(Rn?0:gn)),fn.y!==void 0&&(fn.y=ni*dn+fn.y*mn+(Rn?0:yn)),fn.x1!==void 0&&(fn.x1=fn.x1*sn+fn.y1*hn+(Rn?0:gn)),fn.y1!==void 0&&(fn.y1=xn*dn+fn.y1*mn+(Rn?0:yn)),fn.x2!==void 0&&(fn.x2=fn.x2*sn+fn.y2*hn+(Rn?0:gn)),fn.y2!==void 0&&(fn.y2=En*dn+fn.y2*mn+(Rn?0:yn));var _i=sn*mn-dn*hn;if(fn.xRot!==void 0&&(sn!==1||dn!==0||hn!==0||mn!==1))if(_i===0)delete fn.rX,delete fn.rY,delete fn.xRot,delete fn.lArcFlag,delete fn.sweepFlag,fn.type=_.LINE_TO;else{var oi=fn.xRot*Math.PI/180,si=Math.sin(oi),fi=Math.cos(oi),ei=1/bi(fn.rX),ci=1/bi(fn.rY),di=bi(fi)*ei+bi(si)*ci,wi=2*si*fi*(ei-ci),Ci=bi(si)*ei+bi(fi)*ci,ji=di*mn*mn-wi*dn*mn+Ci*dn*dn,Yi=wi*(sn*mn+dn*hn)-2*(di*hn*mn+Ci*sn*dn),Pi=di*hn*hn-wi*sn*hn+Ci*sn*sn,Fi=(Math.atan2(Yi,ji-Pi)+Math.PI)%Math.PI/2,$i=Math.sin(Fi),Wi=Math.cos(Fi);fn.rX=Math.abs(_i)/Math.sqrt(ji*bi(Wi)+Yi*$i*Wi+Pi*bi($i)),fn.rY=Math.abs(_i)/Math.sqrt(ji*bi($i)-Yi*$i*Wi+Pi*bi(Wi)),fn.xRot=180*Fi/Math.PI}return fn.sweepFlag!==void 0&&0>_i&&(fn.sweepFlag=+!fn.sweepFlag),fn}))}function on(){return function(sn){var dn={};for(var hn in sn)dn[hn]=sn[hn];return dn}}en.ROUND=function(sn){function dn(hn){return Math.round(hn*sn)/sn}return sn===void 0&&(sn=1e13),a$1(sn),function(hn){return hn.x1!==void 0&&(hn.x1=dn(hn.x1)),hn.y1!==void 0&&(hn.y1=dn(hn.y1)),hn.x2!==void 0&&(hn.x2=dn(hn.x2)),hn.y2!==void 0&&(hn.y2=dn(hn.y2)),hn.x!==void 0&&(hn.x=dn(hn.x)),hn.y!==void 0&&(hn.y=dn(hn.y)),hn.rX!==void 0&&(hn.rX=dn(hn.rX)),hn.rY!==void 0&&(hn.rY=dn(hn.rY)),hn}},en.TO_ABS=He,en.TO_REL=function(){return an((function(sn,dn,hn){return sn.relative||(sn.x1!==void 0&&(sn.x1-=dn),sn.y1!==void 0&&(sn.y1-=hn),sn.x2!==void 0&&(sn.x2-=dn),sn.y2!==void 0&&(sn.y2-=hn),sn.x!==void 0&&(sn.x-=dn),sn.y!==void 0&&(sn.y-=hn),sn.relative=!0),sn}))},en.NORMALIZE_HVZ=function(sn,dn,hn){return sn===void 0&&(sn=!0),dn===void 0&&(dn=!0),hn===void 0&&(hn=!0),an((function(mn,gn,yn,fn,bn){if(isNaN(fn)&&!(mn.type&_.MOVE_TO))throw new Error("path must start with moveto");return dn&&mn.type&_.HORIZ_LINE_TO&&(mn.type=_.LINE_TO,mn.y=mn.relative?0:yn),hn&&mn.type&_.VERT_LINE_TO&&(mn.type=_.LINE_TO,mn.x=mn.relative?0:gn),sn&&mn.type&_.CLOSE_PATH&&(mn.type=_.LINE_TO,mn.x=mn.relative?fn-gn:fn,mn.y=mn.relative?bn-yn:bn),mn.type&_.ARC&&(mn.rX===0||mn.rY===0)&&(mn.type=_.LINE_TO,delete mn.rX,delete mn.rY,delete mn.xRot,delete mn.lArcFlag,delete mn.sweepFlag),mn}))},en.NORMALIZE_ST=tn,en.QT_TO_C=nn,en.INFO=an,en.SANITIZE=function(sn){sn===void 0&&(sn=0),a$1(sn);var dn=NaN,hn=NaN,mn=NaN,gn=NaN;return an((function(yn,fn,bn,Mn,Tn){var xn=Math.abs,En=!1,Rn=0,ni=0;if(yn.type&_.SMOOTH_CURVE_TO&&(Rn=isNaN(dn)?0:fn-dn,ni=isNaN(hn)?0:bn-hn),yn.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(dn=yn.relative?fn+yn.x2:yn.x2,hn=yn.relative?bn+yn.y2:yn.y2):(dn=NaN,hn=NaN),yn.type&_.SMOOTH_QUAD_TO?(mn=isNaN(mn)?fn:2*fn-mn,gn=isNaN(gn)?bn:2*bn-gn):yn.type&_.QUAD_TO?(mn=yn.relative?fn+yn.x1:yn.x1,gn=yn.relative?bn+yn.y1:yn.y2):(mn=NaN,gn=NaN),yn.type&_.LINE_COMMANDS||yn.type&_.ARC&&(yn.rX===0||yn.rY===0||!yn.lArcFlag)||yn.type&_.CURVE_TO||yn.type&_.SMOOTH_CURVE_TO||yn.type&_.QUAD_TO||yn.type&_.SMOOTH_QUAD_TO){var mi=yn.x===void 0?0:yn.relative?yn.x:yn.x-fn,bi=yn.y===void 0?0:yn.relative?yn.y:yn.y-bn;Rn=isNaN(mn)?yn.x1===void 0?Rn:yn.relative?yn.x:yn.x1-fn:mn-fn,ni=isNaN(gn)?yn.y1===void 0?ni:yn.relative?yn.y:yn.y1-bn:gn-bn;var _i=yn.x2===void 0?0:yn.relative?yn.x:yn.x2-fn,oi=yn.y2===void 0?0:yn.relative?yn.y:yn.y2-bn;xn(mi)<=sn&&xn(bi)<=sn&&xn(Rn)<=sn&&xn(ni)<=sn&&xn(_i)<=sn&&xn(oi)<=sn&&(En=!0)}return yn.type&_.CLOSE_PATH&&xn(fn-Mn)<=sn&&xn(bn-Tn)<=sn&&(En=!0),En?[]:yn}))},en.MATRIX=rn,en.ROTATE=function(sn,dn,hn){dn===void 0&&(dn=0),hn===void 0&&(hn=0),a$1(sn,dn,hn);var mn=Math.sin(sn),gn=Math.cos(sn);return rn(gn,mn,-mn,gn,dn-dn*gn+hn*mn,hn-dn*mn-hn*gn)},en.TRANSLATE=function(sn,dn){return dn===void 0&&(dn=0),a$1(sn,dn),rn(1,0,0,1,sn,dn)},en.SCALE=function(sn,dn){return dn===void 0&&(dn=sn),a$1(sn,dn),rn(sn,0,0,dn,0,0)},en.SKEW_X=function(sn){return a$1(sn),rn(1,0,Math.atan(sn),1,0,0)},en.SKEW_Y=function(sn){return a$1(sn),rn(1,Math.atan(sn),0,1,0,0)},en.X_AXIS_SYMMETRY=function(sn){return sn===void 0&&(sn=0),a$1(sn),rn(-1,0,0,1,sn,0)},en.Y_AXIS_SYMMETRY=function(sn){return sn===void 0&&(sn=0),a$1(sn),rn(1,0,0,-1,0,sn)},en.A_TO_C=function(){return an((function(sn,dn,hn){return _.ARC===sn.type?(function(mn,gn,yn){var fn,bn,Mn,Tn;mn.cX||o$1(mn,gn,yn);for(var xn=Math.min(mn.phi1,mn.phi2),En=Math.max(mn.phi1,mn.phi2)-xn,Rn=Math.ceil(En/90),ni=new Array(Rn),mi=gn,bi=yn,_i=0;_i<Rn;_i++){var oi=c$1(mn.phi1,mn.phi2,_i/Rn),si=c$1(mn.phi1,mn.phi2,(_i+1)/Rn),fi=si-oi,ei=4/3*Math.tan(fi*h/4),ci=[Math.cos(oi*h)-ei*Math.sin(oi*h),Math.sin(oi*h)+ei*Math.cos(oi*h)],di=ci[0],wi=ci[1],Ci=[Math.cos(si*h),Math.sin(si*h)],ji=Ci[0],Yi=Ci[1],Pi=[ji+ei*Math.sin(si*h),Yi-ei*Math.cos(si*h)],Fi=Pi[0],$i=Pi[1];ni[_i]={relative:mn.relative,type:_.CURVE_TO};var Wi=function(hi,Si){var Ni=i$1([hi*mn.rX,Si*mn.rY],mn.xRot),yi=Ni[0],Hi=Ni[1];return[mn.cX+yi,mn.cY+Hi]};fn=Wi(di,wi),ni[_i].x1=fn[0],ni[_i].y1=fn[1],bn=Wi(Fi,$i),ni[_i].x2=bn[0],ni[_i].y2=bn[1],Mn=Wi(ji,Yi),ni[_i].x=Mn[0],ni[_i].y=Mn[1],mn.relative&&(ni[_i].x1-=mi,ni[_i].y1-=bi,ni[_i].x2-=mi,ni[_i].y2-=bi,ni[_i].x-=mi,ni[_i].y-=bi),mi=(Tn=[ni[_i].x,ni[_i].y])[0],bi=Tn[1]}return ni})(sn,sn.relative?0:dn,sn.relative?0:hn):sn}))},en.ANNOTATE_ARCS=function(){return an((function(sn,dn,hn){return sn.relative&&(dn=0,hn=0),_.ARC===sn.type&&o$1(sn,dn,hn),sn}))},en.CLONE=on,en.CALCULATE_BOUNDS=function(){var sn=function(yn){var fn={};for(var bn in yn)fn[bn]=yn[bn];return fn},dn=He(),hn=nn(),mn=tn(),gn=an((function(yn,fn,bn){var Mn=mn(hn(dn(sn(yn))));function Tn($i){$i>gn.maxX&&(gn.maxX=$i),$i<gn.minX&&(gn.minX=$i)}function xn($i){$i>gn.maxY&&(gn.maxY=$i),$i<gn.minY&&(gn.minY=$i)}if(Mn.type&_.DRAWING_COMMANDS&&(Tn(fn),xn(bn)),Mn.type&_.HORIZ_LINE_TO&&Tn(Mn.x),Mn.type&_.VERT_LINE_TO&&xn(Mn.y),Mn.type&_.LINE_TO&&(Tn(Mn.x),xn(Mn.y)),Mn.type&_.CURVE_TO){Tn(Mn.x),xn(Mn.y);for(var En=0,Rn=p(fn,Mn.x1,Mn.x2,Mn.x);En<Rn.length;En++)0<(Fi=Rn[En])&&1>Fi&&Tn(m$1(fn,Mn.x1,Mn.x2,Mn.x,Fi));for(var ni=0,mi=p(bn,Mn.y1,Mn.y2,Mn.y);ni<mi.length;ni++)0<(Fi=mi[ni])&&1>Fi&&xn(m$1(bn,Mn.y1,Mn.y2,Mn.y,Fi))}if(Mn.type&_.ARC){Tn(Mn.x),xn(Mn.y),o$1(Mn,fn,bn);for(var bi=Mn.xRot/180*Math.PI,_i=Math.cos(bi)*Mn.rX,oi=Math.sin(bi)*Mn.rX,si=-Math.sin(bi)*Mn.rY,fi=Math.cos(bi)*Mn.rY,ei=Mn.phi1<Mn.phi2?[Mn.phi1,Mn.phi2]:-180>Mn.phi2?[Mn.phi2+360,Mn.phi1+360]:[Mn.phi2,Mn.phi1],ci=ei[0],di=ei[1],wi=function($i){var Wi=$i[0],hi=$i[1],Si=180*Math.atan2(hi,Wi)/Math.PI;return Si<ci?Si+360:Si},Ci=0,ji=s$1(si,-_i,0).map(wi);Ci<ji.length;Ci++)(Fi=ji[Ci])>ci&&Fi<di&&Tn(y$2(Mn.cX,_i,si,Fi));for(var Yi=0,Pi=s$1(fi,-oi,0).map(wi);Yi<Pi.length;Yi++){var Fi;(Fi=Pi[Yi])>ci&&Fi<di&&xn(y$2(Mn.cY,oi,fi,Fi))}}return yn}));return gn.minX=1/0,gn.maxX=-1/0,gn.minY=1/0,gn.maxY=-1/0,gn}})(u$1||(u$1={}));var O,l$1=(function(){function en(){}return en.prototype.round=function(He){return this.transform(u$1.ROUND(He))},en.prototype.toAbs=function(){return this.transform(u$1.TO_ABS())},en.prototype.toRel=function(){return this.transform(u$1.TO_REL())},en.prototype.normalizeHVZ=function(He,tn,nn){return this.transform(u$1.NORMALIZE_HVZ(He,tn,nn))},en.prototype.normalizeST=function(){return this.transform(u$1.NORMALIZE_ST())},en.prototype.qtToC=function(){return this.transform(u$1.QT_TO_C())},en.prototype.aToC=function(){return this.transform(u$1.A_TO_C())},en.prototype.sanitize=function(He){return this.transform(u$1.SANITIZE(He))},en.prototype.translate=function(He,tn){return this.transform(u$1.TRANSLATE(He,tn))},en.prototype.scale=function(He,tn){return this.transform(u$1.SCALE(He,tn))},en.prototype.rotate=function(He,tn,nn){return this.transform(u$1.ROTATE(He,tn,nn))},en.prototype.matrix=function(He,tn,nn,an,rn,on){return this.transform(u$1.MATRIX(He,tn,nn,an,rn,on))},en.prototype.skewX=function(He){return this.transform(u$1.SKEW_X(He))},en.prototype.skewY=function(He){return this.transform(u$1.SKEW_Y(He))},en.prototype.xSymmetry=function(He){return this.transform(u$1.X_AXIS_SYMMETRY(He))},en.prototype.ySymmetry=function(He){return this.transform(u$1.Y_AXIS_SYMMETRY(He))},en.prototype.annotateArcs=function(){return this.transform(u$1.ANNOTATE_ARCS())},en})(),T=function(en){return en===" "||en==="	"||en==="\r"||en===`
81`}
vendor: 13,163 bytes, line 81
81,v=function(en){return 48<=en.charCodeAt(0)&&en.charCodeAt(0)<=57},f=(function(en){function He(){var tn=en.call(this)||this;return tn.curNumber="",tn.curCommandType=-1,tn.curCommandRelative=!1,tn.canParseCommandOrComma=!0,tn.curNumberHasExp=!1,tn.curNumberHasExpDigits=!1,tn.curNumberHasDecimal=!1,tn.curArgs=[],tn}return r$1(He,en),He.prototype.finish=function(tn){if(tn===void 0&&(tn=[]),this.parse(" ",tn),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return tn},He.prototype.parse=function(tn,nn){var an=this;nn===void 0&&(nn=[]);for(var rn=function(gn){nn.push(gn),an.curArgs.length=0,an.canParseCommandOrComma=!0},on=0;on<tn.length;on++){var sn=tn[on],dn=!(this.curCommandType!==_.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),hn=v(sn)&&(this.curNumber==="0"&&sn==="0"||dn);if(!v(sn)||hn)if(sn!=="e"&&sn!=="E")if(sn!=="-"&&sn!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(sn!=="."||this.curNumberHasExp||this.curNumberHasDecimal||dn){if(this.curNumber&&this.curCommandType!==-1){var mn=Number(this.curNumber);if(isNaN(mn))throw new SyntaxError("Invalid number ending at "+on);if(this.curCommandType===_.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>mn)throw new SyntaxError('Expected positive number, got "'+mn+'" at index "'+on+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+on+'"')}this.curArgs.push(mn),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?rn({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:mn}):_.VERT_LINE_TO===this.curCommandType?rn({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:mn}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(rn({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?rn({type:_.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_.SMOOTH_CURVE_TO?rn({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?rn({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&rn({type:_.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T(sn))if(sn===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(sn!=="+"&&sn!=="-"&&sn!==".")if(hn)this.curNumber=sn,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+on+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+sn+'" at index '+on+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,sn!=="z"&&sn!=="Z")if(sn==="h"||sn==="H")this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative=sn==="h";else if(sn==="v"||sn==="V")this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative=sn==="v";else if(sn==="m"||sn==="M")this.curCommandType=_.MOVE_TO,this.curCommandRelative=sn==="m";else if(sn==="l"||sn==="L")this.curCommandType=_.LINE_TO,this.curCommandRelative=sn==="l";else if(sn==="c"||sn==="C")this.curCommandType=_.CURVE_TO,this.curCommandRelative=sn==="c";else if(sn==="s"||sn==="S")this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative=sn==="s";else if(sn==="q"||sn==="Q")this.curCommandType=_.QUAD_TO,this.curCommandRelative=sn==="q";else if(sn==="t"||sn==="T")this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative=sn==="t";else{if(sn!=="a"&&sn!=="A")throw new SyntaxError('Unexpected character "'+sn+'" at index '+on+".");this.curCommandType=_.ARC,this.curCommandRelative=sn==="a"}else nn.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=sn,this.curNumberHasDecimal=sn==="."}else this.curNumber+=sn,this.curNumberHasDecimal=!0;else this.curNumber+=sn;else this.curNumber+=sn,this.curNumberHasExp=!0;else this.curNumber+=sn,this.curNumberHasExpDigits=this.curNumberHasExp}return nn},He.prototype.transform=function(tn){return Object.create(this,{parse:{value:function(nn,an){an===void 0&&(an=[]);for(var rn=0,on=Object.getPrototypeOf(this).parse.call(this,nn);rn<on.length;rn++){var sn=on[rn],dn=tn(sn);Array.isArray(dn)?an.push.apply(an,dn):an.push(dn)}return an}}})},He})(l$1),_=(function(en){function He(tn){var nn=en.call(this)||this;return nn.commands=typeof tn=="string"?He.parse(tn):tn,nn}return r$1(He,en),He.prototype.encode=function(){return He.encode(this.commands)},He.prototype.getBounds=function(){var tn=u$1.CALCULATE_BOUNDS();return this.transform(tn),tn},He.prototype.transform=function(tn){for(var nn=[],an=0,rn=this.commands;an<rn.length;an++){var on=tn(rn[an]);Array.isArray(on)?nn.push.apply(nn,on):nn.push(on)}return this.commands=nn,this},He.encode=function(tn){return e$1(tn)},He.parse=function(tn){var nn=new f,an=[];return nn.parse(tn,an),nn.finish(an),an},He.CLOSE_PATH=1,He.MOVE_TO=2,He.HORIZ_LINE_TO=4,He.VERT_LINE_TO=8,He.LINE_TO=16,He.CURVE_TO=32,He.SMOOTH_CURVE_TO=64,He.QUAD_TO=128,He.SMOOTH_QUAD_TO=256,He.ARC=512,He.LINE_COMMANDS=He.LINE_TO|He.HORIZ_LINE_TO|He.VERT_LINE_TO,He.DRAWING_COMMANDS=He.HORIZ_LINE_TO|He.VERT_LINE_TO|He.LINE_TO|He.CURVE_TO|He.SMOOTH_CURVE_TO|He.QUAD_TO|He.SMOOTH_QUAD_TO|He.ARC,He})(l$1),N=((O={})[_.MOVE_TO]=2,O[_.LINE_TO]=2,O[_.HORIZ_LINE_TO]=1,O[_.VERT_LINE_TO]=1,O[_.CLOSE_PATH]=0,O[_.QUAD_TO]=4,O[_.SMOOTH_QUAD_TO]=2,O[_.CURVE_TO]=6,O[_.SMOOTH_CURVE_TO]=4,O[_.ARC]=7,O);function _typeof(en){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(He){return typeof He}:_typeof=function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},_typeof(en)}function _classCallCheck(en,He){if(!(en instanceof He))throw new TypeError("Cannot call a class as a function")}var mulTable=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shgTable=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function getImageDataFromCanvas(en,He,tn,nn,an){if(typeof en=="string"&&(en=document.getElementById(en)),!en||_typeof(en)!=="object"||!("getContext"in en))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var rn=en.getContext("2d");try{return rn.getImageData(He,tn,nn,an)}catch(on){throw new Error("unable to access image data: "+on)}}function processCanvasRGBA(en,He,tn,nn,an,rn){if(!(isNaN(rn)||rn<1)){rn|=0;var on=getImageDataFromCanvas(en,He,tn,nn,an);on=processImageDataRGBA(on,He,tn,nn,an,rn),en.getContext("2d").putImageData(on,He,tn)}}function processImageDataRGBA(en,He,tn,nn,an,rn){for(var on=en.data,sn=2*rn+1,dn=nn-1,hn=an-1,mn=rn+1,gn=mn*(mn+1)/2,yn=new BlurStack,fn=yn,bn,Mn=1;Mn<sn;Mn++)fn=fn.next=new BlurStack,Mn===mn&&(bn=fn);fn.next=yn;for(var Tn=null,xn=null,En=0,Rn=0,ni=mulTable[rn],mi=shgTable[rn],bi=0;bi<an;bi++){fn=yn;for(var _i=on[Rn],oi=on[Rn+1],si=on[Rn+2],fi=on[Rn+3],ei=0;ei<mn;ei++)fn.r=_i,fn.g=oi,fn.b=si,fn.a=fi,fn=fn.next;for(var ci=0,di=0,wi=0,Ci=0,ji=mn*_i,Yi=mn*oi,Pi=mn*si,Fi=mn*fi,$i=gn*_i,Wi=gn*oi,hi=gn*si,Si=gn*fi,Ni=1;Ni<mn;Ni++){var yi=Rn+((dn<Ni?dn:Ni)<<2),Hi=on[yi],Ui=on[yi+1],Ji=on[yi+2],Oi=on[yi+3],Ei=mn-Ni;$i+=(fn.r=Hi)*Ei,Wi+=(fn.g=Ui)*Ei,hi+=(fn.b=Ji)*Ei,Si+=(fn.a=Oi)*Ei,ci+=Hi,di+=Ui,wi+=Ji,Ci+=Oi,fn=fn.next}Tn=yn,xn=bn;for(var ea=0;ea<nn;ea++){var vi=Si*ni>>>mi;if(on[Rn+3]=vi,vi!==0){var ti=255/vi;on[Rn]=($i*ni>>>mi)*ti,on[Rn+1]=(Wi*ni>>>mi)*ti,on[Rn+2]=(hi*ni>>>mi)*ti}else on[Rn]=on[Rn+1]=on[Rn+2]=0;$i-=ji,Wi-=Yi,hi-=Pi,Si-=Fi,ji-=Tn.r,Yi-=Tn.g,Pi-=Tn.b,Fi-=Tn.a;var ui=ea+rn+1;ui=En+(ui<dn?ui:dn)<<2,ci+=Tn.r=on[ui],di+=Tn.g=on[ui+1],wi+=Tn.b=on[ui+2],Ci+=Tn.a=on[ui+3],$i+=ci,Wi+=di,hi+=wi,Si+=Ci,Tn=Tn.next;var Cn=xn,ki=Cn.r,Zi=Cn.g,ta=Cn.b,Ri=Cn.a;ji+=ki,Yi+=Zi,Pi+=ta,Fi+=Ri,ci-=ki,di-=Zi,wi-=ta,Ci-=Ri,xn=xn.next,Rn+=4}En+=nn}for(var ha=0;ha<nn;ha++){Rn=ha<<2;var qi=on[Rn],ca=on[Rn+1],Bi=on[Rn+2],Na=on[Rn+3],pa=mn*qi,Ea=mn*ca,ns=mn*Bi,vs=mn*Na,rs=gn*qi,Xa=gn*ca,_s=gn*Bi,mo=gn*Na;fn=yn;for(var Is=0;Is<mn;Is++)fn.r=qi,fn.g=ca,fn.b=Bi,fn.a=Na,fn=fn.next;for(var $s=nn,Ps=0,Ws=0,ps=0,oo=0,bs=1;bs<=rn;bs++){Rn=$s+ha<<2;var As=mn-bs;rs+=(fn.r=qi=on[Rn])*As,Xa+=(fn.g=ca=on[Rn+1])*As,_s+=(fn.b=Bi=on[Rn+2])*As,mo+=(fn.a=Na=on[Rn+3])*As,oo+=qi,Ps+=ca,Ws+=Bi,ps+=Na,fn=fn.next,bs<hn&&($s+=nn)}Rn=ha,Tn=yn,xn=bn;for(var ts=0;ts<an;ts++){var cs=Rn<<2;on[cs+3]=Na=mo*ni>>>mi,Na>0?(Na=255/Na,on[cs]=(rs*ni>>>mi)*Na,on[cs+1]=(Xa*ni>>>mi)*Na,on[cs+2]=(_s*ni>>>mi)*Na):on[cs]=on[cs+1]=on[cs+2]=0,rs-=pa,Xa-=Ea,_s-=ns,mo-=vs,pa-=Tn.r,Ea-=Tn.g,ns-=Tn.b,vs-=Tn.a,cs=ha+((cs=ts+mn)<hn?cs:hn)*nn<<2,rs+=oo+=Tn.r=on[cs],Xa+=Ps+=Tn.g=on[cs+1],_s+=Ws+=Tn.b=on[cs+2],mo+=ps+=Tn.a=on[cs+3],Tn=Tn.next,pa+=qi=xn.r,Ea+=ca=xn.g,ns+=Bi=xn.b,vs+=Na=xn.a,oo-=qi,Ps-=ca,Ws-=Bi,ps-=Na,xn=xn.next,Rn+=nn}}return en}var BlurStack=function en(){_classCallCheck(this,en),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(en){return en.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(en){return en.replace(/^[\n \t]+/,"")}function trimRight(en){return en.replace(/[\n \t]+$/,"")}function toNumbers(en){const He=en.match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm);return He?He.map(parseFloat):[]}function toMatrixValue(en){const He=toNumbers(en);return[He[0]||0,He[1]||0,He[2]||0,He[3]||0,He[4]||0,He[5]||0]}const allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(en){return allUppercase.test(en)?en.toLowerCase():en}function parseExternalUrl(en){const He=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(en);return He&&(He[2]||He[3]||He[4])||""}function normalizeColor(en){if(!en.startsWith("rgb"))return en;let He=3;return en.replace(/\d+(\.\d+)?/g,(nn,an)=>He--&&an?String(Math.round(parseFloat(nn))):nn)}const attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s+>~.[:]+)/g,classRegex=/(\.[^\s+>~.[:]+)/g,pseudoElementRegex=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^)]*\))/gi,pseudoClassRegex=/(:[^\s+>~.[:]+)/g,elementRegex=/([^\s+>~.[:]+)/g;function findSelectorMatch(en,He){const tn=He.exec(en);return tn?[en.replace(He," "),tn.length]:[en,0]}function getSelectorSpecificity(en){const He=[0,0,0];let tn=en.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),nn=0;return[tn,nn]=findSelectorMatch(tn,attributeRegex),He[1]+=nn,[tn,nn]=findSelectorMatch(tn,idRegex),He[0]+=nn,[tn,nn]=findSelectorMatch(tn,classRegex),He[1]+=nn,[tn,nn]=findSelectorMatch(tn,pseudoElementRegex),He[2]+=nn,[tn,nn]=findSelectorMatch(tn,pseudoClassWithBracketsRegex),He[1]+=nn,[tn,nn]=findSelectorMatch(tn,pseudoClassRegex),He[1]+=nn,tn=tn.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[tn,nn]=findSelectorMatch(tn,elementRegex),He[2]+=nn,He.join("")}const PSEUDO_ZERO=1e-8;
81function vectorMagnitude(en){return Math.sqrt(Math.pow(en[0],2)+Math.pow(en[1],2))}function vectorsRatio(en,He){return(en[0]*He[0]+en[1]*He[1])/(vectorMagnitude(en)*vectorMagnitude(He))}function vectorsAngle(en,He){return(en[0]*He[1]<en[1]*He[0]?-1:1)*Math.acos(vectorsRatio(en,He))}function CB1(en){return en*en*en}function CB2(en){return 3*en*en*(1-en)}function CB3(en){return 3*en*(1-en)*(1-en)}function CB4(en){return(1-en)*(1-en)*(1-en)}function QB1(en){return en*en}function QB2(en){return 2*en*(1-en)}function QB3(en){return(1-en)*(1-en)}class Property{static empty(He){return new Property(He,"EMPTY","")}split(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ";const{document:tn,name:nn}=this;return compressSpaces(this.getString()).trim().split(He).map(an=>new Property(tn,nn,an))}hasValue(He){const tn=this.value;return tn!==null&&tn!==""&&(He||tn!==0)&&typeof tn<"u"}isString(He){const{value:tn}=this,nn=typeof tn=="string";return!nn||!He?nn:He.test(tn)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;const He=this.getString();switch(!0){case He.endsWith("px"):case/^[0-9]+$/.test(He):return!0;default:return!1}}setValue(He){return this.value=He,this}getValue(He){return typeof He>"u"||this.hasValue()?this.value:He}getNumber(He){if(!this.hasValue())return typeof He>"u"?0:parseFloat(He);const{value:tn}=this;let nn=parseFloat(tn);return this.isString(/%$/)&&(nn/=100),nn}getString(He){return typeof He>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(He)}getColor(He){let tn=this.getString(He);return this.isNormalizedColor||(this.isNormalizedColor=!0,tn=normalizeColor(tn),this.value=tn),tn}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;const[nn,an]=typeof He=="boolean"?[void 0,He]:[He],{viewPort:rn}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(rn.computeSize("x"),rn.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(rn.computeSize("x"),rn.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*rn.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*rn.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&an):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*rn.computeSize(nn);default:{const on=this.getNumber();return tn&&on<1?on*rn.computeSize(nn):on}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){const He=this.getString(),tn=/#([^)'"]+)/.exec(He),nn=tn?.[1]||He;return this.document.definitions.get(nn)}getFillStyleDefinition(He,tn){let nn=this.getDefinition();if(!nn)return null;if(typeof nn.createGradient=="function"&&"getBoundingBox"in He)return nn.createGradient(this.document.ctx,He,tn);if(typeof nn.createPattern=="function"){if(nn.getHrefAttribute().hasValue()){const an=nn.getAttribute("patternTransform");nn=nn.getHrefAttribute().getDefinition(),nn&&an.hasValue()&&nn.getAttribute("patternTransform",!0).setValue(an.value)}if(nn)return nn.createPattern(this.document.ctx,He,tn)}return null}getTextBaseline(){if(!this.hasValue())return null;const He=this.getString();return Property.textBaselineMapping[He]||null}addOpacity(He){let tn=this.getColor();const nn=tn.length;let an=0;for(let rn=0;rn<nn&&(tn[rn]===","&&an++,an!==3);rn++);if(He.hasValue()&&this.isString()&&an!==3){const rn=new RGBColor$1(tn);rn.ok&&(rn.alpha=He.getNumber(),tn=rn.toRGBA())}return new Property(this.document,this.name,tn)}constructor(He,tn,nn){this.document=He,this.name=tn,this.value=nn,this.isNormalizedColor=!1}}Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class ViewPort{clear(){this.viewPorts=[]}setCurrent(He,tn){this.viewPorts.push({width:He,height:tn})}removeCurrent(){this.viewPorts.pop()}getRoot(){const[He]=this.viewPorts;return He||getDefault()}getCurrent(){const{viewPorts:He}=this,tn=He[He.length-1];return tn||getDefault()}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(He){return typeof He=="number"?He:He==="x"?this.width:He==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}constructor(){this.viewPorts=[]}}ViewPort.DEFAULT_VIEWPORT_WIDTH=800;ViewPort.DEFAULT_VIEWPORT_HEIGHT=600;function getDefault(){return{width:ViewPort.DEFAULT_VIEWPORT_WIDTH,height:ViewPort.DEFAULT_VIEWPORT_HEIGHT}}class Point{static parse(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const[nn=tn,an=tn]=toNumbers(He);return new Point(nn,an)}static parseScale(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const[nn=tn,an=nn]=toNumbers(He);return new Point(nn,an)}static parsePath(He){const tn=toNumbers(He),nn=tn.length,an=[];for(let rn=0;rn<nn;rn+=2)an.push(new Point(tn[rn],tn[rn+1]));return an}angleTo(He){return Math.atan2(He.y-this.y,He.x-this.x)}applyTransform(He){const{x:tn,y:nn}=this,an=tn*He[0]+nn*He[2]+He[4],rn=tn*He[1]+nn*He[3]+He[5];this.x=an,this.y=rn}constructor(He,tn){this.x=He,this.y=tn}}class Mouse{isWorking(){return this.working}
81start(){if(this.working)return;const{screen:He,onClick:tn,onMouseMove:nn}=this,an=He.ctx.canvas;an.onclick=tn,an.onmousemove=nn,this.working=!0}stop(){if(!this.working)return;const He=this.screen.ctx.canvas;this.working=!1,He.onclick=null,He.onmousemove=null}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(!this.working)return;const{screen:He,events:tn,eventElements:nn}=this,{style:an}=He.ctx.canvas;let rn;an&&(an.cursor=""),tn.forEach((on,sn)=>{let{run:dn}=on;for(rn=nn[sn];rn;)dn(rn),rn=rn.parent}),this.events=[],this.eventElements=[]}checkPath(He,tn){if(!this.working||!tn)return;const{events:nn,eventElements:an}=this;nn.forEach((rn,on)=>{let{x:sn,y:dn}=rn;!an[on]&&tn.isPointInPath&&tn.isPointInPath(sn,dn)&&(an[on]=He)})}checkBoundingBox(He,tn){if(!this.working||!tn)return;const{events:nn,eventElements:an}=this;nn.forEach((rn,on)=>{let{x:sn,y:dn}=rn;!an[on]&&tn.isPointInBox(sn,dn)&&(an[on]=He)})}mapXY(He,tn){const{window:nn,ctx:an}=this.screen,rn=new Point(He,tn);let on=an.canvas;for(;on;)rn.x-=on.offsetLeft,rn.y-=on.offsetTop,on=on.offsetParent;return nn?.scrollX&&(rn.x+=nn.scrollX),nn?.scrollY&&(rn.y+=nn.scrollY),rn}onClick(He){const{x:tn,y:nn}=this.mapXY(He.clientX,He.clientY);this.events.push({type:"onclick",x:tn,y:nn,run(an){an.onClick&&an.onClick()}})}onMouseMove(He){const{x:tn,y:nn}=this.mapXY(He.clientX,He.clientY);this.events.push({type:"onmousemove",x:tn,y:nn,run(an){an.onMouseMove&&an.onMouseMove()}})}constructor(He){this.screen=He,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}}const defaultWindow$1=typeof window<"u"?window:null,defaultFetch$1=typeof fetch<"u"?fetch.bind(void 0):void 0;class Screen{wait(He){this.waits.push(He)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;const He=this.waits.every(tn=>tn());return He&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=He,He}setDefaults(He){He.strokeStyle="rgba(0,0,0,0)",He.lineCap="butt",He.lineJoin="miter",He.miterLimit=4}setViewBox(He){let{document:tn,ctx:nn,aspectRatio:an,width:rn,desiredWidth:on,height:sn,desiredHeight:dn,minX:hn=0,minY:mn=0,refX:gn,refY:yn,clip:fn=!1,clipX:bn=0,clipY:Mn=0}=He;const Tn=compressSpaces(an).replace(/^defer\s/,""),[xn,En]=Tn.split(" "),Rn=xn||"xMidYMid",ni=En||"meet",mi=rn/on,bi=sn/dn,_i=Math.min(mi,bi),oi=Math.max(mi,bi);let si=on,fi=dn;ni==="meet"&&(si*=_i,fi*=_i),ni==="slice"&&(si*=oi,fi*=oi);const ei=new Property(tn,"refX",gn),ci=new Property(tn,"refY",yn),di=ei.hasValue()&&ci.hasValue();if(di&&nn.translate(-_i*ei.getPixels("x"),-_i*ci.getPixels("y")),fn){const wi=_i*bn,Ci=_i*Mn;nn.beginPath(),nn.moveTo(wi,Ci),nn.lineTo(rn,Ci),nn.lineTo(rn,sn),nn.lineTo(wi,sn),nn.closePath(),nn.clip()}if(!di){const wi=ni==="meet"&&_i===bi,Ci=ni==="slice"&&oi===bi,ji=ni==="meet"&&_i===mi,Yi=ni==="slice"&&oi===mi;Rn.startsWith("xMid")&&(wi||Ci)&&nn.translate(rn/2-si/2,0),Rn.endsWith("YMid")&&(ji||Yi)&&nn.translate(0,sn/2-fi/2),Rn.startsWith("xMax")&&(wi||Ci)&&nn.translate(rn-si,0),Rn.endsWith("YMax")&&(ji||Yi)&&nn.translate(0,sn-fi)}switch(!0){case Rn==="none":nn.scale(mi,bi);break;case ni==="meet":nn.scale(_i,_i);break;case ni==="slice":nn.scale(oi,oi);break}nn.translate(-hn,-mn)}start(He){let{enableRedraw:tn=!1,ignoreMouse:nn=!1,ignoreAnimation:an=!1,ignoreDimensions:rn=!1,ignoreClear:on=!1,forceRedraw:sn,scaleWidth:dn,scaleHeight:hn,offsetX:mn,offsetY:gn}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{mouse:yn}=this,fn=1e3/Screen.FRAMERATE;if(this.isReadyLock=!1,this.frameDuration=fn,this.readyPromise=new Promise(En=>{this.resolveReady=En}),this.isReady()&&this.render(He,rn,on,dn,hn,mn,gn),!tn)return;let bn=Date.now(),Mn=bn,Tn=0;const xn=()=>{bn=Date.now(),Tn=bn-Mn,Tn>=fn&&(Mn=bn-Tn%fn,this.shouldUpdate(an,sn)&&(this.render(He,rn,on,dn,hn,mn,gn),yn.runEvents())),this.intervalId=requestAnimationFrame$1(xn)};nn||yn.start(),this.intervalId=requestAnimationFrame$1(xn)}stop(){this.intervalId&&(requestAnimationFrame$1.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(He,tn){if(!He){const{frameDuration:nn}=this;if(this.animations.reduce((rn,on)=>
81on.update(nn)||rn,!1))return!0}return!!(typeof tn=="function"&&tn()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(He,tn,nn,an,rn,on,sn){const{viewPort:dn,ctx:hn,isFirstRender:mn}=this,gn=hn.canvas;dn.clear(),gn.width&&gn.height&&dn.setCurrent(gn.width,gn.height);const yn=He.getStyle("width"),fn=He.getStyle("height");!tn&&(mn||typeof an!="number"&&typeof rn!="number")&&(yn.hasValue()&&(gn.width=yn.getPixels("x"),gn.style&&(gn.style.width="".concat(gn.width,"px"))),fn.hasValue()&&(gn.height=fn.getPixels("y"),gn.style&&(gn.style.height="".concat(gn.height,"px"))));let bn=gn.clientWidth||gn.width,Mn=gn.clientHeight||gn.height;if(tn&&yn.hasValue()&&fn.hasValue()&&(bn=yn.getPixels("x"),Mn=fn.getPixels("y")),dn.setCurrent(bn,Mn),typeof on=="number"&&He.getAttribute("x",!0).setValue(on),typeof sn=="number"&&He.getAttribute("y",!0).setValue(sn),typeof an=="number"||typeof rn=="number"){const Tn=toNumbers(He.getAttribute("viewBox").getString());let xn=0,En=0;if(typeof an=="number"){const ni=He.getStyle("width");ni.hasValue()?xn=ni.getPixels("x")/an:Tn[2]&&!isNaN(Tn[2])&&(xn=Tn[2]/an)}if(typeof rn=="number"){const ni=He.getStyle("height");ni.hasValue()?En=ni.getPixels("y")/rn:Tn[3]&&!isNaN(Tn[3])&&(En=Tn[3]/rn)}xn||(xn=En),En||(En=xn),He.getAttribute("width",!0).setValue(an),He.getAttribute("height",!0).setValue(rn);const Rn=He.getStyle("transform",!0,!0);Rn.setValue("".concat(Rn.getString()," scale(").concat(1/xn,", ").concat(1/En,")"))}nn||hn.clearRect(0,0,bn,Mn),He.render(hn),mn&&(this.isFirstRender=!1)}constructor(He,{fetch:tn=defaultFetch$1,window:nn=defaultWindow$1}={}){if(this.ctx=He,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=nn,!tn)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=tn}}Screen.defaultWindow=defaultWindow$1;Screen.defaultFetch=defaultFetch$1;Screen.FRAMERATE=30;Screen.MAX_VIRTUAL_PIXELS=3e4;const{defaultFetch}=Screen,DefaultDOMParser=typeof DOMParser<"u"?DOMParser:void 0;let Parser$1=class{async parse(He){return He.startsWith("<")?this.parseFromString(He):this.load(He)}parseFromString(He){const tn=new this.DOMParser;try{return this.checkDocument(tn.parseFromString(He,"image/svg+xml"))}catch{return this.checkDocument(tn.parseFromString(He,"text/xml"))}}checkDocument(He){const tn=He.getElementsByTagName("parsererror")[0];if(tn)throw new Error(tn.textContent||"Unknown parse error");return He}async load(He){const nn=await(await this.fetch(He)).text();return this.parseFromString(nn)}constructor({fetch:He=defaultFetch,DOMParser:tn=DefaultDOMParser}={}){if(!He)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!tn)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=He,this.DOMParser=tn}};class Translate{apply(He){const{x:tn,y:nn}=this.point;He.translate(tn||0,nn||0)}unapply(He){const{x:tn,y:nn}=this.point;He.translate(-1*tn||0,-1*nn||0)}applyToPoint(He){const{x:tn,y:nn}=this.point;He.applyTransform([1,0,0,1,tn||0,nn||0])}constructor(He,tn){this.type="translate",this.point=Point.parse(tn)}}class Rotate{apply(He){const{cx:tn,cy:nn,originX:an,originY:rn,angle:on}=this,sn=tn+an.getPixels("x"),dn=nn+rn.getPixels("y");He.translate(sn,dn),He.rotate(on.getRadians()),He.translate(-sn,-dn)}unapply(He){const{cx:tn,cy:nn,originX:an,originY:rn,angle:on}=this,sn=tn+an.getPixels("x"),dn=nn+rn.getPixels("y");He.translate(sn,dn),He.rotate(-1*on.getRadians()),He.translate(-sn,-dn)}applyToPoint(He){const{cx:tn,cy:nn,angle:an}=this,rn=an.getRadians();He.applyTransform([1,0,0,1,tn||0,nn||0]),He.applyTransform([Math.cos(rn),Math.sin(rn),-Math.sin(rn),Math.cos(rn),0,0]),He.applyTransform([1,0,0,1,-tn||0,-nn||0])}constructor(He,tn,nn){this.type="rotate";const an=toNumbers(tn);this.angle=new Property(He,"angle",an[0]),this.originX=nn[0],this.originY=nn[1],this.cx=an[1]||0,this.cy=an[2]||0}}let Scale$1=class{apply(He){const{scale:{x:tn,y:nn},originX:an,originY:rn}=this,on=an.getPixels("x"),sn=rn.getPixels("y");He.translate(on,sn),He.scale(tn,nn||tn),He.translate(-on,-sn)}
81unapply(He){const{scale:{x:tn,y:nn},originX:an,originY:rn}=this,on=an.getPixels("x"),sn=rn.getPixels("y");He.translate(on,sn),He.scale(1/tn,1/nn||tn),He.translate(-on,-sn)}applyToPoint(He){const{x:tn,y:nn}=this.scale;He.applyTransform([tn||0,0,0,nn||0,0,0])}constructor(He,tn,nn){this.type="scale";const an=Point.parseScale(tn);(an.x===0||an.y===0)&&(an.x=PSEUDO_ZERO,an.y=PSEUDO_ZERO),this.scale=an,this.originX=nn[0],this.originY=nn[1]}};class Matrix{apply(He){const{originX:tn,originY:nn,matrix:an}=this,rn=tn.getPixels("x"),on=nn.getPixels("y");He.translate(rn,on),He.transform(an[0],an[1],an[2],an[3],an[4],an[5]),He.translate(-rn,-on)}unapply(He){const{originX:tn,originY:nn,matrix:an}=this,rn=an[0],on=an[2],sn=an[4],dn=an[1],hn=an[3],mn=an[5],gn=0,yn=0,fn=1,bn=1/(rn*(hn*fn-mn*yn)-on*(dn*fn-mn*gn)+sn*(dn*yn-hn*gn)),Mn=tn.getPixels("x"),Tn=nn.getPixels("y");He.translate(Mn,Tn),He.transform(bn*(hn*fn-mn*yn),bn*(mn*gn-dn*fn),bn*(sn*yn-on*fn),bn*(rn*fn-sn*gn),bn*(on*mn-sn*hn),bn*(sn*dn-rn*mn)),He.translate(-Mn,-Tn)}applyToPoint(He){He.applyTransform(this.matrix)}constructor(He,tn,nn){this.type="matrix",this.matrix=toMatrixValue(tn),this.originX=nn[0],this.originY=nn[1]}}class Skew extends Matrix{constructor(He,tn,nn){super(He,tn,nn),this.type="skew",this.angle=new Property(He,"angle",tn)}}class SkewX extends Skew{constructor(He,tn,nn){super(He,tn,nn),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(He,tn,nn){super(He,tn,nn),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function parseTransforms(en){return compressSpaces(en).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(en){const[He="",tn=""]=en.split("(");return[He.trim(),tn.trim().replace(")","")]}class Transform{static fromElement(He,tn){const nn=tn.getStyle("transform",!1,!0);if(nn.hasValue()){const[an,rn=an]=tn.getStyle("transform-origin",!1,!0).split();if(an&&rn){const on=[an,rn];return new Transform(He,nn.getString(),on)}}return null}
81apply(He){this.transforms.forEach(tn=>tn.apply(He))}unapply(He){this.transforms.forEach(tn=>tn.unapply(He))}applyToPoint(He){this.transforms.forEach(tn=>tn.applyToPoint(He))}constructor(He,tn,nn){this.document=He,this.transforms=[],parseTransforms(tn).forEach(rn=>{if(rn==="none")return;const[on,sn]=parseTransform(rn),dn=Transform.transformTypes[on];dn&&this.transforms.push(new dn(this.document,sn,nn))})}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale$1,matrix:Matrix,skewX:SkewX,skewY:SkewY};let Element$1=class gm{getAttribute(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const nn=this.attributes.get(He);if(!nn&&tn){const an=new Property(this.document,He,"");return this.attributes.set(He,an),an}return nn||Property.empty(this.document)}getHrefAttribute(){let He;for(const[tn,nn]of this.attributes)if(tn==="href"||tn.endsWith(":href")){He=nn;break}return He||Property.empty(this.document)}getStyle(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const an=this.styles.get(He);if(an)return an;const rn=this.getAttribute(He);if(rn.hasValue())return this.styles.set(He,rn),rn;if(!nn){const{parent:on}=this;if(on){const sn=on.getStyle(He);if(sn.hasValue())return sn}}if(tn){const on=new Property(this.document,He,"");return this.styles.set(He,on),on}return Property.empty(this.document)}render(He){if(!(this.getStyle("display").getString()==="none"||this.get
81Style("visibility").getString()==="hidden")){if(He.save(),this.getStyle("mask").hasValue()){const tn=this.getStyle("mask").getDefinition();tn&&(this.applyEffects(He),tn.apply(He,this))}else if(this.getStyle("filter").getValue("none")!=="none"){const tn=this.getStyle("filter").getDefinition();tn&&(this.applyEffects(He),tn.apply(He,this))}else this.setContext(He),this.renderChildren(He),this.clearContext(He);He.restore()}}setContext(He){}applyEffects(He){const tn=Transform.fromElement(this.document,this);tn&&tn.apply(He);const nn=this.getStyle("clip-path",!1,!0);if(nn.hasValue()){const an=nn.getDefinition();an&&an.apply(He)}}clearContext(He){}renderChildren(He){this.children.forEach(tn=>{tn.render(He)})}addChild(He){const tn=He instanceof gm?He:this.document.createElement(He);tn.parent=this,gm.ignoreChildTypes.includes(tn.type)||this.children.push(tn)}matchesSelector(He){var tn;const{node:nn}=this;if(typeof nn.matches=="function")return nn.matches(He);const an=(tn=nn.getAttribute)===null||tn===void 0?void 0:tn.call(nn,"class");return!an||an===""?!1:an.split(" ").some(rn=>".".concat(rn)===He)}addStylesFromStyleDefinition(){const{styles:He,stylesSpecificity:tn}=this.document;for(const[nn,an]of He)if(!nn.startsWith("@")&&this.matchesSelector(nn)){const rn=tn.get(nn);if(an)for(const[on,sn]of an){let dn=this.stylesSpecificity.get(on);typeof dn>"u"&&(dn="000"),rn&&rn>=dn&&(sn&&this.styles.set(on,sn),this.stylesSpecificity.set(on,rn))}}}removeStyles(He,tn){return tn.reduce((an,rn)=>{const on=He.getStyle(rn);if(!on.hasValue())return an;const sn=on.getString();return on.setValue(""),[...an,[rn,sn]]},[])}
81restoreStyles(He,tn){tn.forEach(nn=>{let[an,rn]=nn;He.getStyle(an,!0).setValue(rn)})}isFirstChild(){var He;return((He=this.parent)===null||He===void 0?void 0:He.children.indexOf(this))===0}constructor(He,tn,nn=!1){if(this.document=He,this.node=tn,this.captureTextNodes=nn,this.type="",this.attributes=new Map,this.styles=new Map,this.stylesSpecificity=new Map,this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!tn||tn.nodeType!==1)return;Array.from(tn.attributes).forEach(on=>{const sn=normalizeAttributeName(on.nodeName);this.attributes.set(sn,new Property(He,sn,on.value))}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(sn=>sn.trim()).forEach(sn=>{if(!sn)return;const[dn,hn]=sn.split(":").map(mn=>mn.trim());dn&&this.styles.set(dn,new Property(He,dn,hn))});const{definitions:an}=He,rn=this.getAttribute("id");rn.hasValue()&&(an.has(rn.getString())||an.set(rn.getString(),this)),Array.from(tn.childNodes).forEach(on=>{if(on.nodeType===1)this.addChild(on);else if(nn&&(on.nodeType===3||on.nodeType===4)){const sn=He.createTextNode(on);sn.getText().length>0&&this.addChild(sn)}})}};Element$1.ignoreChildTypes=["title"];class UnknownElement extends Element$1{constructor(He,tn,nn){super(He,tn,nn)}}function wrapFontFamily(en){const He=en.trim();return/^('|")/.test(He)?He:'"'.concat(He,'"')}function prepareFontFamily(en){return typeof process>"u"?en:en.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(en){if(!en)return"";const He=en.trim().toLowerCase();switch(He){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return He;default:return/^oblique\s+(-|)\d+deg$/.test(He)?He:""}}
81function prepareFontWeight(en){if(!en)return"";const He=en.trim().toLowerCase();switch(He){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return He;default:return/^[\d.]+$/.test(He)?He:""}}class Font{static parse(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",tn=arguments.length>1?arguments[1]:void 0,nn="",an="",rn="",on="",sn="";const dn=compressSpaces(He).trim().split(" "),hn={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return dn.forEach(mn=>{switch(!0){case(!hn.fontStyle&&Font.styles.includes(mn)):mn!=="inherit"&&(nn=mn),hn.fontStyle=!0;break;case(!hn.fontVariant&&Font.variants.includes(mn)):mn!=="inherit"&&(an=mn),hn.fontStyle=!0,hn.fontVariant=!0;break;case(!hn.fontWeight&&Font.weights.includes(mn)):mn!=="inherit"&&(rn=mn),hn.fontStyle=!0,hn.fontVariant=!0,hn.fontWeight=!0;break;case!hn.fontSize:mn!=="inherit"&&(on=mn.split("/")[0]||""),hn.fontStyle=!0,hn.fontVariant=!0,hn.fontWeight=!0,hn.fontSize=!0;break;default:mn!=="inherit"&&(sn+=mn)}}),new Font(nn,an,rn,on,sn,tn)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}constructor(He,tn,nn,an,rn,on){const sn=on?typeof on=="string"?Font.parse(on):on:{};this.fontFamily=rn||sn.fontFamily,this.fontSize=an||sn.fontSize,this.fontStyle=He||sn.fontStyle,this.fontWeight=nn||sn.fontWeight,this.fontVariant=tn||sn.fontVariant}}Font.styles="normal|italic|oblique|inherit";Font.variants="normal|small-caps|inherit";Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(He,tn){typeof He<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=He,this.x2=He),He<this.x1&&(this.x1=He),He>this.x2&&(this.x2=He)),typeof tn<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=tn,this.y2=tn),tn<this.y1&&(this.y1=tn),tn>this.y2&&(this.y2=tn))}addX(He){this.addPoint(He,0)}addY(He){this.addPoint(0,He)}addBoundingBox(He){if(!He)return;const{x1:tn,y1:nn,x2:an,y2:rn}=He;this.addPoint(tn,nn),this.addPoint(an,rn)}sumCubic(He,tn,nn,an,rn){return Math.pow(1-He,3)*tn+3*Math.pow(1-He,2)*He*nn+3*(1-He)*Math.pow(He,2)*an+Math.pow(He,3)*rn}bezierCurveAdd(He,tn,nn,an,rn){const on=6*tn-12*nn+6*an,sn=-3*tn+9*nn-9*an+3*rn,dn=3*nn-3*tn;if(sn===0){if(on===0)return;const yn=-dn/on;0<yn&&yn<1&&(He?this.addX(this.sumCubic(yn,tn,nn,an,rn)):this.addY(this.sumCubic(yn,tn,nn,an,rn)));return}const hn=Math.pow(on,2)-4*dn*sn;if(hn<0)return;const mn=(-on+Math.sqrt(hn))/(2*sn);0<mn&&mn<1&&(He?this.addX(this.sumCubic(mn,tn,nn,an,rn)):this.addY(this.sumCubic(mn,tn,nn,an,rn)));const gn=(-on-Math.sqrt(hn))/(2*sn);0<gn&&gn<1&&(He?this.addX(this.sumCubic(gn,tn,nn,an,rn)):this.addY(this.sumCubic(gn,tn,nn,an,rn)))}addBezierCurve(He,tn,nn,an,rn,on,sn,dn){this.addPoint(He,tn),this.addPoint(sn,dn),this.bezierCurveAdd(!0,He,nn,rn,sn),this.bezierCurveAdd(!1,tn,an,on,dn)}addQuadraticCurve(He,tn,nn,an,rn,on){const sn=He+.6666666666666666*(nn-He),dn=tn+2/3*(an-tn),hn=sn+1/3*(rn-He),mn=dn+1/3*(on-tn);this.addBezierCurve(He,tn,sn,hn,dn,mn,rn,on)}isPointInBox(He,tn){const{x1:nn,y1:an,x2:rn,y2:on}=this;return nn<=He&&He<=rn&&an<=tn&&tn<=on}constructor(He=Number.NaN,tn=Number.NaN,nn=Number.NaN,an=Number.NaN){this.x1=He,this.y1=tn,this.x2=nn,this.y2=an,this.addPoint(He,tn),this.addPoint(nn,an)}}class RenderedElement extends Element$1{calculateOpacity(){let He=1,tn=this;for(;tn;){const nn=tn.getStyle("opacity",!1,!0);nn.hasValue(!0)&&(He*=nn.getNumber()),tn=tn.parent}return He}setContext(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!tn){const nn=this.getStyle("fill"),an=this.getStyle("fill-opacity"),rn=this.getStyle("stroke"),on=this.getStyle("stroke-opacity");if(nn.isUrlDefinition()){const fn=nn.getFillStyleDefinition(this,an);fn&&(He.fillStyle=fn)}else if(nn.hasValue()){nn.getString()==="currentColor"&&nn.setValue(this.getStyle("color").getColor());const fn=nn.getColor();fn!=="inherit"&&(He.fillStyle=fn==="none"?"rgba(0,0,0,0)":fn)}if(an.hasValue()){const fn=new Property(this.document,"fill",He.fillStyle).addOpacity(an).getColor();He.fillStyle=fn}if(rn.isUrlDefinition()){const fn=rn.getFillStyleDefinition(this,on);fn&&(He.strokeStyle=fn)}else if(rn.hasValue()){rn.getString()==="currentColor"&&rn.setValue(this.getStyle("color").getColor());const fn=rn.getString();fn!=="inherit"&&(He.strokeStyle=fn==="none"?"rgba(0,0,0,0)":fn)}if(on.hasValue()){const fn=new Property(this.document,"stroke",He.strokeStyle).addOpacity(on).getString();He.strokeStyle=fn}const sn=this.getStyle("stroke-width");if(sn.hasValue()){const fn=sn.getPixels();He.lineWidth=fn||PSEUDO_ZERO}const dn=this.getStyle("stroke-linecap"),hn=this.getStyle("stroke-linejoin"),mn=this.getStyle("stroke-miterlimit"),gn=this.getStyle("stroke-dasharray"),yn=this.getStyle("stroke-dashoffset");if(dn.hasValue()&&(He.lineCap=dn.getString()),hn.hasValue()&&(He.lineJoin=
81hn.getString()),mn.hasValue()&&(He.miterLimit=mn.getNumber()),gn.hasValue()&&gn.getString()!=="none"){const fn=toNumbers(gn.getString());typeof He.setLineDash<"u"?He.setLineDash(fn):typeof He.webkitLineDash<"u"?He.webkitLineDash=fn:typeof He.mozDash<"u"&&!(fn.length===1&&fn[0]===0)&&(He.mozDash=fn);const bn=yn.getPixels();typeof He.lineDashOffset<"u"?He.lineDashOffset=bn:typeof He.webkitLineDashOffset<"u"?He.webkitLineDashOffset=bn:typeof He.mozDashOffset<"u"&&(He.mozDashOffset=bn)}}if(this.modifiedEmSizeStack=!1,typeof He.font<"u"){const nn=this.getStyle("font"),an=this.getStyle("font-style"),rn=this.getStyle("font-variant"),on=this.getStyle("font-weight"),sn=this.getStyle("font-size"),dn=this.getStyle("font-family"),hn=new Font(an.getString(),rn.getString(),on.getString(),sn.hasValue()?"".concat(sn.getPixels(!0),"px"):"",dn.getString(),Font.parse(nn.getString(),He.font));an.setValue(hn.fontStyle),rn.setValue(hn.fontVariant),on.setValue(hn.fontWeight),sn.setValue(hn.fontSize),dn.setValue(hn.fontFamily),He.font=hn.toString(),sn.isPixels()&&(this.document.emSize=sn.getPixels(),this.modifiedEmSizeStack=!0)}tn||(this.applyEffects(He),He.globalAlpha=this.calculateOpacity())}clearContext(He){super.clearContext(He),this.modifiedEmSizeStack&&this.document.popEmSize()}constructor(...He){super(...He),this.modifiedEmSizeStack=!1}}class TextElement extends RenderedElement{setContext(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(He,tn);const nn=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();nn&&(He.textBaseline=nn)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(He){if(this.type!=="text")return this.getTElementBoundingBox(He);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(He);let tn=null;return this.children.forEach((nn,an)=>{const rn=this.getChildBoundingBox(He,this,this,an);tn?tn.addBoundingBox(rn):tn=rn}),tn}getFontSize(){const{document:He,parent:tn}=this,nn=Font.parse(He.ctx.font).fontSize;return tn.getStyle("font-size").getNumber(nn)}getTElementBoundingBox(He){const tn=this.getFontSize();return new BoundingBox(this.x,this.y-tn,this.x+this.measureText(He),this.y)}getGlyph(He,tn,nn){const an=tn[nn];let rn;if(He.isArabic){var on;const sn=tn.length,dn=tn[nn-1],hn=tn[nn+1];let mn="isolated";(nn===0||dn===" ")&&nn<sn-1&&hn!==" "&&(mn="terminal"),nn>0&&dn!==" "&&nn<sn-1&&hn!==" "&&(mn="medial"),nn>0&&dn!==" "&&(nn===sn-1||hn===" ")&&(mn="initial"),rn=((on=He.arabicGlyphs.get(an))===null||on===void 0?void 0:on.get(mn))||He.glyphs.get(an)}else rn=He.glyphs.get(an);return rn||(rn=He.missingGlyph),rn}getText(){return""}getTextFromNode(He){const tn=He||this.node,nn=Array.from(tn.parentNode.childNodes),an=nn.indexOf(tn),rn=nn.length-1;let on=compressSpaces(tn.textContent||"");return an===0&&(on=trimLeft(on)),an===rn&&(on=trimRight(on)),on}renderChildren(He){if(this.type!=="text"){this.renderTElementChildren(He);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(He),this.children.forEach((nn,an)=>{this.renderChild(He,this,this,an)});const{mouse:tn}=this.document.screen;tn.isWorking()&&tn.checkBoundingBox(this,this.getBoundingBox(He))}renderTElementChildren(He){const{document:tn,parent:nn}=this,an=this.getText(),rn=nn.getStyle("font-family").getDefinition();if(rn){const{unitsPerEm:dn}=rn.fontFace,hn=Font.parse(tn.ctx.font),mn=nn.getStyle("font-size").getNumber(hn.fontSize),gn=nn.getStyle("font-style").getString(hn.fontStyle),yn=mn/dn,fn=rn.isRTL?an.split("").reverse().join(""):an,bn=toNumbers(nn.getAttribute("dx").getString()),Mn=fn.length;for(let Tn=0;Tn<Mn;Tn++){const xn=this.getGlyph(rn,fn,Tn);He.translate(this.x,this.y),He.scale(yn,-yn);const En=He.lineWidth;He.lineWidth=He.lineWidth*dn/mn,gn==="italic"&&He.transform(1,0,.4,1,0,0),xn.render(He),gn==="italic"&&He.transform(1,0,-.4,1,0,0),He.lineWidth=En,He.scale(1/yn,-1/yn),He.translate(-this.x,-this.y),this.x+=mn*(xn.horizAdvX||rn.horizAdvX)/
81dn,typeof bn[Tn]<"u"&&!isNaN(bn[Tn])&&(this.x+=bn[Tn])}return}const{x:on,y:sn}=this;He.fillStyle&&He.fillText(an,on,sn),He.strokeStyle&&He.strokeText(an,on,sn)}applyAnchoring(){if(this.textChunkStart>=this.leafTexts.length)return;const He=this.leafTexts[this.textChunkStart],tn=He.getStyle("text-anchor").getString("start"),nn=!1;let an=0;tn==="start"&&!nn||tn==="end"&&nn?an=He.x-this.minX:tn==="end"&&!nn||tn==="start"&&nn?an=He.x-this.maxX:an=He.x-(this.minX+this.maxX)/2;for(let rn=this.textChunkStart;rn<this.leafTexts.length;rn++)this.leafTexts[rn].x+=an;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}adjustChildCoordinatesRecursive(He){this.children.forEach((tn,nn)=>{this.adjustChildCoordinatesRecursiveCore(He,this,this,nn)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(He,tn,nn,an){const rn=nn.children[an];rn.children.length>0?rn.children.forEach((on,sn)=>{tn.adjustChildCoordinatesRecursiveCore(He,tn,rn,sn)}):this.adjustChildCoordinates(He,tn,nn,an)}adjustChildCoordinates(He,tn,nn,an){const rn=nn.children[an];if(typeof rn.measureText!="function")return rn;He.save(),rn.setContext(He,!0);const on=rn.getAttribute("x"),sn=rn.getAttribute("y"),dn=rn.getAttribute("dx"),hn=rn.getAttribute("dy"),mn=rn.getStyle("font-family").getDefinition(),gn=!!mn?.isRTL;an===0&&(on.hasValue()||on.setValue(rn.getInheritedAttribute("x")),sn.hasValue()||sn.setValue(rn.getInheritedAttribute("y")),dn.hasValue()||dn.setValue(rn.getInheritedAttribute("dx")),hn.hasValue()||hn.setValue(rn.getInheritedAttribute("dy")));const yn=rn.measureText(He);return gn&&(tn.x-=yn),on.hasValue()?(tn.applyAnchoring(),rn.x=on.getPixels("x"),dn.hasValue()&&(rn.x+=dn.getPixels("x"))):(dn.hasValue()&&(tn.x+=dn.getPixels("x")),rn.x=tn.x),tn.x=rn.x,gn||(tn.x+=yn),sn.hasValue()?(rn.y=sn.getPixels("y"),hn.hasValue()&&(rn.y+=hn.getPixels("y"))):(hn.hasValue()&&(tn.y+=hn.getPixels("y")),rn.y=tn.y),tn.y=rn.y,tn.leafTexts.push(rn),tn.minX=Math.min(tn.minX,rn.x,rn.x+yn),tn.maxX=Math.max(tn.maxX,rn.x,rn.x+yn),rn.clearContext(He),He.restore(),rn}getChildBoundingBox(He,tn,nn,an){const rn=nn.children[an];if(typeof rn.getBoundingBox!="function")return null;const on=rn.getBoundingBox(He);return on&&rn.children.forEach((sn,dn)=>{const hn=tn.getChildBoundingBox(He,tn,rn,dn);on.addBoundingBox(hn)}),on}renderChild(He,tn,nn,an){const rn=nn.children[an];rn.render(He),rn.children.forEach((on,sn)=>{tn.renderChild(He,tn,rn,sn)})}measureText(He){const{measureCache:tn}=this;if(~tn)return tn;const nn=this.getText(),an=this.measureTargetText(He,nn);return this.measureCache=an,an}measureTargetText(He,tn){if(!tn.length)return 0;const{parent:nn}=this,an=nn.getStyle("font-family").getDefinition();if(an){const on=this.getFontSize(),sn=an.isRTL?tn.split("").reverse().join(""):tn,dn=toNumbers(nn.getAttribute("dx").getString()),hn=sn.length;let mn=0;for(let gn=0;gn<hn;gn++){const yn=this.getGlyph(an,sn,gn);mn+=(yn.horizAdvX||an.horizAdvX)*on/an.fontFace.unitsPerEm,typeof dn[gn]<"u"&&!isNaN(dn[gn])&&(mn+=dn[gn])}return mn}if(!He.measureText)return tn.length*10;He.save(),this.setContext(He,!0);const{width:rn}=He.measureText(tn);return this.clearContext(He),He.restore(),rn}getInheritedAttribute(He){let tn=this;for(;tn instanceof TextElement&&tn.isFirstChild()&&tn.parent;){const nn=tn.parent.getAttribute(He);if(nn.hasValue(!0))return nn.getString("0");tn=tn.parent}return null}constructor(He,tn,nn){super(He,tn,new.target===TextElement?!0:nn),this.type="text",this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.measureCache=-1}}class TSpanElement extends TextElement{getText(){return this.text}constructor(He,tn,nn){super(He,tn,new.target===TSpanElement?!0:nn),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}}class TextNode extends TSpanElement{constructor(...He){super(...He),this.type="textNode"}}class PathParser extends _{reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=ne
81w Point(0,0),this.points=[],this.angles=[]}isEnd(){const{i:He,commands:tn}=this;return He>=tn.length-1}next(){const He=this.commands[++this.i];return this.previousCommand=this.command,this.command=He,He}getPoint(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";const nn=new Point(this.command[He],this.command[tn]);return this.makeAbsolute(nn)}getAsControlPoint(He,tn){const nn=this.getPoint(He,tn);return this.control=nn,nn}getAsCurrentPoint(He,tn){const nn=this.getPoint(He,tn);return this.current=nn,nn}getReflectedControlPoint(){const He=this.previousCommand.type;if(He!==_.CURVE_TO&&He!==_.SMOOTH_CURVE_TO&&He!==_.QUAD_TO&&He!==_.SMOOTH_QUAD_TO)return this.current;const{current:{x:tn,y:nn},control:{x:an,y:rn}}=this;return new Point(2*tn-an,2*nn-rn)}makeAbsolute(He){if(this.command.relative){const{x:tn,y:nn}=this.current;He.x+=tn,He.y+=nn}return He}addMarker(He,tn,nn){const{points:an,angles:rn}=this;nn&&rn.length>0&&!rn[rn.length-1]&&(rn[rn.length-1]=an[an.length-1].angleTo(nn)),this.addMarkerAngle(He,tn?tn.angleTo(He):null)}addMarkerAngle(He,tn){this.points.push(He),this.angles.push(tn)}getMarkerPoints(){return this.points}getMarkerAngles(){const{angles:He}=this,tn=He.length;for(let nn=0;nn<tn;nn++)if(!He[nn]){for(let an=nn+1;an<tn;an++)if(He[an]){He[nn]=He[an];break}}return He}constructor(He){super(He.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=new Point(0,0),this.start=new Point(0,0),this.current=new Point(0,0),this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}}class PathElement extends RenderedElement{path(He){const{pathParser:tn}=this,nn=new BoundingBox;for(tn.reset(),He&&He.beginPath();!tn.isEnd();)switch(tn.next().type){case PathParser.MOVE_TO:this.pathM(He,nn);break;case PathParser.LINE_TO:this.pathL(He,nn);break;case PathParser.HORIZ_LINE_TO:this.pathH(He,nn);break;case PathParser.VERT_LINE_TO:this.pathV(He,nn);break;case PathParser.CURVE_TO:this.pathC(He,nn);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(He,nn);break;case PathParser.QUAD_TO:this.pathQ(He,nn);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(He,nn);break;case PathParser.ARC:this.pathA(He,nn);break;case PathParser.CLOSE_PATH:this.pathZ(He,nn);break}return nn}getBoundingBox(He){return this.path()}getMarkers(){const{pathParser:He}=this,tn=He.getMarkerPoints(),nn=He.getMarkerAngles();return tn.map((rn,on)=>[rn,nn[on]])}renderChildren(He){this.path(He),this.document.screen.mouse.checkPath(this,He);const tn=this.getStyle("fill-rule");He.fillStyle!==""&&(tn.getString("inherit")!=="inherit"?He.fill(tn.getString()):He.fill()),He.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(He.save(),He.setTransform(1,0,0,1,0,0),He.stroke(),He.restore()):He.stroke());const nn=this.getMarkers();if(nn){const an=nn.length-1,rn=this.getStyle("marker-start"),on=this.getStyle("marker-mid"),sn=this.getStyle("marker-end");if(rn.isUrlDefinition()){const dn=rn.getDefinition(),[hn,mn]=nn[0];dn.render(He,hn,mn)}if(on.isUrlDefinition()){const dn=on.getDefinition();for(let hn=1;hn<an;hn++){const[mn,gn]=nn[hn];dn.render(He,mn,gn)}}if(sn.isUrlDefinition()){const dn=sn.getDefinition(),[hn,mn]=nn[an];dn.render(He,hn,mn)}}}static pathM(He){const tn=He.getAsCurrentPoint();return He.start=He.current,{point:tn}}pathM(He,tn){const{pathParser:nn}=this,{point:an}=PathElement.pathM(nn),{x:rn,y:on}=an;nn.addMarker(an),tn.addPoint(rn,on),He&&He.moveTo(rn,on)}static pathL(He){const{current:tn}=He,nn=He.getAsCurrentPoint();return{current:tn,point:nn}}pathL(He,tn){const{pathParser:nn}=this,{current:an,point:rn}=PathElement.pathL(nn),{x:on,y:sn}=rn;nn.addMarker(rn,an),tn.addPoint(on,sn),He&&He.lineTo(on,sn)}static pathH(He){const{current:tn,command:nn}=He,an=new Point((nn.relative?tn.x:0)+nn.x,tn.y);return He.current=an,{current:tn,point:an}}pathH(He,tn){const{pathParser:nn}=this,{current:an,point:rn}=PathElement.pathH(nn),{x:on,y:sn}=rn;nn.addMarker(rn,an),tn.addPoint(on,sn),He&&He.lineTo(on,sn)}static pathV(He){const{current:tn,command:nn}=He,an=new Point(tn.x,(nn.relative?tn.y:0)+nn.y);return He.current=an,{current:tn,point:an}}pathV(He,tn){const{pathParser:nn}=this,{current:an,point:rn}=PathElement.pathV(nn),{x:on,y:sn}=rn;nn.addMarker(rn,an),tn.addPoint(on,sn),He&&He.lineTo(on,sn)}static pathC(He){const{current:tn}=He,nn=He.getPoint("x1","y1"),an=He.getAsControlPoint("x2","y2"),rn=He.getAsCurrentPoint();return{current:tn,point:nn,controlPoint:an,currentPoint:rn}}pathC(He,tn){const{pathParser:nn}=this,{current:an,point:rn,controlPoint:on,currentPoint:sn}=PathElement.pathC(nn);nn.addMarker(sn,on,rn),tn.addBezierCurve(an.x,an.y,rn.x,rn.y,on.x,on.y,sn.x,sn.y),He&&He.bezierCurveTo(rn.x,rn.y,on.x,on.y,sn.x,sn.y)}static pathS(He){const{current:tn}=He,nn=He.getReflectedControlPoint(),an=He.getAsControlPoint("x2","y2"),rn=He.getAsCurrentPoint();return{current:tn,point:nn,controlPoint:an,currentPoint:rn}}pathS(He,tn){const{pathParser:nn}=this,{current:an,point:rn,controlPoint:on,currentPoint:sn}=PathElement.pathS(nn);nn.addMarker(sn,on,rn),tn.addBezierCurve(an.x,an.y,rn.x,rn.y,on.x,on.y,sn.x,sn.y),He&&He.bezierCurveTo(rn.x,rn.y,on.x,on.y,sn.x,sn.y)}static pathQ(He){const{current:tn}=He,nn=He.getAsControlPoint("x1","y1"),an=He.getAsCurrentPoint();return{current:tn,controlPoint:nn,currentPoint:an}}pathQ(He,tn){const{pathParser:nn}=this,{current:an,controlPoint:rn,currentPoint:on}=PathElement.pathQ(nn);nn.addMarker(on,rn,rn),tn.addQuadraticCurve(an.x,an.y,rn.x,rn.y,on.x,on.y),He&&He.quadraticCurveTo(rn.x,rn.y,on.x,on.y)}static pathT(He){const{current:tn}=He,nn=He.getReflectedControlPoint();He.control=nn;const an=He.getAsCurrentPoint();return{current:tn,controlPoint:nn,currentPoint:an}}pathT(He,tn){const{pathParser:nn}=this,{current:an,controlPoint:rn,currentPoint:on}=PathElement.pathT(nn);nn.addMarker(on,rn,rn),tn.addQuadraticCurve(an.x,an.y,rn.x,rn.y,on.x,on.y),He&&He.quadraticCurveTo(rn.x,rn.y,on.x,on.y)}static pathA(He){const{current:tn,command:nn}=He;let{rX:an,rY:rn,xRot:on,lArcFlag:sn,sweepFlag:dn}=nn;const hn=on*(Math.PI/180),mn=He.getAsCurrentPoint(),gn=new Point(Math.cos(hn)*(tn.x-mn.x)/2+Math.sin(hn)*(tn.y-mn.y)/2,-Math.sin(hn)*(tn.x-mn.x)/2+Math.cos(hn)*(tn.y-mn.y)/2),yn=Math.pow(gn.x,2)/Math.pow(an,2)+Math.pow(gn.y,2)/Math.pow(rn,2);yn>1&&(an*=Math.sqrt(yn),rn*=Math.sqrt(yn));let fn=(sn===dn?-1:1)*Math.sqrt((Math.pow(an,2)*Math.pow(rn,2)-Math.pow(an,2)*Math.pow(gn.y,2)-Math.pow(rn,2)*Math.pow(gn.x,2))/(Math.pow(an,2)*Math.pow(gn.y,2)+Math.pow(rn,2)*Math.pow(gn.x,2)));isNaN(fn)&&(fn=0);const bn=new Point(fn*an*gn.y/rn,fn*-rn*gn.x/an),Mn=new Point((tn.x+mn.x)/2+Math.cos(hn)*bn.x-Math.sin(hn)*bn.y,(tn.y+mn.y)/2+Math.sin(hn)*bn.x+Math.cos(hn)*bn.y),Tn=vectorsAngle([1,0],[(gn.x-bn.x)/an,(gn.y-bn.y)/rn]),xn=[(gn.x-bn.x)/an,(gn.y-bn.y)/rn],En=[(-gn.x-bn.x)/an,(-gn.y-bn.y)/rn];let Rn=vectorsAngle(xn,En);return vectorsRatio(xn,En)<=-1&&(Rn=Math.PI),vectorsRatio(xn,En)>=1&&(Rn=0),{currentPoint:mn,rX:an,rY:rn,sweepFlag:dn,xAxisRotation:hn,centp:Mn,a1:Tn,ad:Rn}}pathA(He,tn){const{pathParser:nn}=this,{currentPoint:an,rX:rn,rY:on,sweepFlag:sn,xAxisRotation:dn,
81centp:hn,a1:mn,ad:gn}=PathElement.pathA(nn),yn=1-sn?1:-1,fn=mn+yn*(gn/2),bn=new Point(hn.x+rn*Math.cos(fn),hn.y+on*Math.sin(fn));if(nn.addMarkerAngle(bn,fn-yn*Math.PI/2),nn.addMarkerAngle(an,fn-yn*Math.PI),tn.addPoint(an.x,an.y),He&&!isNaN(mn)&&!isNaN(gn)){const Mn=rn>on?rn:on,Tn=rn>on?1:rn/on,xn=rn>on?on/rn:1;He.translate(hn.x,hn.y),He.rotate(dn),He.scale(Tn,xn),He.arc(0,0,Mn,mn,mn+gn,!!(1-sn)),He.scale(1/Tn,1/xn),He.rotate(-dn),He.translate(-hn.x,-hn.y)}}static pathZ(He){He.current=He.start}pathZ(He,tn){PathElement.pathZ(this.pathParser),He&&tn.x1!==tn.x2&&tn.y1!==tn.y2&&He.closePath()}constructor(He,tn,nn){super(He,tn,nn),this.type="path",this.pathParser=new PathParser(this.getAttribute("d").getString())}}class SVGElement extends RenderedElement{setContext(He){var tn;const{document:nn}=this,{screen:an,window:rn}=nn,on=He.canvas;if(an.setDefaults(He),"style"in on&&typeof He.font<"u"&&rn&&typeof rn.getComputedStyle<"u"){He.font=rn.getComputedStyle(on).getPropertyValue("font");const En=new Property(nn,"fontSize",Font.parse(He.font).fontSize);En.hasValue()&&(nn.rootEmSize=En.getPixels("y"),nn.emSize=nn.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);let{width:sn,height:dn}=an.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");const hn=this.getAttribute("refX"),mn=this.getAttribute("refY"),gn=this.getAttribute("viewBox"),yn=gn.hasValue()?toNumbers(gn.getString()):null,fn=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible";let bn=0,Mn=0,Tn=0,xn=0;yn&&(bn=yn[0],Mn=yn[1]),this.root||(sn=this.getStyle("width").getPixels("x"),dn=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Tn=bn,xn=Mn,bn=0,Mn=0)),an.viewPort.setCurrent(sn,dn),this.node&&(!this.parent||((tn=this.node.parentNode)===null||tn===void 0?void 0:tn.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(He),He.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),yn&&(sn=yn[2],dn=yn[3]),nn.setViewBox({ctx:He,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:an.viewPort.width,desiredWidth:sn,height:an.viewPort.height,desiredHeight:dn,minX:bn,minY:Mn,refX:hn.getValue(),refY:mn.getValue(),clip:fn,clipX:Tn,clipY:xn}),yn&&(an.viewPort.removeCurrent(),an.viewPort.setCurrent(sn,dn))}clearContext(He){super.clearContext(He),this.document.screen.viewPort.removeCurrent()}resize(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const an=this.getAttribute("width",!0),rn=this.getAttribute("height",!0),on=this.getAttribute("viewBox"),sn=this.getAttribute("style"),dn=an.getNumber(0),hn=rn.getNumber(0);if(nn)if(typeof nn=="string")this.getAttribute("preserveAspectRatio",!0).setValue(nn);else{const mn=this.getAttribute("preserveAspectRatio");mn.hasValue()&&mn.setValue(mn.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(an.setValue(He),rn.setValue(tn),on.hasValue()||on.setValue("0 0 ".concat(dn||He," ").concat(hn||tn)),sn.hasValue()){const mn=this.getStyle("width"),gn=this.getStyle("height");mn.hasValue()&&mn.setValue("".concat(He,"px")),gn.hasValue()&&gn.setValue("".concat(tn,"px"))}}constructor(...He){super(...He),this.type="svg",this.root=!1}}class RectElement extends PathElement{path(He){const tn=this.getAttribute("x").getPixels("x"),nn=this.getAttribute("y").getPixels("y"),an=this.getStyle("width",!1,!0).getPixels("x"),rn=this.getStyle("height",!1,!0).getPixels("y"),on=this.getAttribute("rx"),sn=this.getAttribute("ry");let dn=on.getPixels("x"),hn=sn.getPixels("y");if(on.hasValue()&&!sn.hasValue()&&(hn=dn),sn.hasValue()&&!on.hasValue()&&(dn=hn),dn=Math.min(dn,an/2),hn=Math.min(hn,rn/2),He){const mn=4*((Math.sqrt(2)-1)/3);He.beginPath(),rn>0&&an>0&&(He.moveTo(tn+dn,nn),He.lineTo(tn+an-dn,nn),He.bezierCurveTo(tn+an-dn+mn*dn,nn,tn+an,nn+hn-mn*hn,tn+an,nn+hn),He.lineTo(tn+an,nn+rn-hn),He.bezierCurveTo(tn+an,nn+rn-hn+mn*hn,tn+an-dn+mn*dn,nn+rn,tn+an-dn,nn+rn),He.lineTo(tn+dn,nn+rn),He.bezierCurveTo(tn+dn-mn*dn,nn+rn,tn,nn+rn-hn+mn*hn,tn,nn+rn-hn),He.lineTo(tn,nn+hn),He.bezierCurveTo(tn,nn+hn-mn*hn,tn+dn-mn*dn,nn,tn+dn,nn),He.closePath())}return new BoundingBox(tn,nn,tn+an,nn+rn)}getMarkers(){return null}constructor(...He){super(...He),this.type="rect"}}class CircleElement extends PathElement{path(He){const tn=this.getAttribute("cx").getPixels("x"),nn=this.getAttribute("cy").getPixels("y"),an=this.getAttribute("r").getPixels();return He&&an>0&&(He.beginPath(),He.arc(tn,nn,an,0,Math.PI*2,!1),He.closePath()),new BoundingBox(tn-an,nn-an,tn+an,nn+an)}getMarkers(){return null}constructor(...He){super(...He),this.type="circle"}}class EllipseElement extends PathElement{path(He){const tn=4*((Math.sqrt(2)-1)/3),nn=this.getAttribute("rx").getPixels("x"),an=this.getAttribute("ry").getPixels("y"),rn=this.getAttribute("cx").getPixels("x"),on=this.getAttribute("cy").getPixels("y");return He&&nn>0&&an>0&&(He.beginPath(),He.moveTo(rn+nn,on),He.bezierCurveTo(rn+nn,on+tn*an,rn+tn*nn,on+an,rn,on+an),He.bezierCurveTo(rn-tn*nn,on+an,rn-nn,on+tn*an,rn-nn,on),He.bezierCurveTo(rn-nn,on-tn*an,rn-tn*nn,on-an,rn,on-an),He.bezierCurveTo(rn+tn*nn,on-an,rn+nn,on-tn*an,rn+nn,on),He.closePath()),new BoundingBox(rn-nn,on-an,rn+nn,on+an)}getMarkers(){return null}constructor(...He){super(...He),this.type="ellipse"}}class LineElement extends PathElement{getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(He){const[{x:tn,y:nn},{x:an,y:rn}]=this.getPoints();return He&&(He.beginPath(),He.moveTo(tn,nn),He.lineTo(an,rn)),new BoundingBox(tn,nn,an,rn)}getMarkers(){const[He,tn]=this.getPoints(),nn=He.angleTo(tn);return[[He,nn],[tn,nn]]}constructor(...He){super(...He),this.type="line"}}class PolylineElement extends PathElement{path(He){const{points:tn}=this,[{x:nn,y:an}]=tn,rn=new BoundingBox(nn,an);
81return He&&(He.beginPath(),He.moveTo(nn,an)),tn.forEach(on=>{let{x:sn,y:dn}=on;rn.addPoint(sn,dn),He&&He.lineTo(sn,dn)}),rn}getMarkers(){const{points:He}=this,tn=He.length-1,nn=[];return He.forEach((an,rn)=>{rn!==tn&&nn.push([an,an.angleTo(He[rn+1])])}),nn.length>0&&nn.push([He[He.length-1],nn[nn.length-1][1]]),nn}constructor(He,tn,nn){super(He,tn,nn),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}}class PolygonElement extends PolylineElement{path(He){const tn=super.path(He),[{x:nn,y:an}]=this.points;return He&&(He.lineTo(nn,an),He.closePath()),tn}constructor(...He){super(...He),this.type="polygon"}}class PatternElement extends Element$1{createPattern(He,tn,nn){const an=this.getStyle("width").getPixels("x",!0),rn=this.getStyle("height").getPixels("y",!0),on=new SVGElement(this.document,null);on.attributes.set("viewBox",new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue())),on.attributes.set("width",new Property(this.document,"width","".concat(an,"px"))),on.attributes.set("height",new Property(this.document,"height","".concat(rn,"px"))),on.attributes.set("transform",new Property(this.document,"transform",this.getAttribute("patternTransform").getValue())),on.children=this.children;const sn=this.document.createCanvas(an,rn),dn=sn.getContext("2d"),hn=this.getAttribute("x"),mn=this.getAttribute("y");hn.hasValue()&&mn.hasValue()&&dn.translate(hn.getPixels("x",!0),mn.getPixels("y",!0)),nn.hasValue()?this.styles.set("fill-opacity",nn):this.styles.delete("fill-opacity");for(let yn=-1;yn<=1;yn++)for(let fn=-1;fn<=1;fn++)dn.save(),on.attributes.set("x",new Property(this.document,"x",yn*sn.width)),on.attributes.set("y",new Property(this.document,"y",fn*sn.height)),on.render(dn),dn.restore(
81);return He.createPattern(sn,"repeat")}constructor(...He){super(...He),this.type="pattern"}}class MarkerElement extends Element$1{render(He,tn,nn){if(!tn)return;const{x:an,y:rn}=tn,on=this.getAttribute("orient").getString("auto"),sn=this.getAttribute("markerUnits").getString("strokeWidth");He.translate(an,rn),on==="auto"&&He.rotate(nn),sn==="strokeWidth"&&He.scale(He.lineWidth,He.lineWidth),He.save();const dn=new SVGElement(this.document);dn.type=this.type,dn.attributes.set("viewBox",new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue())),dn.attributes.set("refX",new Property(this.document,"refX",this.getAttribute("refX").getValue())),dn.attributes.set("refY",new Property(this.document,"refY",this.getAttribute("refY").getValue())),dn.attributes.set("width",new Property(this.document,"width",this.getAttribute("markerWidth").getValue())),dn.attributes.set("height",new Property(this.document,"height",this.getAttribute("markerHeight").getValue())),dn.attributes.set("overflow",new Property(this.document,"overflow",this.getAttribute("overflow").getValue())),dn.attributes.set("fill",new Property(this.document,"fill",this.getAttribute("fill").getColor("black"))),dn.attributes.set("stroke",new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none"))),dn.children=this.children,dn.render(He),He.restore(),sn==="strokeWidth"&&He.scale(1/He.lineWidth,1/He.lineWidth),on==="auto"&&He.rotate(-nn),He.translate(-an,-rn)}constructor(...He){super(...He),this.type="marker"}}class DefsElement extends Element$1{render(){}constructor(...He){super(...He),this.type="defs"}}class GElement extends RenderedElement{getBoundingBox(He){const tn=new BoundingBox;return this.children.forEach(nn=>{tn.addBoundingBox(nn.getBoundingBox(He))}),tn}constructor(...He){super(...He),this.type="g"}}class GradientElement extends Element$1{getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(He,tn,nn){let an=this;this.getHrefAttribute().hasValue()&&(an=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(an));const{stops:rn}=an,on=this.getGradient(He,tn);if(!on)return this.addParentOpacity(nn,rn[rn.length-1].color);if(rn.forEach(sn=>{on.addColorStop(sn.offset,this.addParentOpacity(nn,sn.color))}),this.getAttribute("gradientTransform").hasValue()){const{document:sn}=this,{MAX_VIRTUAL_PIXELS:dn}=Screen,{viewPort:hn}=sn.screen,mn=hn.getRoot(),gn=new RectElement(sn);gn.attributes.set("x",new Property(sn,"x",-dn/3)),gn.attributes.set("y",new Property(sn,"y",-dn/3)),gn.attributes.set("width",new Property(sn,"width",dn)),gn.attributes.set("height",new Property(sn,"height",dn));const yn=new GElement(sn);yn.attributes.set("transform",new Property(sn,"transform",this.getAttribute("gradientTransform").getValue())),yn.children=[gn];const fn=new SVGElement(sn);fn.attributes.set("x",new Property(sn,"x",0)),fn.attributes.set("y",new Property(sn,"y",0)),fn.attributes.set("width",new Property(sn,"width",mn.width)),fn.attributes.set("height",new Property(sn,"height",mn.height)),fn.children=[yn];const bn=sn.createCanvas(mn.width,mn.height),Mn=bn.getContext("2d");return Mn.fillStyle=on,fn.render(Mn),Mn.createPattern(bn,"no-repeat")}return on}inheritStopContainer(He){this.attributesToInherit.forEach(tn=>{!this.getAttribute(tn).hasValue()&&He.getAttribute(tn).hasValue()&&this.getAttribute(tn,!0).setValue(He.getAttribute(tn).getValue())})}addParentOpacity(He,tn){return He.hasValue()?new Property(this.document,"color",tn).addOpacity(He).getColor():tn}constructor(He,tn,nn){super(He,tn,nn),this.attributesToInherit=["gradientUnits"],this.stops=[];const{stops:an,children:rn}=this;rn.forEach(on=>{on.type==="stop"&&an.push(on)})}}class LinearGradientElement extends GradientElement{getGradient(He,tn){const nn=this.getGradientUnits()==="objectBoundingBox",an=nn?tn.getBoundingBox(He):null;if(nn&&!an)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));const rn=nn?an.x+an.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),on=nn?an.y+an.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),sn=nn?an.x+an.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),dn=nn?an.y+an.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return rn===sn&&on===dn?null:He.createLinearGradient(rn,on,sn,dn)}
81constructor(He,tn,nn){super(He,tn,nn),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}}class RadialGradientElement extends GradientElement{getGradient(He,tn){const nn=this.getGradientUnits()==="objectBoundingBox",an=tn.getBoundingBox(He);if(nn&&!an)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");const rn=nn?an.x+an.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),on=nn?an.y+an.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y");let sn=rn,dn=on;this.getAttribute("fx").hasValue()&&(sn=nn?an.x+an.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(dn=nn?an.y+an.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));const hn=nn?(an.width+an.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),mn=this.getAttribute("fr").getPixels();return He.createRadialGradient(sn,dn,mn,rn,on,hn)}constructor(He,tn,nn){super(He,tn,nn),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}}class StopElement extends Element$1{constructor(He,tn,nn){super(He,tn,nn),this.type="stop";const an=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),rn=this.getStyle("stop-opacity");let on=this.getStyle("stop-color",!0);on.getString()===""&&on.setValue("#000"),rn.hasValue()&&(on=on.addOpacity(rn)),this.offset=an,this.color=on.getColor()}}class AnimateElement extends Element$1{getProperty(){const He=this.getAttribute("attributeType").getString(),tn=this.getAttribute("attributeName").getString();return He==="CSS"?this.parent.getStyle(tn,!0):this.parent.getAttribute(tn,!0)}calcValue(){const{initialUnits:He}=this,{progress:tn,from:nn,to:an}=this.getProgress();let rn=nn.getNumber()+(an.getNumber()-nn.getNumber())*tn;return He==="%"&&(rn*=100),"".concat(rn).concat(He)}update(He){const{parent:tn}=this,nn=this.getProperty();if(this.initialValue||(this.initialValue=nn.getString(),this.initialUnits=nn.getUnits()),this.duration>this.maxDuration){const rn=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(rn==="freeze"&&!this.frozen)this.frozen=!0,tn&&nn&&(tn.animationFrozen=!0,tn.animationFrozenValue=nn.getString());else if(rn==="remove"&&!this.removed)return this.removed=!0,tn&&nn&&nn.setValue(tn.animationFrozen?tn.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=He;let an=!1;if(this.begin<this.duration){let rn=this.calcValue();const on=this.getAttribute("type");if(on.hasValue()){const sn=on.getString();rn="".concat(sn,"(").concat(rn,")")}nn.setValue(rn),an=!0}return an}getProgress(){const{document:He,values:tn}=this;let nn=(this.duration-this.begin)/(this.maxDuration-this.begin),an,rn;if(tn.hasValue()){const on=nn*(tn.getValue().length-1),sn=Math.floor(on),dn=Math.ceil(on);let hn;hn=tn.getValue()[sn],an=new Property(He,"from",hn?parseFloat(hn):0),hn=tn.getValue()[dn],rn=new Property(He,"to",hn?parseFloat(hn):0),nn=(on-sn)/(dn-sn)}else an=this.from,rn=this.to;return{progress:nn,from:an,to:rn}}constructor(He,tn,nn){super(He,tn,nn),this.type="animate",this.duration=0,this.initialUnits="",this.removed=!1,this.frozen=!1,He.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Property(He,"values",null);const an=this.getAttribute("values");an.hasValue()&&this.values.setValue(an.getString().split(";"))}}class AnimateColorElement extends AnimateElement{calcValue(){const{progress:He,from:tn,to:nn}=this.getProgress(),an=new RGBColor$1(tn.getColor()),rn=new RGBColor$1(nn.getColor());if(an.ok&&rn.ok){const on=an.r+(rn.r-an.r)*He,sn=an.g+(rn.g-an.g)*He,dn=an.b+(rn.b-an.b)*He;return"rgb(".concat(Math.floor(on),", ").concat(Math.floor(sn),", ").concat(Math.floor(dn),")")}return this.getAttribute("from").getColor()}constructor(...He){super(...He),this.type="animateColor"}}class AnimateTransformElement extends AnimateElement{calcValue(){const{progress:He,from:tn,to:nn}=this.getProgress(),an=toNumbers(tn.getString()),rn=toNumbers(nn.getString());return an.map((sn,dn)=>{const hn=rn[dn];return sn+(hn-sn)*He}).join(" ")}constructor(...He){super(...He),this.type="animateTransform"}}
81class FontFaceElement extends Element$1{constructor(He,tn,nn){super(He,tn,nn),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class GlyphElement extends PathElement{constructor(He,tn,nn){super(He,tn,nn),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class MissingGlyphElement extends GlyphElement{constructor(...He){super(...He),this.type="missing-glyph",this.horizAdvX=0}}class FontElement extends Element$1{render(){}constructor(He,tn,nn){super(He,tn,nn),this.type="font",this.isArabic=!1,this.glyphs=new Map,this.arabicGlyphs=new Map,this.isRTL=!1,this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();const{definitions:an}=He,{children:rn}=this;for(const on of rn)if(on instanceof FontFaceElement){this.fontFace=on;const sn=on.getStyle("font-family");sn.hasValue()&&an.set(sn.getString(),this)}else if(on instanceof MissingGlyphElement)this.missingGlyph=on;else if(on instanceof GlyphElement)if(on.arabicForm){this.isRTL=!0,this.isArabic=!0;let sn=this.arabicGlyphs.get(on.unicode);typeof sn>"u"&&(sn=new Map,this.arabicGlyphs.set(on.unicode,sn)),sn.set(on.arabicForm,on)}else this.glyphs.set(on.unicode,on)}}class TRefElement extends TextElement{getText(){const He=this.getHrefAttribute().getDefinition();if(He){const tn=He.children[0];if(tn)return tn.getText()}return""}constructor(...He){super(...He),this.type="tref"}}class AElement extends TextElement{getText(){return this.text}renderChildren(He){if(this.hasText){super.renderChildren(He);const{document:tn,x:nn,y:an}=this,{mouse:rn}=tn.screen,on=new Property(tn,"fontSize",Font.parse(tn.ctx.font).fontSize);rn.isWorking()&&rn.checkBoundingBox(this,new BoundingBox(nn,an-on.getPixels("y"),nn+this.measureText(He),an))}else if(this.children.length>0){const tn=new GElement(this.document);tn.children=this.children,tn.parent=this,tn.render(He)}}onClick(){const{window:He}=this.document;He&&He.open(this.getHrefAttribute().getString())}onMouseMove(){const He=this.document.ctx;He.canvas.style.cursor="pointer"}constructor(He,tn,nn){super(He,tn,nn),this.type="a";const{childNodes:an}=tn,rn=an[0],on=an.length>0&&Array.from(an).every(sn=>sn.nodeType===3);this.hasText=on,this.text=on?this.getTextFromNode(rn):""}}class TextPathElement extends TextElement{getText(){return this.text}path(He){const{dataArray:tn}=this;He&&He.beginPath(),tn.forEach(nn=>{let{type:an,points:rn}=nn;switch(an){case PathParser.LINE_TO:He&&He.lineTo(rn[0],rn[1]);break;case PathParser.MOVE_TO:He&&He.moveTo(rn[0],rn[1]);break;case PathParser.CURVE_TO:He&&He.bezierCurveTo(rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]);break;case PathParser.QUAD_TO:He&&He.quadraticCurveTo(rn[0],rn[1],rn[2],rn[3]);break;case PathParser.ARC:{const[on,sn,dn,hn,mn,gn,yn,fn]=rn,bn=dn>hn?dn:hn,Mn=dn>hn?1:dn/hn,Tn=dn>hn?hn/dn:1;He&&(He.translate(on,sn),He.rotate(yn),He.scale(Mn,Tn),He.arc(0,0,bn,mn,mn+gn,!!(1-fn)),He.scale(1/Mn,1/Tn),He.rotate(-yn),He.translate(-on,-sn));break}case PathParser.CLOSE_PATH:He&&He.closePath();break}})}renderChildren(He){this.setTextData(He),He.save();const tn=this.parent.getStyle("text-decoration").getString(),nn=this.getFontSize(),{glyphInfo:an}=this,rn=He.fillStyle;tn==="underline"&&He.beginPath(),an.forEach((on,sn)=>{const{p0:dn,p1:hn,rotation:mn,text:gn}=on;He.save(),He.translate(dn.x,dn.y),He.rotate(mn),He.fillStyle&&He.fillText(gn,0,0),He.strokeStyle&&He.strokeText(gn,0,0),He.restore(),tn==="underline"&&(sn===0&&He.moveTo(dn.x,dn.y+nn/8),He.lineTo(hn.x,hn.y+nn/5))}),tn==="underline"&&(He.lineWidth=nn/20,He.strokeStyle=rn,He.stroke(),He.closePath()),He.restore()}getLetterSpacingAt(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[He]||0}findSegmentToFitChar(He,tn,nn,an,rn,on,sn,dn,hn){let mn=on,gn=this.measureText(He,dn);dn===" "&&tn==="justify"&&nn<an&&(gn+=(an-nn)/rn),hn>-1&&(mn+=this.getLetterSpacingAt(hn));const yn=this.textHeight/20,fn=this.getEquidistantPointOnPath(mn,yn,0),bn=this.getEquidistantPointOnPath(mn+gn,yn,0),Mn={p0:fn,p1:bn},Tn=fn&&bn?Math.atan2(bn.y-fn.y,bn.x-fn.x):0;if(sn){const xn=Math.cos(Math.PI/2+Tn)*sn,En=Math.cos(-Tn)*sn;Mn.p0={...fn,x:fn.x+xn,y:fn.y+En},Mn.p1={...bn,x:bn.x+xn,y:bn.y+En}}return mn+=gn,{offset:mn,segment:Mn,rotation:Tn}}measureText(He,tn){const{measuresCache:nn}=this,an=tn||this.getText();if(nn.has(an))return nn.get(an);const rn=this.measureTargetText(He,an);
81return nn.set(an,rn),rn}setTextData(He){if(this.glyphInfo)return;const tn=this.getText(),nn=tn.split(""),an=tn.split(" ").length-1,rn=this.parent.getAttribute("dx").split().map(Rn=>Rn.getPixels("x")),on=this.parent.getAttribute("dy").getPixels("y"),sn=this.parent.getStyle("text-anchor").getString("start"),dn=this.getStyle("letter-spacing"),hn=this.parent.getStyle("letter-spacing");let mn=0;!dn.hasValue()||dn.getValue()==="inherit"?mn=hn.getPixels():dn.hasValue()&&dn.getValue()!=="initial"&&dn.getValue()!=="unset"&&(mn=dn.getPixels());const gn=[],yn=tn.length;this.letterSpacingCache=gn;for(let Rn=0;Rn<yn;Rn++)gn.push(typeof rn[Rn]<"u"?rn[Rn]:mn);const fn=gn.reduce((Rn,ni,mi)=>mi===0?0:Rn+ni||0,0),bn=this.measureText(He),Mn=Math.max(bn+fn,0);this.textWidth=bn,this.textHeight=this.getFontSize(),this.glyphInfo=[];const Tn=this.getPathLength(),xn=this.getStyle("startOffset").getNumber(0)*Tn;let En=0;(sn==="middle"||sn==="center")&&(En=-Mn/2),(sn==="end"||sn==="right")&&(En=-Mn),En+=xn,nn.forEach((Rn,ni)=>{const{offset:mi,segment:bi,rotation:_i}=this.findSegmentToFitChar(He,sn,Mn,Tn,an,En,on,Rn,ni);En=mi,!(!bi.p0||!bi.p1)&&this.glyphInfo.push({text:nn[ni],p0:bi.p0,p1:bi.p1,rotation:_i})})}parsePathData(He){if(this.pathLength=-1,!He)return[];const tn=[],{pathParser:nn}=He;for(nn.reset();!nn.isEnd();){const{current:an}=nn,rn=an?an.x:0,on=an?an.y:0,sn=nn.next();let dn=sn.type,hn=[];switch(sn.type){case PathParser.MOVE_TO:this.pathM(nn,hn);break;case PathParser.LINE_TO:dn=this.pathL(nn,hn);break;case PathParser.HORIZ_LINE_TO:dn=this.pathH(nn,hn);break;case PathParser.VERT_LINE_TO:dn=this.pathV(nn,hn);break;case PathParser.CURVE_TO:this.pathC(nn,hn);break;case PathParser.SMOOTH_CURVE_TO:dn=this.pathS(nn,hn);break;case PathParser.QUAD_TO:this.pathQ(nn,hn);break;case PathParser.SMOOTH_QUAD_TO:dn=this.pathT(nn,hn);break;case PathParser.ARC:hn=this.pathA(nn);break;case PathParser.CLOSE_PATH:PathElement.pathZ(nn);break}sn.type!==PathParser.CLOSE_PATH?tn.push({type:dn,points:hn,start:{x:rn,y:on},pathLength:this.calcLength(rn,on,dn,hn)}):tn.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return tn}pathM(He,tn){const{x:nn,y:an}=PathElement.pathM(He).point;tn.push(nn,an)}pathL(He,tn){const{x:nn,y:an}=PathElement.pathL(He).point;return tn.push(nn,an),PathParser.LINE_TO}pathH(He,tn){const{x:nn,y:an}=PathElement.pathH(He).point;return tn.push(nn,an),PathParser.LINE_TO}pathV(He,tn){const{x:nn,y:an}=PathElement.pathV(He).point;return tn.push(nn,an),PathParser.LINE_TO}pathC(He,tn){const{point:nn,controlPoint:an,currentPoint:rn}=PathElement.pathC(He);tn.push(nn.x,nn.y,an.x,an.y,rn.x,rn.y)}pathS(He,tn){const{point:nn,controlPoint:an,currentPoint:rn}=PathElement.pathS(He);return tn.push(nn.x,nn.y,an.x,an.y,rn.x,rn.y),PathParser.CURVE_TO}pathQ(He,tn){const{controlPoint:nn,currentPoint:an}=PathElement.pathQ(He);tn.push(nn.x,nn.y,an.x,an.y)}pathT(He,tn){const{controlPoint:nn,currentPoint:an}=PathElement.pathT(He);return tn.push(nn.x,nn.y,an.x,an.y),PathParser.QUAD_TO}pathA(He){let{rX:tn,rY:nn,sweepFlag:an,xAxisRotation:rn,centp:on,a1:sn,ad:dn}=PathElement.pathA(He);return an===0&&dn>0&&(dn-=2*Math.PI),an===1&&dn<0&&(dn+=2*Math.PI),[on.x,on.y,tn,nn,sn,dn,rn,an]}calcLength(He,tn,nn,an){let rn=0,on=null,sn=null,dn=0;switch(nn){case PathParser.LINE_TO:return this.getLineLength(He,tn,an[0],an[1]);case PathParser.CURVE_TO:for(rn=0,on=this.getPointOnCubicBezier(0,He,tn,an[0],an[1],an[2],an[3],an[4],an[5]),dn=.01;dn<=1;dn+=.01)sn=this.getPointOnCubicBezier(dn,He,tn,an[0],an[1],an[2],an[3],an[4],an[5]),rn+=this.getLineLength(on.x,on.y,sn.x,sn.y),on=sn;return rn;case PathParser.QUAD_TO:for(rn=0,on=this.getPointOnQuadraticBezier(0,He,tn,an[0],an[1],an[2],an[3]),dn=.01;dn<=1;dn+=.01)sn=this.getPointOnQuadraticBezier(dn,He,tn,an[0],an[1],an[2],an[3]),rn+=this.getLineLength(on.x,on.y,sn.x,sn.y),on=sn;return rn;case PathParser.ARC:{rn=0;const hn=an[4],mn=an[5],gn=an[4]+mn;let yn=Math.PI/180;if(Math.abs(hn-gn)<yn&&(yn=Math.abs(hn-gn)),on=this.getPointOnEllipticalArc(an[0],an[1],an[2],an[3],hn,0),mn<0)for(dn=hn-yn;dn>gn;dn-=yn)sn=this.getPointOnEllipticalArc(an[0],an[1],an[2],an[3],dn,0),r
81n+=this.getLineLength(on.x,on.y,sn.x,sn.y),on=sn;else for(dn=hn+yn;dn<gn;dn+=yn)sn=this.getPointOnEllipticalArc(an[0],an[1],an[2],an[3],dn,0),rn+=this.getLineLength(on.x,on.y,sn.x,sn.y),on=sn;return sn=this.getPointOnEllipticalArc(an[0],an[1],an[2],an[3],gn,0),rn+=this.getLineLength(on.x,on.y,sn.x,sn.y),rn}}return 0}getPointOnLine(He,tn,nn,an,rn){let on=arguments.length>5&&arguments[5]!==void 0?arguments[5]:tn,sn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:nn;const dn=(rn-nn)/(an-tn+PSEUDO_ZERO);let hn=Math.sqrt(He*He/(1+dn*dn));an<tn&&(hn*=-1);let mn=dn*hn,gn=null;if(an===tn)gn={x:on,y:sn+mn};else if((sn-nn)/(on-tn+PSEUDO_ZERO)===dn)gn={x:on+hn,y:sn+mn};else{let yn=0,fn=0;const bn=this.getLineLength(tn,nn,an,rn);if(bn<PSEUDO_ZERO)return null;let Mn=(on-tn)*(an-tn)+(sn-nn)*(rn-nn);Mn/=bn*bn,yn=tn+Mn*(an-tn),fn=nn+Mn*(rn-nn);const Tn=this.getLineLength(on,sn,yn,fn),xn=Math.sqrt(He*He-Tn*Tn);hn=Math.sqrt(xn*xn/(1+dn*dn)),an<tn&&(hn*=-1),mn=dn*hn,gn={x:yn+hn,y:fn+mn}}return gn}getPointOnPath(He){const tn=this.getPathLength();let nn=0,an=null;if(He<-5e-5||He-5e-5>tn)return null;const{dataArray:rn}=this;for(const on of rn){if(on&&(on.pathLength<5e-5||nn+on.pathLength+5e-5<He)){nn+=on.pathLength;continue}const sn=He-nn;let dn=0;switch(on.type){case PathParser.LINE_TO:an=this.getPointOnLine(sn,on.start.x,on.start.y,on.points[0],on.points[1],on.start.x,on.start.y);break;case PathParser.ARC:{const hn=on.points[4],mn=on.points[5],gn=on.points[4]+mn;if(dn=hn+sn/on.pathLength*mn,mn<0&&dn<gn||mn>=0&&dn>gn)break;an=this.getPointOnEllipticalArc(on.points[0],on.points[1],on.points[2],on.points[3],dn,on.points[6]);break}case PathParser.CURVE_TO:dn=sn/on.pathLength,dn>1&&(dn=1),an=this.getPointOnCubicBezier(dn,on.start.x,on.start.y,on.points[0],on.points[1],on.points[2],on.points[3],on.points[4],on.points[5]);break;case PathParser.QUAD_TO:dn=sn/on.pathLength,dn>1&&(dn=1),an=this.getPointOnQuadraticBezier(dn,on.start.x,on.start.y,on.points[0],on.points[1],on.points[2],on.points[3]);break}if(an)return an;break}return null}getLineLength(He,tn,nn,an){return Math.sqrt((nn-He)*(nn-He)+(an-tn)*(an-tn))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((He,tn)=>tn.pathLength>0?He+tn.pathLength:He,0)),this.pathLength}getPointOnCubicBezier(He,tn,nn,an,rn,on,sn,dn,hn){const mn=dn*CB1(He)+on*CB2(He)+an*CB3(He)+tn*CB4(He),gn=hn*CB1(He)+sn*CB2(He)+rn*CB3(He)+nn*CB4(He);return{x:mn,y:gn}}getPointOnQuadraticBezier(He,tn,nn,an,rn,on,sn){const dn=on*QB1(He)+an*QB2(He)+tn*QB3(He),hn=sn*QB1(He)+rn*QB2(He)+nn*QB3(He);return{x:dn,y:hn}}getPointOnEllipticalArc(He,tn,nn,an,rn,on){const sn=Math.cos(on),dn=Math.sin(on),hn={x:nn*Math.cos(rn),y:an*Math.sin(rn)};return{x:He+(hn.x*sn-hn.y*dn),y:tn+(hn.x*dn+hn.y*sn)}}buildEquidistantCache(He,tn){const nn=this.getPathLength(),an=tn||.25,rn=He||nn/100;if(!this.equidistantCache||this.equidistantCache.step!==rn||this.equidistantCache.precision!==an){this.equidistantCache={step:rn,precision:an,points:[]};let on=0;for(let sn=0;sn<=nn;sn+=an){const dn=this.getPointOnPath(sn),hn=this.getPointOnPath(sn+an);!dn||!hn||(on+=this.getLineLength(dn.x,dn.y,hn.x,hn.y),on>=rn&&(this.equidistantCache.points.push({x:dn.x,y:dn.y,distance:sn}),on-=rn))}}}getEquidistantPointOnPath(He,tn,nn){if(this.buildEquidistantCache(tn,nn),He<0||He-this.getPathLength()>5e-5)return null;const an=Math.round(He/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[an]||null}constructor(He,tn,nn){super(He,tn,nn),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);const an=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(an)}}const dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{async loadImage(He){try{const tn=await this.document.createImage(He);this.image=tn}catch(tn){console.error('Error while loading image "'.concat(He,'":'),tn)}this.loaded=!0}async loadSvg(He){const tn=dataUriRegex.exec(He);
81if(tn){const nn=tn[5];nn&&(tn[4]==="base64"?this.image=atob(nn):this.image=decodeURIComponent(nn))}else try{const an=await(await this.document.fetch(He)).text();this.image=an}catch(nn){console.error('Error while loading image "'.concat(He,'":'),nn)}this.loaded=!0}renderChildren(He){const{document:tn,image:nn,loaded:an}=this,rn=this.getAttribute("x").getPixels("x"),on=this.getAttribute("y").getPixels("y"),sn=this.getStyle("width").getPixels("x"),dn=this.getStyle("height").getPixels("y");if(!(!an||!nn||!sn||!dn)){if(He.save(),He.translate(rn,on),typeof nn=="string"){const hn=tn.canvg.forkString(He,nn,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:sn,scaleHeight:dn}),{documentElement:mn}=hn.document;mn&&(mn.parent=this),hn.render()}else tn.setViewBox({ctx:He,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:sn,desiredWidth:nn.width,height:dn,desiredHeight:nn.height}),this.loaded&&(!("complete"in nn)||nn.complete)&&He.drawImage(nn,0,0);He.restore()}}getBoundingBox(){const He=this.getAttribute("x").getPixels("x"),tn=this.getAttribute("y").getPixels("y"),nn=this.getStyle("width").getPixels("x"),an=this.getStyle("height").getPixels("y");return new BoundingBox(He,tn,He+nn,tn+an)}constructor(He,tn,nn){super(He,tn,nn),this.type="image",this.loaded=!1;const an=this.getHrefAttribute().getString();if(!an)return;const rn=an.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(an);He.images.push(this),rn?this.loadSvg(an):this.loadImage(an)}}class SymbolElement extends RenderedElement{render(He){}constructor(...He){super(...He),this.type="symbol"}}class SVGFontLoader{async load(He,tn){try{const{document:nn}=this,rn=(await nn.canvg.parser.load(tn)).getElementsByTagName("font");Array.from(rn).forEach(on=>{const sn=nn.createElement(on);nn.definitions.set(He,sn)})}catch(nn){console.error('Error while loading font "'.concat(tn,'":'),nn)}this.loaded=!0}constructor(He){this.document=He,this.loaded=!1,He.fonts.push(this)}}class StyleElement extends Element$1{constructor(He,tn,nn){super(He,tn,nn),this.type="style",compressSpaces(Array.from(tn.childNodes).map(on=>on.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(on=>{const sn=on.trim();if(!sn)return;const dn=sn.split("{"),hn=dn[0].split(","),mn=dn[1].split(";");hn.forEach(gn=>{const yn=gn.trim();if(!yn)return;const fn=He.styles.get(yn)||new Map;if(mn.forEach(bn=>{const Mn=bn.indexOf(":"),Tn=bn.substr(0,Mn).trim(),xn=bn.substr(Mn+1,bn.length-Mn).trim();Tn&&xn&&fn.set(Tn,new Property(He,Tn,xn))}),He.styles.set(yn,fn),He.stylesSpecificity.set(yn,getSelectorSpecificity(yn)),yn==="@font-face"){const bn=fn.get("font-family").getString().replace(/"|'/g,"");fn.get("src").getString().split(",").forEach(Tn=>{if(Tn.indexOf('format("svg")')>0){const xn=parseExternalUrl(Tn);xn&&new SVGFontLoader(He).load(bn,xn)}})}})})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{setContext(He){super.setContext(He);const tn=this.getAttribute("x"),nn=this.getAttribute("y");tn.hasValue()&&He.translate(tn.getPixels("x"),0),nn.hasValue()&&He.translate(0,nn.getPixels("y"))}path(He){const{element:tn}=this;tn&&tn.path(He)}renderChildren(He){const{document:tn,element:nn}=this;if(nn){let an=nn;if(nn.type==="symbol"&&(an=new SVGElement(tn),an.attributes.set("viewBox",new Property(tn,"viewBox",nn.getAttribute("viewBox").getString())),an.attributes.set("preserveAspectRatio",new Property(tn,"preserveAspectRatio",nn.getAttribute("preserveAspectRatio").getString())),an.attributes.set("overflow",new Property(tn,"overflow",nn.getAttribute("overflow").getString())),an.children=nn.children,nn.styles.set("opacity",new Property(tn,"opacity",this.calculateOpacity()))),an.type==="svg"){const on=this.getStyle("width",!1,!0),sn=this.getStyle("height",!1,!0);on.hasValue()&&an.attributes.set("width",new Property(tn,"width",on.getString())),sn.hasValue()&&an.attributes.set("height",new Property(tn,"height",sn.getString()))}const rn=an.parent;an.parent=this,an.render(He),an.parent=rn}}getBoundingBox(He){const{element:tn}=this;return tn?tn.getBoundingBox(He):null}elementTransform(){const{document:He,element:tn}=this;return tn?Transform.fromElement(He,tn):null}
81get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}constructor(...He){super(...He),this.type="use"}}function imGet(en,He,tn,nn,an,rn){return en[tn*nn*4+He*4+rn]}function imSet(en,He,tn,nn,an,rn,on){en[tn*nn*4+He*4+rn]=on}function m(en,He,tn){return en[He]*tn}function c(en,He,tn,nn){return He+Math.cos(en)*tn+Math.sin(en)*nn}class FeColorMatrixElement extends Element$1{apply(He,tn,nn,an,rn){const{includeOpacity:on,matrix:sn}=this,dn=He.getImageData(0,0,an,rn);for(let hn=0;hn<rn;hn++)for(let mn=0;mn<an;mn++){const gn=imGet(dn.data,mn,hn,an,rn,0),yn=imGet(dn.data,mn,hn,an,rn,1),fn=imGet(dn.data,mn,hn,an,rn,2),bn=imGet(dn.data,mn,hn,an,rn,3);let Mn=m(sn,0,gn)+m(sn,1,yn)+m(sn,2,fn)+m(sn,3,bn)+m(sn,4,1),Tn=m(sn,5,gn)+m(sn,6,yn)+m(sn,7,fn)+m(sn,8,bn)+m(sn,9,1),xn=m(sn,10,gn)+m(sn,11,yn)+m(sn,12,fn)+m(sn,13,bn)+m(sn,14,1),En=m(sn,15,gn)+m(sn,16,yn)+m(sn,17,fn)+m(sn,18,bn)+m(sn,19,1);on&&(Mn=0,Tn=0,xn=0,En*=bn/255),imSet(dn.data,mn,hn,an,rn,0,Mn),imSet(dn.data,mn,hn,an,rn,1,Tn),imSet(dn.data,mn,hn,an,rn,2,xn),imSet(dn.data,mn,hn,an,rn,3,En)}He.clearRect(0,0,an,rn),He.putImageData(dn,0,0)}constructor(He,tn,nn){super(He,tn,nn),this.type="feColorMatrix";let an=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{const rn=an[0];an=[.213+.787*rn,.715-.715*rn,.072-.072*rn,0,0,.213-.213*rn,.715+.285*rn,.072-.072*rn,0,0,.213-.213*rn,.715-.715*rn,.072+.928*rn,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{const rn=an[0]*Math.PI/180;an=[c(rn,.213,.787,-.213),c(rn,.715,-.715,-.715),c(rn,.072,-.072,.928),0,0,c(rn,.213,-.213,.143),c(rn,.715,.285,.14),c(rn,.072,-.072,-.283),0,0,c(rn,.213,-.213,-.787),c(rn,.715,-.715,.715),c(rn,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":an=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=an,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}}class MaskElement extends Element$1{apply(He,tn){const{document:nn}=this;let an=this.getAttribute("x").getPixels("x"),rn=this.getAttribute("y").getPixels("y"),on=this.getStyle("width").getPixels("x"),sn=this.getStyle("height").getPixels("y");if(!on&&!sn){const fn=new BoundingBox;this.children.forEach(bn=>{fn.addBoundingBox(bn.getBoundingBox(He))}),an=Math.floor(fn.x1),rn=Math.floor(fn.y1),on=Math.floor(fn.width),sn=Math.floor(fn.height)}const dn=this.removeStyles(tn,MaskElement.ignoreStyles),hn=nn.createCanvas(an+on,rn+sn),mn=hn.getContext("2d");nn.screen.setDefaults(mn),this.renderChildren(mn),new FeColorMatrixElement(nn,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(mn,0,0,an+on,rn+sn);const gn=nn.createCanvas(an+on,rn+sn),yn=gn.getContext("2d");nn.screen.setDefaults(yn),tn.render(yn),yn.globalCompositeOperation="destination-in",yn.fillStyle=mn.createPattern(hn,"no-repeat"),yn.fillRect(0,0,an+on,rn+sn),He.fillStyle=yn.createPattern(gn,"no-repeat"),He.fillRect(0,0,an+on,rn+sn),this.restoreStyles(tn,dn)}render(He){}constructor(...He){super(...He),this.type="mask"}}MaskElement.ignoreStyles=["mask","transform","clip-path"];const noop$1=()=>{};class ClipPathElement extends Element$1{apply(He){const{document:tn}=this,nn=Reflect.getPrototypeOf(He),{beginPath:an,closePath:rn}=He;nn&&(nn.beginPath=noop$1,nn.closePath=noop$1),Reflect.apply(an,He,[]),this.children.forEach(on=>{if(!("path"in on))return;let sn="elementTransform"in on?on.elementTransform():null;sn||(sn=Transform.fromElement(tn,on)),sn&&sn.apply(He),on.path(He),nn&&(nn.closePath=rn),sn&&sn.unapply(He)}),Reflect.apply(rn,He,[]),He.clip(),nn&&(nn.beginPath=an,nn.closePath=rn)}render(He){}constructor(...He){super(...He),this.type="clipPath"}}class FilterElement extends Element$1{apply(He,tn){const{document:nn,children:an}=this,rn="getBoundingBox"in tn?tn.getBoundingBox(He):null;if(!rn)return;let on=0,sn=0;an.forEach(xn=>{const En=xn.extraFilterDistance||0;on=Math.max(on,En),sn=Math.max(sn,En)});const dn=Math.floor(rn.width),hn=Math.floor(rn.height),mn=dn+2*on,gn=hn+2*sn;if(mn<1||gn<1)return;const yn=Math.floor(rn.x),fn=Math.floor(rn.y),bn=this.removeStyles(tn,FilterElement.ignoreStyles),Mn=nn.createCanvas(mn,gn),Tn=Mn.getContext("2d");nn.screen.setDefaults(Tn),Tn.translate(-yn+on,-fn+sn),tn.render(Tn),an.forEach(xn=>{typeof xn.apply=="function"&&xn.apply(Tn,0,0,mn,gn)}),He.drawImage(Mn,0,0,mn,gn,yn-on,fn-sn,mn,gn),this.restoreStyles(tn,bn)}render(He){}constructor(...He){super(...He),this.type="filter"}}FilterElement.ignoreStyles=["filter","transform","clip-path"];
81class FeDropShadowElement extends Element$1{apply(He,tn,nn,an,rn){}constructor(He,tn,nn){super(He,tn,nn),this.type="feDropShadow",this.addStylesFromStyleDefinition()}}class FeMorphologyElement extends Element$1{apply(He,tn,nn,an,rn){}constructor(...He){super(...He),this.type="feMorphology"}}class FeCompositeElement extends Element$1{apply(He,tn,nn,an,rn){}constructor(...He){super(...He),this.type="feComposite"}}class FeGaussianBlurElement extends Element$1{apply(He,tn,nn,an,rn){const{document:on,blurRadius:sn}=this,dn=on.window?on.window.document.body:null,hn=He.canvas;hn.id=on.getUniqueId(),dn&&(hn.style.display="none",dn.appendChild(hn)),processCanvasRGBA(hn,tn,nn,an,rn,sn),dn&&dn.removeChild(hn)}constructor(He,tn,nn){super(He,tn,nn),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}}class TitleElement extends Element$1{constructor(...He){super(...He),this.type="title"}}class DescElement extends Element$1{constructor(...He){super(...He),this.type="desc"}}const elements={svg:SVGElement,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function createCanvas(en,He){const tn=document.createElement("canvas");return tn.width=en,tn.height=He,tn}async function createImage(en){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const tn=document.createElement("img");return He&&(tn.crossOrigin="Anonymous"),new Promise((nn,an)=>{tn.onload=()=>{nn(tn)},tn.onerror=(rn,on,sn,dn,hn)=>{an(hn)},tn.src=en})}const DEFAULT_EM_SIZE=12;class Document{bindCreateImage(He,tn){return typeof tn=="boolean"?(nn,an)=>He(nn,typeof an=="boolean"?an:tn):He}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){const{emSizeStack:He}=this;return He[He.length-1]||DEFAULT_EM_SIZE}set emSize(He){const{emSizeStack:tn}=this;tn.push(He)}popEmSize(){const{emSizeStack:He}=this;He.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(He=>He.loaded)}isFontsLoaded(){return this.fonts.every(He=>He.loaded)}createDocumentElement(He){const tn=this.createElement(He.documentElement);return tn.root=!0,tn.addStylesFromStyleDefinition(),this.documentElement=tn,tn}createElement(He){const tn=He.nodeName.replace(/^[^:]+:/,""),nn=Document.elementTypes[tn];return nn?new nn(this,He):new UnknownElement(this,He)}createTextNode(He){return new TextNode(this,He)}setViewBox(He){this.screen.setViewBox({document:this,...He})}constructor(He,{rootEmSize:tn=DEFAULT_EM_SIZE,emSize:nn=DEFAULT_EM_SIZE,createCanvas:an=Document.createCanvas,createImage:rn=Document.createImage,anonymousCrossOrigin:on}={}){this.canvg=He,this.definitions=new Map,this.styles=new Map,this.stylesSpecificity=new Map,this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=He.screen,this.rootEmSize=tn,this.emSize=nn,this.createCanvas=an,this.createImage=this.bindCreateImage(rn,on),this.screen.wait(()=>this.isImagesLoaded()),this.screen.wait(()=>this.isFontsLoaded())}}Document.createCanvas=createCanvas;Document.createImage=createImage;Document.elementTypes=elements;class Canvg{static async from(He,tn){let nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const rn=await new Parser$1(nn).parse(tn);return new Canvg(He,rn,nn)}static fromString(He,tn){let nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const rn=new Parser$1(nn).parseFromString(tn);return new Canvg(He,rn,nn)}fork(He,tn){let nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(He,tn,{...this.options,...nn})}forkString(He,tn){let nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(He,tn,{...this.options,...nn})}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}async render(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.start({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0,...He}),await this.ready(),this.stop()}start(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{documentElement:tn,screen:nn,options:an}=this;nn.start(tn,{enableRedraw:!0,...an,...He})}stop(){this.screen.stop()}resize(He){let tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(He,tn,nn)}constructor(He,tn,nn={}){this.parser=new Parser$1(nn),this.screen=new Screen(He,nn),this.options=nn;const an=new Document(this,nn),rn=an.createDocumentElement(tn);this.document=an,this.documentElement=rn}}const _sfc_main$R={components:{PrintableFavorite,PageTeaser,ButtonComponent,Favorite,SocialMedium},data(){return{loadedNodes:[],generatedFavorites:void 0,generationIdentifier:void 0}}
81,computed:{...mapState("favorites",["favorites","recentlyViewedPages"]),...mapState("context",["site","locale"]),...mapGetters("favorites",["sortedFavorites"]),currentUrl(){return window.location.href},favoriteNodes(){const en=this.loadedNodes;return this.sortedFavorites.flatMap(He=>{const tn=en.find(nn=>nn.data.id===He.contentId);return tn?[tn]:[]})},recentlyViewedNodes(){const en=this.loadedNodes;return this.recentlyViewedPages.flatMap(He=>{const tn=en.find(nn=>nn.data.id===He.contentId);return tn?[tn]:[]})},generatedFavoritesUrl(){return this.generatedFavorites?this.generatedFavorites.url:void 0},facebookAppId(){return window.westtoerFacebookAppId},messengerUrl(){let en=!1;return(function(He){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(He)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(He.substr(0,4)))&&(en=!0)})(navigator.userAgent||navigator.vendor||window.opera),en?`fb-messenger://share/?link=${this.generatedFavoritesUrl}&app_id=${this.facebookAppId}`:`https://www.facebook.com/dialog/send?app_id=${this.facebookAppId}&redirect_uri=${this.currentUrl}&link=${this.generatedFavoritesUrl}`}},methods:{...mapActions("favorites",["removeFavorite","fetchRecentlyViewedPages"]),getImage(en,He){const tn=this.site.image?.imageStyleUris[He]??void 0;if(!en.data.relationships.image.data)return tn;const nn=en.included.find(rn=>rn.id===en.data.relationships.image.data.id);if(!nn)return tn;const an=en.included.find(rn=>rn.id===nn.relationships.media_image.data.id);return an&&He in an.attributes.image_style_uri?an.attributes.image_style_uri[He]:tn},getProductType(en){if(!en.data.relationships.product_type)return;const He=en.included.find(tn=>tn.id===en.data.relationships.product_type.data.id);if(He)return He.attributes.name},async generateFavorites(en){if(JSON.stringify(this.favorites)===this.generationIdentifier){this.$refs[en].click();return}axios.post(`/generate-favorites/${this.locale}`,{favorites:this.favorites}).then(async tn=>{this.generatedFavorites=tn.data,this.generationIdentifier=JSON.stringify(this.favorites),this.$nextTick(()=>{this.$refs[en].click()})})},generatePdf(){const en=this.$refs.pdf,He=new E("p","mm","a4"),tn=this.$t("Favorites")+".pdf";en.style.display="block",He.html(en,{callback:function(nn){nn.save(tn),en.style.display="none"},width:191,windowWidth:en.clientWidth,x:10,y:10,html2canvas:{windowHeight:en.scrollHeight}})}},mounted(){this.fetchRecentlyViewedPages();let en=this.loadedNodes;const He=[...this.favorites,...this.recentlyViewedPages];axios.post(`/fetch-nodes/${this.locale}`,{nodeData:He}).then(rn=>
81{Object.values(rn.data).forEach(on=>en.push(on))});const tn=this.$refs.pdfLogo,nn=this.$refs.pdfLogoCanvas,an=nn.getContext("2d");an.fillStyle="#fff",an.fillRect(0,0,nn.width,nn.height),Canvg.from(an,tn.getAttribute("src"),{ignoreClear:!0}).then(rn=>{rn.start(),tn.style.display="none"})}},_hoisted_1$S={class:"favorites"},_hoisted_2$M={key:0,class:"favorites__no-favorites"},_hoisted_3$J={key:1,class:"favorites__list"},_hoisted_4$y={ref:"pdf",class:"favorites__pdf"},_hoisted_5$v={class:"favorites__pdf-header"},_hoisted_6$s=["src","alt"],_hoisted_7$r={ref:"pdfLogoCanvas"},_hoisted_8$n={class:"favorites__pdf-title"},_hoisted_9$m={class:"favorites__pdf-favorites"},_hoisted_10$k={key:2,class:"favorites__share"},_hoisted_11$f={class:"share__title"},_hoisted_12$d=["href"],_hoisted_13$b=["href"],_hoisted_14$9=["href"],_hoisted_15$8={class:"share__description"},_hoisted_16$6={key:0,class:"favorites__recent"},_hoisted_17$6={class:"recently-viewed"},_hoisted_18$6={class:"recently-viewed__title"},_hoisted_19$5={class:"recently-viewed__list"};function _sfc_render$R(en,He,tn,nn,an,rn){const on=resolveComponent("favorite"),sn=resolveComponent("printable-favorite"),dn=resolveComponent("button-component"),hn=resolveComponent("social-medium"),mn=resolveComponent("page-teaser");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$S,[en.favorites.length===0?(openBlock(),createElementBlock("p",_hoisted_2$M,toDisplayString(en.$t("Click on the heart icon on a page to add it to your favorites here.")),1)):createCommentVNode("",!0),rn.favoriteNodes.length>0?(openBlock(),createElementBlock("div",_hoisted_3$J,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.favoriteNodes,(gn,yn)=>(openBlock(),createBlock(on,{key:yn,"content-id":gn.data.id,title:gn.data.attributes.title,description:gn.data.attributes.summary??void 0,image:rn.getImage(gn,"square_md"),alias:gn.data.attributes.global_alias,langcode:en.locale,"content-type":gn.data.type.split("--")[1],"product-type":rn.getProductType(gn),"show-delete-button":!0,period:gn.data.attributes.general_period?{start:gn.data.attributes.general_period.value,end:gn.data.attributes.general_period.end_value}:void 0,localities:gn.data.attributes.localities??(gn.data.attributes.address?[gn.data.attributes.address.locality]:void 0)},null,8,["content-id","title","description","image","alias","langcode","content-type","product-type","period","localities"]))),128))])):createCommentVNode("",!0),(openBlock(),createBlock(Teleport,{to:"body"},[createBaseVNode("div",_hoisted_4$y,[createBaseVNode("div",_hoisted_5$v,[en.site.logo?(openBlock(),createElementBlock("img",{key:0,ref:"pdfLogo",src:en.site.logo.url,alt:en.site.logo.alt,class:"favorites__pdf-logo"},null,8,_hoisted_6$s)):createCommentVNode("",!0),createBaseVNode("canvas",_hoisted_7$r,null,512),createBaseVNode("h1",_hoisted_8$n,toDisplayString(en.$t("My favorites")),1)]),createBaseVNode("div",_hoisted_9$m,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.favoriteNodes,(gn,yn)=>(openBlock(),createBlock(sn,{key:yn,"content-id":gn.data.id,title:gn.data.attributes.title,description:gn.data.attributes.summary??void 0,image:rn.getImage(gn,"square_md"),alias:gn.data.attributes.global_alias,langcode:en.locale,"product-type":rn.getProductType(gn),period:gn.data.attributes.general_period?{start:gn.data.attributes.general_period.value,end:gn.data.attributes.general_period.end_value}:void 0,localities:gn.data.attributes.localities??void 0,address:gn.data.attributes.address??void 0,phone:gn.data.attributes.phone??void 0,mobile:gn.data.attributes.mobile??void 0},null,8,["content-id","title","description","image","alias","langcode","product-type","period","localities","address","phone","mobile"]))),128))])],512)])),rn.favoriteNodes.length>0?(openBlock(),createElementBlock("div",_hoisted_10$k,[createVNode(dn,{name:en.$t("Download as PDF"),url:"#",icon:["far","file-pdf"],class:"share__download",onClick:withModifiers(rn.generatePdf,["prevent"])},null,8,["name","onClick"]),createBaseVNode("div",_hoisted_11$f,toDisplayString(en.$t("Send a copy"))+":",1),createVNode(hn,{url:"#",title:en.$t("Mail"),icon:["far","envelope"],class:"share__button",onClick:He[0]||(He[0]=withModifiers(gn=>rn.generateFavorites("mail"),["prevent"]))},null,8,["title"]),withDirectives(createBaseVNode("a",{ref:"mail",href:`mailto:?subject=${en.$t("My {site} favorites",{site:en.site.name})}&body=${rn.generatedFavoritesUrl}`,target:"_blank"},null,8,_hoisted_12$d),[[vShow,!1]]),createVNode(hn,{url:"#",title:"WhatsApp",icon:["fab","whatsapp"],class:"share__button",onClick:He[1]||(He[1]=withModifiers(gn=>rn.generateFavorites("whatsapp"),["prevent"]))}),withDirectives(createBaseVNode("a",{ref:"whatsapp",href:`https://wa.me/?text=${rn.generatedFavoritesUrl}`,target:"_blank"},null,8,_hoisted_13$b),[[vShow,!1]]),createVNode(hn,{url:"#",title:"Facebook Messenger",icon:["fab","facebook-messenger"],class:"share__button",onClick:He[2]||(He[2]=withModifiers(gn=>rn.generateFavorites("messenger"),["prevent"]))}),withDirectives(createBaseVNode("a",{ref:"messenger",href:rn.messengerUrl,target:"_blank"},null,8,_hoisted_14$9),[[vShow,!1]]),createBaseVNode("div",_hoisted_15$8,[createTextVNode(toDisplayString(en.$t("A static copy of this list will be sent.")),1),He[3]||(He[3]=createBaseVNode("br",null,null,-1)),createTextVNode(" "+toDisplayString(en.$t("Subsequent changes will not be visible on the sent copy.")),1)])])):createCommentVNode("",!0)]),en.recentlyViewedPages&&en.recentlyViewedPages.length>0?(openBlock(),createElementBlock("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$6,[createBaseVNode("h2",_hoisted_18$6,toDisplayString(en.$t("Recently viewed")),1),He[4]||(He[4]=createBaseVNode("div",{class:"recently-viewed__line","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_19$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.recentlyViewedNodes,(gn,yn)=>(openBlock(),createBlock(mn,{key:yn,title:gn.data.attributes.title,image:rn.getImage(gn,"landscape_md"),alias:gn.data.attributes.global_alias,langcode:en.locale,"content-type":gn.data.type.split("--")[1],"product-type":rn.getProductType(gn),localities:gn.data.attributes.localities??(gn.data.attributes.address?[gn.data.attributes.address.locality]:void 0)},null,8,["title","image","alias","langcode","content-type","product-type","localities"]))),128))])])])):createCommentVNode("",!0)],64)}const Favorites=_export_sfc(_sfc_main$R,[["render",_sfc_render$R],["__scopeId","data-v-29369157"]]),_sfc_main$Q={name:"Wizard",components:{PageTeaser,ButtonComponent},computed:{...mapState("context",["site"]),...mapState("wizard",["results"]),...mapGetters("wizard",["answersPerQuestion","selectedAnswers"])},methods:{...mapActions("wizard",["fetchAnswers","toggleAnswer","eraseSelection","setSite"])},mounted(){this.setSite(this.site.machine_name),this.fetchAnswers()}},_hoisted_1$R={class:"wizard"},_hoisted_2$L={class:"wizard__erase"},_hoisted_3$I={class:"wizard__questions"},_hoisted_4$x={class:"question__question"},_hoisted_5$u={class:"question__answers"},_hoisted_6$r={key:0,class:"wizard__suggestions"},_hoisted_7$q={class:"suggestions__title"},_hoisted_8$m={class:"suggestions__info"},_hoisted_9$l={class:"suggestions__list"};function _sfc_render$Q(en,He,tn,nn,an,rn){const on=resolveComponent("button-component"),sn=resolveComponent("page-teaser");return openBlock(),createElementBlock("div",_hoisted_1$R,[createBaseVNode("div",_hoisted_2$L,[en.selectedAnswers.length>0?(openBlock(),createElementBlock("a",{key:0,url:"#",class:"wizard__erase-link",onClick:He[0]||(He[0]=withModifiers((...dn)=>en.eraseSelection&&en.eraseSelection(...dn),["prevent"]))},toDisplayString(en.$t("Erase selection")),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_3$I,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.answersPerQuestion,(dn,hn)=>(openBlock(),createElementBlock("div",{key:hn,class:"wizard__question question"},[createBaseVNode("div",_hoisted_4$x,toDisplayString(dn.question),1),He[1]||(He[1]=createBaseVNode("div",{class:"question__line","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_5$u,[(openBlock(!0),createElementBlock(Fragment,null,renderList(dn.answers,(mn,gn)=>(openBlock(),createBlock(on,{key:gn,name:mn.answer,type:mn.selected?"primary":"primary-outline",url:"#",class:"question__answer",onClick:withModifiers(yn=>en.toggleAnswer(mn),["prevent"])},null,8,["name","type","onClick"]))),128))])]))),128))]),en.selectedAnswers.length>0?(openBlock(),createElementBlock("div",_hoisted_6$r,[createBaseVNode("h2",_hoisted_7$q,toDisplayString(en.$t("Suggestions")),1),createBaseVNode("div",_hoisted_8$m,toDisplayString(en.$t("Your selection is saved temporarily")),1),createBaseVNode("div",_hoisted_9$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.results,(dn,hn)=>(openBlock(),createBlock(sn,{key:hn,title:dn.title,image:dn.image,alias:dn.alias,langcode:dn.language,"content-type":dn.contentType},null,8,["title","image","alias","langcode","content-type"]))),128))])])):createCommentVNode("",!0)])}const Wizard=_export_sfc(_sfc_main$Q,[["render",_sfc_render$Q],["__scopeId","data-v-79a280be"]]),_sfc_main$P={name:"TermsFilter",props:{field:{type:String,required:!0},name:{type:String,required:!0},overviewType:{type:String,default:"overview"}},computed:{options(){const en=this.$store.getters[this.overviewType+"/filter"](this.field);if(!en)return[];const He=en.options.filter(tn=>tn.count>0);return en.field==="distance"?He.sort((tn,nn)=>Math.sign(tn.from-nn.from)):He.sort((tn,nn)=>tn.name.localeCompare(nn.name)),He}},created(){const en={type:"multi-select",field:this.field,name:this.name,options:[]}
81,He=new URLSearchParams(window.location.search),tn=JSON.parse(He.get(this.field));Array.isArray(tn)&&(en.options=tn.map(nn=>({name:nn,value:nn,selected:!0}))),this.addFilter(en)},methods:{addFilter(en){this.$store.dispatch(`${this.overviewType}/addFilter`,en)},selectOption(en){this.$store.dispatch(`${this.overviewType}/selectOption`,en)},deselectOption(en){this.$store.dispatch(`${this.overviewType}/deselectOption`,en)},toggleOption(en){en.selected?this.deselectOption({field:this.field,option:en.value}):this.selectOption({field:this.field,option:en.value})}}},_hoisted_1$Q={class:"terms-filter"},_hoisted_2$K=["title","onClick"],_hoisted_3$H={class:"terms-filter__option-value"};function _sfc_render$P(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$Q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.options,sn=>(openBlock(),createElementBlock("a",{key:sn.value,href:"#",class:normalizeClass(["terms-filter__option",{"terms-filter__option--selected":sn.selected}]),title:sn.name+" ("+sn.count+")",onClick:withModifiers(dn=>rn.toggleOption(sn),["prevent"])},[sn.selected?(openBlock(),createBlock(on,{key:0,icon:["far","check-square"],class:"terms-filter__option-icon terms-filter__option-icon--active"})):(openBlock(),createBlock(on,{key:1,icon:["far","square"],class:"terms-filter__option-icon"})),createBaseVNode("span",_hoisted_3$H,toDisplayString(sn.name)+" ("+toDisplayString(sn.count)+")",1)],10,_hoisted_2$K))),128))])}const TermsFilter=_export_sfc(_sfc_main$P,[["render",_sfc_render$P],["__scopeId","data-v-ea17734e"]]),_sfc_main$O={name:"OverviewFilter",components:{ButtonComponent},props:{field:{type:String,required:!0},overviewType:{type:String,default:"overview"}},data(){return{collapsed:!0}},computed:{...mapState("overview",["contentSpecificFilters"]),filter(){return this.$store.getters[`${this.overviewType}/filter`](this.field)},applicable(){return!Object.keys(this.contentSpecificFilters).includes(this.field)||this.$store.getters[`${this.overviewType}/extraFilters`]().includes(this.field)}},methods:{toggleOverviewFilter(){this.collapsed?this.openOverviewFilter():this.closeOverviewFilter()},openOverviewFilter(){this.collapsed=!1,document.addEventListener("click",this.clickOutside)},closeOverviewFilter(){this.collapsed=!0,document.removeEventListener("click",this.clickOutside)},clickOutside(en){this.$el!==en.target&&(!this.$el.contains(en.target)||en.target.closest(".terms-filter__option"))&&this.closeOverviewFilter()}}},_hoisted_1$P={class:"overview-filter"},_hoisted_2$J={class:"overview-filter__options"};function _sfc_render$O(en,He,tn,nn,an,rn){const on=resolveComponent("button-component");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1$P,[rn.filter?withDirectives((openBlock(),createBlock(on,{key:0,name:rn.filter.name,icon:["fas","chevron-down"],"icon-after":!0,url:"#",class:"overview-filter__toggle",type:"primary-outline",onClick:withModifiers(rn.toggleOverviewFilter,["prevent"])},null,8,["name","onClick"])),[[vShow,an.collapsed]]):createCommentVNode("",!0),rn.filter?withDirectives((openBlock(),createBlock(on,{key:1,name:rn.filter.name,icon:["fas","chevron-up"],"icon-after":!0,url:"#",class:"overview-filter__toggle",type:"primary",onClick:withModifiers(rn.toggleOverviewFilter,["prevent"])},null,8,["name","onClick"])),[[vShow,!an.collapsed]]):createCommentVNode("",!0),withDirectives(createBaseVNode("div",_hoisted_2$J,[render
81Slot(en.$slots,"default",{},void 0,!0)],512),[[vShow,!an.collapsed]])],512)),[[vShow,rn.applicable]])}const OverviewFilter=_export_sfc(_sfc_main$O,[["render",_sfc_render$O],["__scopeId","data-v-0dbeebaa"]]);var momentWithLocales$1={exports:{}},momentWithLocales=momentWithLocales$1.exports,hasRequiredMomentWithLocales;function requireMomentWithLocales(){return hasRequiredMomentWithLocales||(hasRequiredMomentWithLocales=1,(function(en,He){(function(tn,nn){en.exports=nn()})(momentWithLocales,(function(){var tn;function nn(){return tn.apply(null,arguments)}function an(cn){tn=cn}function rn(cn){return cn instanceof Array||Object.prototype.toString.call(cn)==="[object Array]"}function on(cn){return cn!=null&&Object.prototype.toString.call(cn)==="[object Object]"}function sn(cn,pn){return Object.prototype.hasOwnProperty.call(cn,pn)}function dn(cn){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(cn).length===0;var pn;for(pn in cn)if(sn(cn,pn))return!1;return!0}function hn(cn){return cn===void 0}function mn(cn){return typeof cn=="number"||Object.prototype.toString.call(cn)==="[object Number]"}function gn(cn){return cn instanceof Date||Object.prototype.toString.call(cn)==="[object Date]"}function yn(cn,pn){var Dn=[],Bn,ii=cn.length;for(Bn=0;Bn<ii;++Bn)Dn.push(pn(cn[Bn],Bn));return Dn}function fn(cn,pn){for(var Dn in pn)sn(pn,Dn)&&(cn[Dn]=pn[Dn]);return sn(pn,"toString")&&(cn.toString=pn.toString),sn(pn,"valueOf")&&(cn.valueOf=pn.valueOf),cn}function bn(cn,pn,Dn,Bn){return ad(cn,pn,Dn,Bn,!0).utc()}function Mn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Tn(cn){return cn._pf==null&&(cn._pf=Mn()),cn._pf}var xn;Array.prototype.some?xn=Array.prototype.some:xn=function(cn){var pn=Object(this),Dn=pn.length>>>0,Bn;for(Bn=0;Bn<Dn;Bn++)if(Bn in pn&&cn.call(this,pn[Bn],Bn,pn))return!0;return!1};function En(cn){var pn=null,Dn=!1,Bn=cn._d&&!isNaN(cn._d.getTime());if(Bn&&(pn=Tn(cn),Dn=xn.call(pn.parsedDateParts,function(ii){return ii!=null}),Bn=pn.overflow<0&&!pn.empty&&!pn.invalidEra&&!pn.invalidMonth&&!pn.invalidWeekday&&!pn.weekdayMismatch&&!pn.nullInput&&!pn.invalidFormat&&!pn.userInvalidated&&(!pn.meridiem||pn.meridiem&&Dn),cn._strict&&(Bn=Bn&&pn.charsLeftOver===0&&pn.unusedTokens.length===0&&pn.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(cn))cn._isValid=Bn;else return Bn;return cn._isValid}function Rn(cn){var pn=bn(NaN);return cn!=null?fn(Tn(pn),cn):Tn(pn).userInvalidated=!0,pn}var ni=nn.momentProperties=[],mi=!1;function bi(cn,pn){var Dn,Bn,ii,Ki=ni.length;if(hn(pn._isAMomentObject)||(cn._isAMomentObject=pn._isAMomentObject),hn(pn._i)||(cn._i=pn._i),hn(pn._f)||(cn._f=pn._f),hn(pn._l)||(cn._l=pn._l),hn(pn._strict)||(cn._strict=pn._strict),hn(pn._tzm)||(cn._tzm=pn._tzm),hn(pn._isUTC)||(cn._isUTC=pn._isUTC),hn(pn._offset)||(cn._offset=pn._offset),hn(pn._pf)||(cn._pf=Tn(pn)),hn(pn._locale)||(cn._locale=pn._locale),Ki>0)for(Dn=0;Dn<Ki;Dn++)Bn=ni[Dn],ii=pn[Bn],hn(ii)||(cn[Bn]=ii);return cn}function _i(cn){bi(this,cn),this._d=new Date(cn._d!=null?cn._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),mi===!1&&(mi=!0,nn.updateOffset(this),mi=!1)}function oi(cn){return cn instanceof _i||cn!=null&&cn._isAMomentObject!=null}function si(cn){nn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+cn)}function fi(cn,pn){var Dn=!0;return fn(function(){if(nn.deprecationHandler!=null&&nn.deprecationHandler(null,cn),Dn){var Bn=[],ii,Ki,Pa,Ls=arguments.length;for(Ki=0;Ki<Ls;Ki++){if(ii="",typeof arguments[Ki]=="object"){ii+=`
82[`+Ki+"] ";for(Pa in arguments[0])sn(arguments[0],Pa)&&(ii+=Pa+": "+arguments[0][Pa]+", ");ii=ii.slice(0,-2)}else ii=arguments[Ki];Bn.push(ii)}si(cn+`
83Arguments: `+Array.prototype.slice.call(Bn).join("")+`
84`+new Error().stack),Dn=!1}return pn.apply(this,arguments)},pn)}var ei={};function ci(cn,pn){nn.deprecationHandler!=null&&nn.deprecationHandler(cn,pn),ei[cn]||(si(pn),ei[cn]=!0)}nn.suppressDeprecationWarnings=!1,nn.deprecationHandler=null;function di(cn){return typeof Function<"u"&&cn instanceof Function||Object.prototype.toString.call(cn)==="[object Function]"}function wi(cn){var pn,Dn;for(Dn in cn)sn(cn,Dn)&&(pn=cn[Dn],di(pn)?this[Dn]=pn:this["_"+Dn]=pn);this._config=cn,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ci(cn,pn){var Dn=fn({},cn),Bn;for(Bn in pn)sn(pn,Bn)&&(on(cn[Bn])&&on(pn[Bn])?(Dn[Bn]={},fn(Dn[Bn],cn[Bn]),fn(Dn[Bn],pn[Bn])):pn[Bn]!=null?Dn[Bn]=pn[Bn]:delete Dn[Bn]);for(Bn in cn)sn(cn,Bn)&&!sn(pn,Bn)&&on(cn[Bn])&&(Dn[Bn]=fn({},Dn[Bn]));return Dn}function ji(cn){cn!=null&&this.set(cn)}var Yi;Object.keys?Yi=Object.keys:Yi=function(cn){var pn,Dn=[];for(pn in cn)sn(cn,pn)&&Dn.push(pn);return Dn};var Pi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Fi(cn,pn,Dn){var Bn=this._calendar[cn]||this._calendar.sameElse;return di(Bn)?Bn.call(pn,Dn):Bn}function $i(cn,pn,Dn){var Bn=""+Math.abs(cn),ii=pn-Bn.length,Ki=cn>=0;return(Ki?Dn?"+":"":"-")+Math.pow(10,Math.max(0,ii)).toString().substr(1)+Bn}var Wi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 31,663 bytes, line 84
84|x|X|zz?|ZZ?|.)/g,hi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Si={},Ni={};function yi(cn,pn,Dn,Bn){var ii=Bn;typeof Bn=="string"&&(ii=function(){return this[Bn]()}),cn&&(Ni[cn]=ii),pn&&(Ni[pn[0]]=function(){return $i(ii.apply(this,arguments),pn[1],pn[2])}),Dn&&(Ni[Dn]=function(){return this.localeData().ordinal(ii.apply(this,arguments),cn)})}function Hi(cn){return cn.match(/\[[\s\S]/)?cn.replace(/^\[|\]$/g,""):cn.replace(/\\/g,"")}function Ui(cn){var pn=cn.match(Wi),Dn,Bn;for(Dn=0,Bn=pn.length;Dn<Bn;Dn++)Ni[pn[Dn]]?pn[Dn]=Ni[pn[Dn]]:pn[Dn]=Hi(pn[Dn]);return function(ii){var Ki="",Pa;for(Pa=0;Pa<Bn;Pa++)Ki+=di(pn[Pa])?pn[Pa].call(ii,cn):pn[Pa];return Ki}}function Ji(cn,pn){return cn.isValid()?(pn=Oi(pn,cn.localeData()),Si[pn]=Si[pn]||Ui(pn),Si[pn](cn)):cn.localeData().invalidDate()}function Oi(cn,pn){var Dn=5;function Bn(ii){return pn.longDateFormat(ii)||ii}for(hi.lastIndex=0;Dn>=0&&hi.test(cn);)cn=cn.replace(hi,Bn),hi.lastIndex=0,Dn-=1;return cn}var Ei={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ea(cn){var pn=this._longDateFormat[cn],Dn=this._longDateFormat[cn.toUpperCase()];return pn||!Dn?pn:(this._longDateFormat[cn]=Dn.match(Wi).map(function(Bn){return Bn==="MMMM"||Bn==="MM"||Bn==="DD"||Bn==="dddd"?Bn.slice(1):Bn}).join(""),this._longDateFormat[cn])}var vi="Invalid date";function ti(){return this._invalidDate}var ui="%d",Cn=/\d{1,2}/;function ki(cn){return this._ordinal.replace("%d",cn)}var Zi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ta(cn,pn,Dn,Bn){var ii=this._relativeTime[Dn];return di(ii)?ii(cn,pn,Dn,Bn):ii.replace(/%d/i,cn)}function Ri(cn,pn){var Dn=this._relativeTime[cn>0?"future":"past"];return di(Dn)?Dn(pn):Dn.replace(/%s/i,pn)}var ha={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function qi(cn){return typeof cn=="string"?ha[cn]||ha[cn.toLowerCase()]:void 0}function ca(cn){var pn={},Dn,Bn;for(Bn in cn)sn(cn,Bn)&&(Dn=qi(Bn),Dn&&(pn[Dn]=cn[Bn]));return pn}var Bi={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Na(cn){var pn=[],Dn;for(Dn in cn)sn(cn,Dn)&&pn.push({unit:Dn,priority:Bi[Dn]});return pn.sort(function(Bn,ii){return Bn.priority-ii.priority}),pn}var pa=/\d/,Ea=/\d\d/,ns=/\d{3}/,vs=/\d{4}/,rs=/[+-]?\d{6}/,Xa=/\d\d?/,_s=/\d\d\d\d?/,mo=/\d\d\d\d\d\d?/,Is=/\d{1,3}/,$s=/\d{1,4}/,Ps=/[+-]?\d{1,6}/,Ws=/\d+/,ps=/[+-]?\d+/,oo=/Z|[+-]\d\d:?\d\d/gi,bs=/Z|[+-]\d\d(?::?\d\d)?/gi,As=/[+-]?\d+(\.\d{1,3})?/,ts=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,cs=/^[1-9]\d?/,ws=/^([1-9]\d|\d)/,js;js={};function Ma(cn,pn,Dn){js[cn]=di(pn)?pn:function(Bn,ii){return Bn&&Dn?Dn:pn}}function Jo(cn,pn){return sn(js,cn)?js[cn](pn._strict,pn._locale):new RegExp(eu(cn))}function eu(cn){return ko(cn.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(pn,Dn,Bn,ii,Ki){return Dn||Bn||ii||Ki}))}function ko(cn){return cn.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function fs(cn){return cn<0?Math.ceil(cn)||0:Math.floor(cn)}function os(cn){var pn=+cn,Dn=0;return pn!==0&&isFinite(pn)&&(Dn=fs(pn)),Dn}var kc={};function ys(cn,pn){var Dn,Bn=pn,ii;for(typeof cn=="string"&&(cn=[cn]),mn(pn)&&(Bn=function(Ki,Pa){Pa[pn]=os(Ki)}),ii=cn.length,Dn=0;Dn<ii;Dn++)kc[cn[Dn]]=Bn}function Vo(cn,pn){ys(cn,function(Dn,Bn,ii,Ki){ii._w=ii._w||{},pn(Dn,ii._w,ii,Ki)})}function ho(cn,pn,Dn){pn!=null&&sn(kc,cn)&&kc[cn](pn,Dn._a,Dn,cn)}function ls(cn){return cn%4===0&&cn%100!==0||cn%400===0}var ia=0,Fa=1,us=2,as=3,Cs=4,to=5,co=6,tc=7,Vc=8;yi("Y",0,0,function(){var cn=this.year();return cn<=9999?$i(cn,4):"+"+cn}),yi(0,["YY",2],0,function(){return this.year()%100}),yi(0,["YYYY",4],0,"year"),yi(0,["YYYYY",5],0,"year"),yi(0,["YYYYYY",6,!0],0,"year"),Ma("Y",ps),Ma("YY",Xa,Ea),Ma("YYYY",$s,vs),Ma("YYYYY",Ps,rs),Ma("YYYYYY",Ps,rs),ys(["YYYYY","YYYYYY"],ia),ys("YYYY",function(cn,pn){pn[ia]=cn.length===2?nn.parseTwoDigitYear(cn):os(cn)}),ys("YY",function(cn,pn){pn[ia]=nn.parseTwoDigitYear(cn)}),ys("Y",function(cn,pn){pn[ia]=parseInt(cn,10)});function Yo(cn){return ls(cn)?366:365}nn.parseTwoDigitYear=function(cn){return os(cn)+(os(cn)>68?1900:2e3)};var uc=nc("FullYear",!0);function vu(){return ls(this.year())}function nc(cn,pn){return function(Dn){return Dn!=null?(Ku(this,cn,Dn),nn.updateOffset(this,pn),this):Tc(this,cn)}}function Tc(cn,pn){if(!cn.isValid())return NaN;var Dn=cn._d,Bn=cn._isUTC;switch(pn){case"Milliseconds":return Bn?Dn.getUTCMilliseconds():Dn.getMilliseconds();case"Seconds":return Bn?Dn.getUTCSeconds():Dn.getSeconds();case"Minutes":return Bn?Dn.getUTCMinutes():Dn.getMinutes();case"Hours":return Bn?Dn.getUTCHours():Dn.getHours();case"Date":return Bn?Dn.getUTCDate():Dn.getDate();case"Day":return Bn?Dn.getUTCDay():Dn.getDay();case"Month":return Bn?Dn.getUTCMonth():Dn.getMonth();case"FullYear":return Bn?Dn.getUTCFullYear():Dn.getFullYear();default:return NaN}}function Ku(cn,pn,Dn){var Bn,ii,Ki,Pa,Ls;if(!(!cn.isValid()||isNaN(Dn))){switch(Bn=cn._d,ii=cn._isUTC,pn){case"Milliseconds":return void(ii?Bn.setUTCMilliseconds(Dn):Bn.setMilliseconds(Dn));case"Seconds":return void(ii?Bn.setUTCSeconds(Dn):Bn.setSeconds(Dn));case"Minutes":return void(ii?Bn.setUTCMinutes(Dn):Bn.setMinutes(Dn));case"Hours":return void(ii?Bn.setUTCHours(Dn):Bn.setHours(Dn));case"Date":return void(ii?Bn.setUTCDate(Dn):Bn.setDate(Dn));case"FullYear":break;default:return}Ki=Dn,Pa=cn.month(),Ls=cn.date(),Ls=Ls===29&&Pa===1&&!ls(Ki)?28:Ls,ii?Bn.setUTCFullYear(Ki,Pa,Ls):Bn.setFullYear(Ki,Pa,Ls)}}function Jd(cn){return cn=qi(cn),di(this[cn])?this[cn]():this}function ch(cn,pn){if(typeof cn=="object"){cn=ca(cn);var Dn=Na(cn),Bn,ii=Dn.length;for(Bn=0;Bn<ii;Bn++)this[Dn[Bn].unit](cn[Dn[Bn].unit])}else if(cn=qi(cn),di(this[cn]))return this[cn](pn);return this}function uh(cn,pn){return(cn%pn+pn)%pn}var Es;Array.prototype.indexOf?Es=Array.prototype.indexOf:Es=function(cn){var pn;for(pn=0;pn<this.length;++pn)if(this[pn]===cn)return pn;return-1};function $u(cn,pn){if(isNaN(cn)||isNaN(pn))return NaN;var Dn=uh(pn,12);return cn+=(pn-Dn)/12,Dn===1?ls(cn)?29:28:31-Dn%7%2}yi("M",["MM",2],"Mo",function(){return this.month()+1}),yi("MMM",0,0,function(cn){return this.localeData().monthsShort(this,cn)}),yi("MMMM",0,0,function(cn){return this.localeData().months(this,cn)}),Ma("M",Xa,cs),Ma("MM",Xa,Ea),Ma("MMM",function(cn,pn){return pn.monthsShortRegex(cn)}),Ma("MMMM",function(cn,pn){return pn.monthsRegex(cn)}),ys(["M","MM"],function(cn,pn){pn[Fa]=os(cn)-1}),ys(["MMM","MMMM"],function(cn,pn,Dn,Bn){var ii=Dn._locale.monthsParse(cn,Bn,Dn._strict);ii!=null?pn[Fa]=ii:Tn(Dn).invalidMonth=cn});var xd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xd=ts,Ju=ts;function Us(cn,pn){return cn?rn(this._months)?this._months[cn.month()]:this._months[(this._months.isFormat||dd).test(pn)?"format":"standalone"][cn.month()]:rn(this._months)?this._months:this._months.standalone}function bo(cn,pn){return cn?rn(this._monthsShort)?this._monthsShort[cn.month()]:this._monthsShort[dd.test(pn)?"format":"standalone"][cn.month()]:rn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Sd(cn,pn,Dn){var Bn,ii,Ki,Pa=cn.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Bn=0;Bn<12;++Bn)Ki=bn([2e3,Bn]),this._shortMonthsParse[Bn]=this.monthsShort(Ki,"").toLocaleLowerCase(),this._longMonthsParse[Bn]=this.months(Ki,"").toLocaleLowerCase();return Dn?pn==="MMM"?(ii=Es.call(this._shortMonthsParse,Pa),ii!==-1?ii:null):(ii=Es.call(this._longMonthsParse,Pa),ii!==-1?ii:null):pn==="MMM"?(ii=Es.call(this._shortMonthsParse,Pa),ii!==-1?ii:(ii=Es.call(this._longMonthsParse,Pa),ii!==-1?ii:null)):(ii=Es.call(this._longMonthsParse,Pa),ii!==-1?ii:(ii=Es.call(this._shortMonthsParse,Pa),ii!==-1?ii:null))}function Bo(cn,pn,Dn){var Bn,ii,Ki;if(this._monthsParseExact)return Sd.call(this,cn,pn,Dn);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Bn=0;Bn<12;Bn++){if(ii=bn([2e3,Bn]),Dn&&!this._longMonthsParse[Bn]&&(this._longMonthsParse[Bn]=new RegExp("^"+this.months(ii,"").replace(".","")+"$","i"),this._shortMonthsParse[Bn]=new RegExp("^"+this.monthsShort(ii,"").replace(".","")+"$","i")),!Dn&&!this._monthsParse[Bn]&&(Ki="^"+this.months(ii,"")+"|^"+this.monthsShort(ii,""),this._monthsParse[Bn]=new RegExp(Ki.replace(".",""),"i")),Dn&&pn==="MMMM"&&this._longMonthsParse[Bn].test(cn))return Bn;if(Dn&&pn==="MMM"&&this._shortMonthsParse[Bn].test(cn))return Bn;if(!Dn&&this._monthsParse[Bn].test(cn))return Bn}}function nu(cn,pn){if(!cn.isValid())return cn;if(typeof pn=="string"){if(/^\d+$/.test(pn))pn=os(pn);else if(pn=cn.localeData().monthsParse(pn),!mn(pn))return cn}var Dn=pn,Bn=cn.date();return Bn=Bn<29?Bn:Math.min(Bn,$u(cn.year(),Dn)),cn._isUTC?cn._d.setUTCMonth(Dn,Bn):cn._d.setMonth(Dn,Bn),cn}function Dc(cn){return cn!=null?(nu(this,cn),nn.updateOffset(this,!0),this):Tc(this,"Month")}function Hs(){return $u(this.year(),this.month())}function $o(cn){return this._monthsParseExact?(sn(this,"_monthsRegex")||Eo.call(this),cn?this._monthsShortStrictRegex:this._monthsShortRegex):(sn(this,"_monthsShortRegex")||(this._monthsShortRegex=Xd),this._monthsShortStrictRegex&&cn?this._monthsShortStrictRegex:this._monthsShortRegex)}function Pc(cn){return this._monthsParseExact?(sn(this,"_monthsRegex")||Eo.call(this),cn?this._monthsStrictRegex:this._monthsRegex):(sn(this,"_monthsRegex")||(this._monthsRegex=Ju),this._monthsStrictRegex&&cn?this._monthsStrictRegex:this._monthsRegex)}function Eo(){function cn(Ks,wo){return wo.length-Ks.length}var pn=[],Dn=[],Bn=[],ii,Ki,Pa,Ls;for(ii=0;ii<12;ii++)Ki=bn([2e3,ii]),Pa=ko(this.monthsShort(Ki,"")),Ls=ko(this.months(Ki,"")),pn.push(Pa),Dn.push(Ls),Bn.push(Ls),Bn.push(Pa);pn.sort(cn),Dn.sort(cn),Bn.sort(cn),this._monthsRegex=new RegExp("^("+Bn.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Dn.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+pn.join("|")+")","i")}function Xo(cn,pn,Dn,Bn,ii,Ki,Pa){var Ls;return cn<100&&cn>=0?(Ls=new Date(cn+400,pn,Dn,Bn,ii,Ki,Pa),isFinite(Ls.getFullYear())&&Ls.setFullYear(cn)):Ls=new Date(cn,pn,Dn,Bn,ii,Ki,Pa),Ls}function Hc(cn){var pn,Dn;return cn<100&&cn>=0?(Dn=Array.prototype.slice.call(arguments),Dn[0]=cn+400,pn=new Date(Date.UTC.apply(null,Dn)),isFinite(pn.getUTCFullYear())&&pn.setUTCFullYear(cn)):pn=new Date(Date.UTC.apply(null,arguments)),pn}function jc(cn,pn,Dn){var Bn=7+pn-Dn,ii=(7+Hc(cn,0,Bn).getUTCDay()-pn)%7;return-ii+Bn-1}function ru(cn,pn,Dn,Bn,ii){var Ki=(7+Dn-Bn)%7,Pa=jc(cn,Bn,ii),Ls=1+7*(pn-1)+Ki+Pa,Ks,wo;return Ls<=0?(Ks=cn-1,wo=Yo(Ks)+Ls):Ls>Yo(cn)?(Ks=cn+1,wo=Ls-Yo(cn)):(Ks=cn,wo=Ls),{year:Ks,dayOfYear:wo}}function no(cn,pn,Dn){var Bn=jc(cn.year(),pn,Dn),ii=Math.floor((cn.dayOfYear()-Bn-1)/7)+1,Ki,Pa;return ii<1?(Pa=cn.year()-1,Ki=ii+Co(Pa,pn,Dn)):ii>Co(cn.year(),pn,Dn)?(Ki=ii-Co(cn.year(),pn,Dn),Pa=cn.year()+1):(Pa=cn.year(),Ki=ii),{week:Ki,year:Pa}}function Co(cn,pn,Dn){var Bn=jc(cn,pn,Dn),ii=jc(cn+1,pn,Dn);return(Yo(cn)-Bn+ii)/7}yi("w",["ww",2],"wo","week"),yi("W",["WW",2],"Wo","isoWeek"),Ma("w",Xa,cs),Ma("ww",Xa,Ea),Ma("W",Xa,cs),Ma("WW",Xa,Ea),Vo(["w","ww","W","WW"],function(cn,pn,Dn,Bn){pn[Bn.substr(0,1)]=os(cn)});function Xu(cn){return no(cn,this._week.dow,this._week.doy).week}var wu={dow:0,doy:6};function Eu(){return this._week.dow}function hd(){return this._week.doy}function Qd(cn){var pn=this.localeData().week(this);return cn==null?pn:this.add((cn-pn)*7,"d")}function eh(cn){var pn=no(this,1,4).week;return cn==null?pn:this.add((cn-pn)*7,"d")}yi("d",0,"do","day"),yi("dd",0,0,function(cn){return this.localeData().weekdaysMin(this,cn)}),yi("ddd",0,0,function(cn){return this.localeData().weekdaysShort(this,cn)}),yi("dddd",0,0,function(cn){return this.localeData().weekdays(this,cn)}),yi("e",0,0,"weekday"),yi("E",0,0,"isoWeekday"),Ma("d",Xa),Ma("e",Xa),Ma("E",Xa),Ma("dd",function(cn,pn){return pn.weekdaysMinRegex(cn)}),Ma("ddd",function(cn,pn){return pn.weekdaysShortRegex(cn)}),Ma("dddd",function(cn,pn){return pn.weekdaysRegex(cn)}),Vo(["dd","ddd","dddd"],function(cn,pn,Dn,Bn){var ii=Dn._locale.weekdaysParse(cn,Bn,Dn._strict);ii!=null?pn.d=ii:Tn(Dn).invalidWeekday=cn}),Vo(["d","e","E"],function(cn,pn,Dn,Bn){pn[Bn]=os(cn)});function Qu(cn,pn){return typeof cn!="string"?cn:isNaN(cn)?(cn=pn.weekdaysParse(cn),typeof cn=="number"?cn:null):parseInt(cn,10)}function Td(cn,pn){return typeof cn=="string"?pn.weekdaysParse(cn)%7||7:isNaN(cn)?null:cn}function fc(cn,pn){return cn.slice(pn,7).concat(cn.slice(0,pn))}var Dd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ku="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),fd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bh=ts,ss=ts,zc=ts;function Mo(cn,pn){var Dn=rn(this._weekdays)?this._weekdays:this._weekdays[cn&&cn!==!0&&this._weekdays.isFormat.test(pn)?"format":"standalone"];return cn===!0?fc(Dn,this._week.dow):cn?Dn[cn.day()]:Dn}function dh(cn){return cn===!0?fc(this._weekdaysShort,this._week.dow):cn?this._weekdaysShort[cn.day()]:this._weekdaysShort}function iu(cn){return cn===!0?fc(this._weekdaysMin,this._week.dow):cn?this._weekdaysMin[cn.day()]:this._weekdaysMin}function au(cn,pn,Dn){var Bn,ii,Ki,Pa=cn.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Bn=0;Bn<7;++Bn)Ki=bn([2e3,1]).day(Bn),this._minWeekdaysParse[Bn]=this.weekdaysMin(Ki,"").toLocaleLowerCase(),this._shortWeekdaysParse[Bn]=this.weekdaysShort(Ki,"").toLocaleLowerCase(),this._weekdaysParse[Bn]=this.weekdays(Ki,"").toLocaleLowerCase();return Dn?pn==="dddd"?(ii=Es.call(this._weekdaysParse,Pa),ii!==-1?ii:null):pn==="ddd"?(ii=Es.call(this._shortWeekdaysParse,Pa),ii!==-1?ii:null):(ii=Es.call(this._minWeekdaysParse,Pa),ii!==-1?ii:null):pn==="dddd"?(ii=Es.call(this._weekdaysParse,Pa),ii!==-1||(ii=Es.call(this._shortWeekdaysParse,Pa),ii!==-1)?ii:(ii=Es.call(this._minWeekdaysParse,Pa),ii!==-1?ii:null)):pn==="ddd"?(ii=Es.call(this._shortWeekdaysParse,Pa),ii!==-1||(ii=Es.call(this._weekdaysParse,Pa),ii!==-1)?ii:(ii=Es.call(this._minWeekdaysParse,Pa),ii!==-1?ii:null)):(ii=Es.call(this._minWeekdaysParse,Pa),ii!==-1||(ii=Es.call(this._weekdaysParse,Pa),ii!==-1)?ii:(ii=Es.call(this._shortWeekdaysParse,Pa),ii!==-1?ii:null))}function th(cn,pn,Dn){var Bn,ii,Ki;if(this._weekdaysParseExact)return au.call(this,cn,pn,Dn);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Bn=0;Bn<7;Bn++){if(ii=bn([2e3,1]).day(Bn),Dn&&!this._fullWeekdaysParse[Bn]&&(this._fullWeekdaysParse[Bn]=new RegExp("^"+this.weekdays(ii,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Bn]=new RegExp("^"+this.weekdaysShort(ii,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Bn]=new RegExp("^"+this.weekdaysMin(ii,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Bn]||(Ki="^"+this.weekdays(ii,"")+"|^"+this.weekdaysShort(ii,"")+"|^"+this.weekdaysMin(ii,""),this._weekdaysParse[Bn]=new RegExp(Ki.replace(".",""),"i")),Dn&&pn==="dddd"&&this._fullWeekdaysParse[Bn].test(cn))return Bn;if(Dn&&pn==="ddd"&&this._shortWeekdaysParse[Bn].test(cn))return Bn;if(Dn&&pn==="dd"&&this._minWeekdaysParse[Bn].test(cn))return Bn;if(!Dn&&this._weekdaysParse[Bn].test(cn))return Bn}}function Ou(cn){if(!this.isValid())return cn!=null?this:NaN;var pn=Tc(this,"Day");return cn!=null?(cn=Qu(cn,this.localeData()),this.add(cn-pn,"d")):pn}function ed(cn){if(!this.isValid())return cn!=null?this:NaN;var pn=(this.day()+7-this.localeData()._week.dow)%7;return cn==null?pn:this.add(cn-pn,"d")}function Ru(cn){if(!this.isValid())return cn!=null?this:NaN;if(cn!=null){var pn=Td(cn,this.localeData());return this.day(this.day()%7?pn:pn-7)}else return this.day()||7}function Oo(cn){return this._weekdaysParseExact?(sn(this,"_weekdaysRegex")||nd.call(this),cn?this._weekdaysStrictRegex:this._weekdaysRegex):(sn(this,"_weekdaysRegex")||(this._weekdaysRegex=bh),this._weekdaysStrictRegex&&cn?this._weekdaysStrictRegex:this._weekdaysRegex)}function Iu(cn){return this._weekdaysParseExact?(sn(this,"_weekdaysRegex")||nd.call(this),cn?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(sn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ss),this._weekdaysShortStrictRegex&&cn?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function bu(cn){return this._weekdaysParseExact?(sn(this,"_weekdaysRegex")||nd.call(this),cn?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(sn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zc),this._weekdaysMinStrictRegex&&cn?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nd(){function cn(Zu,Eh){return Eh.length-Zu.length}var pn=[],Dn=[],Bn=[],ii=[],Ki,Pa,Ls,Ks,wo;for(Ki=0;Ki<7;Ki++)Pa=bn([2e3,1]).day(Ki),Ls=ko(this.weekdaysMin(Pa,"")),Ks=ko(this.weekdaysShort(Pa,"")),wo=ko(this.weekdays(Pa,"")),pn.push(Ls),Dn.push(Ks),Bn.push(wo),ii.push(Ls),ii.push(Ks),ii.push(wo);pn.sort(cn),Dn.sort(cn),Bn.sort(cn),ii.sort(cn),this._weekdaysRegex=new RegExp("^("+ii.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Bn.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Dn.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+pn.join("|")+")","i")}function Fu(){return this.hours()%12||12}function Pd(){return this.hours()||24}yi("H",["HH",2],0,"hour"),yi("h",["hh",2],0,Fu),yi("k",["kk",2],0,Pd),yi("hmm",0,0,function(){return""+Fu.apply(this)+$i(this.minutes(),2)}),yi("hmmss",0,0,function(){return""+Fu.apply(this)+$i(this.minutes(),2)+$i(this.seconds(),2)}),yi("Hmm",0,0,function(){return""+this.hours()+$i(this.minutes(),2)}),yi("Hmmss",0,0,function(){return""+this.hours()+$i(this.minutes(),2)+$i(this.seconds(),2)});function rd(cn,pn){yi(cn,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),pn)})}rd("a",!0),rd("A",!1);function su(cn,pn){return pn._meridiemParse}Ma("a",su),Ma("A",su),Ma("H",Xa,ws),Ma("h",Xa,cs),Ma("k",Xa,cs),Ma("HH",Xa,Ea),Ma("hh",Xa,Ea),Ma("kk",Xa,Ea),Ma("hmm",_s),Ma("hmmss",mo),Ma("Hmm",_s),Ma("Hmmss",mo),ys(["H","HH"],as),ys(["k","kk"],function(cn,pn,Dn){var Bn=os(cn);pn[as]=Bn===24?0:Bn}),ys(["a","A"],function(cn,pn,Dn){Dn._isPm=Dn._locale.isPM(cn),Dn._meridiem=cn}),ys(["h","hh"],function(cn,pn,Dn){pn[as]=os(cn),Tn(Dn).bigHour=!0}),ys("hmm",function(cn,pn,Dn){var Bn=cn.length-2;pn[as]=os(cn.substr(0,Bn)),pn[Cs]=os(cn.substr(Bn)),Tn(Dn).bigHour=!0}),ys("hmmss",function(cn,pn,Dn){var Bn=cn.length-4,ii=cn.length-2;pn[as]=os(cn.substr(0,Bn)),pn[Cs]=os(cn.substr(Bn,2)),pn[to]=os(cn.substr(ii)),Tn(Dn).bigHour=!0}),ys("Hmm",function(cn,pn,Dn){var Bn=cn.length-2;pn[as]=os(cn.substr(0,Bn)),pn[Cs]=os(cn.substr(Bn))}),ys("Hmmss",function(cn,pn,Dn){var Bn=cn.length-4,ii=cn.length-2;pn[as]=os(cn.substr(0,Bn)),pn[Cs]=os(cn.substr(Bn,2)),pn[to]=os(cn.substr(ii))});function Nd(cn){return(cn+"").toLowerCase().charAt(0)==="p"}var Js=/[ap]\.?m?\.?/i,nh=nc("Hours",!0);function mc(cn,pn,Dn){return cn>11?Dn?"pm":"PM":Dn?"am":"AM"}var ou={calendar:Pi,longDateFormat:Ei,invalidDate:vi,ordinal:ui,dayOfMonthOrdinalParse:Cn,relativeTime:Zi,months:xd,monthsShort:tu,week:wu,weekdays:Dd,weekdaysMin:fd,weekdaysShort:ku,meridiemParse:Js},Os={},Wc={},rc;function Vu(cn,pn){var Dn,Bn=Math.min(cn.length,pn.length);for(Dn=0;Dn<Bn;Dn+=1)if(cn[Dn]!==pn[Dn])return Dn;return Bn}function md(cn){return cn&&cn.toLowerCase().replace("_","-")}function _d(cn){for(var pn=0,Dn,Bn,ii,Ki;pn<cn.length;){for(Ki=md(cn[pn]).split("-"),Dn=Ki.length,Bn=md(cn[pn+1]),Bn=Bn?Bn.split("-"):null;Dn>0;){if(ii=An(Ki.slice(0,Dn).join("-")),ii)return ii;if(Bn&&Bn.length>=Dn&&Vu(Ki,Bn)>=Dn-1)break;Dn--}pn++}return rc}function hh(cn){return!!(cn&&cn.match("^[^/\\\\]*$"))}function An(cn){var pn=null,Dn;if(Os[cn]===void 0&&en&&en.exports&&hh(cn))try{pn=rc._abbr,Dn=commonjsRequire,Dn("./locale/"+cn),gi(pn)}catch{Os[cn]=null}return Os[cn]}function gi(cn,pn){var Dn;return cn&&(hn(pn)?Dn=ua(cn):Dn=Ii(cn,pn),Dn?rc=Dn:typeof console<"u"&&console.warn&&console.warn("Locale "+cn+" not found. Did you forget to load it?")),rc._abbr}function Ii(cn,pn){if(pn!==null){var Dn,Bn=ou;if(pn.abbr=cn,Os[cn]!=null)ci("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Bn=Os[cn]._config;else if(pn.parentLocale!=null)if(Os[pn.parentLocale]!=null)Bn=Os[pn.parentLocale]._config;else if(Dn=An(pn.parentLocale),Dn!=null)Bn=Dn._config;else return Wc[pn.parentLocale]||(Wc[pn.parentLocale]=[]),Wc[pn.parentLocale].push({name:cn,config:pn}),null;return Os[cn]=new ji(Ci(Bn,pn)),Wc[cn]&&Wc[cn].forEach(function(ii){Ii(ii.name,ii.config)}),gi(cn),Os[cn]}else return delete Os[cn],null}function Xi(cn,pn){if(pn!=null){var Dn,Bn,ii=ou;Os[cn]!=null&&Os[cn].parentLocale!=null?Os[cn].set(Ci(Os[cn]._config,pn)):(Bn=An(cn),Bn!=null&&(ii=Bn._config),pn=Ci(ii,pn),Bn==null&&(pn.abbr=cn),Dn=new ji(pn),Dn.parentLocale=Os[cn],Os[cn]=Dn),gi(cn)}else Os[cn]!=null&&(Os[cn].parentLocale!=null?(Os[cn]=Os[cn].parentLocale,cn===gi()&&gi(cn)):Os[cn]!=null&&delete Os[cn]);return Os[cn]}function ua(cn){var pn;if(cn&&cn._locale&&cn._locale._abbr&&(cn=cn._locale._abbr),!cn)return rc;if(!rn(cn)){if(pn=An(cn),pn)return pn;cn=[cn]}return _d(cn)}function Aa(){return Yi(Os)}function Va(cn){var pn,Dn=cn._a;return Dn&&Tn(cn).overflow===-2&&(pn=Dn[Fa]<0||Dn[Fa]>11?Fa:Dn[us]<1||Dn[us]>$u(Dn[ia],Dn[Fa])?us:Dn[as]<0||Dn[as]>24||Dn[as]===24&&(Dn[Cs]!==0||Dn[to]!==0||Dn[co]!==0)?as:Dn[Cs]<0||Dn[Cs]>59?Cs:Dn[to]<0||Dn[to]>59?to:Dn[co]<0||Dn[co]>999?co:-1,Tn(cn)._overflowDayOfYear&&(pn<ia||pn>us)&&(pn=us),Tn(cn)._overflowWeeks&&pn===-1&&(pn=tc),Tn(cn)._overflowWeekday&&pn===-1&&(pn=Vc),Tn(cn).overflow=pn),cn}var Ms=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vs=/Z|[+-]\d\d(?::?\d\d)?/,Rs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ro=/^\/?Date\((-?\d+)/i,Qo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Lo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jo(cn){var pn,Dn,Bn=cn._i,ii=Ms.exec(Bn)||xs.exec(Bn),Ki,Pa,Ls,Ks,wo=Rs.length,Zu=Qs.length;if(ii){for(Tn(cn).iso=!0,pn=0,Dn=wo;pn<Dn;pn++)if(Rs[pn][1].exec(ii[1])){Pa=Rs[pn][0],Ki=Rs[pn][2]!==!1;break}if(Pa==null){cn._isValid=!1;return}if(ii[3]){for(pn=0,Dn=Zu;pn<Dn;pn++)if(Qs[pn][1].exec(ii[3])){Ls=(ii[2]||" ")+Qs[pn][0];break}if(Ls==null){cn._isValid=!1;return}}if(!Ki&&Ls!=null){cn._isValid=!1;return}if(ii[4])if(Vs.exec(ii[4]))Ks="Z";else{cn._isValid=!1;return}cn._f=Pa+(Ls||"")+(Ks||""),Io(cn)}else cn._isValid=!1}function zo(cn,pn,Dn,Bn,ii,Ki){var Pa=[dc(cn),tu.indexOf(pn),parseInt(Dn,10),parseInt(Bn,10),parseInt(ii,10)];return Ki&&Pa.push(parseInt(Ki,10)),Pa}function dc(cn){var pn=parseInt(cn,10);return pn<=49?2e3+pn:pn<=999?1900+pn:pn}function Uc(cn){return cn.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _c(cn,pn,Dn){if(cn){var Bn=ku.indexOf(cn),ii=new Date(pn[0],pn[1],pn[2]).getDay();if(Bn!==ii)return Tn(Dn).weekdayMismatch=!0,Dn._isValid=!1,!1}return!0}function Hu(cn,pn,Dn){if(cn)return Lo[cn];if(pn)return 0;var Bn=parseInt(Dn,10),ii=Bn%100,Ki=(Bn-ii)/100;return Ki*60+ii}function lu(cn){var pn=Qo.exec(Uc(cn._i)),Dn;if(pn){if(Dn=zo(pn[4],pn[3],pn[2],pn[5],pn[6],pn[7]),!_c(pn[1],Dn,cn))return;cn._a=Dn,cn._tzm=Hu(pn[8],pn[9],pn[10]),cn._d=Hc.apply(null,cn._a),cn._d.setUTCMinutes(cn._d.getUTCMinutes()-cn._tzm),Tn(cn).rfc2822=!0}else cn._isValid=!1}function pc(cn){var pn=Ro.exec(cn._i);if(pn!==null){cn._d=new Date(+pn[1]);return}if(jo(cn),cn._isValid===!1)delete cn._isValid;else return;if(lu(cn),cn._isValid===!1)delete cn._isValid;else return;cn._strict?cn._isValid=!1:nn.createFromInputFallback(cn)}nn.createFromInputFallback=fi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(cn){cn._d=new Date(cn._i+(cn._useUTC?" UTC":""))});function ic(cn,pn,Dn){return cn??pn??Dn}function id(cn){var pn=new Date(nn.now());return cn._useUTC?[pn.getUTCFullYear(),pn.getUTCMonth(),pn.getUTCDate()]:[pn.getFullYear(),pn.getMonth(),pn.getDate()]}function cu(cn){var pn,Dn,Bn=[],ii,Ki,Pa;if(!cn._d){for(ii=id(cn),cn._w&&cn._a[us]==null&&cn._a[Fa]==null&&Mu(cn),cn._dayOfYear!=null&&(Pa=ic(cn._a[ia],ii[ia]),(cn._dayOfYear>Yo(Pa)||cn._dayOfYear===0)&&(Tn(cn)._overflowDayOfYear=!0),Dn=Hc(Pa,0,cn._dayOfYear),cn._a[Fa]=Dn.getUTCMonth(),cn._a[us]=Dn.getUTCDate()),pn=0;pn<3&&cn._a[pn]==null;++pn)cn._a[pn]=Bn[pn]=ii[pn];for(;pn<7;pn++)cn._a[pn]=Bn[pn]=cn._a[pn]==null?pn===2?1:0:cn._a[pn];cn._a[as]===24&&cn._a[Cs]===0&&cn._a[to]===0&&cn._a[co]===0&&(cn._nextDay=!0,cn._a[as]=0),cn._d=(cn._useUTC?Hc:Xo).apply(null,Bn),Ki=cn._useUTC?cn._d.getUTCDay():cn._d.getDay(),cn._tzm!=null&&cn._d.setUTCMinutes(cn._d.getUTCMinutes()-cn._tzm),cn._nextDay&&(cn._a[as]=24),cn._w&&typeof cn._w.d<"u"&&cn._w.d!==Ki&&(Tn(cn).weekdayMismatch=!0)}}function Mu(cn){var pn,Dn,Bn,ii,Ki,Pa,Ls,Ks,wo;pn=cn._w,pn.GG!=null||pn.W!=null||pn.E!=null?(Ki=1,Pa=4,Dn=ic(pn.GG,cn._a[ia],no(Ds(),1,4).year),Bn=ic(pn.W,1),ii=ic(pn.E,1),(ii<1||ii>7)&&(Ks=!0)):(Ki=cn._locale._week.dow,Pa=cn._locale._week.doy,wo=no(Ds(),Ki,Pa),Dn=ic(pn.gg,cn._a[ia],wo.year),Bn=ic(pn.w,wo.week),pn.d!=null?(ii=pn.d,(ii<0||ii>6)&&(Ks=!0)):pn.e!=null?(ii=pn.e+Ki,(pn.e<0||pn.e>6)&&(Ks=!0)):ii=Ki),Bn<1||Bn>Co(Dn,Ki,Pa)?Tn(cn)._overflowWeeks=!0:Ks!=null?Tn(cn)._overflowWeekday=!0:(Ls=ru(Dn,Bn,ii,Ki,Pa),cn._a[ia]=Ls.year,cn._dayOfYear=Ls.dayOfYear)}nn.ISO_8601=function(){},nn.RFC_2822=function(){};function Io(cn){if(cn._f===nn.ISO_8601){jo(cn);return}if(cn._f===nn.RFC_2822){lu(cn);return}cn._a=[],Tn(cn).empty=!0;var pn=""+cn._i,Dn,Bn,ii,Ki,Pa,Ls=pn.length,Ks=0,wo,Zu;for(ii=Oi(cn._f,cn._locale).match(Wi)||[],Zu=ii.length,Dn=0;Dn<Zu;Dn++)Ki=ii[Dn],Bn=(pn.match(Jo(Ki,cn))||[])[0],Bn&&(Pa=pn.substr(0,pn.indexOf(Bn)),Pa.length>0&&Tn(cn).unusedInput.push(Pa),pn=pn.slice(pn.indexOf(Bn)+Bn.length),Ks+=Bn.length),Ni[Ki]?(Bn?Tn(cn).empty=!1:Tn(cn).unusedTokens.push(Ki),ho(Ki,Bn,cn)):cn._strict&&!Bn&&Tn(cn).unusedTokens.push(Ki);Tn(cn).charsLeftOver=Ls-Ks,pn.length>0&&Tn(cn).unusedInput.push(pn),cn._a[as]<=12&&Tn(cn).bigHour===!0&&cn._a[as]>0&&(Tn(cn).bigHour=void 0),Tn(cn).parsedDateParts=cn._a.slice(0),Tn(cn).meridiem=cn._meridiem,cn._a[as]=pd(cn._locale,cn._a[as],cn._meridiem),wo=Tn(cn).era,wo!==null&&(cn._a[ia]=cn._locale.erasConvertYear(wo,cn._a[ia])),cu(cn),Va(cn)}function pd(cn,pn,Dn){var Bn;return Dn==null?pn:cn.meridiemHour!=null?cn.meridiemHour(pn,Dn):(cn.isPM!=null&&(Bn=cn.isPM(Dn),Bn&&pn<12&&(pn+=12),!Bn&&pn===12&&(pn=0)),pn)}function gd(cn){var pn,Dn,Bn,ii,Ki,Pa,Ls=!1,Ks=cn._f.length;if(Ks===0){Tn(cn).invalidFormat=!0,cn._d=new Date(NaN);return}for(ii=0;ii<Ks;ii++)Ki=0,Pa=!1,pn=bi({},cn),cn._useUTC!=null&&(pn._useUTC=cn._useUTC),pn._f=cn._f[ii],Io(pn),En(pn)&&(Pa=!0),Ki+=Tn(pn).charsLeftOver,Ki+=Tn(pn).unusedTokens.length*10,Tn(pn).score=Ki,Ls?Ki<Bn&&(Bn=Ki,Dn=pn):(Bn==null||Ki<Bn||Pa)&&(Bn=Ki,Dn=pn,Pa&&(Ls=!0));fn(cn,Dn||pn)}function Cd(cn){if(!cn._d){var pn=ca(cn._i),Dn=pn.day===void 0?pn.date:pn.day;cn._a=yn([pn.year,pn.month,Dn,pn.hour,pn.minute,pn.second,pn.millisecond],function(Bn){return Bn&&parseInt(Bn,10)}),cu(cn)}}function rh(cn){var pn=new _i(Va(To(cn)));return pn._nextDay&&(pn.add(1,"d"),pn._nextDay=void 0),pn}function To(cn){var pn=cn._i,Dn=cn._f;return cn._locale=cn._locale||ua(cn._l),pn===null||Dn===void 0&&pn===""?Rn({nullInput:!0}):(typeof pn=="string"&&(cn._i=pn=cn._locale.preparse(pn)),oi(pn)?new _i(Va(pn)):(gn(pn)?cn._d=pn:rn(Dn)?gd(cn):Dn?Io(cn):Nc(cn),En(cn)||(cn._d=null),cn))}function Nc(cn){var pn=cn._i;hn(pn)?cn._d=new Date(nn.now()):gn(pn)?cn._d=new Date(pn.valueOf()):typeof pn=="string"?pc(cn):rn(pn)?(cn._a=yn(pn.slice(0),function(Dn){return parseInt(Dn,10)}),cu(cn)):on(pn)?Cd(cn):mn(pn)?cn._d=new Date(pn):nn.createFromInputFallback(cn)}function ad(cn,pn,Dn,Bn,ii){var Ki={};return(pn===!0||pn===!1)&&(Bn=pn,pn=void 0),(Dn===!0||Dn===!1)&&(Bn=Dn,Dn=void 0),(on(cn)&&dn(cn)||rn(cn)&&cn.length===0)&&(cn=void 0),Ki._isAMomentObject=!0,Ki._useUTC=Ki._isUTC=ii,Ki._l=Dn,Ki._i=cn,Ki._f=pn,Ki._strict=Bn,rh(Ki)}function Ds(cn,pn,Dn,Bn){return ad(cn,pn,Dn,Bn,!1)}var qc=fi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var cn=Ds.apply(null,arguments);return this.isValid()&&cn.isValid()?cn<this?this:cn:Rn()}),Gc=fi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var cn=Ds.apply(null,arguments);return this.isValid()&&cn.isValid()?cn>this?this:cn:Rn()});function yd(cn,pn){var Dn,Bn;if(pn.length===1&&rn(pn[0])&&(pn=pn[0]),!pn.length)return Ds();for(Dn=pn[0],Bn=1;Bn<pn.length;++Bn)(!pn[Bn].isValid()||pn[Bn][cn](Dn))&&(Dn=pn[Bn]);return Dn}function ju(){var cn=[].slice.call(arguments,0);return yd("isBefore",cn)}function zu(){var cn=[].slice.call(arguments,0);return yd("isAfter",cn)}var Lu=function(){return Date.now?Date.now():+new Date},Wo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Zl(cn){var pn,Dn=!1,Bn,ii=Wo.length;for(pn in cn)if(sn(cn,pn)&&!(Es.call(Wo,pn)!==-1&&(cn[pn]==null||!isNaN(cn[pn]))))return!1;for(Bn=0;Bn<ii;
vendor: 4,229 bytes, line 84
84++Bn)if(cn[Wo[Bn]]){if(Dn)return!1;parseFloat(cn[Wo[Bn]])!==os(cn[Wo[Bn]])&&(Dn=!0)}return!0}function uu(){return this._isValid}function Wu(){return Gs(NaN)}function vc(cn){var pn=ca(cn),Dn=pn.year||0,Bn=pn.quarter||0,ii=pn.month||0,Ki=pn.week||pn.isoWeek||0,Pa=pn.day||0,Ls=pn.hour||0,Ks=pn.minute||0,wo=pn.second||0,Zu=pn.millisecond||0;this._isValid=Zl(pn),this._milliseconds=+Zu+wo*1e3+Ks*6e4+Ls*1e3*60*60,this._days=+Pa+Ki*7,this._months=+ii+Bn*3+Dn*12,this._data={},this._locale=ua(),this._bubble()}function du(cn){return cn instanceof vc}function hc(cn){return cn<0?Math.round(-1*cn)*-1:Math.round(cn)}function Uo(cn,pn,Dn){var Bn=Math.min(cn.length,pn.length),ii=Math.abs(cn.length-pn.length),Ki=0,Pa;for(Pa=0;Pa<Bn;Pa++)os(cn[Pa])!==os(pn[Pa])&&Ki++;return Ki+ii}function hu(cn,pn){yi(cn,0,0,function(){var Dn=this.utcOffset(),Bn="+";return Dn<0&&(Dn=-Dn,Bn="-"),Bn+$i(~~(Dn/60),2)+pn+$i(~~Dn%60,2)})}hu("Z",":"),hu("ZZ",""),Ma("Z",bs),Ma("ZZ",bs),ys(["Z","ZZ"],function(cn,pn,Dn){Dn._useUTC=!0,Dn._tzm=Ho(bs,cn)});var xu=/([\+\-]|\d\d)/gi;function Ho(cn,pn){var Dn=(pn||"").match(cn),Bn,ii,Ki;return Dn===null?null:(Bn=Dn[Dn.length-1]||[],ii=(Bn+"").match(xu)||["-",0,0],Ki=+(ii[1]*60)+os(ii[2]),Ki===0?0:ii[0]==="+"?Ki:-Ki)}function Zc(cn,pn){var Dn,Bn;return pn._isUTC?(Dn=pn.clone(),Bn=(oi(cn)||gn(cn)?cn.valueOf():Ds(cn).valueOf())-Dn.valueOf(),Dn._d.setTime(Dn._d.valueOf()+Bn),nn.updateOffset(Dn,!1),Dn):Ds(cn).local()}function Su(cn){return-Math.round(cn._d.getTimezoneOffset())}nn.updateOffset=function(){};function vd(cn,pn,Dn){var Bn=this._offset||0,ii;if(!this.isValid())return cn!=null?this:NaN;if(cn!=null){if(typeof cn=="string"){if(cn=Ho(bs,cn),cn===null)return this}else Math.abs(cn)<16&&!Dn&&(cn=cn*60);return!this._isUTC&&pn&&(ii=Su(this)),this._offset=cn,this._isUTC=!0,ii!=null&&this.add(ii,"m"),Bn!==cn&&(!pn||this._changeInProgress?wd(this,Gs(cn-Bn,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,nn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?Bn:Su(this)}function sd(cn,pn){return cn!=null?(typeof cn!="string"&&(cn=-cn),this.utcOffset(cn,pn),this):-this.utcOffset()}function Tu(cn){return this.utcOffset(0,cn)}function fu(cn){return this._isUTC&&(this.utcOffset(0,cn),this._isUTC=!1,cn&&this.subtract(Su(this),"m")),this}function Ec(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var cn=Ho(oo,this._i);cn!=null?this.utcOffset(cn):this.utcOffset(0,!0)}return this}function Du(cn){return this.isValid()?(cn=cn?Ds(cn).utcOffset():0,(this.utcOffset()-cn)%60===0):!1}function Pu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function od(){if(!hn(this._isDSTShifted))return this._isDSTShifted;var cn={},pn;return bi(cn,this),cn=To(cn),cn._a?(pn=cn._isUTC?bn(cn._a):Ds(cn._a),this._isDSTShifted=this.isValid()&&Uo(cn._a,pn.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Kc(){return this.isValid()?!this._isUTC:!1}function Oc(){return this.isValid()?this._isUTC:!1}function _o(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gs(cn,pn){var Dn=cn,Bn=null,ii,Ki,Pa;return du(cn)?Dn={ms:cn._milliseconds,d:cn._days,M:cn._months}:mn(cn)||!isNaN(+cn)?(Dn={},pn?Dn[pn]=+cn:Dn.milliseconds=+cn):(Bn=xo.exec(cn))?(ii=Bn[1]==="-"?-1:1,Dn={y:0,d:os(Bn[us])*ii,h:os(Bn[as])*ii,m:os(Bn[Cs])*ii,s:os(Bn[to])*ii,ms:os(hc(Bn[co]*1e3))*ii}):(Bn=qo.exec(cn))?(ii=Bn[1]==="-"?-1:1,Dn={y:Go(Bn[2],ii),M:Go(Bn[3],ii),w:Go(Bn[4],ii),d:Go(Bn[5],ii),h:Go(Bn[6],ii),m:Go(Bn[7],ii),s:Go(Bn[8],ii)}):Dn==null?Dn={}:typeof Dn=="object"&&("from"in Dn||"to"in Dn)&&(Pa=Uu(Ds(Dn.from),Ds(Dn.to)),Dn={},Dn.ms=Pa.milliseconds,Dn.M=Pa.months),Ki=new vc(Dn),du(cn)&&sn(cn,"_locale")&&(Ki._locale=cn._locale),du(cn)&&sn(cn,"_isValid")&&(Ki._isValid=cn._isValid),Ki}Gs.fn=vc.prototype,Gs.invalid=Wu;function Go(cn,pn){var Dn=cn&&parseFloat(cn.replace(",","."));return(isNaN(Dn)?0:Dn)*pn}function wc(cn,pn){var Dn={};
vendor: 17,324 bytes, line 84
84return Dn.months=pn.month()-cn.month()+(pn.year()-cn.year())*12,cn.clone().add(Dn.months,"M").isAfter(pn)&&--Dn.months,Dn.milliseconds=+pn-+cn.clone().add(Dn.months,"M"),Dn}function Uu(cn,pn){var Dn;return cn.isValid()&&pn.isValid()?(pn=Zc(pn,cn),cn.isBefore(pn)?Dn=wc(cn,pn):(Dn=wc(pn,cn),Dn.milliseconds=-Dn.milliseconds,Dn.months=-Dn.months),Dn):{milliseconds:0,months:0}}function Bd(cn,pn){return function(Dn,Bn){var ii,Ki;return Bn!==null&&!isNaN(+Bn)&&(ci(pn,"moment()."+pn+"(period, number) is deprecated. Please use moment()."+pn+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ki=Dn,Dn=Bn,Bn=Ki),ii=Gs(Dn,Bn),wd(this,ii,cn),this}}function wd(cn,pn,Dn,Bn){var ii=pn._milliseconds,Ki=hc(pn._days),Pa=hc(pn._months);cn.isValid()&&(Bn=Bn??!0,Pa&&nu(cn,Tc(cn,"Month")+Pa*Dn),Ki&&Ku(cn,"Date",Tc(cn,"Date")+Ki*Dn),ii&&cn._d.setTime(cn._d.valueOf()+ii*Dn),Bn&&nn.updateOffset(cn,Ki||Pa))}var Oh=Bd(1,"add"),Mh=Bd(-1,"subtract");function fh(cn){return typeof cn=="string"||cn instanceof String}function Ad(cn){return oi(cn)||gn(cn)||fh(cn)||mn(cn)||Nu(cn)||Rh(cn)||cn===null||cn===void 0}function Rh(cn){var pn=on(cn)&&!dn(cn),Dn=!1,Bn=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ii,Ki,Pa=Bn.length;for(ii=0;ii<Pa;ii+=1)Ki=Bn[ii],Dn=Dn||sn(cn,Ki);return pn&&Dn}function Nu(cn){var pn=rn(cn),Dn=!1;return pn&&(Dn=cn.filter(function(Bn){return!mn(Bn)&&fh(cn)}).length===0),pn&&Dn}function Lh(cn){var pn=on(cn)&&!dn(cn),Dn=!1,Bn=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],ii,Ki;for(ii=0;ii<Bn.length;ii+=1)Ki=Bn[ii],Dn=Dn||sn(cn,Ki);return pn&&Dn}function xh(cn,pn){var Dn=cn.diff(pn,"days",!0);return Dn<-6?"sameElse":Dn<-1?"lastWeek":Dn<0?"lastDay":Dn<1?"sameDay":Dn<2?"nextDay":Dn<7?"nextWeek":"sameElse"}function Ih(cn,pn){arguments.length===1&&(arguments[0]?Ad(arguments[0])?(cn=arguments[0],pn=void 0):Lh(arguments[0])&&(pn=arguments[0],cn=void 0):(cn=void 0,pn=void 0));var Dn=cn||Ds(),Bn=Zc(Dn,this).startOf("day"),ii=nn.calendarFormat(this,Bn)||"sameElse",Ki=pn&&(di(pn[ii])?pn[ii].call(this,Dn):pn[ii]);return this.format(Ki||this.localeData().calendar(ii,this,Ds(Dn)))}function Cu(){return new _i(this)}function Sh(cn,pn){var Dn=oi(cn)?cn:Ds(cn);return this.isValid()&&Dn.isValid()?(pn=qi(pn)||"millisecond",pn==="millisecond"?this.valueOf()>Dn.valueOf():Dn.valueOf()<this.clone().startOf(pn).valueOf()):!1}function Th(cn,pn){var Dn=oi(cn)?cn:Ds(cn);return this.isValid()&&Dn.isValid()?(pn=qi(pn)||"millisecond",pn==="millisecond"?this.valueOf()<Dn.valueOf():this.clone().endOf(pn).valueOf()<Dn.valueOf()):!1}function Yd(cn,pn,Dn,Bn){var ii=oi(cn)?cn:Ds(cn),Ki=oi(pn)?pn:Ds(pn);return this.isValid()&&ii.isValid()&&Ki.isValid()?(Bn=Bn||"()",(Bn[0]==="("?this.isAfter(ii,Dn):!this.isBefore(ii,Dn))&&(Bn[1]===")"?this.isBefore(Ki,Dn):!this.isAfter(Ki,Dn))):!1}function Fh(cn,pn){var Dn=oi(cn)?cn:Ds(cn),Bn;return this.isValid()&&Dn.isValid()?(pn=qi(pn)||"millisecond",pn==="millisecond"?this.valueOf()===Dn.valueOf():(Bn=Dn.valueOf(),this.clone().startOf(pn).valueOf()<=Bn&&Bn<=this.clone().endOf(pn).valueOf())):!1}function $d(cn,pn){return this.isSame(cn,pn)||this.isAfter(cn,pn)}function ld(cn,pn){return this.isSame(cn,pn)||this.isBefore(cn,pn)}function Cc(cn,pn,Dn){var Bn,ii,Ki;if(!this.isValid())return NaN;if(Bn=Zc(cn,this),!Bn.isValid())return NaN;switch(ii=(Bn.utcOffset()-this.utcOffset())*6e4,pn=qi(pn),pn){case"year":Ki=ac(this,Bn)/12;break;case"month":Ki=ac(this,Bn);break;case"quarter":Ki=ac(this,Bn)/3;break;case"second":Ki=(this-Bn)/1e3;break;case"minute":Ki=(this-Bn)/6e4;break;case"hour":Ki=(this-Bn)/36e5;break;case"day":Ki=(this-Bn-ii)/864e5;break;case"week":Ki=(this-Bn-ii)/6048e5;break;default:Ki=this-Bn}return Dn?Ki:fs(Ki)}function ac(cn,pn){if(cn.date()<pn.date())return-ac(pn,cn);var Dn=(pn.year()-cn.year())*12+(pn.month()-cn.month()),Bn=cn.clone().add(Dn,"months"),ii,Ki;return pn-Bn<0?(ii=cn.clone().add(Dn-1,"months"),Ki=(pn-Bn)/(Bn-ii)):(ii=cn.clone().add(Dn+1,"months"),Ki=(pn-Bn)/(ii-Bn)),-(Dn+Ki)||0}nn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",nn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ih(cn){if(!this.isValid())return null;var pn=cn!==!0,Dn=pn?this.clone().utc():this;return Dn.year()<0||Dn.year()>9999?Ji(Dn,pn?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):di(Date.prototype.toISOString)?pn?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ji(Dn,"Z")):Ji(Dn,pn?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Dh(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var cn="moment",pn="",Dn,Bn,ii,Ki;return this.isLocal()||(cn=this.utcOffset()===0?"moment.utc":"moment.parseZone",pn="Z"),Dn="["+cn+'("]',Bn=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ii="-MM-DD[T]HH:mm:ss.SSS",Ki=pn+'[")]',this.format(Dn+Bn+ii+Ki)}function ah(cn){cn||(cn=this.isUtc()?nn.defaultFormatUtc:nn.defaultFormat);var pn=Ji(this,cn);return this.localeData().postformat(pn)}function sh(cn,pn){return this.isValid()&&(oi(cn)&&cn.isValid()||Ds(cn).isValid())?Gs({to:this,from:cn}).locale(this.locale()).humanize(!pn):this.localeData().invalidDate()}function _h(cn){return this.from(Ds(),cn)}function Vh(cn,pn){return this.isValid()&&(oi(cn)&&cn.isValid()||Ds(cn).isValid())?Gs({from:this,to:cn}).locale(this.locale()).humanize(!pn):this.localeData().invalidDate()}function ph(cn){return this.to(Ds(),cn)}function Ed(cn){var pn;return cn===void 0?this._locale._abbr:(pn=ua(cn),pn!=null&&(this._locale=pn),this)}var Od=fi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(cn){return cn===void 0?this.localeData():this.locale(cn)});function un(){return this._locale}var _n=1e3,kn=60*_n,$n=60*kn,ai=(365*400+97)*24*$n;function Mi(cn,pn){return(cn%pn+pn)%pn}function Gi(cn,pn,Dn){return cn<100&&cn>=0?new Date(cn+400,pn,Dn)-ai:new Date(cn,pn,Dn).valueOf()}function ma(cn,pn,Dn){return cn<100&&cn>=0?Date.UTC(cn+400,pn,Dn)-ai:Date.UTC(cn,pn,Dn)}function Sa(cn){var pn,Dn;if(cn=qi(cn),cn===void 0||cn==="millisecond"||!this.isValid())return this;switch(Dn=this._isUTC?ma:Gi,cn){case"year":pn=Dn(this.year(),0,1);break;case"quarter":pn=Dn(this.year(),this.month()-this.month()%3,1);break;case"month":pn=Dn(this.year(),this.month(),1);break;case"week":pn=Dn(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":pn=Dn(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":pn=Dn(this.year(),this.month(),this.date());break;case"hour":pn=this._d.valueOf(),pn-=Mi(pn+(this._isUTC?0:this.utcOffset()*kn),$n);break;case"minute":pn=this._d.valueOf(),pn-=Mi(pn,kn);break;case"second":pn=this._d.valueOf(),pn-=Mi(pn,_n);break}return this._d.setTime(pn),nn.updateOffset(this,!0),this}function Wa(cn){var pn,Dn;if(cn=qi(cn),cn===void 0||cn==="millisecond"||!this.isValid())return this;switch(Dn=this._isUTC?ma:Gi,cn){case"year":pn=Dn(this.year()+1,0,1)-1;break;case"quarter":pn=Dn(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":pn=Dn(this.year(),this.month()+1,1)-1;break;case"week":pn=Dn(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":pn=Dn(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":pn=Dn(this.year(),this.month(),this.date()+1)-1;break;case"hour":pn=this._d.valueOf(),pn+=$n-Mi(pn+(this._isUTC?0:this.utcOffset()*kn),$n)-1;break;case"minute":pn=this._d.valueOf(),pn+=kn-Mi(pn,kn)-1;break;case"second":pn=this._d.valueOf(),pn+=_n-Mi(pn,_n)-1;break}return this._d.setTime(pn),nn.updateOffset(this,!0),this}function ms(){return this._d.valueOf()-(this._offset||0)*6e4}function Ys(){return Math.floor(this.valueOf()/1e3)}function eo(){return new Date(this.valueOf())}function bc(){var cn=this;return[cn.year(),cn.month(),cn.date(),cn.hour(),cn.minute(),cn.second(),cn.millisecond()]}function sc(){var cn=this;return{years:cn.year(),months:cn.month(),date:cn.date(),hours:cn.hours(),minutes:cn.minutes(),seconds:cn.seconds(),milliseconds:cn.milliseconds()}}function Jc(){return this.isValid()?this.toISOString():null}function Bc(){return En(this)}function Rd(){return fn({},Tn(this))}function Xh(){return Tn(this).overflow}function cd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}yi("N",0,0,"eraAbbr"),yi("NN",0,0,"eraAbbr"),yi("NNN",0,0,"eraAbbr"),yi("NNNN",0,0,"eraName"),yi("NNNNN",0,0,"eraNarrow"),yi("y",["y",1],"yo","eraYear"),yi("y",["yy",2],0,"eraYear"),yi("y",["yyy",3],0,"eraYear"),yi("y",["yyyy",4],0,"eraYear"),Ma("N",kd),Ma("NN",kd),Ma("NNN",kd),Ma("NNNN",jh),Ma("NNNNN",Lf),ys(["N","NN","NNN","NNNN","NNNNN"],function(cn,pn,Dn,Bn){var ii=Dn._locale.erasParse(cn,Bn,Dn._strict);ii?Tn(Dn).era=ii:Tn(Dn).invalidEra=cn}),Ma("y",Ws),Ma("yy",Ws),Ma("yyy",Ws),Ma("yyyy",Ws),Ma("yo",zh),ys(["y","yy","yyy","yyyy"],ia),ys(["yo"],function(cn,pn,Dn,Bn){var ii;Dn._locale._eraYearOrdinalRegex&&(ii=cn.match(Dn._locale._eraYearOrdinalRegex)),Dn._locale.eraYearOrdinalParse?pn[ia]=Dn._locale.eraYearOrdinalParse(cn,ii):pn[ia]=parseInt(cn,10)});function mu(cn,pn){var Dn,Bn,ii,Ki=this._eras||ua("en")._eras;for(Dn=0,Bn=Ki.length;Dn<Bn;++Dn){switch(typeof Ki[Dn].since){case"string":ii=nn(Ki[Dn].since).startOf("day"),Ki[Dn].since=ii.valueOf();break}switch(typeof Ki[Dn].until){case"undefined":Ki[Dn].until=1/0;break;case"string":ii=nn(Ki[Dn].until).startOf("day").valueOf(),Ki[Dn].until=ii.valueOf();break}}return Ki}function Bu(cn,pn,Dn){var Bn,ii,Ki=this.eras(),Pa,Ls,Ks;for(cn=cn.toUpperCase(),Bn=0,ii=Ki.length;Bn<ii;++Bn)if(Pa=Ki[Bn].name.toUpperCase(),Ls=Ki[Bn].abbr.toUpperCase(),Ks=Ki[Bn].narrow.toUpperCase(),Dn)switch(pn){case"N":case"NN":case"NNN":if(Ls===cn)return Ki[Bn];break;case"NNNN":if(Pa===cn)return Ki[Bn];break;case"NNNNN":if(Ks===cn)return Ki[Bn];break}else if([Pa,Ls,Ks].indexOf(cn)>=0)return Ki[Bn]}function Qh(cn,pn){var Dn=cn.since<=cn.until?1:-1;return pn===void 0?nn(cn.since).year():nn(cn.since).year()+(pn-cn.offset)*Dn}function Ph(){var cn,pn,Dn,Bn=this.localeData().eras();for(cn=0,pn=Bn.length;cn<pn;++cn)if(Dn=this.clone().startOf("day").valueOf(),Bn[cn].since<=Dn&&Dn<=Bn[cn].until||Bn[cn].until<=Dn&&Dn<=Bn[cn].since)return Bn[cn].name;return""}function Do(){var cn,pn,Dn,Bn=this.localeData().eras();for(cn=0,pn=Bn.length;cn<pn;++cn)if(Dn=this.clone().startOf("day").valueOf(),Bn[cn].since<=Dn&&Dn<=Bn[cn].until||Bn[cn].until<=Dn&&Dn<=Bn[cn].since)return Bn[cn].narrow;return""}function Mc(){var cn,pn,Dn,Bn=this.localeData().eras();for(cn=0,pn=Bn.length;cn<pn;++cn)if(Dn=this.clone().startOf("day").valueOf(),Bn[cn].since<=Dn&&Dn<=Bn[cn].until||Bn[cn].until<=Dn&&Dn<=Bn[cn].since)return Bn[cn].abbr;return""}function ef(){var cn,pn,Dn,Bn,ii=this.localeData().eras();for(cn=0,pn=ii.length;cn<pn;++cn)if(Dn=ii[cn].since<=ii[cn].until?1:-1,Bn=this.clone().startOf("day").valueOf(),ii[cn].since<=Bn&&Bn<=ii[cn].until||ii[cn].until<=Bn&&Bn<=ii[cn].since)return(this.year()-nn(ii[cn].since).year())*Dn+ii[cn].offset;return this.year()}function tf(cn){return sn(this,"_erasNameRegex")||Id.call(this),cn?this._erasNameRegex:this._erasRegex}function Hh(cn){return sn(this,"_erasAbbrRegex")||Id.call(this),cn?this._erasAbbrRegex:this._erasRegex}function gh(cn){return sn(this,"_erasNarrowRegex")||Id.call(this),cn?this._erasNarrowRegex:this._erasRegex}function kd(cn,pn){return pn.erasAbbrRegex(cn)}function jh(cn,pn){return pn.erasNameRegex(cn)}function Lf(cn,pn){return pn.erasNarrowRegex(cn)}function zh(cn,pn){return pn._eraYearOrdinalRegex||Ws}function Id(){var cn=[],pn=[],Dn=[],Bn=[],ii,Ki,Pa,Ls,Ks,wo=this.eras();for(ii=0,Ki=wo.length;ii<Ki;++ii)Pa=ko(wo[ii].name),Ls=ko(wo[ii].abbr),Ks=ko(wo[ii].narrow),pn.push(Pa),cn.push(Ls),Dn.push(Ks),Bn.push(Pa),Bn.push(Ls),Bn.push(Ks);this._erasRegex=new RegExp("^("+Bn.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+pn.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+cn.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Dn.join("|")+")","i")}yi(0,["gg",2],0,function(){return this.weekYear()%100}),yi(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qu(cn,pn){yi(0,[cn,cn.length],0,pn)}qu("gggg","weekYear"),qu("ggggg","weekYear"),qu("GGGG","isoWeekYear"),qu("GGGGG","isoWeekYear"),Ma("G",ps),Ma("g",ps),Ma("GG",Xa,Ea),Ma("gg",Xa,Ea),Ma("GGGG",$s,vs),Ma("gggg",$s,vs),Ma("GGGGG",Ps,rs),Ma("ggggg",Ps,rs),Vo(["gggg","ggggg","GGGG","GGGGG"],function(cn,pn,Dn,Bn){pn[Bn.substr(0,2)]=os(cn)}),Vo(["gg","GG"],function(cn,pn,Dn,Bn){pn[Bn]=nn.parseTwoDigitYear(cn)});function nf(cn){return rf.call(this,cn,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function xf(cn){return rf.call(this,cn,this.isoWeek(),this.isoWeekday(),1,4)}function lf(){return Co(this.year(),1,4)}function Sf(){return Co(this.isoWeekYear(),1,4)}function Tf(){var cn=this.localeData()._week;return Co(this.year(),cn.dow,cn.doy)}function Df(){var cn=this.localeData()._week;return Co(this.weekYear(),cn.dow,cn.doy)}function rf(cn,pn,Dn,Bn,ii){var Ki;return cn==null?no(this,Bn,ii).year:(Ki=Co(cn,Bn,ii),pn>Ki&&(pn=Ki),Pf.call(this,cn,pn,Dn,Bn,ii))}function Pf(cn,pn,Dn,Bn,ii){var Ki=ru(cn,pn,Dn,Bn,ii),Pa=Hc(Ki.year,0,Ki.dayOfYear);return this.year(Pa.getUTCFullYear()),this.month(Pa.getUTCMonth()),this.date(Pa.getUTCDate()),this}yi("Q",0,"Qo","quarter"),Ma("Q",pa),ys("Q",function(cn,pn){pn[Fa]=(os(cn)-1)*3});function Nf(cn){return cn==null?Math.ceil((this.month()+1)/3):this.month((cn-1)*3+this.month()%3)}yi("D",["DD",2],"Do","date"),Ma("D",Xa,cs),Ma("DD",Xa,Ea),Ma("Do",function(cn,pn){return cn?pn._dayOfMonthOrdinalParse||pn._ordinalParse:pn._dayOfMonthOrdinalParseLenient}),ys(["D","DD"],us),ys("Do",function(cn,pn){pn[us]=os(cn.match(Xa)[0])});var Wh=nc("Date",!0);yi("DDD",["DDDD",3],"DDDo","dayOfYear"),Ma("DDD",Is),Ma("DDDD",ns),ys(["DDD","DDDD"],function(cn,pn,Dn){Dn._dayOfYear=os(cn)});function Uh(cn){var pn=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return cn==null?pn:this.add(cn-pn,"d")}yi("m",["mm",2],0,"minute"),Ma("m",Xa,ws),Ma("mm",Xa,Ea),ys(["m","mm"],Cs);var Cf=nc("Minutes",!1);yi("s",["ss",2],0,"second"),Ma("s",Xa,ws),Ma("ss",Xa,Ea),ys(["s","ss"],to);var Bf=nc("Seconds",!1);yi("S",0,0,function(){return~~(this.millisecond()/100)}),yi(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),yi(0,["SSS",3],0,"millisecond"),yi(0,["SSSS",4],0,function(){return this.millisecond()*10}),yi(0,["SSSSS",5],0,function(){return this.millisecond()*100}),yi(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),yi(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),yi(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),yi(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ma("S",Is,pa),Ma("SS",Is,Ea),Ma("SSS",Is,ns);var Ac,wn;for(Ac="SSSS";Ac.length<=9;Ac+="S")Ma(Ac,Ws);function Sn(cn,pn){pn[co]=os(("0."+cn)*1e3)}for(Ac="S";Ac.length<=9;Ac+="S")ys(Ac,Sn);wn=nc("Milliseconds",!1),yi("z",0,0,"zoneAbbr"),yi("zz",0,0,"zoneName");function On(){return this._isUTC?"UTC":""}function ri(){return this._isUTC?"Coordinated Universal Time":""}var Vn=_i.prototype;Vn.add=Oh,Vn.calendar=Ih,Vn.clone=Cu,Vn.diff=Cc,Vn.endOf=Wa,Vn.format=ah,Vn.from=sh,Vn.fromNow=_h,Vn.to=Vh,Vn.toNow=ph,Vn.get=Jd,Vn.invalidAt=Xh,Vn.isAfter=Sh,Vn.isBefore=Th,Vn.isBetween=Yd,Vn.isSame=Fh,Vn.isSameOrAfter=$d,Vn.isSameOrBefore=ld,Vn.isValid=Bc,Vn.lang=Od,Vn.locale=Ed,Vn.localeData=un,Vn.max=Gc,Vn.min=qc,Vn.parsingFlags=Rd,Vn.set=ch,Vn.startOf=Sa,Vn.subtract=Mh,Vn.toArray=bc,Vn.toObject=sc,Vn.toDate=eo,Vn.toISOString=ih,Vn.inspect=Dh,typeof Symbol<"u"&&Symbol.for!=null&&(Vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Vn.toJSON=Jc,Vn.toString=mh,Vn.unix=Ys,Vn.valueOf=ms,Vn.creationData=cd,Vn.eraName=Ph,Vn.eraNarrow=Do,Vn.eraAbbr=Mc,Vn.eraYear=ef,Vn.year=uc,Vn.isLeapYear=vu,Vn.weekYear=nf,Vn.isoWeekYear=xf,Vn.quarter=Vn.quarters=Nf,Vn.month=Dc,Vn.daysInMonth=Hs,Vn.week=Vn.weeks=Qd,Vn.isoWeek=Vn.isoWeeks=eh,Vn.weeksInYear=Tf,Vn.weeksInWeekYear=Df,Vn.isoWeeksInYear=lf,Vn.isoWeeksInISOWeekYear=Sf,Vn.date=Wh,Vn.day=Vn.days=Ou,Vn.weekday=ed,Vn.isoWeekday=Ru,Vn.dayOfYear=Uh,Vn.hour=Vn.hours=nh,Vn.minute=Vn.minutes=Cf,Vn.second=Vn.seconds=Bf,Vn.millisecond=Vn.milliseconds=wn,Vn.utcOffset=vd,Vn.utc=Tu,Vn.local=fu,Vn.parseZone=Ec,Vn.hasAlignedHourOffset=Du,Vn.isDST=Pu,Vn.isLocal=Kc,Vn.isUtcOffset=Oc,Vn.isUtc=_o,Vn.isUTC=_o,Vn.zoneAbbr=On,Vn.zoneName=ri,Vn.dates=fi("dates accessor is deprecated. Use date instead.",Wh),Vn.months=fi("months accessor is deprecated. Use month instead",Dc),Vn.years=fi("years accessor is deprecated. Use year instead",uc),Vn.zone=fi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sd),Vn.isDSTShifted=fi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",od);function Li(cn){return Ds(cn*1e3)}function Ti(){return Ds.apply(null,arguments).parseZone()}function Ai(cn){return cn}var xi=ji.prototype;
vendor: 7,006 bytes, line 84
84xi.calendar=Fi,xi.longDateFormat=ea,xi.invalidDate=ti,xi.ordinal=ki,xi.preparse=Ai,xi.postformat=Ai,xi.relativeTime=ta,xi.pastFuture=Ri,xi.set=wi,xi.eras=mu,xi.erasParse=Bu,xi.erasConvertYear=Qh,xi.erasAbbrRegex=Hh,xi.erasNameRegex=tf,xi.erasNarrowRegex=gh,xi.months=Us,xi.monthsShort=bo,xi.monthsParse=Bo,xi.monthsRegex=Pc,xi.monthsShortRegex=$o,xi.week=Xu,xi.firstDayOfYear=hd,xi.firstDayOfWeek=Eu,xi.weekdays=Mo,xi.weekdaysMin=iu,xi.weekdaysShort=dh,xi.weekdaysParse=th,xi.weekdaysRegex=Oo,xi.weekdaysShortRegex=Iu,xi.weekdaysMinRegex=bu,xi.isPM=Nd,xi.meridiem=mc;function Vi(cn,pn,Dn,Bn){var ii=ua(),Ki=bn().set(Bn,pn);return ii[Dn](Ki,cn)}function aa(cn,pn,Dn){if(mn(cn)&&(pn=cn,cn=void 0),cn=cn||"",pn!=null)return Vi(cn,pn,Dn,"month");var Bn,ii=[];for(Bn=0;Bn<12;Bn++)ii[Bn]=Vi(cn,Bn,Dn,"month");return ii}function ga(cn,pn,Dn,Bn){typeof cn=="boolean"?(mn(pn)&&(Dn=pn,pn=void 0),pn=pn||""):(pn=cn,Dn=pn,cn=!1,mn(pn)&&(Dn=pn,pn=void 0),pn=pn||"");var ii=ua(),Ki=cn?ii._week.dow:0,Pa,Ls=[];if(Dn!=null)return Vi(pn,(Dn+Ki)%7,Bn,"day");for(Pa=0;Pa<7;Pa++)Ls[Pa]=Vi(pn,(Pa+Ki)%7,Bn,"day");return Ls}function zi(cn,pn){return aa(cn,pn,"months")}function da(cn,pn){return aa(cn,pn,"monthsShort")}function fa(cn,pn,Dn){return ga(cn,pn,Dn,"weekdays")}function $a(cn,pn,Dn){return ga(cn,pn,Dn,"weekdaysShort")}function va(cn,pn,Dn){return ga(cn,pn,Dn,"weekdaysMin")}gi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(cn){var pn=cn%10,Dn=os(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn}}),nn.lang=fi("moment.lang is deprecated. Use moment.locale instead.",gi),nn.langData=fi("moment.langData is deprecated. Use moment.localeData instead.",ua);var Ta=Math.abs;function Ra(){var cn=this._data;return this._milliseconds=Ta(this._milliseconds),this._days=Ta(this._days),this._months=Ta(this._months),cn.milliseconds=Ta(cn.milliseconds),cn.seconds=Ta(cn.seconds),cn.minutes=Ta(cn.minutes),cn.hours=Ta(cn.hours),cn.months=Ta(cn.months),cn.years=Ta(cn.years),this}function es(cn,pn,Dn,Bn){var ii=Gs(pn,Dn);return cn._milliseconds+=Bn*ii._milliseconds,cn._days+=Bn*ii._days,cn._months+=Bn*ii._months,cn._bubble()}function Za(cn,pn){return es(this,cn,pn,1)}function Ns(cn,pn){return es(this,cn,pn,-1)}function ks(cn){return cn<0?Math.floor(cn):Math.ceil(cn)}function Xs(){var cn=this._milliseconds,pn=this._days,Dn=this._months,Bn=this._data,ii,Ki,Pa,Ls,Ks;return cn>=0&&pn>=0&&Dn>=0||cn<=0&&pn<=0&&Dn<=0||(cn+=ks(ro(Dn)+pn)*864e5,pn=0,Dn=0),Bn.milliseconds=cn%1e3,ii=fs(cn/1e3),Bn.seconds=ii%60,Ki=fs(ii/60),Bn.minutes=Ki%60,Pa=fs(Ki/60),Bn.hours=Pa%24,pn+=fs(Pa/24),Ks=fs(Ss(pn)),Dn+=Ks,pn-=ks(ro(Ks)),Ls=fs(Dn/12),Dn%=12,Bn.days=pn,Bn.months=Dn,Bn.years=Ls,this}function Ss(cn){return cn*4800/146097}function ro(cn){return cn*146097/4800}function gc(cn){if(!this.isValid())return NaN;var pn,Dn,Bn=this._milliseconds;if(cn=qi(cn),cn==="month"||cn==="quarter"||cn==="year")switch(pn=this._days+Bn/864e5,Dn=this._months+Ss(pn),cn){case"month":return Dn;case"quarter":return Dn/3;case"year":return Dn/12}else switch(pn=this._days+Math.round(ro(this._months)),cn){case"week":return pn/7+Bn/6048e5;case"day":return pn+Bn/864e5;case"hour":return pn*24+Bn/36e5;case"minute":return pn*1440+Bn/6e4;case"second":return pn*86400+Bn/1e3;case"millisecond":return Math.floor(pn*864e5)+Bn;default:throw new Error("Unknown unit "+cn)}}function Bs(cn){return function(){return this.as(cn)}}var Ts=Bs("ms"),ds=Bs("s"),oc=Bs("m"),qs=Bs("h"),po=Bs("d"),Fo=Bs("w"),Lc=Bs("M"),Rc=Bs("Q"),Xl=Bs("y"),Yc=Ts;function Ic(){return Gs(this)}function yc(cn){return cn=qi(cn),this.isValid()?this[cn+"s"]():NaN}function zs(cn){return function(){return this.isValid()?this._data[cn]:NaN}}var Po=zs("milliseconds"),ec=zs("seconds"),No=zs("minutes"),xc=zs("hours"),Gu=zs("days"),cc=zs("months"),Xc=zs("years");function Ao(){return fs(this.days()/7)}var fo=Math.round,Zo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fc(cn,pn,Dn,Bn,ii){return ii.relativeTime(pn||1,!!Dn,cn,Bn)}function _u(cn,pn,Dn,Bn){var ii=Gs(cn).abs(),Ki=fo(ii.as("s")),Pa=fo(ii.as("m")),Ls=fo(ii.as("h")),Ks=fo(ii.as("d")),wo=fo(ii.as("M")),Zu=fo(ii.as("w")),Eh=fo(ii.as("y")),Jh=Ki<=Dn.ss&&["s",Ki]||Ki<Dn.s&&["ss",Ki]||Pa<=1&&["m"]||Pa<Dn.m&&["mm",Pa]||Ls<=1&&["h"]||Ls<Dn.h&&["hh",Ls]||Ks<=1&&["d"]||Ks<Dn.d&&["dd",Ks];return Dn.w!=null&&(Jh=Jh||Zu<=1&&["w"]||Zu<Dn.w&&["ww",Zu]),Jh=Jh||wo<=1&&["M"]||wo<Dn.M&&["MM",wo]||Eh<=1&&["y"]||["yy",Eh],Jh[2]=pn,Jh[3]=+cn>0,Jh[4]=Bn,Fc.apply(null,Jh)}function pu(cn){return cn===void 0?fo:typeof cn=="function"?(fo=cn,!0):!1}function Qc(cn,pn){return Zo[cn]===void 0?!1:pn===void 0?Zo[cn]:(Zo[cn]=pn,cn==="s"&&(Zo.ss=pn-1),!0)}function gu(cn,pn){if(!this.isValid())return this.localeData().invalidDate();var Dn=!1,Bn=Zo,ii,Ki;return typeof cn=="object"&&(pn=cn,cn=!1),typeof cn=="boolean"&&(Dn=cn),typeof pn=="object"&&(Bn=Object.assign({},Zo,pn),pn.s!=null&&pn.ss==null&&(Bn.ss=pn.s-1)),ii=this.localeData(),Ki=_u(this,!Dn,Bn,ii),Dn&&(Ki=ii.pastFuture(+this,Ki)),ii.postformat(Ki)}var So=Math.abs;function Ko(cn){return(cn>0)-(cn<0)||+cn}function Sc(){if(!this.isValid())return this.localeData().invalidDate();var cn=So(this._milliseconds)/1e3,pn=So(this._days),Dn=So(this._months),Bn,ii,Ki,Pa,Ls=this.asSeconds(),Ks,wo,Zu,Eh;return Ls?(Bn=fs(cn/60),ii=fs(Bn/60),cn%=60,Bn%=60,Ki=fs(Dn/12),Dn%=12,Pa=cn?cn.toFixed(3).replace(/\.?0+$/,""):"",Ks=Ls<0?"-":"",wo=Ko(this._months)!==Ko(Ls)?"-":"",Zu=Ko(this._days)!==Ko(Ls)?"-":"",Eh=Ko(this._milliseconds)!==Ko(Ls)?"-":"",Ks+"P"+(Ki?wo+Ki+"Y":"")+(Dn?wo+Dn+"M":"")+(pn?Zu+pn+"D":"")+(ii||Bn||cn?"T":"")+(ii?Eh+ii+"H":"")+(Bn?Eh+Bn+"M":"")+(cn?Eh+Pa+"S":"")):"P0D"}var gs=vc.prototype;gs.isValid=uu,gs.abs=Ra,gs.add=Za,gs.subtract=Ns,gs.as=gc,gs.asMilliseconds=Ts,gs.asSeconds=ds,gs.asMinutes=oc,gs.asHours=qs,gs.asDays=po,gs.asWeeks=Fo,gs.asMonths=Lc,gs.asQuarters=Rc,gs.asYears=Xl,gs.valueOf=Yc,gs._bubble=Xs,gs.clone=Ic,gs.get=yc,gs.milliseconds=Po,gs.seconds=ec,gs.minutes=No,gs.hours=xc,gs.days=Gu,gs.weeks=Ao,gs.months=cc,gs.years=Xc,gs.humanize=gu,gs.toISOString=Sc,gs.toString=Sc,gs.toJSON=Sc,gs.locale=Ed,gs.localeData=un,gs.toIsoString=fi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Sc),gs.lang=Od,yi("X",0,0,"unix"),yi("x",0,0,"valueOf"),Ma("x",ps),Ma("X",As),ys("X",function(cn,pn,Dn){Dn._d=new Date(parseFloat(cn)*1e3)}),ys("x",function(cn,pn,Dn){Dn._d=new Date(os(cn))});nn.version="2.30.1",an(Ds),nn.fn=Vn,nn.min=ju,nn.max=zu,nn.now=Lu,nn.utc=bn,nn.unix=Li,nn.months=zi,nn.isDate=gn,nn.locale=gi,nn.invalid=Rn,nn.duration=Gs,nn.isMoment=oi,nn.weekdays=fa,nn.parseZone=Ti,nn.localeData=ua,nn.isDuration=du,nn.monthsShort=da,nn.weekdaysMin=va,nn.defineLocale=Ii,nn.updateLocale=Xi,nn.locales=Aa,nn.weekdaysShort=$a,nn.normalizeUnits=qi,nn.relativeTimeRounding=pu,nn.relativeTimeThreshold=Qc,nn.calendarFormat=
84xh,nn.prototype=Vn,nn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};nn.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(cn){return/^nm$/i.test(cn)},meridiem:function(cn,pn,Dn){return cn<12?Dn?"vm":"VM":Dn?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(cn){return cn+(cn===1||cn===8||cn>=20?"ste":"de")},week:{dow:1,doy:4}});var vn=function(cn){return cn===0?0:cn===1?1:cn===2?2:cn%100>=3&&cn%100<=10?3:cn%100>=11?4:5},Pn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},In=function(cn){return function(pn,Dn,Bn,ii){var Ki=vn(pn),Pa=Pn[cn][vn(pn)];return Ki===2&&(Pa=Pa[Dn?0:1]),Pa.replace(/%d/i,pn)}},li=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];nn.defineLocale("ar-dz",{months:li,monthsShort:li,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(cn){return cn==="م"},meridiem:function(cn,pn,Dn){return cn<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:In("s"),ss:In("s"),m:In("m"),mm:In("m"),h:In("h"),hh:In("h"),d:In("d"),dd:In("d"),M:In("M"),MM:In("M"),y:In("y"),yy:In("y")},postformat:function(cn){return cn.replace(/,/g,"،")},week:{dow:0,doy:4}});nn.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var Di={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Qi=function(cn){return cn===0?0:cn===1?1:cn===2?2:cn%100>=3&&cn%100<=10?3:cn%100>=11?4:5},Ca={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},hs=function(cn){return function(pn,Dn,Bn,ii){var Ki=Qi(pn),Pa=Ca[cn][Qi(pn)];return Ki===2&&(Pa=Pa[Dn?0:1]),Pa.replace(/%d/i,pn)}},Fs=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];nn.defineLocale("ar-ly",{months:Fs,monthsShort:Fs,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(cn){return cn==="م"},meridiem:function(cn,pn,Dn){return cn<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:hs("s"),ss:hs("s"),m:hs("m"),mm:hs("m"),h:hs("h"),hh:hs("h"),d:hs("d"),dd:hs("d"),M:hs("M"),MM:hs("M"),y:hs("y"),yy:hs("y")},preparse:function(cn){return cn.replace(/،/g,",")},postformat:function(cn){return cn.replace(/\d/g,function(pn){return Di[pn]}).replace(/,/g,"،")},week:{dow:6,doy:12}});nn.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Zs={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},$c={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};nn.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(cn){return cn==="م"},meridiem:function(cn,pn,Dn){return cn<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(cn){return cn.replace(/[٣٤٥٦٧٨٩٠]/g,function(pn){return $c[pn]}).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,function(pn){return $c[pn]}).split("").reverse().join("").replace(/،/g,",")},postformat:function(cn){return cn.replace(/\d/g,function(pn){return Zs[pn]}).replace(/,/g,"،")},week:{dow:0,doy:6}});var bd={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Fd={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};nn.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(cn){return cn==="م"},meridiem:function(cn,pn,Dn){return cn<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(cn){return cn.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(pn){return Fd[pn]}).replace(/،/g,",")},postformat:function(cn){return cn.replace(/\d/g,function(pn){return bd[pn]}).replace(/,/g,"،")},week:{dow:0,doy:6}});nn.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Hf={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},cf={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Af=function(cn){return cn===0?0:cn===1?1:cn===2?2:cn%100>=3&&cn%100<=10?3:cn%100>=11?4:5},jf={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},yu=function(cn){return function(pn,Dn,Bn,ii){var Ki=Af(pn),Pa=jf[cn][Af(pn)];return Ki===2&&(Pa=Pa[Dn?0:1]),Pa.replace(/%d/i,pn)}},uf=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];nn.defineLocale("ar",{months:uf,monthsShort:uf,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(cn){return cn==="م"},meridiem:function(cn,pn,Dn){return cn<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:yu("s"),ss:yu("s"),m:yu("m"),mm:yu("m"),h:yu("h"),hh:yu("h"),d:yu("d"),dd:yu("d"),M:yu("M"),MM:yu("M"),y:yu("y"),yy:yu("y")},preparse:function(cn){return cn.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(pn){return cf[pn]}).replace(/،/g,",")},postformat:function(cn){return cn.replace(/\d/g,function(pn){return Hf[pn]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var Nh={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};nn.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_
84CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(cn){return/^(gündüz|axşam)$/.test(cn)},meridiem:function(cn,pn,Dn){return cn<4?"gecə":cn<12?"səhər":cn<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(cn){if(cn===0)return cn+"-ıncı";var pn=cn%10,Dn=cn%100-pn,Bn=cn>=100?100:null;return cn+(Nh[pn]||Nh[Dn]||Nh[Bn])},week:{dow:1,doy:7}});function zf(cn,pn){var Dn=cn.split("_");return pn%10===1&&pn%100!==11?Dn[0]:pn%10>=2&&pn%10<=4&&(pn%100<10||pn%100>=20)?Dn[1]:Dn[2]}function Ch(cn,pn,Dn){var Bn={ss:pn?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:pn?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:pn?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return Dn==="m"?pn?"хвіліна":"хвіліну":Dn==="h"?pn?"гадзіна":"гадзіну":cn+" "+zf(Bn[Dn],+cn)}nn.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:Ch,mm:Ch,h:Ch,hh:Ch,d:"дзень",dd:Ch,M:"месяц",MM:Ch,y:"год",yy:Ch},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(cn){return/^(дня|вечара)$/.test(cn)},meridiem:function(cn,pn,Dn){return cn<4?"ночы":cn<12?"раніцы":cn<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(cn,pn){switch(pn){case"M":case"d":case"DDD":case"w":case"W":return(cn%10===2||cn%10===3)&&cn%100!==12&&cn%100!==13?cn+"-і":cn+"-ы";case"D":return cn+"-га";default:return cn}},week:{dow:1,doy:7}});nn.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%
84d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(cn){var pn=cn%10,Dn=cn%100;return cn===0?cn+"-ев":Dn===0?cn+"-ен":Dn>10&&Dn<20?cn+"-ти":pn===1?cn+"-ви":pn===2?cn+"-ри":pn===7||pn===8?cn+"-ми":cn+"-ти"},week:{dow:1,doy:7}});nn.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var df={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Wf={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};nn.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(cn){return cn.replace(/[১২৩৪৫৬৭৮৯০]/g,function(pn){return Wf[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return df[pn]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="রাত")return cn<4?cn:cn+12;if(pn==="ভোর")return cn;if(pn==="সকাল")return cn;if(pn==="দুপুর")return cn>=3?cn:cn+12;if(pn==="বিকাল")return cn+12;if(pn==="সন্ধ্যা")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"রাত":cn<6?"ভোর":cn<12?"সকাল":cn<15?"দুপুর":cn<18?"বিকাল":cn<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});var Yf={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},yh={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};nn.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(cn){return cn.replace(/[১২৩৪৫৬৭৮৯০]/g,function(pn){return yh[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return Yf[pn]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(cn,pn){return cn===12&&(cn=0),pn==="রাত"&&cn>=4||pn==="দুপুর"&&cn<5||pn==="বিকাল"?cn+12:cn},meridiem:function(cn,pn,Dn){return cn<4?"রাত":cn<10?"সকাল":cn<17?"দুপুর":cn<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var Uf={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},qf={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};nn.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%
84d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(cn){return cn.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(pn){return qf[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return Uf[pn]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(cn,pn){return cn===12&&(cn=0),pn==="མཚན་མོ"&&cn>=4||pn==="ཉིན་གུང"&&cn<5||pn==="དགོང་དག"?cn+12:cn},meridiem:function(cn,pn,Dn){return cn<4?"མཚན་མོ":cn<10?"ཞོགས་ཀས":cn<17?"ཉིན་གུང":cn<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});function $f(cn,pn,Dn){var Bn={mm:"munutenn",MM:"miz",dd:"devezh"};return cn+" "+Xf(Bn[Dn],cn)}function Gf(cn){switch(Bh(cn)){case 1:case 3:case 4:case 5:case 9:return cn+" bloaz";default:return cn+" vloaz"}}function Bh(cn){return cn>9?Bh(cn%10):cn}function Xf(cn,pn){return pn===2?Zf(cn):cn}function Zf(cn){var pn={m:"v",b:"v",d:"z"};return pn[cn.charAt(0)]===void 0?cn:pn[cn.charAt(0)]+cn.substring(1)}var Ef=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Of=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,Qf=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,af=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,Rf=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],hf=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Vd=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];nn.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:Vd,fullWeekdaysParse:Rf,shortWeekdaysParse:hf,minWeekdaysParse:Vd,monthsRegex:Of,monthsShortRegex:Of,monthsStrictRegex:Qf,monthsShortStrictRegex:af,monthsParse:Ef,longMonthsParse:Ef,shortMonthsParse:Ef,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:$f,h:"un eur",hh:"%d eur",d:"un devezh",dd:$f,M:"ur miz",MM:$f,y:"ur bloaz",yy:Gf},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(cn){var pn=cn===1?"añ":"vet";return cn+pn},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(cn){return cn==="g.m."},meridiem:function(cn,pn,Dn){return cn<12?"a.m.":"g.m."}});function vh(cn,pn,Dn,Bn){switch(Dn){case"m":return pn?"jedna minuta":Bn?"jednu minutu":"jedne minute"}}function Au(cn,pn,Dn){var Bn=cn+" ";switch(Dn){case"ss":return cn===1?Bn+="sekunda":cn===2||cn===3||cn===4?Bn+="sekunde":Bn+="sekundi",Bn;case"mm":return cn===1?Bn+="minuta":cn===2||cn===3||cn===4?Bn+="minute":Bn+="minuta",Bn;case"h":return"jedan sat";case"hh":return cn===1?Bn+="sat":cn===2||cn===3||cn===4?Bn+="sata":Bn+="sati",Bn;case"dd":return cn===1?Bn+="dan":Bn+="dana",Bn;case"MM":return cn===1?Bn+="mjesec":cn===2||cn===3||cn===4?Bn+="mjeseca":Bn+="mjeseci",Bn;case"yy":return cn===1?Bn+="godina":cn===2||cn===3||cn===4?Bn+="godine":Bn+="godina",Bn}}nn.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Au,m:vh,mm:Au,h:Au,hh:Au,d:"dan",dd:Au,M:"mjesec",MM:Au,y:"godinu",yy:Au},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});nn.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(this.hours()!==1?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(this.hours()!==1?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(this.hours()!==1?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(this.hours()!==1?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(this.hours()!==1?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
84d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(cn,pn){var Dn=cn===1?"r":cn===2?"n":cn===3?"r":cn===4?"t":"è";return(pn==="w"||pn==="W")&&(Dn="a"),cn+Dn},week:{dow:1,doy:4}});var ff={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},If="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),mf=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],Kf=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function wh(cn){return cn>1&&cn<5&&~~(cn/10)!==1}function Yu(cn,pn,Dn,Bn){var ii=cn+" ";switch(Dn){case"s":return pn||Bn?"pár sekund":"pár sekundami";case"ss":return pn||Bn?ii+(wh(cn)?"sekundy":"sekund"):ii+"sekundami";case"m":return pn?"minuta":Bn?"minutu":"minutou";case"mm":return pn||Bn?ii+(wh(cn)?"minuty":"minut"):ii+"minutami";case"h":return pn?"hodina":Bn?"hodinu":"hodinou";case"hh":return pn||Bn?ii+(wh(cn)?"hodiny":"hodin"):ii+"hodinami";case"d":return pn||Bn?"den":"dnem";case"dd":return pn||Bn?ii+(wh(cn)?"dny":"dní"):ii+"dny";case"M":return pn||Bn?"měsíc":"měsícem";case"MM":return pn||Bn?ii+(wh(cn)?"měsíce":"měsíců"):ii+"měsíci";case"y":return pn||Bn?"rok":"rokem";case"yy":return pn||Bn?ii+(wh(cn)?"roky":"let"):ii+"lety"}}nn.defineLocale("cs",{months:ff,monthsShort:If,monthsRegex:Kf,monthsShortRegex:Kf,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:mf,longMonthsParse:mf,shortMonthsParse:mf,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Yu,ss:Yu,m:Yu,mm:Yu,h:Yu,hh:Yu,d:Yu,dd:Yu,M:Yu,MM:Yu,y:Yu,yy:Yu},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(cn){var pn=/сехет$/i.exec(cn)?"рен":/ҫул$/i.exec(cn)?"тан":"ран";return cn+pn},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%
84d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});nn.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(cn){var pn=cn,Dn="",Bn=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return pn>20?pn===40||pn===50||pn===60||pn===80||pn===100?Dn="fed":Dn="ain":pn>0&&(Dn=Bn[pn]),cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function Ah(cn,pn,Dn,Bn){var ii={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[cn+" Tage",cn+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[cn+" Monate",cn+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[cn+" Jahre",cn+" Jahren"]};return pn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Ah,mm:"%d Minuten",h:Ah,hh:"%d Stunden",d:Ah,dd:Ah,w:Ah,ww:"%d Wochen",M:Ah,MM:Ah,y:Ah,yy:Ah},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function Yh(cn,pn,Dn,Bn){var ii={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[cn+" Tage",cn+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[cn+" Monate",cn+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[cn+" Jahre",cn+" Jahren"]};return pn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Yh,mm:"%d Minuten",h:Yh,hh:"%d Stunden",d:Yh,dd:Yh,w:Yh,ww:"%d Wochen",M:Yh,MM:Yh,y:Yh,yy:Yh},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function $h(cn,pn,Dn,Bn){var ii={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[cn+" Tage",cn+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[cn+" Monate",cn+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[cn+" Jahre",cn+" Jahren"]};return pn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:$h,mm:"%d Minuten",h:$h,hh:"%d Stunden",d:$h,dd:$h,w:$h,ww:"%d Wochen",M:$h,MM:$h,y:$h,yy:$h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var ym=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],vm=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];nn.defineLocale("dv",{months:ym,monthsShort:ym,weekdays:vm,weekdaysShort:vm,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(cn){return cn==="މފ"},meridiem:function(cn,pn,Dn){return cn<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",
84s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(cn){return cn.replace(/،/g,",")},postformat:function(cn){return cn.replace(/,/g,"،")},week:{dow:7,doy:12}});function jm(cn){return typeof Function<"u"&&cn instanceof Function||Object.prototype.toString.call(cn)==="[object Function]"}nn.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(cn,pn){return cn?typeof pn=="string"&&/D/.test(pn.substring(0,pn.indexOf("MMMM")))?this._monthsGenitiveEl[cn.month()]:this._monthsNominativeEl[cn.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(cn,pn,Dn){return cn>11?Dn?"μμ":"ΜΜ":Dn?"πμ":"ΠΜ"},isPM:function(cn){return(cn+"").toLowerCase()[0]==="μ"},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(cn,pn){var Dn=this._calendarEl[cn],Bn=pn&&pn.hours();return jm(Dn)&&(Dn=Dn.apply(pn)),Dn.replace("{}",Bn%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});nn.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:0,doy:4}});nn.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
84S:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn}});nn.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn}});nn.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
84S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:0,doy:6}});nn.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(cn){return cn.charAt(0).toLowerCase()==="p"},meridiem:function(cn,pn,Dn){return cn>11?Dn?"p.t.m.":"P.T.M.":Dn?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var wm="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),zm="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),em=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],km=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;nn.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?zm[cn.month()]:wm[cn.month()]:wm},monthsRegex:km,monthsShortRegex:km,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:em,longMonthsParse:em,shortMonthsParse:em,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
84S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var bm="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Wm="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),tm=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Mm=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;nn.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?Wm[cn.month()]:bm[cn.month()]:bm},monthsRegex:Mm,monthsShortRegex:Mm,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:tm,longMonthsParse:tm,shortMonthsParse:tm,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});var Lm="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Um="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),nm=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],xm=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;nn.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?Um[cn.month()]:Lm[cn.month()]:Lm},monthsRegex:xm,monthsShortRegex:xm,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:nm,longMonthsParse:nm,shortMonthsParse:nm,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
84S:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});var Sm="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),qm="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),rm=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Tm=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;nn.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?qm[cn.month()]:Sm[cn.month()]:Sm},monthsRegex:Tm,monthsShortRegex:Tm,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:rm,longMonthsParse:rm,shortMonthsParse:rm,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});function oh(cn,pn,Dn,Bn){var ii={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[cn+"sekundi",cn+"sekundit"],m:["ühe minuti","üks minut"],mm:[cn+" minuti",cn+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[cn+" tunni",cn+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[cn+" kuu",cn+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[cn+" aasta",cn+" aastat"]};return pn?ii[Dn][2]?ii[Dn][2]:ii[Dn][1]:Bn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:oh,ss:oh,m:oh,mm:oh,h:oh,hh:oh,d:oh,dd:"%d päeva",M:oh,MM:oh,y:oh,yy:oh},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Gm={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Zm={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};nn.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(cn){return/بعد از ظهر/.test(cn)},meridiem:function(cn,pn,Dn){return cn<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%
84d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(cn){return cn.replace(/[۰-۹]/g,function(pn){return Zm[pn]}).replace(/،/g,",")},postformat:function(cn){return cn.replace(/\d/g,function(pn){return Gm[pn]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});var Jf="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Km=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Jf[7],Jf[8],Jf[9]];function Hd(cn,pn,Dn,Bn){var ii="";switch(Dn){case"s":return Bn?"muutaman sekunnin":"muutama sekunti";case"ss":ii=Bn?"sekunnin":"sekuntia";break;case"m":return Bn?"minuutin":"minuutti";case"mm":ii=Bn?"minuutin":"minuuttia";break;case"h":return Bn?"tunnin":"tunti";case"hh":ii=Bn?"tunnin":"tuntia";break;case"d":return Bn?"päivän":"päivä";case"dd":ii=Bn?"päivän":"päivää";break;case"M":return Bn?"kuukauden":"kuukausi";case"MM":ii=Bn?"kuukauden":"kuukautta";break;case"y":return Bn?"vuoden":"vuosi";case"yy":ii=Bn?"vuoden":"vuotta";break}return ii=Jm(cn,Bn)+" "+ii,ii}function Jm(cn,pn){return cn<10?pn?Km[cn]:Jf[cn]:cn}nn.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Hd,ss:Hd,m:Hd,mm:Hd,h:Hd,hh:Hd,d:Hd,dd:Hd,M:Hd,MM:Hd,y:Hd,yy:Hd},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(cn){return cn},week:{dow:1,doy:4}});nn.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(cn,pn){switch(pn){default:case"M":case"Q":case"D":case"DDD":case"d":return cn+(cn===1?"er":"e");case"w":case"W":return cn+(cn===1?"re":"e")}}});nn.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(cn,pn){switch(pn){default:case"M":case"Q":case"D":case"DDD":case"d":return cn+(cn===1?"er":"e");case"w":case"W":return cn+(cn===1?"re":"e")}},week:{dow:1,doy:4}});
84var Xm=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Qm=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Dm=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,im=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];nn.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Dm,monthsShortRegex:Dm,monthsStrictRegex:Xm,monthsShortStrictRegex:Qm,monthsParse:im,longMonthsParse:im,shortMonthsParse:im,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(cn,pn){switch(pn){case"D":return cn+(cn===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return cn+(cn===1?"er":"e");case"w":case"W":return cn+(cn===1?"re":"e")}},week:{dow:1,doy:4}});var Pm="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),e_="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");nn.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?e_[cn.month()]:Pm[cn.month()]:Pm},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(cn){return cn+(cn===1||cn===8||cn>=20?"ste":"de")},week:{dow:1,doy:4}});var t_=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n_=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r_=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i_=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a_=["Do","Lu","Má","Cé","Dé","A","Sa"];nn.defineLocale("ga",{months:t_,monthsShort:n_,monthsParseExact:!0,weekdays:r_,weekdaysShort:i_,weekdaysMin:a_,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(cn){var pn=cn===1?"d":cn%10===2?"na":"mh";return cn+pn},week:{dow:1,doy:4}});var s_=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],o_=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],l_=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],c_=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],u_=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];nn.defineLocale("gd",{months:s_,monthsShort:o_,monthsParseExact:!0,weekdays:l_,weekdaysShort:c_,weekdaysMin:u_,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] 
84LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(cn){var pn=cn===1?"d":cn%10===2?"na":"mh";return cn+pn},week:{dow:1,doy:4}});nn.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(this.hours()!==1?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(this.hours()!==1?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()!==1?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(this.hours()!==1?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(this.hours()!==1?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(cn){return cn.indexOf("un")===0?"n"+cn:"en "+cn},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});
84function jd(cn,pn,Dn,Bn){var ii={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[cn+" सॅकंडांनी",cn+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[cn+" मिणटांनी",cn+" मिणटां"],h:["एका वरान","एक वर"],hh:[cn+" वरांनी",cn+" वरां"],d:["एका दिसान","एक दीस"],dd:[cn+" दिसांनी",cn+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[cn+" म्हयन्यानी",cn+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[cn+" वर्सांनी",cn+" वर्सां"]};return Bn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:jd,ss:jd,m:jd,mm:jd,h:jd,hh:jd,d:jd,dd:jd,M:jd,MM:jd,y:jd,yy:jd},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(cn,pn){switch(pn){case"D":return cn+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return cn}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="राती")return cn<4?cn:cn+12;if(pn==="सकाळीं")return cn;if(pn==="दनपारां")return cn>12?cn:cn+12;if(pn==="सांजे")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"राती":cn<12?"सकाळीं":cn<16?"दनपारां":cn<20?"सांजे":"राती"}});function zd(cn,pn,Dn,Bn){var ii={s:["thoddea sekondamni","thodde sekond"],ss:[cn+" sekondamni",cn+" sekond"],m:["eka mintan","ek minut"],mm:[cn+" mintamni",cn+" mintam"],h:["eka voran","ek vor"],hh:[cn+" voramni",cn+" voram"],d:["eka disan","ek dis"],dd:[cn+" disamni",cn+" dis"],M:["eka mhoinean","ek mhoino"],MM:[cn+" mhoineamni",cn+" mhoine"],y:["eka vorsan","ek voros"],yy:[cn+" vorsamni",cn+" vorsam"]};return Bn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:zd,ss:zd,m:zd,mm:zd,h:zd,hh:zd,d:zd,dd:zd,M:zd,MM:zd,y:zd,yy:zd},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(cn,pn){switch(pn){case"D":return cn+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return cn}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="rati")return cn<4?cn:cn+12;if(pn==="sokallim")return cn;if(pn==="donparam")return cn>12?cn:cn+12;if(pn==="sanje")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"rati":cn<12?"sokallim":cn<16?"donparam":cn<20?"sanje":"rati"}});var d_={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«­",8:"à«®",9:"૯",0:"૦"},h_={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«­":"7","à«®":"8","૯":"9","૦":"0"};nn.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડà
84ª¿àª¸à«‡.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(cn){return cn.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(pn){return h_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return d_[pn]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="રાત")return cn<4?cn:cn+12;if(pn==="સવાર")return cn;if(pn==="બપોર")return cn>=10?cn:cn+12;if(pn==="સાંજ")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"રાત":cn<10?"સવાર":cn<17?"બપોર":cn<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});nn.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(cn){return cn===2?"שעתיים":cn+" שעות"},d:"יום",dd:function(cn){return cn===2?"יומיים":cn+" ימים"},M:"חודש",MM:function(cn){return cn===2?"חודשיים":cn+" חודשים"},y:"שנה",yy:function(cn){return cn===2?"שנתיים":cn%10===0&&cn!==10?cn+" שנה":cn+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(cn){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(cn)},meridiem:function(cn,pn,Dn){return cn<5?"לפנות בוקר":cn<10?"בבוקר":cn<12?Dn?'לפנה"צ':"לפני הצהריים":cn<18?Dn?'אחה"צ':"אחרי הצהריים":"בערב"}});var f_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},m_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},Nm=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],__=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];nn.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:Nm,longMonthsParse:Nm,shortMonthsParse:__,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अ
84प्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(cn){return cn.replace(/[१२३४५६७८९०]/g,function(pn){return m_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return f_[pn]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="रात")return cn<4?cn:cn+12;if(pn==="सुबह")return cn;if(pn==="दोपहर")return cn>=10?cn:cn+12;if(pn==="शाम")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"रात":cn<10?"सुबह":cn<17?"दोपहर":cn<20?"शाम":"रात"},week:{dow:0,doy:6}});function qh(cn,pn,Dn){var Bn=cn+" ";switch(Dn){case"ss":return cn===1?Bn+="sekunda":cn===2||cn===3||cn===4?Bn+="sekunde":Bn+="sekundi",Bn;case"m":return pn?"jedna minuta":"jedne minute";case"mm":return cn===1?Bn+="minuta":cn===2||cn===3||cn===4?Bn+="minute":Bn+="minuta",Bn;case"h":return pn?"jedan sat":"jednog sata";case"hh":return cn===1?Bn+="sat":cn===2||cn===3||cn===4?Bn+="sata":Bn+="sati",Bn;case"dd":return cn===1?Bn+="dan":Bn+="dana",Bn;case"MM":return cn===1?Bn+="mjesec":cn===2||cn===3||cn===4?Bn+="mjeseca":Bn+="mjeseci",Bn;case"yy":return cn===1?Bn+="godina":cn===2||cn===3||cn===4?Bn+="godine":Bn+="godina",Bn}}nn.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:qh,m:qh,mm:qh,h:qh,hh:qh,d:"dan",dd:qh,M:"mjesec",MM:qh,y:"godinu",yy:qh},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var p_="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function Wd(cn,pn,Dn,Bn){var ii=cn;switch(Dn){case"s":return Bn||pn?"néhány másodperc":"néhány másodperce";case"ss":return ii+(Bn||pn)?" másodperc":" másodperce";case"m":return"egy"+(Bn||pn?" perc":" perce");case"mm":return ii+(Bn||pn?" perc":" perce");case"h":return"egy"+(Bn||pn?" óra":" órája");case"hh":return ii+(Bn||pn?" óra":" órája");case"d":return"egy"+(Bn||pn?" nap":" napja");case"dd":return ii+(Bn||pn?" nap":" napja");case"M":return"egy"+(Bn||pn?" hónap":" hónapja");case"MM":return ii+(Bn||pn?" hónap":" hónapja");case"y":return"egy"+(Bn||pn?" év":" éve");case"yy":return ii+(Bn||pn?" év":" éve")}return""}function Cm(cn){return(cn?"":"[múlt] ")+"["+p_[this.day()]+"] LT[-kor]"}nn.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(cn){return cn.charAt(1).toLowerCase()==="u"},meridiem:function(cn,pn,Dn){return cn<12?Dn===!0?"de":"DE":Dn===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Cm.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Cm.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:Wd,ss:Wd,m:Wd,mm:Wd,h:Wd,hh:Wd,d:Wd,dd:Wd,M:Wd,MM:Wd,y:Wd,yy:Wd},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(cn){return/^(ցերեկվա|երեկոյան)$/.test(cn)},meridiem:function(cn){return cn<4?"գիշերվա":cn<12?"առավոտվա":cn<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(cn,pn){switch(pn){case"DDD":case"w":case"W":case"DDDo":return cn===1?cn+"-ին":cn+"-րդ";default:return cn}},week:{dow:1,doy:7}});nn.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="pagi")return cn;if(pn==="siang")return cn>=11?cn:cn+12;if(pn==="sore"||pn==="malam")return cn+12},meridiem:function(cn,pn,Dn){return cn<11?"pagi":cn<15?"siang":cn<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});function _f(cn){return cn%100===11?!0:cn%10!==1}function lh(cn,pn,Dn,Bn){var ii=cn+" ";switch(Dn){case"s":return pn||Bn?"nokkrar sekúndur":"nokkrum sekúndum";
84case"ss":return _f(cn)?ii+(pn||Bn?"sekúndur":"sekúndum"):ii+"sekúnda";case"m":return pn?"mínúta":"mínútu";case"mm":return _f(cn)?ii+(pn||Bn?"mínútur":"mínútum"):pn?ii+"mínúta":ii+"mínútu";case"hh":return _f(cn)?ii+(pn||Bn?"klukkustundir":"klukkustundum"):ii+"klukkustund";case"d":return pn?"dagur":Bn?"dag":"degi";case"dd":return _f(cn)?pn?ii+"dagar":ii+(Bn?"daga":"dögum"):pn?ii+"dagur":ii+(Bn?"dag":"degi");case"M":return pn?"mánuður":Bn?"mánuð":"mánuði";case"MM":return _f(cn)?pn?ii+"mánuðir":ii+(Bn?"mánuði":"mánuðum"):pn?ii+"mánuður":ii+(Bn?"mánuð":"mánuði");case"y":return pn||Bn?"ár":"ári";case"yy":return _f(cn)?ii+(pn||Bn?"ár":"árum"):ii+(pn||Bn?"ár":"ári")}}nn.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:lh,ss:lh,m:lh,mm:lh,h:"klukkustund",hh:lh,d:lh,dd:lh,M:lh,MM:lh,y:lh,yy:lh},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(cn){return(/^[0-9].+$/.test(cn)?"tra":"in")+" "+cn},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});nn.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});nn.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",n
84arrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(cn,pn){return pn[1]==="元"?1:parseInt(pn[1]||cn,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(cn){return cn==="午後"},meridiem:function(cn,pn,Dn){return cn<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(cn){return cn.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(cn){return this.week()!==cn.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(cn,pn){switch(pn){case"y":return cn===1?"元年":cn+"年";case"d":case"D":case"DDD":return cn+"日";default:return cn}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});nn.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="enjing")return cn;if(pn==="siyang")return cn>=11?cn:cn+12;if(pn==="sonten"||pn==="ndalu")return cn+12},meridiem:function(cn,pn,Dn){return cn<11?"enjing":cn<15?"siyang":cn<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});nn.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(cn){return cn.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(pn,Dn,Bn){return Bn==="ი"?Dn+"ში":Dn+Bn+"ში"})},past:function(cn){return/(წამი|წუთი|საათი|დღე|თვე)/.test(cn)?cn.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(cn)?cn.replace(/წელი$/,"წლის წინ"):cn},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(cn){return cn===0?cn:cn===1?cn+"-ლი":cn<20||cn<=100&&cn%20===0||cn%100===0?"მე-"+cn:cn+"-ე"},week:{dow:1,doy:7}});var am={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};nn.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%
84d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(cn){var pn=cn%10,Dn=cn>=100?100:null;return cn+(am[cn]||am[pn]||am[Dn])},week:{dow:1,doy:7}});var g_={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},y_={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};nn.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(cn){return cn==="ល្ងាច"},meridiem:function(cn,pn,Dn){return cn<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(cn){return cn.replace(/[១២៣៤៥៦៧៨៩០]/g,function(pn){return y_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return g_[pn]})},week:{dow:1,doy:4}});var v_={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},w_={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};nn.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂ
84ದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(cn){return cn.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(pn){return w_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return v_[pn]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="ರಾತ್ರಿ")return cn<4?cn:cn+12;if(pn==="ಬೆಳಿಗ್ಗೆ")return cn;if(pn==="ಮಧ್ಯಾಹ್ನ")return cn>=10?cn:cn+12;if(pn==="ಸಂಜೆ")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"ರಾತ್ರಿ":cn<10?"ಬೆಳಿಗ್ಗೆ":cn<17?"ಮಧ್ಯಾಹ್ನ":cn<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(cn){return cn+"ನೇ"},week:{dow:0,doy:6}});nn.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+"일";case"M":return cn+"월";case"w":case"W":return cn+"주";default:return cn}},meridiemParse:/오전|오후/,isPM:function(cn){return cn==="오후"},meridiem:function(cn,pn,Dn){return cn<12?"오전":"오후"}});function ud(cn,pn,Dn,Bn){var ii={s:["çend sanîye","çend sanîyeyan"],ss:[cn+" sanîye",cn+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[cn+" deqîqe",cn+" deqîqeyan"],h:["saetek","saetekê"],hh:[cn+" saet",cn+" saetan"],d:["rojek","rojekê"],dd:[cn+" roj",cn+" rojan"],w:["hefteyek","hefteyekê"],ww:[cn+" hefte",cn+" hefteyan"],M:["mehek","mehekê"],MM:[cn+" meh",cn+" mehan"],y:["salek","salekê"],yy:[cn+" sal",cn+" salan"]};return pn?ii[Dn][0]:ii[Dn][1]}function k_(cn){cn=""+cn;var pn=cn.substring(cn.length-1),Dn=cn.length>1?cn.substring(cn.length-2):"";return!(Dn==12||Dn==13)&&(pn=="2"||pn=="3"||Dn=="50"||pn=="70"||pn=="80")?"yê":"ê"}nn.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(cn,pn,Dn){return cn<12?Dn?"bn":"BN":Dn?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:ud,ss:ud,m:ud,mm:ud,h:ud,hh:ud,d:ud,dd:ud,w:ud,ww:ud,M:ud,MM:ud,y:ud,yy:ud},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(cn,pn){var Dn=pn.toLowerCase();return Dn.includes("w")||Dn.includes("m")?cn+".":cn+k_(cn)},week:{dow:1,doy:4}});var b_={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},M_={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Bm=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];nn.defineLocale("ku",{months:Bm,monthsShort:Bm,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(cn){return/ئێواره‌/.test(cn)},meridiem:function(cn,pn,Dn){return cn<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%
84d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(cn){return cn.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(pn){return M_[pn]}).replace(/،/g,",")},postformat:function(cn){return cn.replace(/\d/g,function(pn){return b_[pn]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var sm={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};nn.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%
84d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(cn){var pn=cn%10,Dn=cn>=100?100:null;return cn+(sm[cn]||sm[pn]||sm[Dn])},week:{dow:1,doy:7}});function Ff(cn,pn,Dn,Bn){var ii={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return pn?ii[Dn][0]:ii[Dn][1]}function L_(cn){var pn=cn.substr(0,cn.indexOf(" "));return pf(pn)?"a "+cn:"an "+cn}function x_(cn){var pn=cn.substr(0,cn.indexOf(" "));return pf(pn)?"viru "+cn:"virun "+cn}function pf(cn){if(cn=parseInt(cn,10),isNaN(cn))return!1;if(cn<0)return!0;if(cn<10)return 4<=cn&&cn<=7;if(cn<100){var pn=cn%10,Dn=cn/10;return pf(pn===0?Dn:pn)}else if(cn<1e4){for(;cn>=10;)cn=cn/10;return pf(cn)}else return cn=cn/1e3,pf(cn)}nn.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:L_,past:x_,s:"e puer Sekonnen",ss:"%d Sekonnen",m:Ff,mm:"%d Minutten",h:Ff,hh:"%d Stonnen",d:Ff,dd:"%d Deeg",M:Ff,MM:"%d Méint",y:Ff,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(cn){return cn==="ຕອນແລງ"},meridiem:function(cn,pn,Dn){return cn<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(cn){return"ທີ່"+cn}});var S_={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function T_(cn,pn,Dn,Bn){return pn?"kelios sekundės":Bn?"kelių sekundžių":"kelias sekundes"}function gf(cn,pn,Dn,Bn){return pn?Gh(Dn)[0]:Bn?Gh(Dn)[1]:Gh(Dn)[2]}function Am(cn){return cn%10===0||cn>10&&cn<20}function Gh(cn){return S_[cn].split("_")}function yf(cn,pn,Dn,Bn){var ii=cn+" ";return cn===1?ii+gf(cn,pn,Dn[0],Bn):pn?ii+(Am(cn)?Gh(Dn)[1]:Gh(Dn)[0]):Bn?ii+Gh(Dn)[1]:ii+(Am(cn)?Gh(Dn)[1]:Gh(Dn)[2])}nn.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:T_,ss:yf,m:gf,mm:yf,h:gf,hh:yf,d:gf,dd:yf,M:gf,MM:yf,y:gf,yy:yf},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(cn){return cn+"-oji"},week:{dow:1,doy:4}});var Ym={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_die
84nām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function $m(cn,pn,Dn){return Dn?pn%10===1&&pn%100!==11?cn[2]:cn[3]:pn%10===1&&pn%100!==11?cn[0]:cn[1]}function vf(cn,pn,Dn){return cn+" "+$m(Ym[Dn],cn,pn)}function Vf(cn,pn,Dn){return $m(Ym[Dn],cn,pn)}function D_(cn,pn){return pn?"dažas sekundes":"dažām sekundēm"}nn.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:D_,ss:vf,m:Vf,mm:vf,h:Vf,hh:vf,d:Vf,dd:vf,M:Vf,MM:vf,y:Vf,yy:vf},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var kh={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(cn,pn){return cn===1?pn[0]:cn>=2&&cn<=4?pn[1]:pn[2]},translate:function(cn,pn,Dn){var Bn=kh.words[Dn];return Dn.length===1?pn?Bn[0]:Bn[1]:cn+" "+kh.correctGrammaticalCase(cn,Bn)}};nn.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var cn=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return cn[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:kh.translate,m:kh.translate,mm:kh.translate,h:kh.translate,hh:kh.translate,d:"dan",dd:kh.translate,M:"mjesec",MM:kh.translate,y:"godinu",yy:kh.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});nn.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%
84d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});nn.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(cn){var pn=cn%10,Dn=cn%100;return cn===0?cn+"-ев":Dn===0?cn+"-ен":Dn>10&&Dn<20?cn+"-ти":pn===1?cn+"-ви":pn===2?cn+"-ри":pn===7||pn===8?cn+"-ми":cn+"-ти"},week:{dow:1,doy:7}});nn.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(cn,pn){return cn===12&&(cn=0),pn==="രാത്രി"&&cn>=4||pn==="ഉച്ച കഴിഞ്ഞ്"||pn==="വൈകുന്നേരം"?cn+12:cn},meridiem:function(cn,pn,Dn){return cn<4?"രാത്രി":cn<12?"രാവിലെ":cn<17?"ഉച്ച കഴിഞ്ഞ്":cn<20?"വൈകുന്നേരം":"രാത്രി"}});function Ud(cn,pn,Dn,Bn){switch(Dn){case"s":return pn?"хэдхэн секунд":"хэдхэн секундын";case"ss":return cn+(pn?" секунд":" секундын");case"m":case"mm":return cn+(pn?" минут":" минутын");case"h":case"hh":return cn+(pn?" цаг":" цагийн");case"d":case"dd":return cn+(pn?" өдөр":" өдрийн");case"M":case"MM":return cn+(pn?" сар":" сарын");case"y":case"yy":return cn+(pn?" жил":" жилийн");default:return cn}}nn.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(cn){return cn==="ҮХ"},meridiem:function(cn,pn,Dn){return cn<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш
84] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:Ud,ss:Ud,m:Ud,mm:Ud,h:Ud,hh:Ud,d:Ud,dd:Ud,M:Ud,MM:Ud,y:Ud,yy:Ud},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+" өдөр";default:return cn}}});var P_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},N_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function qd(cn,pn,Dn,Bn){var ii="";if(pn)switch(Dn){case"s":ii="काही सेकंद";break;case"ss":ii="%d सेकंद";break;case"m":ii="एक मिनिट";break;case"mm":ii="%d मिनिटे";break;case"h":ii="एक तास";break;case"hh":ii="%d तास";break;case"d":ii="एक दिवस";break;case"dd":ii="%d दिवस";break;case"M":ii="एक महिना";break;case"MM":ii="%d महिने";break;case"y":ii="एक वर्ष";break;case"yy":ii="%d वर्षे";break}else switch(Dn){case"s":ii="काही सेकंदां";break;case"ss":ii="%d सेकंदां";break;case"m":ii="एका मिनिटा";break;case"mm":ii="%d मिनिटां";break;case"h":ii="एका तासा";break;case"hh":ii="%d तासां";break;case"d":ii="एका दिवसा";break;case"dd":ii="%d दिवसां";break;case"M":ii="एका महिन्या";break;case"MM":ii="%d महिन्यां";break;case"y":ii="एका वर्षा";break;case"yy":ii="%d वर्षां";break}return ii.replace(/%d/i,cn)}nn.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:qd,ss:qd,m:qd,mm:qd,h:qd,hh:qd,d:qd,dd:qd,M:qd,MM:qd,y:qd,yy:qd},preparse:function(cn){return cn.replace(/[१२३४५६७८९०]/g,function(pn){return N_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return P_[pn]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="पहाटे"||pn==="सकाळी")return cn;if(pn==="दुपारी"||pn==="सायंकाळी"||pn==="रात्री")return cn>=12?cn:cn+12},meridiem:function(cn,pn,Dn){return cn>=0&&cn<6?"पहाटे":cn<12?"सकाळी":cn<17?"दुपारी":cn<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});nn.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="pagi")return cn;if(pn==="tengahari")return cn>=11?cn:cn+12;if(pn==="petang"||pn==="malam")return cn+12},meridiem:function(cn,pn,Dn){return cn<11?"pagi":cn<15?"tengahari":cn<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});nn.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="pagi")return cn;if(pn==="tengahari")return cn>=11?cn:cn+12;if(pn==="petang"||pn==="malam")return cn+12},meridiem:function(cn,pn,Dn){return cn<11?"pagi":cn<15?"tengahari":cn<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});nn.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var C_={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},B_={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};nn.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနညá€
84ºá€¸á€„ယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(cn){return cn.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(pn){return B_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return C_[pn]})},week:{dow:1,doy:4}});nn.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var A_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Y_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};nn.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(cn){return cn.replace(/[१२३४५६७८९०]/g,function(pn){return Y_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return A_[pn]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="राति")return cn<4?cn:cn+12;if(pn==="बिहान")return cn;if(pn==="दिउँसो")return cn>=10?cn:cn+12;if(pn==="साँझ")return cn+12},meridiem:function(cn,pn,Dn){return cn<3?"राति":cn<12?"बिहान":cn<16?"दिउँसो":cn<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var Em="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),$_="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),om=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Om=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;nn.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?$_[cn.month()]:Em[cn.month()]:Em},monthsRegex:Om,monthsShortRegex:Om,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:om,longMonthsParse:om,shortMonthsParse:om,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(cn){return cn+(cn===1||cn===8||cn>=20?"ste":"de")},week:{dow:1,doy:4}});var Rm="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E_="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),lm=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Im=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;nn.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(cn,pn){return cn?/-MMM-/.test(pn)?E_[cn.month()]:Rm[cn.month()]:Rm},monthsRegex:Im,monthsShortRegex:Im,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:lm,longMonthsParse:lm,shortMonthsParse:lm,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(cn){return cn+(cn===1||cn===8||cn>=20?"ste":"de")},week:{dow:1,doy:4}});nn.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._mÃ¥._t
84y._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(cn,pn){var Dn=cn===1?"r":cn===2?"n":cn===3?"r":cn===4?"t":"è";return(pn==="w"||pn==="W")&&(Dn="a"),cn+Dn},week:{dow:1,doy:4}});var O_={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},R_={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};nn.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(cn){return cn.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(pn){return R_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return O_[pn]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="ਰਾਤ")return cn<4?cn:cn+12;if(pn==="ਸਵੇਰ")return cn;if(pn==="ਦੁਪਹਿਰ")return cn>=10?cn:cn+12;if(pn==="ਸ਼ਾਮ")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"ਰਾਤ":cn<10?"ਸਵੇਰ":cn<17?"ਦੁਪਹਿਰ":cn<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});
84var Fm="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),I_="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),cm=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function wf(cn){return cn%10<5&&cn%10>1&&~~(cn/10)%10!==1}function Zh(cn,pn,Dn){var Bn=cn+" ";switch(Dn){case"ss":return Bn+(wf(cn)?"sekundy":"sekund");case"m":return pn?"minuta":"minutę";case"mm":return Bn+(wf(cn)?"minuty":"minut");case"h":return pn?"godzina":"godzinę";case"hh":return Bn+(wf(cn)?"godziny":"godzin");case"ww":return Bn+(wf(cn)?"tygodnie":"tygodni");case"MM":return Bn+(wf(cn)?"miesiące":"miesięcy");case"yy":return Bn+(wf(cn)?"lata":"lat")}}nn.defineLocale("pl",{months:function(cn,pn){return cn?/D MMMM/.test(pn)?I_[cn.month()]:Fm[cn.month()]:Fm},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:cm,longMonthsParse:cm,shortMonthsParse:cm,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:Zh,m:Zh,mm:Zh,h:Zh,hh:Zh,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:Zh,M:"miesiąc",MM:Zh,y:"rok",yy:Zh},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});nn.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
84d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});function sf(cn,pn,Dn){var Bn={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},ii=" ";return(cn%100>=20||cn>=100&&cn%100===0)&&(ii=" de "),cn+ii+Bn[Dn]}nn.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:sf,m:"un minut",mm:sf,h:"o oră",hh:sf,d:"o zi",dd:sf,w:"o săptămână",ww:sf,M:"o lună",MM:sf,y:"un an",yy:sf},week:{dow:1,doy:7}});function F_(cn,pn){var Dn=cn.split("_");return pn%10===1&&pn%100!==11?Dn[0]:pn%10>=2&&pn%10<=4&&(pn%100<10||pn%100>=20)?Dn[1]:Dn[2]}function Kh(cn,pn,Dn){var Bn={ss:pn?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:pn?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return Dn==="m"?pn?"минута":"минуту":cn+" "+F_(Bn[Dn],+cn)}var um=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];nn.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:um,longMonthsParse:um,shortMonthsParse:um,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|ок
84т\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(cn){if(cn.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(cn){if(cn.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:Kh,m:Kh,mm:Kh,h:"час",hh:Kh,d:"день",dd:Kh,w:"неделя",ww:Kh,M:"месяц",MM:Kh,y:"год",yy:Kh},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(cn){return/^(дня|вечера)$/.test(cn)},meridiem:function(cn,pn,Dn){return cn<4?"ночи":cn<12?"утра":cn<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(cn,pn){switch(pn){case"M":case"d":case"DDD":return cn+"-й";case"D":return cn+"-го";case"w":case"W":return cn+"-я";default:return cn}},week:{dow:1,doy:4}});var Vm=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],dm=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];nn.defineLocale("sd",{months:Vm,monthsShort:Vm,weekdays:dm,weekdaysShort:dm,weekdaysMin:dm,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(cn){return cn==="شام"},meridiem:function(cn,pn,Dn){return cn<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(cn){return cn.replace(/،/g,",")},postformat:function(cn){return cn.replace(/,/g,"،")},week:{dow:1,doy:4}});nn.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});nn.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".
84split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(cn){return cn+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(cn){return cn==="ප.ව."||cn==="පස් වරු"},meridiem:function(cn,pn,Dn){return cn>11?Dn?"ප.ව.":"පස් වරු":Dn?"පෙ.ව.":"පෙර වරු"}});var V_="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),H_="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function kf(cn){return cn>1&&cn<5}function Gd(cn,pn,Dn,Bn){var ii=cn+" ";switch(Dn){case"s":return pn||Bn?"pár sekúnd":"pár sekundami";case"ss":return pn||Bn?ii+(kf(cn)?"sekundy":"sekúnd"):ii+"sekundami";case"m":return pn?"minúta":Bn?"minútu":"minútou";case"mm":return pn||Bn?ii+(kf(cn)?"minúty":"minút"):ii+"minútami";case"h":return pn?"hodina":Bn?"hodinu":"hodinou";case"hh":return pn||Bn?ii+(kf(cn)?"hodiny":"hodín"):ii+"hodinami";case"d":return pn||Bn?"deň":"dňom";case"dd":return pn||Bn?ii+(kf(cn)?"dni":"dní"):ii+"dňami";case"M":return pn||Bn?"mesiac":"mesiacom";case"MM":return pn||Bn?ii+(kf(cn)?"mesiace":"mesiacov"):ii+"mesiacmi";case"y":return pn||Bn?"rok":"rokom";case"yy":return pn||Bn?ii+(kf(cn)?"roky":"rokov"):ii+"rokmi"}}nn.defineLocale("sk",{months:V_,monthsShort:H_,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Gd,ss:Gd,m:Gd,mm:Gd,h:Gd,hh:Gd,d:Gd,dd:Gd,M:Gd,MM:Gd,y:Gd,yy:Gd},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function Zd(cn,pn,Dn,Bn){var ii=cn+" ";switch(Dn){case"s":return pn||Bn?"nekaj sekund":"nekaj sekundami";case"ss":return cn===1?ii+=pn?"sekundo":"sekundi":cn===2?ii+=pn||Bn?"sekundi":"sekundah":cn<5?ii+=pn||Bn?"sekunde":"sekundah":ii+="sekund",ii;case"m":return pn?"ena minuta":"eno minuto";case"mm":return cn===1?ii+=pn?"minuta":"minuto":cn===2?ii+=pn||Bn?"minuti":"minutama":cn<5?ii+=pn||Bn?"minute":"minutami":ii+=pn||Bn?"minut":"minutami",ii;case"h":return pn?"ena ura":"eno uro";case"hh":return cn===1?ii+=pn?"ura":"uro":cn===2?ii+=pn||Bn?"uri":"urama":cn<5?ii+=pn||Bn?"ure":"urami":ii+=pn||Bn?"ur":"urami",ii;case"d":return pn||Bn?"en dan":"enim dnem";case"dd":return cn===1?ii+=pn||Bn?"dan":"dnem":cn===2?ii+=pn||Bn?"dni":"dnevoma":ii+=pn||Bn?"dni":"dnevi",ii;case"M":return pn||Bn?"en mesec":"enim mesecem";case"MM":return cn===1?ii+=pn||Bn?"mesec":"mesecem":cn===2?ii+=pn||Bn?"meseca":"mesecema":cn<5?ii+=pn||Bn?"mesece":"meseci":ii+=pn||Bn?"mesecev":"meseci",ii;case"y":return pn||Bn?"eno leto":"enim letom";case"yy":return cn===1?ii+=pn||Bn?"leto":"letom":cn===2?ii+=pn||Bn?"leti":"letoma":cn<5?ii+=pn||Bn?"leta":"leti":ii+=pn||Bn?"let":"leti",ii}}nn.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:Zd,ss:Zd,m:Zd,mm:Zd,h:Zd,hh:Zd,d:Zd,dd:Zd,M:Zd,MM:Zd,y:Zd,yy:Zd},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});nn.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(cn){return cn.charAt(0)==="M"},meridiem:function(cn,pn,Dn){return cn<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Md={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(cn,pn){return cn%10>
84=1&&cn%10<=4&&(cn%100<10||cn%100>=20)?cn%10===1?pn[0]:pn[1]:pn[2]},translate:function(cn,pn,Dn,Bn){var ii=Md.words[Dn],Ki;return Dn.length===1?Dn==="y"&&pn?"једна година":Bn||pn?ii[0]:ii[1]:(Ki=Md.correctGrammaticalCase(cn,ii),Dn==="yy"&&pn&&Ki==="годину"?cn+" година":cn+" "+Ki)}};nn.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var cn=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return cn[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:Md.translate,m:Md.translate,mm:Md.translate,h:Md.translate,hh:Md.translate,d:Md.translate,dd:Md.translate,M:Md.translate,MM:Md.translate,y:Md.translate,yy:Md.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Ld={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(cn,pn){return cn%10>=1&&cn%10<=4&&(cn%100<10||cn%100>=20)?cn%10===1?pn[0]:pn[1]:pn[2]},translate:function(cn,pn,Dn,Bn){var ii=Ld.words[Dn],Ki;return Dn.length===1?Dn==="y"&&pn?"jedna godina":Bn||pn?ii[0]:ii[1]:(Ki=Ld.correctGrammaticalCase(cn,ii),Dn==="yy"&&pn&&Ki==="godinu"?cn+" godina":cn+" "+Ki)}};nn.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var cn=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return cn[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:Ld.translate,m:Ld.translate,mm:Ld.translate,h:Ld.translate,hh:Ld.translate,d:Ld.translate,dd:Ld.translate,M:Ld.translate,MM:Ld.translate,y:Ld.translate,yy:Ld.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});nn.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
84S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(cn,pn,Dn){return cn<11?"ekuseni":cn<15?"emini":cn<19?"entsambama":"ebusuku"},meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="ekuseni")return cn;if(pn==="emini")return cn>=11?cn:cn+12;if(pn==="entsambama"||pn==="ebusuku")return cn===0?0:cn+12},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});nn.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?":e":pn===1||pn===2?":a":":e";return cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var j_={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},z_={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};nn.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(cn){return cn+"வது"},preparse:function(cn){return cn.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(pn){return z_[pn]})},postformat:function(cn){return cn.replace(/\d/g,function(pn){return j_[pn]})}
84,meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(cn,pn,Dn){return cn<2?" யாமம்":cn<6?" வைகறை":cn<10?" காலை":cn<14?" நண்பகல்":cn<18?" எற்பாடு":cn<22?" மாலை":" யாமம்"},meridiemHour:function(cn,pn){return cn===12&&(cn=0),pn==="யாமம்"?cn<2?cn:cn+12:pn==="வைகறை"||pn==="காலை"||pn==="நண்பகல்"&&cn>=10?cn:cn+12},week:{dow:0,doy:6}});nn.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_à°¶".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}à°µ/,ordinal:"%dà°µ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="రాత్రి")return cn<4?cn:cn+12;if(pn==="ఉదయం")return cn;if(pn==="మధ్యాహ్నం")return cn>=10?cn:cn+12;if(pn==="సాయంత్రం")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"రాత్రి":cn<10?"ఉదయం":cn<17?"మధ్యాహ్నం":cn<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});nn.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:1,doy:4}});var hm={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};nn.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Ñ
84ÐºÑˆÐ°Ð½Ð±Ðµ_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="шаб")return cn<4?cn:cn+12;if(pn==="субҳ")return cn;if(pn==="рӯз")return cn>=11?cn:cn+12;if(pn==="бегоҳ")return cn+12},meridiem:function(cn,pn,Dn){return cn<4?"шаб":cn<11?"субҳ":cn<16?"рӯз":cn<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(cn){var pn=cn%10,Dn=cn>=100?100:null;return cn+(hm[cn]||hm[pn]||hm[Dn])},week:{dow:1,doy:7}});nn.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(cn){return cn==="หลังเที่ยง"},meridiem:function(cn,pn,Dn){return cn<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});var fm={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};nn.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
84,calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(cn,pn){switch(pn){case"d":case"D":case"Do":case"DD":return cn;default:if(cn===0)return cn+"'unjy";var Dn=cn%10,Bn=cn%100-Dn,ii=cn>=100?100:null;return cn+(fm[Dn]||fm[Bn]||fm[ii])}},week:{dow:1,doy:7}});nn.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(cn){return cn},week:{dow:1,doy:4}});var mm="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function W_(cn){var pn=cn;return pn=cn.indexOf("jaj")!==-1?pn.slice(0,-3)+"leS":cn.indexOf("jar")!==-1?pn.slice(0,-3)+"waQ":cn.indexOf("DIS")!==-1?pn.slice(0,-3)+"nem":pn+" pIq",pn}function U_(cn){var pn=cn;return pn=cn.indexOf("jaj")!==-1?pn.slice(0,-3)+"Hu’":cn.indexOf("jar")!==-1?pn.slice(0,-3)+"wen":cn.indexOf("DIS")!==-1?pn.slice(0,-3)+"ben":pn+" ret",pn}function bf(cn,pn,Dn,Bn){var ii=q_(cn);switch(Dn){case"ss":return ii+" lup";case"mm":return ii+" tup";case"hh":return ii+" rep";case"dd":return ii+" jaj";case"MM":return ii+" jar";case"yy":return ii+" DIS"}}function q_(cn){var pn=Math.floor(cn%1e3/100),Dn=Math.floor(cn%100/10),Bn=cn%10,ii="";return pn>0&&(ii+=mm[pn]+"vatlh"),Dn>0&&(ii+=(ii!==""?" ":"")+mm[Dn]+"maH"),Bn>0&&(ii+=(ii!==""?" ":"")+mm[Bn]),ii===""?"pagh":ii}nn.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:W_,past:U_,s:"puS lup",ss:bf,m:"wa’ tup",mm:bf,h:"wa’ rep",hh:bf,d:"wa’ jaj",dd:bf,M:"wa’ jar",MM:bf,y:"wa’ DIS",yy:bf},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var _m={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};nn.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(cn,pn,Dn){return cn<12?Dn?"öö":"ÖÖ":Dn?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(cn){return cn==="ös"||cn==="ÖS"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(cn,pn){switch(pn){case"d":case"D":case"Do":case"DD":return cn;default:if(cn===0)return cn+"'ıncı";var Dn=cn%10,Bn=cn%100-Dn,ii=cn>=100?100:null;return cn+(_m[Dn]||_m[Bn]||_m[ii])}},week:{dow:1,doy:7}});nn.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(cn){return cn.toLowerCase()==="d'o"},meridiem:function(cn,pn,Dn){return cn>11?Dn?"d'o":"D'O":Dn?"d'a":"D'A"}
84,calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Kd,ss:Kd,m:Kd,mm:Kd,h:Kd,hh:Kd,d:Kd,dd:Kd,M:Kd,MM:Kd,y:Kd,yy:Kd},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function Kd(cn,pn,Dn,Bn){var ii={s:["viensas secunds","'iensas secunds"],ss:[cn+" secunds",""+cn+" secunds"],m:["'n míut","'iens míut"],mm:[cn+" míuts",""+cn+" míuts"],h:["'n þora","'iensa þora"],hh:[cn+" þoras",""+cn+" þoras"],d:["'n ziua","'iensa ziua"],dd:[cn+" ziuas",""+cn+" ziuas"],M:["'n mes","'iens mes"],MM:[cn+" mesen",""+cn+" mesen"],y:["'n ar","'iens ar"],yy:[cn+" ars",""+cn+" ars"]};return Bn||pn?ii[Dn][0]:ii[Dn][1]}nn.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});nn.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ â´´] LT",nextDay:"[ⴰⵙⴽⴰ â´´] LT",nextWeek:"dddd [â´´] LT",lastDay:"[ⴰⵚⴰⵏⵜ â´´] LT",lastWeek:"dddd [â´´] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"â´°âµ¢oⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});nn.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنىØ
84Œ HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(cn,pn){return cn===12&&(cn=0),pn==="يېرىم كېچە"||pn==="سەھەر"||pn==="چۈشتىن بۇرۇن"?cn:pn==="چۈشتىن كېيىن"||pn==="كەچ"?cn+12:cn>=11?cn:cn+12},meridiem:function(cn,pn,Dn){var Bn=cn*100+pn;return Bn<600?"يېرىم كېچە":Bn<900?"سەھەر":Bn<1130?"چۈشتىن بۇرۇن":Bn<1230?"چۈش":Bn<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+"-كۈنى";case"w":case"W":return cn+"-ھەپتە";default:return cn}},preparse:function(cn){return cn.replace(/،/g,",")},postformat:function(cn){return cn.replace(/,/g,"،")},week:{dow:1,doy:7}});function G_(cn,pn){var Dn=cn.split("_");return pn%10===1&&pn%100!==11?Dn[0]:pn%10>=2&&pn%10<=4&&(pn%100<10||pn%100>=20)?Dn[1]:Dn[2]}function of(cn,pn,Dn){var Bn={ss:pn?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:pn?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:pn?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return Dn==="m"?pn?"хвилина":"хвилину":Dn==="h"?pn?"година":"годину":cn+" "+G_(Bn[Dn],+cn)}function Z_(cn,pn){var Dn={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},Bn;return cn===!0?Dn.nominative.slice(1,7).concat(Dn.nominative.slice(0,1)):cn?(Bn=/(\[[ВвУу]\]) ?dddd/.test(pn)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(pn)?"genitive":"nominative",Dn[Bn][cn.day()]):Dn.nominative}function Mf(cn){return function(){return cn+"о"+(this.hours()===11?"б":"")+"] LT"}}nn.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:Z_,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Mf("[Сьогодні "),nextDay:Mf("[Завтра "),lastDay:Mf("[Вчора "),nextWeek:Mf("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Mf("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Mf("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:of,m:of,mm:of,h:"годину",hh:of,d:"день",dd:of,M:"місяць",MM:of,y:"рік",yy:of},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(cn){return/^(дня|вечора)$/.test(cn)},meridiem:function(cn,pn,Dn){return cn<4?"ночі":cn<12?"ранку":cn<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(cn,pn){switch(pn){case"M":case"d":case"DDD":case"w":case"W":return cn+"-й";case"D":return cn+"-го";default:return cn}},week:{dow:1,doy:7}});var Hm=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],pm=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];nn.defineLocale("ur",{months:Hm,monthsShort:Hm,weekdays:pm,weekdaysShort:pm,weekdaysMin:pm,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(cn){return cn==="شام"},meridiem:function(cn,pn,Dn){return cn<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(cn){return cn.replace(/،/g,",")},postformat:function(cn){return cn.replace(/,/g,"،")},week:{dow:1,doy:4}});nn.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});nn.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%
84d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});nn.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(cn){return/^ch$/i.test(cn)},meridiem:function(cn,pn,Dn){return cn<12?Dn?"sa":"SA":Dn?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(cn){return cn},week:{dow:1,doy:4}});nn.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~út
84é",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(cn){var pn=cn%10,Dn=~~(cn%100/10)===1?"th":pn===1?"st":pn===2?"nd":pn===3?"rd":"th";return cn+Dn},week:{dow:1,doy:4}});nn.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});nn.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(cn,pn){return cn===12&&(cn=0),pn==="凌晨"||pn==="早上"||pn==="上午"?cn:pn==="下午"||pn==="晚上"?cn+12:cn>=11?cn:cn+12},meridiem:function(cn,pn,Dn){var Bn=cn*100+pn;return Bn<600?"凌晨":Bn<900?"早上":Bn<1130?"上午":Bn<1230?"中午":Bn<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(cn){return cn.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(cn){return this.week()!==cn.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+"日";case"M":return cn+"月";case"w":case"W":return cn+"周";default:return cn}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});nn.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="凌晨"||pn==="早上"||pn==="上午")return cn;if(pn==="中午")return cn>=11?cn:cn+12;if(pn==="下午"||pn==="晚上")return cn+12},meridiem:function(cn,pn,Dn){var Bn=cn*100+pn;
84return Bn<600?"凌晨":Bn<900?"早上":Bn<1200?"上午":Bn===1200?"中午":Bn<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+"日";case"M":return cn+"月";case"w":case"W":return cn+"週";default:return cn}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});nn.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="凌晨"||pn==="早上"||pn==="上午")return cn;if(pn==="中午")return cn>=11?cn:cn+12;if(pn==="下午"||pn==="晚上")return cn+12},meridiem:function(cn,pn,Dn){var Bn=cn*100+pn;return Bn<600?"凌晨":Bn<900?"早上":Bn<1130?"上午":Bn<1230?"中午":Bn<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+"日";case"M":return cn+"月";case"w":case"W":return cn+"週";default:return cn}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return nn.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(cn,pn){if(cn===12&&(cn=0),pn==="凌晨"||pn==="早上"||pn==="上午")return cn;if(pn==="中午")return cn>=11?cn:cn+12;if(pn==="下午"||pn==="晚上")return cn+12},meridiem:function(cn,pn,Dn){var Bn=cn*100+pn;return Bn<600?"凌晨":Bn<900?"早上":Bn<1130?"上午":Bn<1230?"中午":Bn<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(cn,pn){switch(pn){case"d":case"D":case"DDD":return cn+"日";case"M":return cn+"月";case"w":case"W":return cn+"週";default:return cn}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),nn.locale("en"),nn}))})(momentWithLocales$1)),momentWithLocales$1.exports}var momentWithLocalesExports=requireMomentWithLocales();const moment$3=getDefaultExportFromCjs(momentWithLocalesExports);function tryOnScopeDispose(en,He){return getCurrentScope()?(onScopeDispose(en,He),!0):!1}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$2=Object.prototype.toString,isObject=en=>toString$2.call(en)==="[object Object]",noop=()=>{};function toArray(en){return Array.isArray(en)?en:[en]}function watchImmediate(en,He,tn){return watch(en,He,{...tn,immediate:!0})}const defaultWindow=isClient?window:void 0;function unrefElement(en){var He;const tn=toValue$1(en);return(He=tn?.$el)!==null&&He!==void 0?He:tn}function useEventListener(...en){const He=[],tn=()=>{He.forEach(sn=>sn()),He.length=0},nn=(sn,dn,hn,mn)=>(sn.addEventListener(dn,hn,mn),()=>sn.removeEventListener(dn,hn,mn)),an=computed(()=>{const sn=toArray(toValue$1(en[0])).filter(dn=>dn!=null);return sn.every(dn=>typeof dn!="string")?sn:void 0}),rn=watchImmediate(()=>{var sn,dn;return[(sn=(dn=an.value)===null||dn===void 0?void 0:dn.map(hn=>unrefElement(hn)))!==null&&sn!==void 0?sn:[defaultWindow].filter(hn=>hn!=null),toArray(toValue$1(an.value?en[1]:en[0])),toArray(unref(an.value?en[2]:en[1])),toValue$1(an.value?en[3]:en[2])]},([sn,dn,hn,mn])=>{if(tn(),!sn?.length||!dn?.length||!hn?.length)return;const gn=isObject(mn)?{...mn}:mn;He.push(...sn.flatMap(yn=>dn.flatMap(fn=>hn.map(bn=>nn(yn,fn,bn,gn)))))},{flush:"post"}),on=()=>{rn(),tn()};return tryOnScopeDispose(tn),on}function onClickOutside(en,He,tn={}){const{window:nn=defaultWindow,ignore:an=[],capture:rn=!0,detectIframe:on=!1,controls:sn=!1}=tn;if(!nn)return sn?{stop:noop,cancel:noop,trigger:noop}:noop;let dn=!0;const hn=Tn=>toValue$1(an).some(xn=>{if(typeof xn=="string")return Array.from(nn.document.querySelectorAll(xn)).some(En=>En===Tn.target||Tn.composedPath().includes(En));{const En=unrefElement(xn);return En&&(Tn.target===En||Tn.composedPath().includes(En))}});function mn(Tn){const xn=toValue$1(Tn);return xn&&xn.$.subTree.shapeFlag===16}function gn(Tn,xn){const En=toValue$1(Tn),Rn=En.$.subTree&&En.$.subTree.children;return Rn==null||!Array.isArray(Rn)?!1:Rn.some(ni=>ni.el===xn.target||xn.composedPath().includes(ni.el))}const yn=Tn=>{const xn=unrefElement(en);if(Tn.target!=null&&!(!(xn instanceof Element)&&mn(en)&&gn(en,Tn))&&!(!xn||xn===Tn.target||Tn.composedPath().includes(xn))){if("detail"in Tn&&Tn.detail===0&&(dn=!hn(Tn)),!dn){dn=!0;return}He(Tn)}};let fn=!1;const bn=[useEventListener(nn,"click",Tn=>{fn||(fn=!0,setTimeout(()=>{fn=!1},0),yn(Tn))},{passive:!0,capture:rn}),useEventListener(nn,"pointerdown",Tn=>{const xn=unrefElement(en);dn=!hn(Tn)&&!!(xn&&!Tn.composedPath().includes(xn))},{passive:!0}),on&&useEventListener(nn,"blur",Tn=>{setTimeout(()=>{var xn;const En=unrefElement(en);((xn=nn.document.activeElement)===null||xn===void 0?void 0:xn.tagName)==="IFRAME"&&!En?.contains(nn.document.activeElement)&&He(Tn)},0)},{passive:!0}
84)].filter(Boolean),Mn=()=>bn.forEach(Tn=>Tn());return sn?{stop:Mn,cancel:()=>{dn=!1},trigger:Tn=>{dn=!0,yn(Tn),dn=!1}}:Mn}function useSwipe(en,He={}){const{threshold:tn=50,onSwipe:nn,onSwipeEnd:an,onSwipeStart:rn,passive:on=!0}=He,sn=reactive({x:0,y:0}),dn=reactive({x:0,y:0}),hn=computed(()=>sn.x-dn.x),mn=computed(()=>sn.y-dn.y),{max:gn,abs:yn}=Math,fn=computed(()=>gn(yn(hn.value),yn(mn.value))>=tn),bn=shallowRef(!1),Mn=computed(()=>fn.value?yn(hn.value)>yn(mn.value)?hn.value>0?"left":"right":mn.value>0?"up":"down":"none"),Tn=_i=>[_i.touches[0].clientX,_i.touches[0].clientY],xn=(_i,oi)=>{sn.x=_i,sn.y=oi},En=(_i,oi)=>{dn.x=_i,dn.y=oi},Rn={passive:on,capture:!on},ni=_i=>{bn.value&&an?.(_i,Mn.value),bn.value=!1},mi=[useEventListener(en,"touchstart",_i=>{if(_i.touches.length!==1)return;const[oi,si]=Tn(_i);xn(oi,si),En(oi,si),rn?.(_i)},Rn),useEventListener(en,"touchmove",_i=>{if(_i.touches.length!==1)return;const[oi,si]=Tn(_i);En(oi,si),Rn.capture&&!Rn.passive&&Math.abs(hn.value)>Math.abs(mn.value)&&_i.preventDefault(),!bn.value&&fn.value&&(bn.value=!0),bn.value&&nn?.(_i)},Rn),useEventListener(en,["touchend","touchcancel"],ni,Rn)];return{isSwiping:bn,direction:Mn,coordsStart:sn,coordsEnd:dn,lengthX:hn,lengthY:mn,stop:()=>mi.forEach(_i=>_i())}}const min$2=Math.min,max$2=Math.max,round=Math.round,floor=Math.floor,createCoords=en=>({x:en,y:en}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(en,He,tn){return max$2(en,min$2(He,tn))}function evaluate(en,He){return typeof en=="function"?en(He):en}function getSide(en){return en.split("-")[0]}function getAlignment(en){return en.split("-")[1]}function getOppositeAxis(en){return en==="x"?"y":"x"}function getAxisLength(en){return en==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(en){return yAxisSides.has(getSide(en))?"y":"x"}function getAlignmentAxis(en){return getOppositeAxis(getSideAxis(en))}function getAlignmentSides(en,He,tn){tn===void 0&&(tn=!1);const nn=getAlignment(en),an=getAlignmentAxis(en),rn=getAxisLength(an);let on=an==="x"?nn===(tn?"end":"start")?"right":"left":nn==="start"?"bottom":"top";return He.reference[rn]>He.floating[rn]&&(on=getOppositePlacement(on)),[on,getOppositePlacement(on)]}function getExpandedPlacements(en){const He=getOppositePlacement(en);return[getOppositeAlignmentPlacement(en),He,getOppositeAlignmentPlacement(He)]}function getOppositeAlignmentPlacement(en){return en.replace(/start|end/g,He=>oppositeAlignmentMap[He])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(en,He,tn){switch(en){case"top":case"bottom":return tn?He?rlPlacement:lrPlacement:He?lrPlacement:rlPlacement;case"left":case"right":return He?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(en,He,tn,nn){const an=getAlignment(en);let rn=getSideList(getSide(en),tn==="start",nn);return an&&(rn=rn.map(on=>on+"-"+an),He&&(rn=rn.concat(rn.map(getOppositeAlignmentPlacement)))),rn}function getOppositePlacement(en){return en.replace(/left|right|bottom|top/g,He=>oppositeSideMap[He])}function expandPaddingObject(en){return{top:0,right:0,bottom:0,left:0,...en}}function getPaddingObject(en){return typeof en!="number"?expandPaddingObject(en):{top:en,right:en,bottom:en,left:en}}function rectToClientRect(en){const{x:He,y:tn,width:nn,height:an}=en;return{width:nn,height:an,top:tn,left:He,right:He+nn,bottom:tn+an,x:He,y:tn}}function computeCoordsFromPlacement(en,He,tn){let{reference:nn,floating:an}=en;const rn=getSideAxis(He),on=getAlignmentAxis(He),sn=getAxisLength(on),dn=getSide(He),hn=rn==="y",mn=nn.x+nn.width/2-an.width/2,gn=nn.y+nn.height/2-an.height/2,yn=nn[sn]/2-an[sn]/2;let fn;switch(dn){case"top":fn={x:mn,y:nn.y-an.height};break;case"bottom":fn={x:mn,y:nn.y+nn.height};break;case"right":fn={x:nn.x+nn.width,y:gn};break;case"left":fn={x:nn.x-an.width,y:gn};break;default:fn={x:nn.x,y:nn.y}}switch(getAlignment(He)){case"start":fn[on]-=yn*(tn&&hn?-1:1);break;case"end":fn[on]+=yn*(tn&&hn?-1:1);break}return fn}const computePosition$1=async(en,He,tn)=>{const{placement:nn="bottom",strategy:an="absolute",middleware:rn=[],platform:on}
vendor: 19,477 bytes, line 84
84=tn,sn=rn.filter(Boolean),dn=await(on.isRTL==null?void 0:on.isRTL(He));let hn=await on.getElementRects({reference:en,floating:He,strategy:an}),{x:mn,y:gn}=computeCoordsFromPlacement(hn,nn,dn),yn=nn,fn={},bn=0;for(let Mn=0;Mn<sn.length;Mn++){const{name:Tn,fn:xn}=sn[Mn],{x:En,y:Rn,data:ni,reset:mi}=await xn({x:mn,y:gn,initialPlacement:nn,placement:yn,strategy:an,middlewareData:fn,rects:hn,platform:on,elements:{reference:en,floating:He}});mn=En??mn,gn=Rn??gn,fn={...fn,[Tn]:{...fn[Tn],...ni}},mi&&bn<=50&&(bn++,typeof mi=="object"&&(mi.placement&&(yn=mi.placement),mi.rects&&(hn=mi.rects===!0?await on.getElementRects({reference:en,floating:He,strategy:an}):mi.rects),{x:mn,y:gn}=computeCoordsFromPlacement(hn,yn,dn)),Mn=-1)}return{x:mn,y:gn,placement:yn,strategy:an,middlewareData:fn}};async function detectOverflow(en,He){var tn;He===void 0&&(He={});const{x:nn,y:an,platform:rn,rects:on,elements:sn,strategy:dn}=en,{boundary:hn="clippingAncestors",rootBoundary:mn="viewport",elementContext:gn="floating",altBoundary:yn=!1,padding:fn=0}=evaluate(He,en),bn=getPaddingObject(fn),Tn=sn[yn?gn==="floating"?"reference":"floating":gn],xn=rectToClientRect(await rn.getClippingRect({element:(tn=await(rn.isElement==null?void 0:rn.isElement(Tn)))==null||tn?Tn:Tn.contextElement||await(rn.getDocumentElement==null?void 0:rn.getDocumentElement(sn.floating)),boundary:hn,rootBoundary:mn,strategy:dn})),En=gn==="floating"?{x:nn,y:an,width:on.floating.width,height:on.floating.height}:on.reference,Rn=await(rn.getOffsetParent==null?void 0:rn.getOffsetParent(sn.floating)),ni=await(rn.isElement==null?void 0:rn.isElement(Rn))?await(rn.getScale==null?void 0:rn.getScale(Rn))||{x:1,y:1}:{x:1,y:1},mi=rectToClientRect(rn.convertOffsetParentRelativeRectToViewportRelativeRect?await rn.convertOffsetParentRelativeRectToViewportRelativeRect({elements:sn,rect:En,offsetParent:Rn,strategy:dn}):En);return{top:(xn.top-mi.top+bn.top)/ni.y,bottom:(mi.bottom-xn.bottom+bn.bottom)/ni.y,left:(xn.left-mi.left+bn.left)/ni.x,right:(mi.right-xn.right+bn.right)/ni.x}}const arrow$2=en=>({name:"arrow",options:en,async fn(He){const{x:tn,y:nn,placement:an,rects:rn,platform:on,elements:sn,middlewareData:dn}=He,{element:hn,padding:mn=0}=evaluate(en,He)||{};if(hn==null)return{};const gn=getPaddingObject(mn),yn={x:tn,y:nn},fn=getAlignmentAxis(an),bn=getAxisLength(fn),Mn=await on.getDimensions(hn),Tn=fn==="y",xn=Tn?"top":"left",En=Tn?"bottom":"right",Rn=Tn?"clientHeight":"clientWidth",ni=rn.reference[bn]+rn.reference[fn]-yn[fn]-rn.floating[bn],mi=yn[fn]-rn.reference[fn],bi=await(on.getOffsetParent==null?void 0:on.getOffsetParent(hn));let _i=bi?bi[Rn]:0;(!_i||!await(on.isElement==null?void 0:on.isElement(bi)))&&(_i=sn.floating[Rn]||rn.floating[bn]);const oi=ni/2-mi/2,si=_i/2-Mn[bn]/2-1,fi=min$2(gn[xn],si),ei=min$2(gn[En],si),ci=fi,di=_i-Mn[bn]-ei,wi=_i/2-Mn[bn]/2+oi,Ci=clamp(ci,wi,di),ji=!dn.arrow&&getAlignment(an)!=null&&wi!==Ci&&rn.reference[bn]/2-(wi<ci?fi:ei)-Mn[bn]/2<0,Yi=ji?wi<ci?wi-ci:wi-di:0;return{[fn]:yn[fn]+Yi,data:{[fn]:Ci,centerOffset:wi-Ci-Yi,...ji&&{alignmentOffset:Yi}},reset:ji}}}),flip$1=function(en){return en===void 0&&(en={}),{name:"flip",options:en,async fn(He){var tn,nn;const{placement:an,middlewareData:rn,rects:on,initialPlacement:sn,platform:dn,elements:hn}=He,{mainAxis:mn=!0,crossAxis:gn=!0,fallbackPlacements:yn,fallbackStrategy:fn="bestFit",fallbackAxisSideDirection:bn="none",flipAlignment:Mn=!0,...Tn}=evaluate(en,He);if((tn=rn.arrow)!=null&&tn.alignmentOffset)return{};const xn=getSide(an),En=getSideAxis(sn),Rn=getSide(sn)===sn,ni=await(dn.isRTL==null?void 0:dn.isRTL(hn.floating)),mi=yn||(Rn||!Mn?[getOppositePlacement(sn)]:getExpandedPlacements(sn)),bi=bn!=="none";!yn&&bi&&mi.push(...getOppositeAxisPlacements(sn,Mn,bn,ni));const _i=[sn,...mi],oi=await detectOverflow(He,Tn),si=[];let fi=((nn=rn.flip)==null?void 0:nn.overflows)||[];if(mn&&si.push(oi[xn]),gn){const wi=getAlignmentSides(an,on,ni);si.push(oi[wi[0]],oi[wi[1]])}if(fi=[...fi,{placement:an,overflows:si}],!si.every(wi=>wi<=0)){var ei,ci;const wi=(((ei=rn.flip)==null?void 0:ei.index)||0)+1,Ci=_i[wi];if(Ci&&(!(gn==="alignment"?En!==getSideAxis(Ci):!1)||fi.every(Pi=>getSideAxis(Pi.placement)===En?Pi.overflows[0]>0:!0)))return{data:{index:wi,overflows:fi},reset:{placement:Ci}};let ji=(ci=fi.filter(Yi=>Yi.overflows[0]<=0).sort((Yi,Pi)=>Yi.overflows[1]-Pi.overflows[1])[0])==null?void 0:ci.placement;if(!ji)switch(fn){case"bestFit":{var di;const Yi=(di=fi.filter(Pi=>{if(bi){const Fi=getSideAxis(Pi.placement);return Fi===En||Fi==="y"}return!0}).map(Pi=>[Pi.placement,Pi.overflows.filter(Fi=>Fi>0).reduce((Fi,$i)=>Fi+$i,0)]).sort((Pi,Fi)=>Pi[1]-Fi[1])[0])==null?void 0:di[0];Yi&&(ji=Yi);break}case"initialPlacement":ji=sn;break}if(an!==ji)return{reset:{placement:ji}}}return{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(en,He){const{placement:tn,platform:nn,elements:an}=en,rn=await(nn.isRTL==null?void 0:nn.isRTL(an.floating)),on=getSide(tn),sn=getAlignment(tn),dn=getSideAxis(tn)==="y",hn=originSides.has(on)?-1:1,mn=rn&&dn?-1:1,gn=evaluate(He,en);let{mainAxis:yn,crossAxis:fn,alignmentAxis:bn}=typeof gn=="number"?{mainAxis:gn,crossAxis:0,alignmentAxis:null}:{mainAxis:gn.mainAxis||0,crossAxis:gn.crossAxis||0,alignmentAxis:gn.alignmentAxis};return sn&&typeof bn=="number"&&(fn=sn==="end"?bn*-1:bn),dn?{x:fn*mn,y:yn*hn}:{x:yn*hn,y:fn*mn}}const offset$1=function(en){return en===void 0&&(en=0),{name:"offset",options:en,async fn(He){var tn,nn;const{x:an,y:rn,placement:on,middlewareData:sn}=He,dn=await convertValueToCoords(He,en);return on===((tn=sn.offset)==null?void 0:tn.placement)&&(nn=sn.arrow)!=null&&nn.alignmentOffset?{}:{x:an+dn.x,y:rn+dn.y,data:{...dn,placement:on}}}}},shift$1=function(en){return en===void 0&&(en={}),{name:"shift",options:en,async fn(He){const{x:tn,y:nn,placement:an}=He,{mainAxis:rn=!0,crossAxis:on=!1,limiter:sn={fn:Tn=>{let{x:xn,y:En}=Tn;return{x:xn,y:En}}},...dn}=evaluate(en,He),hn={x:tn,y:nn},mn=await detectOverflow(He,dn),gn=getSideAxis(getSide(an)),yn=getOppositeAxis(gn);let fn=hn[yn],bn=hn[gn];if(rn){const Tn=yn==="y"?"top":"left",xn=yn==="y"?"bottom":"right",En=fn+mn[Tn],Rn=fn-mn[xn];fn=clamp(En,fn,Rn)}if(on){const Tn=gn==="y"?"top":"left",xn=gn==="y"?"bottom":"right",En=bn+mn[Tn],Rn=bn-mn[xn];bn=clamp(En,bn,Rn)}const Mn=sn.fn({...He,[yn]:fn,[gn]:bn});return{...Mn,data:{x:Mn.x-tn,y:Mn.y-nn,enabled:{[yn]:rn,[gn]:on}}}}}};function hasWindow(){return typeof window<"u"}function getNodeName(en){return isNode(en)?(en.nodeName||"").toLowerCase():"#document"}function getWindow(en){var He;return(en==null||(He=en.ownerDocument)==null?void 0:He.defaultView)||window}function getDocumentElement(en){var He;return(He=(isNode(en)?en.ownerDocument:en.document)||window.document)==null?void 0:He.documentElement}function isNode(en){return hasWindow()?en instanceof Node||en instanceof getWindow(en).Node:!1}function isElement(en){return hasWindow()?en instanceof Element||en instanceof getWindow(en).Element:!1}function isHTMLElement(en){return hasWindow()?en instanceof HTMLElement||en instanceof getWindow(en).HTMLElement:!1}function isShadowRoot(en){return!hasWindow()||typeof ShadowRoot>"u"?!1:en instanceof ShadowRoot||en instanceof getWindow(en).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(en){const{overflow:He,overflowX:tn,overflowY:nn,display:an}=getComputedStyle$1(en);return/auto|scroll|overlay|hidden|clip/.test(He+nn+tn)&&!invalidOverflowDisplayValues.has(an)}const tableElements=new Set(["table","td","th"]);function isTableElement(en){return tableElements.has(getNodeName(en))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(en){return topLayerSelectors.some(He=>{try{return en.matches(He)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(en){const He=isWebKit(),tn=isElement(en)?getComputedStyle$1(en):en;return transformProperties.some(nn=>tn[nn]?tn[nn]!=="none":!1)||(tn.containerType?tn.containerType!=="normal":!1)||!He&&(tn.backdropFilter?tn.backdropFilter!=="none":!1)||!He&&(tn.filter?tn.filter!=="none":!1)||willChangeValues.some(nn=>(tn.willChange||"").includes(nn))||containValues.some(nn=>(tn.contain||"").includes(nn))}function getContainingBlock(en){let He=getParentNode(en);for(;isHTMLElement(He)&&!isLastTraversableNode(He);){if(isContainingBlock(He))return He;if(isTopLayer(He))return null;He=getParentNode(He)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(en){return lastTraversableNodeNames.has(getNodeName(en))}function getComputedStyle$1(en){return getWindow(en).getComputedStyle(en)}function getNodeScroll(en){return isElement(en)?{scrollLeft:en.scrollLeft,scrollTop:en.scrollTop}:{scrollLeft:en.scrollX,scrollTop:en.scrollY}}function getParentNode(en){if(getNodeName(en)==="html")return en;const He=en.assignedSlot||en.parentNode||isShadowRoot(en)&&en.host||getDocumentElement(en);return isShadowRoot(He)?He.host:He}function getNearestOverflowAncestor(en){const He=getParentNode(en);return isLastTraversableNode(He)?en.ownerDocument?en.ownerDocument.body:en.body:isHTMLElement(He)&&isOverflowElement(He)?He:getNearestOverflowAncestor(He)}function getOverflowAncestors(en,He,tn){var nn;He===void 0&&(He=[]),tn===void 0&&(tn=!0);const an=getNearestOverflowAncestor(en),rn=an===((nn=en.ownerDocument)==null?void 0:nn.body),on=getWindow(an);if(rn){const sn=getFrameElement(on);return He.concat(on,on.visualViewport||[],isOverflowElement(an)?an:[],sn&&tn?getOverflowAncestors(sn):[])}return He.concat(an,getOverflowAncestors(an,[],tn))}function getFrameElement(en){return en.parent&&Object.getPrototypeOf(en.parent)?en.frameElement:null}function getCssDimensions(en){const He=getComputedStyle$1(en);let tn=parseFloat(He.width)||0,nn=parseFloat(He.height)||0;const an=isHTMLElement(en),rn=an?en.offsetWidth:tn,on=an?en.offsetHeight:nn,sn=round(tn)!==rn||round(nn)!==on;return sn&&(tn=rn,nn=on),{width:tn,height:nn,$:sn}}function unwrapElement$1(en){return isElement(en)?en:en.contextElement}function getScale(en){const He=unwrapElement$1(en);if(!isHTMLElement(He))return createCoords(1);const tn=He.getBoundingClientRect(),{width:nn,height:an,$:rn}=getCssDimensions(He);let on=(rn?round(tn.width):tn.width)/nn,sn=(rn?round(tn.height):tn.height)/an;return(!on||!Number.isFinite(on))&&(on=1),(!sn||!Number.isFinite(sn))&&(sn=1),{x:on,y:sn}}const noOffsets=createCoords(0);function getVisualOffsets(en){const He=getWindow(en);return!isWebKit()||!He.visualViewport?noOffsets:{x:He.visualViewport.offsetLeft,y:He.visualViewport.offsetTop}}function shouldAddVisualOffsets(en,He,tn){return He===void 0&&(He=!1),!tn||He&&tn!==getWindow(en)?!1:He}function getBoundingClientRect(en,He,tn,nn){He===void 0&&(He=!1),tn===void 0&&(tn=!1);const an=en.getBoundingClientRect(),rn=unwrapElement$1(en);let on=createCoords(1);He&&(nn?isElement(nn)&&(on=getScale(nn)):on=getScale(en));const sn=shouldAddVisualOffsets(rn,tn,nn)?getVisualOffsets(rn):createCoords(0);let dn=(an.left+sn.x)/on.x,hn=(an.top+sn.y)/on.y,mn=an.width/on.x,gn=an.height/on.y;if(rn){const yn=getWindow(rn),fn=nn&&isElement(nn)?getWindow(nn):nn;let bn=yn,Mn=getFrameElement(bn);for(;Mn&&nn&&fn!==bn;){const Tn=getScale(Mn),xn=Mn.getBoundingClientRect(),En=getComputedStyle$1(Mn),Rn=xn.left+(Mn.clientLeft+parseFloat(En.paddingLeft))*Tn.x,ni=xn.top+(Mn.clientTop+parseFloat(En.paddingTop))*Tn.y;dn*=Tn.x,hn*=Tn.y,mn*=Tn.x,gn*=Tn.y,dn+=Rn,hn+=ni,bn=getWindow(Mn),Mn=getFrameElement(bn)}}return rectToClientRect({width:mn,height:gn,x:dn,y:hn})}function getWindowScrollBarX(en,He){const tn=getNodeScroll(en).scrollLeft;return He?He.left+tn:getBoundingClientRect(getDocumentElement(en)).left+tn}function getHTMLOffset(en,He){const tn=en.getBoundingClientRect(),nn=tn.left+He.scrollLeft-getWindowScrollBarX(en,tn),an=tn.top+He.scrollTop;return{x:nn,y:an}}function convertOffsetParentRelativeRectToViewportRelativeRect(en){let{elements:He,rect:tn,offsetParent:nn,strategy:an}=en;const rn=an==="fixed",on=getDocumentElement(nn),sn=He?isTopLayer(He.floating):!1;if(nn===on||sn&&rn)return tn;let dn={scrollLeft:0,scrollTop:0},hn=createCoords(1);const mn=createCoords(0),gn=isHTMLElement(nn);if((gn||!gn&&!rn)&&((getNodeName(nn)!=="body"||isOverflowElement(on))&&(dn=getNodeScroll(nn)),isHTMLElement(nn))){const fn=getBoundingClientRect(nn);hn=getScale(nn),mn.x=fn.x+nn.clientLeft,mn.y=fn.y+nn.clientTop}const yn=on&&!gn&&!rn?getHTMLOffset(on,dn):createCoords(0);return{width:tn.width*hn.x,height:tn.height*hn.y,x:tn.x*hn.x-dn.scrollLeft*hn.x+mn.x+yn.x,y:tn.y*hn.y-dn.scrollTop*hn.y+mn.y+yn.y}}function getClientRects(en){return Array.from(en.getClientRects())}function getDocumentRect(en){const He=getDocumentElement(en),tn=getNodeScroll(en),nn=en.ownerDocument.body,an=max$2(He.scrollWidth,He.clientWidth,nn.scrollWidth,nn.clientWidth),rn=max$2(He.scrollHeight,He.clientHeight,nn.scrollHeight,nn.clientHeight);let on=-tn.scrollLeft+getWindowScrollBarX(en);const sn=-tn.scrollTop;return getComputedStyle$1(nn).direction==="rtl"&&(on+=max$2(He.clientWidth,nn.clientWidth)-an),{width:an,height:rn,x:on,y:sn}}const SCROLLBAR_MAX=25;function getViewportRect(en,He){const tn=getWindow(en),nn=getDocumentElement(en),an=tn.visualViewport;let rn=nn.clientWidth,on=nn.clientHeight,sn=0,dn=0;if(an){rn=an.width,on=an.height;const mn=isWebKit();(!mn||mn&&He==="fixed")&&(sn=an.offsetLeft,dn=an.offsetTop)}const hn=getWindowScrollBarX(nn);if(hn<=0){const mn=nn.ownerDocument,gn=mn.body,yn=getComputedStyle(gn),fn=mn.compatMode==="CSS1Compat"&&parseFloat(yn.marginLeft)+parseFloat(yn.marginRight)||0,bn=Math.abs(nn.clientWidth-gn.clientWidth-fn);bn<=SCROLLBAR_MAX&&(rn-=bn)}else hn<=SCROLLBAR_MAX&&(rn+=hn);return{width:rn,height:on,x:sn,y:dn}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(en,He){const tn=getBoundingClientRect(en,!0,He==="fixed"),nn=tn.top+en.clientTop,an=tn.left+en.clientLeft,rn=isHTMLElement(en)?getScale(en):createCoords(1),on=en.clientWidth*rn.x,sn=en.clientHeight*rn.y,dn=an*rn.x,hn=nn*rn.y;return{width:on,height:sn,x:dn,y:hn}}function getClientRectFromClippingAncestor(en,He,tn){let nn;if(He==="viewport")nn=getViewportRect(en,tn);else if(He==="document")nn=getDocumentRect(getDocumentElement(en));else if(isElement(He))nn=getInnerBoundingClientRect(He,tn);else{const an=getVisualOffsets(en);nn={x:He.x-an.x,y:He.y-an.y,width:He.width,height:He.height}}return rectToClientRect(nn)}function hasFixedPositionAncestor(en,He){const tn=getParentNode(en);return tn===He||!isElement(tn)||isLastTraversableNode(tn)?!1:getComputedStyle$1(tn).position==="fixed"||hasFixedPositionAncestor(tn,He)}function getClippingElementAncestors(en,He){const tn=He.get(en);if(tn)return tn;let nn=getOverflowAncestors(en,[],!1).filter(sn=>isElement(sn)&&getNodeName(sn)!=="body"),an=null;const rn=getComputedStyle$1(en).position==="fixed";let on=rn?getParentNode(en):en;for(;isElement(on)&&!isLastTraversableNode(on);){const sn=getComputedStyle$1(on),dn=isContainingBlock(on);!dn&&sn.position==="fixed"&&(an=null),(rn?!dn&&!an:!dn&&sn.position==="static"&&!!an&&absoluteOrFixed.has(an.position)||isOverflowElement(on)&&!dn&&hasFixedPositionAncestor(en,on))?nn=nn.filter(mn=>mn!==on):an=sn,on=getParentNode(on)}return He.set(en,nn),nn}function getClippingRect(en){let{element:He,boundary:tn,rootBoundary:nn,strategy:an}=en;const on=[...tn==="clippingAncestors"?isTopLayer(He)?[]:getClippingElementAncestors(He,this._c):[].concat(tn),nn],sn=on[0],dn=on.reduce((hn,mn)=>{const gn=getClientRectFromClippingAncestor(He,mn,an);return hn.top=max$2(gn.top,hn.top),hn.right=min$2(gn.right,hn.right),hn.bottom=min$2(gn.bottom,hn.bottom),hn.left=max$2(gn.left,hn.left),hn},getClientRectFromClippingAncestor(He,sn,an));return{width:dn.right-dn.left,height:dn.bottom-dn.top,x:dn.left,y:dn.top}}function getDimensions(en){const{width:He,height:tn}=getCssDimensions(en);return{width:He,height:tn}}function getRectRelativeToOffsetParent(en,He,tn){const nn=isHTMLElement(He),an=getDocumentElement(He),rn=tn==="fixed",on=getBoundingClientRect(en,!0,rn,He);let sn={scrollLeft:0,scrollTop:0};const dn=createCoords(0);function hn(){dn.x=getWindowScrollBarX(an)}if(nn||!nn&&!rn)if((getNodeName(He)!=="body"||isOverflowElement(an))&&(sn=getNodeScroll(He)),nn){const fn=getBoundingClientRect(He,!0,rn,He);dn.x=fn.x+He.clientLeft,dn.y=fn.y+He.clientTop}else an&&hn();rn&&!nn&&an&&hn();const mn=an&&!nn&&!rn?getHTMLOffset(an,sn):createCoords(0),gn=on.left+sn.scrollLeft-dn.x-mn.x,yn=on.top+sn.scrollTop-dn.y-mn.y;return{x:gn,y:yn,width:on.width,height:on.height}}function isStaticPositioned(en){return getComputedStyle$1(en).position==="static"}function getTrueOffsetParent(en,He){if(!isHTMLElement(en)||getComputedStyle$1(en).position==="fixed")return null;if(He)return He(en);let tn=en.offsetParent;return getDocumentElement(en)===tn&&(tn=tn.ownerDocument.body),tn}function getOffsetParent(en,He){const tn=getWindow(en);if(isTopLayer(en))return tn;if(!isHTMLElement(en)){let an=getParentNode(en);for(;an&&!isLastTraversableNode(an);){if(isElement(an)&&!isStaticPositioned(an))return an;an=getParentNode(an)}return tn}let nn=getTrueOffsetParent(en,He);for(;nn&&isTableElement(nn)&&isStaticPositioned(nn);)nn=getTrueOffsetParent(nn,He);return nn&&isLastTraversableNode(nn)&&isStaticPositioned(nn)&&!isContainingBlock(nn)?tn:nn||getContainingBlock(en)||tn}const getElementRects=async function(en){const He=this.getOffsetParent||getOffsetParent,tn=this.getDimensions,nn=await tn(en.floating);return{reference:getRectRelativeToOffsetParent(en.reference,await He(en.floating),en.strategy),floating:{x:0,y:0,width:nn.width,height:nn.height}}};function isRTL(en){return getComputedStyle$1(en).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(en,He){return en.x===He.x&&en.y===He.y&&en.width===He.width&&en.height===He.height}function observeMove(en,He){let tn=null,nn;const an=getDocumentElement(en);function rn(){var sn;clearTimeout(nn),(sn=tn)==null||sn.disconnect(),tn=null}function on(sn,dn){sn===void 0&&(sn=!1),dn===void 0&&(dn=1),rn();const hn=en.getBoundingClientRect(),{left:mn,top:gn,width:yn,height:fn}=hn;if(sn||He(),!yn||!fn)return;const bn=floor(gn),Mn=floor(an.clientWidth-(mn+yn)),Tn=floor(an.clientHeight-(gn+fn)),xn=floor(mn),Rn={rootMargin:-bn+"px "+-Mn+"px "+-Tn+"px "+-xn+"px",threshold:max$2(0,min$2(1,dn))||1};let ni=!0;function mi(bi){const _i=bi[0].intersectionRatio;if(_i!==dn){if(!ni)return on();_i?on(!1,_i):nn=setTimeout(()=>{on(!1,1e-7)},1e3)}_i===1&&!rectsAreEqual(hn,en.getBoundingClientRect())&&on(),ni=!1}try{tn=new IntersectionObserver(mi,{...Rn,root:an.ownerDocument})}catch{tn=new IntersectionObserver(mi,Rn)}tn.observe(en)}return on(!0),rn}function autoUpdate(en,He,tn,nn){nn===void 0&&(nn={});const{ancestorScroll:an=!0,ancestorResize:rn=!0,elementResize:on=typeof ResizeObserver=="function",layoutShift:sn=typeof IntersectionObserver=="function",animationFrame:dn=!1}=nn,hn=unwrapElement$1(en),mn=an||rn?[...hn?getOverflowAncestors(hn):[],...getOverflowAncestors(
84He)]:[];mn.forEach(xn=>{an&&xn.addEventListener("scroll",tn,{passive:!0}),rn&&xn.addEventListener("resize",tn)});const gn=hn&&sn?observeMove(hn,tn):null;let yn=-1,fn=null;on&&(fn=new ResizeObserver(xn=>{let[En]=xn;En&&En.target===hn&&fn&&(fn.unobserve(He),cancelAnimationFrame(yn),yn=requestAnimationFrame(()=>{var Rn;(Rn=fn)==null||Rn.observe(He)})),tn()}),hn&&!dn&&fn.observe(hn),fn.observe(He));let bn,Mn=dn?getBoundingClientRect(en):null;dn&&Tn();function Tn(){const xn=getBoundingClientRect(en);Mn&&!rectsAreEqual(Mn,xn)&&tn(),Mn=xn,bn=requestAnimationFrame(Tn)}return tn(),()=>{var xn;mn.forEach(En=>{an&&En.removeEventListener("scroll",tn),rn&&En.removeEventListener("resize",tn)}),gn?.(),(xn=fn)==null||xn.disconnect(),fn=null,dn&&cancelAnimationFrame(bn)}}const offset=offset$1,shift=shift$1,flip=flip$1,arrow$1=arrow$2,computePosition=(en,He,tn)=>{const nn=new Map,an={platform,...tn},rn={...an.platform,_c:nn};return computePosition$1(en,He,{...an,platform:rn})};function isComponentPublicInstance(en){return en!=null&&typeof en=="object"&&"$el"in en}function unwrapElement(en){if(isComponentPublicInstance(en)){const He=en.$el;return isNode(He)&&getNodeName(He)==="#comment"?null:He}return en}function toValue(en){return typeof en=="function"?en():unref(en)}function arrow(en){return{name:"arrow",options:en,fn(He){const tn=unwrapElement(toValue(en.element));return tn==null?{}:arrow$1({element:tn,padding:en.padding}).fn(He)}}}function getDPR(en){return typeof window>"u"?1:(en.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(en,He){const tn=getDPR(en);return Math.round(He*tn)/tn}function useFloating(en,He,tn){tn===void 0&&(tn={});const nn=tn.whileElementsMounted,an=computed(()=>{var _i;return(_i=toValue(tn.open))!=null?_i:!0}),rn=computed(()=>toValue(tn.middleware)),on=computed(()=>{var _i;return(_i=toValue(tn.placement))!=null?_i:"bottom"}),sn=computed(()=>{var _i;return(_i=toValue(tn.strategy))!=null?_i:"absolute"}),dn=computed(()=>{var _i;return(_i=toValue(tn.transform))!=null?_i:!0}),hn=computed(()=>unwrapElement(en.value)),mn=computed(()=>unwrapElement(He.value)),gn=ref(0),yn=ref(0),fn=ref(sn.value),bn=ref(on.value),Mn=shallowRef({}),Tn=ref(!1),xn=computed(()=>{const _i={position:fn.value,left:"0",top:"0"};if(!mn.value)return _i;const oi=roundByDPR(mn.value,gn.value),si=roundByDPR(mn.value,yn.value);return dn.value?{..._i,transform:"translate("+oi+"px, "+si+"px)",...getDPR(mn.value)>=1.5&&{willChange:"transform"}}:{position:fn.value,left:oi+"px",top:si+"px"}});let En;function Rn(){if(hn.value==null||mn.value==null)return;const _i=an.value;computePosition(hn.value,mn.value,{middleware:rn.value,placement:on.value,strategy:sn.value}).then(oi=>{gn.value=oi.x,yn.value=oi.y,fn.value=oi.strategy,bn.value=oi.placement,Mn.value=oi.middlewareData,Tn.value=_i!==!1})}function ni(){typeof En=="function"&&(En(),En=void 0)}function mi(){if(ni(),nn===void 0){Rn();return}if(hn.value!=null&&mn.value!=null){En=nn(hn.value,mn.value,Rn);return}}function bi(){an.value||(Tn.value=!1)}return watch([rn,on,sn,an],Rn,{flush:"sync"}),watch([hn,mn],mi,{flush:"sync"}),watch(an,bi,{flush:"sync"}),getCurrentScope()&&onScopeDispose(ni),{x:shallowReadonly(gn),y:shallowReadonly(yn),strategy:shallowReadonly(fn),placement:shallowReadonly(bn),middlewareData:shallowReadonly(Mn),isPositioned:shallowReadonly(Tn),floatingStyles:xn,update:Rn}}const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3,constructFromSymbol=Symbol.for("constructDateFrom");function constructFrom(en,He){return typeof en=="function"?en(He):en&&typeof en=="object"&&constructFromSymbol in en?en[constructFromSymbol](He):en instanceof Date?new en.constructor(He):new Date(He)}function toDate(en,He){return constructFrom(He||en,en)}function addDays(en,He,tn){const nn=toDate(en,tn?.in);return isNaN(He)?constructFrom(tn?.in||en,NaN):(He&&nn.setDate(nn.getDate()+He),nn)}function addMonths(en,He,tn){const nn=toDate(en,tn?.in);if(isNaN(He))return constructFrom(en,NaN);if(!He)return nn;const an=nn.getDate(),rn=constructFrom(en,nn.getTime());rn.setMonth(nn.getMonth()+He+1,0);const on=rn.getDate();return an>
84=on?rn:(nn.setFullYear(rn.getFullYear(),rn.getMonth(),an),nn)}function add(en,He,tn){const{years:nn=0,months:an=0,weeks:rn=0,days:on=0,hours:sn=0,minutes:dn=0,seconds:hn=0}=He,mn=toDate(en,tn?.in),gn=an||nn?addMonths(mn,an+nn*12):mn,yn=on||rn?addDays(gn,on+rn*7):gn,fn=dn+sn*60,Mn=(hn+fn*60)*1e3;return constructFrom(en,+yn+Mn)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(en,He){const tn=getDefaultOptions$1(),nn=He?.weekStartsOn??He?.locale?.options?.weekStartsOn??tn.weekStartsOn??tn.locale?.options?.weekStartsOn??0,an=toDate(en,He?.in),rn=an.getDay(),on=(rn<nn?7:0)+rn-nn;return an.setDate(an.getDate()-on),an.setHours(0,0,0,0),an}function startOfISOWeek(en,He){return startOfWeek(en,{...He,weekStartsOn:1})}function getISOWeekYear(en,He){const tn=toDate(en,He?.in),nn=tn.getFullYear(),an=constructFrom(tn,0);an.setFullYear(nn+1,0,4),an.setHours(0,0,0,0);const rn=startOfISOWeek(an),on=constructFrom(tn,0);on.setFullYear(nn,0,4),on.setHours(0,0,0,0);const sn=startOfISOWeek(on);return tn.getTime()>=rn.getTime()?nn+1:tn.getTime()>=sn.getTime()?nn:nn-1}
84function getTimezoneOffsetInMilliseconds(en){const He=toDate(en),tn=new Date(Date.UTC(He.getFullYear(),He.getMonth(),He.getDate(),He.getHours(),He.getMinutes(),He.getSeconds(),He.getMilliseconds()));return tn.setUTCFullYear(He.getFullYear()),+en-+tn}function normalizeDates(en,...He){const tn=constructFrom.bind(null,He.find(nn=>typeof nn=="object"));return He.map(tn)}function startOfDay(en,He){const tn=toDate(en,He?.in);return tn.setHours(0,0,0,0),tn}function differenceInCalendarDays(en,He,tn){const[nn,an]=normalizeDates(tn?.in,en,He),rn=startOfDay(nn),on=startOfDay(an),sn=+rn-getTimezoneOffsetInMilliseconds(rn),dn=+on-getTimezoneOffsetInMilliseconds(on);return Math.round((sn-dn)/millisecondsInDay)}function startOfISOWeekYear(en,He){const tn=getISOWeekYear(en,He),nn=constructFrom(en,0);return nn.setFullYear(tn,0,4),nn.setHours(0,0,0,0),startOfISOWeek(nn)}function addQuarters(en,He,tn){return addMonths(en,He*3,tn)}function addYears(en,He,tn){return addMonths(en,He*12,tn)}function compareAsc(en,He){const tn=+toDate(en)-+toDate(He);return tn<0?-1:tn>0?1:tn}function isDate(en){return en instanceof Date||typeof en=="object"&&Object.prototype.toString.call(en)==="[object Date]"}function isValid(en){return!(!isDate(en)&&typeof en!="number"||isNaN(+toDate(en)))}function getQuarter(en,He){const tn=toDate(en,He?.in);return Math.trunc(tn.getMonth()/3)+1}function differenceInCalendarYears(en,He,tn){const[nn,an]=normalizeDates(tn?.in,en,He);return nn.getFullYear()-an.getFullYear()}function getRoundingMethod(en){return He=>{const nn=(en?Math[en]:Math.trunc)(He);return nn===0?0:nn}}function differenceInYears(en,He,tn){const[nn,an]=normalizeDates(tn?.in,en,He),rn=compareAsc(nn,an),on=Math.abs(differenceInCalendarYears(nn,an));nn.setFullYear(1584),an.setFullYear(1584);const sn=compareAsc(nn,an)===-rn,dn=rn*(on-+sn);return dn===0?0:dn}function normalizeInterval(en,He){const[tn,nn]=normalizeDates(en,He.start,He.end);return{start:tn,end:nn}}function eachDayOfInterval(en,He){const{start:tn,end:nn}=normalizeInterval(He?.in,en);let an=+tn>+nn;const rn=an?+tn:+nn,on=an?nn:tn;on.setHours(0,0,0,0);let sn=1;const dn=[];for(;+on<=rn;)dn.push(constructFrom(tn,on)),on.setDate(on.getDate()+sn),on.setHours(0,0,0,0);return an?dn.reverse():dn}function startOfQuarter(en,He){const tn=toDate(en,He?.in),nn=tn.getMonth(),an=nn-nn%3;return tn.setMonth(an,1),tn.setHours(0,0,0,0),tn}function eachQuarterOfInterval(en,He){const{start:tn,end:nn}=normalizeInterval(He?.in,en);let an=+tn>+nn;const rn=an?+startOfQuarter(tn):+startOfQuarter(nn);let on=startOfQuarter(an?nn:tn),sn=1;const dn=[];for(;+on<=rn;)dn.push(constructFrom(tn,on)),on=addQuarters(on,sn);return an?dn.reverse():dn}function startOfMonth(en,He){const tn=toDate(en,He?.in);return tn.setDate(1),tn.setHours(0,0,0,0),tn}function endOfYear(en,He){const tn=toDate(en,He?.in),nn=tn.getFullYear();return tn.setFullYear(nn+1,0,0),tn.setHours(23,59,59,999),tn}function startOfYear(en,He){const tn=toDate(en,He?.in);return tn.setFullYear(tn.getFullYear(),0,1),tn.setHours(0,0,0,0),tn}function endOfWeek(en,He){const tn=getDefaultOptions$1(),nn=He?.weekStartsOn??He?.locale?.options?.weekStartsOn??tn.weekStartsOn??tn.locale?.options?.weekStartsOn??0,an=toDate(en,He?.in),rn=an.getDay(),on=(rn<nn?-7:0)+6-(rn-nn);return an.setDate(an.getDate()+on),an.setHours(23,59,59,999),an}function endOfQuarter(en,He){const tn=toDate(en,He?.in),nn=tn.getMonth(),an=nn-nn%3+3;return tn.setMonth(an,0),tn.setHours(23,59,59,999),tn}const formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=(en,He,tn)=>{let nn;const an=formatDistanceLocale[en];return typeof an=="string"?nn=an:He===1?nn=an.one:nn=an.other.replace("{{count}}",He.toString()),tn?.addSuffix?tn.comparison&&tn.comparison>0?"in "+nn:nn+" ago":nn};function buildFormatLongFn(en){return(He={})=>{const tn=He.width?String(He.width):en.defaultWidth;return en.formats[tn]||en.formats[en.defaultWidth]}}const dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=(en,He,tn,nn)=>formatRelativeLocale[en];function buildLocalizeFn(en){return(He,tn)=>{const nn=tn?.context?String(tn.context):"standalone";let an;if(nn==="formatting"&&en.formattingValues){const on=en.defaultFormattingWidth||en.defaultWidth,sn=tn?.width?String(tn.width):on;an=en.formattingValues[sn]||en.formattingValues[on]}else{const on=en.defaultWidth,sn=tn?.width?String(tn.width):en.defaultWidth;an=en.values[sn]||en.values[on]}const rn=en.argumentCallback?en.argumentCallback(He):He;
vendor: 6,363 bytes, line 84
84return an[rn]}}const eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=(en,He)=>{const tn=Number(en),nn=tn%100;if(nn>20||nn<10)switch(nn%10){case 1:return tn+"st";case 2:return tn+"nd";case 3:return tn+"rd"}return tn+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:en=>en-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(en){return(He,tn={})=>{const nn=tn.width,an=nn&&en.matchPatterns[nn]||en.matchPatterns[en.defaultMatchWidth],rn=He.match(an);if(!rn)return null;const on=rn[0],sn=nn&&en.parsePatterns[nn]||en.parsePatterns[en.defaultParseWidth],dn=Array.isArray(sn)?findIndex(sn,gn=>gn.test(on)):findKey(sn,gn=>gn.test(on));let hn;hn=en.valueCallback?en.valueCallback(dn):dn,hn=tn.valueCallback?tn.valueCallback(hn):hn;const mn=He.slice(on.length);return{value:hn,rest:mn}}}function findKey(en,He){for(const tn in en)if(Object.prototype.hasOwnProperty.call(en,tn)&&He(en[tn]))return tn}function findIndex(en,He){for(let tn=0;tn<en.length;tn++)if(He(en[tn]))return tn}function buildMatchPatternFn(en){return(He,tn={})=>{const nn=He.match(en.matchPattern);if(!nn)return null;const an=nn[0],rn=He.match(en.parsePattern);if(!rn)return null;let on=en.valueCallback?en.valueCallback(rn[0]):rn[0];on=tn.valueCallback?tn.valueCallback(on):on;const sn=He.slice(an.length);return{value:on,rest:sn}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:en=>parseInt(en,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:en=>en+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(en,He){const tn=toDate(en,He?.in);return differenceInCalendarDays(tn,startOfYear(tn))+1}function getISOWeek(en,He){const tn=toDate(en,He?.in),nn=+startOfISOWeek(tn)-+startOfISOWeekYear(tn);return Math.round(nn/millisecondsInWeek)+1}function getWeekYear(en,He){const tn=toDate(en,He?.in),nn=tn.getFullYear(),an=getDefaultOptions$1(),rn=He?.firstWeekContainsDate??He?.locale?.options?.firstWeekContainsDate??an.firstWeekContainsDate??an.locale?.options?.firstWeekContainsDate??1,on=constructFrom(He?.in||en,0);on.setFullYear(nn+1,0,rn),on.setHours(0,0,0,0);const sn=startOfWeek(on,He),dn=constructFrom(He?.in||en,0);
vendor: 10,761 bytes, line 84
84dn.setFullYear(nn,0,rn),dn.setHours(0,0,0,0);const hn=startOfWeek(dn,He);return+tn>=+sn?nn+1:+tn>=+hn?nn:nn-1}function startOfWeekYear(en,He){const tn=getDefaultOptions$1(),nn=He?.firstWeekContainsDate??He?.locale?.options?.firstWeekContainsDate??tn.firstWeekContainsDate??tn.locale?.options?.firstWeekContainsDate??1,an=getWeekYear(en,He),rn=constructFrom(He?.in||en,0);return rn.setFullYear(an,0,nn),rn.setHours(0,0,0,0),startOfWeek(rn,He)}function getWeek(en,He){const tn=toDate(en,He?.in),nn=+startOfWeek(tn,He)-+startOfWeekYear(tn,He);return Math.round(nn/millisecondsInWeek)+1}function addLeadingZeros(en,He){const tn=en<0?"-":"",nn=Math.abs(en).toString().padStart(He,"0");return tn+nn}const lightFormatters={y(en,He){const tn=en.getFullYear(),nn=tn>0?tn:1-tn;return addLeadingZeros(He==="yy"?nn%100:nn,He.length)},M(en,He){const tn=en.getMonth();return He==="M"?String(tn+1):addLeadingZeros(tn+1,2)},d(en,He){return addLeadingZeros(en.getDate(),He.length)},a(en,He){const tn=en.getHours()/12>=1?"pm":"am";switch(He){case"a":case"aa":return tn.toUpperCase();case"aaa":return tn;case"aaaaa":return tn[0];case"aaaa":default:return tn==="am"?"a.m.":"p.m."}},h(en,He){return addLeadingZeros(en.getHours()%12||12,He.length)},H(en,He){return addLeadingZeros(en.getHours(),He.length)},m(en,He){return addLeadingZeros(en.getMinutes(),He.length)},s(en,He){return addLeadingZeros(en.getSeconds(),He.length)},S(en,He){const tn=He.length,nn=en.getMilliseconds(),an=Math.trunc(nn*Math.pow(10,tn-3));return addLeadingZeros(an,He.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(en,He,tn){const nn=en.getFullYear()>0?1:0;switch(He){case"G":case"GG":case"GGG":return tn.era(nn,{width:"abbreviated"});case"GGGGG":return tn.era(nn,{width:"narrow"});case"GGGG":default:return tn.era(nn,{width:"wide"})}},y:function(en,He,tn){if(He==="yo"){const nn=en.getFullYear(),an=nn>0?nn:1-nn;return tn.ordinalNumber(an,{unit:"year"})}return lightFormatters.y(en,He)},Y:function(en,He,tn,nn){const an=getWeekYear(en,nn),rn=an>0?an:1-an;if(He==="YY"){const on=rn%100;return addLeadingZeros(on,2)}return He==="Yo"?tn.ordinalNumber(rn,{unit:"year"}):addLeadingZeros(rn,He.length)},R:function(en,He){const tn=getISOWeekYear(en);return addLeadingZeros(tn,He.length)},u:function(en,He){const tn=en.getFullYear();return addLeadingZeros(tn,He.length)},Q:function(en,He,tn){const nn=Math.ceil((en.getMonth()+1)/3);switch(He){case"Q":return String(nn);case"QQ":return addLeadingZeros(nn,2);case"Qo":return tn.ordinalNumber(nn,{unit:"quarter"});case"QQQ":return tn.quarter(nn,{width:"abbreviated",context:"formatting"});case"QQQQQ":return tn.quarter(nn,{width:"narrow",context:"formatting"});case"QQQQ":default:return tn.quarter(nn,{width:"wide",context:"formatting"})}},q:function(en,He,tn){const nn=Math.ceil((en.getMonth()+1)/3);switch(He){case"q":return String(nn);case"qq":return addLeadingZeros(nn,2);case"qo":return tn.ordinalNumber(nn,{unit:"quarter"});case"qqq":return tn.quarter(nn,{width:"abbreviated",context:"standalone"});case"qqqqq":return tn.quarter(nn,{width:"narrow",context:"standalone"});case"qqqq":default:return tn.quarter(nn,{width:"wide",context:"standalone"})}},M:function(en,He,tn){const nn=en.getMonth();switch(He){case"M":case"MM":return lightFormatters.M(en,He);case"Mo":return tn.ordinalNumber(nn+1,{unit:"month"});case"MMM":return tn.month(nn,{width:"abbreviated",context:"formatting"});case"MMMMM":return tn.month(nn,{width:"narrow",context:"formatting"});case"MMMM":default:return tn.month(nn,{width:"wide",context:"formatting"})}},L:function(en,He,tn){const nn=en.getMonth();switch(He){case"L":return String(nn+1);case"LL":return addLeadingZeros(nn+1,2);case"Lo":return tn.ordinalNumber(nn+1,{unit:"month"});case"LLL":return tn.month(nn,{width:"abbreviated",context:"standalone"});case"LLLLL":return tn.month(nn,{width:"narrow",context:"standalone"});case"LLLL":default:return tn.month(nn,{width:"wide",context:"standalone"})}},w:function(en,He,tn,nn){const an=getWeek(en,nn);return He==="wo"?tn.ordinalNumber(an,{unit:"week"}):addLeadingZeros(an,He.length)},I:function(en,He,tn){const nn=getISOWeek(en);return He==="Io"?tn.ordinalNumber(nn,{unit:"week"}):addLeadingZeros(nn,He.length)},d:function(en,He,tn){return He==="do"?tn.ordinalNumber(en.getDate(),{unit:"date"}):lightFormatters.d(en,He)},D:function(en,He,tn){const nn=getDayOfYear(en);return He==="Do"?tn.ordinalNumber(nn,{unit:"dayOfYear"}):addLeadingZeros(nn,He.length)},E:function(en,He,tn){const nn=en.getDay();switch(He){case"E":case"EE":case"EEE":return tn.day(nn,{width:"abbreviated",context:"formatting"});case"EEEEE":return tn.day(nn,{width:"narrow",context:"formatting"});case"EEEEEE":return tn.day(nn,{width:"short",context:"formatting"});case"EEEE":default:return tn.day(nn,{width:"wide",context:"formatting"})}},e:function(en,He,tn,nn){const an=en.getDay(),rn=(an-nn.weekStartsOn+8)%7||7;switch(He){case"e":return String(rn);case"ee":return addLeadingZeros(rn,2);case"eo":return tn.ordinalNumber(rn,{unit:"day"});case"eee":return tn.day(an,{width:"abbreviated",context:"formatting"});case"eeeee":return tn.day(an,{width:"narrow",context:"formatting"});case"eeeeee":return tn.day(an,{width:"short",context:"formatting"});case"eeee":default:return tn.day(an,{width:"wide",context:"formatting"})}},c:function(en,He,tn,nn){const an=en.getDay(),rn=(an-nn.weekStartsOn+8)%7||7;switch(He){case"c":return String(rn);case"cc":return addLeadingZeros(rn,He.length);case"co":return tn.ordinalNumber(rn,{unit:"day"});case"ccc":return tn.day(an,{width:"abbreviated",context:"standalone"});case"ccccc":return tn.day(an,{width:"narrow",context:"standalone"});case"cccccc":return tn.day(an,{width:"short",context:"standalone"});case"cccc":default:return tn.day(an,{width:"wide",context:"standalone"})}},i:function(en,He,tn){const nn=en.getDay(),an=nn===0?7:nn;switch(He){case"i":return String(an);case"ii":return addLeadingZeros(an,He.length);case"io":return tn.ordinalNumber(an,{unit:"day"});case"iii":return tn.day(nn,{width:"abbreviated",context:"formatting"});case"iiiii":return tn.day(nn,{width:"narrow",context:"formatting"});case"iiiiii":return tn.day(nn,{width:"short",context:"formatting"});case"iiii":default:return tn.day(nn,{width:"wide",context:"formatting"})}},a:function(en,He,tn){const an=en.getHours()/12>=1?"pm":"am";switch(He){case"a":case"aa":return tn.dayPeriod(an,{width:"abbreviated",context:"formatting"});case"aaa":return tn.dayPeriod(an,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return tn.dayPeriod(an,{width:"narrow",context:"formatting"});case"aaaa":default:return tn.dayPeriod(an,{width:"wide",context:"formatting"})}},b:function(en,He,tn){const nn=en.getHours();let an;switch(nn===12?an=dayPeriodEnum.noon:nn===0?an=dayPeriodEnum.midnight:an=nn/12>=1?"pm":"am",He){case"b":case"bb":return tn.dayPeriod(an,{width:"abbreviated",context:"formatting"});case"bbb":return tn.dayPeriod(an,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return tn.dayPeriod(an,{width:"narrow",context:"formatting"});case"bbbb":default:return tn.dayPeriod(an,{width:"wide",context:"formatting"})}},B:function(en,He,tn){const nn=en.getHours();let an;switch(nn>=17?an=dayPeriodEnum.evening:nn>=12?an=dayPeriodEnum.afternoon:nn>=4?an=dayPeriodEnum.morning:an=dayPeriodEnum.night,He){case"B":case"BB":case"BBB":return tn.dayPeriod(an,{width:"abbreviated",context:"formatting"});case"BBBBB":return tn.dayPeriod(an,{width:"narrow",context:"formatting"});case"BBBB":default:return tn.dayPeriod(an,{width:"wide",context:"formatting"})}},h:function(en,He,tn){if(He==="ho"){let nn=en.getHours()%12;return nn===0&&(nn=12),tn.ordinalNumber(nn,{unit:"hour"})}return lightFormatters.h(en,He)},H:function(en,He,tn){return He==="Ho"?tn.ordinalNumber(en.getHours(),{unit:"hour"}):lightFormatters.H(en,He)},K:function(en,He,tn){const nn=en.getHours()%12;return He==="Ko"?tn.ordinalNumber(nn,{unit:"hour"}):addLeadingZeros(nn,He.length)},k:function(en,He,tn){let nn=en.getHours();return nn===0&&(nn=24),He==="ko"?tn.ordinalNumber(nn,{unit:"hour"}):addLeadingZeros(nn,He.length)},m:function(en,He,tn){return He==="mo"?tn.ordinalNumber(en.getMinutes(),{unit:"minute"}):lightFormatters.m(en,He)},s:function(en,He,tn){return He==="so"?tn.ordinalNumber(en.getSeconds(),{unit:"second"}):lightFormatters.s(en,He)},S:function(en,He){return lightFormatters.S(en,He)},X:function(en,He,tn){const nn=en.getTimezoneOffset();if(nn===0)return"Z";switch(He){case"X":return formatTimezoneWithOptionalMinutes(nn);case"XXXX":case"XX":return formatTimezone(nn);case"XXXXX":case"XXX":default:return formatTimezone(nn,":")}},x:function(en,He,tn){const nn=en.getTimezoneOffset();switch(He){case"x":return formatTimezoneWithOptionalMinutes(nn);case"xxxx":case"xx":return formatTimezone(nn);case"xxxxx":case"xxx":default:return formatTimezone(nn,":")}},O:function(en,He,tn){const nn=en.getTimezoneOffset();switch(He){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(nn,":");case"OOOO":default:return"GMT"+formatTimezone(nn,":")}},z:function(en,He,tn){const nn=en.getTimezoneOffset();switch(He){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(nn,":");case"zzzz":default:return"GMT"+formatTimezone(nn,":")}},t:function(en,He,tn){const nn=Math.trunc(+en/1e3);return addLeadingZeros(nn,He.length)},T:function(en,He,tn){return addLeadingZeros(+en,He.length)}};function formatTimezoneShort(en,He=""){const tn=en>0?"-":"+",nn=Math.abs(en),an=Math.trunc(nn/60),rn=nn%60;return rn===0?tn+String(an):tn+String(an)+He+addLeadingZeros(rn,2)}function formatTimezoneWithOptionalMinutes(en,He){return en%60===0?(en>0?"-":"+")+addLeadingZeros(Math.abs(en)/60,2):formatTimezone(en,He)}function formatTimezone(en,He=""){const tn=en>0?"-":"+",nn=Math.abs(en),an=addLeadingZeros(Math.trunc(nn/60),2),rn=addLeadingZeros(nn%60,2);return tn+an+He+rn}const dateLongFormatter=(en,He)=>{switch(en){case"P":return He.date({width:"short"});case"PP":return He.date({width:"medium"});case"PPP":return He.date({width:"long"});case"PPPP":default:return He.date({width:"full"})}},timeLongFormatter=(en,He)=>{switch(en){case"p":return He.time({width:"short"});case"pp":return He.time({width:"medium"});case"ppp":return He.time({width:"long"});case"pppp":default:return He.time({width:"full"})}},dateTimeLongFormatter=(en,He)=>{const tn=en.match(/(P+)(p+)?/)||[],nn=tn[1],an=tn[2];if(!an)return dateLongFormatter(en,He);let rn;switch(nn){case"P":rn=He.dateTime({width:"short"});break;case"PP":rn=He.dateTime({width:"medium"});break;case"PPP":rn=He.dateTime({width:"long"});break;case"PPPP":default:rn=He.dateTime({width:"full"});break}return rn.replace("{{date}}",dateLongFormatter(nn,He)).replace("{{time}}
84",timeLongFormatter(an,He))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(en){return dayOfYearTokenRE.test(en)}function isProtectedWeekYearToken(en){return weekYearTokenRE.test(en)}function warnOrThrowProtectedError(en,He,tn){const nn=message(en,He,tn);if(console.warn(nn),throwTokens.includes(en))throw new RangeError(nn)}function message(en,He,tn){const nn=en[0]==="Y"?"years":"days of the month";return`Use \`${en.toLowerCase()}\` instead of \`${en}\` (in \`${He}\`) for formatting ${nn} to the input \`${tn}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format$1(en,He,tn){const nn=getDefaultOptions$1(),an=tn?.locale??nn.locale??enUS,rn=tn?.firstWeekContainsDate??tn?.locale?.options?.firstWeekContainsDate??nn.firstWeekContainsDate??nn.locale?.options?.firstWeekContainsDate??1,on=tn?.weekStartsOn??tn?.locale?.options?.weekStartsOn??nn.weekStartsOn??nn.locale?.options?.weekStartsOn??0,sn=toDate(en,tn?.in);if(!isValid(sn))throw new RangeError("Invalid time value");let dn=He.match(longFormattingTokensRegExp$1).map(mn=>{const gn=mn[0];if(gn==="p"||gn==="P"){const yn=longFormatters[gn];return yn(mn,an.formatLong)}return mn}).join("").match(formattingTokensRegExp$1).map(mn=>{if(mn==="''")return{isToken:!1,value:"'"};const gn=mn[0];if(gn==="'")return{isToken:!1,value:cleanEscapedString$1(mn)};if(formatters[gn])return{isToken:!0,value:mn};if(gn.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+gn+"`");return{isToken:!1,value:mn}});an.localize.preprocessor&&(dn=an.localize.preprocessor(sn,dn));const hn={firstWeekContainsDate:rn,weekStartsOn:on,locale:an};return dn.map(mn=>{if(!mn.isToken)return mn.value;const gn=mn.value;(!tn?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(gn)||!tn?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(gn))&&warnOrThrowProtectedError(gn,He,String(en));const yn=formatters[gn[0]];return yn(sn,gn,an.localize,hn)}).join("")}function cleanEscapedString$1(en){const He=en.match(escapedStringRegExp$1);return He?He[1].replace(doubleQuoteRegExp$1,"'"):en}function getDay(en,He){return toDate(en,He?.in).getDay()}function getDaysInMonth(en,He){const tn=toDate(en,He?.in),nn=tn.getFullYear(),an=tn.getMonth(),rn=constructFrom(tn,0);return rn.setFullYear(nn,an+1,0),rn.setHours(0,0,0,0),rn.getDate()}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getHours(en,He){return toDate(en,He?.in).getHours()}function getISODay(en,He){const tn=toDate(en,He?.in).getDay();return tn===0?7:tn}function getMinutes(en,He){return toDate(en,He?.in).getMinutes()}function getMonth(en,He){return toDate(en,He?.in).getMonth()}function getSeconds(en){return toDate(en).getSeconds()}function getYear(en,He){return toDate(en,He?.in).getFullYear()}function isAfter(en,He){return+toDate(en)>+toDate(He)}function isBefore(en,He){return+toDate(en)<+toDate(He)}function isEqual(en,He){return+toDate(en)==+toDate(He)}function transpose(en,He){const tn=isConstructor(He)?new He(0):constructFrom(He,0);return tn.setFullYear(en.getFullYear(),en.getMonth(),en.getDate()),tn.setHours(en.getHours(),en.getMinutes(),en.getSeconds(),en.getMilliseconds()),tn}function isConstructor(en){return typeof en=="function"&&en.prototype?.constructor===en}const TIMEZONE_UNIT_PRIORITY=10;class Setter{subPriority=0;validate(He,tn){return!0}}class ValueSetter extends Setter{constructor(He,tn,nn,an,rn){super(),this.value=He,this.validateValue=tn,this.setValue=nn,this.priority=an,rn&&(this.subPriority=rn)}validate(He,tn){return this.validateValue(He,this.value,tn)}set(He,tn,nn){return this.setValue(He,tn,this.value,nn)}}class DateTimezoneSetter extends Setter{priority=TIMEZONE_UNIT_PRIORITY;subPriority=-1;constructor(He,tn){super(),this.context=He||(nn=>constructFrom(tn,nn))}set(He,tn){return tn.timestampIsSet?He:constructFrom(He,transpose(He,this.context))}}class Parser{run(He,tn,nn,an){const rn=this.parse(He,tn,nn,an);return rn?{setter:new ValueSetter(rn.value,this.validate,this.set,this.priority,this.subPriority),rest:rn.rest}:null}validate(He,tn,nn){return!0}}class EraParser extends Parser{priority=140;parse(He,tn,nn){switch(tn){case"G":case"GG":case"GGG":return nn.era(He,{width:"abbreviated"})||nn.era(He,{width:"narrow"});case"GGGGG":return nn.era(He,{width:"narrow"});case"GGGG":default:return nn.era(He,{width:"wide"})||nn.era(He,{width:"abbreviated"})||nn.era(He,{width:"narrow"})}}set(He,tn,nn){return tn.era=nn,He.setFullYear(nn,0,1),He.setHours(0,0,0,0),He}incompatibleTokens=["R","u","t","T"]}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/}
84,timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(en,He){return en&&{value:He(en.value),rest:en.rest}}function parseNumericPattern(en,He){const tn=He.match(en);return tn?{value:parseInt(tn[0],10),rest:He.slice(tn[0].length)}:null}function parseTimezonePattern(en,He){const tn=He.match(en);if(!tn)return null;if(tn[0]==="Z")return{value:0,rest:He.slice(1)};const nn=tn[1]==="+"?1:-1,an=tn[2]?parseInt(tn[2],10):0,rn=tn[3]?parseInt(tn[3],10):0,on=tn[5]?parseInt(tn[5],10):0;return{value:nn*(an*millisecondsInHour+rn*millisecondsInMinute+on*millisecondsInSecond),rest:He.slice(tn[0].length)}}function parseAnyDigitsSigned(en){return parseNumericPattern(numericPatterns.anyDigitsSigned,en)}function parseNDigits(en,He){switch(en){case 1:return parseNumericPattern(numericPatterns.singleDigit,He);case 2:return parseNumericPattern(numericPatterns.twoDigits,He);case 3:return parseNumericPattern(numericPatterns.threeDigits,He);case 4:return parseNumericPattern(numericPatterns.fourDigits,He);default:return parseNumericPattern(new RegExp("^\\d{1,"+en+"}"),He)}}function parseNDigitsSigned(en,He){switch(en){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,He);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,He);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,He);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,He);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+en+"}"),He)}}function dayPeriodEnumToHours(en){switch(en){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(en,He){const tn=He>0,nn=tn?He:1-He;let an;if(nn<=50)an=en||100;else{const rn=nn+50,on=Math.trunc(rn/100)*100,sn=en>=rn%100;an=en+on-(sn?100:0)}return tn?an:1-an}function isLeapYearIndex(en){return en%400===0||en%4===0&&en%100!==0}class YearParser extends Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(He,tn,nn){const an=rn=>({year:rn,isTwoDigitYear:tn==="yy"});switch(tn){case"y":return mapValue(parseNDigits(4,He),an);case"yo":return mapValue(nn.ordinalNumber(He,{unit:"year"}),an);default:return mapValue(parseNDigits(tn.length,He),an)}}validate(He,tn){return tn.isTwoDigitYear||tn.year>0}set(He,tn,nn){const an=He.getFullYear();if(nn.isTwoDigitYear){const on=normalizeTwoDigitYear(nn.year,an);return He.setFullYear(on,0,1),He.setHours(0,0,0,0),He}const rn=!("era"in tn)||tn.era===1?nn.year:1-nn.year;return He.setFullYear(rn,0,1),He.setHours(0,0,0,0),He}}class LocalWeekYearParser extends Parser{priority=130;parse(He,tn,nn){const an=rn=>({year:rn,isTwoDigitYear:tn==="YY"});switch(tn){case"Y":return mapValue(parseNDigits(4,He),an);case"Yo":return mapValue(nn.ordinalNumber(He,{unit:"year"}),an);default:return mapValue(parseNDigits(tn.length,He),an)}}validate(He,tn){return tn.isTwoDigitYear||tn.year>0}set(He,tn,nn,an){const rn=getWeekYear(He,an);if(nn.isTwoDigitYear){const sn=normalizeTwoDigitYear(nn.year,rn);return He.setFullYear(sn,0,an.firstWeekContainsDate),He.setHours(0,0,0,0),startOfWeek(He,an)}const on=!("era"in tn)||tn.era===1?nn.year:1-nn.year;return He.setFullYear(on,0,an.firstWeekContainsDate),He.setHours(0,0,0,0),startOfWeek(He,an)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class ISOWeekYearParser extends Parser{priority=130;parse(He,tn){return parseNDigitsSigned(tn==="R"?4:tn.length,He)}set(He,tn,nn){const an=constructFrom(He,0);return an.setFullYear(nn,0,4),an.setHours(0,0,0,0),startOfISOWeek(an)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class ExtendedYearParser extends Parser{priority=130;parse(He,tn){return parseNDigitsSigned(tn==="u"?4:tn.length,He)}set(He,tn,nn){return He.setFullYear(nn,0,1),He.setHours(0,0,0,0),He}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class QuarterParser extends Parser{priority=120;parse(He,tn,nn){switch(tn){case"Q":case"QQ":return parseNDigits(tn.length,He);case"Qo":return nn.ordinalNumber(He,{unit:"quarter"});case"QQQ":return nn.quarter(He,{width:"abbreviated",context:"formatting"})||nn.quarter(He,{width:"narrow",context:"formatting"});case"QQQQQ":return nn.quarter(He,{width:"narrow",context:"formatting"});case"QQQQ":default:return nn.quarter(He,{width:"wide",context:"formatting"})||nn.quarter(He,{width:"abbreviated",context:"formatting"})||nn.quarter(He,{width:"narrow",context:"formatting"})}}validate(He,tn){return tn>=1&&tn<=4}set(He,tn,nn){return He.setMonth((nn-1)*3,1),He.setHours(0,0,0,0),He}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class StandAloneQuarterParser extends Parser{priority=120;parse(He,tn,nn){switch(tn){case"q":case"qq":return parseNDigits(tn.length,He);case"qo":return nn.ordinalNumber(He,{unit:"quarter"});case"qqq":return nn.quarter(He,{width:"abbreviated",context:"standalone"})||nn.quarter(He,{width:"narrow",context:"standalone"});case"qqqqq":return nn.quarter(He,{width:"narrow",context:"standalone"});case"qqqq":default:return nn.quarter(He,{width:"wide",context:"standalone"})||nn.quarter(He,{width:"abbreviated",context:"standalone"})||nn.quarter(He,{width:"narrow",context:"standalone"})}}validate(He,tn){return tn>=1&&tn<=4}set(He,tn,nn){return He.setMonth((nn-1)*3,1),He.setHours(0,0,0,0),He}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class MonthParser extends Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(He,tn,nn){const an=rn=>rn-1;switch(tn){case"M":return mapValue(parseNumericPattern(numericPatterns.month,He),an);case"MM":return mapValue(parseNDigits(2,He),an);case"Mo":return mapValue(nn.ordinalNumber(He,{unit:"month"}),an);case"MMM":return nn.month(He,{width:"abbreviated",context:"formatting"})||nn.month(He,{width:"narrow",context:"formatting"});case"MMMMM":return nn.month(He,{width:"narrow",context:"formatting"});case"MMMM":default:return nn.month(He,{width:"wide",context:"formatting"})||nn.month(He,{width:"abbreviated",context:"formatting"})||nn.month(He,{width:"narrow",context:"formatting"})}}validate(He,tn){return tn>=0&&tn<=11}set(He,tn,nn){return He.setMonth(nn,1),He.setHours(0,0,0,0),He}}class StandAloneMonthParser extends Parser{priority=110;parse(He,tn,nn){const an=rn=>rn-1;switch(tn){case"L":return mapValue(parseNumericPattern(numericPatterns.month,He),an);case"LL":return mapValue(parseNDigits(2,He),an);case"Lo":return mapValue(nn.ordinalNumber(He,{unit:"month"}),an);case"LLL":return nn.month(He,{width:"abbreviated",context:"standalone"})||nn.month(He,{width:"narrow",context:"standalone"});case"LLLLL":return nn.month(He,{width:"narrow",context:"standalone"});case"LLLL":default:return nn.month(He,{width:"wide",context:"standalone"})||nn.month(He,{width:"abbreviated",context:"standalone"})||nn.month(He,{width:"narrow",context:"standalone"})}}validate(He,tn){return tn>=0&&tn<=11}set(He,tn,nn){return He.setMonth(nn,1),He.setHours(0,0,0,0),He}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function setWeek(en,He,tn){const nn=toDate(en,tn?.in),an=getWeek(nn,tn)-He;return nn.setDate(nn.getDate()-an*7),toDate(nn,tn?.in)}class LocalWeekParser extends Parser{priority=100;parse(He,tn,nn){switch(tn){case"w":return parseNumericPattern(numericPatterns.week,He);case"wo":return nn.ordinalNumber(He,{unit:"week"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=1&&tn<=53}set(He,tn,nn,an){return startOfWeek(setWeek(He,nn,an),an)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function setISOWeek(en,He,tn){const nn=toDate(en,tn?.in),an=getISOWeek(nn,tn)-He;return nn.setDate(nn.getDate()-an*7),nn}class ISOWeekParser extends Parser{priority=100;parse(He,tn,nn){switch(tn){case"I":return parseNumericPattern(numericPatterns.week,He);case"Io":return nn.ordinalNumber(He,{unit:"week"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=1&&tn<=53}set(He,tn,nn){return startOfISOWeek(setISOWeek(He,nn))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{priority=90;subPriority=1;parse(He,tn,nn){switch(tn){case"d":return parseNumericPattern(numericPatterns.date,He);case"do":return nn.ordinalNumber(He,{unit:"date"});default:return parseNDigits(tn.length,He)}}validate(He,tn){const nn=He.getFullYear(),an=isLeapYearIndex(nn),rn=He.getMonth();return an?tn>=1&&tn<=DAYS_IN_MONTH_LEAP_YEAR[rn]:tn>=1&&tn<=DAYS_IN_MONTH[rn]}set(He,tn,nn){return He.setDate(nn),He.setHours(0,0,0,0),He}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class DayOfYearParser extends Parser{priority=90;subpriority=1;parse(He,tn,nn){switch(tn){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,He);case"Do":return nn.ordinalNumber(He,{unit:"date"});default:return parseNDigits(tn.length,He)}}validate(He,tn){const nn=He.getFullYear();return isLeapYearIndex(nn)?tn>=1&&tn<=366:tn>=1&&tn<=365}set(He,tn,nn){return He.setMonth(0,nn),He.setHours(0,0,0,0),He}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function setDay(en,He,tn){const nn=getDefaultOptions$1(),an=tn?.weekStartsOn??tn?.locale?.options?.weekStartsOn??nn.weekStartsOn??nn.locale?.options?.weekStartsOn??0,rn=toDate(en,tn?.in),on=rn.getDay(),dn=(He%7+7)%7,hn=7-an,mn=He<0||He>6?He-(on+hn)%7:(dn+hn)%7-(on+hn)%7;return addDays(rn,mn,tn)}class DayParser extends Parser{priority=90;parse(He,tn,nn){switch(tn){case"E":case"EE":case"EEE":return nn.day(He,{width:"abbreviated",context:"formatting"})||nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"});case"EEEEE":return nn.day(He,{width:"narrow",context:"formatting"});case"EEEEEE":return nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"});case"EEEE":default:return nn.day(He,{width:"wide",context:"formatting"})||nn.day(He,{width:"abbreviated",context:"formatting"})||nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"})}}validate(He,tn){return tn>=0&&tn<=6}set(He,tn,nn,an){return He=setDay(He,nn,an),He.setHours(0,0,0,0),He}incompatibleTokens=["D","i","e","c","t","T"]}class LocalDayParser extends Parser{priority=90;parse(He,tn,nn,an){const rn=on=>{const sn=Math.floor((on-1)/7)*7;return(on+an.weekStartsOn+6)%7+sn};switch(tn){case"e":case"ee":return mapValue(parseNDigits(tn.length,He),rn);case"eo":return mapValue(nn.ordinalNumber(He,{unit:"day"}),rn);case"eee":return nn.day(He,{width:"abbreviated",context:"formatting"})||nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"});case"eeeee":return nn.day(He,{width:"narrow",context:"formatting"});case"eeeeee":return nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"});case"eeee":default:return nn.day(He,{width:"wide",context:"formatting"})||nn.day(He,{width:"abbreviated",context:"formatting"})||nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"})}}validate(He,tn){return tn>=0&&tn<=6}set(He,tn,nn,an){return He=setDay(He,nn,an),He.setHours(0,0,0,0),He}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class StandAloneLocalDayParser extends Parser{priority=90;parse(He,tn,nn,an){const rn=on=>{const sn=Math.floor((on-1)/7)*7;return(on+an.weekStartsOn+6)%7+sn};switch(tn){case"c":case"cc":return mapValue(parseNDigits(tn.length,He),rn);case"co":return mapValue(nn.ordinalNumber(He,{unit:"day"}),rn);case"ccc":return nn.day(He,{width:"abbreviated",context:"standalone"})||nn.day(He,{width:"short",context:"standalone"})||nn.day(He,{width:"narrow",context:"standalone"});case"ccccc":return nn.day(He,{width:"narrow",context:"standalone"});case"cccccc":return nn.day(He,{width:"short",context:"standalone"})||nn.day(He,{width:"narrow",context:"standalone"});case"cccc":default:return nn.day(He,{width:"wide",context:"standalone"})||nn.day(He,{width:"abbreviated",context:"standalone"})||nn.day(He,{width:"short",context:"standalone"})||nn.day(He,{width:"narrow",context:"standalone"})}}validate(He,tn){return tn>=0&&tn<=6}set(He,tn,nn,an){return He=setDay(He,nn,an),He.setHours(0,0,0,0),He}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function setISODay(en,He,tn){const nn=toDate(en,tn?.in),an=getISODay(nn,tn),rn=He-an;return addDays(nn,rn,tn)}class ISODayParser extends Parser{priority=90;parse(He,tn,nn){const an=rn=>rn===0?7:rn;switch(tn){case"i":case"ii":return parseNDigits(tn.length,He);case"io":return nn.ordinalNumber(He,{unit:"day"});case"iii":return mapValue(nn.day(He,{width:"abbreviated",context:"formatting"})||nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"}),an);case"iiiii":return mapValue(nn.day(He,{width:"narrow",context:"formatting"}),an);case"iiiiii":return mapValue(nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"}),an);case"iiii":default:return mapValue(nn.day(He,{width:"wide",context:"formatting"})||nn.day(He,{width:"abbreviated",context:"formatting"})||nn.day(He,{width:"short",context:"formatting"})||nn.day(He,{width:"narrow",context:"formatting"}),an)}}validate(He,tn){return tn>=1&&tn<=7}set(He,tn,nn){return He=setISODay(He,nn),He.setHours(0,0,0,0),He}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class AMPMParser extends Parser{priority=80;parse(He,tn,nn){switch(tn){case"a":case"aa":case"aaa":return nn.dayPeriod(He,{width:"abbreviated",context:"formatting"})||nn.dayPeriod(He,{width:"narrow",context:"formatting"});case"aaaaa":return nn.dayPeriod(He,{width:"narrow",context:"formatting"});case"aaaa":default:return nn.dayPeriod(He,{width:"wide",context:"formatting"})||nn.dayPeriod(He,{width:"abbreviated",context:"formatting"})||nn.dayPeriod(He,{width:"narrow",context:"formatting"})}}set(He,tn,nn){return He.setHours(dayPeriodEnumToHours(nn),0,0,0),He}incompatibleTokens=["b","B","H","k","t","T"]}class AMPMMidnightParser extends Parser{priority=80;
84parse(He,tn,nn){switch(tn){case"b":case"bb":case"bbb":return nn.dayPeriod(He,{width:"abbreviated",context:"formatting"})||nn.dayPeriod(He,{width:"narrow",context:"formatting"});case"bbbbb":return nn.dayPeriod(He,{width:"narrow",context:"formatting"});case"bbbb":default:return nn.dayPeriod(He,{width:"wide",context:"formatting"})||nn.dayPeriod(He,{width:"abbreviated",context:"formatting"})||nn.dayPeriod(He,{width:"narrow",context:"formatting"})}}set(He,tn,nn){return He.setHours(dayPeriodEnumToHours(nn),0,0,0),He}incompatibleTokens=["a","B","H","k","t","T"]}class DayPeriodParser extends Parser{priority=80;parse(He,tn,nn){switch(tn){case"B":case"BB":case"BBB":return nn.dayPeriod(He,{width:"abbreviated",context:"formatting"})||nn.dayPeriod(He,{width:"narrow",context:"formatting"});case"BBBBB":return nn.dayPeriod(He,{width:"narrow",context:"formatting"});case"BBBB":default:return nn.dayPeriod(He,{width:"wide",context:"formatting"})||nn.dayPeriod(He,{width:"abbreviated",context:"formatting"})||nn.dayPeriod(He,{width:"narrow",context:"formatting"})}}set(He,tn,nn){return He.setHours(dayPeriodEnumToHours(nn),0,0,0),He}incompatibleTokens=["a","b","t","T"]}class Hour1to12Parser extends Parser{priority=70;parse(He,tn,nn){switch(tn){case"h":return parseNumericPattern(numericPatterns.hour12h,He);case"ho":return nn.ordinalNumber(He,{unit:"hour"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=1&&tn<=12}set(He,tn,nn){const an=He.getHours()>=12;return an&&nn<12?He.setHours(nn+12,0,0,0):!an&&nn===12?He.setHours(0,0,0,0):He.setHours(nn,0,0,0),He}incompatibleTokens=["H","K","k","t","T"]}class Hour0to23Parser extends Parser{priority=70;parse(He,tn,nn){switch(tn){case"H":return parseNumericPattern(numericPatterns.hour23h,He);case"Ho":return nn.ordinalNumber(He,{unit:"hour"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=0&&tn<=23}set(He,tn,nn){return He.setHours(nn,0,0,0),He}incompatibleTokens=["a","b","h","K","k","t","T"]}class Hour0To11Parser extends Parser{priority=70;parse(He,tn,nn){switch(tn){case"K":return parseNumericPattern(numericPatterns.hour11h,He);case"Ko":return nn.ordinalNumber(He,{unit:"hour"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=0&&tn<=11}set(He,tn,nn){return He.getHours()>=12&&nn<12?He.setHours(nn+12,0,0,0):He.setHours(nn,0,0,0),He}incompatibleTokens=["h","H","k","t","T"]}class Hour1To24Parser extends Parser{priority=70;parse(He,tn,nn){switch(tn){case"k":return parseNumericPattern(numericPatterns.hour24h,He);case"ko":return nn.ordinalNumber(He,{unit:"hour"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=1&&tn<=24}set(He,tn,nn){const an=nn<=24?nn%24:nn;return He.setHours(an,0,0,0),He}incompatibleTokens=["a","b","h","H","K","t","T"]}class MinuteParser extends Parser{priority=60;parse(He,tn,nn){switch(tn){case"m":return parseNumericPattern(numericPatterns.minute,He);case"mo":return nn.ordinalNumber(He,{unit:"minute"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=0&&tn<=59}set(He,tn,nn){return He.setMinutes(nn,0,0),He}incompatibleTokens=["t","T"]}class SecondParser extends Parser{priority=50;parse(He,tn,nn){switch(tn){case"s":return parseNumericPattern(numericPatterns.second,He);case"so":return nn.ordinalNumber(He,{unit:"second"});default:return parseNDigits(tn.length,He)}}validate(He,tn){return tn>=0&&tn<=59}set(He,tn,nn){return He.setSeconds(nn,0),He}incompatibleTokens=["t","T"]}class FractionOfSecondParser extends Parser{priority=30;parse(He,tn){const nn=an=>Math.trunc(an*Math.pow(10,-tn.length+3));return mapValue(parseNDigits(tn.length,He),nn)}set(He,tn,nn){return He.setMilliseconds(nn),He}incompatibleTokens=["t","T"]}class ISOTimezoneWithZParser extends Parser{priority=10;parse(He,tn){switch(tn){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,He);case"XX":return parseTimezonePattern(timezonePatterns.basic,He);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,He);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,He);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,He)}}set(He,tn,nn){return tn.timestampIsSet?He:constructFrom(He,He.getTime()-getTimezoneOffsetInMilliseconds(He)-nn)}incompatibleTokens=["t","T","x"]}class ISOTimezoneParser extends Parser{priority=10;parse(He,tn){switch(tn){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,He);case"xx":return parseTimezonePattern(timezonePatterns.basic,He);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,He);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,He);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,He)}}set(He,tn,nn){return tn.timestampIsSet?He:constructFrom(He,He.getTime()-getTimezoneOffsetInMilliseconds(He)-nn)}incompatibleTokens=["t","T","X"]}class TimestampSecondsParser extends Parser{priority=40;parse(He){return parseAnyDigitsSigned(He)}set(He,tn,nn){return[constructFrom(He,nn*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class TimestampMillisecondsParser extends Parser{priority=20;parse(He){return parseAnyDigitsSigned(He)}set(He,tn,nn){return[constructFrom(He,nn),{timestampIsSet:!0}]}incompatibleTokens="*"}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:ne
84w MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(en,He,tn,nn){const an=()=>constructFrom(nn?.in||tn,NaN),rn=getDefaultOptions(),on=nn?.locale??rn.locale??enUS,sn=nn?.firstWeekContainsDate??nn?.locale?.options?.firstWeekContainsDate??rn.firstWeekContainsDate??rn.locale?.options?.firstWeekContainsDate??1,dn=nn?.weekStartsOn??nn?.locale?.options?.weekStartsOn??rn.weekStartsOn??rn.locale?.options?.weekStartsOn??0;if(!He)return en?an():toDate(tn,nn?.in);const hn={firstWeekContainsDate:sn,weekStartsOn:dn,locale:on},mn=[new DateTimezoneSetter(nn?.in,tn)],gn=He.match(longFormattingTokensRegExp).map(Tn=>{const xn=Tn[0];if(xn in longFormatters){const En=longFormatters[xn];return En(Tn,on.formatLong)}return Tn}).join("").match(formattingTokensRegExp),yn=[];for(let Tn of gn){!nn?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(Tn)&&warnOrThrowProtectedError(Tn,He,en),!nn?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(Tn)&&warnOrThrowProtectedError(Tn,He,en);const xn=Tn[0],En=parsers[xn];if(En){const{incompatibleTokens:Rn}=En;if(Array.isArray(Rn)){const mi=yn.find(bi=>Rn.includes(bi.token)||bi.token===xn);if(mi)throw new RangeError(`The format string mustn't contain \`${mi.fullToken}\` and \`${Tn}\` at the same time`)}else if(En.incompatibleTokens==="*"&&yn.length>0)throw new RangeError(`The format string mustn't contain \`${Tn}\` and any other token at the same time`);yn.push({token:xn,fullToken:Tn});const ni=En.run(en,Tn,on.match,hn);if(!ni)return an();mn.push(ni.setter),en=ni.rest}else{if(xn.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+xn+"`");if(Tn==="''"?Tn="'":xn==="'"&&(Tn=cleanEscapedString(Tn)),en.indexOf(Tn)===0)en=en.slice(Tn.length);else return an()}}if(en.length>0&&notWhitespaceRegExp.test(en))return an();const fn=mn.map(Tn=>Tn.priority).sort((Tn,xn)=>xn-Tn).filter((Tn,xn,En)=>En.indexOf(Tn)===xn).map(Tn=>mn.filter(xn=>xn.priority===Tn).sort((xn,En)=>En.subPriority-xn.subPriority)).map(Tn=>Tn[0]);let bn=toDate(tn,nn?.in);if(isNaN(+bn))return an();const Mn={};for(const Tn of fn){if(!Tn.validate(bn,hn))return an();const xn=Tn.set(bn,Mn,hn);Array.isArray(xn)?(bn=xn[0],Object.assign(Mn,xn[1])):bn=xn}return bn}function cleanEscapedString(en){return en.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function isSameQuarter(en,He,tn){const[nn,an]=normalizeDates(tn?.in,en,He);return+startOfQuarter(nn)==+startOfQuarter(an)}function subDays(en,He,tn){return addDays(en,-He,tn)}function roundToNearestMinutes(en,He){const tn=He?.nearestTo??1;if(tn<1||tn>30)return constructFrom(en,NaN);const nn=toDate(en,He?.in),an=nn.getSeconds()/60,rn=nn.getMilliseconds()/1e3/60,on=nn.getMinutes()+an+rn,sn=He?.roundingMethod??"round",hn=getRoundingMethod(sn)(on/tn)*tn;return nn.setMinutes(hn,0,0),nn}function setMonth(en,He,tn){const nn=toDate(en,tn?.in),an=nn.getFullYear(),rn=nn.getDate(),on=constructFrom(en,0);on.setFullYear(an,He,15),on.setHours(0,0,0,0);const sn=getDaysInMonth(on);return nn.setMonth(He,Math.min(rn,sn)),nn}function set(en,He,tn){let nn=toDate(en,tn?.in);return isNaN(+nn)?constructFrom(en,NaN):(He.year!=null&&nn.setFullYear(He.year),He.month!=null&&(nn=setMonth(nn,He.month)),He.date!=null&&nn.setDate(He.date),He.hours!=null&&nn.setHours(He.hours),He.minutes!=null&&nn.setMinutes(He.minutes),He.seconds!=null&&nn.setSeconds(He.seconds),He.milliseconds!=null&&nn.setMilliseconds(He.milliseconds),nn)}function setMilliseconds(en,He,tn){const nn=toDate(en,tn?.in);return nn.setMilliseconds(He),nn}function setSeconds(en,He,tn){const nn=toDate(en,tn?.in);return nn.setSeconds(He),nn}function setYear(en,He,tn){const nn=toDate(en,tn?.in);return isNaN(+nn)?constructFrom(en,NaN):(nn.setFullYear(He),nn)}
vendor: 4,469 bytes, line 84
84function subMonths(en,He,tn){return addMonths(en,-He,tn)}function sub(en,He,tn){const{years:nn=0,months:an=0,weeks:rn=0,days:on=0,hours:sn=0,minutes:dn=0,seconds:hn=0}=He,mn=subMonths(en,an+nn*12,tn),gn=subDays(mn,on+rn*7,tn),yn=dn+sn*60,bn=(hn+yn*60)*1e3;return constructFrom(en,+gn-bn)}function subYears(en,He,tn){return addYears(en,-He,tn)}function tzName(en,He,tn="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:en,timeZoneName:tn}).format(He).split(/\s/g).slice(2).join(" ")}const offsetFormatCache={},offsetCache={};function tzOffset(en,He){try{const nn=(offsetFormatCache[en]||=new Intl.DateTimeFormat("en-US",{timeZone:en,timeZoneName:"longOffset"}).format)(He).split("GMT")[1];return nn in offsetCache?offsetCache[nn]:calcOffset(nn,nn.split(":"))}catch{if(en in offsetCache)return offsetCache[en];const tn=en?.match(offsetRe);return tn?calcOffset(en,tn.slice(1)):NaN}}const offsetRe=/([+-]\d\d):?(\d\d)?/;function calcOffset(en,He){const tn=+(He[0]||0),nn=+(He[1]||0),an=+(He[2]||0)/60;return offsetCache[en]=tn*60+nn>0?tn*60+nn+an:tn*60-nn-an}class TZDateMini extends Date{constructor(...He){super(),He.length>1&&typeof He[He.length-1]=="string"&&(this.timeZone=He.pop()),this.internal=new Date,isNaN(tzOffset(this.timeZone,this))?this.setTime(NaN):He.length?typeof He[0]=="number"&&(He.length===1||He.length===2&&typeof He[1]!="number")?this.setTime(He[0]):typeof He[0]=="string"?this.setTime(+new Date(He[0])):He[0]instanceof Date?this.setTime(+He[0]):(this.setTime(+new Date(...He)),adjustToSystemTZ(this),syncToInternal(this)):this.setTime(Date.now())}static tz(He,...tn){return tn.length?new TZDateMini(...tn,He):new TZDateMini(Date.now(),He)}withTimeZone(He){return new TZDateMini(+this,He)}getTimezoneOffset(){const He=-tzOffset(this.timeZone,this);return He>0?Math.floor(He):Math.ceil(He)}setTime(He){return Date.prototype.setTime.apply(this,arguments),syncToInternal(this),+this}[Symbol.for("constructDateFrom")](He){return new TZDateMini(+new Date(He),this.timeZone)}}const re$1=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(en=>{if(!re$1.test(en))return;const He=en.replace(re$1,"$1UTC");TZDateMini.prototype[He]&&(en.startsWith("get")?TZDateMini.prototype[en]=function(){return this.internal[He]()}:(TZDateMini.prototype[en]=function(){return Date.prototype[He].apply(this.internal,arguments),syncFromInternal(this),+this},TZDateMini.prototype[He]=function(){return Date.prototype[He].apply(this,arguments),syncToInternal(this),+this}))});function syncToInternal(en){en.internal.setTime(+en),en.internal.setUTCSeconds(en.internal.getUTCSeconds()-Math.round(-tzOffset(en.timeZone,en)*60))}function syncFromInternal(en){Date.prototype.setFullYear.call(en,en.internal.getUTCFullYear(),en.internal.getUTCMonth(),en.internal.getUTCDate()),Date.prototype.setHours.call(en,en.internal.getUTCHours(),en.internal.getUTCMinutes(),en.internal.getUTCSeconds(),en.internal.getUTCMilliseconds()),adjustToSystemTZ(en)}function adjustToSystemTZ(en){const He=tzOffset(en.timeZone,en),tn=He>0?Math.floor(He):Math.ceil(He),nn=new Date(+en);nn.setUTCHours(nn.getUTCHours()-1);const an=-new Date(+en).getTimezoneOffset(),rn=-new Date(+nn).getTimezoneOffset(),on=an-rn,sn=Date.prototype.getHours.apply(en)!==en.internal.getUTCHours();on&&sn&&en.internal.setUTCMinutes(en.internal.getUTCMinutes()+on);const dn=an-tn;dn&&Date.prototype.setUTCMinutes.call(en,Date.prototype.getUTCMinutes.call(en)+dn);const hn=new Date(+en);hn.setUTCSeconds(0);const mn=an>0?hn.getSeconds():(hn.getSeconds()-60)%60,gn=Math.round(-(tzOffset(en.timeZone,en)*60))%60;(gn||mn)&&(en.internal.setUTCSeconds(en.internal.getUTCSeconds()+gn),Date.prototype.setUTCSeconds.call(en,Date.prototype.getUTCSeconds.call(en)+gn+mn));const yn=tzOffset(en.timeZone,en),fn=yn>0?Math.floor(yn):Math.ceil(yn),Mn=-new Date(+en).getTimezoneOffset()-fn,Tn=fn!==tn,xn=Mn-dn;if(Tn&&xn){Date.prototype.setUTCMinutes.call(en,Date.prototype.getUTCMinutes.call(en)+xn);const En=tzOffset(en.timeZone,en),Rn=En>0?Math.floor(En):Math.ceil(En),ni=fn-Rn;ni&&(en.internal.setUTCMinutes(en.internal.getUTCMinutes()+ni),Date.prototype.setUTCMinutes.call(en,Date.prototype.getUTCMinutes.call(en)+ni))}}class TZDate extends TZDateMini{static tz(He,...tn){return tn.length?new TZDate(...tn,He):new TZDate(Date.now(),He)}toISOString(){const[He,tn,nn]=this.tzComponents(),an=`${He}${tn}:${nn}`;return this.internal.toISOString().slice(0,-1)+an}toString(){return`${this.toDateString()}
84 ${this.toTimeString()}`}toDateString(){const[He,tn,nn,an]=this.internal.toUTCString().split(" ");return`${He?.slice(0,-1)} ${nn} ${tn} ${an}`}toTimeString(){const He=this.internal.toUTCString().split(" ")[4],[tn,nn,an]=this.tzComponents();return`${He} GMT${tn}${nn}${an} (${tzName(this.timeZone,this)})`}toLocaleString(He,tn){return Date.prototype.toLocaleString.call(this,He,{...tn,timeZone:tn?.timeZone||this.timeZone})}toLocaleDateString(He,tn){return Date.prototype.toLocaleDateString.call(this,He,{...tn,timeZone:tn?.timeZone||this.timeZone})}toLocaleTimeString(He,tn){return Date.prototype.toLocaleTimeString.call(this,He,{...tn,timeZone:tn?.timeZone||this.timeZone})}tzComponents(){const He=this.getTimezoneOffset(),tn=He>0?"-":"+",nn=String(Math.floor(Math.abs(He)/60)).padStart(2,"0"),an=String(Math.abs(He)%60).padStart(2,"0");return[tn,nn,an]}withTimeZone(He){return new TZDate(+this,He)}[Symbol.for("constructDateFrom")](He){return new TZDate(+new Date(He),this.timeZone)}}function Kt(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),h$3("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),h$3("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),h$3("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function Fn(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),h$3("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function La(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Ha(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Ka(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),h$3("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function ja(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function za(){return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
84currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[h$3("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const Oe=reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),ya=ref(null),Jt=ref(!1),ba=ref(!1),ka=ref(!1),wa=ref(!1),Ke=ref(0),Ve=ref(0),yt=()=>{const en=computed(()=>Jt.value?[...Oe.selectionGrid,Oe.actionRow].filter(gn=>gn.length):ba.value?[...Oe.timePicker[0],...Oe.timePicker[1],wa.value?[]:[ya.value],Oe.actionRow].filter(gn=>gn.length):ka.value?[...Oe.monthPicker,Oe.actionRow]:[Oe.monthYear,...Oe.calendar,Oe.time,Oe.actionRow].filter(gn=>gn.length)),He=gn=>{Ke.value=gn?Ke.value+1:Ke.value-1;let yn=null;en.value[Ve.value]&&(yn=en.value[Ve.value][Ke.value]),!yn&&en.value[Ve.value+(gn?1:-1)]?(Ve.value=Ve.value+(gn?1:-1),Ke.value=gn?0:en.value[Ve.value].length-1):yn||(Ke.value=gn?Ke.value-1:Ke.value+1)},tn=gn=>{Ve.value===0&&!gn||Ve.value===en.value.length&&gn||(Ve.value=gn?Ve.value+1:Ve.value-1,en.value[Ve.value]?en.value[Ve.value]&&!en.value[Ve.value][Ke.value]&&Ke.value!==0&&(Ke.value=en.value[Ve.value].length-1):Ve.value=gn?Ve.value-1:Ve.value+1)},nn=gn=>{let yn=null;en.value[Ve.value]&&(yn=en.value[Ve.value][Ke.value]),yn?yn.focus({preventScroll:!Jt.value}):Ke.value=gn?Ke.value-1:Ke.value+1},an=()=>{He(!0),nn(!0)},rn=()=>{He(!1),nn(!1)},on=()=>{tn(!1),nn(!0)},sn=()=>{tn(!0),nn(!0)},dn=(gn,yn)=>{Oe[yn]=gn},hn=(gn,yn)=>{Oe[yn]=gn},mn=()=>{Ke.value=0,Ve.value=0};return{buildMatrix:dn,buildMultiLevelMatrix:hn,setTimePickerBackRef:gn=>{ya.value=gn},setSelectionGrid:gn=>{Jt.value=gn,mn(),gn||(Oe.selectionGrid=[])},setTimePicker:(gn,yn=!1)=>{ba.value=gn,wa.value=yn,mn(),gn||(Oe.timePicker[0]=[],Oe.timePicker[1]=[])},setTimePickerElements:(gn,yn=0)=>{Oe.timePicker[yn]=gn},arrowRight:an,arrowLeft:rn,arrowUp:on,arrowDown:sn,clearArrowNav:()=>{Oe.monthYear=[],Oe.calendar=[],Oe.time=[],Oe.actionRow=[],Oe.selectionGrid=[],Oe.timePicker[0]=[],Oe.timePicker[1]=[],Jt.value=!1,ba.value=!1,wa.value=!1,ka.value=!1,mn(),ya.value=null},setMonthPicker:gn=>{ka.value=gn,mn()},refSets:Oe}};var lt=(en=>(en.month="month",en.year="year",en))(lt||{}),_t=(en=>(en.header="header",en.calendar="calendar",en.timePicker="timePicker",en))(_t||{}),Qe=(en=>(en.month="month",en.year="year",en.calendar="calendar",en.time="time",en.minutes="minutes",en.hours="hours",en.seconds="seconds",en))(Qe||{});const Nn=["timestamp","date","iso"];var qe=(en=>(en.up="up",en.down="down",en.left="left",en.right="right",en))(qe||{}),xe=(en=>(en.arrowUp="ArrowUp",en.arrowDown="ArrowDown",en.arrowLeft="ArrowLeft",en.arrowRight="ArrowRight",en.enter="Enter",en.space=" ",en.esc="Escape",en.tab="Tab",en.home="Home",en.end="End",en.pageUp="PageUp",en.pageDown="PageDown",en))(xe||{}),St=(en=>(en.MONTH_AND_YEAR="MM-yyyy",en.YEAR="yyyy",en.DATE="dd-MM-yyyy",en))(St||{});const Wn=()=>{const{checkPartialRangeValue:en,checkRangeEnabled:He,isValidDate:tn}=nt(),{convertType:nn,errorMapper:an}=Fe(),{getDate:rn,rootEmit:on,state:sn,rootProps:dn,inputValue:hn,defaults:{textInput:mn,range:gn,multiDates:yn,timeConfig:fn,formats:bn},modelValue:Mn,updateTime:Tn}=Se(),{setTime:xn,getWeekFromDate:En}=ze(),{formatSelectedDate:Rn,formatForTextInput:ni}=kt();watch(Mn,(Ei,ea)=>{on("internal-model-change",Mn.value),JSON.stringify(ea??{})!==JSON.stringify(Ei??{})&&Tn()},{deep:!0}),watch(gn,(Ei,ea)=>{Ei.enabled!==ea.enabled&&(Mn.value=null)}),watch(()=>bn.value.input,()=>{hi()});const mi=Ei=>Ei?dn.modelType?Ni(Ei):{hours:getHours(Ei),minutes:getMinutes(Ei),seconds:fn.value.enableSeconds?getSeconds(Ei):0}:null,bi=Ei=>dn.modelType?Ni(Ei):{month:getMonth(Ei),year:getYear(Ei)},_i=Ei=>Array.isArray(Ei)?yn.value.enabled?Ei.map(ea=>oi(ea,setYear(rn(),ea))):He(()=>[setYear(rn(),Ei[0]),Ei[1]?setYear(rn(),Ei[1]):en(gn.value.partialRange)],gn.value.enabled):setYear(rn(),+Ei),oi=(Ei,ea)=>(typeof Ei=="string"||typeof Ei=="number")&&dn.modelType?Si(Ei):ea,si=Ei=>Array.isArray(Ei)?[oi(Ei[0],xn(Ei[0])),oi(Ei[1],xn(Ei[1]))]:oi(Ei,xn(Ei)),fi=Ei=>{const ea=set(rn(),{date:1});return Array.isArray(Ei)?yn.value.enabled?Ei.map(vi=>oi(vi,set(ea,{month:+vi.month,year:+vi.year}))):He(()=>[oi(Ei[0],set(ea,{month:+Ei[0].month,year:+Ei[0].year})),oi(Ei[1],Ei[1]?set(ea,{month:+Ei[1].month,year:+Ei[1].year}):en(gn.value.partialRange))],gn.value.enabled):oi(Ei,set(ea,{month:+Ei.month,year:+Ei.year}))},ei=Ei=>{if(Array.isArray(Ei))return Ei.map(ea=>Si(ea));throw new Error(an.dateArr("multi-dates"))},ci=Ei=>
84{if(Array.isArray(Ei)&&gn.value.enabled){const ea=Ei[0],vi=Ei[1];return[rn(Array.isArray(ea)?ea[0]:null),Array.isArray(vi)&&vi.length?rn(vi[0]):null]}return rn(Ei[0])},di=Ei=>dn.modelAuto?Array.isArray(Ei)?[Si(Ei[0]),Si(Ei[1])]:dn.autoApply?[Si(Ei)]:[Si(Ei),null]:Array.isArray(Ei)?He(()=>Ei[1]?[Si(Ei[0]),Ei[1]?Si(Ei[1]):en(gn.value.partialRange)]:[Si(Ei[0])],gn.value.enabled):Si(Ei),wi=()=>{Array.isArray(Mn.value)&&gn.value.enabled&&Mn.value.length===1&&Mn.value.push(en(gn.value.partialRange))},Ci=()=>{const Ei=Mn.value;return[Ni(Ei[0]),Ei[1]?Ni(Ei[1]):en(gn.value.partialRange)]},ji=()=>Array.isArray(Mn.value)?Mn.value[1]?Ci():Ni(nn(Mn.value[0])):[],Yi=()=>(Mn.value||[]).map(Ei=>Ni(Ei)),Pi=(Ei=!1)=>(Ei||wi(),dn.modelAuto?ji():yn.value.enabled?Yi():Array.isArray(Mn.value)?He(()=>Ci(),gn.value.enabled):Ni(nn(Mn.value))),Fi=Ei=>!Ei||Array.isArray(Ei)&&!Ei.length?null:dn.timePicker?si(nn(Ei)):dn.monthPicker?fi(nn(Ei)):dn.yearPicker?_i(nn(Ei)):yn.value.enabled?ei(nn(Ei)):dn.weekPicker?ci(nn(Ei)):di(nn(Ei)),$i=Ei=>{if(sn.isTextInputDate)return;const ea=Fi(Ei);tn(nn(ea))?(Mn.value=nn(ea),hi()):(Mn.value=null,hn.value="")},Wi=()=>Mn.value?yn.value.enabled?Mn.value.map(Ei=>Rn(Ei)).join("; "):mn.value.enabled?ni():Rn(Mn.value):"",hi=()=>{hn.value=Wi()},Si=Ei=>dn.modelType?Nn.includes(dn.modelType)?rn(Ei):dn.modelType==="format"&&typeof bn.value.input=="string"?parse(Ei,bn.value.input,rn(),{locale:dn.locale}):parse(Ei,dn.modelType,rn(),{locale:dn.locale}):rn(Ei),Ni=Ei=>Ei?dn.modelType?dn.modelType==="timestamp"?+Ei:dn.modelType==="iso"?Ei.toISOString():dn.modelType==="format"&&typeof bn.value.input=="string"?Rn(Ei):Rn(Ei,dn.modelType):Ei:null,yi=Ei=>{on("update:model-value",Ei)},Hi=Ei=>Array.isArray(Mn.value)?yn.value.enabled?Mn.value.map(ea=>Ei(ea)):[Ei(Mn.value[0]),Mn.value[1]?Ei(Mn.value[1]):null]:Ei(nn(Mn.value)),Ui=()=>{if(Array.isArray(Mn.value)){const Ei=En(Mn.value[0],dn.weekStart),ea=Mn.value[1]?En(Mn.value[1],dn.weekStart):[];return[Ei.map(vi=>rn(vi)),ea.map(vi=>rn(vi))]}return En(Mn.value,dn.weekStart).map(Ei=>rn(Ei))},Ji=Ei=>yi(nn(Hi(Ei))),Oi=()=>on("update:model-value",Ui());return{checkBeforeEmit:()=>Mn.value?gn.value.enabled?gn.value.partialRange?Mn.value.length>=1:Mn.value.length===2:!!Mn.value:!1,parseExternalModelValue:$i,formatInputValue:hi,emitModelValue:()=>(hi(),dn.monthPicker?Ji(bi):dn.timePicker?Ji(mi):dn.yearPicker?Ji(getYear):dn.weekPicker?Oi():yi(Pi()))}},dt=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],Ya=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],Ln={all:()=>dt,root:()=>dt.concat(Ya),monthYear:()=>dt.filter(en=>en.use.includes("month-year")),input:()=>Ya,timePicker:()=>dt.filter(en=>en.use.includes("time")),action:()=>dt.filter(en=>
84en.use.includes("action")),calendar:()=>dt.filter(en=>en.use.includes("calendar")),menu:()=>dt.filter(en=>en.use.includes("menu")),shared:()=>dt.filter(en=>en.use.includes("shared")),yearMode:()=>dt.filter(en=>en.use.includes("year-mode"))},bt=()=>({mapSlots:(en,He,tn)=>{const nn=[];for(const an of Ln[He]())en[an.name]&&nn.push(an.name);if(tn?.length)for(const an of tn)an.slot&&nn.push(an.slot);return nn}}),Ua=Symbol("ContextKey"),Hn=(en,He)=>{const{setTimeModelValue:tn}=Fe(),nn=Or(en),an=ref(null),rn=reactive({menuFocused:!1,shiftKeyInMenu:!1,isInputFocused:!1,isTextInputDate:!1}),on=nn.getDate(new Date),sn=ref(""),dn=ref([{month:getMonth(on),year:getYear(on)}]),hn=reactive({hours:0,minutes:0,seconds:0});tn(hn,null,on,nn.range.value.enabled);const mn=computed({get:()=>an.value,set:Mn=>{an.value=Mn}}),gn=computed(()=>Mn=>dn.value[Mn]?dn.value[Mn].month:0),yn=computed(()=>Mn=>dn.value[Mn]?dn.value[Mn].year:0),fn=(Mn,Tn)=>{rn[Mn]=Tn},bn=()=>{tn(hn,mn.value,on,nn.range.value.enabled)};provide(Ua,{rootProps:en,defaults:nn,modelValue:mn,state:readonly(rn),rootEmit:He,calendars:dn,month:gn,year:yn,time:hn,today:on,inputValue:sn,setState:fn,updateTime:bn,getDate:nn.getDate})},Se=()=>{const en=inject(Ua);if(!en)throw new Error("Can't use context");return en},jt=()=>{const{defaults:{transitions:en}}=Se(),He=computed(()=>nn=>en.value?nn?en.value.open:en.value.close:""),tn=computed(()=>nn=>en.value?nn?en.value.menuAppearTop:en.value.menuAppearBottom:"");return{transitionName:He,showTransition:!!en.value,menuTransition:tn}},zt=en=>{const{today:He,time:tn,modelValue:nn,defaults:{range:an}}=Se(),{setTimeModelValue:rn}=Fe();watch(an,(on,sn)=>{on.enabled!==sn.enabled&&rn(tn,nn.value,He,an.value.enabled)},{deep:!0}),watch(nn,(on,sn)=>{en&&JSON.stringify(on??{})!==JSON.stringify(sn??{})&&en()},{deep:!0})},nt=()=>{const{defaults:{safeDates:en,range:He,multiDates:tn,filters:nn,timeConfig:an},rootProps:rn,getDate:on}=Se(),{getMapKeyType:sn,getMapDate:dn,errorMapper:hn,convertType:mn}=Fe(),{isDateBefore:gn,isDateAfter:yn,isDateEqual:fn,resetDate:bn,getDaysInBetween:Mn,setTimeValue:Tn,getTimeObj:xn,setTime:En}=ze(),Rn=ti=>en.value.disabledDates?typeof en.value.disabledDates=="function"?en.value.disabledDates(on(ti)):!!dn(ti,en.value.disabledDates):!1,ni=ti=>en.value.maxDate?rn.yearPicker?getYear(ti)>getYear(en.value.maxDate):yn(ti,en.value.maxDate):!1,mi=ti=>en.value.minDate?rn.yearPicker?getYear(ti)<getYear(en.value.minDate):gn(ti,en.value.minDate):!1,bi=ti=>{if(!ti)return!1;const ui=ni(ti),Cn=mi(ti),ki=Rn(ti),Zi=nn.value.months.map(ca=>+ca).includes(getMonth(ti)),ta=nn.value.weekDays?.length?nn.value.weekDays.some(ca=>+ca===getDay(ti)):!1,Ri=ei(ti),ha=getYear(ti),qi=ha<+rn.yearRange[0]||ha>+rn.yearRange[1];return!(ui||Cn||ki||Zi||qi||ta||Ri)},_i=(ti,ui)=>gn(...Oi(en.value.minDate,ti,ui))||fn(...Oi(en.value.minDate,ti,ui)),oi=(ti,ui)=>yn(...Oi(en.value.maxDate,ti,ui))||fn(...Oi(en.value.maxDate,ti,ui)),si=(ti,ui,Cn)=>{let ki=!1;return en.value.maxDate&&Cn&&oi(ti,ui)&&(ki=!0),en.value.minDate&&!Cn&&_i(ti,ui)&&(ki=!0),ki},fi=(ti,ui,Cn,ki)=>{let Zi=!1;return ki&&(en.value.minDate||en.value.maxDate)?en.value.minDate&&en.value.maxDate?Zi=si(ti,ui,Cn):(en.value.minDate&&_i(ti,ui)||en.value.maxDate&&oi(ti,ui))&&(Zi=!0):Zi=!0,Zi},ei=ti=>Array.isArray(en.value.allowedDates)&&!en.value.allowedDates.length?!0:en.value.allowedDates?!dn(ti,en.value.allowedDates,sn(rn.monthPicker,rn.yearPicker)):!1,ci=ti=>!bi(ti),di=ti=>He.value.noDisabledRange?!eachDayOfInterval({start:ti[0],end:ti[1]}).some(ui=>ci(ui)):!0,wi=ti=>{if(ti){const ui=getYear(ti);return ui>=+rn.yearRange[0]&&ui<=rn.yearRange[1]}return!0},Ci=(ti,ui)=>!!(Array.isArray(ti)&&ti[ui]&&(He.value.maxRange||He.value.minRange)&&wi(ti[ui])),ji=(ti,ui,Cn=0)=>{if(Ci(ui,Cn)&&wi(ti)){const ki=differenceInCalendarDays(ti,ui[Cn]),Zi=Mn(ui[Cn],ti),ta=Zi.length===1?0:Zi.filter(ha=>ci(ha)).length,Ri=Math.abs(ki)-(He.value.minMaxRawRange?0:ta);if(He.value.minRange&&He.value.maxRange)return Ri>=+He.value.minRange&&Ri<=+He.value.maxRange;if(He.value.minRange)return Ri>=+He.value.minRange;if(He.value.maxRange)return Ri<=+He.value.maxRange}return!0},Yi=()=>!an.value.enableTimePicker||rn.monthPicker||rn.yearPicker||an.value.ignoreTimeValidation,Pi=ti=>Array.isArray(ti)?[ti[0]?Tn(ti[0]):null,ti[1]?Tn(ti[1]):null]:Tn(ti),Fi=(ti,ui,Cn)=>ui?ti.find(ki=>+ki.hours===getHours(ui)&&ki.minutes==="*"?!0:+ki.minutes===getMinutes(ui)&&+ki.hours===getHours(ui))&&Cn:!1,$i=(ti,ui,Cn)=>{const[ki,Zi]=ti,[ta,Ri]=ui;return!Fi(ki,ta,Cn)&&!Fi(Zi,Ri,Cn)&&Cn},Wi=(ti,ui)=>{const Cn=Array.isArray(ui)?ui:[ui];return Array.isArray(rn.disabledTimes)?Array.isArray(rn.disabledTimes[0])?$i(rn.disabledTimes,Cn,ti):!Cn.some(ki=>Fi(rn.disabledTimes,ki,ti)):ti},hi=(ti,ui)=>{const Cn=Array.isArray(ui)?[xn(ui[0]),ui[1]?xn(ui[1]):void 0]:xn(ui),ki=!rn.disabledTimes(Cn);return ti&&ki},Si=(ti,ui)=>rn.disabledTimes?Array.isArray(rn.disabledTimes)?Wi(ui,ti):hi(ui,ti):ui,Ni=ti=>{let ui=!0;if(!ti||Yi())return!0;const Cn=!en.value.minDate&&!en.value.maxDate?Pi(ti):ti;return(rn.maxTime||en.value.maxDate)&&(ui=ea(rn.maxTime,en.value.maxDate,"max",mn(Cn),ui)),(rn.minTime||en.value.minDate)&&(ui=ea(rn.minTime,en.value.minDate,"min",mn(Cn),ui)),Si(ti,ui)},yi=ti=>{if(!rn.monthPicker)return!0;let ui=!0;const Cn=on(bn(ti));if(en.value.minDate&&en.value.maxDate){const ki=on(bn(en.value.minDate)),Zi=on(bn(en.value.maxDate));return yn(Cn,ki)&&gn(Cn,Zi)||fn(Cn,ki)||fn(Cn,Zi)}if(en.value.minDate){const ki=on(bn(en.value.minDate));ui=yn(Cn,ki)||fn(Cn,ki)}if(en.value.maxDate){const ki=on(bn(en.value.maxDate));ui=gn(Cn,ki)||fn(Cn,ki)}return ui},Hi=computed(()=>ti=>!an.value.enableTimePicker||an.value.ignoreTimeValidation?!0:Ni(ti)),Ui=computed(()=>ti=>rn.monthPicker?Array.isArray(ti)&&(He.value.enabled||tn.value.enabled)?!ti.filter(ui=>!yi(ui)).length:yi(ti):!0),Ji=(ti,ui,Cn)=>
84{if(!ui||Cn&&!en.value.maxDate||!Cn&&!en.value.minDate)return!1;const ki=Cn?addMonths(ti,1):subMonths(ti,1),Zi=[getMonth(ki),getYear(ki)];return Cn?!oi(...Zi):!_i(...Zi)},Oi=(ti,ui,Cn)=>[set(on(ti),{date:1}),set(on(),{month:ui,year:Cn,date:1})],Ei=(ti,ui,Cn,ki)=>{if(!ti)return!0;if(ki){const Zi=Cn==="max"?isBefore(ti,ui):isAfter(ti,ui),ta={seconds:0,milliseconds:0};return Zi||isEqual(set(ti,ta),set(ui,ta))}return Cn==="max"?ti.getTime()<=ui.getTime():ti.getTime()>=ui.getTime()},ea=(ti,ui,Cn,ki,Zi)=>{if(Array.isArray(ki)){const Ri=vi(ti,ki[0],ui),ha=vi(ti,ki[1],ui);return Ei(ki[0],Ri,Cn,!!ui)&&Ei(ki[1],ha,Cn,!!ui)&&Zi}const ta=vi(ti,ki,ui);return Ei(ki,ta,Cn,!!ui)&&Zi},vi=(ti,ui,Cn)=>ti?En(ti,ui):on(Cn??ui);return{isDisabled:ci,validateDate:bi,validateMonthYearInRange:fi,isDateRangeAllowed:di,checkMinMaxRange:ji,isValidTime:Ni,validateMonthYear:Ji,validateMinDate:_i,validateMaxDate:oi,isValidDate:ti=>Array.isArray(ti)?isValid(ti[0])&&(ti[1]?isValid(ti[1]):!0):ti?isValid(ti):!1,checkPartialRangeValue:ti=>{if(ti)return null;throw new Error(hn.prop("partial-range"))},checkRangeEnabled:(ti,ui)=>{if(ui)return ti();throw new Error(hn.prop("range"))},checkMinMaxValue:(ti,ui,Cn)=>{const ki=Cn!=null,Zi=ui!=null;if(!ki&&!Zi)return!1;const ta=+Cn,Ri=+ui;return ki&&Zi?+ti>ta||+ti<Ri:ki?+ti>ta:Zi?+ti<Ri:!1},isTimeValid:Hi,isMonthValid:Ui}},Kn=en=>{const{rootEmit:He,rootProps:tn,defaults:{timeConfig:nn,flow:an}}=Se(),rn=ref(0),on=reactive({[_t.timePicker]:!nn.value.enableTimePicker||tn.timePicker||tn.monthPicker,[_t.calendar]:!1,[_t.header]:!1}),sn=computed(()=>tn.monthPicker||tn.timePicker),dn=fn=>{if(an.value?.steps?.length){if(!fn&&sn.value)return yn();on[fn]=!0,Object.keys(on).filter(bn=>!on[bn]).length||yn()}},hn=()=>{an.value?.steps?.length&&rn.value!==-1&&(rn.value+=1,He("flow-step",rn.value),yn()),an.value?.steps?.length===rn.value&&nextTick().then(()=>mn())},mn=()=>{rn.value=-1},gn=(fn,bn,...Mn)=>{an.value?.steps[rn.value]===fn&&en.value&&en.value[bn]?.(...Mn)},yn=(fn=0)=>{fn&&(rn.value+=fn),gn(Qe.month,"toggleMonthPicker",!0),gn(Qe.year,"toggleYearPicker",!0),gn(Qe.calendar,"toggleTimePicker",!1,!0),gn(Qe.time,"toggleTimePicker",!0,!0);const bn=an.value?.steps[rn.value];(bn===Qe.hours||bn===Qe.minutes||bn===Qe.seconds)&&gn(bn,"toggleTimePicker",!0,!0,bn)};return{childMount:dn,updateFlowStep:hn,resetFlow:mn,handleFlow:yn,flowStep:rn}};function Da(en){return(He={})=>{const tn=He.width?String(He.width):en.defaultWidth;return en.formats[tn]||en.formats[en.defaultWidth]}}function Vt(en){return(He,tn)=>{const nn=tn?.context?String(tn.context):"standalone";let an;if(nn==="formatting"&&en.formattingValues){const on=en.defaultFormattingWidth||en.defaultWidth,sn=tn?.width?String(tn.width):on;an=en.formattingValues[sn]||en.formattingValues[on]}else{const on=en.defaultWidth,sn=tn?.width?String(tn.width):en.defaultWidth;an=en.values[sn]||en.values[on]}const rn=en.argumentCallback?en.argumentCallback(He):He;return an[rn]}}function Et(en){return(He,tn={})=>{const nn=tn.width,an=nn&&en.matchPatterns[nn]||en.matchPatterns[en.defaultMatchWidth],rn=He.match(an);if(!rn)return null;const on=rn[0],sn=nn&&en.parsePatterns[nn]||en.parsePatterns[en.defaultParseWidth],dn=Array.isArray(sn)?zn(sn,gn=>gn.test(on)):jn(sn,gn=>gn.test(on));let hn;hn=en.valueCallback?en.valueCallback(dn):dn,hn=tn.valueCallback?tn.valueCallback(hn):hn;const mn=He.slice(on.length);return{value:hn,rest:mn}}}function jn(en,He){for(const tn in en)if(Object.prototype.hasOwnProperty.call(en,tn)&&He(en[tn]))return tn}function zn(en,He){for(let tn=0;tn<en.length;tn++)if(He(en[tn]))return tn}function Un(en){return(He,tn={})=>{const nn=He.match(en.matchPattern);if(!nn)return null;const an=nn[0],rn=He.match(en.parsePattern);if(!rn)return null;let on=en.valueCallback?en.valueCallback(rn[0]):rn[0];on=tn.valueCallback?tn.valueCallback(on):on;const sn=He.slice(an.length);return{value:on,rest:sn}}}const qn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Qn=(en,He,tn)=>{let nn;const an=qn[en];return typeof an=="string"?nn=an:He===1?nn=an.one:nn=an.other.replace("{{count}}",He.toString()),tn?.addSuffix?tn.comparison&&tn.comparison>0?"in "+nn:nn+" ago":nn},Gn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jn=(en,He,tn,nn)=>Gn[en],Xn$1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zn$1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},er={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tr={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
84ay","Saturday"]},ar={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nr={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rr=(en,He)=>{const tn=Number(en),nn=tn%100;if(nn>20||nn<10)switch(nn%10){case 1:return tn+"st";case 2:return tn+"nd";case 3:return tn+"rd"}return tn+"th"},lr={ordinalNumber:rr,era:Vt({values:Xn$1,defaultWidth:"wide"}),quarter:Vt({values:Zn$1,defaultWidth:"wide",argumentCallback:en=>en-1}),month:Vt({values:er,defaultWidth:"wide"}),day:Vt({values:tr,defaultWidth:"wide"}),dayPeriod:Vt({values:ar,defaultWidth:"wide",formattingValues:nr,defaultFormattingWidth:"wide"})},or=/^(\d+)(th|st|nd|rd)?/i,sr=/\d+/i,ur={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ir={any:[/^b/i,/^(a|c)/i]},cr={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dr={any:[/1/i,/2/i,/3/i,/4/i]},vr={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fr={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mr={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pr={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hr={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gr={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yr={ordinalNumber:Un({matchPattern:or,parsePattern:sr,valueCallback:en=>parseInt(en,10)}),era:Et({matchPatterns:ur,defaultMatchWidth:"wide",parsePatterns:ir,defaultParseWidth:"any"}),quarter:Et({matchPatterns:cr,defaultMatchWidth:"wide",parsePatterns:dr,defaultParseWidth:"any",valueCallback:en=>en+1}),month:Et({matchPatterns:vr,defaultMatchWidth:"wide",parsePatterns:fr,defaultParseWidth:"any"}),day:Et({matchPatterns:mr,defaultMatchWidth:"wide",parsePatterns:pr,defaultParseWidth:"any"}),dayPeriod:Et({matchPatterns:hr,defaultMatchWidth:"any",parsePatterns:gr,defaultParseWidth:"any"})},br={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kr={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wr={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dr={date:Da({formats:br,defaultWidth:"full"}),time:Da({formats:kr,defaultWidth:"full"}),dateTime:Da({formats:wr,defaultWidth:"full"})},Mr={code:"en-US",formatDistance:Qn,formatLong:Dr,formatRelative:Jn,localize:lr,match:yr,options:{weekStartsOn:0,firstWeekContainsDate:1}},Oa={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},_r={allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,escClose:!0,spaceConfirm:!0,monthChangeO
84nArrows:!0,monthChangeOnScroll:!0},xa={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0,format:void 0,maskFormat:void 0},Ar={dates:[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}},Pr={showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,selectBtnLabel:"Select",cancelBtnLabel:"Cancel",nowBtnLabel:"Now",nowBtnRound:void 0},Tr={toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:en=>`Increment ${en}`,decrementValue:en=>`Decrement ${en}`,openTpOverlay:en=>`Open ${en} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:en=>`Month picker${en?" overlay":""}`,yearPicker:en=>`Year picker${en?" overlay":""}`,timeOverlay:en=>`${en} overlay`},Ba={menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},$r={weekDays:[],months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},Sr={month:"LLL",year:"yyyy",weekDay:"EEEEEE",quarter:"MMMM",day:"d",input:void 0,preview:void 0},Rr={enableTimePicker:!0,ignoreTimeValidation:!1,enableSeconds:!1,enableMinutes:!0,is24:!0,noHoursOverlay:!1,noMinutesOverlay:!1,noSecondsOverlay:!1,hoursGridIncrement:1,minutesGridIncrement:5,secondsGridIncrement:5,hoursIncrement:1,minutesIncrement:1,secondsIncrement:1,timePickerInline:!1,startTime:void 0},Cr={flowStep:0,menuWrapRef:null,collapse:!1},Yr={weekStart:1,yearRange:()=>[1900,2100],ui:()=>({}),locale:()=>Mr,dark:!1,transitions:!0,hideNavigation:()=>[],vertical:!1,hideMonthYearSelect:!1,disableYearSelect:!1,autoApply:!1,disabledDates:()=>[],hideOffsetDates:!1,noToday:!1,markers:()=>[],presetDates:()=>[],preventMinMaxNavigation:!1,reverseYears:!1,weekPicker:!1,arrowNavigation:!1,monthPicker:!1,yearPicker:!1,quarterPicker:!1,timePicker:!1,modelAuto:!1,multiDates:!1,range:!1,inline:!1,sixWeeks:!1,focusStartDate:!1,yearFirst:!1,loading:!1,centered:!1},Ia={name:void 0,required:!1,autocomplete:"off",state:void 0,clearable:!0,alwaysClearable:!1,hideInputIcon:!1,id:void 0,inputmode:"none"},Xt={type:"local",hideOnOffsetDates:!1,label:"W"},Or=en=>{const{getMapKey:He,getMapKeyType:tn,getTimeObjFromCurrent:nn}=Fe();function an(Yi,Pi){let Fi;return en.timezone?Fi=new TZDate(Yi??new Date,en.timezone):Fi=Yi?new Date(Yi):new Date,Pi?set(Fi,{hours:0,minutes:0,seconds:0,milliseconds:0}):Fi}const rn=()=>{const Yi=di.value.enableSeconds?":ss":"",Pi=di.value.enableMinutes?":mm":"";return di.value.is24?`HH${Pi}${Yi}`:`hh${Pi}${Yi} aa`},on=()=>en.monthPicker?"MM/yyyy":en.timePicker?rn():en.weekPicker?`${bi.value?.type==="iso"?"II":"ww"}-RR`:en.yearPicker?"yyyy":en.quarterPicker?"QQQ/yyyy":di.value.enableTimePicker?`MM/dd/yyyy, ${rn()}`:"MM/dd/yyyy",sn=Yi=>nn(an(),Yi,di.value.enableSeconds),dn=()=>si.value.enabled?di.value.startTime&&Array.isArray(di.value.startTime)?[sn(di.value.startTime[0]),sn(di.value.startTime[1])]:null:di.value.startTime&&!Array.isArray(di.value.startTime)?sn(di.value.startTime):null,hn=Yi=>Yi?typeof Yi=="boolean"?Yi?2:0:Math.max(+Yi,2):0,mn=Yi=>{const Pi=tn(en.monthPicker,en.yearPicker);return new Map(Yi.map(Fi=>{const $i=an(Fi,gn.value);return[He($i,Pi),$i]}))},gn=computed(()=>en.monthPicker||en.yearPicker||en.quarterPicker),yn=computed(()=>{const Yi=typeof en.multiCalendars=="object"&&en.multiCalendars,Pi={static:!0,solo:!1};if(!en.multiCalendars)return{...Pi,count:hn(!1)};const Fi=Yi?en.multiCalendars:{},$i=Yi?Fi.count??!0:en.multiCalendars,Wi=hn($i);return Object.assign(Pi,Fi,{count:Wi})}),fn=computed(()=>dn()),bn=computed(()=>({...Tr,...en.ariaLabels})),Mn=computed(()=>({...$r,...en.filters})),Tn=computed(()=>typeof en.transitions=="boolean"?en.transitions?Ba:!1:{...Ba,...en.transitions}),xn=computed(()=>({...Pr,...en.actionRow})),En=computed(()=>typeof en.textInput=="object"?{...xa,...en.textInput,format:typeof en.textInput.format=="string"?en.textInput.format:ei.value.input,pattern:en.textInput.format??ei.value.input,enabled:!0}:{...xa,format:ei.value.input,pattern:ei.value.input,enabled:en.textInput}),Rn=computed(()=>{const Yi={input:!1};return typeof en.inline=="object"?{...Yi,...en.inline,enabled:!0}:{enabled:en.inline,...Yi}}),ni=computed(()=>
84({..._r,...en.config})),mi=computed(()=>typeof en.highlight=="function"?en.highlight:{...Ar,...en.highlight}),bi=computed(()=>typeof en.weekNumbers=="object"?{type:en.weekNumbers?.type??Xt.type,hideOnOffsetDates:en.weekNumbers?.hideOnOffsetDates??Xt.hideOnOffsetDates,label:en.weekNumbers.label??Xt.label}:en.weekNumbers?Xt:void 0),_i=computed(()=>typeof en.multiDates=="boolean"?{enabled:en.multiDates,dragSelect:!0,limit:null}:{enabled:!!en.multiDates,limit:en.multiDates?.limit?+en.multiDates.limit:null,dragSelect:en.multiDates?.dragSelect??!0}),oi=computed(()=>({minDate:en.minDate?an(en.minDate):null,maxDate:en.maxDate?an(en.maxDate):null,disabledDates:Array.isArray(en.disabledDates)?mn(en.disabledDates):en.disabledDates,allowedDates:Array.isArray(en.allowedDates)?mn(en.allowedDates):null,highlight:typeof mi.value=="object"&&Array.isArray(mi.value.dates)?mn(mi.value.dates):mi.value,markers:en.markers?.length?new Map(en.markers.map(Yi=>{const Pi=an(Yi.date);return[He(Pi,St.DATE),Yi]})):null})),si=computed(()=>typeof en.range=="object"?{enabled:!0,...Oa,...en.range}:{enabled:en.range,...Oa}),fi=computed(()=>({...Object.fromEntries(Object.keys(en.ui).map(Yi=>{const Pi=Yi,Fi=en.ui[Pi];if(Pi==="dayClass")return[Pi,en.ui[Pi]];const $i=typeof en.ui[Pi]=="string"?{[Fi]:!0}:Object.fromEntries(Fi.map(Wi=>[Wi,!0]));return[Yi,$i]}))})),ei=computed(()=>({...Sr,...en.formats,input:en.formats?.input??on(),preview:en.formats?.preview??on()})),ci=computed(()=>{if(en.teleport)return typeof en.teleport=="string"?en.teleport:typeof en.teleport=="boolean"?"body":en.teleport}),di=computed(()=>({...Rr,...en.timeConfig})),wi=computed(()=>{if(en.flow)return{steps:[],partial:!1,...en.flow}}),Ci=computed(()=>{const Yi=En.value.enabled?"text":"none";return en.inputAttrs?{...Ia,inputmode:Yi,...en.inputAttrs}:{...Ia,inputmode:Yi}}),ji=computed(()=>({offset:en.floating?.offset??10,arrow:en.floating?.arrow??!0,strategy:en.floating?.strategy??void 0,placement:en.floating?.placement??void 0}));return{transitions:Tn,multiCalendars:yn,startTime:fn,ariaLabels:bn,filters:Mn,actionRow:xn,textInput:En,inline:Rn,config:ni,highlight:mi,weekNumbers:bi,range:si,safeDates:oi,multiDates:_i,ui:fi,formats:ei,teleport:ci,timeConfig:di,flow:wi,inputAttrs:Ci,floatingConfig:ji,getDate:an}},Fe=()=>{const en=(En,Rn)=>format$1(En,Rn??St.DATE),He=(En,Rn)=>En?St.MONTH_AND_YEAR:Rn?St.YEAR:St.DATE,tn=(En,Rn,ni)=>Rn.get(en(En,ni)),nn=En=>En,an=En=>En===0?En:!En||Number.isNaN(+En)?null:+En,rn=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", "),on=(En,Rn)=>{let ni=[...document.querySelectorAll(rn())];ni=ni.filter(bi=>!En.contains(bi)||"datepicker-instance"in bi.dataset);const mi=ni.indexOf(En);if(mi>=0&&(Rn?mi-1>=0:mi+1<=ni.length))return ni[mi+(Rn?-1:1)]},sn=En=>String(En).padStart(2,"0"),dn=(En,Rn)=>En?.querySelector(`[data-dp-element="${Rn}"]`),hn=(En,Rn,ni=!1)=>{En&&Rn.allowStopPropagation&&(ni&&En.stopImmediatePropagation(),En.stopPropagation())},mn=(En,Rn,ni=!1,mi)=>{if(En.key===xe.enter||En.key===xe.space)return ni&&En.preventDefault(),Rn();if(mi)return mi(En)},gn=(En,Rn)=>{Rn.allowStopPropagation&&En.stopPropagation(),Rn.allowPreventDefault&&En.preventDefault()},yn=En=>{if(En)return[...En.querySelectorAll("input, button, select, textarea, a[href]")][0]},fn=()=>"ontouchstart"in globalThis||navigator.maxTouchPoints>0,bn=En=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][En],Mn=En=>{const Rn=[],ni=mi=>mi.filter(bi=>!!bi);for(let mi=0;mi<En.length;mi+=3){const bi=[En[mi],En[mi+1],En[mi+2]];Rn.push(ni(bi))}return Rn},Tn={prop:En=>`"${En}" prop must be enabled!`,dateArr:En=>`You need to use array as "model-value" binding in order to support "${En}"`},xn=(En,Rn,ni,mi,bi)=>{const _i={hours:getHours,minutes:getMinutes,seconds:getSeconds};if(!Rn)return mi?[_i[En](ni),_i[En](ni)]:_i[En](ni);if(Array.isArray(Rn)&&mi){const oi=Rn[0]??ni,si=Rn[1];return[_i[En](oi),si?_i[En](si):bi[En][1]??_i[En](ni)]}return Array.isArray(Rn)&&!mi?_i[En](Rn[Rn.length-1]??ni):_i[En](Rn)};return{getMapKey:en,getMapKeyType:He,getMapDate:tn,convertType:nn,getNumVal:an,findNextFocusableElement:on,padZero:sn,getElWithin:dn,checkStopPropagation:hn,checkKeyDown:mn,handleEventPropagation:gn,findFocusableEl:yn,isTouchDevice:fn,hoursToAmPmHours:bn,getGroupedList:Mn,setTimeModelValue:(En,Rn,ni,mi)=>{En.hours=xn("hours",Rn,ni,mi,En),En.minutes=xn("minutes",Rn,ni,mi,En),En.seconds=xn("seconds",Rn,ni,mi,En)},getTimeObjFromCurrent:(En,Rn,ni)=>{const mi={hours:getHours(En),minutes:getMinutes(En),seconds:ni?getSeconds(En):0};return Object.assign(mi,Rn)},errorMapper:Tn}},ze=()=>{const{getDate:en}=Se(),{getMapDate:He,getGroupedList:tn}=Fe(),nn=(xn,En)=>
84{if(!xn)return en();const Rn=en(xn),ni=set(Rn,{hours:0,minutes:0,seconds:0,milliseconds:0});return En?startOfMonth(ni):ni},an=(xn,En)=>{const Rn=en(En);return set(Rn,{hours:+(xn.hours??getHours(Rn)),minutes:+(xn.minutes??getMinutes(Rn)),seconds:+(xn.seconds??getSeconds(Rn)),milliseconds:0})},rn=(xn,En)=>{const Rn=startOfWeek(xn,{weekStartsOn:+En}),ni=endOfWeek(xn,{weekStartsOn:+En});return[Rn,ni]},on=(xn,En)=>!xn||!En?!1:isBefore(nn(xn),nn(En)),sn=(xn,En)=>!xn||!En?!1:isEqual(nn(xn),nn(En)),dn=(xn,En)=>!xn||!En?!1:isAfter(nn(xn),nn(En)),hn=(xn,En,Rn)=>xn?.[0]&&xn?.[1]?dn(Rn,xn[0])&&on(Rn,xn[1]):xn?.[0]&&En?dn(Rn,xn[0])&&on(Rn,En)||on(Rn,xn[0])&&dn(Rn,En):!1,mn=(xn,En)=>{const Rn=dn(xn,En)?En:xn,ni=dn(En,xn)?En:xn;return eachDayOfInterval({start:Rn,end:ni})},gn=xn=>`dp-${format$1(xn,"yyyy-MM-dd")}`,yn=xn=>nn(set(en(xn),{date:1})),fn=(xn,En)=>{if(En){const Rn=getYear(en(En));if(Rn>xn)return 12;if(Rn===xn)return getMonth(en(En))}},bn=(xn,En)=>{if(En){const Rn=getYear(en(En));return Rn<xn?-1:Rn===xn?getMonth(en(En)):void 0}},Mn=xn=>{if(xn)return getYear(en(xn))},Tn=xn=>({hours:getHours(xn),minutes:getMinutes(xn),seconds:getSeconds(xn)});return{resetDateTime:nn,groupListAndMap:(xn,En)=>tn(xn).map(Rn=>Rn.map(ni=>{const{active:mi,disabled:bi,isBetween:_i,highlighted:oi}=En(ni);return{...ni,active:mi,disabled:bi,className:{dp__overlay_cell_active:mi,dp__overlay_cell:!mi,dp__overlay_cell_disabled:bi,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:bi&&mi,dp__cell_in_between:_i,"dp--highlighted":oi}}})),setTime:an,getWeekFromDate:rn,isDateAfter:dn,isDateBefore:on,isDateBetween:hn,isDateEqual:sn,getDaysInBetween:mn,getCellId:gn,resetDate:yn,getMinMonth:fn,getMaxMonth:bn,getYearFromDate:Mn,getTimeObj:Tn,setTimeValue:xn=>set(en(),Tn(xn)),sanitizeTime:(xn,En,Rn)=>En&&(Rn||Rn===0)?Object.fromEntries(["hours","minutes","seconds"].map(ni=>ni===En?[ni,Rn]:[ni,Number.isNaN(+xn[ni])?void 0:+xn[ni]])):{hours:Number.isNaN(+xn.hours)?void 0:+xn.hours,minutes:Number.isNaN(+xn.minutes)?void 0:+xn.minutes,seconds:Number.isNaN(+(xn.seconds??""))?void 0:+xn.seconds},getBeforeAndAfterInRange:(xn,En)=>{const Rn=subDays(nn(En),xn),ni=addDays(nn(En),xn);return{before:Rn,after:ni}},isModelAuto:xn=>Array.isArray(xn)?!!xn[0]&&!!xn[1]:!1,matchDate:(xn,En)=>xn?En?En instanceof Map?!!He(xn,En):En(en(xn)):!1:!0,checkHighlightMonth:(xn,En,Rn)=>typeof xn=="function"?xn({month:En,year:Rn}):xn.months.some(ni=>ni.month===En&&ni.year===Rn),checkHighlightYear:(xn,En)=>typeof xn=="function"?xn(En):xn.years.includes(En)}},na=()=>{const{defaults:{config:en}}=Se(),He=ref(0);onMounted(()=>{tn(),globalThis.addEventListener("resize",tn,{passive:!0})}),onUnmounted(()=>{globalThis.removeEventListener("resize",tn)});const tn=()=>{He.value=globalThis.document.documentElement.clientWidth};return{isMobile:computed(()=>He.value<=en.value.mobileBreakpoint?!0:void 0)}},kt=()=>{const{getDate:en,state:He,modelValue:tn,rootProps:nn,defaults:{formats:an,textInput:rn}}=Se(),on=bn=>format$1(setYear(en(),bn),an.value.year,{locale:nn.locale}),sn=bn=>format$1(setMonth(en(),bn),an.value.month,{locale:nn.locale}),dn=bn=>format$1(bn,an.value.weekDay,{locale:nn.locale}),hn=bn=>format$1(bn,an.value.quarter,{locale:nn.locale}),mn=(bn,Mn)=>[bn,Mn].map(Tn=>hn(Tn)).join("-"),gn=bn=>format$1(bn,an.value.day,{locale:nn.locale}),yn=(bn,Mn,Tn)=>{const xn=Tn?an.value.preview:an.value.input;if(!bn)return"";if(typeof xn=="function")return xn(bn);const En=Mn??xn,Rn={locale:nn.locale};return Array.isArray(bn)?`${format$1(bn[0],En,Rn)}${nn.modelAuto&&!bn[1]?"":rn.value.rangeSeparator}${bn[1]?format$1(bn[1],En,Rn):""}`:format$1(bn,En,Rn)},fn=()=>{const bn=Mn=>format$1(Mn,rn.value.format);return Array.isArray(tn.value)?`${bn(tn.value[0])} ${rn.value.rangeSeparator} ${tn.value[1]?bn(tn.value[1]):""}`:""};return{formatYear:on,formatMonth:sn,formatWeekDay:dn,formatQuarter:hn,formatSelectedDate:yn,formatForTextInput:()=>He.isInputFocused&&tn.value?Array.isArray(tn.value)?fn():format$1(tn.value,rn.value.format):yn(tn.value),formatPreview:bn=>yn(bn,void 0,!0),formatQuarterText:mn,formatDay:gn}},ra=()=>{const{rootProps:en}=Se(),{formatYear:He,formatMonth:tn}=kt();return{getMonths:()=>[0,1,2,3,4,5,6,7,8,9,10,11].map(nn=>({text:tn(nn),value:nn})),getYears:()=>{const nn=[];for(let an=+en.yearRange[0];an<=+en.yearRange[1];an++)nn.push({value:+an,text:He(an)});return en.reverseYears?nn.reverse():nn},isOutOfYearRange:nn=>nn<+en.yearRange[0]||nn>+en.yearRange[1]}},xr=en=>({openMenu:()=>en.value?.openMenu(),closeMenu:()=>en.value?.closeMenu(),selectDate:()=>en.value?.selectDate(),clearValue:()=>en.value?.clearValue(),formatInputValue:()=>en.value?.formatInputValue(),updateInternalModelValue:He=>
84en.value?.updateInternalModelValue(He),setMonthYear:(He,tn)=>en.value?.setMonthYear(He,tn),parseModel:()=>en.value?.parseModel(),switchView:(He,tn)=>en.value?.switchView(He,tn),handleFlow:()=>en.value?.handleFlow(),toggleMenu:()=>en.value?.toggleMenu()}),Ot=()=>({boolHtmlAttribute:en=>en?!0:void 0}),Br=()=>{const{getDate:en,rootProps:He,defaults:{textInput:tn,startTime:nn,timeConfig:an}}=Se(),{getTimeObjFromCurrent:rn}=Fe(),on=ref(!1),sn=computed(()=>Array.isArray(nn.value)?nn.value[0]:nn.value??rn(en(),{},an.value.enableSeconds)),dn=(hn,mn,gn)=>{const yn=parse(hn,mn.slice(0,hn.length),en(),{locale:He.locale});return isValid(yn)&&isDate(yn)?gn||on.value?yn:set(yn,{hours:+sn.value.hours,minutes:+sn.value.minutes,seconds:+(sn.value.seconds??0),milliseconds:0}):null};return{textPasted:on,parseFreeInput:(hn,mn)=>{if(typeof tn.value.pattern=="string")return dn(hn,tn.value.pattern,mn);if(Array.isArray(tn.value.pattern)){let gn=null;for(const yn of tn.value.pattern)if(gn=dn(hn,yn,mn),gn)break;return gn}return typeof tn.value.pattern=="function"?tn.value.pattern(hn):null},applyMaxValues:(hn,mn)=>{const gn={MM:12,DD:31,hh:23,mm:59,ss:59};let yn="",fn=0;for(let bn=0;bn<mn.length;bn++){const Mn=mn[bn],Tn=Mn.length,xn=hn.slice(fn,fn+Tn);if(!xn)break;if(xn.length<Tn)yn+=xn;else{let En=Number.parseInt(xn,10);gn[Mn]&&En>gn[Mn]&&(En=gn[Mn]),yn+=En.toString().padStart(Tn,"0").slice(0,Tn)}fn+=Tn}return yn},createMaskedValue:(hn,mn)=>{const gn=/(YYYY|MM|DD|hh|mm|ss)/g,yn=[...mn.matchAll(gn)].map(xn=>xn[0]),fn=mn.replace(gn,"|").split("|").filter(Boolean),bn=yn.map(xn=>xn.length);let Mn="",Tn=0;for(let xn=0;xn<yn.length;xn++){const En=bn[xn],Rn=hn.slice(Tn,Tn+En);if(!Rn)break;Mn+=Rn,Rn.length===En&&fn[xn]&&(Mn+=fn[xn]),Tn+=En}return Mn}}},Ir={key:1,class:"dp__input_wrap"},Vr=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],Er={key:2,class:"dp--clear-btn"},Fr=["aria-label"],Nr=defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1}},emits:["clear","open","set-input-date","close","select-date","set-empty-date","toggle","focus","blur","real-blur"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{rootEmit:rn,inputValue:on,rootProps:sn,defaults:{textInput:dn,ariaLabels:hn,inline:mn,config:gn,range:yn,multiDates:fn,ui:bn,inputAttrs:Mn}}=Se(),{checkMinMaxRange:Tn,isValidDate:xn}=nt(),{parseFreeInput:En,textPasted:Rn,createMaskedValue:ni,applyMaxValues:mi}=Br(),{checkKeyDown:bi,checkStopPropagation:_i}=Fe(),{boolHtmlAttribute:oi}=Ot(),si=useTemplateRef("dp-input"),fi=ref(null),ei=ref(!1),ci=computed(()=>({dp__pointer:!sn.disabled&&!sn.readonly&&!dn.value.enabled,dp__disabled:sn.disabled,dp__input_readonly:!dn.value.enabled,dp__input:!0,dp__input_not_clearable:!Mn.value.clearable,dp__input_icon_pad:!Mn.value.hideInputIcon,dp__input_valid:typeof Mn.value.state=="boolean"?Mn.value.state:!1,dp__input_invalid:typeof Mn.value.state=="boolean"?!Mn.value.state:!1,dp__input_focus:ei.value||an.isMenuOpen,dp__input_reg:!dn.value.enabled,...bn.value.input})),di=()=>{nn("set-input-date",null),Mn&&sn.autoApply&&(nn("set-empty-date"),fi.value=null)},wi=Oi=>{const{rangeSeparator:Ei}=dn.value,[ea,vi]=Oi.split(`${Ei}`);if(ea){const ti=En(ea.trim(),on.value),ui=vi?En(vi.trim(),on.value):void 0;if(isAfter(ti,ui))return;const Cn=ti&&ui?[ti,ui]:[ti];
84Tn(ui,Cn,0)&&(fi.value=ti?Cn:null)}},Ci=()=>{Rn.value=!0},ji=Oi=>{if(yn.value.enabled)wi(Oi);else if(fn.value.enabled){const Ei=Oi.split(";");fi.value=Ei.map(ea=>En(ea.trim())).filter(ea=>!!ea)}else fi.value=En(Oi,on.value)},Yi=Oi=>{const Ei=typeof Oi=="string"?Oi:Oi.target?.value,ea=dn?.value?.maskFormat;let vi=Ei;if(typeof ea=="string"){const ti=/(YYYY|MM|DD|hh|mm|ss)/g,ui=[...ea.matchAll(ti)].map(Zi=>Zi[0]),Cn=Ei.replace(/\D/g,""),ki=mi(Cn,ui);vi=ni(ki,ea)}vi===""?di():(dn.value.openMenu&&!an.isMenuOpen&&nn("open"),ji(vi),nn("set-input-date",fi.value)),Rn.value=!1,on.value=vi,rn("text-input",Oi,fi.value)},Pi=Oi=>{dn.value.enabled?(ji(Oi.target.value),dn.value.enterSubmit&&xn(fi.value)&&on.value!==""?(nn("set-input-date",fi.value,!0),fi.value=null):dn.value.enterSubmit&&on.value===""&&(fi.value=null,nn("clear"))):Wi(Oi)},Fi=(Oi,Ei)=>{dn.value.enabled&&dn.value.tabSubmit&&!Ei&&ji(Oi.target.value),dn.value.tabSubmit&&xn(fi.value)&&on.value!==""?(nn("set-input-date",fi.value,!0,!0),fi.value=null):dn.value.tabSubmit&&on.value===""&&(fi.value=null,nn("clear"))},$i=()=>{ei.value=!0,nn("focus"),nextTick().then(()=>{dn.value.enabled&&dn.value.selectOnFocus&&si.value?.select()})},Wi=Oi=>{if(_i(Oi,gn.value,!0),dn.value.enabled&&dn.value.openMenu&&!mn.value.input){if(dn.value.openMenu==="open"&&!an.isMenuOpen)return nn("open");if(dn.value.openMenu==="toggle")return nn("toggle")}else dn.value.enabled||nn("toggle")},hi=()=>{nn("real-blur"),ei.value=!1,(!an.isMenuOpen||mn.value.enabled&&mn.value.input)&&nn("blur"),sn.autoApply&&dn.value.enabled&&fi.value&&!an.isMenuOpen&&(nn("set-input-date",fi.value),nn("select-date"),fi.value=null)},Si=Oi=>{_i(Oi,gn.value,!0),nn("clear")},Ni=()=>{nn("close")},yi=Oi=>{if(Oi.key==="Tab"&&Fi(Oi),Oi.key==="Enter"&&Pi(Oi),Oi.key==="Escape"&&dn.value.escClose&&Ni(),!dn.value.enabled){if(Oi.code==="Tab")return;Oi.preventDefault()}},Hi=()=>{si.value?.focus({preventScroll:!0})},Ui=Oi=>{fi.value=Oi},Ji=Oi=>{Oi.key===xe.tab&&Fi(Oi,!0)};return He({focusInput:Hi,setParsedDate:Ui}),(Oi,Ei)=>(openBlock(),createElementBlock("div",{onClick:Wi},[Oi.$slots.trigger&&!Oi.$slots["dp-input"]&&!unref(mn).enabled?renderSlot(Oi.$slots,"trigger",{key:0}):createCommentVNode("",!0),!Oi.$slots.trigger&&(!unref(mn).enabled||unref(mn).input)?(openBlock(),createElementBlock("div",Ir,[Oi.$slots["dp-input"]&&!Oi.$slots.trigger&&(!unref(mn).enabled||unref(mn).enabled&&unref(mn).input)?renderSlot(Oi.$slots,"dp-input",{key:0,value:unref(on),isMenuOpen:en.isMenuOpen,onInput:Yi,onEnter:Pi,onTab:Fi,onClear:Si,onBlur:hi,onKeypress:yi,onPaste:Ci,onFocus:$i,openMenu:()=>Oi.$emit("open"),closeMenu:()=>Oi.$emit("close"),toggleMenu:()=>Oi.$emit("toggle")}):createCommentVNode("",!0),Oi.$slots["dp-input"]?createCommentVNode("",!0):(openBlock(),createElementBlock("input",{key:1,id:unref(Mn).id,ref:"dp-input","data-test-id":"dp-input",name:unref(Mn).name,class:normalizeClass(ci.value),inputmode:unref(Mn).inputmode,placeholder:unref(sn).placeholder,disabled:unref(oi)(unref(sn).disabled),readonly:unref(oi)(unref(sn).readonly),required:unref(oi)(unref(Mn).required),value:unref(on),autocomplete:unref(Mn).autocomplete,"aria-label":unref(hn).input,"aria-disabled":unref(sn).disabled||void 0,"aria-invalid":unref(Mn).state===!1?!0:void 0,onInput:Yi,onBlur:hi,onFocus:$i,onKeypress:yi,onKeydown:Ei[0]||(Ei[0]=ea=>yi(ea)),onPaste:Ci,onInvalid:Ei[1]||(Ei[1]=ea=>unref(rn)("invalid",ea))},null,42,Vr)),createBaseVNode("div",{onClick:Ei[4]||(Ei[4]=ea=>nn("toggle"))},[Oi.$slots["input-icon"]&&!unref(Mn).hideInputIcon?(openBlock(),createElementBlock("span",{key:0,class:"dp__input_icon",onClick:Ei[2]||(Ei[2]=ea=>nn("toggle"))},[renderSlot(Oi.$slots,"input-icon")])):createCommentVNode("",!0),!Oi.$slots["input-icon"]&&!unref(Mn).hideInputIcon&&!Oi.$slots["dp-input"]?(openBlock(),createBlock(unref(Kt),{key:1,"aria-label":unref(hn)?.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:Ei[3]||(Ei[3]=ea=>nn("toggle"))},null,8,["aria-label"])):createCommentVNode("",!0)]),Oi.$slots["clear-icon"]&&(unref(Mn).alwaysClearable||unref(on)&&unref(Mn).clearable&&!unref(sn).disabled&&!unref(sn).readonly)?(openBlock(),createElementBlock("span",Er,[render
84Slot(Oi.$slots,"clear-icon",{clear:Si})])):createCommentVNode("",!0),!Oi.$slots["clear-icon"]&&(unref(Mn).alwaysClearable||unref(Mn).clearable&&unref(on)&&!unref(sn).disabled&&!unref(sn).readonly)?(openBlock(),createElementBlock("button",{key:3,"aria-label":unref(hn)?.clearInput,class:"dp--clear-btn",type:"button","data-test-id":"clear-input-value-btn",onKeydown:Ei[5]||(Ei[5]=ea=>unref(bi)(ea,()=>Si(ea),!0,Ji)),onClick:Ei[6]||(Ei[6]=withModifiers(ea=>Si(ea),["prevent"]))},[createVNode(unref(Fn),{class:"dp__input_icons"})],40,Fr)):createCommentVNode("",!0)])):createCommentVNode("",!0)]))}}),Wr={ref:"action-row",class:"dp__action_row"},Lr=["title"],Hr={ref:"action-buttons-container",class:"dp__action_buttons","data-dp-element":"action-row"},Kr=["disabled"],jr=defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{default:0}},emits:["close-picker","select-date","select-now"],setup(en,{emit:He}){const tn=He,nn=en,{rootEmit:an,rootProps:rn,modelValue:on,defaults:{actionRow:sn,multiCalendars:dn,inline:hn,range:mn,multiDates:gn,formats:yn}}=Se(),{isTimeValid:fn,isMonthValid:bn}=nt(),{buildMatrix:Mn}=yt(),{formatPreview:Tn}=kt(),{checkKeyDown:xn,convertType:En}=Fe(),{boolHtmlAttribute:Rn}=Ot(),ni=useTemplateRef("cancel-btn"),mi=useTemplateRef("select-btn"),bi=useTemplateRef("action-buttons-container"),_i=useTemplateRef("action-row"),oi=ref(!1),si=ref({});onMounted(()=>{rn.arrowNavigation&&Mn([unrefElement(ni),unrefElement(mi)],"actionRow"),fi(),globalThis.addEventListener("resize",fi)}),onUnmounted(()=>{globalThis.removeEventListener("resize",fi)});const fi=()=>{oi.value=!1,setTimeout(()=>{const Fi=bi.value?.getBoundingClientRect(),$i=_i.value?.getBoundingClientRect();Fi&&$i&&(si.value.maxWidth=`${$i.width-Fi.width-20}px`),oi.value=!0},0)},ei=computed(()=>mn.value.enabled&&!mn.value.partialRange&&on.value?on.value.length===2:!0),ci=computed(()=>!fn.value(on.value)||!bn.value(on.value)||!ei.value),di=()=>{const Fi=yn.value.preview;return rn.timePicker||rn.monthPicker,Fi(En(on.value))},wi=()=>{const Fi=on.value;return dn.value.count>0?`${Tn(Fi[0])} - ${Tn(Fi[1])}`:[Tn(Fi[0]),Tn(Fi[1])]},Ci=computed(()=>!on.value||!nn.menuMount?"":typeof yn.value.preview=="string"?Array.isArray(on.value)?on.value.length===2&&on.value[1]?wi():gn.value.enabled?on.value.map(Fi=>`${Tn(Fi)}`):rn.modelAuto?`${Tn(on.value[0])}`:`${Tn(on.value[0])} -`:Tn(on.value):di()),ji=()=>gn.value.enabled?"; ":" - ",Yi=computed(()=>Array.isArray(Ci.value)?Ci.value.join(ji()):Ci.value),Pi=()=>{fn.value(on.value)&&bn.value(on.value)&&ei.value?tn("select-date"):an("invalid-select")};return(Fi,$i)=>(openBlock(),createElementBlock("div",Wr,[Fi.$slots["action-row"]?renderSlot(Fi.$slots,"action-row",normalizeProps(mergeProps({key:0},{modelValue:unref(on),disabled:ci.value,selectDate:()=>Fi.$emit("select-date"),closePicker:()=>Fi.$emit("close-picker")}))):(openBlock(),createElementBlock(Fragment,{key:1},[unref(sn).showPreview?(openBlock(),createElementBlock("div",{key:0,class:"dp__selection_preview",title:Yi.value||void 0,style:normalizeStyle(si.value)},[Fi.$slots["action-preview"]&&oi.value?renderSlot(Fi.$slots,"action-preview",{key:0,value:unref(on)}):createCommentVNode("",!0),!Fi.$slots["action-preview"]&&oi.value?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Yi.value),1)],64)):createCommentVNode("",!0)],12,Lr)):createCommentVNode("",!0),createBaseVNode("div",Hr,[Fi.$slots["action-buttons"]?renderSlot(Fi.$slots,"action-buttons",{key:0,value:unref(on)}):createCommentVNode("",!0),Fi.$slots["action-buttons"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[!unref(hn).enabled&&unref(sn).showCancel?(openBlock(),createElementBlock("button",{key:0,ref:"cancel-btn",type:"button",class:"dp__action_button dp__action_cancel",onClick:$i[0]||($i[0]=Wi=>Fi.$emit("close-picker")),onKeydown:$i[1]||($i[1]=Wi=>unref(xn)(Wi,()=>Fi.$emit("close-picker")))},toDisplayString(unref(sn).cancelBtnLabel),545)):createCommentVNode("",!0),unref(sn).showNow?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:$i[2]||($i[2]=Wi=>Fi.$emit("select-now")),onKeydown:$i[3]||($i[3]=Wi=>unref(xn)(Wi,()=>Fi.$emit("select-now")))},toDisplayString(unref(sn).nowBtnLabel),33)):createCommentVNode("",!0),unref(sn).showSelect?(openBlock(),createElementBlock("button",{key:2,ref:"select-btn",type:"button",class:"dp__action_button dp__action_select",disabled:unref(Rn)(ci.value),"data-test-id":"select-button",onKeydown:$i[4]||($i[4]=Wi=>unref(xn)(Wi,()=>Pi())),onClick:Pi},toDisplayString(unref(sn).selectBtnLabel),41,Kr)):createCommentVNode("",!0)],64))],512)],64))],512))}}),la=()=>{const{rootProps:en,defaults:{multiCalendars:He}}=Se(),tn=computed(()=>rn=>en.hideNavigation?.includes(rn)),nn=computed(()=>rn=>He.value.count?He.value.solo?!0:rn===0:!0),an=computed(()=>rn=>He.value.count?He.value.solo?!0:rn===He.value.count-1:!0);return{hideNavigationButtons:tn,showLeftIcon:nn,showRightIcon:an}},zr=["role","aria-label","tabindex"],Ur={class:"dp__selection_grid_header"},qr=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],Qr=["aria-label"],Ut=defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},useRelative:{type:Boolean},height:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(en,{expose:He,emit:tn}){const{setSelectionGrid:nn,buildMultiLevelMatrix:an,setMonthPicker:rn}=yt(),on=tn,sn=en,{rootProps:dn,defaults:{ariaLabels:hn,textInput:mn,config:gn}}=Se(),{hideNavigationButtons:yn}=la(),{handleEventPropagation:fn,convertType:bn,checkKeyDown:Mn,checkStopPropagation:Tn,getElWithin:xn,findFocusableEl:En}=Fe(),Rn=useTemplateRef("toggle-button"),ni=useTemplateRef("overlay-container"),mi=useTemplateRef("grid-wrap"),bi=ref(!1),_i=ref(null),oi=ref([]),si=ref(),fi=ref(0);onBeforeUpdate(()=>{_i.value=null}),onMounted(()=>{nextTick().then(()=>Pi()),sn.noOverlayFocus||ci(),ei(!0)}),onUnmounted(()=>ei(!1));const ei=Oi=>{dn.arrowNavigation&&(sn.headerRefs?.length?rn(Oi):nn(Oi))},ci=()=>{const Oi=unrefElement(mi);Oi&&(mn.value.enabled||(_i.value?_i.value?.focus({preventScroll:!0}):Oi.focus({preventScroll:!0})),bi.value=Oi.clientHeight<Oi.scrollHeight)},di=computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!sn.useRelative,"dp--overlay-relative":sn.useRelative})),wi=computed(()=>sn.useRelative?{height:`${sn.height}px`,width:"var(--dp-menu-min-width)"}:void 0),Ci=computed(()=>({dp__overlay_col:!0})),ji=computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:bi.value,dp__button_bottom:sn.isLast})),Yi=computed(()=>({dp__overlay_container:!0,dp__container_flex:sn.items?.length<=6,dp__container_block:sn.items?.length>6}));watch(()=>sn.items,()=>Pi(!1),{deep:!0});const Pi=(Oi=!0)=>{nextTick().then(()=>
84{const Ei=unrefElement(_i),ea=unrefElement(mi),vi=unrefElement(Rn),ti=unrefElement(ni),ui=vi?vi.getBoundingClientRect().height:0;ea&&(ea.getBoundingClientRect().height?fi.value=ea.getBoundingClientRect().height-ui:fi.value=gn.value.modeHeight-ui),Ei&&ti&&Oi&&(ti.scrollTop=Ei.offsetTop-ti.offsetTop-(fi.value/2-Ei.getBoundingClientRect().height)-ui)})},Fi=Oi=>{Oi.disabled||on("selected",Oi.value)},$i=()=>{on("toggle"),on("reset-flow")},Wi=Oi=>{gn.value.escClose&&($i(),fn(Oi,gn.value))},hi=(Oi,Ei,ea,vi)=>{Oi&&((Ei.active||Ei.value===sn.focusValue)&&(_i.value=Oi),dn.arrowNavigation&&(Array.isArray(oi.value[ea])?oi.value[ea][vi]=Oi:oi.value[ea]=[Oi],Si()))},Si=()=>{const Oi=sn.headerRefs?.length?[sn.headerRefs].concat(oi.value):oi.value.concat([sn.skipButtonRef?[]:[Rn.value]]);an(bn(Oi),sn.headerRefs?.length?"monthPicker":"selectionGrid")},Ni=Oi=>{dn.arrowNavigation||Tn(Oi,gn.value,!0)},yi=Oi=>{si.value=Oi,on("hover-value",Oi)},Hi=()=>{if($i(),!sn.isLast){const Oi=xn(sn.menuWrapRef??null,"action-row");Oi&&En(Oi)?.focus()}},Ui=Oi=>{switch(Oi.key){case xe.esc:return Wi(Oi);case xe.arrowLeft:return Ni(Oi);case xe.arrowRight:return Ni(Oi);case xe.arrowUp:return Ni(Oi);case xe.arrowDown:return Ni(Oi);default:return}},Ji=Oi=>{if(Oi.key===xe.enter)return $i();if(Oi.key===xe.tab)return Hi()};return He({focusGrid:ci}),(Oi,Ei)=>(openBlock(),createElementBlock("div",{ref:"grid-wrap",class:normalizeClass(di.value),style:normalizeStyle(wi.value),role:en.useRelative?void 0:"dialog","aria-label":en.overlayLabel,tabindex:en.useRelative?void 0:"0",onKeydown:Ui,onClick:Ei[0]||(Ei[0]=withModifiers(()=>{},["prevent"]))},[createBaseVNode("div",{ref:"overlay-container",class:normalizeClass(Yi.value),style:normalizeStyle({"--dp-overlay-height":`${fi.value}px`}),role:"grid"},[createBaseVNode("div",Ur,[renderSlot(Oi.$slots,"header")]),Oi.$slots.overlay?renderSlot(Oi.$slots,"overlay",{key:0}):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(en.items,(ea,vi)=>(openBlock(),createElementBlock("div",{key:vi,class:normalizeClass(["dp__overlay_row",{dp__flex_row:en.items.length>=3}]),role:"row"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ea,(ti,ui)=>(openBlock(),createElementBlock("div",{key:ti.value,ref_for:!0,ref:Cn=>hi(Cn,ti,vi,ui),role:"gridcell",class:normalizeClass(Ci.value),"aria-selected":ti.active||void 0,"aria-disabled":ti.disabled||void 0,tabindex:"0","data-test-id":ti.text,onClick:withModifiers(Cn=>Fi(ti),["prevent"]),onKeydown:Cn=>unref(Mn)(Cn,()=>Fi(ti),!0),onMouseover:Cn=>yi(ti.value)},[createBaseVNode("div",{class:normalizeClass(ti.className)},[Oi.$slots.item?renderSlot(Oi.$slots,"item",{key:0,item:ti}):createCommentVNode("",!0),Oi.$slots.item?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(ti.text),1)],64))],2)],42,qr))),128))],2))),128))],6),Oi.$slots["button-icon"]?withDirectives((openBlock(),createElementBlock("button",{key:0,ref:"toggle-button",type:"button","aria-label":unref(hn)?.toggleOverlay,class:normalizeClass(ji.value),tabindex:"0",onClick:$i,onKeydown:J
84i},[renderSlot(Oi.$slots,"button-icon")],42,Qr)),[[vShow,!unref(yn)(en.type)]]):createCommentVNode("",!0)],46,zr))}}),Gr=["data-dp-mobile"],oa=defineComponent({__name:"InstanceWrap",props:{stretch:{type:Boolean},collapse:{type:Boolean}},setup(en){const{defaults:{multiCalendars:He}}=Se(),{isMobile:tn}=na(),nn=computed(()=>He.value.count>0?[...new Array(He.value.count).keys()]:[0]);return(an,rn)=>(openBlock(),createElementBlock("div",{class:normalizeClass({dp__menu_inner:!en.stretch,"dp--menu--inner-stretched":en.stretch,dp__flex_display:unref(He).count>0,"dp--flex-display-collapsed":en.collapse}),"data-dp-mobile":unref(tn)},[renderSlot(an.$slots,"default",{instances:nn.value,wrapClass:{dp__instance_calendar:unref(He).count>0}})],10,Gr))}}),Jr=["data-dp-element","aria-label","aria-disabled"],Nt=defineComponent({__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(en,{emit:He}){const{checkKeyDown:tn}=Fe(),nn=He,an=useTemplateRef("arrow-btn");return onMounted(()=>nn("set-ref",an)),(rn,on)=>(openBlock(),createElementBlock("button",{ref:"arrow-btn",type:"button","data-dp-element":en.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":en.ariaLabel,"aria-disabled":en.disabled||void 0,onClick:on[0]||(on[0]=sn=>nn("activate")),onKeydown:on[1]||(on[1]=sn=>unref(tn)(sn,()=>nn("activate"),!0))},[createBaseVNode("span",{class:normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:en.disabled}])},[renderSlot(rn.$slots,"default")],2)],40,Jr))}}),Xr=["aria-label","data-test-id"],qa=defineComponent({__name:"YearModePicker",props:{items:{},instance:{},year:{},showYearPicker:{type:Boolean,default:!1},isDisabled:{}},emits:["handle-year","year-select","toggle-year-picker"],setup(en,{emit:He}){const tn=He,nn=en,{showRightIcon:an,showLeftIcon:rn}=la(),{rootProps:on,defaults:{config:sn,ariaLabels:dn,ui:hn}}=Se(),{showTransition:mn,transitionName:gn}=jt(),{formatYear:yn}=kt(),{boolHtmlAttribute:fn}=Ot(),bn=ref(!1),Mn=computed(()=>yn(nn.year)),Tn=(Rn=!1,ni)=>{bn.value=!bn.value,tn("toggle-year-picker",{flow:Rn,show:ni})},xn=Rn=>{bn.value=!1,tn("year-select",Rn)},En=(Rn=!1)=>{tn("handle-year",Rn)};return(Rn,ni)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{class:normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":bn.value}])},[unref(rn)(en.instance)?(openBlock(),createBlock(Nt,{key:0,ref:"mpPrevIconRef","aria-label":unref(dn)?.prevYear,disabled:unref(fn)(en.isDisabled(!1)),class:normalizeClass(unref(hn)?.navBtnPrev),onActivate:ni[0]||(ni[0]=mi=>En(!1))},{default:withCtx(()=>[Rn.$slots["arrow-left"]?renderSlot(Rn.$slots,"arrow-left",{key:0}):createCommentVNode("",!0),Rn.$slots["arrow-left"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(La),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0),createBaseVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${en.year}-${unref(dn)?.openYearsOverlay}`,"data-test-id":`year-mode-btn-${en.instance}`,onClick:ni[1]||(ni[1]=()=>Tn(!1)),onKeydown:ni[2]||(ni[2]=withKeys(()=>Tn(!1),["enter"]))},[Rn.$slots.year?renderSlot(Rn.$slots,"year",{key:0,text:Mn.value,value:en.year}):createCommentVNode("",!0),Rn.$slots.year?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(en.year),1)],64))],40,Xr),unref(an)(en.instance)?(openBlock(),createBlock(Nt,{key:1,ref:"mpNextIconRef","aria-label":unref(dn)?.nextYear,disabled:unref(fn)(en.isDisabled(!0)),class:normalizeClass(unref(hn)?.navBtnNext),onActivate:ni[3]||(ni[3]=mi=>En(!0))},{default:withCtx(()=>[Rn.$slots["arrow-right"]?renderSlot(Rn.$slots,"arrow-right",{key:0}):createCommentVNode("",!0),Rn.$slots["arrow-right"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ha),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0)],2),createVNode(Transition,{name:unref(gn)(en.showYearPicker),css:unref(mn)},{default:withCtx(()=>[en.showYearPicker?(openBlock(),createBlock(Ut,{key:0,items:en.items,config:unref(sn),"is-last":unref(on).autoApply&&!unref(sn).keepActionRow,"overlay-label":unref(dn)?.yearPicker?.(!0),type:"year",onToggle:Tn,onSelected:ni[4]||(ni[4]=mi=>xn(mi))},createSlots({"button-icon":withCtx(()=>
84[Rn.$slots["calendar-icon"]?renderSlot(Rn.$slots,"calendar-icon",{key:0}):createCommentVNode("",!0),Rn.$slots["calendar-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Kt),{key:1}))]),_:2},[Rn.$slots["year-overlay-value"]?{name:"item",fn:withCtx(({item:mi})=>[renderSlot(Rn.$slots,"year-overlay-value",{text:mi.text,value:mi.value})]),key:"0"}:void 0]),1032,["items","config","is-last","overlay-label"])):createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),Qa=en=>{const{getDate:He,rootEmit:tn,state:nn,month:an,year:rn,modelValue:on,calendars:sn,rootProps:dn,defaults:{multiCalendars:hn,range:mn,safeDates:gn,filters:yn,highlight:fn}}=Se(),{resetDate:bn,getYearFromDate:Mn,checkHighlightYear:Tn,groupListAndMap:xn}=ze(),{getYears:En}=ra(),{validateMonthYear:Rn,checkMinMaxValue:ni}=nt(),mi=ref([!1]),bi=computed(()=>En()),_i=computed(()=>($i,Wi)=>{const hi=set(bn(He()),{month:an.value($i),year:rn.value($i)}),Si=Wi?endOfYear(hi):startOfYear(hi);return Rn(Si,dn.preventMinMaxNavigation,Wi)}),oi=()=>Array.isArray(on.value)&&hn.value.solo&&on.value[1],si=()=>{for(let $i=0;$i<hn.value.count;$i++)if($i===0)sn.value[$i]=sn.value[0];else if($i===hn.value.count-1&&oi())sn.value[$i]={month:getMonth(on.value[1]),year:getYear(on.value[1])};else{const Wi=set(He(),sn.value[$i-1]);sn.value[$i]={month:getMonth(Wi),year:getYear(addYears(Wi,1))}}},fi=$i=>{if(!$i)return si();const Wi=set(He(),sn.value[$i]);return sn.value[0].year=getYear(subYears(Wi,hn.value.count-1)),si()},ei=($i,Wi)=>{const hi=differenceInYears(Wi,$i);return mn.value.showLastInRange&&hi>1?Wi:$i},ci=$i=>dn.focusStartDate||hn.value.solo?$i[0]:$i[1]?ei($i[0],$i[1]):$i[0],di=()=>{if(on.value){const $i=Array.isArray(on.value)?ci(on.value):on.value;sn.value[0]={month:getMonth($i),year:getYear($i)}}},wi=()=>{di(),hn.value.count&&si()};watch(on,($i,Wi)=>{nn.isTextInputDate&&JSON.stringify($i??{})!==JSON.stringify(Wi??{})&&wi()}),onMounted(()=>{wi()});const Ci=($i,Wi)=>{sn.value[Wi].year=$i,tn("update-month-year",{instance:Wi,year:$i,month:sn.value[Wi].month}),hn.value.count&&!hn.value.solo&&fi(Wi)},ji=computed(()=>$i=>xn(bi.value,Wi=>{const hi=rn.value($i)===Wi.value,Si=ni(Wi.value,Mn(gn.value.minDate),Mn(gn.value.maxDate))||yn.value.years?.includes(rn.value($i)),Ni=Tn(fn.value,Wi.value);return{active:hi,disabled:Si,highlighted:Ni}})),Yi=($i,Wi)=>{Ci($i,Wi),Fi(Wi)},Pi=($i,Wi=!1)=>
84{if(!_i.value($i,Wi)){const hi=Wi?rn.value($i)+1:rn.value($i)-1;Ci(hi,$i)}},Fi=($i,Wi=!1,hi)=>{Wi||en("reset-flow"),hi===void 0?mi.value[$i]=!mi.value[$i]:mi.value[$i]=hi,mi.value[$i]?tn("overlay-toggle",{open:!0,overlay:Qe.year}):tn("overlay-toggle",{open:!1,overlay:Qe.year})};return{isDisabled:_i,groupedYears:ji,showYearPicker:mi,selectYear:Ci,setStartDate:()=>{dn.startDate&&(on.value&&dn.focusStartDate||!on.value)&&Ci(getYear(He(dn.startDate)),0)},toggleYearPicker:Fi,handleYearSelect:Yi,handleYear:Pi}},sa=()=>{const{isDateAfter:en,isDateBefore:He,isDateEqual:tn}=ze(),{getDate:nn,rootEmit:an,rootProps:rn,modelValue:on,defaults:{range:sn}}=Se();return{getRangeWithFixedDate:dn=>Array.isArray(on.value)&&(on.value.length===2||on.value.length===1&&sn.value.partialRange)?sn.value.fixedStart&&(en(dn,on.value[0])||tn(dn,on.value[0]))?[on.value[0],dn]:sn.value.fixedEnd&&(He(dn,on.value[1])||tn(dn,on.value[1]))?[dn,on.value[1]]:(an("invalid-fixed-range",dn),on.value):[],setPresetDate:dn=>{Array.isArray(dn.value)&&dn.value.length<=2&&sn.value.enabled?on.value=dn.value.map(hn=>nn(hn)):Array.isArray(dn.value)||(on.value=nn(dn.value))},checkRangeAutoApply:(dn,hn,mn)=>{sn&&(dn[0]&&dn[1]&&rn.autoApply&&hn("auto-apply",mn),dn[0]&&!dn[1]&&(rn.modelAuto||sn.value.partialRange)&&rn.autoApply&&hn("auto-apply",mn))},setMonthOrYearRange:dn=>{let hn=on.value?on.value.slice():[];return hn.length===2&&hn[1]!==null&&(hn=[]),hn.length?(He(dn,hn[0])?hn.unshift(dn):hn[1]=dn,an("range-end",dn)):(hn=[dn],an("range-start",dn)),hn},handleMultiDatesSelect:(dn,hn)=>{if(on.value&&Array.isArray(on.value))if(on.value.some(mn=>tn(dn,mn))){const mn=on.value.filter(gn=>!tn(gn,dn));on.value=mn.length?mn:null}else(hn&&+hn>on.value.length||!hn)&&on.value.push(dn);else on.value=[dn]}}},Zr=(en,He)=>{const{getDate:tn,rootEmit:nn,state:an,calendars:rn,year:on,modelValue:sn,rootProps:dn,defaults:{range:hn,highlight:mn,safeDates:gn,filters:yn,multiDates:fn}}=Se();zt(()=>{an.isTextInputDate&&Yi(getYear(tn(dn.startDate)),0)});const{checkMinMaxRange:bn,checkMinMaxValue:Mn}=nt(),{isDateBetween:Tn,resetDateTime:xn,resetDate:En,getMinMonth:Rn,getMaxMonth:ni,checkHighlightMonth:mi,groupListAndMap:bi}=ze(),{checkRangeAutoApply:_i,getRangeWithFixedDate:oi,handleMultiDatesSelect:si,setMonthOrYearRange:fi,setPresetDate:ei}=sa(),{padZero:ci}=Fe(),{getMonths:di,isOutOfYearRange:wi}=ra(),Ci=computed(()=>di()),ji=ref(null),{selectYear:Yi,groupedYears:Pi,showYearPicker:Fi,toggleYearPicker:$i,handleYearSelect:Wi,handleYear:hi,isDisabled:Si,setStartDate:Ni}=Qa(He);onMounted(()=>{Ni()});const yi=ca=>ca?{month:getMonth(ca),year:getYear(ca)}:{month:null,year:null},Hi=()=>sn.value?Array.isArray(sn.value)?sn.value.map(ca=>yi(ca)):yi(sn.value):yi(),Ui=(ca,Bi)=>{const Na=rn.value[ca],pa=Hi();return Array.isArray(pa)?pa.some(Ea=>Ea.year===Na?.year&&Ea.month===Bi):Na?.year===pa.year&&Bi===pa.month},Ji=(ca,Bi,Na)=>{const pa=Hi();return Array.isArray(pa)?on.value(Bi)===pa[Na]?.year&&ca===pa[Na]?.month:!1},Oi=(ca,Bi)=>{if(hn.value.enabled){const Na=Hi();if(Array.isArray(sn.value)&&Array.isArray(Na)){const pa=Ji(ca,Bi,0)||Ji(ca,Bi,1),Ea=set(En(tn()),{month:ca,year:on.value(Bi)});return Tn(sn.value,ji.value,Ea)&&!pa}return!1}return!1},Ei=computed(()=>ca=>bi(Ci.value,Bi=>{const Na=Ui(ca,Bi.value),pa=Mn(Bi.value,Rn(on.value(ca),gn.value.minDate),ni(on.value(ca),gn.value.maxDate))||ha(gn.value.disabledDates,on.value(ca),Bi.value)||yn.value.months?.includes(Bi.value)||!qi(gn.value.allowedDates,on.value(ca),Bi.value)||wi(on.value(ca)),Ea=Oi(Bi.value,ca),ns=mi(mn.value,Bi.value,on.value(ca));return{active:Na,disabled:pa,isBetween:Ea,highlighted:ns}})),ea=(ca,Bi)=>set(En(tn()),{month:ca,year:on.value(Bi)}),vi=(ca,Bi)=>{const Na=sn.value?sn.value:En(tn());sn.value=set(Na,{month:ca,year:on.value(Bi)}),He("auto-apply"),He("update-flow-step")},ti=(ca,Bi)=>{const Na=ea(ca,Bi);hn.value.fixedEnd||hn.value.fixedStart?sn.value=oi(Na):sn.value?bn(Na,sn.value)&&(sn.value=fi(ea(ca,Bi))):sn.value=[ea(ca,Bi)],nextTick().then(()=>{_i(sn.value,He,sn.value.length<2)})},ui=(ca,Bi)=>{si(ea(ca,Bi),fn.value.limit),He("auto-apply",!0)},Cn=(ca,Bi)=>(rn.value[Bi].month=ca,Zi(Bi,rn.value[Bi].year,ca),fn.value.enabled?ui(ca,Bi):hn.value.enabled?ti(ca,Bi):vi(ca,Bi)),ki=(ca,Bi)=>{Yi(ca,Bi),Zi(Bi,ca,null)}
84,Zi=(ca,Bi,Na)=>{let pa=Na;if(!pa&&pa!==0){const Ea=Hi();pa=Array.isArray(Ea)?Ea[ca].month:Ea.month}nn("update-month-year",{instance:ca,year:Bi,month:pa})},ta=(ca,Bi)=>{ji.value=ea(ca,Bi)},Ri=ca=>{ei({value:ca}),He("auto-apply")},ha=(ca,Bi,Na)=>{if(ca instanceof Map){const pa=`${ci(Na+1)}-${Bi}`;return ca.size?ca.has(pa):!1}return typeof ca=="function"?ca(xn(set(tn(),{month:Na,year:Bi}),!0)):!1},qi=(ca,Bi,Na)=>{if(ca instanceof Map){const pa=`${ci(Na+1)}-${Bi}`;return ca.size?ca.has(pa):!0}return!0};return{groupedMonths:Ei,groupedYears:Pi,year:on,isDisabled:Si,showYearPicker:Fi,modelValue:sn,toggleYearPicker:$i,handleYearSelect:Wi,handleYear:hi,presetDate:Ri,setHoverDate:ta,selectMonth:Cn,selectYear:ki,getModelMonthYear:Hi}},el=defineComponent({__name:"MonthPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply","update-flow-step","mount"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,rn=useSlots(),{mapSlots:on}=bt(),{rootProps:sn,defaults:{config:dn}}=Se(),hn=on(rn,"yearMode");onMounted(()=>{nn("mount")});const{groupedMonths:mn,groupedYears:gn,year:yn,isDisabled:fn,showYearPicker:bn,modelValue:Mn,presetDate:Tn,setHoverDate:xn,selectMonth:En,selectYear:Rn,toggleYearPicker:ni,handleYearSelect:mi,handleYear:bi,getModelMonthYear:_i}=Zr(an,nn);return He({getSidebarProps:()=>({modelValue:Mn,year:yn,getModelMonthYear:_i,selectMonth:En,selectYear:Rn,handleYear:bi}),presetDate:Tn,toggleYearPicker:oi=>ni(0,oi)}),(oi,si)=>(openBlock(),createBlock(oa,{collapse:en.collapse,stretch:""},{default:withCtx(({instances:fi,wrapClass:ei})=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(fi,ci=>(openBlock(),createElementBlock("div",{key:ci,class:normalizeClass(ei)},[oi.$slots["top-extra"]?renderSlot(oi.$slots,"top-extra",{key:0,value:unref(Mn)}):createCommentVNode("",!0),oi.$slots["month-year"]?renderSlot(oi.$slots,"month-year",mergeProps({key:1,ref_for:!0},{year:unref(yn),months:unref(mn)(ci),years:unref(gn)(ci),selectMonth:unref(En),selectYear:unref(Rn),instance:ci})):(openBlock(),createBlock(Ut,{key:2,items:unref(mn)(ci),"is-last":unref(sn).autoApply&&!unref(dn).keepActionRow,height:unref(dn).modeHeight,"no-overlay-focus":!!(en.noOverlayFocus||unref(sn).textInput),"use-relative":"",type:"month",onSelected:di=>unref(En)(di,ci),onHoverValue:di=>unref(xn)(di,ci)},createSlots({header:withCtx(()=>[createVNode(qa,{items:unref(gn)(ci),instance:ci,"show-year-picker":unref(bn)[ci],year:unref(yn)(ci),"is-disabled":di=>unref(fn)(ci,di),onHandleYear:di=>unref(bi)(ci,di),onYearSelect:di=>unref(mi)(di,ci),onToggleYearPicker:di=>unref(ni)(ci,di?.flow,di?.show)},createSlots({_:2},[renderList(unref(hn),(di,wi)=>({name:di,fn:withCtx(Ci=>[renderSlot(oi.$slots,di,mergeProps({ref_for:!0},Ci))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[oi.$slots["month-overlay-value"]?{name:"item",fn:withCtx(({item:di})=>[renderSlot(oi.$slots,"month-overlay-value",{text:di.text,value:di.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","onSelected","onHoverValue"]))],2))),128))]),_:3},8,["collapse"]))}}),tl=(en,He)=>{const{rootEmit:tn,getDate:nn,state:an,modelValue:rn,rootProps:on,defaults:{highlight:sn,multiDates:dn,filters:hn,range:mn,safeDates:gn}}=Se(),{getYears:yn}=ra(),{isDateBetween:fn,resetDate:bn,resetDateTime:Mn,getYearFromDate:Tn,checkHighlightYear:xn,groupListAndMap:En}=ze(),{checkRangeAutoApply:Rn,setMonthOrYearRange:ni}=sa(),{checkMinMaxValue:mi,checkMinMaxRange:bi}=nt();zt(()=>{an.isTextInputDate&&(oi.value=getYear(nn(on.startDate)))});const _i=ref(null),oi=ref();onMounted(()=>{on.startDate&&(rn.value&&on.focusStartDate||!rn.value)&&(oi.value=getYear(nn(on.startDate)))});const si=Ci=>Array.isArray(rn.value)?rn.value.some(ji=>getYear(ji)===Ci):rn.value?getYear(rn.value)===Ci:!1,fi=Ci=>mn.value.enabled&&Array.isArray(rn.value)?fn(rn.value,_i.value,wi(Ci)):!1,ei=Ci=>gn.value.allowedDates?.size?gn.value.allowedDates.has(`${Ci}`):!0,ci=Ci=>gn.value.disabledDates instanceof Map?gn.value.disabledDates.size?gn.value.disabledDates.has(`${Ci}`):!1:typeof gn.value.disabledDates=="function"?gn.value.disabledDates(setYear(Mn(startOfYear(nn())),Ci)):!0,di=computed(()=>En(yn(),Ci=>{const ji=si(Ci.value),Yi=mi(Ci.value,Tn(gn.value.minDate),Tn(gn.value.maxDate))||hn.value.years.includes(Ci.value)||!ei(Ci.value)||ci(Ci.value),Pi=fi(Ci.value)&&!ji,Fi=xn(sn.value,Ci.value);return{active:ji,disabled:Yi,isBetween:Pi,highlighted:Fi}})),wi=Ci=>setYear(bn(startOfYear(nn())),Ci);return{groupedYears:di,focusYear:oi,setHoverValue:Ci=>{_i.value=setYear(bn(nn()),Ci)},selectYear:Ci=>
84{if(tn("update-month-year",{instance:0,year:Ci,month:Number.NaN}),dn.value.enabled)return rn.value?Array.isArray(rn.value)&&((rn.value?.map(ji=>getYear(ji))).includes(Ci)?rn.value=rn.value.filter(ji=>getYear(ji)!==Ci):rn.value.push(setYear(Mn(nn()),Ci))):rn.value=[setYear(Mn(startOfYear(nn())),Ci)],He("auto-apply",!0);mn.value.enabled?bi(wi(Ci),rn.value)&&(rn.value=ni(wi(Ci)),nextTick().then(()=>{Rn(rn.value,He,rn.value.length<2)})):(rn.value=wi(Ci),He("auto-apply"))}}},al=defineComponent({__name:"YearPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{modelValue:rn,defaults:{config:on},rootProps:sn}=Se(),{groupedYears:dn,focusYear:hn,selectYear:mn,setHoverValue:gn}=tl(an,nn);return He({getSidebarProps:()=>({modelValue:rn,selectYear:mn})}),(yn,fn)=>(openBlock(),createElementBlock("div",null,[yn.$slots["top-extra"]?renderSlot(yn.$slots,"top-extra",{key:0,value:unref(rn)}):createCommentVNode("",!0),yn.$slots["month-year"]?renderSlot(yn.$slots,"month-year",normalizeProps(mergeProps({key:1},{years:unref(dn),selectYear:unref(mn)}))):(openBlock(),createBlock(Ut,{key:2,items:unref(dn),"is-last":unref(sn).autoApply&&!unref(on).keepActionRow,height:unref(on).modeHeight,"no-overlay-focus":!!(en.noOverlayFocus||unref(sn).textInput),"focus-value":unref(hn),type:"year","use-relative":"",onSelected:unref(mn),onHoverValue:unref(gn)},createSlots({_:2},[yn.$slots["year-overlay-value"]?{name:"item",fn:withCtx(({item:bn})=>[renderSlot(yn.$slots,"year-overlay-value",{text:bn.text,value:bn.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),nl={key:0,class:"dp__time_input"},rl=["data-compact","data-collapsed"],ll=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],ol=["aria-label","disabled","data-test-id","onKeydown","onClick"],sl=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],ul={key:0},il=["aria-label","data-compact"],cl=defineComponent({__name:"TimeInput",props:{hours:{},minutes:{},seconds:{},order:{},closeTimePickerBtn:{},disabledTimesConfig:{},validateTime:{}},emits:["update:hours","update:minutes","update:seconds","overlay-opened","overlay-closed","set-hours","set-minutes","reset-flow","mounted"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{setTimePickerElements:rn,setTimePickerBackRef:on}=yt(),{getDate:sn,rootEmit:dn,rootProps:hn,defaults:{ariaLabels:mn,filters:gn,config:yn,range:fn,multiCalendars:bn,timeConfig:Mn}}=Se(),{checkKeyDown:Tn,hoursToAmPmHours:xn}=Fe(),{boolHtmlAttribute:En}=Ot(),{sanitizeTime:Rn,groupListAndMap:ni}=ze(),{transitionName:mi,showTransition:bi}=jt(),_i=reactive({hours:!1,minutes:!1,seconds:!1}),oi=ref("AM"),si=ref(null),fi=ref([]),ei=ref(),ci=ref(!1);onMounted(()=>{nn("mounted")});const di=Bi=>set(sn(),{hours:Bi.hours,minutes:Bi.minutes,seconds:Mn.value.enableSeconds?Bi.seconds:0,milliseconds:0}),wi=computed(()=>Bi=>Ui(Bi,an[Bi])||ji(Bi,an[Bi])),Ci=computed(()=>({hours:an.hours,minutes:an.minutes,seconds:an.seconds})),ji=(Bi,Na)=>fn.value.enabled&&!fn.value.disableTimeRangeValidation?!an.validateTime(Bi,Na):!1,Yi=(Bi,Na)=>{if(fn.value.enabled&&!fn.value.disableTimeRangeValidation){const pa=Na?+Mn.value[`${Bi}Increment`]:-+Mn.value[`${Bi}Increment`],Ea=an[Bi]+pa;return!an.validateTime(Bi,Ea)}return!1},Pi=computed(()=>Bi=>!vi(+an[Bi]+ +Mn.value[`${Bi}Increment`],Bi)||Yi(Bi,!0)),Fi=computed(()=>Bi=>!vi(+an[Bi]-+Mn.value[`${Bi}Increment`],Bi)||Yi(Bi,!1)),$i=(Bi,Na)=>add(set(sn(),Bi),Na),Wi=(Bi,Na)=>sub(set(sn(),Bi),Na),hi=computed(()=>({dp__time_col:!0,dp__time_col_block:!Mn.value.timePickerInline,dp__time_col_reg_block:!Mn.value.enableSeconds&&Mn.value.is24&&!Mn.value.timePickerInline,dp__time_col_reg_inline:!Mn.value.enableSeconds&&Mn.value.is24&&Mn.value.timePickerInline,dp__time_col_reg_with_button:!Mn.value.enableSeconds&&!Mn.value.is24,dp__time_col_sec:Mn.value.enableSeconds&&Mn.value.is24,dp__time_col_sec_with_button:Mn.value.enableSeconds&&!Mn.value.is24})),Si=computed(()=>Mn.value.timePickerInline&&fn.value.enabled&&!bn.value.count),Ni=computed(()=>{const Bi=[{type:"hours"}];return Mn.value.enableMinutes&&Bi.push({type:"",separator:!0},{type:"minutes"}),Mn.value.enableSeconds&&Bi.push({type:"",separator:!0},{type:"seconds"}),Bi}
84),yi=computed(()=>Ni.value.filter(Bi=>!Bi.separator)),Hi=computed(()=>Bi=>{if(Bi==="hours"){const Na=ta(+an.hours);return{text:Na<10?`0${Na}`:`${Na}`,value:Na}}return{text:an[Bi]<10?`0${an[Bi]}`:`${an[Bi]}`,value:an[Bi]}}),Ui=(Bi,Na)=>{if(!an.disabledTimesConfig)return!1;const pa=an.disabledTimesConfig(an.order,Bi==="hours"?Na:void 0);return pa[Bi]?!!pa[Bi]?.includes(Na):!0},Ji=(Bi,Na)=>Na!=="hours"||oi.value==="AM"?Bi:Bi+12,Oi=Bi=>{const Na=Mn.value.is24?24:12,pa=Bi==="hours"?Na:60,Ea=+Mn.value[`${Bi}GridIncrement`],ns=Bi==="hours"&&!Mn.value.is24?Ea:0,vs=[];for(let rs=ns;rs<pa;rs+=Ea)vs.push({value:Mn.value.is24?rs:Ji(rs,Bi),text:rs<10?`0${rs}`:`${rs}`});return Bi==="hours"&&!Mn.value.is24&&vs.unshift({value:oi.value==="PM"?12:0,text:"12"}),ni(vs,rs=>({active:!1,disabled:gn.value.times[Bi].includes(rs.value)||!vi(rs.value,Bi)||Ui(Bi,rs.value)||ji(Bi,rs.value)}))},Ei=Bi=>Bi>=0?Bi:59,ea=Bi=>Bi>=0?Bi:23,vi=(Bi,Na)=>{const pa=hn.minTime?di(Rn(hn.minTime)):null,Ea=hn.maxTime?di(Rn(hn.maxTime)):null,ns=di(Rn(Ci.value,Na,Na==="minutes"||Na==="seconds"?Ei(Bi):ea(Bi)));return pa&&Ea?(isBefore(ns,Ea)||isEqual(ns,Ea))&&(isAfter(ns,pa)||isEqual(ns,pa)):pa?isAfter(ns,pa)||isEqual(ns,pa):Ea?isBefore(ns,Ea)||isEqual(ns,Ea):!0},ti=Bi=>Mn.value[`no${Bi[0].toUpperCase()+Bi.slice(1)}Overlay`],ui=Bi=>{ti(Bi)||(_i[Bi]=!_i[Bi],_i[Bi]?(ci.value=!0,nn("overlay-opened",Bi)):(ci.value=!1,nn("overlay-closed",Bi)))},Cn=Bi=>Bi==="hours"?getHours:Bi==="minutes"?getMinutes:getSeconds,ki=()=>{ei.value&&clearTimeout(ei.value)},Zi=(Bi,Na=!0,pa)=>{const Ea=Na?$i:Wi,ns=Na?+Mn.value[`${Bi}Increment`]:-+Mn.value[`${Bi}Increment`];vi(+an[Bi]+ns,Bi)&&nn(`update:${Bi}`,Cn(Bi)(Ea({[Bi]:+an[Bi]},{[Bi]:+Mn.value[`${Bi}Increment`]}))),!pa?.keyboard&&yn.value.timeArrowHoldThreshold&&(ei.value=setTimeout(()=>{Zi(Bi,Na)},yn.value.timeArrowHoldThreshold))},ta=Bi=>Mn.value.is24?Bi:(Bi>=12?oi.value="PM":oi.value="AM",xn(Bi)),Ri=()=>{oi.value==="PM"?(oi.value="AM",nn("update:hours",an.hours-12)):(oi.value="PM",nn("update:hours",an.hours+12)),dn("am-pm-change",oi.value)},ha=Bi=>{_i[Bi]=!0},qi=(Bi,Na,pa)=>{if(Bi&&hn.arrowNavigation){Array.isArray(fi.value[Na])?fi.value[Na][pa]=Bi:fi.value[Na]=[Bi];const Ea=fi.value.reduce((ns,vs)=>vs.map((rs,Xa)=>[...ns[Xa]||[],vs[Xa]]),[]);on(an.closeTimePickerBtn),si.value&&(Ea[1]=Ea[1].concat(si.value)),rn(Ea,an.order)}},ca=(Bi,Na)=>(ui(Bi),nn(`update:${Bi}`,Na));return He({openChildCmp:ha}),(Bi,Na)=>unref(hn).disabled?createCommentVNode("",!0):(openBlock(),createElementBlock("div",nl,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ni.value,(pa,Ea)=>(openBlock(),createElementBlock("div",{key:Ea,class:normalizeClass(hi.value),"data-compact":Si.value&&!unref(Mn).enableSeconds,"data-collapsed":Si.value&&unref(Mn).enableSeconds},[pa.separator?(openBlock(),createElementBlock(Fragment,{key:0},[ci.value?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(":")],64))],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("button",{ref_for:!0,ref:ns=>qi(ns,Ea,0),type:"button",class:normalizeClass({dp__btn:!0,dp__inc_dec_button:!unref(Mn).timePickerInline,dp__inc_dec_button_inline:unref(Mn).timePickerInline,dp__tp_inline_btn_top:unref(Mn).timePickerInline,dp__inc_dec_button_disabled:Pi.value(pa.type),"dp--hidden-el":ci.value}),"data-test-id":`${pa.type}-time-inc-btn-${an.order}`,"aria-label":unref(mn)?.incrementValue(pa.type),tabindex:"0",onKeydown:ns=>unref(Tn)(ns,()=>Zi(pa.type,!0,{keyboard:!0}),!0),onClick:ns=>unref(yn).timeArrowHoldThreshold?void 0:Zi(pa.type,!0),onMousedown:ns=>unref(yn).timeArrowHoldThreshold?Zi(pa.type,!0):void 0,onMouseup:ki},[unref(Mn).timePickerInline?(openBlock(),createElementBlock(Fragment,{key:1},[Bi.$slots["tp-inline-arrow-up"]?renderSlot(Bi.$slots,"tp-inline-arrow-up",{key:0}):(openBlock(),createElementBlock(Fragment,{key:1},[Na[2]||(Na[2]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),Na[3]||(Na[3]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(openBlock(),createElementBlock(Fragment,{key:0}
84,[Bi.$slots["arrow-up"]?renderSlot(Bi.$slots,"arrow-up",{key:0}):createCommentVNode("",!0),Bi.$slots["arrow-up"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(ja),{key:1}))],64))],42,ll),createBaseVNode("button",{ref_for:!0,ref:ns=>qi(ns,Ea,1),type:"button","aria-label":`${Hi.value(pa.type).text}-${unref(mn)?.openTpOverlay(pa.type)}`,class:normalizeClass({dp__time_display:!0,dp__time_display_block:!unref(Mn).timePickerInline,dp__time_display_inline:unref(Mn).timePickerInline,"dp--time-invalid":wi.value(pa.type),"dp--time-overlay-btn":!wi.value(pa.type),"dp--hidden-el":ci.value}),disabled:unref(En)(ti(pa.type)),tabindex:"0","data-test-id":`${pa.type}-toggle-overlay-btn-${an.order}`,onKeydown:ns=>unref(Tn)(ns,()=>ui(pa.type),!0),onClick:ns=>ui(pa.type)},[Bi.$slots[pa.type]?renderSlot(Bi.$slots,pa.type,{key:0,text:Hi.value(pa.type).text,value:Hi.value(pa.type).value}):createCommentVNode("",!0),Bi.$slots[pa.type]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Hi.value(pa.type).text),1)],64))],42,ol),createBaseVNode("button",{ref_for:!0,ref:ns=>qi(ns,Ea,2),type:"button",class:normalizeClass({dp__btn:!0,dp__inc_dec_button:!unref(Mn).timePickerInline,dp__inc_dec_button_inline:unref(Mn).timePickerInline,dp__tp_inline_btn_bottom:unref(Mn).timePickerInline,dp__inc_dec_button_disabled:Fi.value(pa.type),"dp--hidden-el":ci.value}),"data-test-id":`${pa.type}-time-dec-btn-${an.order}`,"aria-label":unref(mn)?.decrementValue(pa.type),tabindex:"0",onKeydown:ns=>unref(Tn)(ns,()=>Zi(pa.type,!1,{keyboard:!0}),!0),onClick:ns=>unref(yn).timeArrowHoldThreshold?void 0:Zi(pa.type,!1),onMousedown:ns=>unref(yn).timeArrowHoldThreshold?Zi(pa.type,!1):void 0,onMouseup:ki},[unref(Mn).timePickerInline?(openBlock(),createElementBlock(Fragment,{key:1},[Bi.$slots["tp-inline-arrow-down"]?renderSlot(Bi.$slots,"tp-inline-arrow-down",{key:0}):(openBlock(),createElementBlock(Fragment,{key:1},[Na[4]||(Na[4]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),Na[5]||(Na[5]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(openBlock(),createElementBlock(Fragment,{key:0},[Bi.$slots["arrow-down"]?renderSlot(Bi.$slots,"arrow-down",{key:0}):createCommentVNode("",!0),Bi.$slots["arrow-down"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(za),{key:1}))],64))],42,sl)],64))],10,rl))),128)),unref(Mn).is24?createCommentVNode("",!0):(openBlock(),createElementBlock("div",ul,[Bi.$slots["am-pm-button"]?renderSlot(Bi.$slots,"am-pm-button",{key:0,toggle:Ri,value:oi.value}):createCommentVNode("",!0),Bi.$slots["am-pm-button"]?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,ref_key:"amPmButton",ref:si,type:"button",class:"dp__pm_am_button",role:"button","aria-label":unref(mn)?.amPmButton,tabindex:"0","data-compact":Si.value,onClick:Ri,onKeydown:Na[0]||(Na[0]=pa=>unref(Tn)(pa,()=>Ri(),!0))},toDisplayString(oi.value),41,il))])),(openBlock(!0),createElementBlock(Fragment,null,renderList(yi.value,(pa,Ea)=>(openBlock(),createBlock(Transition,{key:Ea,name:unref(mi)(_i[pa.type]),css:unref(bi)},{default:withCtx(()=>[_i[pa.type]?(openBlock(),createBlock(Ut,{key:0,items:Oi(pa.type),"is-last":unref(hn).autoApply&&!unref(yn).keepActionRow,type:pa.type,"aria-labels":unref(mn),"overlay-label":unref(mn).timeOverlay?.(pa.type),onSelected:ns=>ca(pa.type,ns),onToggle:ns=>ui(pa.type),onResetFlow:Na[1]||(Na[1]=ns=>Bi.$emit("reset-flow"))},createSlots({"button-icon":withCtx(()=>[Bi.$slots["clock-icon"]?renderSlot(Bi.$slots,"clock-icon",{key:0}):createCommentVNode("",!0),Bi.$slots["clock-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(unref(Mn).timePickerInline?unref(Kt):unref(Ka)),{key:1}))]),_:2},[Bi.$slots[`${pa.type}-overlay-value`]?{name:"item",fn:withCtx(({item:ns})=>[renderSlot(Bi.$slots,`${pa.type}-overlay-value`,{text:ns.text,value:ns.value})]),key:"0"}:void 0,Bi.$slots[`${pa.type}-overlay-header`]?{name:"header",fn:withCtx(()=>[renderSlot(Bi.$slots,`${pa.type}-overlay-header`,{toggle:()=>ui(pa.type)})]),key:"1"}:void 0]),1032,["items","is-last","type","aria-labels","overlay-label","onSelected","onToggle"])):createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}),dl=["data-dp-mobile"],vl=["aria-label","tabindex"],fl=["role","aria-label","tabindex"],ml=["aria-label"],Ga=defineComponent({__name:"TimePicker",props:{hours:{},minutes:{},seconds:{},disabledTimesConfig:{type:[Function,null]},noOverlayFocus:{type:Boolean},validateTime:{type:Function}},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{rootEmit:rn,modelValue:on,rootProps:sn,defaults:{ariaLabels:dn,textInput:hn,config:mn,range:gn,timeConfig:yn}}=Se(),{isModelAuto:fn}=ze(),{checkKeyDown:bn,findFocusableEl:Mn}=Fe(),{buildMatrix:Tn,setTimePicker:xn}=yt(),{transitionName:En,showTransition:Rn}=jt(),{hideNavigationButtons:ni}=la(),{mapSlots:mi}=bt(),{isMobile:bi}=na(),_i=useSlots(),oi=useTemplateRef("overlay"),si=useTemplateRef("open-tp-btn"),fi=useTemplateRef("close-tp-btn"),ei=useTemplateRef("tp-input"),ci=ref(!1);onMounted(()=>{nn("mount"),!sn.timePicker&&sn.arrowNavigation?Tn([unrefElement(si.value)],"time"):xn(!0,sn.timePicker)});const di=computed(()=>gn.value.enabled&&sn.modelAuto?fn(on.value):!0),wi=ref(!1),Ci=Ui=>({hours:Array.isArray(an.hours)?an.hours[Ui]:an.hours,minutes:Array.isArray(an.minutes)?an.minutes[Ui]:an.minutes,seconds:Array.isArray(an.seconds)?an.seconds[Ui]:an.seconds}),ji=computed(()=>{const Ui=[];if(gn.value.enabled)for(let Ji=0;Ji<2;Ji++)Ui.push(Ci(Ji));else Ui.push(Ci(0));return Ui}),Yi=(Ui,Ji=!1,Oi="")=>{Ji||nn("reset-flow"),wi.value=Ui,rn("overlay-toggle",{open:Ui,overlay:Qe.time}),sn.arrowNavigation&&xn(Ui),nextTick(()=>{Oi!==""&&ei.value?.[0]&&ei.value[0].openChildCmp(Oi)})},Pi=computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:sn.autoApply&&!mn.value.keepActionRow})),Fi=mi(_i,"timePicker"),$i=(Ui,Ji,Oi)=>gn.value.enabled?Ji===0?[Ui,ji.value[1][Oi]]:[ji.value[0][Oi],Ui]:Ui,Wi=Ui=>{nn("update:hours",Ui)},hi=Ui=>
84{nn("update:minutes",Ui)},Si=Ui=>{nn("update:seconds",Ui)},Ni=()=>{if(oi.value&&!hn.value.enabled&&!an.noOverlayFocus){const Ui=Mn(oi.value);Ui&&Ui.focus({preventScroll:!0})}},yi=Ui=>{ci.value=!1,rn("overlay-toggle",{open:!1,overlay:Ui})},Hi=Ui=>{ci.value=!0,rn("overlay-toggle",{open:!0,overlay:Ui})};return He({toggleTimePicker:Yi}),(Ui,Ji)=>(openBlock(),createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":unref(bi)},[!unref(sn).timePicker&&!unref(yn).timePickerInline?withDirectives((openBlock(),createElementBlock("button",{key:0,ref:"open-tp-btn",type:"button",class:normalizeClass({...Pi.value,"dp--hidden-el":wi.value}),"aria-label":unref(dn)?.openTimePicker,tabindex:en.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:Ji[0]||(Ji[0]=Oi=>unref(bn)(Oi,()=>Yi(!0))),onClick:Ji[1]||(Ji[1]=Oi=>Yi(!0))},[Ui.$slots["clock-icon"]?renderSlot(Ui.$slots,"clock-icon",{key:0}):createCommentVNode("",!0),Ui.$slots["clock-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ka),{key:1}))],42,vl)),[[vShow,!unref(ni)("time")]]):createCommentVNode("",!0),createVNode(Transition,{name:unref(En)(wi.value),css:unref(Rn)&&!unref(yn).timePickerInline},{default:withCtx(()=>[wi.value||unref(sn).timePicker||unref(yn).timePickerInline?(openBlock(),createElementBlock("div",{key:0,ref:"overlay",role:unref(yn).timePickerInline?void 0:"dialog",class:normalizeClass({dp__overlay:!unref(yn).timePickerInline,"dp--overlay-absolute":!unref(sn).timePicker&&!unref(yn).timePickerInline,"dp--overlay-relative":unref(sn).timePicker}),style:normalizeStyle(unref(sn).timePicker?{height:`${unref(mn).modeHeight}px`}:void 0),"aria-label":unref(dn)?.timePicker,tabindex:unref(yn).timePickerInline?void 0:0},[createBaseVNode("div",{class:normalizeClass(unref(yn).timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[Ui.$slots["time-picker-overlay"]?renderSlot(Ui.$slots,"time-picker-overlay",{key:0,hours:en.hours,minutes:en.minutes,seconds:en.seconds,setHours:Wi,setMinutes:hi,setSeconds:Si}):createCommentVNode("",!0),Ui.$slots["time-picker-overlay"]?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(yn).timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ji.value,(Oi,Ei)=>withDirectives((openBlock(),createBlock(cl,mergeProps({key:Ei},{ref_for:!0},{order:Ei,hours:Oi.hours,minutes:Oi.minutes,seconds:Oi.seconds,closeTimePickerBtn:fi.value,disabledTimesConfig:en.disabledTimesConfig,disabled:Ei===0?unref(gn).fixedStart:unref(gn).fixedEnd},{ref_for:!0,ref:"tp-input","validate-time":(ea,vi)=>en.validateTime(ea,$i(vi,Ei,ea)),"onUpdate:hours":ea=>Wi($i(ea,Ei,"hours")),"onUpdate:minutes":ea=>hi($i(ea,Ei,"minutes")),"onUpdate:seconds":ea=>Si($i(ea,Ei,"seconds")),onMounted:Ni,onOverlayClosed:yi,onOverlayOpened:Hi}),createSlots({_:2},[renderList(unref(Fi),(ea,vi)=>({name:ea,fn:withCtx(ti=>[renderSlot(Ui.$slots,ea,mergeProps({ref_for:!0},ti))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[vShow,Ei===0?!0:di.value]])),128))],2)),!unref(sn).timePicker&&!unref(yn).timePickerInline?withDirectives((openBlock(),createElementBlock("button",{key:2,ref:"close-tp-btn",type:"button",class:normalizeClass({...Pi.value,"dp--hidden-el":ci.value}),"aria-label":unref(dn)?.closeTimePicker,tabindex:"0",onKeydown:Ji[2]||(Ji[2]=Oi=>unref(bn)(Oi,()=>Yi(!1))),onClick:Ji[3]||(Ji[3]=Oi=>Yi(!1))},[Ui.$slots["calendar-icon"]?renderSlot(Ui.$slots,"calendar-icon",{key:0}):createCommentVNode("",!0),Ui.$slots["calendar-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Kt),{key:1}))],42,ml)),[[vShow,!unref(ni)("time")]]):createCommentVNode("",!0)],2)],14,fl)):createCommentVNode("",!0)]),_:3},8,["name","css"])],8,dl))}}),Ja=en=>{const{getDate:He,modelValue:tn,time:nn,rootProps:an,defaults:{range:rn,timeConfig:on}}=Se(),{isDateEqual:sn,setTime:dn}=ze(),hn=(_i,oi)=>Array.isArray(nn[_i])?nn[_i][oi]:nn[_i],mn=_i=>on.value.enableSeconds?Array.isArray(nn.seconds)?nn.seconds[_i]:nn.seconds:0,gn=(_i,oi)=>_i?dn(oi!==void 0?{hours:hn("hours",oi),minutes:hn("minutes",oi),seconds:mn(oi)}:{hours:nn.hours,minutes:nn.minutes,seconds:mn()},_i):setSeconds(He(),mn(oi)),yn=(_i,oi)=>{nn[_i]=oi},fn=computed(()=>an.modelAuto&&rn.value.enabled?Array.isArray(tn.value)?tn.value.length>1:!1:rn.value.enabled),bn=(_i,oi)=>{const si=Object.fromEntries(Object.keys(nn).map(fi=>fi===_i?[fi,oi]:[fi,nn[fi]].slice()));if(fn.value&&!rn.value.disableTimeRangeValidation){const fi=ci=>tn.value?dn({hours:si.hours[ci],minutes:si.minutes[ci],seconds:si.seconds[ci]},tn.value[ci]):null,ei=ci=>setMilliseconds(tn.value[ci],0);return!(sn(fi(0),fi(1))&&(isAfter(fi(0),ei(1))||isBefore(fi(1),ei(0))))}return!0},Mn=(_i,oi)=>{bn(_i,oi)&&(yn(_i,oi),en&&en())},Tn=_i=>{Mn("hours",_i)},xn=_i=>{Mn("minutes",_i)},En=_i=>{Mn("seconds",_i)},Rn=(_i,oi)=>{Tn(_i.hours),xn(_i.minutes),En(_i.seconds),tn.value&&oi(tn.value)},ni=_i=>{if(_i){const oi=Array.isArray(_i),si=oi?[+_i[0].hours,+_i[1].hours]:+_i.hours,fi=oi?[+_i[0].minutes,+_i[1].minutes]:+_i.minutes,ei=oi?[+(_i[0].seconds??0),+(_i[1].seconds??0)]:+(_i.seconds??0);yn("hours",si),yn("minutes",fi),on.value.enableSeconds&&yn("seconds",ei)}},mi=(_i,oi)=>{const si={hours:Array.isArray(nn.hours)?nn.hours[_i]:nn.hours,disabledArr:[]};return(oi||oi===0)&&(si.hours=oi),Array.isArray(an.disabledTimes)&&(si.disabledArr=rn.value.enabled&&Array.isArray(an.disabledTimes[_i])?an.disabledTimes[_i]:an.disabledTimes),si},bi=computed(()=>(_i,oi)=>{if(Array.isArray(an.disabledTimes)){const{disabledArr:si,hours:fi}=mi(_i,oi),ei=si.filter(ci=>+ci.hours===fi);return ei[0]?.minutes==="*"?{hours:[fi],minutes:void 0,seconds:void 0}:{hours:[],minutes:ei?.map(ci=>+ci.minutes)??[],seconds:ei?.map(ci=>ci.seconds?+ci.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{assignTime:yn,updateHours:Tn,updateMinutes:xn,updateSeconds:En,getSetDateTime:gn,updateTimeValues:Rn,getSecondsValue:mn,assignStartTime:ni,validateTime:bn,disabledTimesConfig:bi}},pl=en=>{const{getDate:He,time:tn,modelValue:nn,state:an,defaults:{startTime:rn,range:on,timeConfig:sn}}=Se(),{getTimeObj:dn}=ze();zt(()=>{an.isTextInputDate&&mi()});const{updateTimeValues:hn,getSetDateTime:mn,assignTime:gn,assignStartTime:yn,disabledTimesConfig:fn,validateTime:bn}=Ja(Mn);function Mn(){en("update-flow-step")}const Tn=_i=>{const{hours:oi,minutes:si,seconds:fi}=_i;return{hours:+oi,minutes:+si,seconds:fi?+fi:0}},xn=()=>
84{if(sn.value.startTime){if(Array.isArray(sn.value.startTime)){const oi=Tn(sn.value.startTime[0]),si=Tn(sn.value.startTime[1]);return[set(He(),oi),set(He(),si)]}const _i=Tn(sn.value.startTime);return set(He(),_i)}return on.value.enabled?[null,null]:null},En=()=>{if(on.value.enabled){const[_i,oi]=xn();nn.value=[mn(_i,0),mn(oi,1)]}else nn.value=mn(xn())},Rn=_i=>Array.isArray(_i)?[dn(He(_i[0])),dn(He(_i[1]))]:[dn(_i??He())],ni=(_i,oi,si)=>{gn("hours",_i),gn("minutes",oi),gn("seconds",sn.value.enableSeconds?si:0)},mi=()=>{const[_i,oi]=Rn(nn.value);return on.value.enabled?ni([_i.hours,oi.hours],[_i.minutes,oi.minutes],[_i.seconds,oi.seconds]):ni(_i.hours,_i.minutes,_i.seconds)};onMounted(()=>(yn(rn.value),nn.value?mi():En()));const bi=()=>{Array.isArray(nn.value)?nn.value=nn.value.map((_i,oi)=>_i&&mn(_i,oi)):nn.value=mn(nn.value),en("time-update")};return{modelValue:nn,time:tn,disabledTimesConfig:fn,validateTime:bn,updateTime:_i=>{hn(_i,bi)}}},hl=defineComponent({__name:"TimePickerSolo",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["time-update","mount","reset-flow","update-flow-step"],setup(en,{expose:He,emit:tn}){const nn=tn,an=useSlots(),{mapSlots:rn}=bt(),on=rn(an,"timePicker"),sn=useTemplateRef("time-input"),{time:dn,modelValue:hn,disabledTimesConfig:mn,updateTime:gn,validateTime:yn}=pl(nn);return onMounted(()=>{nn("mount")}),He({getSidebarProps:()=>({modelValue:hn,time:dn,updateTime:gn}),toggleTimePicker:(fn,bn=!1,Mn="")=>{sn.value?.toggleTimePicker(fn,bn,Mn)}}),(fn,bn)=>(openBlock(),createBlock(oa,{"multi-calendars":0,stretch:""},{default:withCtx(({wrapClass:Mn})=>[createBaseVNode("div",{class:normalizeClass(Mn)},[createVNode(Ga,mergeProps({ref:"time-input"},fn.$props,{hours:unref(dn).hours,minutes:unref(dn).minutes,seconds:unref(dn).seconds,"disabled-times-config":unref(mn),"validate-time":unref(yn),"onUpdate:hours":bn[0]||(bn[0]=Tn=>unref(gn)({hours:Tn,minutes:unref(dn).minutes,seconds:unref(dn).seconds})),"onUpdate:minutes":bn[1]||(bn[1]=Tn=>unref(gn)({hours:unref(dn).hours,minutes:Tn,seconds:unref(dn).seconds})),"onUpdate:seconds":bn[2]||(bn[2]=Tn=>unref(gn)({hours:unref(dn).hours,minutes:unref(dn).minutes,seconds:Tn})),onResetFlow:bn[3]||(bn[3]=Tn=>fn.$emit("reset-flow"))}),createSlots({_:2},[renderList(unref(on),(Tn,xn)=>({name:Tn,fn:withCtx(En=>[renderSlot(fn.$slots,Tn,normalizeProps(guardReactiveProps(En)))])}))]),1040,["hours","minutes","seconds","disabled-times-config","validate-time"])],2)]),_:3}))}}),gl=(en,He)=>{const{getDate:tn,rootProps:nn,defaults:{filters:an}}=Se(),{validateMonthYearInRange:rn,validateMonthYear:on}=nt(),sn=(yn,fn)=>{let bn=yn;return an.value.months.includes(getMonth(bn))?(bn=fn?addMonths(yn,1):subMonths(yn,1),sn(bn,fn)):bn},dn=(yn,fn)=>{let bn=yn;return an.value.years.includes(getYear(bn))?(bn=fn?addYears(yn,1):subYears(yn,1),dn(bn,fn)):bn},hn=(yn,fn=!1)=>{const bn=set(tn(),{month:en.month,year:en.year});let Mn=yn?addMonths(bn,1):subMonths(bn,1);nn.disableYearSelect&&(Mn=setYear(Mn,en.year));let Tn=getMonth(Mn),xn=getYear(Mn);an.value.months.includes(Tn)&&(Mn=sn(Mn,yn),Tn=getMonth(Mn),xn=getYear(Mn)),an.value.years.includes(xn)&&(Mn=dn(Mn,yn),xn=getYear(Mn)),rn(Tn,xn,yn,nn.preventMinMaxNavigation)&&mn(Tn,xn,fn)},mn=(yn,fn,bn)=>{He("update-month-year",{month:yn,year:fn,fromNav:bn})},gn=computed(()=>yn=>on(set(tn(),{month:en.month,year:en.year}),nn.preventMinMaxNavigation,yn));return{handleMonthYearChange:hn,isDisabled:gn,updateMonthYear:mn}},yl={class:"dp--header-wrap"},bl={key:0,class:"dp__month_year_wrap"},kl={key:0},wl={class:"dp__month_year_wrap"},Dl=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],Ml=defineComponent({__name:"DpHeader",props:{month:{},year:{},instance:{},years:{},months:{},menuWrapRef:{}},emits:["mount","reset-flow","update-month-year"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{rootEmit:rn,rootProps:on,modelValue:sn,defaults:{ariaLabels:dn,filters:hn,config:mn,highlight:gn,safeDates:yn,ui:fn}}=Se(),{transitionName:bn,showTransition:Mn}=jt(),{showLeftIcon:Tn,showRightIcon:xn}=la(),{buildMatrix:En}=yt(),{handleMonthYearChange:Rn,isDisabled:ni,updateMonthYear:mi}=gl(an,nn),{getMaxMonth:bi,getMinMonth:_i,getYearFromDate:oi,groupListAndMap:si,checkHighlightYear:fi,checkHighlightMonth:ei}=ze(),{checkKeyDown:ci}=Fe(),{formatYear:di}
84=kt(),{checkMinMaxValue:wi}=nt(),{boolHtmlAttribute:Ci}=Ot(),ji=ref(!1),Yi=ref(!1),Pi=ref(!1),Fi=ref([null,null,null,null]);onMounted(()=>{nn("mount")});const $i=ui=>({get:()=>an[ui],set:Cn=>{const ki=ui===lt.month?lt.year:lt.month;nn("update-month-year",{[ui]:Cn,[ki]:an[ki]}),ui===lt.month?Ji(!0):Oi(!0)}}),Wi=computed($i(lt.month)),hi=computed($i(lt.year)),Si=computed(()=>ui=>({month:an.month,year:an.year,items:ui===lt.month?an.months:an.years,instance:an.instance,updateMonthYear:mi,toggle:ui===lt.month?Ji:Oi})),Ni=computed(()=>an.months.find(Cn=>Cn.value===an.month)||{text:"",value:0}),yi=computed(()=>si(an.months,ui=>{const Cn=an.month===ui.value,ki=wi(ui.value,_i(an.year,yn.value.minDate),bi(an.year,yn.value.maxDate))||hn.value.months.includes(ui.value),Zi=ei(gn.value,ui.value,an.year);return{active:Cn,disabled:ki,highlighted:Zi}})),Hi=computed(()=>si(an.years,ui=>{const Cn=an.year===ui.value,ki=wi(ui.value,oi(yn.value.minDate),oi(yn.value.maxDate))||hn.value.years.includes(ui.value),Zi=fi(gn.value,ui.value);return{active:Cn,disabled:ki,highlighted:Zi}})),Ui=(ui,Cn,ki)=>{ki===void 0?ui.value=!ui.value:ui.value=ki,ui.value?(Pi.value=!0,rn("overlay-toggle",{open:!0,overlay:Cn})):(Pi.value=!1,rn("overlay-toggle",{open:!1,overlay:Cn}))},Ji=(ui=!1,Cn)=>{Ei(ui),Ui(ji,Qe.month,Cn)},Oi=(ui=!1,Cn)=>{Ei(ui),Ui(Yi,Qe.year,Cn)},Ei=ui=>{ui||nn("reset-flow")},ea=(ui,Cn)=>{on.arrowNavigation&&(Fi.value[Cn]=unrefElement(ui),En(Fi.value,"monthYear"))},vi=computed(()=>[{type:lt.month,index:1,toggle:Ji,modelValue:Wi.value,updateModelValue:ui=>Wi.value=ui,text:Ni.value.text,showSelectionGrid:ji.value,items:yi.value,ariaLabel:dn.value?.openMonthsOverlay,overlayLabel:dn.value.monthPicker?.(!0)??void 0},{type:lt.year,index:2,toggle:Oi,modelValue:hi.value,updateModelValue:ui=>hi.value=ui,text:di(an.year),showSelectionGrid:Yi.value,items:Hi.value,ariaLabel:dn.value?.openYearsOverlay,overlayLabel:dn.value.yearPicker?.(!0)??void 0}]),ti=computed(()=>on.disableYearSelect?[vi.value[0]]:on.yearFirst?[...vi.value].reverse():vi.value);return He({toggleMonthPicker:Ji,toggleYearPicker:Oi,handleMonthYearChange:Rn}),(ui,Cn)=>(openBlock(),createElementBlock("div",yl,[ui.$slots["month-year"]?(openBlock(),createElementBlock("div",bl,[renderSlot(ui.$slots,"month-year",normalizeProps(guardReactiveProps({month:en.month,year:en.year,months:en.months,years:en.years,updateMonthYear:unref(mi),handleMonthYearChange:unref(Rn),instance:en.instance,isDisabled:unref(ni)})))])):(openBlock(),createElementBlock(Fragment,{key:1},[ui.$slots["top-extra"]?(openBlock(),createElementBlock("div",kl,[renderSlot(ui.$slots,"top-extra",{value:unref(sn)})])):createCommentVNode("",!0),createBaseVNode("div",wl,[unref(Tn)(en.instance)&&!unref(on).vertical?(openBlock(),createBlock(Nt,{key:0,"aria-label":unref(dn)?.prevMonth,disabled:unref(Ci)(unref(ni)(!1)),class:normalizeClass(unref(fn)?.navBtnPrev),"el-name":"action-prev",onActivate:Cn[0]||(Cn[0]=ki=>unref(Rn)(!1,!0)),onSetRef:Cn[1]||(Cn[1]=ki=>ea(ki,0))},{default:withCtx(()=>[ui.$slots["arrow-left"]?renderSlot(ui.$slots,"arrow-left",{key:0}):createCommentVNode("",!0),ui.$slots["arrow-left"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(La),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:unref(on).disableYearSelect}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ti.value,(ki,Zi)=>(openBlock(),createElementBlock(Fragment,{key:ki.type},[createBaseVNode("button",{ref_for:!0,ref:ta=>ea(ta,Zi+1),type:"button","data-dp-element":`overlay-${ki.type}`,class:normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":Pi.value}]),"aria-label":`${ki.text}-${ki.ariaLabel}`,"data-test-id":`${ki.type}-toggle-overlay-${en.instance}`,onClick:ta=>ki.toggle(!1),onKeydown:ta=>unref(ci)(ta,()=>ki.toggle(),!0)},[ui.$slots[ki.type]?renderSlot(ui.$slots,ki.type,{key:0,text:ki.text,value:an[ki.type]}):createCommentVNode("",!0),ui.$slots[ki.type]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(ki.text),1)],64))],42,Dl),createVNode(Transition,{name:unref(bn)(ki.showSelectionGrid),css:unref(Mn)},{default:withCtx(()=>[ki.showSelectionGrid?(openBlock(),createBlock(Ut,{key:0,items:ki.items,"is-last":unref(on).autoApply&&!unref(mn).keepActionRow,"skip-button-ref":!1,type:ki.type,"header-refs":[],"menu-wrap-ref":en.menuWrapRef,"overlay-label":ki.overlayLabel,onSelected:ki.updateModelValue,onToggle:ki.toggle},createSlots({"button-icon":withCtx(()=>
84[ui.$slots["calendar-icon"]?renderSlot(ui.$slots,"calendar-icon",{key:0}):createCommentVNode("",!0),ui.$slots["calendar-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Kt),{key:1}))]),_:2},[ui.$slots[`${ki.type}-overlay-value`]?{name:"item",fn:withCtx(({item:ta})=>[renderSlot(ui.$slots,`${ki.type}-overlay-value`,{text:ta.text,value:ta.value})]),key:"0"}:void 0,ui.$slots[`${ki.type}-overlay`]?{name:"overlay",fn:withCtx(()=>[renderSlot(ui.$slots,`${ki.type}-overlay`,mergeProps({ref_for:!0},Si.value(ki.type)))]),key:"1"}:void 0,ui.$slots[`${ki.type}-overlay-header`]?{name:"header",fn:withCtx(()=>[renderSlot(ui.$slots,`${ki.type}-overlay-header`,{toggle:ki.toggle})]),key:"2"}:void 0]),1032,["items","is-last","type","menu-wrap-ref","overlay-label","onSelected","onToggle"])):createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),unref(Tn)(en.instance)&&unref(on).vertical?(openBlock(),createBlock(Nt,{key:1,"aria-label":unref(dn)?.prevMonth,"el-name":"action-prev",disabled:unref(Ci)(unref(ni)(!1)),class:normalizeClass(unref(fn)?.navBtnPrev),onActivate:Cn[2]||(Cn[2]=ki=>unref(Rn)(!1,!0))},{default:withCtx(()=>[ui.$slots["arrow-up"]?renderSlot(ui.$slots,"arrow-up",{key:0}):createCommentVNode("",!0),ui.$slots["arrow-up"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(ja),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0),unref(xn)(en.instance)?(openBlock(),createBlock(Nt,{key:2,ref:"rightIcon","el-name":"action-next",disabled:unref(Ci)(unref(ni)(!0)),"aria-label":unref(dn)?.nextMonth,class:normalizeClass(unref(fn)?.navBtnNext),onActivate:Cn[3]||(Cn[3]=ki=>unref(Rn)(!0,!0)),onSetRef:Cn[4]||(Cn[4]=ki=>ea(ki,unref(on).disableYearSelect?2:3))},{default:withCtx(()=>[ui.$slots[unref(on).vertical?"arrow-down":"arrow-right"]?renderSlot(ui.$slots,unref(on).vertical?"arrow-down":"arrow-right",{key:0}):createCommentVNode("",!0),ui.$slots[unref(on).vertical?"arrow-down":"arrow-right"]?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(unref(on).vertical?unref(za):unref(Ha)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):createCommentVNode("",!0)])],64))]))}}),_l={class:"dp__calendar_header",role:"row"},Al={key:0,class:"dp__calendar_header_item",role:"gridcell"},Pl=["aria-label"],Tl={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},$l={class:"dp__cell_inner"},Sl=["id","aria-selected","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],Rl=defineComponent({__name:"DpCalendar",props:{instance:{},mappedDates:{},month:{},year:{}},emits:["mount","select-date","set-hover-date","handle-scroll","handle-swipe"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{getDate:rn,rootEmit:on,rootProps:sn,defaults:{transitions:dn,config:hn,ariaLabels:mn,multiCalendars:gn,weekNumbers:yn,multiDates:fn,ui:bn}}=Se(),{buildMultiLevelMatrix:Mn}=yt(),{isDateAfter:Tn,isDateEqual:xn,resetDateTime:En,getCellId:Rn}=ze(),{checkKeyDown:ni,checkStopPropagation:mi,isTouchDevice:bi}=Fe(),{formatWeekDay:_i}=kt(),oi=useTemplateRef("calendar-wrap"),si=useTemplateRef("active-tooltip"),fi=ref([]),ei=ref(null),ci=ref(!0),di=ref(!1),wi=ref(""),Ci=ref({bottom:"",left:"",transform:""}),ji=ref({left:"50%"});useSwipe(oi,{onSwipeEnd:(Ri,ha)=>{hn.value.noSwipe||(sn.vertical?(ha==="up"||ha==="down")&&nn("handle-swipe",ha==="up"?"left":"right"):(ha==="left"||ha==="right")&&nn("handle-swipe",ha==="right"?"left":"right"))}});const Yi=computed(()=>sn.calendar?sn.calendar(an.mappedDates):an.mappedDates),Pi=computed(()=>sn.dayNames?Array.isArray(sn.dayNames)?sn.dayNames:sn.dayNames():ta());onMounted(()=>{nn("mount",{cmp:"calendar",dayRefs:fi.value}),hn.value.monthChangeOnScroll&&oi.value&&oi.value.addEventListener("wheel",vi,{passive:!1})}),onUnmounted(()=>{hn.value.monthChangeOnScroll&&oi.value&&oi.value.removeEventListener("wheel",vi)});const Fi=Ri=>Ri?sn.vertical?"vNext":"next":sn.vertical?"vPrevious":"previous",$i=(Ri,ha)=>{if(sn.transitions){const qi=En(set(rn(),{month:an.month,year:an.year}));wi.value=Tn(En(set(rn(),{month:Ri,year:ha})),qi)?dn.value[Fi(!0)]:dn.value[Fi(!1)],ci.value=!1,nextTick(()=>{ci.value=!0})}},Wi=computed(()=>({...bn.value.calendar})),hi=Ri=>({type:"dot",...Ri}),Si=computed(()=>Ri=>{const ha=hi(Ri);return{dp__marker_dot:ha.type==="dot",dp__marker_line:ha.type==="line"}}),Ni=computed(()=>Ri=>xn(Ri,ei.value)),yi=computed(()=>({dp__calendar:!0,dp__calendar_next:gn.value.count>0&&an.instance!==0})),Hi=computed(()=>Ri=>sn.hideOffsetDates?Ri.current:!0),Ui=async(Ri,ha)=>{const{width:qi,height:ca}=Ri.getBoundingClientRect();ei.value=ha.value;let Bi={left:`${qi/2}px`},Na=-50;if(await nextTick(),si.value?.[0]){const{left:pa,width:Ea}=si.value[0].getBoundingClientRect();pa<0&&(Bi={left:"0"},Na=0,ji.value.left=`${qi/2}px`),globalThis.innerWidth<pa+Ea&&(Bi={right:"0"},Na=0,ji.value.left=`${Ea-qi/2}px`)}
84Ci.value={bottom:`${ca}px`,...Bi,transform:`translateX(${Na}%)`}},Ji=async(Ri,ha,qi)=>{const ca=unrefElement(fi.value?.[ha]?.[qi]);ca&&(Ri.marker?.customPosition&&Ri.marker?.tooltip?.length?Ci.value=Ri.marker.customPosition(ca):await Ui(ca,Ri),on("tooltip-open",Ri.marker))},Oi=async(Ri,ha,qi)=>{if(di.value&&fn.value.enabled&&fn.value.dragSelect)return nn("select-date",Ri);if(nn("set-hover-date",Ri),Ri.marker?.tooltip?.length){if(sn.hideOffsetDates&&!Ri.current)return;await Ji(Ri,ha,qi)}},Ei=Ri=>{ei.value&&(ei.value=null,Ci.value=structuredClone({bottom:"",left:"",transform:""}),on("tooltip-close",Ri.marker))},ea=(Ri,ha,qi)=>{Ri&&(Array.isArray(fi.value[ha])?fi.value[ha][qi]=Ri:fi.value[ha]=[Ri]),sn.arrowNavigation&&Mn(fi.value,"calendar")},vi=Ri=>{hn.value.monthChangeOnScroll&&(Ri.preventDefault(),nn("handle-scroll",Ri))},ti=Ri=>yn.value?yn.value.type==="local"?getWeek(Ri.value,{weekStartsOn:+sn.weekStart,locale:sn.locale}):yn.value.type==="iso"?getISOWeek(Ri.value):typeof yn.value.type=="function"?yn.value.type(Ri.value):"":"",ui=Ri=>{const ha=Ri[0];return yn.value?.hideOnOffsetDates?Ri.some(qi=>qi.current)?ti(ha):"":ti(ha)},Cn=(Ri,ha,qi=!0)=>{!qi&&bi()||(!fn.value.enabled||hn.value.allowPreventDefault)&&(mi(Ri,hn.value),nn("select-date",ha))},ki=Ri=>{mi(Ri,hn.value)},Zi=Ri=>{fn.value.enabled&&fn.value.dragSelect?(di.value=!0,nn("select-date",Ri)):fn.value.enabled&&nn("select-date",Ri)},ta=()=>{const Ri=rn(),ha=startOfWeek(Ri,{locale:sn.locale,weekStartsOn:+sn.weekStart}),qi=endOfWeek(Ri,{locale:sn.locale,weekStartsOn:+sn.weekStart});return eachDayOfInterval({start:ha,end:qi}).map(ca=>_i(ca))};return He({triggerTransition:$i}),(Ri,ha)=>(openBlock(),createElementBlock("div",{class:normalizeClass(yi.value)},[createBaseVNode("div",{ref:"calendar-wrap",class:normalizeClass(Wi.value),role:"grid"},[createBaseVNode("div",_l,[unref(yn)?(openBlock(),createElementBlock("div",Al,toDisplayString(unref(yn).label),1)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Pi.value,(qi,ca)=>(openBlock(),createElementBlock("div",{key:ca,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":unref(mn)?.weekDay?.(ca)}
84,[Ri.$slots["calendar-header"]?renderSlot(Ri.$slots,"calendar-header",{key:0,day:qi,index:ca}):createCommentVNode("",!0),Ri.$slots["calendar-header"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(qi),1)],64))],8,Pl))),128))]),ha[2]||(ha[2]=createBaseVNode("div",{class:"dp__calendar_header_separator"},null,-1)),createVNode(Transition,{name:wi.value,css:!!unref(dn)},{default:withCtx(()=>[ci.value?(openBlock(),createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:ha[1]||(ha[1]=qi=>di.value=!1)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Yi.value,(qi,ca)=>(openBlock(),createElementBlock("div",{key:ca,class:"dp__calendar_row",role:"row"},[unref(yn)?(openBlock(),createElementBlock("div",Tl,[createBaseVNode("div",$l,toDisplayString(ui(qi.days)),1)])):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(qi.days,(Bi,Na)=>(openBlock(),createElementBlock("div",{id:unref(Rn)(Bi.value),ref_for:!0,ref:pa=>ea(pa,ca,Na),key:Na+ca,role:"gridcell",class:"dp__calendar_item","aria-selected":(Bi.classData.dp__active_date||Bi.classData.dp__range_start||Bi.classData.dp__range_end)??void 0,"aria-disabled":Bi.classData.dp__cell_disabled||void 0,"aria-label":unref(mn)?.day?.(Bi),tabindex:!Bi.current&&unref(sn).hideOffsetDates?void 0:0,"data-test-id":unref(Rn)(Bi.value),onClick:withModifiers(pa=>Cn(pa,Bi),["prevent"]),onTouchend:pa=>Cn(pa,Bi,!1),onKeydown:pa=>unref(ni)(pa,()=>Ri.$emit("select-date",Bi)),onMouseenter:pa=>Oi(Bi,ca,Na),onMouseleave:pa=>Ei(Bi),onMousedown:pa=>Zi(Bi),onMouseup:ha[0]||(ha[0]=pa=>di.value=!1)},[createBaseVNode("div",{class:normalizeClass(["dp__cell_inner",Bi.classData])},[Ri.$slots.day&&Hi.value(Bi)?renderSlot(Ri.$slots,"day",{key:0,day:+Bi.text,date:Bi.value}):createCommentVNode("",!0),Ri.$slots.day?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Bi.text),1)],64)),Bi.marker&&Hi.value(Bi)?(openBlock(),createElementBlock(Fragment,{key:2},[Ri.$slots.marker?renderSlot(Ri.$slots,"marker",{key:0,marker:Bi.marker,day:+Bi.text,date:Bi.value}):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(Si.value(Bi.marker)),style:normalizeStyle(Bi.marker.color?{backgroundColor:Bi.marker.color}:{})},null,6))],64)):createCommentVNode("",!0),Ni.value(Bi.value)?(openBlock(),createElementBlock("div",{key:3,ref_for:!0,ref:"active-tooltip",class:"dp__marker_tooltip",style:normalizeStyle(Ci.value)},[Bi.marker?.tooltip?(openBlock(),createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:ki},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bi.marker.tooltip,(pa,Ea)=>(openBlock(),createElementBlock("div",{key:Ea,class:"dp__tooltip_text"},[Ri.$slots["marker-tooltip"]?renderSlot(Ri.$slots,"marker-tooltip",{key:0,tooltip:pa,day:Bi.value}):createCommentVNode("",!0),Ri.$slots["marker-tooltip"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",{class:"dp__tooltip_mark",style:normalizeStyle(pa.color?{backgroundColor:pa.color}:{})},null,4),createBaseVNode("div",null,toDisplayString(pa.text),1)],64))]))),128)),createBaseVNode("div",{class:"dp__arrow_bottom_tp",style:normalizeStyle(ji.value)},null,4)])):createCommentVNode("",!0)],4)):createCommentVNode("",!0)],2)],40,Sl))),128))]))),128))],32)):createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),Cl=(en,He,tn,nn)=>{const an=ref([]),rn=ref(new Date),on=ref(),{getDate:sn,rootEmit:dn,calendars:hn,month:mn,year:gn,time:yn,modelValue:fn,rootProps:bn,today:Mn,state:Tn,defaults:{multiCalendars:xn,startTime:En,range:Rn,config:ni,safeDates:mi,multiDates:bi,timeConfig:_i,flow:oi}}=Se(),{validateMonthYearInRange:si,isDisabled:fi,isDateRangeAllowed:ei,checkMinMaxRange:ci}=nt(),{updateTimeValues:di,getSetDateTime:wi,assignTime:Ci,assignStartTime:ji,validateTime:Yi,disabledTimesConfig:Pi}=Ja(nn),{formatDay:Fi}=kt(),{resetDateTime:$i,setTime:Wi,isDateBefore:hi,isDateEqual:Si,getDaysInBetween:Ni}=ze(),{checkRangeAutoApply:yi,getRangeWithFixedDate:Hi,handleMultiDatesSelect:Ui,setPresetDate:Ji}=sa(),{getMapDate:Oi}=Fe();zt(()=>ki(Tn.isTextInputDate));const Ei=ia=>!ni.value.keepViewOnOffsetClick||ia?!0:!on.value,ea=(ia,Fa,us,as=!1)=>{Ei(as)&&(hn.value[ia]??=hn.value[ia]={month:0,year:0},hn.value[ia].month=Fa??hn.value[ia]?.month,hn.value[ia].year=us??hn.value[ia]?.year)},vi=()=>{bn.autoApply&&He("select-date")},ti=()=>{En.value&&ji(En.value)};onMounted(()=>{fn.value||(vs(),ti()),ki(!0),bn.focusStartDate&&bn.startDate&&vs()});const ui=computed(()=>oi.value?.steps?.length&&!oi.value?.partial?en.flowStep===oi.value.steps.length:!0),Cn=()=>{bn.autoApply&&ui.value&&He("auto-apply",oi.value?.partial?en.flowStep!==oi.value?.steps?.length:!1)},ki=(ia=!1)=>
84{if(fn.value)return Array.isArray(fn.value)?(an.value=fn.value,Na(ia)):ha(fn.value,ia);if(xn.value.count&&ia&&!bn.startDate)return Ri(sn(),ia)},Zi=()=>Array.isArray(fn.value)&&Rn.value.enabled?getMonth(fn.value[0])===getMonth(fn.value[1]??fn.value[0]):!1,ta=ia=>{const Fa=addMonths(ia,1);return{month:getMonth(Fa),year:getYear(Fa)}},Ri=(ia=sn(),Fa=!1)=>{if((!xn.value.count||!xn.value.static||Fa)&&ea(0,getMonth(ia),getYear(ia)),xn.value.count&&(!fn.value||Zi()||!xn.value.solo)&&(!xn.value.solo||Fa))for(let us=1;us<xn.value.count;us++){const as=set(sn(),{month:mn.value(us-1),year:gn.value(us-1)}),Cs=add(as,{months:1});hn.value[us]={month:getMonth(Cs),year:getYear(Cs)}}},ha=(ia,Fa)=>{Ri(ia),Ci("hours",getHours(ia)),Ci("minutes",getMinutes(ia)),Ci("seconds",getSeconds(ia)),xn.value.count&&Fa&&ns()},qi=ia=>{if(xn.value.count){if(xn.value.solo)return 0;const Fa=getMonth(ia[0]),us=getMonth(ia[1]);return Math.abs(us-Fa)<xn.value.count?0:1}return 1},ca=(ia,Fa)=>{ia[1]&&Rn.value.showLastInRange?Ri(ia[qi(ia)],Fa):Ri(ia[0],Fa);const us=(as,Cs)=>[as(ia[0]),ia?.[1]?as(ia[1]):yn[Cs][1]];Ci("hours",us(getHours,"hours")),Ci("minutes",us(getMinutes,"minutes")),Ci("seconds",us(getSeconds,"seconds"))},Bi=(ia,Fa)=>{if((Rn.value.enabled||bn.weekPicker)&&!bi.value.enabled)return ca(ia,Fa);if(bi.value.enabled&&Fa){const us=ia[ia.length-1];return ha(us,Fa)}},Na=ia=>{const Fa=fn.value;Bi(Fa,ia),xn.value.count&&xn.value.solo&&ns()},pa=(ia,Fa)=>{const us=set(sn(),{month:mn.value(Fa),year:gn.value(Fa)}),as=ia<0?addMonths(us,1):subMonths(us,1);si(getMonth(as),getYear(as),ia<0,bn.preventMinMaxNavigation)&&(ea(Fa,getMonth(as),getYear(as)),dn("update-month-year",{instance:Fa,month:getMonth(as),year:getYear(as)}),xn.value.count&&!xn.value.solo&&Ea(Fa),tn())},Ea=ia=>{for(let Fa=ia-1;Fa>=0;Fa--){const us=subMonths(set(sn(),{month:mn.value(Fa+1),year:gn.value(Fa+1)}),1);ea(Fa,getMonth(us),getYear(us))}for(let Fa=ia+1;Fa<=xn.value.count-1;Fa++){const us=addMonths(set(sn(),{month:mn.value(Fa-1),year:gn.value(Fa-1)}),1);ea(Fa,getMonth(us),getYear(us))}},ns=()=>{if(Array.isArray(fn.value)&&fn.value.length===2){const ia=sn(sn(fn.value[1]??addMonths(fn.value[0],1))),[Fa,us]=[getMonth(fn.value[0]),getYear(fn.value[0])],[as,Cs]=[getMonth(fn.value[1]),getYear(fn.value[1])];(Fa!==as||Fa===as&&us!==Cs)&&xn.value.solo&&ea(1,getMonth(ia),getYear(ia))}else fn.value&&!Array.isArray(fn.value)&&(ea(0,getMonth(fn.value),getYear(fn.value)),Ri(sn()))},vs=()=>{bn.startDate&&(ea(0,getMonth(sn(bn.startDate)),getYear(sn(bn.startDate))),xn.value.count&&Ea(0))},rs=(ia,Fa)=>{if(ni.value.monthChangeOnScroll){const us=Date.now()-rn.value.getTime(),as=Math.abs(ia.deltaY);let Cs=500;as>1&&(Cs=100),as>100&&(Cs=0),us>Cs&&(rn.value=new Date,pa(ni.value.monthChangeOnScroll==="inverse"?ia.deltaY:-ia.deltaY,Fa))}},Xa=(ia,Fa,us=!1)=>{ni.value.monthChangeOnArrows&&bn.vertical===us&&_s(ia,Fa)},_s=(ia,Fa)=>{pa(ia==="right"?-1:1,Fa)},mo=ia=>{if(mi.value.markers)return Oi(ia.value,mi.value.markers)},Is=(ia,Fa)=>{switch(bn.sixWeeks===!0?"append":bn.sixWeeks){case"prepend":return[!0,!1];case"center":return[ia==0,!0];case"fair":return[ia==0||Fa>ia,!0];case"append":return[!1,!1];default:return[!1,!1]}},$s=(ia,Fa,us,as)=>{if(bn.sixWeeks&&ia.length<6){const Cs=6-ia.length,to=(Fa.getDay()+7-as)%7,co=6-(us.getDay()+7-as)%7,[tc,Vc]=Is(to,co);for(let Yo=1;Yo<=Cs;Yo++)if(Vc?!!(Yo%2)==tc:tc){const uc=ia[0].days[0],vu=Ps(addDays(uc.value,-7),getMonth(Fa));ia.unshift({days:vu})}else{const uc=ia[ia.length-1],vu=uc.days[uc.days.length-1],nc=Ps(addDays(vu.value,1),getMonth(Fa));ia.push({days:nc})}}return ia},Ps=(ia,Fa)=>{const us=sn(ia),as=[];for(let Cs=0;Cs<7;Cs++){const to=addDays(us,Cs),co=getMonth(to)!==Fa;as.push({text:bn.hideOffsetDates&&co?"":Fi(to),value:to,current:!co,classData:{}})}return as},Ws=(ia,Fa)=>{const us=[],as=sn(new Date(Fa,ia)),Cs=sn(new Date(Fa,ia+1,0)),to=bn.weekStart,co=startOfWeek(as,{weekStartsOn:to}),tc=Vc=>{const Yo=Ps(Vc,ia);if(us.push({days:Yo}),!us[us.length-1].days.some(uc=>Si(sn(uc.value),$i(Cs)))){const uc=addDays(Vc,7);tc(uc)}};return tc(co),$s(us,as,Cs,to)},ps=ia=>{const Fa=Wi({hours:yn.hours,minutes:yn.minutes,seconds:js()},sn(ia.value));dn("date-click",Fa),bi.value.enabled?Ui(Fa,bi.value.limit):fn.value=Fa,nn(),nextTick().then(()=>{Cn()})},oo=ia=>Rn.value.noDisabledRange?Ni(an.value[0],ia).some(Fa=>fi(Fa)):!1,bs=()=>{an.value=fn.value?fn.value.slice().filter(ia=>!!ia):[],an.value.length===2&&!(Rn.value.fixedStart||Rn.value.fixedEnd)&&(an.value=[])},As=(ia,Fa)=>{const us=[sn(ia.value),addDays(sn(ia.value),+Rn.value.autoRange)];ei(us)?(Fa&&ts(ia.value),an.value=us):dn("invalid-date",ia.value)},ts=ia=>{const Fa=getMonth(sn(ia)),us=getYear(sn(ia));if(ea(0,Fa,us),xn.value.count>0)for(let as=1;as<xn.value.count;as++){const Cs=ta(set(sn(ia),{year:gn.value(as-1),month:mn.value(as-1)}));ea(as,Cs.month,Cs.year)}},cs=ia=>{if(oo(ia.value)||!ci(ia.value,fn.value,Rn.value.fixedStart?0:1))return dn("invalid-date",ia.value);an.value=Hi(sn(ia.value))},ws=(ia,Fa)=>{if(bs(),Rn.value.autoRange)return As(ia,Fa);if(Rn.value.fixedStart||Rn.value.fixedEnd)return cs(ia);an.value[0]?ci(sn(ia.value),fn.value)&&!oo(ia.value)?hi(sn(ia.value),sn(an.value[0]))?(an.value.unshift(sn(ia.value)),dn("range-end",an.value[0])):(an.value[1]=sn(ia.value),dn("range-end",an.value[1])):dn("invalid-date",ia.value):(an.value[0]=sn(ia.value),dn("range-start",an.value[0]))},js=(ia=!0)=>
84_i.value.enableSeconds?Array.isArray(yn.seconds)?ia?yn.seconds[0]:yn.seconds[1]:yn.seconds:0,Ma=ia=>{an.value[ia]=Wi({hours:yn.hours[ia],minutes:yn.minutes[ia],seconds:js(ia!==1)},an.value[ia])},Jo=()=>{an.value[0]&&an.value[1]&&+an.value?.[0]>+an.value?.[1]&&(an.value.reverse(),dn("range-start",an.value[0]),dn("range-end",an.value[1]))},eu=()=>{an.value.length&&(an.value[0]&&!an.value[1]?Ma(0):(Ma(0),Ma(1),nn()),Jo(),fn.value=an.value.slice(),yi(an.value,He,an.value.length<2||oi.value?.steps.length?en.flowStep!==oi.value?.steps?.length:!1))},ko=(ia,Fa=!1)=>{if(fi(ia.value)||!ia.current&&bn.hideOffsetDates)return dn("invalid-date",ia.value);if(on.value=structuredClone(ia),!Rn.value.enabled)return ps(ia);Array.isArray(yn.hours)&&Array.isArray(yn.minutes)&&!bi.value.enabled&&(ws(ia,Fa),eu())},fs=(ia,Fa)=>{ea(ia,Fa.month,Fa.year,!0),xn.value.count&&!xn.value.solo&&Ea(ia),dn("update-month-year",{instance:ia,month:Fa.month,year:Fa.year}),tn(xn.value.solo?ia:void 0);const us=oi.value?.steps?.length?oi.value.steps[en.flowStep]:void 0;!Fa.fromNav&&(us===Qe.month||us===Qe.year)&&nn()},os=ia=>{Ji({value:ia}),vi(),bn.multiCalendars&&nextTick().then(()=>ki(!0))},kc=()=>{let ia=sn();return bn.actionRow?.nowBtnRound&&(ia=roundToNearestMinutes(ia,{roundingMethod:bn.actionRow.nowBtnRound.rounding??"ceil",nearestTo:bn.actionRow.nowBtnRound.roundTo??15})),ia},ys=()=>{const ia=kc();!Rn.value.enabled&&!bi.value.enabled?fn.value=ia:fn.value&&Array.isArray(fn.value)&&fn.value[0]?bi.value.enabled?fn.value=[...fn.value,ia]:fn.value=hi(ia,fn.value[0])?[ia,fn.value[0]]:[fn.value[0],ia]:fn.value=[ia],vi()},Vo=()=>{if(Array.isArray(fn.value))if(bi.value.enabled){const ia=ho();fn.value[fn.value.length-1]=wi(ia)}else fn.value=fn.value.map((ia,Fa)=>ia&&wi(ia,Fa));else fn.value=wi(fn.value);He("time-update")},ho=()=>Array.isArray(fn.value)&&fn.value.length?fn.value[fn.value.length-1]:null,ls=ia=>{let Fa="";if(Rn.value.enabled&&Array.isArray(fn.value))for(const us of Object.keys(ia)){const as=ia[us];Array.isArray(as)&&(yn[us][0]!==as[0]&&(Fa="range-start"),yn[us][1]!==as[1]&&(Fa="range-start"))}return Fa};return{calendars:hn,modelValue:fn,month:mn,year:gn,time:yn,disabledTimesConfig:Pi,today:Mn,validateTime:Yi,getCalendarDays:Ws,getMarker:mo,handleScroll:rs,handleSwipe:_s,handleArrow:Xa,selectDate:ko,updateMonthYear:fs,presetDate:os,selectCurrentDate:ys,updateTime:ia=>{const Fa=ls(ia);di(ia,Vo),Fa&&dn(Fa,fn.value[Fa==="range-start"?0:1])},assignMonthAndYear:Ri,setStartTime:ti}},Yl=()=>{const{isModelAuto:en,matchDate:He,isDateAfter:tn,isDateBefore:nn,isDateBetween:an,isDateEqual:rn,getWeekFromDate:on,getBeforeAndAfterInRange:sn}=ze(),{getDate:dn,today:hn,rootProps:mn,defaults:{multiCalendars:gn,multiDates:yn,ui:fn,highlight:bn,safeDates:Mn,range:Tn},modelValue:xn}=Se(),{isDisabled:En}=nt(),Rn=ref(null),ni=Cn=>{!Cn.current&&mn.hideOffsetDates||(Rn.value=Cn.value)},mi=()=>{Rn.value=null},bi=Cn=>Array.isArray(xn.value)&&Tn.value.enabled&&xn.value[0]&&Rn.value?Cn?tn(Rn.value,xn.value[0]):nn(Rn.value,xn.value[0]):!0,_i=(Cn,ki)=>{const Zi=()=>xn.value?ki?xn.value[0]||null:xn.value[1]:null,ta=xn.value&&Array.isArray(xn.value)?Zi():null;return rn(dn(Cn.value),ta)},oi=Cn=>{const ki=Array.isArray(xn.value)?xn.value[0]:null;return Cn?!nn(Rn.value,ki):!0},si=(Cn,ki=!0)=>(Tn.value.enabled||mn.weekPicker)&&Array.isArray(xn.value)&&xn.value.length===2?mn.hideOffsetDates&&!Cn.current?!1:rn(dn(Cn.value),xn.value[ki?0:1]):Tn.value.enabled?_i(Cn,ki)&&oi(ki)||rn(Cn.value,Array.isArray(xn.value)?xn.value[0]:null)&&bi(ki):!1,fi=(Cn,ki)=>{if(Array.isArray(xn.value)&&xn.value[0]&&xn.value.length===1){const Zi=rn(Cn.value,Rn.value);return ki?tn(xn.value[0],Cn.value)&&Zi:nn(xn.value[0],Cn.value)&&Zi}return!1},ei=Cn=>!xn.value||mn.hideOffsetDates&&!Cn.current?!1:Tn.value.enabled?mn.modelAuto&&Array.isArray(xn.value)?rn(Cn.value,xn.value[0]??hn):!1:yn.value.enabled&&Array.isArray(xn.value)?xn.value.some(ki=>rn(ki,Cn.value)):rn(Cn.value,xn.value?xn.value:hn),ci=Cn=>{if(Tn.value.autoRange||mn.weekPicker){if(Rn.value){if(mn.hideOffsetDates&&!Cn.current)return!1;const ki=addDays(Rn.value,+Tn.value.autoRange),Zi=on(dn(Rn.value),mn.weekStart);return mn.weekPicker?rn(Zi[1],dn(Cn.value)):rn(ki,dn(Cn.value))}return!1}return!1},di=Cn=>{if(Tn.value.autoRange||mn.weekPicker){if(Rn.value){const ki=addDays(Rn.value,+Tn.value.autoRange);
84if(mn.hideOffsetDates&&!Cn.current)return!1;const Zi=on(dn(Rn.value),mn.weekStart);return mn.weekPicker?tn(Cn.value,Zi[0])&&nn(Cn.value,Zi[1]):tn(Cn.value,Rn.value)&&nn(Cn.value,ki)}return!1}return!1},wi=Cn=>{if(Tn.value.autoRange||mn.weekPicker){if(Rn.value){if(mn.hideOffsetDates&&!Cn.current)return!1;const ki=on(dn(Rn.value),mn.weekStart);return mn.weekPicker?rn(ki[0],Cn.value):rn(Rn.value,Cn.value)}return!1}return!1},Ci=Cn=>an(xn.value,Rn.value,Cn.value),ji=()=>mn.modelAuto&&Array.isArray(xn.value)?!!xn.value[0]:!1,Yi=()=>mn.modelAuto?en(xn.value):!0,Pi=Cn=>{if(mn.weekPicker)return!1;const ki=Tn.value.enabled?!si(Cn)&&!si(Cn,!1):!0;return!En(Cn.value)&&!ei(Cn)&&!(!Cn.current&&mn.hideOffsetDates)&&ki},Fi=Cn=>Tn.value.enabled?mn.modelAuto?ji()&&ei(Cn):!1:ei(Cn),$i=Cn=>bn.value?He(Cn.value,Mn.value.highlight):!1,Wi=Cn=>{const ki=En(Cn.value);return ki&&(typeof bn.value=="function"?!bn.value(Cn.value,ki):!bn.value.options.highlightDisabled)},hi=Cn=>typeof bn.value=="function"?bn.value(Cn.value):bn.value.weekdays?.includes(Cn.value.getDay()),Si=Cn=>(Tn.value.enabled||mn.weekPicker)&&(!(gn.value.count>0)||Cn.current)&&Yi()&&!(!Cn.current&&mn.hideOffsetDates)&&!ei(Cn)?Ci(Cn):!1,Ni=Cn=>{if(Array.isArray(xn.value)&&xn.value.length===1){const{before:ki,after:Zi}=sn(+Tn.value.maxRange,xn.value[0]);return isBefore(Cn.value,ki)||isAfter(Cn.value,Zi)}return!1},yi=Cn=>{if(Array.isArray(xn.value)&&xn.value.length===1){const{before:ki,after:Zi}=sn(+Tn.value.minRange,xn.value[0]);return an([ki,Zi],xn.value[0],Cn.value)}return!1},Hi=Cn=>Tn.value.enabled&&(Tn.value.maxRange||Tn.value.minRange)?Tn.value.maxRange&&Tn.value.minRange?Ni(Cn)||yi(Cn):Tn.value.maxRange?Ni(Cn):yi(Cn):!1,Ui=Cn=>{const{isRangeStart:ki,isRangeEnd:Zi}=ea(Cn),ta=Tn.value.enabled?ki||Zi:!1;return{dp__cell_offset:!Cn.current,dp__pointer:!mn.disabled&&!(!Cn.current&&mn.hideOffsetDates)&&!En(Cn.value)&&!Hi(Cn),dp__cell_disabled:En(Cn.value)||Hi(Cn),dp__cell_highlight:!Wi(Cn)&&($i(Cn)||hi(Cn))&&!Fi(Cn)&&!ta&&!wi(Cn)&&!(Si(Cn)&&mn.weekPicker)&&!Zi,dp__cell_highlight_active:!Wi(Cn)&&($i(Cn)||hi(Cn))&&Fi(Cn),dp__today:!mn.noToday&&rn(Cn.value,hn)&&Cn.current,"dp--past":nn(Cn.value,hn),"dp--future":tn(Cn.value,hn)}},Ji=Cn=>({dp__active_date:Fi(Cn),dp__date_hover:Pi(Cn)}),Oi=Cn=>{if(xn.value&&!Array.isArray(xn.value)){const ki=on(xn.value,mn.weekStart);return{...ti(Cn),dp__range_start:rn(ki[0],Cn.value),dp__range_end:rn(ki[1],Cn.value),dp__range_between_week:tn(Cn.value,ki[0])&&nn(Cn.value,ki[1])}}return{...ti(Cn)}},Ei=Cn=>{if(xn.value&&Array.isArray(xn.value)){const ki=on(xn.value[0],mn.weekStart),Zi=xn.value[1]?on(xn.value[1],mn.weekStart):[];return{...ti(Cn),dp__range_start:rn(ki[0],Cn.value)||rn(Zi[0],Cn.value),dp__range_end:rn(ki[1],Cn.value)||rn(Zi[1],Cn.value),dp__range_between_week:tn(Cn.value,ki[0])&&nn(Cn.value,ki[1])||tn(Cn.value,Zi[0])&&nn(Cn.value,Zi[1]),dp__range_between:tn(Cn.value,ki[1])&&nn(Cn.value,Zi[0])}}return{...ti(Cn)}},ea=Cn=>{const ki=gn.value.count>0?Cn.current&&si(Cn)&&Yi():si(Cn)&&Yi(),Zi=gn.value.count>0?Cn.current&&si(Cn,!1)&&Yi():si(Cn,!1)&&Yi();return{isRangeStart:ki,isRangeEnd:Zi}},vi=Cn=>{const{isRangeStart:ki,isRangeEnd:Zi}=ea(Cn);return{dp__range_start:ki,dp__range_end:Zi,dp__range_between:Si(Cn),dp__date_hover:rn(Cn.value,Rn.value)&&!ki&&!Zi&&!mn.weekPicker,dp__date_hover_start:fi(Cn,!0),dp__date_hover_end:fi(Cn,!1)}},ti=Cn=>({...vi(Cn),dp__cell_auto_range:di(Cn),dp__cell_auto_range_start:wi(Cn),dp__cell_auto_range_end:ci(Cn)}),ui=Cn=>Tn.value.enabled?Tn.value.autoRange?ti(Cn):mn.modelAuto?{...Ji(Cn),...vi(Cn)}:mn.weekPicker?Ei(Cn):vi(Cn):mn.weekPicker?Oi(Cn):Ji(Cn);return{setHoverDate:ni,clearHoverDate:mi,getDayClassData:Cn=>mn.hideOffsetDates&&!Cn.current?{}:{...Ui(Cn),...ui(Cn),[fn.value.dayClass?fn.value.dayClass(Cn.value,xn.value):""]:!0,...fn.value.calendarCell}}},Ol={key:0},xl=defineComponent({__name:"DatePicker",props:mergeDefaults({flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},Cr),emits:["mount","update-flow-step","reset-flow","focus-menu","select-date","time-update","auto-apply"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{month:rn,year:on,modelValue:sn,time:dn,disabledTimesConfig:hn,today:mn,validateTime:gn,getCalendarDays:yn,getMarker:fn,handleArrow:bn,handleScroll:Mn,handleSwipe:Tn,selectDate:xn,updateMonthYear:En,presetDate:Rn,selectCurrentDate:ni,updateTime:mi,assignMonthAndYear:bi,setStartTime:_i}=Cl(an,nn,Oi,Ei),oi=useSlots(),{setHoverDate:si,getDayClassData:fi,clearHoverDate:ei}=Yl(),{getDate:ci,rootEmit:di,rootProps:wi,defaults:{multiCalendars:Ci,timeConfig:ji}}=Se(),{getYears:Yi,getMonths:Pi}=ra(),{getCellId:Fi}=ze(),{mapSlots:$i}=bt(),Wi=useTemplateRef("calendar-header"),hi=useTemplateRef("calendar"),Si=useTemplateRef("time-picker"),Ni=$i(oi,"calendar"),yi=$i(oi,"monthYear"),Hi=$i(oi,"timePicker"),Ui=ta=>{nn("mount",ta)};watch(Ci,(ta,Ri)=>{ta.count-Ri.count>0&&bi()},{deep:!0});const Ji=computed(()=>ta=>yn(rn.value(ta),on.value(ta)).map(Ri=>({...Ri,days:Ri.days.map(ha=>(ha.marker=fn(ha),ha.classData=fi(ha),ha))})));function Oi(ta){ta||ta===0?hi.value?.[ta]?.triggerTransition(rn.value(ta),on.value(ta)):hi.value?.forEach((Ri,ha)=>Ri?.triggerTransition(rn.value(ha),on.value(ha)))}function Ei(){nn("update-flow-step")}const ea=(ta,Ri,ha=0)=>{Wi.value?.[ha]?.toggleMonthPicker(ta,Ri)},vi=(ta,Ri,ha=0)=>{Wi.value?.[ha]?.toggleYearPicker(ta,Ri)},ti=(ta,Ri,ha)=>{Si.value?.toggleTimePicker(ta,Ri,ha)},ui=(ta,Ri)=>{if(!wi.range){const ha=sn.value?sn.value:mn,qi=Ri?ci(Ri):ha,ca=ta?startOfWeek(qi,{weekStartsOn:1}
84):endOfWeek(qi,{weekStartsOn:1});xn({value:ca,current:getMonth(qi)===rn.value(0),text:"",classData:{}}),document.getElementById(Fi(ca))?.focus()}},Cn=ta=>{Wi.value?.[0]?.handleMonthYearChange(ta,!0)},ki=ta=>{En(0,{month:rn.value(0),year:on.value(0)+(ta?1:-1),fromNav:!0})},Zi=ta=>{di("overlay-toggle",{open:!1,overlay:ta}),nn("focus-menu")};return He({clearHoverDate:ei,presetDate:Rn,selectCurrentDate:ni,handleArrow:bn,updateMonthYear:En,setStartTime:_i,toggleMonthPicker:ea,toggleYearPicker:vi,toggleTimePicker:ti,getSidebarProps:()=>({modelValue:sn,month:rn,year:on,time:dn,updateTime:mi,updateMonthYear:En,selectDate:xn,presetDate:Rn}),changeMonth:Cn,changeYear:ki,selectWeekDate:ui}),(ta,Ri)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(oa,{collapse:en.collapse},{default:withCtx(({instances:ha,wrapClass:qi})=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ha,ca=>(openBlock(),createElementBlock("div",{key:ca,class:normalizeClass(qi)},[unref(wi).hideMonthYearSelect?createCommentVNode("",!0):(openBlock(),createBlock(Ml,{key:0,ref_for:!0,ref:"calendar-header",months:unref(Pi)(),years:unref(Yi)(),month:unref(rn)(ca),year:unref(on)(ca),instance:ca,"menu-wrap-ref":en.menuWrapRef,onMount:Ri[0]||(Ri[0]=Bi=>Ui(unref(_t).header)),onResetFlow:Ri[1]||(Ri[1]=Bi=>ta.$emit("reset-flow")),onUpdateMonthYear:Bi=>unref(En)(ca,Bi),onOverlayClosed:Zi},createSlots({_:2},[renderList(unref(yi),(Bi,Na)=>({name:Bi,fn:withCtx(pa=>[renderSlot(ta.$slots,Bi,mergeProps({ref_for:!0},pa))])}))]),1032,["months","years","month","year","instance","menu-wrap-ref","onUpdateMonthYear"])),createVNode(Rl,{ref_for:!0,ref:"calendar","mapped-dates":Ji.value(ca),instance:ca,month:unref(rn)(ca),year:unref(on)(ca),onSelectDate:Bi=>unref(xn)(Bi,ca!==1),onSetHoverDate:Ri[2]||(Ri[2]=Bi=>unref(si)(Bi)),onHandleScroll:Bi=>unref(Mn)(Bi,ca),onHandleSwipe:Bi=>unref(Tn)(Bi,ca),onMount:Ri[3]||(Ri[3]=Bi=>Ui(unref(_t).calendar))},createSlots({_:2},[renderList(unref(Ni),(Bi,Na)=>({name:Bi,fn:withCtx(pa=>[renderSlot(ta.$slots,Bi,mergeProps({ref_for:!0},{...pa}))])}))]),1032,["mapped-dates","instance","month","year","onSelectDate","onHandleScroll","onHandleSwipe"])],2))),128))]),_:3},8,["collapse"]),unref(ji).enableTimePicker?(openBlock(),createElementBlock("div",Ol,[ta.$slots["time-picker"]?renderSlot(ta.$slots,"time-picker",normalizeProps(mergeProps({key:0},{time:unref(dn),updateTime:unref(mi)}))):(openBlock(),createBlock(Ga,{key:1,ref:"time-picker",hours:unref(dn).hours,minutes:unref(dn).minutes,seconds:unref(dn).seconds,"disabled-times-config":unref(hn),"validate-time":unref(gn),"no-overlay-focus":en.noOverlayFocus,onMount:Ri[4]||(Ri[4]=ha=>Ui(unref(_t).timePicker)),"onUpdate:hours":Ri[5]||(Ri[5]=ha=>unref(mi)({hours:ha,minutes:unref(dn).minutes,seconds:unref(dn).seconds})),"onUpdate:minutes":Ri[6]||(Ri[6]=ha=>unref(mi)({hours:unref(dn).hours,minutes:ha,seconds:unref(dn).seconds})),"onUpdate:seconds":Ri[7]||(Ri[7]=ha=>unref(mi)({hours:unref(dn).hours,minutes:unref(dn).minutes,seconds:ha})),onResetFlow:Ri[8]||(Ri[8]=ha=>ta.$emit("reset-flow"))},createSlots({_:2},[renderList(unref(Hi),(ha,qi)=>({name:ha,fn:withCtx(ca=>[renderSlot(ta.$slots,ha,normalizeProps(guardReactiveProps(ca)))])}))]),1032,["hours","minutes","seconds","disabled-times-config","validate-time","no-overlay-focus"]))])):createCommentVNode("",!0)],64))}}),Bl=(en,He)=>{const{getDate:tn,modelValue:nn,year:an,calendars:rn,defaults:{highlight:on,range:sn,multiDates:dn}}=Se(),{isDateBetween:hn,isDateEqual:mn}=ze(),{checkRangeAutoApply:gn,handleMultiDatesSelect:yn,setMonthOrYearRange:fn}=sa();zt();const{isDisabled:bn}=nt(),{formatQuarterText:Mn}=kt(),{selectYear:Tn,groupedYears:xn,showYearPicker:En,isDisabled:Rn,toggleYearPicker:ni,handleYearSelect:mi,handleYear:bi,setStartDate:_i}=Qa(He),oi=ref();onMounted(()=>{_i()});const si=computed(()=>Yi=>nn.value?Array.isArray(nn.value)?nn.value.some(Pi=>isSameQuarter(Yi,Pi)):isSameQuarter(nn.value,Yi):!1),fi=Yi=>{if(sn.value.enabled){if(Array.isArray(nn.value)){const Pi=mn(Yi,nn.value[0])||mn(Yi,nn.value[1]);return hn(nn.value,oi.value,Yi)&&!Pi}return!1}return!1},ei=(Yi,Pi)=>Yi.quarter===getQuarter(Pi)&&Yi.year===getYear(Pi),ci=Yi=>typeof on.value=="function"?on.value({quarter:getQuarter(Yi),year:getYear(Yi)}):on.value.quarters.some(Pi=>ei(Pi,Yi)),di=computed(()=>Yi=>{const Pi=set(tn(),{year:an.value(Yi)});return eachQuarterOfInterval({start:startOfYear(Pi),end:endOfYear(Pi)}).map(Fi=>{const $i=startOfQuarter(Fi),Wi=endOfQuarter(Fi),hi=bn(Fi),Si=fi($i),Ni=ci($i);return{text:Mn($i,Wi),value:$i,active:si.value($i),highlighted:Ni,disabled:hi,isBetween:Si}})}),wi=Yi=>{yn(Yi,dn.value.limit),He("auto-apply",!0)},Ci=Yi=>{nn.value=fn(Yi),gn(nn.value,He,nn.value.length<2)},ji=Yi=>{nn.value=Yi,He("auto-apply")};return{groupedYears:xn,year:an,isDisabled:Rn,quarters:di,showYearPicker:En,modelValue:nn,selectYear:Tn,toggleYearPicker:ni,handleYearSelect:mi,handleYear:bi,setHoverDate:Yi=>{oi.value=Yi},selectQuarter:(Yi,Pi,Fi)=>{if(!Fi)return rn.value[Pi].month=getMonth(endOfQuarter(Yi)),dn.value.enabled?wi(Yi):sn.value.enabled?Ci(Yi):ji(Yi)}}},Il={class:"dp--quarter-items"},Vl=["data-test-id","disabled","onClick","onMouseover"],El=defineComponent({__name:"QuarterPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en,{defaults:{config:rn}}=Se(),on=useSlots(),{mapSlots:sn}=bt(),{boolHtmlAttribute:dn}=Ot(),hn=sn(on,"yearMode"),{groupedYears:mn,year:gn,isDisabled:yn,quarters:fn,modelValue:bn,showYearPicker:Mn,setHoverDate:Tn,selectQuarter:xn,toggleYearPicker:En,handleYearSelect:Rn,handleYear:ni}=Bl(an,nn);return He({getSidebarProps:()=>({modelValue:bn,year:gn,selectQuarter:xn,handleYearSelect:Rn,handleYear:ni})}
84),(mi,bi)=>(openBlock(),createBlock(oa,{collapse:en.collapse,stretch:""},{default:withCtx(({instances:_i,wrapClass:oi})=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(_i,si=>(openBlock(),createElementBlock("div",{key:si,class:normalizeClass(oi)},[createBaseVNode("div",{class:"dp-quarter-picker-wrap",style:normalizeStyle({minHeight:`${unref(rn).modeHeight}px`})},[mi.$slots["top-extra"]?renderSlot(mi.$slots,"top-extra",{key:0,value:unref(bn)}):createCommentVNode("",!0),createBaseVNode("div",null,[createVNode(qa,{items:unref(mn)(si),instance:si,"show-year-picker":unref(Mn)[si],year:unref(gn)(si),"is-disabled":fi=>unref(yn)(si,fi),onHandleYear:fi=>unref(ni)(si,fi),onYearSelect:fi=>unref(Rn)(fi,si),onToggleYearPicker:fi=>unref(En)(si,fi?.flow,fi?.show)},createSlots({_:2},[renderList(unref(hn),(fi,ei)=>({name:fi,fn:withCtx(ci=>[renderSlot(mi.$slots,fi,mergeProps({ref_for:!0},ci))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),createBaseVNode("div",Il,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fn)(si),(fi,ei)=>(openBlock(),createElementBlock("div",{key:ei},[createBaseVNode("button",{type:"button",class:normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":fi.active,"dp--qr-btn-between":fi.isBetween,"dp--qr-btn-disabled":fi.disabled,"dp--highlighted":fi.highlighted}]),"data-test-id":fi.value,disabled:unref(dn)(fi.disabled),onClick:ci=>unref(xn)(fi.value,si,fi.disabled),onMouseover:ci=>unref(Tn)(fi.value)},[mi.$slots.quarter?renderSlot(mi.$slots,"quarter",{key:0,value:fi.value,text:fi.text}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(fi.text),1)],64))],42,Vl)]))),128))])],4)],2))),128))]),_:3},8,["collapse"]))}}),Fl=["id","tabindex","role","aria-label"],Nl={key:0,class:"dp--menu-load-container"},Wl={key:1,class:"dp--menu-header"},Ll=["data-dp-mobile"],Hl={key:0,class:"dp__sidebar_left"},Kl=["data-dp-mobile"],jl=["data-test-id","data-dp-mobile","onClick","onKeydown"],zl={class:"dp__instance_calendar"},Ul={key:2,class:"dp__sidebar_right"},ql={key:3,class:"dp__action_extra"},Ql=defineComponent({__name:"DatepickerMenu",props:{collapse:{type:Boolean},noOverlayFocus:{type:Boolean},getInputRect:{type:Function}},emits:["close-picker","select-date","auto-apply","time-update","menu-blur"],setup(en,{expose:He,emit:tn}){const nn=tn,an=useSlots(),{state:rn,rootProps:on,defaults:{textInput:sn,inline:dn,config:hn,ui:mn,ariaLabels:gn},setState:yn}=Se(),{isMobile:fn}=na(),{mapSlots:bn}=bt(),{handleEventPropagation:Mn,getElWithin:Tn,checkStopPropagation:xn,checkKeyDown:En}=Fe(),{arrowRight:Rn,arrowLeft:ni,arrowDown:mi,arrowUp:bi}=yt(),_i=useTemplateRef("inner-menu"),oi=useTemplateRef("dp-menu"),si=useTemplateRef("dyn-cmp"),fi=ref(0),ei=ref(!1),ci=ref(!1),{flowStep:di,updateFlowStep:wi,childMount:Ci,resetFlow:ji,handleFlow:Yi}=Kn(si),Pi=qi=>{ci.value=!0,hn.value.allowPreventDefault&&qi.preventDefault(),xn(qi,hn.value,!0)};onMounted(()=>{ei.value=!0,Fi(),globalThis.addEventListener("resize",Fi);const qi=unrefElement(oi);qi&&!sn.value.enabled&&!dn.value.enabled&&(yn("menuFocused",!0),Wi()),qi&&(qi.addEventListener("pointerdown",Pi),qi.addEventListener("mousedown",Pi)),document.addEventListener("mousedown",ha)}),onUnmounted(()=>{globalThis.removeEventListener("resize",Fi),document.removeEventListener("mousedown",ha);const qi=unrefElement(oi);qi&&(qi.removeEventListener("pointerdown",Pi),qi.removeEventListener("mousedown",Pi))});const Fi=()=>{const qi=unrefElement(_i);qi&&(fi.value=qi.getBoundingClientRect().width)},$i=computed(()=>on.monthPicker?el:on.yearPicker?al:on.timePicker?hl:on.quarterPicker?El:xl),Wi=()=>{const qi=unrefElement(oi);qi&&qi.focus({preventScroll:!0})},hi=computed(()=>si.value?.getSidebarProps()||{}),Si=bn(an,"action"),Ni=computed(()=>on.monthPicker||on.yearPicker?bn(an,"monthYear"):on.timePicker?bn(an,"timePicker"):bn(an,"shared")),yi=computed(()=>({dp__menu_disabled:on.disabled,dp__menu_readonly:on.readonly,"dp-menu-loading":on.loading})),Hi=computed(()=>({dp__menu:!0,dp__menu_index:!dn.value.enabled,dp__relative:dn.value.enabled,...mn.value.menu})),Ui=qi=>{xn(qi,hn.value,!0)},Ji=qi=>{hn.value.escClose&&(nn("close-picker"),Mn(qi,hn.value))},Oi=qi=>{if(on.arrowNavigation){if(qi===qe.up)return bi();if(qi===qe.down)return mi();if(qi===qe.left)return ni();if(qi===qe.right)return Rn()}else qi===qe.left||qi===qe.up?ti("handleArrow",qe.left,0,qi===qe.up):ti("handleArrow",qe.right,0,qi===qe.down)},Ei=qi=>{yn("shiftKeyInMenu",qi.shiftKey),!on.hideMonthYearSelect&&qi.code===xe.tab&&qi.target.classList.contains("dp__menu")&&rn.shift
84KeyInMenu&&(qi.preventDefault(),xn(qi,hn.value,!0),nn("close-picker"))},ea=qi=>{si.value?.toggleTimePicker(!1,!1),si.value?.toggleMonthPicker(!1,!1,qi),si.value?.toggleYearPicker(!1,!1,qi)},vi=(qi,ca=0)=>qi==="month"?si.value?.toggleMonthPicker(!1,!0,ca):qi==="year"?si.value?.toggleYearPicker(!1,!0,ca):qi==="time"?si.value?.toggleTimePicker(!0,!1):ea(ca),ti=(qi,...ca)=>{si.value?.[qi]&&si.value?.[qi](...ca)},ui=()=>{ti("selectCurrentDate")},Cn=qi=>{ti("presetDate",toValue$1(qi))},ki=()=>{ti("clearHoverDate")},Zi=(qi,ca)=>{ti("updateMonthYear",qi,ca)},ta=(qi,ca)=>{qi.preventDefault(),Oi(ca)},Ri=qi=>{if(Ei(qi),qi.key===xe.home||qi.key===xe.end)return ti("selectWeekDate",qi.key===xe.home,qi.target.getAttribute("id"));switch((qi.key===xe.pageUp||qi.key===xe.pageDown)&&(qi.shiftKey?(ti("changeYear",qi.key===xe.pageUp),Tn(oi.value,"overlay-year")?.focus()):(ti("changeMonth",qi.key===xe.pageUp),Tn(oi.value,qi.key===xe.pageUp?"action-prev":"action-next")?.focus()),qi.target.getAttribute("id")&&oi.value?.focus({preventScroll:!0})),qi.key){case xe.esc:return Ji(qi);case xe.arrowLeft:return ta(qi,qe.left);case xe.arrowRight:return ta(qi,qe.right);case xe.arrowUp:return ta(qi,qe.up);case xe.arrowDown:return ta(qi,qe.down);default:return}},ha=qi=>{dn.value.enabled&&!dn.value.input&&!oi.value?.contains(qi.target)&&ci.value&&(ci.value=!1,nn("menu-blur"))};return He({updateMonthYear:Zi,switchView:vi,onValueCleared:()=>{si.value?.setStartTime?.()},handleFlow:Yi}),(qi,ca)=>(openBlock(),createElementBlock("div",{id:unref(on).menuId,ref:"dp-menu",tabindex:unref(dn).enabled?void 0:"0",role:unref(dn).enabled?void 0:"dialog","aria-label":unref(gn)?.menu,class:normalizeClass(Hi.value),onMouseleave:ki,onClick:Ui,onKeydown:Ri},[(unref(on).disabled||unref(on).readonly)&&unref(dn).enabled||unref(on).loading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(yi.value)},[unref(on).loading?(openBlock(),createElementBlock("div",Nl,[...ca[5]||(ca[5]=[createBaseVNode("span",{class:"dp--menu-loader"},null,-1)])])):createCommentVNode("",!0)],2)):createCommentVNode("",!0),qi.$slots["menu-header"]?(openBlock(),createElementBlock("div",Wl,[renderSlot(qi.$slots,"menu-header")])):createCommentVNode("",!0),renderSlot(qi.$slots,"arrow"),createBaseVNode("div",{ref:"inner-menu",class:normalizeClass({dp__menu_content_wrapper:unref(on).presetDates?.length||!!qi.$slots["left-sidebar"]||!!qi.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":en.collapse&&(unref(on).presetDates?.length||!!qi.$slots["left-sidebar"]||!!qi.$slots["right-sidebar"])}),"data-dp-mobile":unref(fn),style:normalizeStyle({"--dp-menu-width":`${fi.value}px`})},[qi.$slots["left-sidebar"]?(openBlock(),createElementBlock("div",Hl,[renderSlot(qi.$slots,"left-sidebar",normalizeProps(guardReactiveProps(hi.value)))])):createCommentVNode("",!0),unref(on).presetDates.length?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass({"dp--preset-dates-collapsed":en.collapse,"dp--preset-dates":!0}),"data-dp-mobile":unref(fn)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(on).presetDates,(Bi,Na)=>(openBlock(),createElementBlock(Fragment,{key:Na},[Bi.slot?renderSlot(qi.$slots,Bi.slot,{key:0,presetDate:Cn,label:Bi.label,value:Bi.value}):(openBlock(),createElementBlock("button",{key:1,type:"button",style:normalizeStyle(Bi.style||{}),class:normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":en.collapse}]),"data-test-id":Bi.testId??void 0,"data-dp-mobile":unref(fn),onClick:withModifiers(pa=>Cn(Bi.value),["prevent"]),onKeydown:pa=>unref(En)(pa,()=>Cn(Bi.value),!0)},toDisplayString(Bi.label),47,jl))],64))),128))],10,Kl)):createCommentVNode("",!0),createBaseVNode("div",zl,[(openBlock(),createBlock(resolveDynamicComponent($i.value),{ref:"dyn-cmp","flow-step":unref(di),collapse:en.collapse,"no-overlay-focus":en.noOverlayFocus,"menu-wrap-ref":oi.value,onMount:unref(Ci),onUpdateFlowStep:unref(wi),onResetFlow:unref(ji),onFocusMenu:Wi,onSelectDate:ca[0]||(ca[0]=Bi=>qi.$emit("select-date")),onAutoApply:ca[1]||(ca[1]=Bi=>qi.$emit("auto-apply",Bi)),onTimeUpdate:ca[2]||(ca[2]=Bi=>qi.$emit("time-update"))},createSlots({_:2},[renderList(Ni.value,(Bi,Na)=>({name:Bi,fn:withCtx(pa=>[renderSlot(qi.$slots,Bi,normalizeProps(guardReactiveProps({...pa})))])}))]),1064,["flow-step","collapse","no-overlay-focus","menu-wrap-ref","onMount","onUpdateFlowStep","onResetFlow"]))]),qi.$slots["right-sidebar"]?(openBlock(),createElementBlock("div",Ul,[render
84Slot(qi.$slots,"right-sidebar",normalizeProps(guardReactiveProps(hi.value)))])):createCommentVNode("",!0),qi.$slots["action-extra"]?(openBlock(),createElementBlock("div",ql,[qi.$slots["action-extra"]?renderSlot(qi.$slots,"action-extra",{key:0,selectCurrentDate:ui}):createCommentVNode("",!0)])):createCommentVNode("",!0)],14,Ll),!unref(on).autoApply||unref(hn).keepActionRow?(openBlock(),createBlock(jr,{key:2,"menu-mount":ei.value,"calendar-width":fi.value,onClosePicker:ca[3]||(ca[3]=Bi=>qi.$emit("close-picker")),onSelectDate:ca[4]||(ca[4]=Bi=>qi.$emit("select-date")),onSelectNow:ui},createSlots({_:2},[renderList(unref(Si),(Bi,Na)=>({name:Bi,fn:withCtx(pa=>[renderSlot(qi.$slots,Bi,normalizeProps(guardReactiveProps({...pa})))])}))]),1032,["menu-mount","calendar-width"])):createCommentVNode("",!0)],42,Fl))}}),Gl=["data-dp-mobile"],Jl=defineComponent({__name:"VueDatePicker",setup(en,{expose:He}){const{rootEmit:tn,setState:nn,inputValue:an,modelValue:rn,rootProps:on,defaults:{inline:sn,config:dn,textInput:hn,range:mn,multiDates:gn,teleport:yn,floatingConfig:fn}}=Se(),{clearArrowNav:bn}=yt(),{validateDate:Mn,isValidTime:Tn}=nt(),{menuTransition:xn,showTransition:En}=jt(),{isMobile:Rn}=na(),{mapSlots:ni}=bt(),{findNextFocusableElement:mi,getNumVal:bi}=Fe(),_i=useSlots(),oi=ref(!1),si=ref(sn.value.enabled||on.centered),fi=toRef(on,"modelValue"),ei=toRef(on,"timezone"),ci=useTemplateRef("dp-menu-wrap"),di=useTemplateRef("dp-menu"),wi=useTemplateRef("input-cmp"),Ci=useTemplateRef("picker-wrapper"),ji=useTemplateRef("menu-arrow"),Yi=ref(!1),Pi=ref(!1),Fi=ref(!1),$i=ref(!0),Wi=ts=>(fn.value.arrow&&(fn.value.arrow===!0?ts.push(arrow({element:ji})):ts.push(arrow({element:fn.value.arrow}))),ts),{floatingStyles:hi,middlewareData:Si,placement:Ni,y:yi}=useFloating(wi,ci,{strategy:fn.value.strategy,placement:fn.value.placement,middleware:Wi([offset(fn.value.offset),flip(),shift()]),whileElementsMounted:autoUpdate});onMounted(()=>{Ji(on.modelValue),nextTick().then(()=>{sn.value.enabled||globalThis.addEventListener("resize",Zi)}),sn.value.enabled&&(oi.value=!0),globalThis.addEventListener("keyup",ta),globalThis.addEventListener("keydown",Ri)}),onUnmounted(()=>{sn.value.enabled||globalThis.removeEventListener("resize",Zi),globalThis.removeEventListener("keyup",ta),globalThis.removeEventListener("keydown",Ri)});const Hi=ni(_i,"all",on.presetDates),Ui=ni(_i,"input");watch([fi,ei],()=>{Ji(fi.value)},{deep:!0}),watch([Ni,yi],()=>{!sn.value.enabled&&!on.centered&&$i.value&&(si.value=!1,nextTick().then(()=>{$i.value=!1,si.value=!0}))});const{parseExternalModelValue:Ji,emitModelValue:Oi,formatInputValue:Ei,checkBeforeEmit:ea}=Wn(),vi=computed(()=>({dp__main:!0,dp__theme_dark:on.dark,dp__theme_light:!on.dark,dp__flex_display:sn.value.enabled,"dp--flex-display-collapsed":Fi.value,dp__flex_display_with_input:sn.value.input})),ti=computed(()=>on.dark?"dp__theme_dark":"dp__theme_light"),ui=computed(()=>sn.value.enabled&&(on.timePicker||on.monthPicker||on.yearPicker||on.quarterPicker)),Cn=()=>wi.value?.$el?.getBoundingClientRect()??{width:0,left:0,right:0},ki=()=>{oi.value&&dn.value.closeOnScroll&&vs()},Zi=()=>{const ts=di.value?.$el.getBoundingClientRect().width??0;Fi.value=document.body.offsetWidth<=ts},ta=ts=>{ts.key==="Tab"&&!sn.value.enabled&&!on.teleport&&dn.value.tabOutClosesMenu&&(Ci.value.contains(document.activeElement)||vs()),Pi.value=ts.shiftKey},Ri=ts=>{Pi.value=ts.shiftKey},ha=()=>{!on.disabled&&!on.readonly&&($i.value=!0,oi.value=!0,oi.value&&tn("open"),oi.value||ns(),Ji(on.modelValue))},qi=()=>{an.value="",ns(),di.value?.onValueCleared(),wi.value?.setParsedDate(null),tn("update:model-value",null),tn("cleared"),dn.value.closeOnClearValue&&vs()},ca=()=>{const ts=rn.value;return!ts||!Array.isArray(ts)&&Mn(ts)?!0:Array.isArray(ts)?gn.value.enabled||ts.length===2&&Mn(ts[0])&&Mn(ts[1])?!0:mn.value.partialRange&&!on.timePicker?Mn(ts[0]):!1:!1},Bi=()=>{ea()&&ca()?(Oi(),vs()):tn("invalid-select")},Na=ts=>{pa(),Oi(),dn.value.closeOnAutoApply&&!ts&&vs()},pa=()=>{wi.value&&hn.value.enabled&&wi.value.setParsedDate(rn.value)},Ea=(ts=!1)=>{on.autoApply&&Tn(rn.value)&&ca()&&(mn.value.enabled&&Array.isArray(rn.value)?(mn.value.partialRange||rn.value.length===2)&&Na(ts):Na(ts))},ns=()=>{hn.value.enabled||(rn.value=null)},vs=(ts=!1)=>{$i.value=!0,ts&&rn.value&&dn.value.setDateOnMenuClose&&Bi(),sn.value.enabled||(oi.value&&(oi.value=!1,nn("menuFocused",!1),nn("shiftKeyInMenu",!1),bn(),tn("closed"),an.value&&Ji(fi.value)),ns(),tn("blur"))},rs=(ts,cs,ws=!1)=>
84{if(!ts){rn.value=null;return}const js=Array.isArray(ts)?!ts.some(Jo=>!Mn(Jo)):Mn(ts),Ma=Tn(ts);js&&Ma?(nn("isTextInputDate",!0),rn.value=ts,cs?(Yi.value=ws,Bi(),tn("text-submit")):on.autoApply&&Ea(!0),nextTick().then(()=>{nn("isTextInputDate",!1)})):tn("invalid-date",ts)},Xa=()=>{on.autoApply&&Tn(rn.value)&&Oi(),pa()},_s=()=>oi.value?vs():ha(),mo=ts=>{rn.value=ts},Is=()=>{hn.value.enabled&&(nn("isInputFocused",!0),Ei()),tn("focus")},$s=()=>{hn.value.enabled&&(nn("isInputFocused",!1),Ji(on.modelValue),Yi.value&&mi(Ci.value,Pi.value)?.focus()),tn("blur")},Ps=(ts,cs)=>{di.value&&di.value.updateMonthYear(cs??0,{month:bi(ts.month),year:bi(ts.year)})},Ws=ts=>{Ji(ts??on.modelValue)},ps=(ts,cs)=>{di.value?.switchView(ts,cs)},oo=(ts,cs)=>{if(oi.value)return dn.value.onClickOutside?dn.value.onClickOutside(ts,cs):vs(!0)},bs=(ts=0)=>{di.value?.handleFlow(ts)},As=()=>ci;return onClickOutside(ci,ts=>oo(ca,ts),{ignore:[wi]}),He({closeMenu:vs,selectDate:Bi,clearValue:qi,openMenu:ha,onScroll:ki,formatInputValue:Ei,updateInternalModelValue:mo,setMonthYear:Ps,parseModel:Ws,switchView:ps,toggleMenu:_s,handleFlow:bs,getDpWrapMenuRef:As}),(ts,cs)=>(openBlock(),createElementBlock("div",{ref:"picker-wrapper",class:normalizeClass(vi.value),"data-datepicker-instance":"","data-dp-mobile":unref(Rn)},[createVNode(Nr,{ref:"input-cmp","is-menu-open":oi.value,onClear:qi,onOpen:ha,onSetInputDate:rs,onSetEmptyDate:unref(Oi),onSelectDate:Bi,onToggle:_s,onClose:vs,onFocus:Is,onBlur:$s,onRealBlur:cs[0]||(cs[0]=ws=>unref(nn)("isInputFocused",!1))},createSlots({_:2},[renderList(unref(Ui),(ws,js)=>({name:ws,fn:withCtx(Ma=>[renderSlot(ts.$slots,ws,normalizeProps(guardReactiveProps(Ma)))])}))]),1032,["is-menu-open","onSetEmptyDate"]),(openBlock(),createBlock(Teleport,{to:unref(yn),disabled:!unref(yn)},[createBaseVNode("div",{ref:"dp-menu-wrap",class:normalizeClass({"dp--menu-wrapper":!unref(sn).enabled,dp__outer_menu_wrap:!0,"dp--centered":unref(on).centered}),style:normalizeStyle(!unref(sn).enabled&&!unref(on).centered?unref(hi):void 0)},[createVNode(Transition,{name:unref(xn)(unref(Ni).startsWith("top")),css:unref(En)&&!unref(sn).enabled&&!unref(on).centered&&si.value},{default:withCtx(()=>[oi.value&&si.value?(openBlock(),createBlock(Ql,{key:0,ref:"dp-menu",class:normalizeClass({[ti.value]:!0}),"no-overlay-focus":ui.value,collapse:Fi.value,"get-input-rect":Cn,onClosePicker:vs,onSelectDate:Bi,onAutoApply:Ea,onTimeUpdate:Xa,onMenuBlur:cs[1]||(cs[1]=ws=>unref(tn)("blur"))},createSlots({_:2},[renderList(unref(Hi),(ws,js)=>({name:ws,fn:withCtx(Ma=>[renderSlot(ts.$slots,ws,normalizeProps(guardReactiveProps({...Ma})))])})),!unref(sn).enabled&&!unref(on).centered&&unref(fn).arrow===!0?{name:"arrow",fn:withCtx(()=>[createBaseVNode("div",{ref:"menu-arrow",class:normalizeClass({dp__arrow_top:unref(Ni)==="bottom",dp__arrow_bottom:unref(Ni)==="top"}),style:normalizeStyle({left:unref(Si).arrow?.x!=null?`${unref(Si).arrow.x}px`:"",top:unref(Si).arrow?.y!=null?`${unref(Si).arrow.y}px`:""})},null,6)]),key:"0"}:void 0]),1032,["class","no-overlay-focus","collapse"])):createCommentVNode("",!0)]),_:3},8,["name","css"])],6)],8,["to","disabled"]))],10,Gl))}}),lo=defineComponent({__name:"VueDatePickerRoot",props:mergeDefaults({multiCalendars:{type:[Boolean,Number,String,Object]},modelValue:{},modelType:{},dark:{type:Boolean},transitions:{type:[Boolean,Object]},ariaLabels:{},hideNavigation:{},timezone:{},vertical:{type:Boolean},hideMonthYearSelect:{type:Boolean},disableYearSelect:{type:Boolean},yearRange:{},autoApply:{type:Boolean},disabledDates:{type:[Array,Function]},startDate:{},hideOffsetDates:{type:Boolean},noToday:{type:Boolean},allowedDates:{},markers:{},presetDates:{},flow:{},preventMinMaxNavigation:{type:Boolean},reverseYears:{type:Boolean},weekPicker:{type:Boolean},filters:{},arrowNavigation:{type:Boolean},highlight:{type:[Function,Object]},teleport:{type:[String,Boolean]},centered:{type:Boolean},locale:{},weekStart:{},weekNumbers:{type:[Boolean,Object]},dayNames:{type:[Function,Array]},monthPicker:{type:Boolean},yearPicker:{type:Boolean},modelAuto:{type:Boolean},formats:{},multiDates:{type:[Boolean,Object]},minDate:{},maxDate:{},minTime:{},maxTime:{},inputAttrs:{},timeConfig:{},placeholder:{},timePicker:{type:Boolean},range:{type:[Boolean,Object]},menuId:{},disabled:{type:Boolean},readonly:{type:Boolean},inline:{type:[Boolean,Object]},textInput:{type:[Boolean,Object]},sixWeeks:{type:[Boolean,String]},actionRow:{},focusStartDate:{type:Boolean},disabledTimes:{type:[Function,Array]},calendar:{type:Function},config:{},quarterPicker:{type:Boolean},yearFirst:{type:Boolean},loading:{type:Boolean},ui:{},floating:{}},Yr),emits:["update:model-value","internal-model-change","text-submit","text-input","open","closed","focus","blur","cleared","flow-step","update-month-year","invali
84d-select","invalid-fixed-range","invalid-date","tooltip-open","tooltip-close","am-pm-change","range-start","range-end","date-click","overlay-toggle","invalid"],setup(en,{expose:He,emit:tn}){const nn=tn,an=en;Hn(an,nn);const rn=useSlots(),{mapSlots:on}=bt(),sn=on(rn,"root",an.presetDates),dn=useTemplateRef("date-picker");return He(xr(dn)),(hn,mn)=>(openBlock(),createBlock(Jl,{ref:"date-picker"},createSlots({_:2},[renderList(unref(sn),(gn,yn)=>({name:gn,fn:withCtx(fn=>[renderSlot(hn.$slots,gn,normalizeProps(guardReactiveProps(fn)))])}))]),1536))}}),_sfc_main$N={name:"MonthYearFilter",components:{VueDatePicker:lo},props:{field:{type:String,required:!0},name:{type:String,required:!0},overviewType:{type:String,default:"overview"}},computed:{monthYear:{get(){const en=this.$store.getters[this.overviewType+"/filter"](this.field);if(en)return en.value},set(en){en||this.resetFilter(en),this.setFilterValue({field:this.field,value:en})}}},created(){const en={type:"month-year",field:this.field,name:this.name,value:void 0},He=new URLSearchParams(window.location.search),tn=JSON.parse(He.get(this.field));tn&&(en.value=tn),this.addFilter(en)},methods:{addFilter(en){this.$store.dispatch(`${this.overviewType}/addFilter`,en)},setFilterValue(en){this.$store.dispatch(`${this.overviewType}/setFilterValue`,en)},resetFilter(en=null){this.$store.dispatch(`${this.overviewType}/resetFilter`,{field:this.field,value:en})}}},_hoisted_1$O={class:"month-year-filter"};function _sfc_render$N(en,He,tn,nn,an,rn){const on=resolveComponent("VueDatePicker");return openBlock(),createElementBlock("div",_hoisted_1$O,[createVNode(on,{id:"month-year",ref:"monthYearRef",modelValue:rn.monthYear,"onUpdate:modelValue":He[0]||(He[0]=sn=>rn.monthYear=sn),class:"month-year-filter__picker","month-picker":!0,"model-type":"format",formats:{input:"yyyy-MM"},"input-attrs":{clearable:!0},"auto-apply":"",placeholder:en.$t("Date"),onCleared:He[1]||(He[1]=sn=>rn.resetFilter())},null,8,["modelValue","placeholder"])])}const MonthYearFilter=_export_sfc(_sfc_main$N,[["render",_sfc_render$N]]),_sfc_main$M={name:"OverviewSortToggle",props:{overviewType:{type:String,default:"overview"}},computed:{isAsc(){return this.$store.getters[this.overviewType+"/sort"]==="asc"},label(){return this.isAsc?this.$t("Desc"):this.$t("Asc")}},methods:{toggleSort(){this.isAsc?this.$store.dispatch(`${this.overviewType}/setSort`,"desc"):this.$store.dispatch(`${this.overviewType}/setSort`,"asc")}}},_hoisted_1$N=["title"];function _sfc_render$M(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("a",{href:"#",title:rn.label,class:"overview-sort-toggle",onClick:He[0]||(He[0]=withModifiers(sn=>rn.toggleSort(),["prevent"]))},[rn.isAsc?createCommentVNode("",!0):(openBlock(),createBlock(on,{key:0,icon:["fas","arrow-up-wide-short"]})),rn.isAsc?(openBlock(),createBlock(on,{key:1,icon:["fas","arrow-down-short-wide"]})):createCommentVNode("",!0)],8,_hoisted_1$N)}const OverviewSortToggle=_export_sfc(_sfc_main$M,[["render",_sfc_render$M],["__scopeId","data-v-f7d6ec78"]]),_sfc_main$L={name:"AppliedFilters",components:{ButtonComponent},props:{overviewType:{type:String,default:"overview"}},computed:{appliedFilters(){return this.$store.getters[`${this.overviewType}/appliedFilters`]()}},methods:{resetFilters(){this.$store.dispatch(`${this.overviewType}/resetFilters`)},resetFilter(en){this.$store.dispatch(`${this.overviewType}/resetFilter`,en)},humanReadableLabel(en,He){return He.value&&He.value.start&&He.value.end?this.$t("Between {min} and {max}",{min:hooks(He.value.start).format("DD/MM/YYYY"),max:hooks(He.value.end).format("DD/MM/YYYY")}):He.labels&&He.labels[en]?He.labels[en]:en==="current_location"?this.$t("Current location"):en}}},_hoisted_1$M={key:0,class:"applied-filters"},_hoisted_2$I={class:"applied-filters__heading"},_hoisted_3$G={class:"applied-filters__label"},_hoisted_4$w={class:"applied-filters__list"};function _sfc_render$L(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("button-component");return rn.appliedFilters.length>0?(openBlock(),createElementBlock("div",_hoisted_1$M,[createBaseVNode("div",_hoisted_2$I,[createBaseVNode("span",_hoisted_3$G,toDisplayString(en.$t("Filtered on"))+":",1),createBaseVNode("a",{href:"#",class:"applied-filters-reset",onClick:He[0]||(He[0]=withModifiers((...dn)=>rn.resetFilters&&rn.resetFilters(...dn),["prevent"]))},[createTextVNode(toDisplayString(en.$t("Remove all"))+" ",1),createVNode(on,{icon:["far","times-circle"],class:"applied-filters-reset-icon"})])]),createBaseVNode("div",_hoisted_4$w,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.appliedFilters,(dn,hn)=>(openBlock(),createElementBlock(Fragment,{key:hn},[Array.isArray(dn.value)?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(dn.value,(mn,gn)=>(openBlock(),createBlock(sn,{key:gn,url:"#",name:rn.humanReadableLabel(mn,dn),icon:["far","times-circle"],"icon-after":!0,class:"applied-filters__filter",onClick:withModifiers(yn=>rn.resetFilter({field:dn.field,value:mn}),["prevent"])},null,8,["name","onClick"]))),128)):(openBlock(),createBlock(sn,{key:1,url:"#",name:rn.humanReadableLabel(dn.valueLabel,dn),icon:["far","times-circle"],"icon-after":!0,class:"applied-filters__filter",onClick:withModifiers(mn=>rn.resetFilter({field:dn.field,value:dn.value}),["prevent"])},null,8,["name","onClick"]))],64))),128))])])):createCommentVNode("",!0)}const AppliedFilters=_export_sfc(_sfc_main$L,[["render",_sfc_render$L],["__scopeId","data-v-131b48d2"]]),_sfc_main$K={n
84ame:"SectorOverview",components:{AppliedFilters,OverviewSortToggle,MonthYearFilter,ButtonComponent,OverviewFilter,TermsFilter},data(){return{pageSize:12,currentPage:0}},computed:{...mapState("context",["site","mainContent"]),...mapState("sectorOverview",["groupByMonth"]),...mapGetters("sectorOverview",["sectorSelectionByMonth"]),sectors(){return this.mainContent.uuid===this.site.academyPageId?this.$store.getters["sectorOverview/sectorSelection"]():this.$store.getters["sectorOverview/sectorSelectionByMonth"]()},pagedSectors(){return this.$store.getters["sectorOverview/sectorSelection"]().slice(this.currentPage*this.pageSize,this.currentPage*this.pageSize+this.pageSize)},pages(){return this.isAcademyOverview?Math.ceil(this.sectors.length/this.pageSize):Math.ceil(this.sectors.reduce((en,He)=>en+(He.items?He.items.length:0),0)/this.pageSize)},total(){return this.isAcademyOverview?this.sectors.length:this.sectors.reduce((en,He)=>en+He.items.length,0)},visiblePages(){const en=[];for(let He=Math.max(1,this.currentPage-1);He<Math.min(this.pages-1,this.currentPage+2);He++)en.push(He);return en},isAcademyOverview(){return this.mainContent.uuid===this.site.academyPageId},hasSectorTypeOptions(){const en=this.$store.getters["sectorOverview/filter"]("sector_type");return!!(en&&en.options.length)}},mounted(){this.fetchSectorOverviewPage(this.isAcademyOverview?"permanent_knowledge":"event")},methods:{...mapActions("sectorOverview",["fetchSectorOverviewPage"]),formatedEventDate(en){if(en)return moment$3(en*1e3).format("DD/MM/YYYY")},formattedGroupedSectors(en){if(!en)return;moment$3.locale(this.$i18n.locale);const He=moment$3(en,"MM/YYYY").format("MMMM YYYY");return He.charAt(0).toUpperCase()+He.slice(1)}}},_hoisted_1$L={class:"sector-overview"},_hoisted_2$H={ref:"overviewContent",class:"overview__content"},_hoisted_3$F={class:"overview__filters"},_hoisted_4$v={key:1,class:"overview__sort"},_hoisted_5$t={key:0,class:"overview__total"},_hoisted_6$q={key:1,class:"overview__list"},_hoisted_7$p=["href","title"],_hoisted_8$l={class:"overview__sector"},_hoisted_9$k={class:"overview__sector--content"},_hoisted_10$j={class:"overview__sector--top"},_hoisted_11$e={class:"overview__sector--type"},_hoisted_12$c=["src"],_hoisted_13$a={class:"overview__sector--info"},_hoisted_14$8={class:"overview__sector--title"},_hoisted_15$7={key:0},_hoisted_16$5={key:2,class:"overview__list--group"},_hoisted_17$5={class:"overview__list--group_title"},_hoisted_18$5={class:"overview__list"},_hoisted_19$4=["href","title"],_hoisted_20$3={class:"overview__sector"},_hoisted_21$3={class:"overview__sector--content"},_hoisted_22$3={class:"overview__sector--top"},_hoisted_23$2={class:"overview__sector--type"},_hoisted_24$2=["src"],_hoisted_25$2={class:"overview__sector--info"},_hoisted_26$2={class:"overview__sector--title"},_hoisted_27$2={class:"overview__pager"},_hoisted_28$2={key:0,class:"overview__pager-ellipsis"},_hoisted_29$2={key:1,class:"overview__pager-ellipsis"};function _sfc_render$K(en,He,tn,nn,an,rn){const on=resolveComponent("terms-filter"),sn=resolveComponent("overview-filter"),dn=resolveComponent("month-year-filter"),hn=resolveComponent("overview-sort-toggle"),mn=resolveComponent("applied-filters"),gn=resolveComponent("button-component");return openBlock(),createElementBlock("div",_hoisted_1$L,[createBaseVNode("div",_hoisted_2$H,[createBaseVNode("div",_hoisted_3$F,[withDirectives(createVNode(sn,{field:"sector_type","overview-type":"sectorOverview"},{default:withCtx(()=>[createVNode(on,{name:en.$t("Type"),field:"sector_type","overview-type":"sectorOverview"},null,8,["name"])]),_:1},512),[[vShow,rn.hasSectorTypeOptions]]),createVNode(sn,{field:"sector_targets","overview-type":"sectorOverview"},{default:withCtx(()=>[createVNode(on,{name:en.$t("For who"),field:"sector_targets","overview-type":"sectorOverview"},null,8,["name"])]),_:1}),createVNode(sn,{field:"sector_themes","overview-type":"sectorOverview"},{default:withCtx(()=>[createVNode(on,{name:en.$t("Theme"),field:"sector_themes","overview-type":"sectorOverview"},null,8,["name"])]),_:1}),createVNode(sn,{field:"sector_regions","overview-type":"sectorOverview"},{default:withCtx(()=>[createVNode(on,{name:en.$t("Region"),field:"sector_regions","overview-type":"sectorOverview"},null,8,["name"])]),_:1}),rn.isAcademyOverview?createCommentVNode("",!0):(openBlock(),createBlock(dn,{key:0,name:en.$t("Date"),field:"date","overview-type":"sectorOverview"},null,8,["name"])),rn.isAcademyOverview?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4$v,[createVNode(hn,{"overview-type":"sectorOverview"})]))]),createVNode(mn,{"overview-type":"sectorOverview"}),rn.total>0?(openBlock(),createElementBlock("div",_hoisted_5$t,toDisplayString(rn.total)+" "+toDisplayString(en.$t("results")),1)):createCommentVNode("",!0),rn.isAcademyOverview?(openBlock(),createElementBlock("div",_hoisted_6$q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.pagedSectors,(yn,fn)=>(openBlock(),createElementBlock("a",{key:fn,href:yn.url,title:yn.title},[createBaseVNode("div",_hoisted_8$l,[createBaseVNode("div",_hoisted_9$k,[createBaseVNode("div",_hoisted_10$j,[createBaseVNode("div",_hoisted_11$e,toDisplayString(yn.type),1),createBaseVNode("img",{src:yn.image,alt:""},null,8,_hoisted_12$c)])]),createBaseVNode("div",_hoisted_13$a,[createBaseVNode("div",_hoisted_14$8,[createBaseVNode("h2",null,toDisplayString(yn.title),1)]),yn.data&&yn.location?(openBlock(),createElementBlock("div",_hoisted_15$7,toDisplayString(rn.formatedEventDate(yn.date))+", "+toDisplayString(yn.location),1)):createCommentVNode("",!0)])])],8,_hoisted_7$p))),128))])):(openBlock(),createElementBlock("div",_hoisted_16$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.sectorSelectionByMonth(),yn=>(openBlock(),createElementBlock("div",{key:yn.name},[createBaseVNode("h3",_hoisted_17$5,toDisplayString(rn.formattedGroupedSectors(yn.name)),1),createBaseVNode("div",_hoisted_18$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(yn.items,(fn,bn)=>(openBlock(),createElementBlock("a",{key:bn,href:fn.url,title:fn.title},[createBaseVNode("div",_hoisted_20$3,[createBaseVNode("div",_hoisted_21$3,[createBaseVNode("div",_hoisted_22$3,[createBaseVNode("div",_hoisted_23$2,toDisplayString(fn.type),1),createBaseVNode("img",{src:fn.image,alt:""},null,8,_hoisted_24$2)])]),createBaseVNode("div",_hoisted_25$2,[createBaseVNode("div",_hoisted_26$2,[createBaseVNode("h2",null,toDisplayString(fn.title),1)]),createBaseVNode("div",null,toDisplayString(rn.formatedEventDate(fn.date))+", "+toDisplayString(fn.location),1)])])],8,_hoisted_19$4))),128))])]))),128))])),withDirectives(createBaseVNode("div",_hoisted_27$2,[createVNode(gn,{url:"",class:"overview__pager-link",name:"1",type:an.currentPage===0?"primary":"primary-outline",onClick:He[0]||(He[0]=withModifiers(yn=>an.currentPage=0,["prevent"]))},null,8,["type"]),an.currentPage>2?(openBlock(),createElementBlock("span",_hoisted_28$2,"...")):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.visiblePages,yn=>(openBlock(),createBlock(gn,{key:yn,url:"?page="+(yn+1).toString(),class:"overview__pager-link",name:(yn+1).toString(),type:an.currentPage===yn?"primary":"primary-outline",onClick:withModifiers(fn=>an.currentPage=yn,["prevent"])},null,8,["url","name","type","onClick"]))),128)),an.currentPage<rn.pages-3?(openBlock(),createElementBlock("span",_hoisted_29$2,"...")):createCommentVNode("",!0),createVNode(gn,{url:"?page="+rn.pages.toString(),class:"overview__pager-link",name:rn.pages.toString(),type:an.currentPage===rn.pages-1?"primary":"primary-outline",onClick:He[1]||(He[1]=withModifiers(yn=>an.currentPage=rn.pages-1,["prevent"]))},null,8,["url","name","type"])],512),[[vShow,rn.isAcademyOverview&&rn.pages>1]])],512)])}const SectorOverview=_export_sfc(_sfc_main$K,[["render",_sfc_render$K],["__scopeId","data-v-41c2ed10"]]),_sfc_main$J={name:"Page",components:{SectorOverview,Wizard,Favorites,Search,CampaignBadge,MarkupRenderer:_sfc_main$X},computed:{...mapState("context",["mainContent","site"])}},_hoisted_1$K={key:0,class:"page__main-content-markup"};function _sfc_render$J(en,He,tn,nn,an,rn){const on=resolveComponent("campaign-badge"),sn=resolveComponent("markup-renderer"),dn=resolveComponent("search"),hn=resolveComponent("favorites"),mn=resolveComponent("wizard"),gn=resolveComponent("sector-overview");return openBlock(),createElementBlock(Fragment,null,[createVNode(on),createBaseVNode("h1",null,toDisplayString(en.mainContent.title),
841),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_1$K,[createVNode(sn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.site.searchPageId===en.mainContent.uuid?(openBlock(),createBlock(dn,{key:1})):createCommentVNode("",!0),en.site.favoritesPageId===en.mainContent.uuid?(openBlock(),createBlock(hn,{key:2})):createCommentVNode("",!0),en.site.wizardPageId===en.mainContent.uuid?(openBlock(),createBlock(mn,{key:3})):createCommentVNode("",!0),en.mainContent.uuid===en.site.academyPageId||en.mainContent.uuid===en.site.calendarPageId?(openBlock(),createBlock(gn,{key:4})):createCommentVNode("",!0)],64)}const Page=_export_sfc(_sfc_main$J,[["render",_sfc_render$J],["__scopeId","data-v-9ef7cd21"]]);function t(){return t=Object.assign||function(en){for(var He=1;He<arguments.length;He++){var tn=arguments[He];for(var nn in tn)Object.prototype.hasOwnProperty.call(tn,nn)&&(en[nn]=tn[nn])}return en},t.apply(this,arguments)}function e(en){var He={exports:{}};return en(He,He.exports),He.exports}var n=e(function(en,He){en.exports=(function(){var tn="millisecond",nn="second",an="minute",rn="hour",on="day",sn="week",dn="month",hn="quarter",mn="year",gn="date",yn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,fn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,bn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},Mn=function(si,fi,ei){var ci=String(si);return!ci||ci.length>=fi?si:""+Array(fi+1-ci.length).join(ei)+si},Tn={s:Mn,z:function(si){var fi=-si.utcOffset(),ei=Math.abs(fi),ci=Math.floor(ei/60),di=ei%60;return(fi<=0?"+":"-")+Mn(ci,2,"0")+":"+Mn(di,2,"0")},m:function si(fi,ei){if(fi.date()<ei.date())return-si(ei,fi);var ci=12*(ei.year()-fi.year())+(ei.month()-fi.month()),di=fi.clone().add(ci,dn),wi=ei-di<0,Ci=fi.clone().add(ci+(wi?-1:1),dn);return+(-(ci+(ei-di)/(wi?di-Ci:Ci-di))||0)},a:function(si){return si<0?Math.ceil(si)||0:Math.floor(si)},p:function(si){return{M:dn,y:mn,w:sn,d:on,D:gn,h:rn,m:an,s:nn,ms:tn,Q:hn}[si]||String(si||"").toLowerCase().replace(/s$/,"")},u:function(si){return si===void 0}},xn="en",En={};En[xn]=bn;var Rn=function(si){return si instanceof _i},ni=function(si,fi,ei){var ci;if(!si)return xn;if(typeof si=="string")En[si]&&(ci=si),fi&&(En[si]=fi,ci=si);else{var di=si.name;En[di]=si,ci=di}return!ei&&ci&&(xn=ci),ci||!ei&&xn},mi=function(si,fi){if(Rn(si))return si.clone();var ei=typeof fi=="object"?fi:{};return ei.date=si,ei.args=arguments,new _i(ei)},bi=Tn;bi.l=ni,bi.i=Rn,bi.w=function(si,fi){return mi(si,{locale:fi.$L,utc:fi.$u,x:fi.$x,$offset:fi.$offset})};var _i=(function(){function si(ei){this.$L=ni(ei.locale,null,!0),this.parse(ei)}var fi=si.prototype;return fi.parse=function(ei){this.$d=(function(ci){var di=ci.date,wi=ci.utc;if(di===null)return new Date(NaN);if(bi.u(di))return new Date;if(di instanceof Date)return new Date(di);if(typeof di=="string"&&!/Z$/i.test(di)){var Ci=di.match(yn);if(Ci){var ji=Ci[2]-1||0,Yi=(Ci[7]||"0").substring(0,3);return wi?new Date(Date.UTC(Ci[1],ji,Ci[3]||1,Ci[4]||0,Ci[5]||0,Ci[6]||0,Yi)):new Date(Ci[1],ji,Ci[3]||1,Ci[4]||0,Ci[5]||0,Ci[6]||0,Yi)}}return new Date(di)})(ei),this.$x=ei.x||{},this.init()},fi.init=function(){var ei=this.$d;this.$y=ei.getFullYear(),this.$M=ei.getMonth(),this.$D=ei.getDate(),this.$W=ei.getDay(),this.$H=ei.getHours(),this.$m=ei.getMinutes(),this.$s=ei.getSeconds(),this.$ms=ei.getMilliseconds()},fi.$utils=function(){return bi},fi.isValid=function(){return this.$d.toString()!=="Invalid Date"},fi.isSame=function(ei,ci){var di=mi(ei);return this.startOf(ci)<=di&&di<=this.endOf(ci)},fi.isAfter=function(ei,ci){return mi(ei)<this.startOf(ci)},fi.isBefore=function(ei,ci){return this.endOf(ci)<mi(ei)},fi.$g=function(ei,ci,di){return bi.u(ei)?this[ci]:this.set(di,ei)},fi.unix=function(){return Math.floor(this.valueOf()/1e3)},fi.valueOf=function(){return this.$d.getTime()},fi.startOf=function(ei,ci){var di=this,wi=!!bi.u(ci)||ci,Ci=bi.p(ei),ji=function(Ni,yi){var Hi=bi.w(di.$u?Date.UTC(di.$y,yi,Ni):new Date(di.$y,yi,Ni),di);return wi?Hi:Hi.endOf(on)},Yi=function(Ni,yi){return bi.w(di.toDate()[Ni].apply(di.toDate("s"),(wi?[0,0,0,0]:[23,59,59,999]).slice(yi)),di)},Pi=this.$W,Fi=this.$M,$i=this.$D,Wi="set"+(this.$u?"UTC":"");
vendor: 5,573 bytes, line 84
84switch(Ci){case mn:return wi?ji(1,0):ji(31,11);case dn:return wi?ji(1,Fi):ji(0,Fi+1);case sn:var hi=this.$locale().weekStart||0,Si=(Pi<hi?Pi+7:Pi)-hi;return ji(wi?$i-Si:$i+(6-Si),Fi);case on:case gn:return Yi(Wi+"Hours",0);case rn:return Yi(Wi+"Minutes",1);case an:return Yi(Wi+"Seconds",2);case nn:return Yi(Wi+"Milliseconds",3);default:return this.clone()}},fi.endOf=function(ei){return this.startOf(ei,!1)},fi.$set=function(ei,ci){var di,wi=bi.p(ei),Ci="set"+(this.$u?"UTC":""),ji=(di={},di[on]=Ci+"Date",di[gn]=Ci+"Date",di[dn]=Ci+"Month",di[mn]=Ci+"FullYear",di[rn]=Ci+"Hours",di[an]=Ci+"Minutes",di[nn]=Ci+"Seconds",di[tn]=Ci+"Milliseconds",di)[wi],Yi=wi===on?this.$D+(ci-this.$W):ci;if(wi===dn||wi===mn){var Pi=this.clone().set(gn,1);Pi.$d[ji](Yi),Pi.init(),this.$d=Pi.set(gn,Math.min(this.$D,Pi.daysInMonth())).$d}else ji&&this.$d[ji](Yi);return this.init(),this},fi.set=function(ei,ci){return this.clone().$set(ei,ci)},fi.get=function(ei){return this[bi.p(ei)]()},fi.add=function(ei,ci){var di,wi=this;ei=Number(ei);var Ci=bi.p(ci),ji=function(Fi){var $i=mi(wi);return bi.w($i.date($i.date()+Math.round(Fi*ei)),wi)};if(Ci===dn)return this.set(dn,this.$M+ei);if(Ci===mn)return this.set(mn,this.$y+ei);if(Ci===on)return ji(1);if(Ci===sn)return ji(7);var Yi=(di={},di[an]=6e4,di[rn]=36e5,di[nn]=1e3,di)[Ci]||1,Pi=this.$d.getTime()+ei*Yi;return bi.w(Pi,this)},fi.subtract=function(ei,ci){return this.add(-1*ei,ci)},fi.format=function(ei){var ci=this;if(!this.isValid())return"Invalid Date";var di=ei||"YYYY-MM-DDTHH:mm:ssZ",wi=bi.z(this),Ci=this.$locale(),ji=this.$H,Yi=this.$m,Pi=this.$M,Fi=Ci.weekdays,$i=Ci.months,Wi=function(yi,Hi,Ui,Ji){return yi&&(yi[Hi]||yi(ci,di))||Ui[Hi].substr(0,Ji)},hi=function(yi){return bi.s(ji%12||12,yi,"0")},Si=Ci.meridiem||function(yi,Hi,Ui){var Ji=yi<12?"AM":"PM";return Ui?Ji.toLowerCase():Ji},Ni={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Pi+1,MM:bi.s(Pi+1,2,"0"),MMM:Wi(Ci.monthsShort,Pi,$i,3),MMMM:Wi($i,Pi),D:this.$D,DD:bi.s(this.$D,2,"0"),d:String(this.$W),dd:Wi(Ci.weekdaysMin,this.$W,Fi,2),ddd:Wi(Ci.weekdaysShort,this.$W,Fi,3),dddd:Fi[this.$W],H:String(ji),HH:bi.s(ji,2,"0"),h:hi(1),hh:hi(2),a:Si(ji,Yi,!0),A:Si(ji,Yi,!1),m:String(Yi),mm:bi.s(Yi,2,"0"),s:String(this.$s),ss:bi.s(this.$s,2,"0"),SSS:bi.s(this.$ms,3,"0"),Z:wi};return di.replace(fn,function(yi,Hi){return Hi||Ni[yi]||wi.replace(":","")})},fi.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},fi.diff=function(ei,ci,di){var wi,Ci=bi.p(ci),ji=mi(ei),Yi=6e4*(ji.utcOffset()-this.utcOffset()),Pi=this-ji,Fi=bi.m(this,ji);return Fi=(wi={},wi[mn]=Fi/12,wi[dn]=Fi,wi[hn]=Fi/3,wi[sn]=(Pi-Yi)/6048e5,wi[on]=(Pi-Yi)/864e5,wi[rn]=Pi/36e5,wi[an]=Pi/6e4,wi[nn]=Pi/1e3,wi)[Ci]||Pi,di?Fi:bi.a(Fi)},fi.daysInMonth=function(){return this.endOf(dn).$D},fi.$locale=function(){return En[this.$L]},fi.locale=function(ei,ci){if(!ei)return this.$L;var di=this.clone(),wi=ni(ei,ci,!0);return wi&&(di.$L=wi),di},fi.clone=function(){return bi.w(this.$d,this)},fi.toDate=function(){return new Date(this.valueOf())},fi.toJSON=function(){return this.isValid()?this.toISOString():null},fi.toISOString=function(){return this.$d.toISOString()},fi.toString=function(){return this.$d.toUTCString()},si})(),oi=_i.prototype;return mi.prototype=oi,[["$ms",tn],["$s",nn],["$m",an],["$H",rn],["$W",on],["$M",dn],["$y",mn],["$D",gn]].forEach(function(si){oi[si[1]]=function(fi){return this.$g(fi,si[0],si[1])}}),mi.extend=function(si,fi){return si.$i||(si(fi,_i,mi),si.$i=!0),mi},mi.locale=ni,mi.isDayjs=Rn,mi.unix=function(si){return mi(1e3*si)},mi.en=En[xn],mi.Ls=En,mi.p={},mi})()}),r=e(function(en,He){en.exports=function(tn,nn,an){var rn=nn.prototype;an.utc=function(yn){return new nn({date:yn,utc:!0,args:arguments})},rn.utc=function(yn){var fn=an(this.toDate(),{locale:this.$L,utc:!0});return yn?fn.add(this.utcOffset(),"minute"):fn},rn.local=function(){return an(this.toDate(),{locale:this.$L,utc:!1})};var on=rn.parse;rn.parse=function(yn){yn.utc&&(this.$u=!0),this.$utils().u(yn.$offset)||(this.$offset=yn.$offset),on.call(this,yn)};var sn=rn.init;rn.init=function(){if(this.$u){var yn=this.$d;this.$y=yn.getUTCFullYear(),this.$M=yn.getUTCMonth(),this.$D=yn.getUTCDate(),this.$W=yn.getUTCDay(),this.$H=yn.getUTCHours(),this.$m=yn.getUTCMinutes(),this.$s=yn.getUTCSeconds(),this.$ms=yn.getUTCMilliseconds()}else sn.call(this)};var dn=rn.utcOffset;rn.utcOffset=function(yn,fn){var bn=this.$utils().u;if(bn(yn))return this.$u?0:bn(this.$offset)?dn.call(this):this.$offset;var Mn=Math.abs(yn)<=16?60*yn:yn,Tn=this;if(fn)return Tn.$offset=Mn,Tn.$u=yn===0,Tn;if(yn!==0){var xn=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(Tn=this.local().add(Mn+xn,"minute")).$offset=Mn,Tn.$x.$localOffset=xn}else Tn=this.utc();return Tn};var hn=rn.format;rn.format=function(yn){return hn.call(this,yn||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},rn.valueOf=function(){var yn=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||new Date().getTimezoneOffset());return this.$d.valueOf()-6e4*yn},rn.isUTC=function(){return!!this.$u},rn.toISOString=function(){return this.toDate().toISOString()},rn.toString=function(){return this.toDate().toUTCString()};var mn=rn.toDate;rn.toDate=function(yn){return yn==="s"&&this.$offset?an(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():mn.call(this)};var gn=rn.diff;rn.diff=function(yn,fn,bn){if(yn&&this.$u===yn.$u)return gn.call(this,yn,fn,bn);var Mn=this.local(),Tn=an(yn).local();return gn.call(Mn,Tn,fn,bn)}}});const i={dateTimeLocal:"YYYY-MM-DD[T]HH:mm:ss",dateTimeUTC:"YYYYMMDD[T]HHmmss[Z]",allDay:"YYYYMMDD"};
84function s(en){const He=new URLSearchParams;return Object.keys(en).sort().forEach(tn=>{const nn=en[tn];nn!=null&&He.append(tn,nn)}),He.toString().replace(/\+/g,"%20")}function a({startTime:en,endTime:He},tn){const nn=i[tn];return{start:en.format(nn),end:He.format(nn)}}n.extend(r);const o=(en,He=!0)=>{const{start:tn,end:nn,duration:an}=en,rn=(function(dn,hn){if(dn==null)return{};var mn,gn,yn={},fn=Object.keys(dn);for(gn=0;gn<fn.length;gn++)hn.indexOf(mn=fn[gn])>=0||(yn[mn]=dn[mn]);return yn})(en,["start","end","duration"]),on=He?n(tn).utc():n(tn),sn=nn?He?n(nn).utc():n(nn):(()=>{if(en.allDay)return on.add(1,"day");if(an&&an.length==2){const dn=Number(an[0]);return on.add(dn,an[1])}return on})();return t({},rn,{startTime:on,endTime:sn})},u=en=>{const He=o(en),{start:tn,end:nn}=a(He,He.allDay?"allDay":"dateTimeUTC"),an={action:"TEMPLATE",text:He.title,details:He.description,location:He.location,trp:He.busy,dates:tn+"/"+nn,recur:He.rRule?"RRULE:"+He.rRule:void 0};return He.guests&&He.guests.length&&(an.add=He.guests.join()),`https://calendar.google.com/calendar/render?${s(an)}`},l=en=>{const He=o(en,!1),{start:tn,end:nn}=a(He,"dateTimeLocal"),an={path:"/calendar/action/compose",rru:"addevent",startdt:tn,enddt:nn,subject:He.title,body:He.description,location:He.location,allday:He.allDay||!1};return He.guests&&He.guests.length&&(an.to=He.guests.join()),`https://outlook.live.com/calendar/0/action/compose?${s(an)}`},y$1=en=>{const He=o(en),tn=(He.description||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,`
85`).replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),nn=(He.location||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,`
86`).replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),{start:an,end:rn}=a(He,He.allDay?"allDay":"dateTimeUTC"),on=n(new Date).utc().format(i.dateTimeUTC),sn=[{key:"BEGIN",value:"VCALENDAR"},{key:"VERSION",value:"2.0"},{key:"PRODID",value:"-//AnandChowdhary//calendar-link//EN"},{key:"BEGIN",value:"VEVENT"},{key:"URL",value:He.url},{key:"DTSTART",value:an},{key:"DTEND",value:rn},{key:"DTSTAMP",value:on},...He.allDay?[{key:"X-MICROSOFT-CDO-ALLDAYEVENT",value:"TRUE"},{key:"X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT",value:"TRUE"}]:[],{key:"RRULE",value:He.rRule},{key:"SUMMARY",value:He.title},{key:"DESCRIPTION",value:tn},{key:"LOCATION",value:nn},{key:"ORGANIZER",value:He.organizer},{key:"STATUS",value:He.status},{key:"UID",value:He.uid||Math.floor(1e5*Math.random()).toString().replace(".","")},{key:"END",value:"VEVENT"},{key:"END",value:"VCALENDAR"}];let dn="";return sn.forEach(hn=>{if(hn.value)if(hn.key=="ORGANIZER"){const mn=hn.value;dn+=`${hn.key};${encodeURIComponent(`CN=${mn.name}:MAILTO:${mn.email}\r
87`)}`}else dn+=`${hn.key}:${encodeURIComponent(`${hn.value}\r
88`)}`}),`data:text/calendar;charset=utf8,${dn}`},_sfc_main$I={name:"PeriodList",props:{periods:{type:Array,required:!0},eventTitle:{type:String,required:!0},eventLocation:{type:String,required:!0},eventDescription:{type:String,required:!0}},data(){return{collapsed:!0,calendarLinksIndex:!1,calendarLinks:{}}},computed:{...mapState("context",["locale"]),formattedPeriods:function(){return this.periods.map(en=>{let He=hooks(en.value),tn=hooks(en.end_value);const nn={title:this.eventTitle,start:He.toISOString(),end:tn.toISOString(),location:this.eventLocation,description:this.eventDescription,allDay:!1};return{start:He,end:tn,sameDay:He.date()===tn.date(),weekdays:en.weekdays??[],calendarLinks:[{title:this.$t("Add to Google calendar"),url:u(nn),target:"_blank"},{title:this.$t("Add to iCalendar"),url:y$1(nn),target:"_self"},{title:this.$t("Add to Outlook"),url:l(nn),target:"_self"}]}}).sort((en,He)=>Math.sign(en.start.unix()-He.start.unix()))}},methods:{openCalendarLinks(en,He){this.calendarLinksIndex=en,this.calendarLinks=He.currentTarget.parentNode,document.addEventListener("click",this.clickOutside)},closeCalendarLinks(){this.calendarLinksIndex=!1,this.calendarLinks={},document.removeEventListener("click",this.clickOutside)},clickOutside(en){if(en.defaultPrevented)return;const He=this.calendarLinks.querySelector(".period__calendar-link-list");He!==en.target&&!He.contains(en.target)&&this.closeCalendarLinks()},showWeekdaysForPeriod(en){if(en.weekdays.length===0||en.weekdays.length===7)return!1;const He=Math.ceil((en.end-en.start)/(1e3*60*60*24)),tn=en.end-en.start===0;return!(en.weekdays.length>=He||tn)},localizeWeekday(en){return{monday:new Date("1970-01-05"),tuesday:new Date("1970-01-06"),wednesday:new Date("1970-01-07"),thursday:new Date("1970-01-01"),friday:new Date("1970-01-02"),saturday:new Date("1970-01-03"),sunday:new Date("1970-01-04")}
88[en].toLocaleString(this.locale,{weekday:"long"})??en}}},_hoisted_1$J={class:"periods"},_hoisted_2$G={class:"periods__data"},_hoisted_3$E={class:"periods__data-date"},_hoisted_4$u={key:0,class:"periods__data-time"},_hoisted_5$s={key:1,class:"periods__data-time"},_hoisted_6$p={class:"periods__data-date"},_hoisted_7$o={key:0,class:"periods__data-time"},_hoisted_8$k={class:"periods__data-date"},_hoisted_9$j={key:1,class:"periods__data-time"},_hoisted_10$i={class:"period__calendar-links"},_hoisted_11$d=["title","onClick"],_hoisted_12$b={key:0,class:"period__calendar-link-list"},_hoisted_13$9=["href","target"],_hoisted_14$7={key:0,class:"period__weekdays"},_hoisted_15$6={class:"period__weekdays-list"};function _sfc_render$I(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("ul",_hoisted_1$J,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.formattedPeriods,(sn,dn)=>withDirectives((openBlock(),createElementBlock("li",{key:dn,class:"periods__period"},[createBaseVNode("span",_hoisted_2$G,[sn.sameDay?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",_hoisted_3$E,toDisplayString(sn.start.format("DD/MM/YYYY")),1),sn.start.format("HH:mm")!==sn.end.format("HH:mm")?(openBlock(),createElementBlock("span",_hoisted_4$u,", "+toDisplayString(sn.start.format("HH:mm"))+" - "+toDisplayString(sn.end.format("HH:mm")),1)):sn.start.format("HH:mm")!=="00:00"?(openBlock(),createElementBlock("span",_hoisted_5$s,", "+toDisplayString(sn.start.format("HH:mm")),1)):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("span",_hoisted_6$p,toDisplayString(sn.start.format("DD/MM/YYYY")),1),sn.start.format("HH:mm")!=="00:00"||sn.start.format("HH:mm")!==sn.end.format("HH:mm")?(openBlock(),createElementBlock("span",_hoisted_7$o,", "+toDisplayString(sn.start.format("HH:mm")),1)):createCommentVNode("",!0),He[1]||(He[1]=createTextVNode(" - ",-1)),createBaseVNode("span",_hoisted_8$k,toDisplayString(sn.end.format("DD/MM/YYYY")),1),sn.end.format("HH:mm")!=="00:00"||sn.start.format("HH:mm")!==sn.end.format("HH:mm")?(openBlock(),createElementBlock("span",_hoisted_9$j,", "+toDisplayString(sn.end.format("HH:mm")),1)):createCommentVNode("",!0)],64))]),createBaseVNode("span",_hoisted_10$i,[createBaseVNode("a",{href:"#",title:en.$t("Add to calendar"),onClick:withModifiers(hn=>rn.openCalendarLinks(dn,hn),["prevent"])},[createVNode(on,{icon:["far","calendar-plus"],class:"period__calendar-links-icon"})],8,_hoisted_11$d),an.calendarLinksIndex===dn?(openBlock(),createElementBlock("div",_hoisted_12$b,[(openBlock(!0),createElementBlock(Fragment,null,renderList(sn.calendarLinks,(hn,mn)=>(openBlock(),createElementBlock("a",{key:mn,href:hn.url,target:hn.target,class:"period__calendar-link"},toDisplayString(hn.title),9,_hoisted_13$9))),128))])):createCommentVNode("",!0)]),rn.showWeekdaysForPeriod(sn)?(openBlock(),createElementBlock("div",_hoisted_14$7,[createBaseVNode("p",null,toDisplayString(en.$t("On the following weekdays"))+":",1),createBaseVNode("ul",_hoisted_15$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(sn.weekdays,(hn,mn)=>(openBlock(),createElementBlock("li",{key:mn},toDisplayString(rn.localizeWeekday(hn)),1))),128))])])):createCommentVNode("",!0)])),[[vShow,dn<5||!an.collapsed]])),128))]),tn.periods.length>5?(openBlock(),createElementBlock("a",{key:0,href:"#",class:"periods__toggle-data",onClick:He[0]||(He[0]=withModifiers(sn=>an.collapsed=!an.collapsed,["prevent"]))},[createTextVNode(toDisplayString(an.collapsed?en.$t("All dates"):en.$t("Less dates"))+" ",1),an.collapsed?(openBlock(),createBlock(on,{key:0,icon:["fas","chevron-down"]})):createCommentVNode("",!0),an.collapsed?createCommentVNode("",!0):(openBlock(),createBlock(on,{key:1,icon:["fas","chevron-up"]}))])):createCommentVNode("",!0)],64)}const PeriodList=_export_sfc(_sfc_main$I,[["render",_sfc_render$I],["__scopeId","data-v-7296c08a"]]),_sfc_main$H={name:"ProductHero",components:{FavoritesToggle},props:{title:{type:String,required:!0},type:{type:String,required:!1,default:null},locations:{type:Array,required:!1,default:()=>[]},isRoute:{type:Boolean,required:!1,default:!1}},computed:{...mapState("context",["mainContent"])}},_hoisted_1$I={class:"product-hero"},_hoisted_2$F={class:"product-hero__content"},_hoisted_3$D={class:"product-hero__details"},_hoisted_4$t={class:"product-hero__title-wrapper"},_hoisted_5$r={class:"product-hero__title"},_hoisted_6$o={class:"product-hero__summary"},_hoisted_7$n={class:"product-hero__cta"};function _sfc_render$H(en,He,tn,nn,an,rn){const on=resolveComponent("favorites-toggle");return openBlock(),createElementBlock("div",_hoisted_1$I,[createBaseVNode("div",_hoisted_2$F,[createBaseVNode("div",_hoisted_3$D,[createBaseVNode("div",_hoisted_4$t,[createBaseVNode("h1",_hoisted_5$r,toDisplayString(tn.title),1),createVNode(on,{"content-id":en.mainContent.uuid,type:en.mainContent.contentType,highlight:!0},null,8,["content-id","type"])]),createBaseVNode("div",_hoisted_6$o,[tn.type&&tn.isRoute?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(en.$t("{type} from {localities}",{type:tn.type,localities:tn.locations.join(", ")})),1)],64)):tn.type&&tn.locations.length>0?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(en.$t("{type} in {locality}",{type:tn.type,locality:tn.locations[0]})),1)],64)):tn.type?(openBlock(),createElementBlock(Fragment,{key:2},[createTextVNode(toDisplayString(tn.type),1)],64)):createCommentVNode("",!0)]),He[0]||(He[0]=createBaseVNode("div",{class:"line","aria-hidden":"true"},null,-1))]),createBaseVNode("div",_hoisted_7$n,[renderSlot(en.$slots,"default",{},void 0,!0)])])])}const ProductHero=_export_sfc(_sfc_main$H,[["render",_sfc_render$H],["__scopeId","data-v-549dd27b"]]),_sfc_main$G={name:"PhotoGrid",components:{ResponsiveImage},props:{images:{type:Array,required:!0}},data(){return{selectedImageIndex:null}},computed:{selectedImage(){return typeof this.selectedImageIndex!="number"||this.images.length<this.selectedImageIndex+1?null:this.images[this.selectedImageIndex]},photoGridImagesClass(){let en=this.images.length;return en>5&&(en=5),"photo-grid__images--"+en}},mounted(){document.addEventListener("keyup",en=>{switch(en.code){case"ArrowLeft":this.previous();break;case"ArrowRight":this.next();break;case"Escape":this.close();break}})},methods:{getImageStyle,showTotalPhotos(en){return en===4&&this.images.length>5},next(){typeof this.selectedImageIndex=="number"&&this.selectedImageIndex<this.images.length-1&&this.selectedImageIndex++},previous(){this.selectedImageIndex!==null&&this.selectedImageIndex>0&&this.selectedImageIndex--},close(){this.selectedImageIndex=null}}},_hoisted_1$H={class:"photo-grid"},_hoisted_2$E=["onClick"],_hoisted_3$C={key:0,class:"photo-grid__total-photos"},_hoisted_4$s={class:"photo-grid__total-photos-text"},_hoisted_5$q={key:0,class:"photo-grid__album",role:"dialog","aria-modal":"true"},_hoisted_6$n=["title"],_hoisted_7$m={class:"photo-grid__overlay"},_hoisted_8$j=["title"],_hoisted_9$i={class:"photo-grid__selected-image"},_hoisted_10$h=["title"];function _sfc_render$G(en,He,tn,nn,an,rn){const on=resolveComponent("responsive-image");return openBlock(),createElementBlock("div",_hoisted_1$H,[createBaseVNode("div",{class:normalizeClass(["photo-grid__images",rn.photoGridImagesClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.images.slice(0,5),(sn,dn)=>(openBlock(),createElementBlock("div",{key:dn,class:normalizeClass(["photo-grid__image-wrapper",["photo-grid__image-wrapper","photo-grid__image-wrapper--"+(dn+1),{"photo-grid__image-wrapper--total-photos":rn.showTotalPhotos(dn)}]]),onClick:hn=>en.selectedImageIndex=dn},[createVNode(on,{fallback:rn.getImageStyle(sn,"panoramic_md"),md:rn.getImageStyle(sn,"panoramic_md"),xl:rn.getImageStyle(sn,"panoramic_xl"),class:"photo-grid__image"},null,8,["fallback","md","xl"]),rn.showTotalPhotos(dn)?(openBlock(),createElementBlock("div",_hoisted_3$C,[createBaseVNode("span",_hoisted_4$s,toDisplayString(en.$t("{count} photos",{count:tn.images.length})),1)])):createCommentVNode("",!0)],10,_hoisted_2$E))),128))],2),rn.selectedImage?(openBlock(),createElementBlock("div",_hoisted_5$q,[createBaseVNode("a",{class:"photo-grid__album-control photo-grid__album-control--close",title:en.$t("Close"),onClick:He[0]||(He[0]=withModifiers((...sn)=>rn.close&&rn.close(...sn),["prevent"]))},[...He[3]||(He[3]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M24.8,23.4l-7.3,7.4c-0.2,0.2-0.6,0.2-0.8,0l-1-1c-0.2-0.2-0.2-0.6,0-0.8l5.9-5.9l-5.9-5.9c-0.2-0.2-0.2-0.6,0-0.8l1-1c0.2-0.2,0.6-0.2,0.8,0l7.3,7.4C25,22.8,25,23.2,24.8,23.4z",fill:"
88currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"}),createBaseVNode("path",{d:"M21.7,22.6l7.3-7.4c0.2-0.2,0.6-0.2,0.8,0l1,1c0.2,0.2,0.2,0.6,0,0.8L25,23l5.9,5.9c0.2,0.2,0.2,0.6,0,0.8l-1,1c-0.2,0.2-0.6,0.2-0.8,0l-7.3-7.4C21.5,23.2,21.5,22.8,21.7,22.6z",fill:"currentColor"})],-1)])],8,_hoisted_6$n),createBaseVNode("div",_hoisted_7$m,[en.selectedImageIndex>0?(openBlock(),createElementBlock("a",{key:0,class:"photo-grid__album-control photo-grid__album-control--previous",title:en.$t("Previous"),onClick:He[1]||(He[1]=withModifiers((...sn)=>rn.previous&&rn.previous(...sn),["prevent"]))},[...He[4]||(He[4]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M16.3,22.5l7.3-7.4c0.2-0.2,0.6-0.2,0.8,0l1,1c0.2,0.2,0.2,0.6,0,0.8l-5.9,5.9l5.9,5.9c0.2,0.2,0.2,0.6,0,0.8l-1,1c-0.2,0.2-0.6,0.2-0.8,0l-7.3-7.4C16.1,23.1,16.1,22.7,16.3,22.5z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"})],-1)])],8,_hoisted_8$j)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_9$i,[createVNode(on,{fallback:rn.getImageStyle(rn.selectedImage,"original_md"),md:rn.getImageStyle(rn.selectedImage,"original_md"),xl:rn.getImageStyle(rn.selectedImage,"original_xl")},null,8,["fallback","md","xl"])]),en.selectedImageIndex<tn.images.length-1?(openBlock(),createElementBlock("a",{key:1,class:"photo-grid__album-control photo-grid__album-control--next",title:en.$t("Next"),onClick:He[2]||(He[2]=withModifiers((...sn)=>rn.next&&rn.next(...sn),["prevent"]))},[...He[5]||(He[5]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M28.6,23.4l-7.3,7.4c-0.2,0.2-0.6,0.2-0.8,0l-1-1c-0.2-0.2-0.2-0.6,0-0.8l5.9-5.9l-5.9-5.9c-0.2-0.2-0.2-0.6,0-0.8l1-1c0.2-0.2,0.6-0.2,0.8,0l7.3,7.4C28.8,22.8,28.8,23.2,28.6,23.4z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"})],-1)])],8,_hoisted_10$h)):createCommentVNode("",!0)])])):createCommentVNode("",!0)])}const PhotoGrid=_export_sfc(_sfc_main$G,[["render",_sfc_render$G],["__scopeId","data-v-29505899"]]),_sfc_main$F={name:"ContactInfo",components:{CustomMarkerIcon,ButtonComponent,LMap:io,LMarker:uo,LTileLayer:vo},props:{title:{type:String,required:!0},location:{type:String,required:!1,default:null},address:{type:String,required:!0},postalCode:{type:String,required:!0},city:{type:String,required:!0},relatedProducts:{type:Array,required:!1,default:()=>[]},email:{type:String,required:!1,default:null},phone:{type:Array,required:!1,default:()=>[]},mobile:{type:String,required:!1,default:null},website:{type:Array,required:!1,default:()=>[]},links:{type:Array,required:!1,default:()=>[]},bookingUrl:{type:String,required:!1,default:null},latitude:{type:Number,required:!0},longitude:{type:Number,required:!0}},computed:{tileAttribution(){return'&copy; <a href="https://www.openstreetmap.org">OpenStreetMap</a> contributors, Tiles generated by <a href="https://www.champs-libres.coop" target="_blank">Champs-Libres</a>'}}},_hoisted_1$G={class:"contact-info"},_hoisted_2$D={class:"contact-info__contact"},_hoisted_3$B={class:"contact-info__location-related contact-info__contact-column"},_hoisted_4$r={class:"contact-info__location"},_hoisted_5$p={key:0},_hoisted_6$m={key:0,class:"contact-info__also-on-this-address"},_hoisted_7$l={class:"contact-info__also-on-this-address-title"},_hoisted_8$i=["href"],_hoisted_9$h={class:"contact-info__related-product-title"},_hoisted_10$g={key:0,class:"contact-info__contact-information contact-info__contact-column"},_hoisted_11$c=["href"],_hoisted_12$a=["href"],_hoisted_13$8={key:1,class:"contact-info__links contact-info__contact-column"},_hoisted_14$6=["href"],_hoisted_15$5=["href"];function _sfc_render$F(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("button-component"),dn=resolveComponent("l-tile-layer"),hn=resolveComponent("custom-marker-icon"),mn=resolveComponent("l-marker"),gn=resolveComponent("l-map");return openBlock(),createElementBlock("div",_hoisted_1$G,[createBaseVNode("div",_hoisted_2$D,[createBaseVNode("div",_hoisted_3$B,[createBaseVNode("div",_hoisted_4$r,[createVNode(on,{icon:["fas","map-marker-alt"],class:"contact-info__location-icon contact-info__contact-column-icon"}),tn.location?(openBlock(),createElementBlock("p",_hoisted_5$p,toDisplayString(tn.location),1)):createCommentVNode("",!0),createBaseVNode("p",null,toDisplayString(tn.address),1),createBaseVNode("p",null,toDisplayString(tn.postalCode)+" "+toDisplayString(tn.city),1)]),tn.relatedProducts.length>0?(openBlock(),createElementBlock("div",_hoisted_6$m,[createBaseVNode("p",_hoisted_7$l,toDisplayString(en.$t("Also on this address"))+": ",1),createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.relatedProducts,(yn,fn)=>(openBlock(),createElementBlock("li",{key:fn,class:"contact-info__related-product"},[createBaseVNode("a",{href:en.$store.getters["context/multilingualUrl"](yn.alias)},[createVNode(on,{icon:["fas","arrow-right"],class:"contact-info__related-product-icon"}),createBaseVNode("span",_hoisted_9$h,toDisplayString(yn.title),1)],8,_hoisted_8$i)]))),128))])])):createCommentVNode("",!0)]),tn.email||tn.phone.length>0||tn.mobile?(openBlock(),createElementBlock("div",_hoisted_10$g,[tn.email?(openBlock(),createElementBlock("a",{key:0,href:"mailto:"+tn.email,class:"contact-info__email"},[createVNode(on,{icon:["far","envelope"],class:"contact-info__email-icon contact-info__contact-column-icon"}),createTextVNode(" "+toDisplayString(tn.email),1)],8,_hoisted_11$c)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.phone,(yn,fn)=>(openBlock(),createElementBlock("a",{key:fn,href:"tel:"+yn,class:"contact-info__phone"},[fn==0?(openBlock(),createBlock(on,{key:0,icon:["fas","phone"],class:"contact-info__phone-icon contact-info__contact-column-icon"})):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(yn),1)],8,_hoisted_12$a))),128))])):createCommentVNode("",!0),tn.website.length||tn.links.length||tn.bookingUrl?(openBlock(),createElementBlock("div",_hoisted_13$8,[tn.website||tn.links.length?(openBlock(),createBlock(on,{key:0,icon:["fas","link"],class:"contact-info__contact-column-icon"})):createCommentVNode("",!0),tn.website?(openBlock(),createElementBlock("a",{key:1,href:tn.website,class:"contact-info__website"},[createVNode(on,{icon:["fas","arrow-right"],class:"contact-info__links-icon"}),createTextVNode(" "+toDisplayString(en.$t("Website")),1)],8,_hoisted_14$6)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.links,(yn,fn)=>(openBlock(),createElementBlock("a",{key:fn,href:yn.url,class:"contact-info__website"},[createVNode(on,{icon:["fas","arrow-right"],class:"contact-info__links-icon"}),createTextVNode(" "+toDisplayString(yn.title??yn.url),1)],8,_hoisted_15$5))),128)),tn.bookingUrl?(openBlock(),createBlock(sn,{key:2,name:en.$t("Book online"),url:tn.bookingUrl,icon:["far","calendar-check"],target:"_blank",class:"contact-info__book-online"},null,8,["name","url"])):createCommentVNode("",!0)])):createCommentVNode("",!0)]),createVNode(gn,{class:"contact-info__map",style:{height:"40rem"},zoom:13,"min-zoom":8,"max-zoom":16,center:[tn.latitude,tn.longitude],"use-global-leaflet":!0,options:{scrollWheelZoom:!1,touchZoom:!0}},{default:withCtx(()=>[createVNode(dn,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:rn.tileAttribution},null,8,["attribution"]),createVNode(mn,{"lat-lng":[tn.latitude,tn.longitude],options:{title:tn.title}},{default:withCtx(()=>[createVNode(hn)]),_:1},8,["lat-lng","options"])]),_:1},8,["center"])])}const ContactInfo=_export_sfc(_sfc_main$F,[["render",_sfc_render$F],["__scopeId","data-v-9f90a734"]]),_sfc_main$E={name:"TouristicLabel",props:{name:{type:String,required:!0},image:{type:String,default:null},showArrow:Boolean}},_hoisted_1$F={class:"label"},_hoisted_2$C=["src"],_hoisted_3$A={class:"label__name"};function _sfc_render$E(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$F,[tn.image?(openBlock(),createElementBlock("img",{key:0,src:tn.image,alt:"",class:"label__image"},null,8,_hoisted_2$C)):createCommentVNode("",!0),createBaseVNode("span",_hoisted_3$A,toDisplayString(tn.name),1),tn.showArrow?(openBlock(),createBlock(on,{key:1,icon:["fas","arrow-right"],class:"label__icon"})):createCommentVNode("",!0)])}const TouristicLabel=_export_sfc(_sfc_main$E,[["render",_sfc_render$E],["__scopeId","data-v-42d0311b"]]),_sfc_main$D={name:"Labels",components:{TouristicLabel},props:{labels:{type:Array,required:!0},michelinStars:{type:Number,required:!1},gaultMillauScore:{type:Number,required:!1},showHpwvlLabel:{type:Boolean,required:!1,default:!1}},computed:{labelsWithImages(){return this.labels.filter(en=>en.image)},labelsWithoutImages(){return this.labels.filter(en=>!en.image)},michelinLabel(){if(!this.michelinStars||this.michelinStars<1)return;let en="Michelin ";for(let He=0;He<this.michelinStars;He++)en+="*";return en}}},_hoisted_1$E={key:0,class:"labels"},_hoisted_2$B=["href"],_hoisted_3$z={key:1,class:"labels__label labels__label--with-image"},_hoisted_4$q=["href"],_hoisted_5$o={key:1,class:"labels__label labels__label--without-image"},_hoisted_6$l={key:0,class:"labels__label labels__label--without-image labels__label--michelin-stars"},_hoisted_7$k={key:1,class:"labels__label labels__label--without-image labels__label--gault-millau"},_hoisted_8$h={key:2,class:"labels__label labels__label--without-image labels__label--hpwvl"},_hoisted_9$g={href:"https://www.100procentwest-vlaams.be/"};function _sfc_render$D(en,He,tn,nn,an,rn){const on=resolveComponent("touristic-label");return tn.labels.length>0||tn.michelinStars||tn.gaultMillauScore||tn.showHpwvlLabel?(openBlock(),createElementBlock("div",_hoisted_1$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.labelsWithImages,(sn,dn)=>(openBlock(),createElementBlock(Fragment,{key:dn},[sn.url?(openBlock(),createElementBlock("a",{key:0,href:sn.url,class:"labels__label labels__label--with-image"},[createVNode(on,{name:sn.name,image:sn.image,"show-arrow":!0},null,8,["name","image"])],8,_hoisted_2$B)):(openBlock(),createElementBlock("div",_hoisted_3$z,[createVNode(on,{name:sn.name,image:sn.image},null,8,["name","image"])]))],64))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.labelsWithoutImages,(sn,dn)=>(openBlock(),createElementBlock(Fragment,{key:dn},[sn.url?(openBlock(),createElementBlock("a",{key:0,href:sn.url,class:"labels__label labels__label--without-image"},[createVNode(on,{name:sn.name,"show-arrow":!0},null,8,["name"])],8,_hoisted_4$q)):(openBlock(),createElementBlock("div",_hoisted_5$o,[createVNode(on,{name:sn.name}
88,null,8,["name"])]))],64))),128)),tn.michelinStars?(openBlock(),createElementBlock("div",_hoisted_6$l,[createVNode(on,{name:rn.michelinLabel},null,8,["name"])])):createCommentVNode("",!0),tn.gaultMillauScore?(openBlock(),createElementBlock("div",_hoisted_7$k,[createVNode(on,{name:"Gault Millau "+tn.gaultMillauScore},null,8,["name"])])):createCommentVNode("",!0),tn.showHpwvlLabel?(openBlock(),createElementBlock("div",_hoisted_8$h,[createBaseVNode("a",_hoisted_9$g,[createVNode(on,{name:en.$t("100% West-Flemish"),image:"/logos/Logo_100ProcentWestVlaams.svg"},null,8,["name"])])])):createCommentVNode("",!0)])):createCommentVNode("",!0)}const Labels=_export_sfc(_sfc_main$D,[["render",_sfc_render$D],["__scopeId","data-v-ecd1d39e"]]),_sfc_main$C={data(){return{selectedTab:{},tabs:[]}},mounted(){this.selectTab(this.tabs[0])},methods:{selectTab(en){this.selectedTab=en,this.tabs.forEach(He=>{He.isActive=He===en})}}},_hoisted_1$D={class:"tabs"},_hoisted_2$A=["onClick"];function _sfc_render$C(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$D,[(openBlock(!0),createElementBlock(Fragment,null,renderList(an.tabs,on=>(openBlock(),createElementBlock("a",{key:on.title,href:"#",class:normalizeClass(["tabs__tab",{"tabs__tab--selected":on===an.selectedTab}]),onClick:withModifiers(sn=>rn.selectTab(on),["prevent"])},toDisplayString(on.title),11,_hoisted_2$A))),128)),renderSlot(en.$slots,"default",{},void 0,!0)])}const Tabs=_export_sfc(_sfc_main$C,[["render",_sfc_render$C],["__scopeId","data-v-88fc4534"]]),_sfc_main$B={props:{title:{type:String,required:!0}},data(){return{isActive:!0}},created(){this.$parent.tabs.push(this)},methods:{selectTab(){this.$parent.selectTab(this)}}},_hoisted_1$C={class:"tab-trigger__title"},_hoisted_2$z={class:"tab-trigger__icon"},_hoisted_3$y={class:"tab"};function _sfc_render$B(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("a",{href:"#",class:normalizeClass(["tab-trigger",{"tab-trigger--selected":an.isActive}]),onClick:He[0]||(He[0]=withModifiers((...sn)=>rn.selectTab&&rn.selectTab(...sn),["prevent"]))},[createBaseVNode("div",_hoisted_1$C,toDisplayString(tn.title),1),createBaseVNode("div",_hoisted_2$z,[an.isActive?(openBlock(),createBlock(on,{key:0,icon:["fas","chevron-down"]})):createCommentVNode("",!0),an.isActive?createCommentVNode("",!0):(openBlock(),createBlock(on,{key:1,icon:["fas","chevron-up"]}))])],2),withDirectives(createBaseVNode("div",_hoisted_3$y,[renderSlot(en.$slots,"default",{},void 0,!0)],512),[[vShow,an.isActive]])],64)}const Tab=_export_sfc(_sfc_main$B,[["render",_sfc_render$B],["__scopeId","data-v-44410037"]]),_sfc_main$A={name:"Facilities",props:{facilities:{type:Array,required:!0}},data(){return{selectedFacility:null,hoveredFacility:null}}},_hoisted_1$B={class:"facilities"},_hoisted_2$y={key:0,class:"facilities__description"},_hoisted_3$x=["onMouseenter","onClick"];function _sfc_render$A(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$B,[(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.facilities,(sn,dn)=>(openBlock(),createElementBlock("span",{key:dn,class:"facilities__facility"},[createTextVNode(toDisplayString(sn.name)+" ",1),sn.description?(openBlock(),createElementBlock("span",_hoisted_2$y,[createBaseVNode("a",{class:"facilities__description-icon",onMouseenter:hn=>an.hoveredFacility=dn,onMouseleave:He[0]||(He[0]=hn=>an.hoveredFacility=null),onClick:withModifiers(hn=>an.selectedFacility=an.selectedFacility===dn?null:dn,["prevent"])},[createVNode(on,{icon:["fas","info"]})],40,_hoisted_3$x),withDirectives(createBaseVNode("span",{class:"poi__facility-description-content"},toDisplayString(sn.description),513),[[vShow,an.selectedFacility===dn||an.hoveredFacility===dn]])])):createCommentVNode("",!0)]))),128))])}const Facilities=_export_sfc(_sfc_main$A,[["render",_sfc_render$A],["__scopeId","data-v-8ba6bc89"]]),_sfc_main$z={components:{PageTeaser},computed:{...mapState("context",["locale","mainContent"]),...mapState("suggestions",["nearby"])},mounted(){this.mainContent&&this.fetchNearby({nid:this.mainContent.raw.data[0].attributes.drupal_internal__nid,langcode:this.locale})},methods:{...mapActions("suggestions",["fetchNearby"])}},_hoisted_1$A={class:"nearby"},_hoisted_2$x={class:"nearby__title"},_hoisted_3$w={class:"nearby__list"};function _sfc_render$z(en,He,tn,nn,an,rn){const on=resolveComponent("page-teaser");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1$A,[createBaseVNode("h2",_hoisted_2$x,toDisplayString(en.$t("Nearby")),1),createBaseVNode("div",_hoisted_3$w,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.nearby,(sn,dn)=>(openBlock(),createBlock(on,{key:dn,title:sn.title,image:sn.image,alias:sn.alias,langcode:sn.language,"content-type":sn.
88contentType,"product-type":sn.productType,localities:sn.localities??sn.locality},null,8,["title","image","alias","langcode","content-type","product-type","localities"]))),128))])],512)),[[vShow,en.nearby.length>0]])}const Nearby=_export_sfc(_sfc_main$z,[["render",_sfc_render$z],["__scopeId","data-v-ad53c69d"]]),_sfc_main$y={components:{PageTeaser},computed:{...mapState("context",["locale","mainContent"]),...mapState("suggestions",["recommended"])},mounted(){this.mainContent&&this.fetchRecommended({nid:this.mainContent.raw.data[0].attributes.drupal_internal__nid,langcode:this.locale})},methods:{...mapActions("suggestions",["fetchRecommended"])}},_hoisted_1$z={class:"recommended"},_hoisted_2$w={class:"recommended__title"},_hoisted_3$v={class:"recommended__list"};function _sfc_render$y(en,He,tn,nn,an,rn){const on=resolveComponent("page-teaser");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1$z,[createBaseVNode("h2",_hoisted_2$w,toDisplayString(en.$t("Others found this interesting too")),1),createBaseVNode("div",_hoisted_3$v,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.recommended,(sn,dn)=>(openBlock(),createBlock(on,{key:dn,title:sn.title,image:sn.image,alias:sn.alias,langcode:sn.language,"content-type":sn.contentType,"product-type":sn.productType,localities:sn.localities??sn.locality},null,8,["title","image","alias","langcode","content-type","product-type","localities"]))),128))])],512)),[[vShow,en.recommended.length>0]])}const Recommended=_export_sfc(_sfc_main$y,[["render",_sfc_render$y],["__scopeId","data-v-547ad849"]]),_sfc_main$x={name:"ReferencedProduct",props:{product:{type:Object,required:!0}},computed:{producer(){return this.product.relationships?.win_item},producerAddress(){const en=this.producer?.attributes.address;return en||null}}},_hoisted_1$y={class:"referenced_product"},_hoisted_2$v={class:"referenced_product__card"},_hoisted_3$u=["src","alt"],_hoisted_4$p={class:"referenced_product__bottom"},_hoisted_5$n={class:"referenced_product__title"},_hoisted_6$k={class:"referenced_product__description"},_hoisted_7$j={key:0,class:"producer"},_hoisted_8$g=["href"],_hoisted_9$f={key:1,class:"producer__locality"},_hoisted_10$f={key:2,class:"producer__region"},_hoisted_11$b=["href"],_hoisted_12$9={class:"referenced_product__button"};function _sfc_render$x(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$y,[createBaseVNode("div",_hoisted_2$v,[createBaseVNode("img",{src:tn.product.attributes.teaser_image_url,alt:tn.product.attributes.title},null,8,_hoisted_3$u),createBaseVNode("div",_hoisted_4$p,[createBaseVNode("h2",_hoisted_5$n,toDisplayString(tn.product.attributes.title),1),createBaseVNode("div",_hoisted_6$k,toDisplayString(tn.product.attributes.text),1),rn.producer?(openBlock(),createElementBlock("div",_hoisted_7$j,[rn.producer.attributes.canonical_url&&rn.producer.attributes.title?(openBlock(),createElementBlock("a",{key:0,href:rn.producer.attributes.canonical_url,class:"producer__title"},toDisplayString(rn.producer.attributes.title),9,_hoisted_8$g)):createCommentVNode("",!0),rn.producerAddress.locality?(openBlock(),createElementBlock("div",_hoisted_9$f,toDisplayString(rn.producerAddress.locality),1)):createCommentVNode("",!0),rn.producer.relationships.main_site.attributes.name?(openBlock(),createElementBlock("div",_hoisted_10$f,toDisplayString(rn.producer.relationships.main_site.attributes.name),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),tn.product.attributes.url&&tn.product.attributes.url.uri?(openBlock(),createElementBlock("a",{key:1,href:tn.product.attributes.url.uri,target:"_blank",rel:"noopener noreferrer"},[createBaseVNode("div",_hoisted_12$9,toDisplayString(tn.product.attributes.url.title||en.$t("View product")),1)],8,_hoisted_11$b)):createCommentVNode("",!0)])])])}const ReferencedProduct=_export_sfc(_sfc_main$x,[["render",_sfc_render$x],["__scopeId","data-v-96d178e3"]]),_sfc_main$w={name:"ReferencedProducts",components:{ReferencedProduct},props:{uuid:{type:String,required:!0}},data(){return{currentSlide:0,offset:0,referencedProducts:[],show:4,currentPage:0,windowWidth:window.innerWidth}},computed:{itemsCount(){return this.referencedProducts.length},itemsToShow(){return this.windowWidth>=1024?this.show:this.windowWidth>=768?2:1},pageCount(){return this.itemsCount-this.itemsToShow+1},showNavigationPrevious(){return this.currentSlide>0},showNavigationNext(){return this.currentSlide+1<this.pageCount},showPagination(){return this.pageCount>1},cardStyling(){return{width:100/this.itemsToShow+"%"}},trackStyling(){return{transform:"translateX("+this.offset+"px)",transition:"all 500ms ease 0s"}}},mounted(){window.addEventListener("resize",this.handleResize),this.updateReferencedProducts()},beforeUnmount(){window.removeEventListener("resize",this.handleResize)},methods:{next(){this.moveTo(this.currentSlide+1)},previous(){this.moveTo(this.currentSlide-1)},calculateOffset(){this.$refs?.["card-"+this.currentSlide]?.[0]?this.offset=-this.$refs["card-"+this.currentSlide][0].offsetLeft:this.offset=0,this.$nextTick(()=>{this.updateCardFocusability()})},moveTo(en){this.currentSlide=en,this.calculateOffset()},updateCardFocusability(){const en=this.currentSlide,He=this.currentSlide+this.itemsToShow;for(let tn=0;tn<this.referencedProducts.length;tn++){const nn=this.$refs["card-"+tn]?.[0];if(!nn)continue;tn>=en&&tn<He?(nn.removeAttribute("inert"),nn.removeAttribute("aria-hidden")):(nn.setAttribute("inert",""),nn.setAttribute("aria-hidden","true"))}},isActive(en){return en==this.currentSlide},handleResize(){this.windowWidth=document.documentElement.clientWidth;let en=this.currentSlide;this.currentSlide>=this.itemsCount-this.itemsToShow&&(en=this.itemsCount-this.itemsToShow),this.moveTo(en)},updateReferencedProducts(){const en="/fetch-referenced-products/"+this.uuid+"/"+document.documentElement.lang;new Promise((He,tn)=>{axios.get(en).then(nn=>{He(nn.data)}).catch(tn)}).then(He=>{for(const tn of He.data)this.referencedProducts.find(an=>an.id===tn.id)||this.referencedProducts.push(tn);this.referencedProducts.sort((tn,nn)=>tn.attributes.title.localeCompare(nn.attributes.title)),this.$nextTick(()=>{this.updateCardFocusability()})})}}},_hoisted_1$x={key:0,class:"referenced_products"},_hoisted_2$u={class:"carousel"},_hoisted_3$t={class:"carousel__grid"}
88,_hoisted_4$o={key:0,class:"carousel__navigation carousel__navigation--previous"},_hoisted_5$m=["aria-label"],_hoisted_6$j={class:"carousel__viewport"},_hoisted_7$i={key:1,class:"carousel__navigation carousel__navigation--next"},_hoisted_8$f=["aria-label"],_hoisted_9$e=["aria-label"],_hoisted_10$e=["aria-label","onClick"];function _sfc_render$w(en,He,tn,nn,an,rn){const on=resolveComponent("ReferencedProduct");return an.referencedProducts.length?(openBlock(),createElementBlock("div",_hoisted_1$x,[createBaseVNode("h2",null,toDisplayString(en.$t("These products are recognised as 100% West-Flemish")),1),createBaseVNode("div",_hoisted_2$u,[createBaseVNode("div",_hoisted_3$t,[rn.showNavigationPrevious?(openBlock(),createElementBlock("div",_hoisted_4$o,[createBaseVNode("a",{"aria-label":en.$t("Previous"),href:"#",onClick:He[0]||(He[0]=withModifiers((...sn)=>rn.previous&&rn.previous(...sn),["prevent"]))},[...He[2]||(He[2]=[createBaseVNode("svg",{"aria-hidden":"true",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M16.3,22.5l7.3-7.4c0.2-0.2,0.6-0.2,0.8,0l1,1c0.2,0.2,0.2,0.6,0,0.8l-5.9,5.9l5.9,5.9c0.2,0.2,0.2,0.6,0,0.8l-1,1c-0.2,0.2-0.6,0.2-0.8,0l-7.3-7.4C16.1,23.1,16.1,22.7,16.3,22.5z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"})],-1)])],8,_hoisted_5$m)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$j,[createBaseVNode("div",{ref:"carousel-track",class:"carousel__track",style:normalizeStyle(rn.trackStyling)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(an.referencedProducts,(sn,dn)=>(openBlock(),createElementBlock("div",{key:dn,ref_for:!0,ref:"card-"+dn,class:"carousel__card",style:normalizeStyle(rn.cardStyling)},[createVNode(on,{product:sn},null,8,["product"])],4))),128))],4)]),rn.showNavigationNext?(openBlock(),createElementBlock("div",_hoisted_7$i,[createBaseVNode("a",{"aria-label":en.$t("Next"),href:"#",onClick:He[1]||(He[1]=withModifiers((...sn)=>rn.next&&rn.next(...sn),["prevent"]))},[...He[3]||(He[3]=[createBaseVNode("svg",{"aria-hidden":"true",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M28.6,23.4l-7.3,7.4c-0.2,0.2-0.6,0.2-0.8,0l-1-1c-0.2-0.2-0.2-0.6,0-0.8l5.9-5.9l-5.9-5.9c-0.2-0.2-0.2-0.6,0-0.8l1-1c0.2-0.2,0.6-0.2,0.8,0l7.3,7.4C28.8,22.8,28.8,23.2,28.6,23.4z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"})],-1)])],8,_hoisted_8$f)])):createCommentVNode("",!0)]),rn.showPagination?(openBlock(),createElementBlock("div",{key:0,"aria-label":en.$t("Slide controls"),class:"carousel__pagination"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.pageCount,sn=>(openBlock(),createElementBlock("button",{key:sn,"aria-label":en.$t("Show slide {index} of {pageCount}",{index:sn,pageCount:rn.pageCount}),class:normalizeClass(["carousel__pagination-button",rn.isActive(sn-1)?"carousel__pagination-button--active":""]),onClick:withModifiers(dn=>rn.moveTo(sn-1),["prevent"])},null,10,_hoisted_10$e))),128))],8,_hoisted_9$e)):createCommentVNode("",!0)])])):createCommentVNode("",!0)}const ReferencedProducts=_export_sfc(_sfc_main$w,[["render",_sfc_render$w],["__scopeId","data-v-703c3dda"]]),_sfc_main$v={name:"Event",components:{ReferencedProducts,Inspiration,Recommended,Nearby,Facilities,ContactInfo,PhotoGrid,ProductHero,PeriodList,Labels,Tabs,Tab,MarkupRenderer:_sfc_main$X},computed:{...mapState("context",["locale","mainContent"]),images(){if(!this.event)return[];const en=[];return en.push(this.event.image),en.push(...this.event.images),en},event(){return this.$store.getters["product/product"](this.mainContent.uuid)},range(){if(!this.event||this.event.periods.length<1)return;let en=hooks(this.event.periods[0].value),He=hooks(this.event.periods[0].end_value);return this.event.periods.forEach(tn=>{const nn=hooks(tn.value),an=hooks(tn.end_value);nn.isBefore(en)&&(en=nn),an.isAfter(He)&&(He=an)}),{beginning:en,end:He}},hasPricingInformation(){return this.event.free||this.event.standardPrice}},mounted(){this.fetchEvent(this.mainContent.uuid)},methods:{...mapActions("product",["fetchEvent"])}},_hoisted_1$w={class:"event"},_hoisted_2$t={key:0,class:"event__range"},_hoisted_3$s={class:"event__range-date event__range-start"},_hoisted_4$n={class:"event__range-day"},_hoisted_5$l={class:"event__range-month"},_hoisted_6$i={class:"event__range-year"},_hoisted_7$h={class:"event__range-divider"},_hoisted_8$e={class:"event__range-date event__range-end"},_hoisted_9$d={class:"event__range-day"},_hoisted_10$d={class:"event__range-month"},_hoisted_11$a={class:"event__range-year"},_hoisted_12$8={class:"event__main-content"},_hoisted_13$7=["innerHTML"],_hoisted_14$5={key:1,class:"event__main-content-markup"},_hoisted_15$4={key:0,class:"event__free event__item"},_hoisted_16$4={key:1,class:"event__standard_price event__item"},_hoisted_17$4={key:2},_hoisted_18$4=["href"];function _sfc_render$v(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("product-hero"),dn=resolveComponent("photo-grid"),hn=resolveComponent("markup-renderer"),mn=resolveComponent("referencedProducts"),gn=resolveComponent("labels"),yn=resolveComponent("facilities"),fn=resolveComponent("tab"),bn=resolveComponent("period-list"),Mn=resolveComponent("tabs"),Tn=resolveComponent("contact-info"),xn=resolveComponent("nearby"),En=resolveComponent("recommended"),Rn=resolveComponent("inspiration");return openBlock(),createElementBlock("div",_hoisted_1$w,[createVNode(sn,{title:en.mainContent.title,type:rn.event?rn.event.type:void 0,locations:rn.event?[rn.event.city]:[]},{default:withCtx(()=>[rn.range?(openBlock(),createElementBlock("div",_hoisted_2$t,[createBaseVNode("div",_hoisted_3$s,[createBaseVNode("div",_hoisted_4$n,toDisplayString(rn.range.beginning.format("DD")),1),createBaseVNode("div",_hoisted_5$l,toDisplayString(new Date(rn.range.beginning).toLocaleStr
88ing(en.locale,{month:"short"})),1),createBaseVNode("div",_hoisted_6$i,toDisplayString(rn.range.beginning.format("YYYY")),1)]),rn.range.beginning.format("YYYY-MMM-DD")!==rn.range.end.format("YYYY-MMM-DD")?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",_hoisted_7$h,[createVNode(on,{icon:["fas","arrow-right"],class:"event__range-divider-icon"})]),createBaseVNode("div",_hoisted_8$e,[createBaseVNode("div",_hoisted_9$d,toDisplayString(rn.range.end.format("DD")),1),createBaseVNode("div",_hoisted_10$d,toDisplayString(rn.range.end.format("MMM")),1),createBaseVNode("div",_hoisted_11$a,toDisplayString(rn.range.end.format("YYYY")),1)])],64)):createCommentVNode("",!0)])):createCommentVNode("",!0)]),_:1},8,["title","type","locations"]),createBaseVNode("div",_hoisted_12$8,[createVNode(dn,{images:rn.images},null,8,["images"]),rn.event&&rn.event.winDescription&&!rn.event.hideWinDescription?(openBlock(),createElementBlock("div",{key:0,class:"event__win-description wysiwyg",innerHTML:rn.event.winDescription},null,8,_hoisted_13$7)):createCommentVNode("",!0),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_14$5,[createVNode(hn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.mainContent?(openBlock(),createBlock(mn,{key:2,uuid:en.mainContent.uuid},null,8,["uuid"])):createCommentVNode("",!0),rn.event?(openBlock(),createBlock(gn,{key:3,labels:rn.event.labels,"show-hpwvl-label":rn.event.showHpwvlLabel,class:"event__labels"},null,8,["labels","show-hpwvl-label"])):createCommentVNode("",!0),rn.event?(openBlock(),createBlock(Mn,{key:4,class:"event__tabs"},{default:withCtx(()=>[rn.event.facilities.length?(openBlock(),createBlock(fn,{key:0,title:en.$t("Facilities")},{default:withCtx(()=>[createVNode(yn,{facilities:rn.event.facilities},null,8,["facilities"])]),_:1},8,["title"])):createCommentVNode("",!0),rn.event?(openBlock(),createBlock(fn,{key:1,title:en.$t("When")},{default:withCtx(()=>[rn.event?(openBlock(),createBlock(bn,{key:0,"event-title":rn.event.title,"event-description":en.mainContent.summary,"event-location":rn.event.address+", "+rn.event.postalCode+" "+rn.event.city,periods:rn.event.openingPeriods.length>0?rn.event.openingPeriods:rn.event.periods},null,8,["event-title","event-description","event-location","periods"])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0),createVNode(fn,{title:en.$t("Pricing information")},{default:withCtx(()=>[rn.event.free?(openBlock(),createElementBlock("div",_hoisted_15$4,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Free")),1),He[0]||(He[0]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.event.standardPrice?(openBlock(),createElementBlock("div",_hoisted_16$4,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Standard price")),1),He[1]||(He[1]=createTextVNode(":",-1))]),createBaseVNode("p",null,"€ "+toDisplayString(rn.event.standardPrice),1)])):createCommentVNode("",!0),rn.event.priceInfoUrl?(openBlock(),createElementBlock("div",_hoisted_17$4,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Price information")),1),He[2]||(He[2]=createTextVNode(": ",-1))]),createBaseVNode("p",null,[createBaseVNode("a",{href:rn.event.priceInfoUrl,class:"event__price-info-url",target:"_blank"},toDisplayString(rn.event.priceInfoUrl),9,_hoisted_18$4)])])):createCommentVNode("",!0)]),_:1},8,["title"])]),_:1})):createCommentVNode("",!0)]),rn.event?(openBlock(),createBlock(Tn,{key:0,title:en.mainContent.title,location:rn.event.location,address:rn.event.address,"postal-code":rn.event.postalCode,city:rn.event.city,email:rn.event.email,latitude:rn.event.latitude,longitude:rn.event.longitude,mobile:rn.event.mobile,phone:rn.event.phone,website:rn.event.website,links:rn.event.links,"booking-url":rn.event.bookingUrl,"related-products":rn.event.relatedProducts},null,8,["title","location","address","postal-code","city","email","latitude","longitude","mobile","phone","website","links","booking-url","related-products"])):createCommentVNode("",!0),createVNode(xn),createVNode(En),createVNode(Rn)])}const Event$1=_export_sfc(_sfc_main$v,[["render",_sfc_render$v],["__scopeId","data-v-f0422408"]]),_sfc_main$u={name:"Poi",components:{ReferencedProducts,Inspiration,Recommended,Nearby,ContactInfo,Facilities,PhotoGrid,ProductHero,Labels,Tabs,Tab,MarkupRenderer:_sfc_main$X},computed:{...mapState("context",["mainContent"]),images(){if(!this.poi)return[];const en=[];return en.push(this.poi.image),en.push(...this.poi.images),en},poi(){return this.$store.getters["product/product"](this.mainContent.uuid)},hasOpeningInformation(){return this.poi.openPermanently||this.poi.openingPerio
88d||this.poi.exceptionDays||this.poi.closingDays},hasPricingInformation(){return this.poi.free||this.poi.standardPrice}},mounted(){this.fetchPoi(this.mainContent.uuid)},methods:{...mapActions("product",["fetchPoi"])}},_hoisted_1$v={class:"poi"},_hoisted_2$s={class:"poi__main-content"},_hoisted_3$r=["innerHTML"],_hoisted_4$m={key:1,class:"poi__main-content-markup"},_hoisted_5$k={key:0,class:"poi__open-permanently poi__item"},_hoisted_6$h={key:1,class:"poi__opening-period poi__item"},_hoisted_7$g={key:2,class:"poi__exception-days poi__item"},_hoisted_8$d={key:3,class:"poi__closing-days poi__item"},_hoisted_9$c={key:0,class:"poi__free poi__item"},_hoisted_10$c={key:1,class:"poi__standard_price poi__item"};function _sfc_render$u(en,He,tn,nn,an,rn){const on=resolveComponent("product-hero"),sn=resolveComponent("photo-grid"),dn=resolveComponent("markup-renderer"),hn=resolveComponent("referencedProducts"),mn=resolveComponent("labels"),gn=resolveComponent("facilities"),yn=resolveComponent("tab"),fn=resolveComponent("tabs"),bn=resolveComponent("contact-info"),Mn=resolveComponent("nearby"),Tn=resolveComponent("recommended"),xn=resolveComponent("inspiration");return openBlock(),createElementBlock("div",_hoisted_1$v,[createVNode(on,{title:en.mainContent.title,type:rn.poi?rn.poi.type:void 0,locations:rn.poi?[rn.poi.city]:[]},null,8,["title","type","locations"]),createBaseVNode("div",_hoisted_2$s,[createVNode(sn,{images:rn.images},null,8,["images"]),rn.poi&&rn.poi.winDescription&&!rn.poi.hideWinDescription?(openBlock(),createElementBlock("div",{key:0,class:"poi__win-description wysiwyg",innerHTML:rn.poi.winDescription},null,8,_hoisted_3$r)):createCommentVNode("",!0),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_4$m,[createVNode(dn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.mainContent?(openBlock(),createBlock(hn,{key:2,uuid:en.mainContent.uuid},null,8,["uuid"])):createCommentVNode("",!0),rn.poi?(openBlock(),createBlock(mn,{key:3,labels:rn.poi.labels,"show-hpwvl-label":rn.poi.showHpwvlLabel,class:"poi__labels"},null,8,["labels","show-hpwvl-label"])):createCommentVNode("",!0),rn.poi?(openBlock(),createBlock(fn,{key:4,class:"poi__tabs"},{default:withCtx(()=>[rn.poi.facilities.length?(openBlock(),createBlock(yn,{key:0,title:en.$t("Facilities")},{default:withCtx(()=>[createVNode(gn,{facilities:rn.poi.facilities},null,8,["facilities"])]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasOpeningInformation?(openBlock(),createBlock(yn,{key:1,title:en.$t("Opening information")},{default:withCtx(()=>[rn.poi.openPermanently?(openBlock(),createElementBlock("div",_hoisted_5$k,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Open permanently")),1),He[0]||(He[0]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.poi&&rn.poi.openingPeriod?(openBlock(),createElementBlock("div",_hoisted_6$h,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Opening period")),1),He[1]||(He[1]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.poi.openingPeriod),1)])):createCommentVNode("",!0),rn.poi&&rn.poi.exceptionDays?(openBlock(),createElementBlock("div",_hoisted_7$g,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Exception days")),1),He[2]||(He[2]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.poi.exceptionDays),1)])):createCommentVNode("",!0),rn.poi&&rn.poi.closingDays?(openBlock(),createElementBlock("div",_hoisted_8$d,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Closing days")),1),He[3]||(He[3]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.poi.closingDays),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasPricingInformation?(openBlock(),createBlock(yn,{key:2,title:en.$t("Pricing information")},{default:withCtx(()=>[rn.poi.free?(openBlock(),createElementBlock("div",_hoisted_9$c,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Free")),1),He[4]||(He[4]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.poi.standardPrice?(openBlock(),createElementBlock("div",_hoisted_10$c,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Standard price")),1),He[5]||(He[5]=createTextVNode(":",-1))]),createBaseVNode("p",null,"€ "+toDisplayString(rn.poi.standardPrice),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0)]),rn.poi?(openBlock(),createBlock(bn,{key:0,title:en.mainContent.title,location:rn.poi.location,address:rn.poi.address,"postal-code":rn.poi.postalCode,city:rn.poi.city,email:rn.poi.email,latitude:rn.poi.latitude,longitude:rn.poi.longitude,mobile:rn.poi.mobile,phone:rn.poi.phone,website:rn.poi.website,links:rn.poi.links,"booking-url":rn.poi.bookingUrl,"related-products":rn.poi.relatedProducts},null,8,["title","location","address","postal-code","city","email","latitude","longitude","mobile","phone","website","links","booking-url","related-products"])):createCommentVNode("",!0),createVNode(Mn),createVNode(Tn),createVNode(xn)])}const Poi=_export_sfc(_sfc_main$u,[["render",_sfc_render$u],["__scopeId","data-v-63343b90"]]),_sfc_main$t={name:"Reca",components:{Ins
88piration,Recommended,Nearby,ContactInfo,Facilities,PhotoGrid,ProductHero,Labels,Tabs,Tab,ReferencedProducts,MarkupRenderer:_sfc_main$X},computed:{...mapState("context",["mainContent"]),images(){if(!this.reca)return[];const en=[];return en.push(this.reca.image),en.push(...this.reca.images),en},reca(){return this.$store.getters["product/product"](this.mainContent.uuid)},hasOpeningInformation(){return this.reca.openPermanently||this.reca.openingPeriod||this.reca.exceptionDays||this.reca.closingDays},hasPricingInformation(){return this.reca.free||this.reca.standardPrice}},mounted(){this.fetchReca(this.mainContent.uuid)},methods:{...mapActions("product",["fetchReca"])}},_hoisted_1$u={class:"reca"},_hoisted_2$r={class:"reca__main-content"},_hoisted_3$q=["innerHTML"],_hoisted_4$l={key:1,class:"reca__main-content-markup"},_hoisted_5$j={key:0,class:"reca__open-permanently reca__item"},_hoisted_6$g={key:1,class:"reca__opening-period reca__item"},_hoisted_7$f={key:2,class:"reca__exception-days reca__item"},_hoisted_8$c={key:3,class:"reca__closing-days reca__item"},_hoisted_9$b={key:0,class:"reca__free reca__item"},_hoisted_10$b={key:1,class:"reca__standard_price reca__item"};function _sfc_render$t(en,He,tn,nn,an,rn){const on=resolveComponent("product-hero"),sn=resolveComponent("photo-grid"),dn=resolveComponent("markup-renderer"),hn=resolveComponent("referencedProducts"),mn=resolveComponent("labels"),gn=resolveComponent("facilities"),yn=resolveComponent("tab"),fn=resolveComponent("tabs"),bn=resolveComponent("contact-info"),Mn=resolveComponent("nearby"),Tn=resolveComponent("recommended"),xn=resolveComponent("inspiration");return openBlock(),createElementBlock("div",_hoisted_1$u,[createVNode(on,{title:en.mainContent.title,type:rn.reca?rn.reca.type:void 0,locations:rn.reca?[rn.reca.city]:[]},null,8,["title","type","locations"]),createBaseVNode("div",_hoisted_2$r,[createVNode(sn,{images:rn.images},null,8,["images"]),rn.reca&&rn.reca.winDescription&&!rn.reca.hideWinDescription?(openBlock(),createElementBlock("div",{key:0,class:"reca__win-description wysiwyg",innerHTML:rn.reca.winDescription},null,8,_hoisted_3$q)):createCommentVNode("",!0),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_4$l,[createVNode(dn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.mainContent?(openBlock(),createBlock(hn,{key:2,uuid:en.mainContent.uuid},null,8,["uuid"])):createCommentVNode("",!0),rn.reca?(openBlock(),createBlock(mn,{key:3,labels:rn.reca.labels,"michelin-stars":rn.reca.michelinStars,"gault-millau-score":rn.reca.gaultMillauScore,"show-hpwvl-label":rn.reca.showHpwvlLabel,class:"reca__labels"},null,8,["labels","michelin-stars","gault-millau-score","show-hpwvl-label"])):createCommentVNode("",!0),rn.reca?(openBlock(),createBlock(fn,{key:4,class:"reca__tabs"},{default:withCtx(()=>[rn.reca.facilities.length?(openBlock(),createBlock(yn,{key:0,title:en.$t("Facilities")},{default:withCtx(()=>[createVNode(gn,{facilities:rn.reca.facilities},null,8,["facilities"])]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasOpeningInformation?(openBlock(),createBlock(yn,{key:1,title:en.$t("Opening information")},{default:withCtx(()=>[rn.reca.openPermanently?(openBlock(),createElementBlock("div",_hoisted_5$j,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Open permanently")),1),He[0]||(He[0]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.reca&&rn.reca.openingPeriod?(openBlock(),createElementBlock("div",_hoisted_6$g,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Opening period")),1),He[1]||(He[1]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.reca.openingPeriod),1)])):createCommentVNode("",!0),rn.reca&&rn.reca.exceptionDays?(openBlock(),createElementBlock("div",_hoisted_7$f,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Exception days")),1),He[2]||(He[2]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.reca.exceptionDays),1)])):createCommentVNode("",!0),rn.reca&&rn.reca.closingDays?(openBlock(),createElementBlock("div",_hoisted_8$c,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Closing days")),1),He[3]||(He[3]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.reca.closingDays),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasPricingInformation?(openBlock(),createBlock(yn,{key:2,title:en.$t("Pricing information")},{default:withCtx(()=>[rn.reca.free?(openBlock(),createElementBlock("div",_hoisted_9$b,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Free")),1),He[4]||(He[4]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.reca.standardPrice?(openBlock(),createElementBlock("div",_hoisted_10$b,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Standard price")),1),He[5]||(He[5]=createTextVNode(":",-1))]),createBaseVNode("p",null,"€ "+toDisplayString(rn.reca.standardPrice),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0)]),rn.reca?(openBlock(),createBlock(bn,{key:0,title:en.mainContent.title,location:rn.reca.location,address:rn.reca.address,"postal-code":rn.reca.postalCode,city:rn.reca.city,email:rn.reca.email,latitude:rn.reca.latitude,longitude:rn.reca.longitude,mobile:rn.reca.mobile,phone:rn.reca.phone,website:rn.reca.website,links:rn.reca.links,"booking-url":rn.reca.bookingUrl,"related-products":rn.reca.relatedProducts},null,8,["title","location","address","postal-code","city","email","latitude","longitude","mobile","phone","website","links","booking-url","related-products"])):createCommentVNode("",!0),createVNode(Mn),createVNode(Tn),createVNode(xn)])}const Reca=_export_sfc(_sfc_main$t,[["render",_sfc_render$t],["__scopeId","data-v-ca5f8c45"]]),_sfc_main$s={name:"MeetingRoom",components:{ReferencedProducts,Inspiration,Recommended,Nearby,ContactInfo,Facilities,PhotoGrid,ProductHero,Labels,Tabs,Tab,MarkupRenderer:_sfc_main$X},computed:{...mapState("context",["mainContent"]),images(){if(!this.meetingRoom)return[];const en=[];return en.push(this.meetingRoom.image),en.push(...this.meetingRoom.images),en},meetingRoom(){return this.$store.getters["product/product"](this.mainContent.uuid)},hasOpeningInformation(){return this.meetingRoom.openPermanently||this.meetingRoom.openingPerio
88d||this.meetingRoom.exceptionDays||this.meetingRoom.closingDays},hasSpaceInformation(){return typeof this.meetingRoom.surface=="number"||typeof this.meetingRoom.height=="number"||typeof this.meetingRoom.divisible=="number"||this.meetingRoom.layout||typeof this.meetingRoom.capacity=="number"}},mounted(){this.fetchMeetingRoom(this.mainContent.uuid)},methods:{...mapActions("product",["fetchMeetingRoom"])}},_hoisted_1$t={class:"meeting-room"},_hoisted_2$q={class:"meeting-room__main-content"},_hoisted_3$p=["innerHTML"],_hoisted_4$k={key:1,class:"meeting-room__main-content-markup"},_hoisted_5$i={key:0,class:"meeting-room__open-permanently meeting-room__item"},_hoisted_6$f={key:1,class:"meeting-room__opening-period meeting-room__item"},_hoisted_7$e={key:2,class:"meeting-room__exception-days meeting-room__item"},_hoisted_8$b={key:3,class:"meeting-room__closing-days meeting-room__item"},_hoisted_9$a={key:0,class:"meeting-room__surface meeting-room__item"},_hoisted_10$a={key:1,class:"meeting-room__height meeting-room__item"},_hoisted_11$9={key:2,class:"meeting-room__divisible meeting-room__item"},_hoisted_12$7={key:3,class:"meeting-room__layout meeting-room__item"},_hoisted_13$6={key:4,class:"meeting-room__capacity meeting-room__item"};function _sfc_render$s(en,He,tn,nn,an,rn){const on=resolveComponent("product-hero"),sn=resolveComponent("photo-grid"),dn=resolveComponent("markup-renderer"),hn=resolveComponent("referencedProducts"),mn=resolveComponent("labels"),gn=resolveComponent("facilities"),yn=resolveComponent("tab"),fn=resolveComponent("tabs"),bn=resolveComponent("contact-info"),Mn=resolveComponent("nearby"),Tn=resolveComponent("recommended"),xn=resolveComponent("inspiration");return openBlock(),createElementBlock("div",_hoisted_1$t,[createVNode(on,{title:en.mainContent.title,type:rn.meetingRoom?rn.meetingRoom.type:void 0,locations:rn.meetingRoom?[rn.meetingRoom.city]:[]},null,8,["title","type","locations"]),createBaseVNode("div",_hoisted_2$q,[createVNode(sn,{images:rn.images},null,8,["images"]),rn.meetingRoom&&rn.meetingRoom.winDescription&&!rn.meetingRoom.hideWinDescription?(openBlock(),createElementBlock("div",{key:0,class:"meeting-room__win-description wysiwyg",innerHTML:rn.meetingRoom.winDescription},null,8,_hoisted_3$p)):createCommentVNode("",!0),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_4$k,[createVNode(dn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.mainContent?(openBlock(),createBlock(hn,{key:2,uuid:en.mainContent.uuid},null,8,["uuid"])):createCommentVNode("",!0),rn.meetingRoom?(openBlock(),createBlock(mn,{key:3,labels:rn.meetingRoom.labels,"show-hpwvl-label":rn.meetingRoom.showHpwvlLabel,class:"meeting-room__labels"},null,8,["labels","show-hpwvl-label"])):createCommentVNode("",!0),rn.meetingRoom?(openBlock(),createBlock(fn,{key:4,class:"meeting-room__tabs"},{default:withCtx(()=>[rn.meetingRoom.facilities.length?(openBlock(),createBlock(yn,{key:0,title:en.$t("Facilities")},{default:withCtx(()=>[createVNode(gn,{facilities:rn.meetingRoom.facilities},null,8,["facilities"])]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasOpeningInformation?(openBlock(),createBlock(yn,{key:1,title:en.$t("Opening information")},{default:withCtx(()=>[rn.meetingRoom.openPermanently?(openBlock(),createElementBlock("div",_hoisted_5$i,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Open permanently")),1),He[0]||(He[0]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.meetingRoom.openingPeriod?(openBlock(),createElementBlock("div",_hoisted_6$f,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Opening period")),1),He[1]||(He[1]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.openingPeriod),1)])):createCommentVNode("",!0),rn.meetingRoom.exceptionDays?(openBlock(),createElementBlock("div",_hoisted_7$e,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Exception days")),1),He[2]||(He[2]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.exceptionDays),1)])):createCommentVNode("",!0),rn.meetingRoom.closingDays?(openBlock(),createElementBlock("div",_hoisted_8$b,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Closing days")),1),He[3]||(He[3]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.closingDays),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0),createVNode(yn,{title:en.$t("Space")},{default:withCtx(()=>[typeof rn.meetingRoom.surface=="number"?(openBlock(),createElementBlock("div",_hoisted_9$a,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Surface")),1),He[4]||(He[4]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.surface)+"m²",1)])):createCommentVNode("",!0),typeof rn.meetingRoom.height=="number"?(openBlock(),createElementBlock("div",_hoisted_10$a,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Height")),1),He[5]||(He[5]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.height)+"m",1)])):createCommentVNode("",!0),typeof rn.meetingRoom.divisible=="number"?(openBlock(),createElementBlock("div",_hoisted_11$9,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Divisible")),1),He[6]||(He[6]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.divisible)+" "+toDisplayString(en.$t("rooms")),1)])):createCommentVNode("",!0),rn.meetingRoom.layout?(openBlock(),createElementBlock("div",_hoisted_12$7,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Layout")),1),He[7]||(He[7]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.layout),1)])):createCommentVNode("",!0),typeof rn.meetingRoom.capacity=="number"?(openBlock(),createElementBlock("div",_hoisted_13$6,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Capacity")),1),He[8]||(He[8]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.meetingRoom.capacity)+" "+toDisplayString(en.$t("people")),1)])):createCommentVNode("",!0)]),_:1},8,["title"])]),_:1})):createCommentVNode("",!0)]),rn.meetingRoom?(openBlock(),createBlock(bn,{key:0,title:en.mainContent.title,location:rn.meetingRoom.location,address:rn.meetingRoom.address,"postal-code":rn.meetingRoom.postalCode,city:rn.meetingRoom.city,email:rn.meetingRoom.email,latitude:rn.meetingRoom.latitude,longitude:rn.meetingRoom.longitude,mobile:rn.meetingRoom.mobile,phone:rn.meetingRoom.phone,website:rn.meetingRoom.website,links:rn.meetingRoom.links,"booking-url":rn.meetingRoom.bookingUrl,"related-products":rn.meetingRoom.relatedProducts},null,8,["title","location","address","postal-code","city","email","latitude","longitude","mobile","phone","website","links","booking-url","related-products"])):createCommentVNode("",!0),createVNode(Mn),createVNode(Tn),createVNode(xn)])}const MeetingRoom=_export_sfc(_sfc_main$s,[["render",_sfc_render$s],["__scopeId","data-v-68fb49a1"]]),_sfc_main$r={name:"Homepage",components:{CustomizedMap,ButtonComponent,ResponsiveImage,MarkupRenderer:_sfc_main$X},data(){return{playing:!0,playerReady:!1,videoWidth:0,videoHeight:0}},computed:{...mapState("context",["site","mainContent"]),showMap(){return!!this.site.map}},beforeCreate(){if(document.querySelector("#juicer-script"))return;let en=document.createElement("script");
88en.id="juicer-script",en.src="https://assets.juicer.io/embed.js",document.head.appendChild(en)},methods:{...mapActions("product",["fetchPoisByLabelIds"]),play(){this.$refs.videoPlayer.play(),this.playing=!0},pause(){this.$refs.videoPlayer.pause(),this.playing=!1},onReady(){const en=document.querySelector(".homepage__header-video");this.videoWidth=en.videoWidth,this.videoHeight=en.videoHeight,this.resizePlayer(),window.addEventListener("resize",this.resizePlayer),this.playerReady=!0},resizePlayer(){const en=this.$refs.header;if(en===null)return;const He=en.clientWidth,tn=en.clientHeight;let nn=He,an=He/this.videoWidth*this.videoHeight;an<tn&&(an=tn,nn=tn/this.videoHeight*this.videoWidth),this.$refs.videoPlayer.setAttribute("width",nn),this.$refs.videoPlayer.setAttribute("height",an)}}},_hoisted_1$s={key:0,class:"homepage"},_hoisted_2$p=["src"],_hoisted_3$o=["title"],_hoisted_4$j=["title"],_hoisted_5$h={class:"homepage__header-content"},_hoisted_6$e={key:0,class:"homepage__slogan"},_hoisted_7$d={class:"homepage__header-icon-wrapper"},_hoisted_8$a={key:0,class:"homepage__main-content-markup"},_hoisted_9$9={key:1,class:"homepage__social-feed"},_hoisted_10$9=["data-feed-id"];function _sfc_render$r(en,He,tn,nn,an,rn){const on=resolveComponent("customized-map"),sn=resolveComponent("font-awesome-icon"),dn=resolveComponent("responsive-image"),hn=resolveComponent("button-component"),mn=resolveComponent("markup-renderer");return en.site?(openBlock(),createElementBlock("div",_hoisted_1$s,[createBaseVNode("div",{ref:"header",class:normalizeClass(["homepage__header",{"homepage__header--without-map":!rn.showMap}])},[rn.showMap?(openBlock(),createBlock(on,{key:0,map:en.site.map,"map-label-ids":en.site.mapLabelIds},null,8,["map","map-label-ids"])):(openBlock(),createElementBlock(Fragment,{key:1},[en.site.homepageVideoUrl?(openBlock(),createElementBlock("video",{key:0,ref:"videoPlayer",src:en.site.homepageVideoUrl,class:"homepage__header-video",autoplay:"",muted:"",loop:"",onLoadedmetadata:He[0]||(He[0]=(...gn)=>rn.onReady&&rn.onReady(...gn))},null,40,_hoisted_2$p)):createCommentVNode("",!0),an.playerReady&&!an.playing?(openBlock(),createElementBlock("a",{key:1,href:"#",class:"homepage__header-video-control homepage__header-video-control--play",title:en.$t("Play"),onClick:He[1]||(He[1]=withModifiers((...gn)=>rn.play&&rn.play(...gn),["prevent"]))},[createVNode(sn,{icon:["fas","play"]})],8,_hoisted_3$o)):createCommentVNode("",!0),an.playerReady&&an.playing?(openBlock(),createElementBlock("a",{key:2,href:"#",class:"homepage__header-video-control homepage__header-video-control--pause",title:en.$t("Pause"),onClick:He[2]||(He[2]=withModifiers((...gn)=>rn.pause&&rn.pause(...gn),["prevent"]))},[createVNode(sn,{icon:["fas","pause"]})],8,_hoisted_4$j)):createCommentVNode("",!0),en.site.image?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(["homepage__header-image-wrapper",{"homepage__header-image-wrapper--hidden":an.playerReady}])},[createVNode(dn,{fallback:en.site.image.imageStyleUris.landing_page_md,md:en.site.image.imageStyleUris.landing_page_md,xl:en.site.image.imageStyleUris.landing_page_xl,class:"homepage__header-image"},null,8,["fallback","md","xl"])],2)):createCommentVNode("",!0)],64)),createBaseVNode("div",_hoisted_5$h,[en.site.slogan?(openBlock(),createElementBlock("h1",_hoisted_6$e,toDisplayString(en.site.slogan),1)):createCommentVNode("",!0),en.site.cta?(openBlock(),createBlock(hn,{key:1,name:en.site.cta.title,url:en.site.cta.url,icon:["fas","arrow-right"],"icon-after":!0,type:"white",class:"homepage__cta"},null,8,["name","url"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_7$d,[createVNode(sn,{icon:["fas","chevron-down"],class:"homepage__header-icon"})]),He[3]||(He[3]=createBaseVNode("div",{class:"homepage__header-line","aria-hidden":"true"},null,-1))])],2),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_8$a,[createVNode(mn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.site.juicerFeedId?(openBlock(),createElementBlock("div",_hoisted_9$9,[He[4]||(He[4]=createBaseVNode("link",{href:"https://assets.juicer.io
88/embed.css",media:"all",rel:"stylesheet",type:"text/css"},null,-1)),createBaseVNode("ul",{class:"juicer-feed","data-feed-id":en.site.juicerFeedId},null,8,_hoisted_10$9)])):createCommentVNode("",!0)])):createCommentVNode("",!0)}const Homepage=_export_sfc(_sfc_main$r,[["render",_sfc_render$r],["__scopeId","data-v-c7ef24b5"]]),_sfc_main$q={name:"Accommodation",components:{ReferencedProducts,Inspiration,Recommended,Nearby,ButtonComponent,ContactInfo,Facilities,PhotoGrid,ProductHero,Labels,Tabs,Tab,MarkupRenderer:_sfc_main$X},data(){return{hoveredClassification:!1,selectedClassification:!1}},computed:{...mapState("context",["mainContent"]),images(){if(!this.accommodation)return[];const en=[];return en.push(this.accommodation.image),en.push(...this.accommodation.images),en},accommodation(){return this.$store.getters["product/product"](this.mainContent.uuid)},hasOpeningInformation(){return this.accommodation.openPermanently||this.accommodation.openingPeriod||this.accommodation.exceptionDays||this.accommodation.closingDays},hasPricingInformation(){return this.accommodation.free||this.accommodation.standardPrice}},mounted(){this.fetchAccommodation(this.mainContent.uuid)},methods:{...mapActions("product",["fetchAccommodation"])}},_hoisted_1$r={class:"accommodation"},_hoisted_2$o={key:0,class:"accommodation__info-teaser"},_hoisted_3$n={key:0,class:"accommodation__rating"},_hoisted_4$i={key:0,class:"accommodation__stars"},_hoisted_5$g={key:1,class:"accommodation__classification"},_hoisted_6$d={key:2,class:"accommodation__classification-description wysiwyg"},_hoisted_7$c={key:1,class:"accommodation__capacity"},_hoisted_8$9={key:0,class:"accommodation__rooms"},_hoisted_9$8={key:1,class:"accommodation__divider","aria-hidden":"true"},_hoisted_10$8={key:2,class:"accommodation__beds"},_hoisted_11$8={class:"accommodation__main-content"},_hoisted_12$6=["innerHTML"],_hoisted_13$5={key:1,class:"accommodation__main-content-markup"},_hoisted_14$4={key:0,class:"accommodation__open-permanently accommodation__item"},_hoisted_15$3={key:1,class:"accommodation__opening-period accommodation__item"},_hoisted_16$3={key:2,class:"accommodation__exception-days accommodation__item"},_hoisted_17$3={key:3,class:"accommodation__closing-days accommodation__item"},_hoisted_18$3={key:0,class:"accommodation__free accommodation__item"},_hoisted_19$3={key:1,class:"accommodation__standard_price accommodation__item"};function _sfc_render$q(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("button-component"),dn=resolveComponent("product-hero"),hn=resolveComponent("photo-grid"),mn=resolveComponent("markup-renderer"),gn=resolveComponent("referencedProducts"),yn=resolveComponent("labels"),fn=resolveComponent("facilities"),bn=resolveComponent("tab"),Mn=resolveComponent("tabs"),Tn=resolveComponent("contact-info"),xn=resolveComponent("nearby"),En=resolveComponent("recommended"),Rn=resolveComponent("inspiration");return openBlock(),createElementBlock("div",_hoisted_1$r,[createVNode(dn,{title:en.mainContent.title,type:rn.accommodation?rn.accommodation.type:void 0,locations:rn.accommodation?[rn.accommodation.city]:[]},{default:withCtx(()=>[rn.accommodation?(openBlock(),createElementBlock("div",_hoisted_2$o,[rn.accommodation.stars||rn.accommodation.classification?(openBlock(),createElementBlock("div",_hoisted_3$n,[rn.accommodation.stars?(openBlock(),createElementBlock("span",_hoisted_4$i,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.accommodation.stars,ni=>(openBlock(),createBlock(on,{key:ni,icon:["fas","star"],class:"accommodation__star"}))),128))])):createCommentVNode("",!0),rn.accommodation.classification&&rn.accommodation.showExtraInformation?(openBlock(),createElementBlock("span",_hoisted_5$g,toDisplayString(rn.accommodation.classification),1)):createCommentVNode("",!0),rn.accommodation.showExtraInformation?(openBlock(),createElementBlock("span",_hoisted_6$d,[createBaseVNode("a",{class:"accommodation__classification-description-icon",onMouseenter:He[0]||(He[0]=ni=>an.hoveredClassification=!0),onMouseleave:He[1]||(He[1]=ni=>an.hoveredClassification=!1),onClick:He[2]||(He[2]=withModifiers(ni=>an.selectedClassification=!an.selectedClassification,["prevent"]))},[createVNode(on,{icon:["far","question-circle"]})],32),withDirectives(createBaseVNode("span",{class:"accommodation__classification-description-content"},toDisplayString(en.$t('"Superior" hotels are hotels that exceed the usual requirements for the number of stars they have, but do not qualify for an extra star.')),513),[[vShow,an.hoveredClassification||an.selectedClassification]])])):createCommentVNode("",!0)])):createCommentVNode("",!0),rn.accommodation.rooms||rn.accommodation.beds?(openBlock(),createElementBlock("div",_hoisted_7$c,[rn.accommodation.rooms?(openBlock(),createElementBlock("span",_hoisted_8$9,toDisplayString(rn.accommodation.rooms)+" "+toDisplayString(rn.accommodation.beds?en.$t("Rooms"):en.$t("Units")),1)):createCommentVNode("",!0),rn.accommodation.rooms&&rn.accommodation.beds?(openBlock(),createElementBlock("span",_hoisted_9$8,"|")):createCommentVNode("",!0),rn.accommodation.beds?(openBlock(),createElementBlock("span",_hoisted_10$8,toDisplayString(rn.accommodation.beds)+" "+toDisplayString(en.$t("persons")),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),rn.accommodation.bookingUrl?(openBlock(),createBlock(sn,{key:2,name:en.$t("Book online"),url:rn.accommodation.bookingUrl,icon:["far","calendar-check"],target:"_blank",class:"accommodation__booking-url"},null,8,["name","url"])):createCommentVNode("",!0)])):createCommentVNode("",!0)]),_:1},8,["title","type","locations"]),createBaseVNode("div",_hoisted_11$8,[createVNode(hn,{images:rn.images},null,8,["images"]),rn.accommodation&&rn.accommodation.winDescription&&!rn.accommodation.hideWinDescription?(openBlock(),createElementBlock("div",{key:0,class:"accommodation__win-description wysiwyg",innerHTML:rn.accommodation.winDescription},null,8,_hoisted_12$6)):createCommentVNode("",!0),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_13$5,[createVNode(mn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),en.mainContent?(openBlock(),createBlock(gn,{key:2,uuid:en.mainContent.uuid},null,8,["uuid"])):createCommentVNode("",!0),rn.accommodation?(openBlock(),createBlock(yn,{key:3,labels:rn.accommodation.labels,"show-hpwvl-label":rn.accommodation.showHpwvlLabel,class:"accommodation__labels"}
88,null,8,["labels","show-hpwvl-label"])):createCommentVNode("",!0),rn.accommodation?(openBlock(),createBlock(Mn,{key:4,class:"accommodation__tabs"},{default:withCtx(()=>[rn.accommodation.facilities.length?(openBlock(),createBlock(bn,{key:0,title:en.$t("Facilities")},{default:withCtx(()=>[createVNode(fn,{facilities:rn.accommodation.facilities},null,8,["facilities"])]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasOpeningInformation?(openBlock(),createBlock(bn,{key:1,title:en.$t("Opening information")},{default:withCtx(()=>[rn.accommodation.openPermanently?(openBlock(),createElementBlock("div",_hoisted_14$4,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Open permanently")),1),He[3]||(He[3]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.accommodation&&rn.accommodation.openingPeriod?(openBlock(),createElementBlock("div",_hoisted_15$3,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Opening period")),1),He[4]||(He[4]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.accommodation.openingPeriod),1)])):createCommentVNode("",!0),rn.accommodation&&rn.accommodation.exceptionDays?(openBlock(),createElementBlock("div",_hoisted_16$3,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Exception days")),1),He[5]||(He[5]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.accommodation.exceptionDays),1)])):createCommentVNode("",!0),rn.accommodation&&rn.accommodation.closingDays?(openBlock(),createElementBlock("div",_hoisted_17$3,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Closing days")),1),He[6]||(He[6]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.accommodation.closingDays),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0),rn.hasPricingInformation?(openBlock(),createBlock(bn,{key:2,title:en.$t("Pricing information")},{default:withCtx(()=>[rn.accommodation.free?(openBlock(),createElementBlock("div",_hoisted_18$3,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Free")),1)]),createBaseVNode("p",null,toDisplayString(en.$t("Yes")),1)])):createCommentVNode("",!0),rn.accommodation.standardPrice?(openBlock(),createElementBlock("div",_hoisted_19$3,[createBaseVNode("label",null,[createBaseVNode("b",null,toDisplayString(en.$t("Standard price")),1),He[7]||(He[7]=createTextVNode(":",-1))]),createBaseVNode("p",null,toDisplayString(rn.accommodation.standardPrice),1)])):createCommentVNode("",!0)]),_:1},8,["title"])):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0)]),rn.accommodation?(openBlock(),createBlock(Tn,{key:0,title:en.mainContent.title,location:rn.accommodation.location,address:rn.accommodation.address,"postal-code":rn.accommodation.postalCode,city:rn.accommodation.city,email:rn.accommodation.email,latitude:rn.accommodation.latitude,longitude:rn.accommodation.longitude,mobile:rn.accommodation.mobile,phone:rn.accommodation.phone,website:rn.accommodation.website,links:rn.accommodation.links,"booking-url":rn.accommodation.bookingUrl,"related-products":rn.accommodation.relatedProducts},null,8,["title","location","address","postal-code","city","email","latitude","longitude","mobile","phone","website","links","booking-url","related-products"])):createCommentVNode("",!0),createVNode(xn),createVNode(En),createVNode(Rn)])}const Accommodation=_export_sfc(_sfc_main$q,[["render",_sfc_render$q],["__scopeId","data-v-a31a40b9"]]),_sfc_main$p={name:"PhotoGrid",components:{ResponsiveImage},props:{images:{type:Array,required:!0}},data(){return{selectedImageIndex:null}},computed:{selectedImage(){return typeof this.selectedImageIndex!="number"||this.images.length<this.selectedImageIndex+1?null:this.images[this.selectedImageIndex]},photoGridImagesClass(){let en=this.images.length;return en>4&&(en=4),"photo-grid__images--"+en}},mounted(){document.addEventListener("keyup",en=>{switch(en.code){case"ArrowLeft":this.previous();break;case"ArrowRight":this.next();break;case"Escape":this.close();break}})},methods:{getImageStyle,showTotalPhotos(en){return en===4&&this.images.length>5},next(){typeof this.selectedImageIndex=="number"&&this.selectedImageIndex<this.images.length-1&&this.selectedImageIndex++},previous(){this.selectedImageIndex!==null&&this.selectedImageIndex>0&&this.selectedImageIndex--},close(){this.selectedImageIndex=null},bgClose(en){en.target.hasAttribute("data-background-close")&&this.close()}}},_hoisted_1$q={class:"photo-grid"},_hoisted_2$n=["onClick"],_hoisted_3$m=["title"],_hoisted_4$h=["title"],_hoisted_5$f={class:"photo-grid__selected-image"},_hoisted_6$c=["title"];function _sfc_render$p(en,He,tn,nn,an,rn){const on=resolveComponent("responsive-image");return openBlock(),createElementBlock("div",_hoisted_1$q,[createBaseVNode("div",{class:normalizeClass(["photo-grid__images",rn.photoGridImagesClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.images.slice(0,4),(sn,dn)=>(openBlock(),createElementBlock("div",{key:dn,class:normalizeClass(["photo-grid__image-wrapper",["photo-grid__image-wrapper","photo-grid__image-wrapper--"+(dn+1),{"photo-grid__image-wrapper--total-photos":rn.showTotalPhotos(dn)}]]),onClick:hn=>en.selectedImageIndex=dn},[createVNode(on,{fallback:rn.getImageStyle(sn,"panoramic_md"),md:rn.getImageStyle(sn,"panoramic_md"),xl:rn.getImageStyle(sn,"panoramic_xl"),class:"photo-grid__image"},null,8,["fallback","md","xl"])],10,_hoisted_2$n))),128))],2),rn.selectedImage?(openBlock(),createElementBlock("div",{key:0,class:"photo-grid__album",role:"dialog","aria-modal":"true","data-background-close":"true",onClick:He[4]||(He[4]=withModifiers((...sn)=>rn.bgClose&&rn.bgClose(...sn),["prevent"]))},[createBaseVNode("a",{class:"photo-grid__album-control photo-grid__album-control--close",title:en.$t("Close"),onClick:He[0]||(He[0]=withModifiers((...sn)=>rn.close&&rn.close(...sn),["prevent"]))},[...He[5]||(He[5]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M24.8,23.4l-7.3,7.4c-0.2,0.2-0.6,0.2-0.8,0l-1-1c-0.2-0.2-0.2-0.6,0-0.8l5.9-5.9l-5.9-5.9c-0.2-0.2-0.2-0.6,0-0.8l1-1c0.2-0.2,0.6-0.2,0.8,0l7.3,7.4C25,22.8,25,23.2,24.8,23.4z",fill:"
88currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"}),createBaseVNode("path",{d:"M21.7,22.6l7.3-7.4c0.2-0.2,0.6-0.2,0.8,0l1,1c0.2,0.2,0.2,0.6,0,0.8L25,23l5.9,5.9c0.2,0.2,0.2,0.6,0,0.8l-1,1c-0.2,0.2-0.6,0.2-0.8,0l-7.3-7.4C21.5,23.2,21.5,22.8,21.7,22.6z",fill:"currentColor"})],-1)])],8,_hoisted_3$m),createBaseVNode("div",{class:"photo-grid__overlay","data-background-close":"true",onClick:He[3]||(He[3]=withModifiers((...sn)=>rn.bgClose&&rn.bgClose(...sn),["prevent"]))},[en.selectedImageIndex>0?(openBlock(),createElementBlock("a",{key:0,class:"photo-grid__album-control photo-grid__album-control--previous",title:en.$t("Previous"),onClick:He[1]||(He[1]=withModifiers((...sn)=>rn.previous&&rn.previous(...sn),["prevent"]))},[...He[6]||(He[6]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M16.3,22.5l7.3-7.4c0.2-0.2,0.6-0.2,0.8,0l1,1c0.2,0.2,0.2,0.6,0,0.8l-5.9,5.9l5.9,5.9c0.2,0.2,0.2,0.6,0,0.8l-1,1c-0.2,0.2-0.6,0.2-0.8,0l-7.3-7.4C16.1,23.1,16.1,22.7,16.3,22.5z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"})],-1)])],8,_hoisted_4$h)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$f,[createVNode(on,{fallback:rn.getImageStyle(rn.selectedImage,"original_md"),md:rn.getImageStyle(rn.selectedImage,"original_md"),xl:rn.getImageStyle(rn.selectedImage,"original_xl")},null,8,["fallback","md","xl"])]),en.selectedImageIndex<tn.images.length-1?(openBlock(),createElementBlock("a",{key:1,class:"photo-grid__album-control photo-grid__album-control--next",title:en.$t("Next"),onClick:He[2]||(He[2]=withModifiers((...sn)=>rn.next&&rn.next(...sn),["prevent"]))},[...He[7]||(He[7]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M28.6,23.4l-7.3,7.4c-0.2,0.2-0.6,0.2-0.8,0l-1-1c-0.2-0.2-0.2-0.6,0-0.8l5.9-5.9l-5.9-5.9c-0.2-0.2-0.2-0.6,0-0.8l1-1c0.2-0.2,0.6-0.2,0.8,0l7.3,7.4C28.8,22.8,28.8,23.2,28.6,23.4z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"})],-1)])],8,_hoisted_6$c)):createCommentVNode("",!0)])])):createCommentVNode("",!0)])}const RoutePhotoGrid=_export_sfc(_sfc_main$p,[["render",_sfc_render$p],["__scopeId","data-v-06026617"]]);var gpx={exports:{}},hasRequiredGpx;function requireGpx(){return hasRequiredGpx||(hasRequiredGpx=1,(function(en){var He=He||requireLeafletSrc(),tn=15e3,nn=1e3,an=60*nn,rn=60*an,on=24*rn,sn="http://www.topografix.com/GPX/gpx_style/0/2",dn=new He.Icon.Default,hn={startIcon:dn,endIcon:dn,wptIcons:{"":dn},wptTypeIcons:{"":dn},pointMatchers:[]},mn={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},gn={color:"blue"},yn={parseElements:["track","route","waypoint"],joinTrackSegments:!0};He.GPX=He.FeatureGroup.extend({initialize:function(fn,bn){bn.max_point_interval=bn.max_point_interval||tn,bn.markers=this._merge_objs(hn,bn.markers||{}),bn.marker_options=this._merge_objs(mn,bn.marker_options||{}),bn.polyline_options=bn.polyline_options||[],bn.gpx_options=this._merge_objs(yn,bn.gpx_options||{}),He.Util.setOptions(this,bn),He.GPXTrackIcon=He.Icon.extend({options:bn.marker_options}),this._gpx=fn,this._layers={},this._prepare_markers(bn.markers),this._init_info(),fn&&this._parse(fn,bn,this.options.async)},get_duration_string:function(fn,bn){var Mn="";fn>=on&&(Mn+=Math.floor(fn/on)+"d ",fn=fn%on),fn>=rn&&(Mn+=Math.floor(fn/rn)+":",fn=fn%rn);var Tn=Math.floor(fn/an);fn=fn%an,Tn<10&&(Mn+="0"),Mn+=Tn+"'";var xn=Math.floor(fn/nn);return fn=fn%nn,xn<10&&(Mn+="0"),Mn+=xn,!bn&&fn>0?Mn+="."+Math.round(Math.floor(fn)*1e3)/1e3:Mn+='"',Mn},get_duration_string_iso:function(fn,bn){var Mn=this.get_duration_string(fn,bn);return Mn.replace("'",":").replace('"',"")},to_miles:function(fn){return fn/1.60934},to_ft:function(fn){return fn*3.28084},m_to_km:function(fn){return fn/1e3},m_to_mi:function(fn){return fn/1609.34},ms_to_kmh:function(fn){return fn*3.6},ms_to_mih:function(fn){return fn/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/(3600*1e3))},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/(3600*1e3))},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/(3600*1e3))},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/(3600*1e3))},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var fn=this;return this._info.elevation._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_km,null,function(Mn,Tn){return Mn.toFixed(2)+" km, "+Tn.toFixed(0)+" m"})})},get_elevation_data_imp:function(){var fn=this;return this._info.elevation._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_mi,fn.to_ft,function(Mn,Tn){return Mn.toFixed(2)+" mi, "+Tn.toFixed(0)+" ft"})})},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var fn=this;return this._info.speed._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_km,fn.ms_to_kmh,function(Mn,Tn){return Mn.toFixed(2)+" km, "+Tn.toFixed(2)+" km/h"})})},get_speed_data_imp:function(){var fn=this;return this._info.speed._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_mi,fn.ms_to_mih,function(Mn,Tn){return Mn.toFixed(2)+" mi, "+Tn.toFixed(2)+" mi/h"})})},get_speed_max:function(){return this.m_to_km(this._info.speed.max)*3600},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg}
88,get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var fn=this;return this._info.hr._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_km,null,function(Mn,Tn){return Mn.toFixed(2)+" km, "+Tn.toFixed(0)+" bpm"})})},get_heartrate_data_imp:function(){var fn=this;return this._info.hr._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_mi,null,function(Mn,Tn){return Mn.toFixed(2)+" mi, "+Tn.toFixed(0)+" bpm"})})},get_cadence_data:function(){var fn=this;return this._info.cad._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_km,null,function(Mn,Tn){return Mn.toFixed(2)+" km, "+Tn.toFixed(0)+" rpm"})})},get_temp_data:function(){var fn=this;return this._info.atemp._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_km,null,function(Mn,Tn){return Mn.toFixed(2)+" km, "+Tn.toFixed(0)+" degrees"})})},get_cadence_data_imp:function(){var fn=this;return this._info.cad._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_mi,null,function(Mn,Tn){return Mn.toFixed(2)+" mi, "+Tn.toFixed(0)+" rpm"})})},get_temp_data_imp:function(){var fn=this;return this._info.atemp._points.map(function(bn){return fn._prepare_data_point(bn,fn.m_to_mi,null,function(Mn,Tn){return Mn.toFixed(2)+" mi, "+Tn.toFixed(0)+" degrees"})})},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(fn,bn){var Mn={};for(var Tn in fn)Mn[Tn]=fn[Tn];for(var Tn in bn)Mn[Tn]=bn[Tn];return Mn},_prepare_data_point:function(fn,bn,Mn,Tn){var xn=[bn&&bn(fn[0])||fn[0],Mn&&Mn(fn[1])||fn[1]];return xn.push(Tn&&Tn(xn[0],xn[1])||xn[0]+": "+xn[1]),xn},_prepare_markers:function(fn){function bn(Mn){return new He.GPXTrackIcon({iconUrl:Mn})}return Object.entries(fn).forEach(([Mn,Tn])=>{Mn==="wptIcons"||Mn==="wptTypeIcons"?fn[Mn]=this._prepare_markers(Tn):Mn==="pointMatchers"?fn[Mn]=Tn.map(xn=>(typeof xn.icon=="string"&&(xn.icon=bn(xn.icon)),xn)):typeof Tn=="string"?fn[Mn]=bn(Tn):typeof Tn=="object"&&(fn[Mn]=this._prepare_markers(Tn))}),fn},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(fn,bn,Mn,Tn){Tn==null&&(Tn=this.options.async),Mn==null&&(Mn=this.options);var xn=new window.XMLHttpRequest;xn.open("GET",fn,Tn);try{xn.overrideMimeType("text/xml")}catch{}xn.onreadystatechange=function(){xn.readyState==4&&xn.status==200&&bn(xn.responseXML,Mn)},xn.send(null)},_parse:function(fn,bn,Mn){var Tn=this,xn=function(Rn,ni){var mi=Tn._parse_gpx_data(Rn,ni);if(!mi){Tn.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(ni.gpx_options.parseElements)});return}Tn.addLayer(mi),Tn.fire("loaded",{layers:mi,element:Rn})};if(fn.substr(0,1)==="<"){var En=new DOMParser;Mn?setTimeout(function(){xn(En.parseFromString(fn,"text/xml"),bn)}):xn(En.parseFromString(fn,"text/xml"),bn)}else this._load_xml(fn,xn,bn,Mn)},_parse_gpx_data:function(fn,bn){var Mn,Tn,xn=[],En=fn.getElementsByTagName("name");En.length>0&&(this._info.name=En[0].textContent);var Rn=fn.getElementsByTagName("desc");Rn.length>0&&(this._info.desc=Rn[0].textContent);var ni=fn.getElementsByTagName("author");ni.length>0&&(this._info.author=ni[0].textContent);var mi=fn.getElementsByTagName("copyright");mi.length>0&&(this._info.copyright=mi[0].textContent);var bi=bn.gpx_options.parseElements;if(bi.indexOf("route")>-1){var _i=fn.getElementsByTagName("rte");for(Mn=0;Mn<_i.length;Mn++){var oi=_i[Mn],si=this._extract_styling(oi),fi=this._get_polyline_options(bn.polyline_options,Mn);xn=xn.concat(this._parse_segment(_i[Mn],bn,si,fi,"rtept"))}}if(bi.indexOf("track")>-1){var ei=fn.getElementsByTagName("trk");for(Mn=0;Mn<ei.length;Mn++){var ci=ei[Mn],si=this._extract_styling(ci),fi=this._get_polyline_options(bn.polyline_options,Mn);if(bn.gpx_options.joinTrackSegments)xn=xn.concat(this._parse_segment(ci,bn,si,fi,"trkpt"));else{var di=ci.getElementsByTagName("trkseg");for(yi=0;yi<di.length;yi++)xn=xn.concat(this._parse_segment(di[yi],bn,si,fi,"trkpt"))}}}if(this._info.hr.avg=Math.round(this._info.hr._total/this._info.hr._points.length),this._info.cad.avg=M
88ath.round(this._info.cad._total/this._info.cad._points.length),this._info.atemp.avg=Math.round(this._info.atemp._total/this._info.atemp._points.length),bi.indexOf("waypoint")>-1)for(Tn=fn.getElementsByTagName("wpt"),Mn=0;Mn<Tn.length;Mn++){var wi=new He.LatLng(Tn[Mn].getAttribute("lat"),Tn[Mn].getAttribute("lon")),Ci=Tn[Mn].getElementsByTagName("name"),En=Ci.length>0?Ci[0].textContent:"",ji=Tn[Mn].getElementsByTagName("desc"),Rn=ji.length>0?ji[0].textContent:"",Yi=Tn[Mn].getElementsByTagName("sym"),Pi=Yi.length>0?Yi[0].textContent:null,Fi=Tn[Mn].getElementsByTagName("type"),$i=Fi.length>0?Fi[0].textContent:null,Wi=bn.markers.wptIcons,hi=bn.markers.wptTypeIcons,Si=bn.markers.pointMatchers||[],Ni;if(Wi&&Pi&&Wi[Pi])Ni=Wi[Pi];else if(hi&&$i&&hi[$i])Ni=hi[$i];else if(Si.length>0){for(var yi=0;yi<Si.length;yi++)if(Si[yi].regex.test(En)){Ni=Si[yi].icon;break}}else Wi&&Wi[""]&&(Ni=Wi[""]);if(!Ni){console.log("No waypoint icon could be matched for symKey=%s,typeKey=%s,name=%s on waypoint %o",Pi,$i,En,Tn[Mn]);continue}var Hi=new He.Marker(wi,{clickable:bn.marker_options.clickable,title:En,icon:Ni,type:"waypoint"});Hi.bindPopup("<b>"+En+"</b>"+(Rn.length>0?"<br>"+Rn:"")).openPopup(),this.fire("addpoint",{point:Hi,point_type:"waypoint",element:Tn[Mn]}),xn.push(Hi)}if(xn.length>1)return new He.FeatureGroup(xn);if(xn.length==1)return xn[0]},_parse_segment:function(fn,bn,Mn,Tn,xn){var En=fn.getElementsByTagName(xn);if(!En.length)return[];for(var Rn=[],ni=[],mi=[],bi=null,_i=0;_i<En.length;_i++){var oi,si=new He.LatLng(En[_i].getAttribute("lat"),En[_i].getAttribute("lon"));si.meta={time:null,ele:null,hr:null,cad:null,atemp:null,speed:null},oi=En[_i].getElementsByTagName("time"),oi.length>0?si.meta.time=new Date(Date.parse(oi[0].textContent)):si.meta.time=new Date("1970-01-01T00:00:00");var fi=bi!=null?Math.abs(si.meta.time-bi.meta.time):0;oi=En[_i].getElementsByTagName("ele"),oi.length>0?si.meta.ele=parseFloat(oi[0].textContent):si.meta.ele=bi!=null?bi.meta.ele:null;var ei=bi!=null?si.meta.ele-bi.meta.ele:0,ci=bi!=null?this._dist3d(bi,si):0;if(oi=En[_i].getElementsByTagName("speed"),oi.length>0?si.meta.speed=parseFloat(oi[0].textContent):si.meta.speed=fi>0?1e3*ci/fi:0,oi=En[_i].getElementsByTagName("name"),oi.length>0){for(var di=oi[0].textContent,wi=bn.markers.pointMatchers||[],Ci=0;Ci<wi.length;Ci++)if(wi[Ci].regex.test(di)){ni.push({label:di,coords:si,icon:wi[Ci].icon,element:En[_i]});break}}this._info.length+=ci,oi=En[_i].getElementsByTagNameNS("*","hr"),oi.length>0&&(si.meta.hr=parseInt(oi[0].textContent),this._info.hr._points.push([this._info.length,si.meta.hr]),this._info.hr._total+=si.meta.hr),oi=En[_i].getElementsByTagNameNS("*","cad"),oi.length>0&&(si.meta.cad=parseInt(oi[0].textContent),this._info.cad._points.push([this._info.length,si.meta.cad]),this._info.cad._total+=si.meta.cad),oi=En[_i].getElementsByTagNameNS("*","atemp"),oi.length>0&&(si.meta.atemp=parseInt(oi[0].textContent),this._info.atemp._points.push([this._info.length,si.meta.atemp]),this._info.atemp._total+=si.meta.atemp),si.meta.ele>this._info.elevation.max&&(this._info.elevation.max=si.meta.ele),si.meta.ele<this._info.elevation.min&&(this._info.elevation.min=si.meta.ele),this._info.elevation._points.push([this._info.length,si.meta.ele]),si.meta.speed>this._info.speed.max&&(this._info.speed.max=si.meta.speed),this._info.speed._points.push([this._info.length,si.meta.speed]),bi==null&&this._info.duration.start==null&&(this._info.duration.start=si.meta.time),this._info.duration.end=si.meta.time,this._info.duration.total+=fi,fi<bn.max_point_interval&&(this._info.duration.moving+=fi),ei>0?this._info.elevation.gain+=ei:this._info.elevation.loss+=Math.abs(ei),bi=si,Rn.push(si)}var ji=new He.Polyline(Rn,this._extract_styling(fn,Mn,Tn));if(this.fire("addline",{line:ji,element:fn}),mi.push(ji),bn.markers.startIcon){var Yi=new He.Marker(Rn[0],{clickable:bn.marker_options.clickable,icon:bn.markers.startIcon});this.fire("addpoint",{point:Yi,point_type:"start",element:En[0]}),mi.push(Yi)}if(bn.markers.endIcon){var Yi=new He.Marker(Rn[Rn.length-1],{clickable:bn.marker_options.clickable,icon:bn.markers.endIcon});this.fire("addpoint",{point:Yi,point_type:"end",element:En[En.length-1]}),mi.push(Yi)}for(var _i=0;_i<ni.length;_i++){var Yi=new He.Marker(ni[_i].coords,{clickable:bn.marker_options.clickable,title:ni[_i].label,icon:ni[_i].icon});this.fire("addpoint",{point:Yi,point_type:"label",element:ni[_i].element}),mi.push(Yi)}return mi},_get_polyline_options:function(fn,bn){return Array.isArray(fn)?fn[bn]||{}:fn},_extract_styling:function(fn,bn,Mn){var Tn=this._merge_objs(gn,bn),xn=fn.getElementsByTagNameNS(sn,"line");if(xn.length>0){var En=xn[0].getElementsByTagName("color");En.length>0&&(Tn.color="#"+En[0].textContent);var En=xn[0].getElementsByTagName("opacity");En.length>0&&(Tn.opacity=En[0].textContent);var En=xn[0].getElementsByTagName("weight");En.length>0&&(Tn.weight=En[0].textContent);var En=xn[0].getElementsByTagName("linecap");En.length>0&&(Tn.lineCap=En[0].textContent);var En=xn[0].getElementsByTagName("linejoin");En.length>0&&(Tn.lineJoin=En[0].textContent);var En=xn[0].getElementsByTagName("dasharray");En.length>0&&(Tn.dashArray=En[0].textContent);var En=xn[0].getElementsByTagName("dashoffset");En.length>0&&(Tn.dashOffset=En[0].textContent)}return this._merge_objs(Tn,Mn)},_dist2d:function(fn,bn){var Mn=6371e3,Tn=this._deg2rad(bn.lat-fn.lat),xn=this._deg2rad(bn.lng-fn.lng),En=Math.sin(Tn/2)*Math.sin(Tn/2)+Math.cos(this._deg2rad(fn.lat))*Math.cos(this._deg2rad(bn.lat))*Math.sin(xn/2)*Math.sin(xn/2),Rn=2*Math.atan2(Math.sqrt(En),Math.sqrt(1-En)),ni=Mn*Rn;return ni},_dist3d:function(fn,bn){var Mn=this._dist2d(fn,bn),Tn=Math.abs(bn.meta.ele-fn.meta.ele);return Math.sqrt(Math.pow(Mn,2)+Math.pow(Tn,2))},_deg2rad:function(fn){return fn*Math.PI/180}}),en.exports=He})(gpx)),gpx.exports}var gpxExports=requireGpx();const L$1=getDefaultExportFromCjs(gpxExports),waypointIcon="/build/assets/pin-icon-wpt-DP7Vpe_F.png",startIcon="/build/assets/pin-icon-start-D56WCJoi.png",endIcon="/build/assets/pin-icon-end-BJxAhu3R.png",_sfc_main$o={name:"DirectionsType",computed:{...mapState("tris",["route"]),description(){let en="";if(this.route.networkBased)switch(en=this.$t("Follow the nodes"),this.route.mobility){case"FOOT":en=this.$t("Follow the nodes of the walking network");break;case"BIKE":en=this.$t("Follow the nodes of the bicycle network");break}else switch(en=this.$t("Follow the signs"),this.route.mobility){case"FOOT":en=this.$t("Follow the signs of the walking network");break;case"BIKE":en=this.$t("Follow the signs of the cycling network");break}return en}}},_hoisted_1$p={class:"directions-type"},_hoisted_2$m=["innerHTML"];function _sfc_render$o(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$p,[createBaseVNode("div",{class:"directions-type__icon",innerHTML:en.route.signSvg},null,8,_hoisted_2$m)])}const DirectionsType=_export_sfc(_sfc_main$o,[["render",_sfc_render$o],["__scopeId","data-v-631fe09c"]]);function _isPlaceholder(en){return en!=null&&typeof en=="object"&&en["@@functional/placeholder"]===!0}function _curry1(en){return function He(tn){return arguments.length===0||_isPlaceholder(tn)?He:en.apply(this,arguments)}}function _curry2(en){return function He(tn,nn){switch(arguments.length){case 0:return He;case 1:return _isPlaceholder(tn)?He:_curry1(function(an){return en(tn,an)});default:return _isPlaceholder(tn)&&_isPlaceholder(nn)?He:_isPlaceholder(tn)?_curry1(function(an){return en(an,nn)}):_isPlaceholder(nn)?_curry1(function(an){return en(tn,an)}):en(tn,nn)}}}function _arity(en,He){switch(en){case 0:return function(){return He.apply(this,arguments)};case 1:return function(tn){return He.apply(this,arguments)};case 2:return function(tn,nn){return He.apply(this,arguments)};case 3:return function(tn,nn,an){return He.apply(this,arguments)};case 4:return function(tn,nn,an,rn){return He.apply(this,arguments)};case 5:return function(tn,nn,an,rn,on){return He.apply(this,arguments)};case 6:return function(tn,nn,an,rn,on,sn){return He.apply(this,arguments)};case 7:return function(tn,nn,an,rn,on,sn,dn){return He.apply(this,arguments)};case 8:return function(tn,nn,an,rn,on,sn,dn,hn){return He.apply(this,arguments)};case 9:return function(tn,nn,an,rn,on,sn,dn,hn,mn){return He.apply(this,arguments)};case 10:return function(tn,nn,an,rn,on,sn,dn,hn,mn,gn){return He.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(en,He,tn){return function(){for(var nn=[],an=0,rn=en,on=0;on<He.length||an<arguments.length;){var sn;on<He.length&&(!_isPlaceholder(He[on])||an>=arguments.length)?sn=He[on]:(sn=arguments[an],an+=1),nn[on]=sn,_isPlaceholder(sn)||(rn-=1),on+=1}return rn<=0?tn.apply(this,nn):_arity(rn,_curryN(en,nn,tn))}}var curryN=_curry2(function(He,tn){return He===1?_curry1(tn):_arity(He,_curryN(He,[],tn))});function _curry3(en){return function He(tn,nn,an){switch(arguments.length){case 0:return He;case 1:return _isPlaceholder(tn)?He:_curry2(function(rn,on){return en(tn,rn,on)});case 2:return _isPlaceholder(tn)&&_isPlaceholder(nn)?He:_isPlaceholder(tn)?_curry2(function(rn,on){return en(rn,nn,on)}):_isPlaceholder(nn)?_curry2(function(rn,on){return en(tn,rn,on)}):_curry1(function(rn){return en(tn,nn,rn)});default:return _isPlaceholder(tn)&&_isPlaceholder(nn)&&_isPlaceholder(an)?He:_isPlaceholder(tn)&&_isPlaceholder(nn)?_curry2(function(rn,on){return en(rn,on,an)}):_isPlaceholder(tn)&&_isPlaceholder(an)?_curry2(function(rn,on){return en(rn,nn,on)}):_isPlaceholder(nn)&&_isPlaceholder(an)?_curry2(function(rn,on){return en(tn,rn,on)}):_isPlaceholder(tn)?_curry1(function(rn){return en(rn,nn,an)}):_isPlaceholder(nn)?_curry1(function(rn){return en(tn,rn,an)}):_isPlaceholder(an)?_curry1(function(rn){return en(tn,nn,rn)}):en(tn,nn,an)}}}var _isArray=Array.isArray||function(He){return He!=null&&He.length>=0&&Object.prototype.toString.call(He)==="[object Array]"};function _isTransformer(en){return en!=null&&typeof en["@@transducer/step"]=="function"}function _dispatchable(en,He,tn){return function(){if(arguments.length===0)return tn();var nn=arguments[arguments.length-1];if(!_isArray(nn)){for(var an=0;an<en.length;){if(typeof nn[en[an]]=="function")return nn[en[an]].apply(nn,Array.prototype.slice.call(arguments,0,-1));an+=1}if(_isTransformer(nn)){var rn=He.apply(null,Array.prototype.slice.call(arguments,0,-1));return rn(nn)}}return tn.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(en){return this.xf["@@transducer/result"](en)}};function _map(en,He){for(var tn=0,nn=He.length,an=Array(nn);tn<nn;)an[tn]=en(He[tn]),tn+=1;return an}function _isString(en){return Object.prototype.toString.call(en)==="[object String]"}var _isArrayLike=_curry1(function(He){return _isArray(He)?!0:!He||typeof He!="object"||_isString(He)?!1:He.length===0?!0:He.length>0?He.hasOwnProperty(0)&&He.hasOwnProperty(He.length-1):!1}),XWrap=(function(){function en(He){this.f=He}return en.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},en.prototype["@@transducer/result"]=function(He){return He},en.prototype["@@transducer/step"]=function(He,tn){return this.f(He,t
88n)},en})();function _xwrap(en){return new XWrap(en)}var bind=_curry2(function(He,tn){return _arity(He.length,function(){return He.apply(tn,arguments)})});function _arrayReduce(en,He,tn){for(var nn=0,an=tn.length;nn<an;){if(He=en["@@transducer/step"](He,tn[nn]),He&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}nn+=1}return en["@@transducer/result"](He)}function _iterableReduce(en,He,tn){for(var nn=tn.next();!nn.done;){if(He=en["@@transducer/step"](He,nn.value),He&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}nn=tn.next()}return en["@@transducer/result"](He)}function _methodReduce(en,He,tn,nn){return en["@@transducer/result"](tn[nn](bind(en["@@transducer/step"],en),He))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(en,He,tn){if(typeof en=="function"&&(en=_xwrap(en)),_isArrayLike(tn))return _arrayReduce(en,He,tn);if(typeof tn["fantasy-land/reduce"]=="function")return _methodReduce(en,He,tn,"fantasy-land/reduce");if(tn[symIterator]!=null)return _iterableReduce(en,He,tn[symIterator]());if(typeof tn.next=="function")return _iterableReduce(en,He,tn);if(typeof tn.reduce=="function")return _methodReduce(en,He,tn,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=(function(){function en(He,tn){this.xf=tn,this.f=He}return en.prototype["@@transducer/init"]=_xfBase.init,en.prototype["@@transducer/result"]=_xfBase.result,en.prototype["@@transducer/step"]=function(He,tn){return this.xf["@@transducer/step"](He,this.f(tn))},en})(),_xmap=_curry2(function(He,tn){return new XMap(He,tn)});function _has(en,He){return Object.prototype.hasOwnProperty.call(He,en)}var toString$1=Object.prototype.toString,_isArguments=(function(){return toString$1.call(arguments)==="[object Arguments]"?function(He){return toString$1.call(He)==="[object Arguments]"}:function(He){return _has("callee",He)}})(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=(function(){return arguments.propertyIsEnumerable("length")})(),contains=function(He,tn){for(var nn=0;nn<He.length;){if(He[nn]===tn)return!0;nn+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(He){return Object(He)!==He?[]:Object.keys(He)}:function(He){if(Object(He)!==He)return[];var tn,nn,an=[],rn=hasArgsEnumBug&&_isArguments(He);for(tn in He)_has(tn,He)&&(!rn||tn!=="length")&&(an[an.length]=tn);if(hasEnumBug)for(nn=nonEnumerableProps.length-1;nn>=0;)tn=nonEnumerableProps[nn],_has(tn,He)&&!contains(an,tn)&&(an[an.length]=tn),nn-=1;return an}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(He,tn){switch(Object.prototype.toString.call(tn)){case"[object Function]":return curryN(tn.length,function(){return He.call(this,tn.apply(this,arguments))});case"[object Object]":return _reduce(function(nn,an){return nn[an]=He(tn[an]),nn},{},keys(tn));default:return _map(He,tn)}})),map$2=map$1,_isInteger=Number.isInteger||function(He){return He<<0===He},nth=_curry2(function(He,tn){var nn=He<0?tn.length+He:He;return _isString(tn)?tn.charAt(nn):tn[nn]}),nth$1=nth,prop=_curry2(function(He,tn){if(tn!=null)return _isInteger(He)?nth$1(He,tn):tn[He]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(He){for(var tn=keys(He),nn=tn.length,an=[],rn=0;rn<nn;)an[rn]=He[tn[rn]],rn+=1;return an}),values$1=values;function _isFunction(en){var He=Object.prototype.toString.call(en);return He==="[object Function]"||He==="[object AsyncFunction]"||He==="[object GeneratorFunction]"||He==="[object AsyncGeneratorFunction]"}var type=_curry1(function(He){return He===null?"Null":He===void 0?"Undefined":Object.prototype.toString.call(He).slice(8,-1)});function _pipe(en,He){return function(){return He.call(this,en.apply(this,arguments))}}function _checkForMethod(en,He){return function(){var tn=arguments.length;if(tn===0)return He();var nn=arguments[tn-1];return _isArray(nn)||typeof nn[en]!="function"?He.apply(this,arguments):nn[en].apply(nn,Array.prototype.slice.call(arguments,0,tn-1))}}var slice=_curry3(_checkForMethod("slice",function(He,tn,nn){return Array.prototype.slice.call(nn,He,tn)})),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(en){for(var He=[],tn;!(tn=en.next()).done;)He.push(tn.value);return He}function _includesWith(en,He,tn){for(var nn=0,an=tn.length;nn<an;
88){if(en(He,tn[nn]))return!0;nn+=1}return!1}function _functionName(en){var He=String(en).match(/^function (\w*)/);return He==null?"":He[1]}function _objectIs(en,He){return en===He?en!==0||1/en===1/He:en!==en&&He!==He}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(en,He,tn,nn){var an=_arrayFromIterator(en),rn=_arrayFromIterator(He);function on(sn,dn){return _equals(sn,dn,tn.slice(),nn.slice())}return!_includesWith(function(sn,dn){return!_includesWith(on,dn,sn)},rn,an)}function _equals(en,He,tn,nn){if(_objectIs$1(en,He))return!0;var an=type(en);if(an!==type(He))return!1;if(typeof en["fantasy-land/equals"]=="function"||typeof He["fantasy-land/equals"]=="function")return typeof en["fantasy-land/equals"]=="function"&&en["fantasy-land/equals"](He)&&typeof He["fantasy-land/equals"]=="function"&&He["fantasy-land/equals"](en);if(typeof en.equals=="function"||typeof He.equals=="function")return typeof en.equals=="function"&&en.equals(He)&&typeof He.equals=="function"&&He.equals(en);switch(an){case"Arguments":case"Array":case"Object":if(typeof en.constructor=="function"&&_functionName(en.constructor)==="Promise")return en===He;break;case"Boolean":case"Number":case"String":if(!(typeof en==typeof He&&_objectIs$1(en.valueOf(),He.valueOf())))return!1;break;case"Date":if(!_objectIs$1(en.valueOf(),He.valueOf()))return!1;break;case"Error":return en.name===He.name&&en.message===He.message;case"RegExp":if(!(en.source===He.source&&en.global===He.global&&en.ignoreCase===He.ignoreCase&&en.multiline===He.multiline&&en.sticky===He.sticky&&en.unicode===He.unicode))return!1;break}for(var rn=tn.length-1;rn>=0;){if(tn[rn]===en)return nn[rn]===He;rn-=1}switch(an){case"Map":return en.size!==He.size?!1:_uniqContentEquals(en.entries(),He.entries(),tn.concat([en]),nn.concat([He]));case"Set":return en.size!==He.size?!1:_uniqContentEquals(en.values(),He.values(),tn.concat([en]),nn.concat([He]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var on=keys(en);if(on.length!==keys(He).length)return!1;var sn=tn.concat([en]),dn=nn.concat([He]);for(rn=on.length-1;rn>=0;){var hn=on[rn];if(!(_has(hn,He)&&_equals(He[hn],en[hn],sn,dn)))return!1;rn-=1}return!0}var equals=_curry2(function(He,tn){return _equals(He,tn,[],[])});function _indexOf(en,He,tn){var nn,an;if(typeof en.indexOf=="function")switch(typeof He){case"number":if(He===0){for(nn=1/He;tn<en.length;){if(an=en[tn],an===0&&1/an===nn)return tn;tn+=1}return-1}else if(He!==He){for(;tn<en.length;){if(an=en[tn],typeof an=="number"&&an!==an)return tn;tn+=1}return-1}return en.indexOf(He,tn);case"string":case"boolean":case"function":case"undefined":return en.indexOf(He,tn);case"object":if(He===null)return en.indexOf(He,tn)}for(;tn<en.length;){if(equals(en[tn],He))return tn;tn+=1}return-1}function _includes(en,He){return _indexOf(He,en,0)>=0}function _quote(en){var He=en.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+He.replace(/"/g,'\\"')+'"'}var pad=function(He){return(He<10?"0":"")+He},_toISOString=typeof Date.prototype.toISOString=="function"?function(He){return He.toISOString()}:function(He){return He.getUTCFullYear()+"-"+pad(He.getUTCMonth()+1)+"-"+pad(He.getUTCDate())+"T"+pad(He.getUTCHours())+":"+pad(He.getUTCMinutes())+":"+pad(He.getUTCSeconds())+"."+(He.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(en){return function(){return!en.apply(this,arguments)}}function _filter(en,He){for(var tn=0,nn=He.length,an=[];tn<nn;)en(He[tn])&&(an[an.length]=He[tn]),tn+=1;return an}function _isObject(en){return Object.prototype.toString.call(en)==="[object Object]"}var XFilter=(function(){function en(He,tn){this.xf=tn,this.f=He}return en.prototype["@@transducer/init"]=_xfBase.init,en.prototype["@@transducer/result"]=_xfBase.result,en.prototype["@@transducer/step"]=function(He,tn){return this.f(tn)?this.xf["@@transducer/step"](He,tn):He},en})(),_xfilter=_curry2(function(He,tn){return new XFilter(He,tn)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(en,He){return _isObject(He)?_reduce(function(tn,nn){return en(He[nn])&&(tn[nn]=He[nn]),tn},{},keys(He)):_filter(en,He)})),reject=_curry2(function(He,tn){return filter$1(_complement(He),tn)});function _toString(en,He){var tn=function(on){var sn=He.concat([en]);return _includes(on,sn)?"<Circular>":_toString(on,sn)},nn=function(rn,on){return _map(function(sn){return _quote(sn)+": "+tn(rn[sn])},on.slice().sort())};switch(Object.prototype.toString.call(en)){case"[object Arguments]":return"(function() { return arguments; }("+_map(tn,en).join(", ")+"))";case"[object Array]":return"["+_map(tn,en).concat(nn(en,reject(function(rn){return/^\d+$/.test(rn)},keys(en)))).join(", ")+"]";case"[object Boolean]":return typeof en=="object"?"new Boolean("+tn(en.valueOf())+")":en.toString();case"[object Date]":return"new Date("+(isNaN(en.valueOf())?tn(NaN):_quote(_toISOString(en)))+")";case"[object Null]":return"null";case"[object Number]":return typeof en=="object"?"new Number("+tn(en.valueOf())+")":1/en===-1/0?"-0":en.toString(10);case"[object String]":return typeof en=="object"?"new String("+tn(en.valueOf())+")":_quote(en);
88case"[object Undefined]":return"undefined";default:if(typeof en.toString=="function"){var an=en.toString();if(an!=="[object Object]")return an}return"{"+nn(en,keys(en)).join(", ")+"}"}}var toString=_curry1(function(He){return _toString(He,[])}),curry=_curry1(function(He){return curryN(He.length,He)}),curry$1=curry,invoker=_curry2(function(He,tn){return curryN(He+1,function(){var nn=arguments[He];if(nn!=null&&_isFunction(nn[tn]))return nn[tn].apply(nn,Array.prototype.slice.call(arguments,0,He));throw new TypeError(toString(nn)+' does not have a method named "'+tn+'"')})}),invoker$1=invoker,is=_curry2(function(He,tn){return tn instanceof He||tn!=null&&(tn.constructor===He||He.name==="Object"&&typeof tn=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(He,tn,nn){var an={},rn;for(rn in tn)_has(rn,tn)&&(an[rn]=_has(rn,nn)?He(rn,tn[rn],nn[rn]):tn[rn]);for(rn in nn)_has(rn,nn)&&!_has(rn,an)&&(an[rn]=nn[rn]);return an}),mergeDeepWithKey=_curry3(function en(He,tn,nn){return mergeWithKey(function(an,rn,on){return _isObject(rn)&&_isObject(on)?en(He,rn,on):He(an,rn,on)},tn,nn)}),mergeDeepLeft=_curry2(function(He,tn){return mergeDeepWithKey(function(nn,an,rn){return an},He,tn)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(He,tn){for(var nn={},an={},rn=0,on=He.length;rn<on;)an[He[rn]]=1,rn+=1;for(var sn in tn)an.hasOwnProperty(sn)||(nn[sn]=tn[sn]);return nn}),omit$1=omit,pickBy=_curry2(function(He,tn){var nn={};for(var an in tn)He(tn[an],an,tn)&&(nn[an]=tn[an]);return nn}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(He,tn){for(var nn=0,an=Math.min(He.length,tn.length),rn={};nn<an;)rn[He[nn]]=tn[nn],nn+=1;return rn}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((en,He)=>is$1(Number)?map$2(tn=>nth$1(en,tn)||"",He).filter(tn=>tn!==""):map$2(prop$1(en),He)),mapKeys=(en,He)=>zipObj$1(map$2(en,keys(He)),values$1(He)),kebabize=en=>en.split("").map((He,tn)=>He.toUpperCase()===He?`${tn!==0?"-":""}${He.toLowerCase()}`:He).join("");function ascending$1(en,He){return en==null||He==null?NaN:en<He?-1:en>He?1:en>=He?0:NaN}function descending$1(en,He){return en==null||He==null?NaN:He<en?-1:He>en?1:He>=en?0:NaN}function bisector(en){let He,tn,nn;en.length!==2?(He=ascending$1,tn=(sn,dn)=>ascending$1(en(sn),dn),nn=(sn,dn)=>en(sn)-dn):(He=en===ascending$1||en===descending$1?en:zero$1,tn=en,nn=en);function an(sn,dn,hn=0,mn=sn.length){if(hn<mn){if(He(dn,dn)!==0)return mn;do{const gn=hn+mn>>>1;tn(sn[gn],dn)<0?hn=gn+1:mn=gn}while(hn<mn)}return hn}function rn(sn,dn,hn=0,mn=sn.length){if(hn<mn){if(He(dn,dn)!==0)return mn;do{const gn=hn+mn>>>1;tn(sn[gn],dn)<=0?hn=gn+1:mn=gn}while(hn<mn)}return hn}function on(sn,dn,hn=0,mn=sn.length){const gn=an(sn,dn,hn,mn-1);return gn>hn&&nn(sn[gn-1],dn)>-nn(sn[gn],dn)?gn-1:gn}return{left:an,center:on,right:rn}}function zero$1(){return 0}function number$2(en){return en===null?NaN:+en}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(en,He){let tn,nn;for(const an of en)an!=null&&(tn===void 0?an>=an&&(tn=nn=an):(tn>an&&(tn=an),nn<an&&(nn=an)));return[tn,nn]}class InternMap extends Map{constructor(He,tn=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:tn}}),He!=null)for(const[nn,an]of He)this.set(nn,an)}get(He){return super.get(intern_get(this,He))}has(He){return super.has(intern_get(this,He))}set(He,tn){return super.set(intern_set(this,He),tn)}delete(He){return super.delete(intern_delete(this,He))}}function intern_get({_intern:en,_key:He},tn){const nn=He(tn);return en.has(nn)?en.get(nn):tn}function intern_set({_intern:en,_key:He},tn){const nn=He(tn);return en.has(nn)?en.get(nn):(en.set(nn,tn),tn)}function intern_delete({_intern:en,_key:He},tn){const nn=He(tn);return en.has(nn)&&(tn=en.get(nn),en.delete(nn)),tn}function keyof(en){return en!==null&&typeof en=="object"?en.valueOf():en}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);
vendor: 12,379 bytes, line 88
88function tickSpec(en,He,tn){const nn=(He-en)/Math.max(0,tn),an=Math.floor(Math.log10(nn)),rn=nn/Math.pow(10,an),on=rn>=e10?10:rn>=e5?5:rn>=e2?2:1;let sn,dn,hn;return an<0?(hn=Math.pow(10,-an)/on,sn=Math.round(en*hn),dn=Math.round(He*hn),sn/hn<en&&++sn,dn/hn>He&&--dn,hn=-hn):(hn=Math.pow(10,an)*on,sn=Math.round(en/hn),dn=Math.round(He/hn),sn*hn<en&&++sn,dn*hn>He&&--dn),dn<sn&&.5<=tn&&tn<2?tickSpec(en,He,tn*2):[sn,dn,hn]}function ticks(en,He,tn){if(He=+He,en=+en,tn=+tn,!(tn>0))return[];if(en===He)return[en];const nn=He<en,[an,rn,on]=nn?tickSpec(He,en,tn):tickSpec(en,He,tn);if(!(rn>=an))return[];const sn=rn-an+1,dn=new Array(sn);if(nn)if(on<0)for(let hn=0;hn<sn;++hn)dn[hn]=(rn-hn)/-on;else for(let hn=0;hn<sn;++hn)dn[hn]=(rn-hn)*on;else if(on<0)for(let hn=0;hn<sn;++hn)dn[hn]=(an+hn)/-on;else for(let hn=0;hn<sn;++hn)dn[hn]=(an+hn)*on;return dn}function tickIncrement(en,He,tn){return He=+He,en=+en,tn=+tn,tickSpec(en,He,tn)[2]}function tickStep(en,He,tn){He=+He,en=+en,tn=+tn;const nn=He<en,an=nn?tickIncrement(He,en,tn):tickIncrement(en,He,tn);return(nn?-1:1)*(an<0?1/-an:an)}function max$1(en,He){let tn;if(He===void 0)for(const nn of en)nn!=null&&(tn<nn||tn===void 0&&nn>=nn)&&(tn=nn);else{let nn=-1;for(let an of en)(an=He(an,++nn,en))!=null&&(tn<an||tn===void 0&&an>=an)&&(tn=an)}return tn}function min$1(en,He){let tn;if(He===void 0)for(const nn of en)nn!=null&&(tn>nn||tn===void 0&&nn>=nn)&&(tn=nn);else{let nn=-1;for(let an of en)(an=He(an,++nn,en))!=null&&(tn>an||tn===void 0&&an>=an)&&(tn=an)}return tn}function range(en,He,tn){en=+en,He=+He,tn=(an=arguments.length)<2?(He=en,en=0,1):an<3?1:+tn;for(var nn=-1,an=Math.max(0,Math.ceil((He-en)/tn))|0,rn=new Array(an);++nn<an;)rn[nn]=en+nn*tn;return rn}function initRange(en,He){switch(arguments.length){case 0:break;case 1:this.range(en);break;default:this.range(He).domain(en);break}return this}function initInterpolator(en,He){switch(arguments.length){case 0:break;case 1:{typeof en=="function"?this.interpolator(en):this.range(en);break}default:{this.domain(en),typeof He=="function"?this.interpolator(He):this.range(He);break}}return this}const implicit=Symbol("implicit");function ordinal(){var en=new InternMap,He=[],tn=[],nn=implicit;function an(rn){let on=en.get(rn);if(on===void 0){if(nn!==implicit)return nn;en.set(rn,on=He.push(rn)-1)}return tn[on%tn.length]}return an.domain=function(rn){if(!arguments.length)return He.slice();He=[],en=new InternMap;for(const on of rn)en.has(on)||en.set(on,He.push(on)-1);return an},an.range=function(rn){return arguments.length?(tn=Array.from(rn),an):tn.slice()},an.unknown=function(rn){return arguments.length?(nn=rn,an):nn},an.copy=function(){return ordinal(He,tn).unknown(nn)},initRange.apply(an,arguments),an}function band(){var en=ordinal().unknown(void 0),He=en.domain,tn=en.range,nn=0,an=1,rn,on,sn=!1,dn=0,hn=0,mn=.5;delete en.unknown;function gn(){var yn=He().length,fn=an<nn,bn=fn?an:nn,Mn=fn?nn:an;rn=(Mn-bn)/Math.max(1,yn-dn+hn*2),sn&&(rn=Math.floor(rn)),bn+=(Mn-bn-rn*(yn-dn))*mn,on=rn*(1-dn),sn&&(bn=Math.round(bn),on=Math.round(on));var Tn=range(yn).map(function(xn){return bn+rn*xn});return tn(fn?Tn.reverse():Tn)}return en.domain=function(yn){return arguments.length?(He(yn),gn()):He()},en.range=function(yn){return arguments.length?([nn,an]=yn,nn=+nn,an=+an,gn()):[nn,an]},en.rangeRound=function(yn){return[nn,an]=yn,nn=+nn,an=+an,sn=!0,gn()},en.bandwidth=function(){return on},en.step=function(){return rn},en.round=function(yn){return arguments.length?(sn=!!yn,gn()):sn},en.padding=function(yn){return arguments.length?(dn=Math.min(1,hn=+yn),gn()):dn},en.paddingInner=function(yn){return arguments.length?(dn=Math.min(1,yn),gn()):dn},en.paddingOuter=function(yn){return arguments.length?(hn=+yn,gn()):hn},en.align=function(yn){return arguments.length?(mn=Math.max(0,Math.min(1,yn)),gn()):mn},en.copy=function(){return band(He(),[nn,an]).round(sn).paddingInner(dn).paddingOuter(hn).align(mn)},initRange.apply(gn(),arguments)}function define(en,He,tn){en.prototype=He.prototype=tn,tn.constructor=en}function extend(en,He){var tn=Object.create(en.prototype);for(var nn in He)tn[nn]=He[nn];return tn}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(en){return Object.assign(new this.constructor,this,en)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(en){var He,tn;return en=(en+"").trim().toLowerCase(),(He=reHex.exec(en))?(tn=He[1].length,He=parseInt(He[1],16),tn===6?rgbn(He):tn===3?new Rgb(He>>8&15|He>>4&240,He>>4&15|He&240,(He&15)<<4|He&15,1):tn===8?rgba(He>>24&255,He>>16&255,He>>8&255,(He&255)/255):tn===4?rgba(He>>12&15|He>>8&240,He>>8&15|He>>4&240,He>>4&15|He&240,((He&15)<<4|He&15)/255):null):(He=reRgbInteger.exec(en))?new Rgb(He[1],He[2],He[3],1):(He=reRgbPercent.exec(en))?new Rgb(He[1]*255/100,He[2]*255/100,He[3]*255/100,1):(He=reRgbaInteger.exec(en))?rgba(He[1],He[2],He[3],He[4]):(He=reRgbaPercent.exec(en))?rgba(He[1]*255/100,He[2]*255/100,He[3]*255/100,He[4]):(He=reHslPercent.exec(en))?hsla(He[1],He[2]/100,He[3]/100,1):(He=reHslaPercent.exec(en))?hsla(He[1],He[2]/100,He[3]/100,He[4]):named.hasOwnProperty(en)?rgbn(named[en]):en==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(en){return new Rgb(en>>16&255,en>>8&255,en&255,1)}function rgba(en,He,tn,nn){return nn<=0&&(en=He=tn=NaN),new Rgb(en,He,tn,nn)}function rgbConvert(en){return en instanceof Color||(en=color(en)),en?(en=en.rgb(),new Rgb(en.r,en.g,en.b,en.opacity)):new Rgb}function rgb$1(en,He,tn,nn){return arguments.length===1?rgbConvert(en):new Rgb(en,He,tn,nn??1)}function Rgb(en,He,tn,nn){this.r=+en,this.g=+He,this.b=+tn,this.opacity=+nn}define(Rgb,rgb$1,extend(Color,{brighter(en){return en=en==null?brighter:Math.pow(brighter,en),new Rgb(this.r*en,this.g*en,this.b*en,this.opacity)},darker(en){return en=en==null?darker:Math.pow(darker,en),new Rgb(this.r*en,this.g*en,this.b*en,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const en=clampa(this.opacity);return`${en===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${en===1?")":`, ${en})`}`}function clampa(en){return isNaN(en)?1:Math.max(0,Math.min(1,en))}function clampi(en){return Math.max(0,Math.min(255,Math.round(en)||0))}function hex(en){return en=clampi(en),(en<16?"0":"")+en.toString(16)}function hsla(en,He,tn,nn){return nn<=0?en=He=tn=NaN:tn<=0||tn>=1?en=He=NaN:He<=0&&(en=NaN),new Hsl(en,He,tn,nn)}function hslConvert(en){if(en instanceof Hsl)return new Hsl(en.h,en.s,en.l,en.opacity);if(en instanceof Color||(en=color(en)),!en)return new Hsl;if(en instanceof Hsl)return en;en=en.rgb();var He=en.r/255,tn=en.g/255,nn=en.b/255,an=Math.min(He,tn,nn),rn=Math.max(He,tn,nn),on=NaN,sn=rn-an,dn=(rn+an)/2;return sn?(He===rn?on=(tn-nn)/sn+(tn<nn)*6:tn===rn?on=(nn-He)/sn+2:on=(He-tn)/sn+4,sn/=dn<.5?rn+an:2-rn-an,on*=60):sn=dn>0&&dn<1?0:on,new Hsl(on,sn,dn,en.opacity)}function hsl(en,He,tn,nn){return arguments.length===1?hslConvert(en):new Hsl(en,He,tn,nn??1)}function Hsl(en,He,tn,nn){this.h=+en,this.s=+He,this.l=+tn,this.opacity=+nn}define(Hsl,hsl,extend(Color,{brighter(en){return en=en==null?brighter:Math.pow(brighter,en),new Hsl(this.h,this.s,this.l*en,this.opacity)},darker(en){return en=en==null?darker:Math.pow(darker,en),new Hsl(this.h,this.s,this.l*en,this.opacity)},rgb(){var en=this.h%360+(this.h<0)*360,He=isNaN(en)||isNaN(this.s)?0:this.s,tn=this.l,nn=tn+(tn<.5?tn:1-tn)*He,an=2*tn-nn;return new Rgb(hsl2rgb(en>=240?en-240:en+120,an,nn),hsl2rgb(en,an,nn),hsl2rgb(en<120?en+240:en-120,an,nn),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const en=clampa(this.opacity);return`${en===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${en===1?")":`, ${en})`}`}}));function clamph(en){return en=(en||0)%360,en<0?en+360:en}function clampt(en){return Math.max(0,Math.min(1,en||0))}function hsl2rgb(en,He,tn){return(en<60?He+(tn-He)*en/60:en<180?tn:en<240?He+(tn-He)*(240-en)/60:He)*255}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;
vendor: 5,031 bytes, line 88
88function labConvert(en){if(en instanceof Lab)return new Lab(en.l,en.a,en.b,en.opacity);if(en instanceof Hcl)return hcl2lab(en);en instanceof Rgb||(en=rgbConvert(en));var He=rgb2lrgb(en.r),tn=rgb2lrgb(en.g),nn=rgb2lrgb(en.b),an=xyz2lab((.2225045*He+.7168786*tn+.0606169*nn)/Yn),rn,on;return He===tn&&tn===nn?rn=on=an:(rn=xyz2lab((.4360747*He+.3850649*tn+.1430804*nn)/Xn),on=xyz2lab((.0139322*He+.0971045*tn+.7141733*nn)/Zn)),new Lab(116*an-16,500*(rn-an),200*(an-on),en.opacity)}function lab(en,He,tn,nn){return arguments.length===1?labConvert(en):new Lab(en,He,tn,nn??1)}function Lab(en,He,tn,nn){this.l=+en,this.a=+He,this.b=+tn,this.opacity=+nn}define(Lab,lab,extend(Color,{brighter(en){return new Lab(this.l+K*(en??1),this.a,this.b,this.opacity)},darker(en){return new Lab(this.l-K*(en??1),this.a,this.b,this.opacity)},rgb(){var en=(this.l+16)/116,He=isNaN(this.a)?en:en+this.a/500,tn=isNaN(this.b)?en:en-this.b/200;return He=Xn*lab2xyz(He),en=Yn*lab2xyz(en),tn=Zn*lab2xyz(tn),new Rgb(lrgb2rgb(3.1338561*He-1.6168667*en-.4906146*tn),lrgb2rgb(-.9787684*He+1.9161415*en+.033454*tn),lrgb2rgb(.0719453*He-.2289914*en+1.4052427*tn),this.opacity)}}));function xyz2lab(en){return en>t3?Math.pow(en,1/3):en/t2+t0}function lab2xyz(en){return en>t1?en*en*en:t2*(en-t0)}function lrgb2rgb(en){return 255*(en<=.0031308?12.92*en:1.055*Math.pow(en,1/2.4)-.055)}function rgb2lrgb(en){return(en/=255)<=.04045?en/12.92:Math.pow((en+.055)/1.055,2.4)}function hclConvert(en){if(en instanceof Hcl)return new Hcl(en.h,en.c,en.l,en.opacity);if(en instanceof Lab||(en=labConvert(en)),en.a===0&&en.b===0)return new Hcl(NaN,0<en.l&&en.l<100?0:NaN,en.l,en.opacity);var He=Math.atan2(en.b,en.a)*degrees;return new Hcl(He<0?He+360:He,Math.sqrt(en.a*en.a+en.b*en.b),en.l,en.opacity)}function hcl$1(en,He,tn,nn){return arguments.length===1?hclConvert(en):new Hcl(en,He,tn,nn??1)}function Hcl(en,He,tn,nn){this.h=+en,this.c=+He,this.l=+tn,this.opacity=+nn}function hcl2lab(en){if(isNaN(en.h))return new Lab(en.l,0,0,en.opacity);var He=en.h*radians;return new Lab(en.l,Math.cos(He)*en.c,Math.sin(He)*en.c,en.opacity)}define(Hcl,hcl$1,extend(Color,{brighter(en){return new Hcl(this.h,this.c,this.l+K*(en??1),this.opacity)},darker(en){return new Hcl(this.h,this.c,this.l-K*(en??1),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=en=>()=>en;function linear$1(en,He){return function(tn){return en+tn*He}}function exponential(en,He,tn){return en=Math.pow(en,tn),He=Math.pow(He,tn)-en,tn=1/tn,function(nn){return Math.pow(en+nn*He,tn)}}function hue(en,He){var tn=He-en;return tn?linear$1(en,tn>180||tn<-180?tn-360*Math.round(tn/360):tn):constant$3(isNaN(en)?He:en)}function gamma(en){return(en=+en)==1?nogamma:function(He,tn){return tn-He?exponential(He,tn,en):constant$3(isNaN(He)?tn:He)}}function nogamma(en,He){var tn=He-en;return tn?linear$1(en,tn):constant$3(isNaN(en)?He:en)}var rgb=(function en(He){var tn=gamma(He);function nn(an,rn){var on=tn((an=rgb$1(an)).r,(rn=rgb$1(rn)).r),sn=tn(an.g,rn.g),dn=tn(an.b,rn.b),hn=nogamma(an.opacity,rn.opacity);return function(mn){return an.r=on(mn),an.g=sn(mn),an.b=dn(mn),an.opacity=hn(mn),an+""}}return nn.gamma=en,nn})(1);function numberArray(en,He){He||(He=[]);var tn=en?Math.min(He.length,en.length):0,nn=He.slice(),an;return function(rn){for(an=0;an<tn;++an)nn[an]=en[an]*(1-rn)+He[an]*rn;return nn}}function isNumberArray(en){return ArrayBuffer.isView(en)&&!(en instanceof DataView)}function genericArray(en,He){var tn=He?He.length:0,nn=en?Math.min(tn,en.length):0,an=new Array(nn),rn=new Array(tn),on;for(on=0;on<nn;++on)an[on]=interpolate(en[on],He[on]);for(;on<tn;++on)rn[on]=He[on];return function(sn){for(on=0;on<nn;++on)rn[on]=an[on](sn);return rn}}function date(en,He){var tn=new Date;return en=+en,He=+He,function(nn){return tn.setTime(en*(1-nn)+He*nn),tn}}function interpolateNumber(en,He){return en=+en,He=+He,function(tn){return en*(1-tn)+He*tn}}function object(en,He){var tn={},nn={},an;(en===null||typeof en!="object")&&(en={}),(He===null||typeof He!="object")&&(He={});for(an in He)an in en?tn[an]=interpolate(en[an],He[an]):nn[an]=He[an];return function(rn){for(an in tn)nn[an]=tn[an](rn);return nn}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(en){return function(){return en}}function one(en){return function(He){return en(He)+""}}function string(en,He){var tn=reA.lastIndex=reB.lastIndex=0,nn,an,rn,on=-1,sn=[],dn=[];for(en=en+"",He=He+"";(nn=reA.exec(en))&&(an=reB.exec(He));)(rn=an.index)>tn&&(rn=He.slice(tn,rn),sn[on]?sn[on]+=rn:sn[++on]=rn),(nn=nn[0])===(an=an[0])?sn[on]?sn[on]+=an:sn[++on]=an:(sn[++on]=null,dn.push({i:on,x:interpolateNumber(nn,an)})),tn=reB.lastIndex;return tn<He.length&&(rn=He.slice(tn),sn[on]?sn[on]+=rn:sn[++on]=rn),sn.length<2?dn[0]?one(dn[0].x):zero(He):(He=dn.length,function(hn){for(var mn=0,gn;mn<He;++mn)sn[(gn=dn[mn]).i]=gn.x(hn);return sn.join("")})}function interpolate(en,He){var tn=typeof He,nn;return He==null||tn==="boolean"?constant$3(He):(tn==="number"?interpolateNumber:tn==="str
88ing"?(nn=color(He))?(He=nn,rgb):string:He instanceof color?rgb:He instanceof Date?date:isNumberArray(He)?numberArray:Array.isArray(He)?genericArray:typeof He.valueOf!="function"&&typeof He.toString!="function"||isNaN(He)?object:interpolateNumber)(en,He)}function interpolateRound(en,He){return en=+en,He=+He,function(tn){return Math.round(en*(1-tn)+He*tn)}}function hcl(en){return function(He,tn){var nn=en((He=hcl$1(He)).h,(tn=hcl$1(tn)).h),an=nogamma(He.c,tn.c),rn=nogamma(He.l,tn.l),on=nogamma(He.opacity,tn.opacity);return function(sn){return He.h=nn(sn),He.c=an(sn),He.l=rn(sn),He.opacity=on(sn),He+""}}}var interpolateHcl=hcl(hue);function constants(en){return function(){return en}}function number$1(en){return+en}var unit=[0,1];function identity$3(en){return en}function normalize$1(en,He){return(He-=en=+en)?function(tn){return(tn-en)/He}:constants(isNaN(He)?NaN:.5)}function clamper(en,He){var tn;return en>He&&(tn=en,en=He,He=tn),function(nn){return Math.max(en,Math.min(He,nn))}}function bimap(en,He,tn){var nn=en[0],an=en[1],rn=He[0],on=He[1];return an<nn?(nn=normalize$1(an,nn),rn=tn(on,rn)):(nn=normalize$1(nn,an),rn=tn(rn,on)),function(sn){return rn(nn(sn))}}function polymap(en,He,tn){var nn=Math.min(en.length,He.length)-1,an=new Array(nn),rn=new Array(nn),on=-1;for(en[nn]<en[0]&&(en=en.slice().reverse(),He=He.slice().reverse());++on<nn;)an[on]=normalize$1(en[on],en[on+1]),rn[on]=tn(He[on],He[on+1]);return function(sn){var dn=bisectRight(en,sn,1,nn)-1;return rn[dn](an[dn](sn))}}function copy$1(en,He){return He.domain(en.domain()).range(en.range()).interpolate(en.interpolate()).clamp(en.clamp()).unknown(en.unknown())}function transformer$1(){var en=unit,He=unit,tn=interpolate,nn,an,rn,on=identity$3,sn,dn,hn;function mn(){var yn=Math.min(en.length,He.length);return on!==identity$3&&(on=clamper(en[0],en[yn-1])),sn=yn>2?polymap:bimap,dn=hn=null,gn}function gn(yn){return yn==null||isNaN(yn=+yn)?rn:(dn||(dn=sn(en.map(nn),He,tn)))(nn(on(yn)))}return gn.invert=function(yn){return on(an((hn||(hn=sn(He,en.map(nn),interpolateNumber)))(yn)))},gn.domain=function(yn){return arguments.length?(en=Array.from(yn,number$1),mn()):en.slice()},gn.range=function(yn){return arguments.length?(He=Array.from(yn),mn()):He.slice()},gn.rangeRound=function(yn){return He=Array.from(yn),tn=interpolateRound,mn()},gn.clamp=function(yn){return arguments.length?(on=yn?!0:identity$3,mn()):on!==identity$3},gn.interpolate=function(yn){return arguments.length?(tn=yn,mn()):tn},gn.unknown=function(yn){return arguments.length?(rn=yn,gn):rn},function(yn,fn){return nn=yn,an=fn,mn()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(en){return Math.abs(en=Math.round(en))>=1e21?en.toLocaleString("en").replace(/,/g,""):en.toString(10)}function formatDecimalParts(en,He){if((tn=(en=He?en.toExponential(He-1):en.toExponential()).indexOf("e"))<0)return null;var tn,nn=en.slice(0,tn);return[nn.length>1?nn[0]+nn.slice(2):nn,+en.slice(tn+1)]}function exponent(en){return en=formatDecimalParts(Math.abs(en)),en?en[1]:NaN}function formatGroup(en,He){return function(tn,nn){for(var an=tn.length,rn=[],on=0,sn=en[0],dn=0;an>0&&sn>0&&(dn+sn+1>nn&&(sn=Math.max(1,nn-dn)),rn.push(tn.substring(an-=sn,an+sn)),!((dn+=sn+1)>nn));)sn=en[on=(on+1)%en.length];return rn.reverse().join(He)}}function formatNumerals(en){return function(He){return He.replace(/[0-9]/g,function(tn){return en[+tn]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(en){if(!(He=re.exec(en)))throw new Error("invalid format: "+en);var He;return new FormatSpecifier({fill:He[1],align:He[2],sign:He[3],symbol:He[4],zero:He[5],width:He[6],comma:He[7],precision:He[8]&&He[8].slice(1),trim:He[9],type:He[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(en){this.fill=en.fill===void 0?" ":en.fill+"",this.align=en.align===void 0?">":en.align+"",this.sign=en.sign===void 0?"-":en.sign+"",this.symbol=en.symbol===void 0?"":en.symbol+"",this.zero=!!en.zero,this.width=en.width===void 0?void 0:+en.width,this.comma=!!en.comma,this.precision=en.precision===void 0?void 0:+en.precision,this.trim=!!en.trim,this.type=en.type===void 0?"":en.type+""}
vendor: 3,019 bytes, line 88
88FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(en){e:for(var He=en.length,tn=1,nn=-1,an;tn<He;++tn)switch(en[tn]){case".":nn=an=tn;break;case"0":nn===0&&(nn=tn),an=tn;break;default:if(!+en[tn])break e;nn>0&&(nn=0);break}return nn>0?en.slice(0,nn)+en.slice(an+1):en}var prefixExponent;function formatPrefixAuto(en,He){var tn=formatDecimalParts(en,He);if(!tn)return en+"";var nn=tn[0],an=tn[1],rn=an-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(an/3)))*3)+1,on=nn.length;return rn===on?nn:rn>on?nn+new Array(rn-on+1).join("0"):rn>0?nn.slice(0,rn)+"."+nn.slice(rn):"0."+new Array(1-rn).join("0")+formatDecimalParts(en,Math.max(0,He+rn-1))[0]}function formatRounded(en,He){var tn=formatDecimalParts(en,He);if(!tn)return en+"";var nn=tn[0],an=tn[1];return an<0?"0."+new Array(-an).join("0")+nn:nn.length>an+1?nn.slice(0,an+1)+"."+nn.slice(an+1):nn+new Array(an-nn.length+2).join("0")}var formatTypes={"%":(en,He)=>(en*100).toFixed(He),b:en=>Math.round(en).toString(2),c:en=>en+"",d:formatDecimal,e:(en,He)=>en.toExponential(He),f:(en,He)=>en.toFixed(He),g:(en,He)=>en.toPrecision(He),o:en=>Math.round(en).toString(8),p:(en,He)=>formatRounded(en*100,He),r:formatRounded,s:formatPrefixAuto,X:en=>Math.round(en).toString(16).toUpperCase(),x:en=>Math.round(en).toString(16)};function identity$2(en){return en}var map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(en){var He=en.grouping===void 0||en.thousands===void 0?identity$2:formatGroup(map.call(en.grouping,Number),en.thousands+""),tn=en.currency===void 0?"":en.currency[0]+"",nn=en.currency===void 0?"":en.currency[1]+"",an=en.decimal===void 0?".":en.decimal+"",rn=en.numerals===void 0?identity$2:formatNumerals(map.call(en.numerals,String)),on=en.percent===void 0?"%":en.percent+"",sn=en.minus===void 0?"−":en.minus+"",dn=en.nan===void 0?"NaN":en.nan+"";function hn(gn){gn=formatSpecifier(gn);var yn=gn.fill,fn=gn.align,bn=gn.sign,Mn=gn.symbol,Tn=gn.zero,xn=gn.width,En=gn.comma,Rn=gn.precision,ni=gn.trim,mi=gn.type;mi==="n"?(En=!0,mi="g"):formatTypes[mi]||(Rn===void 0&&(Rn=12),ni=!0,mi="g"),(Tn||yn==="0"&&fn==="=")&&(Tn=!0,yn="0",fn="=");var bi=Mn==="$"?tn:Mn==="#"&&/[boxX]/.test(mi)?"0"+mi.toLowerCase():"",_i=Mn==="$"?nn:/[%p]/.test(mi)?on:"",oi=formatTypes[mi],si=/[defgprs%]/.test(mi);Rn=Rn===void 0?6:/[gprs]/.test(mi)?Math.max(1,Math.min(21,Rn)):Math.max(0,Math.min(20,Rn));function fi(ei){var ci=bi,di=_i,wi,Ci,ji;if(mi==="c")di=oi(ei)+di,ei="";else{ei=+ei;var Yi=ei<0||1/ei<0;if(ei=isNaN(ei)?dn:oi(Math.abs(ei),Rn),ni&&(ei=formatTrim(ei)),Yi&&+ei==0&&bn!=="+"&&(Yi=!1),ci=(Yi?bn==="("?bn:sn:bn==="-"||bn==="("?"":bn)+ci,di=(mi==="s"?prefixes[8+prefixExponent/3]:"")+di+(Yi&&bn==="("?")":""),si){for(wi=-1,Ci=ei.length;++wi<Ci;
88)if(ji=ei.charCodeAt(wi),48>ji||ji>57){di=(ji===46?an+ei.slice(wi+1):ei.slice(wi))+di,ei=ei.slice(0,wi);break}}}En&&!Tn&&(ei=He(ei,1/0));var Pi=ci.length+ei.length+di.length,Fi=Pi<xn?new Array(xn-Pi+1).join(yn):"";switch(En&&Tn&&(ei=He(Fi+ei,Fi.length?xn-di.length:1/0),Fi=""),fn){case"<":ei=ci+ei+di+Fi;break;case"=":ei=ci+Fi+ei+di;break;case"^":ei=Fi.slice(0,Pi=Fi.length>>1)+ci+ei+di+Fi.slice(Pi);break;default:ei=Fi+ci+ei+di;break}return rn(ei)}return fi.toString=function(){return gn+""},fi}function mn(gn,yn){var fn=hn((gn=formatSpecifier(gn),gn.type="f",gn)),bn=Math.max(-8,Math.min(8,Math.floor(exponent(yn)/3)))*3,Mn=Math.pow(10,-bn),Tn=prefixes[8+bn/3];return function(xn){return fn(Mn*xn)+Tn}}return{format:hn,formatPrefix:mn}}var locale,format,formatPrefix;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(en){return locale=formatLocale(en),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(en){return Math.max(0,-exponent(Math.abs(en)))}function precisionPrefix(en,He){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(He)/3)))*3-exponent(Math.abs(en)))}function precisionRound(en,He){return en=Math.abs(en),He=Math.abs(He)-en,Math.max(0,exponent(He)-exponent(en))+1}function tickFormat(en,He,tn,nn){var an=tickStep(en,He,tn),rn;switch(nn=formatSpecifier(nn??",f"),nn.type){case"s":{var on=Math.max(Math.abs(en),Math.abs(He));return nn.precision==null&&!isNaN(rn=precisionPrefix(an,on))&&(nn.precision=rn),formatPrefix(nn,on)}case"":case"e":case"g":case"p":case"r":{nn.precision==null&&!isNaN(rn=precisionRound(an,Math.max(Math.abs(en),Math.abs(He))))&&(nn.precision=rn-(nn.type==="e"));break}case"f":case"%":{nn.precision==null&&!isNaN(rn=precisionFixed(an))&&(nn.precision=rn-(nn.type==="%")*2);break}}return format(nn)}function linearish(en){var He=en.domain;return en.ticks=function(tn){var nn=He();return ticks(nn[0],nn[nn.length-1],tn??10)},en.tickFormat=function(tn,nn){var an=He();return tickFormat(an[0],an[an.length-1],tn??10,nn)},en.nice=function(tn){tn==null&&(tn=10);var nn=He(),an=0,rn=nn.length-1,on=nn[an],sn=nn[rn],dn,hn,mn=10;for(sn<on&&(hn=on,on=sn,sn=hn,hn=an,an=rn,rn=hn);mn-- >0;){if(hn=tickIncrement(on,sn,tn),hn===dn)return nn[an]=on,nn[rn]=sn,He(nn);if(hn>0)on=Math.floor(on/hn)*hn,sn=Math.ceil(sn/hn)*hn;else if(hn<0)on=Math.ceil(on*hn)/hn,sn=Math.floor(sn*hn)/hn;else break;dn=hn}return en},en}function linear(){var en=continuous();return en.copy=function(){return copy$1(en,linear())},initRange.apply(en,arguments),linearish(en)}function transformer(){var en=0,He=1,tn,nn,an,rn,on=identity$3,sn=!1,dn;function hn(gn){return gn==null||isNaN(gn=+gn)?dn:on(an===0?.5:(gn=(rn(gn)-tn)*an,sn?Math.max(0,Math.min(1,gn)):gn))}hn.domain=function(gn){return arguments.length?([en,He]=gn,tn=rn(en=+en),nn=rn(He=+He),an=tn===nn?0:1/(nn-tn),hn):[en,He]},hn.clamp=function(gn){return arguments.length?(sn=!!gn,hn):sn},hn.interpolator=function(gn){return arguments.length?(on=gn,hn):on};function mn(gn){return function(yn){var fn,bn;return arguments.length?([fn,bn]=yn,on=gn(fn,bn),hn):[on(0),on(1)]}}return hn.range=mn(interpolate),hn.rangeRound=mn(interpolateRound),hn.unknown=function(gn){return arguments.length?(dn=gn,hn):dn},function(gn){return rn=gn,tn=gn(en),nn=gn(He),an=tn===nn?0:1/(nn-tn),hn}}function copy(en,He){return He.domain(en.domain()).interpolator(en.interpolator()).clamp(en.clamp()).unknown(en.unknown())}function sequential(){var en=linearish(transformer()(identity$3));return en.copy=function(){return copy(en,sequential())},initInterpolator.apply(en,arguments)}class Scale{constructor(en){this.config=en,this.createScale(en.type)}createScale(en){switch(en){case"band":this.scale=band();break;case"linear":this.scale=linear();break}}changeConfig(en){this.createScale(en.type),this.config=en}get type(){return this.config.type}bandwidth(){return this.type==="band"?this.scale.bandwidth():0}updateRange(en){this.scale=this.scale.copy().range(en)}updateDomain(en,He,tn){const nn=this.config.type==="band"?this.categoryDomain(en,tn):this.numericDomain(en,He,tn);this.scale=this.scale.copy().domain(nn)}map(en){return en.map(He=>this.mapOne(He))}mapOne(en){const{type:He}=this.config;return He==="band"?this.scale(en)+this.scale.bandwidth()/2:this.scale(en)}ticks(){const{type:en}=this.config;return this.config.tickValues!==void 0?this.config.tickValues:en==="band"?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(en,He){const tn=He.reduce((nn,an)=>nn.concat(getCol(an,en)),[]);return Array.from(new Set(tn))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((en,He)=>en.concat(getCol(He,data)),[]),valueMax=max$1(stackedData,en=>max$1(en,He=>max$1(He)))||0,valueMin=min$1(stackedData,en=>min$1(en,He=>min$1(He)))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`
89      let dataMin = ${dataMin||0}
90      ${domain[0]}
91    `),yMax=eval(`
92      let dataMax = ${dataMax||0}
93      ${domain[1]}
94    `);return[yMin,yMax]}}class Scales{constructor(He){this.config=He,this.primary=new Scale(He.primary),this.secondary=new Scale(He.secondary)}changeConfig(He){this.config=He,this.primary.changeConfig(He.primary),this.secondary.changeConfig(He.secondary)}updateRange(He,tn){tn==="horizontal"?(this.primary.updateRange([He.x,He.width]),this.secondary.updateRange([He.height,He.y])):tn==="vertical"&&(this.primary.updateRange([He.y,He.height]),this.secondary.updateRange([He.x,He.width]))}updateDomain(He,tn,nn){this.primary.updateDomain(He,tn,getCol(0,nn)),this.secondary.updateDomain(He,tn,getCol(1,nn))}}function constant$2(en){return function(){return en}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(en){return en>1?0:en<-1?pi$1:Math.acos(en)}function asin(en){return en>=1?halfPi:en<=-1?-halfPi:Math.asin(en)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(en){this._+=en[0];for(let He=1,tn=en.length;He<tn;++He)this._+=arguments[He]+en[He]}
vendor: 14,501 bytes, line 94
94function appendRound(en){let He=Math.floor(en);if(!(He>=0))throw new Error(`invalid digits: ${en}`);if(He>15)return append;const tn=10**He;return function(nn){this._+=nn[0];for(let an=1,rn=nn.length;an<rn;++an)this._+=Math.round(arguments[an]*tn)/tn+nn[an]}}class Path{constructor(He){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=He==null?append:appendRound(He)}moveTo(He,tn){this._append`M${this._x0=this._x1=+He},${this._y0=this._y1=+tn}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(He,tn){this._append`L${this._x1=+He},${this._y1=+tn}`}quadraticCurveTo(He,tn,nn,an){this._append`Q${+He},${+tn},${this._x1=+nn},${this._y1=+an}`}bezierCurveTo(He,tn,nn,an,rn,on){this._append`C${+He},${+tn},${+nn},${+an},${this._x1=+rn},${this._y1=+on}`}arcTo(He,tn,nn,an,rn){if(He=+He,tn=+tn,nn=+nn,an=+an,rn=+rn,rn<0)throw new Error(`negative radius: ${rn}`);let on=this._x1,sn=this._y1,dn=nn-He,hn=an-tn,mn=on-He,gn=sn-tn,yn=mn*mn+gn*gn;if(this._x1===null)this._append`M${this._x1=He},${this._y1=tn}`;else if(yn>epsilon$1)if(!(Math.abs(gn*dn-hn*mn)>epsilon$1)||!rn)this._append`L${this._x1=He},${this._y1=tn}`;else{let fn=nn-on,bn=an-sn,Mn=dn*dn+hn*hn,Tn=fn*fn+bn*bn,xn=Math.sqrt(Mn),En=Math.sqrt(yn),Rn=rn*Math.tan((pi-Math.acos((Mn+yn-Tn)/(2*xn*En)))/2),ni=Rn/En,mi=Rn/xn;Math.abs(ni-1)>epsilon$1&&this._append`L${He+ni*mn},${tn+ni*gn}`,this._append`A${rn},${rn},0,0,${+(gn*fn>mn*bn)},${this._x1=He+mi*dn},${this._y1=tn+mi*hn}`}}arc(He,tn,nn,an,rn,on){if(He=+He,tn=+tn,nn=+nn,on=!!on,nn<0)throw new Error(`negative radius: ${nn}`);let sn=nn*Math.cos(an),dn=nn*Math.sin(an),hn=He+sn,mn=tn+dn,gn=1^on,yn=on?an-rn:rn-an;this._x1===null?this._append`M${hn},${mn}`:(Math.abs(this._x1-hn)>epsilon$1||Math.abs(this._y1-mn)>epsilon$1)&&this._append`L${hn},${mn}`,nn&&(yn<0&&(yn=yn%tau+tau),yn>tauEpsilon?this._append`A${nn},${nn},0,1,${gn},${He-sn},${tn-dn}A${nn},${nn},0,1,${gn},${this._x1=hn},${this._y1=mn}`:yn>epsilon$1&&this._append`A${nn},${nn},0,${+(yn>=pi)},${gn},${this._x1=He+nn*Math.cos(rn)},${this._y1=tn+nn*Math.sin(rn)}`)}rect(He,tn,nn,an){this._append`M${this._x0=this._x1=+He},${this._y0=this._y1=+tn}h${nn=+nn}v${+an}h${-nn}Z`}toString(){return this._}}function withPath(en){let He=3;return en.digits=function(tn){if(!arguments.length)return He;if(tn==null)He=null;else{const nn=Math.floor(tn);if(!(nn>=0))throw new RangeError(`invalid digits: ${tn}`);He=nn}return en},()=>new Path(He)}function arcInnerRadius(en){return en.innerRadius}function arcOuterRadius(en){return en.outerRadius}function arcStartAngle(en){return en.startAngle}function arcEndAngle(en){return en.endAngle}function arcPadAngle(en){return en&&en.padAngle}function intersect(en,He,tn,nn,an,rn,on,sn){var dn=tn-en,hn=nn-He,mn=on-an,gn=sn-rn,yn=gn*dn-mn*hn;if(!(yn*yn<epsilon$2))return yn=(mn*(He-rn)-gn*(en-an))/yn,[en+yn*dn,He+yn*hn]}function cornerTangents(en,He,tn,nn,an,rn,on){var sn=en-tn,dn=He-nn,hn=(on?rn:-rn)/sqrt(sn*sn+dn*dn),mn=hn*dn,gn=-hn*sn,yn=en+mn,fn=He+gn,bn=tn+mn,Mn=nn+gn,Tn=(yn+bn)/2,xn=(fn+Mn)/2,En=bn-yn,Rn=Mn-fn,ni=En*En+Rn*Rn,mi=an-rn,bi=yn*Mn-bn*fn,_i=(Rn<0?-1:1)*sqrt(max(0,mi*mi*ni-bi*bi)),oi=(bi*Rn-En*_i)/ni,si=(-bi*En-Rn*_i)/ni,fi=(bi*Rn+En*_i)/ni,ei=(-bi*En+Rn*_i)/ni,ci=oi-Tn,di=si-xn,wi=fi-Tn,Ci=ei-xn;return ci*ci+di*di>wi*wi+Ci*Ci&&(oi=fi,si=ei),{cx:oi,cy:si,x01:-mn,y01:-gn,x11:oi*(an/mi-1),y11:si*(an/mi-1)}}function arc(){var en=arcInnerRadius,He=arcOuterRadius,tn=constant$2(0),nn=null,an=arcStartAngle,rn=arcEndAngle,on=arcPadAngle,sn=null,dn=withPath(hn);function hn(){var mn,gn,yn=+en.apply(this,arguments),fn=+He.apply(this,arguments),bn=an.apply(this,arguments)-halfPi,Mn=rn.apply(this,arguments)-halfPi,Tn=abs(Mn-bn),xn=Mn>bn;if(sn||(sn=mn=dn()),fn<yn&&(gn=fn,fn=yn,yn=gn),!(fn>epsilon$2))sn.moveTo(0,0);else if(Tn>tau$1-epsilon$2)sn.moveTo(fn*cos(bn),fn*sin(bn)),sn.arc(0,0,fn,bn,Mn,!xn),yn>epsilon$2&&(sn.moveTo(yn*cos(Mn),yn*sin(Mn)),sn.arc(0,0,yn,Mn,bn,xn));else{var En=bn,Rn=Mn,ni=bn,mi=Mn,bi=Tn,_i=Tn,oi=on.apply(this,arguments)/2,si=oi>epsilon$2&&(nn?+nn.apply(this,arguments):sqrt(yn*yn+fn*fn)),fi=min(abs(fn-yn)/2,+tn.apply(this,arguments)),ei=fi,ci=fi,di,wi;if(si>epsilon$2){var Ci=asin(si/yn*sin(oi)),ji=asin(si/fn*sin(oi));(bi-=Ci*2)>epsilon$2?(Ci*=xn?1:-1,ni+=Ci,mi-=Ci):(bi=0,ni=mi=(bn+Mn)/2),(_i-=ji*2)>epsilon$2?(ji*=xn?1:-1,En+=ji,Rn-=ji):(_i=0,En=Rn=(bn+Mn)/2)}var Yi=fn*cos(En),Pi=fn*sin(En),Fi=yn*cos(mi),$i=yn*sin(mi);if(fi>epsilon$2){var Wi=fn*cos(Rn),hi=fn*sin(Rn),Si=yn*cos(ni),Ni=yn*sin(ni),yi;if(Tn<pi$1)if(yi=intersect(Yi,Pi,Si,Ni,Wi,hi,Fi,$i)){var Hi=Yi-yi[0],Ui=Pi-yi[1],Ji=Wi-yi[0],Oi=hi-yi[1],Ei=1/sin(acos((Hi*Ji+Ui*Oi)/(sqrt(Hi*Hi+Ui*Ui)*sqrt(Ji*Ji+Oi*Oi)))/2),ea=sqrt(yi[0]*yi[0]+yi[1]*yi[1]);ei=min(fi,(yn-ea)/(Ei-1)),ci=min(fi,(fn-ea)/(Ei+1))}else ei=ci=0}_i>epsilon$2?ci>epsilon$2?(di=cornerTangents(Si,Ni,Yi,Pi,fn,ci,xn),wi=cornerTangents(Wi,hi,Fi,$i,fn,ci,xn),sn.moveTo(di.cx+di.x01,di.cy+di.y01),ci<fi?sn.arc(di.cx,di.cy,ci,atan2(di.y01,di.x01),atan2(wi.y01,wi.x01),!xn):(sn.arc(di.cx,di.cy,ci,atan2(di.y01,di.x01),atan2(di.y11,di.x11),!xn),sn.arc(0,0,fn,atan2(di.cy+di.y11,di.cx+di.x11),atan2(wi.cy+wi.y11,wi.cx+wi.x11),!xn),sn.arc(wi.cx,wi.cy,ci,atan2(wi.y11,wi.x11),atan2(wi.y01,wi.x01),!xn))):(sn.moveTo(Yi,Pi),sn.arc(0,0,fn,En,Rn,!xn)):sn.moveTo(Yi,Pi),!(yn>epsilon$2)||!(bi>epsilon$2)?sn.lineTo(Fi,$i):ei>epsilon$2?(di=cornerTangents(Fi,$i,Wi,hi,yn,-ei,xn),wi=cornerTangents(Yi,Pi,Si,Ni,yn,-ei,xn),sn.lineTo(di.cx+di.x01,di.cy+di.y01),ei<fi?sn.arc(di.cx,di.cy,ei,atan2(di.y01,di.x01),atan2(wi.y01,wi.x01),!xn):(sn.arc(di.cx,di.cy,ei,atan2(di.y01,di.x01),atan2(di.y11,di.x11),!xn),sn.arc(0,0,yn,atan2(di.cy+di.y11,di.cx+di.x11),atan2(wi.cy+wi.y11,wi.cx+wi.x11),xn),sn.arc(wi.cx,wi.cy,ei,atan2(wi.y11,wi.x11),atan2(wi.y01,wi.x01),!xn))):sn.arc(0,0,yn,mi,ni,xn)}if(sn.closePath(),mn)return sn=null,mn+""||null}return hn.centroid=function(){var mn=(+en.apply(this,arguments)+ +He.apply(this,arguments))/2,gn=(+an.apply(this,arguments)+ +rn.apply(this,arguments))/2-pi$1/2;return[cos(gn)*mn,sin(gn)*mn]},hn.innerRadius=function(mn){return arguments.length?(en=typeof mn=="function"?mn:constant$2(+mn),hn):en},hn.outerRadius=function(mn){return arguments.length?(He=typeof mn=="function"?mn:constant$2(+mn),hn):He},hn.cornerRadius=function(mn){return arguments.length?(tn=typeof mn=="function"?mn:constant$2(+mn),hn):tn},hn.padRadius=function(mn){return arguments.length?(nn=mn==null?null:typeof mn=="function"?mn:constant$2(+mn),hn):nn},hn.startAngle=function(mn){return arguments.length?(an=typeof mn=="function"?mn:constant$2(+mn),hn):an},hn.endAngle=function(mn){return arguments.length?(rn=typeof mn=="function"?mn:constant$2(+mn),hn):rn},hn.padAngle=function(mn){return arguments.length?(on=typeof mn=="function"?mn:constant$2(+mn),hn):on},hn.context=function(mn){return arguments.length?(sn=mn??null,hn):sn},hn}function array$1(en){return typeof en=="object"&&"length"in en?en:Array.from(en)}function Linear(en){this._context=en}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(en,He){switch(en=+en,He=+He,this._point){case 0:this._point=1,this._line?this._context.lineTo(en,He):this._context.moveTo(en,He);break;case 1:this._point=2;default:this._context.lineTo(en,He);break}}};function curveLinear(en){return new Linear(en)}function x(en){return en[0]}function y(en){return en[1]}function line(en,He){var tn=constant$2(!0),nn=null,an=curveLinear,rn=null,on=withPath(sn);en=typeof en=="function"?en:en===void 0?x:constant$2(en),He=typeof He=="function"?He:He===void 0?y:constant$2(He);function sn(dn){var hn,mn=(dn=array$1(dn)).length,gn,yn=!1,fn;for(nn==null&&(rn=an(fn=on())),hn=0;hn<=mn;++hn)!(hn<mn&&tn(gn=dn[hn],hn,dn))===yn&&((yn=!yn)?rn.lineStart():rn.lineEnd()),yn&&rn.point(+en(gn,hn,dn),+He(gn,hn,dn));if(fn)return rn=null,fn+""||null}return sn.x=function(dn){return arguments.length?(en=typeof dn=="function"?dn:constant$2(+dn),sn):en},sn.y=function(dn){return arguments.length?(He=typeof dn=="function"?dn:constant$2(+dn),sn):He},sn.defined=function(dn){return arguments.length?(tn=typeof dn=="function"?dn:constant$2(!!dn),sn):tn},sn.curve=function(dn){return arguments.length?(an=dn,nn!=null&&(rn=an(nn)),sn):an},sn.context=function(dn){return arguments.length?(dn==null?nn=rn=null:rn=an(nn=dn),sn):nn},sn}function area(en,He,tn){var nn=null,an=constant$2(!0),rn=null,on=curveLinear,sn=null,dn=withPath(hn);en=typeof en=="function"?en:en===void 0?x:constant$2(+en),He=typeof He=="function"?He:constant$2(He===void 0?0:+He),tn=typeof tn=="function"?tn:tn===void 0?y:constant$2(+tn);function hn(gn){var yn,fn,bn,Mn=(gn=array$1(gn)).length,Tn,xn=!1,En,Rn=new Array(Mn),ni=new Array(Mn);for(rn==null&&(sn=on(En=dn())),yn=0;yn<=Mn;++yn){if(!(yn<Mn&&an(Tn=gn[yn],yn,gn))===xn)if(xn=!xn)fn=yn,sn.areaStart(),sn.lineStart();else{for(sn.lineEnd(),sn.lineStart(),bn=yn-1;bn>=fn;--bn)sn.point(Rn[bn],ni[bn]);sn.lineEnd(),sn.areaEnd()}xn&&(Rn[yn]=+en(Tn,yn,gn),ni[yn]=+He(Tn,yn,gn),sn.point(nn?+nn(Tn,yn,gn):Rn[yn],tn?+tn(Tn,yn,gn):ni[yn]))}if(En)return sn=null,En+""||null}function mn(){return line().defined(an).curve(on).context(rn)}return hn.x=function(gn){return arguments.length?(en=typeof gn=="function"?gn:constant$2(+gn),nn=null,hn):en},hn.x0=function(gn){return arguments.length?(en=typeof gn=="function"?gn:constant$2(+gn),hn):en},hn.x1=function(gn){return arguments.length?(nn=gn==null?null:typeof gn=="function"?gn:constant$2(+gn),hn):nn},hn.y=function(gn){return arguments.length?(He=typeof gn=="function"?gn:constant$2(+gn),tn=null,hn):He},hn.y0=function(gn){return arguments.length?(He=typeof gn=="function"?gn:constant$2(+gn),hn):He},hn.y1=function(gn){return arguments.length?(tn=gn==null?null:typeof gn=="function"?gn:constant$2(+gn),hn):tn},hn.lineX0=hn.lineY0=function(){return mn().x(en).y(He)},hn.lineY1=function(){return mn().x(en).y(tn)},hn.lineX1=function(){return mn().x(nn).y(He)},hn.defined=function(gn){return arguments.length?(an=typeof gn=="function"?gn:constant$2(!!gn),hn):an},hn.curve=function(gn){return arguments.length?(on=gn,rn!=null&&(sn=on(rn)),hn):on},hn.context=function(gn){return arguments.length?(gn==null?rn=sn=null:sn=on(rn=gn),hn):rn},hn}function descending(en,He){return He<en?-1:He>en?1:He>=en?0:NaN}function identity$1(en){return en}function pie(){var en=identity$1,He=descending,tn=null,nn=constant$2(0),an=constant$2(tau$1),rn=constant$2(0);function on(sn){var dn,hn=(sn=array$1(sn)).length,mn,gn,yn=0,fn=new Array(hn),bn=new Array(hn),Mn=+nn.apply(this,arguments),Tn=Math.min(tau$1,Math.max(-tau$1,an.apply(this,arguments)-Mn)),xn,En=Math.min(Math.abs(Tn)/hn,rn.apply(this,arguments)),Rn=En*(Tn<0?-1:1),ni;for(dn=0;dn<hn;++dn)(ni=bn[fn[dn]=dn]=+en(sn[dn],dn,sn))>0&&(yn+=ni);for(He!=null?fn.sort(function(mi,bi){return He(bn[mi],bn[bi])}):tn!=null&&fn.sort(function(mi,bi){return tn(sn[mi],sn[bi])}),dn=0,gn=yn?(Tn-hn*Rn)/yn:0;dn<hn;++dn,Mn=xn)mn=fn[dn],ni=bn[mn],xn=Mn+(ni>0?ni*gn:0)+Rn,bn[mn]={data:sn[mn],index:dn,value:ni,startAngle:Mn,endAngle:xn,padAngle:En};return bn}return on.value=function(sn){return arguments.length?(en=typeof sn=="function"?sn:constant$2(+sn),on):en},on.sortValues=function(sn){return arguments.length?(He=sn,tn=null,on):He},on.sort=function(sn){return arguments.length?(tn=sn,He=null,on):tn},on.startAngle=function(sn){return arguments.length?(nn=typeof sn=="function"?sn:constant$2(+sn),on):nn},on.endAngle=function(sn){return arguments.length?(an=typeof sn=="function"?sn:constant$2(+sn),on):an},on.padAngle=function(sn){return arguments.length?(rn=typeof sn=="function"?sn:constant$2(+sn),on):rn},on}function sign(en){return en<0?-1:1}function slope3(en,He,tn){var nn=en._x1-en._x0,an=He-en._x1,rn=(en._y1-en._y0)/(nn||an<0&&-0),on=(tn-en._y1)/(an||nn<0&&-0),sn=(rn*an+on*nn)/(nn+an);return(sign(rn)+sign(on))*Math.min(Math.abs(rn),Math.abs(on),.5*Math.abs(sn))||0}function slope2(en,He){var tn=en._x1-en._x0;return tn?(3*(en._y1-en._y0)/tn-He)/2:He}function point(en,He,tn){var nn=en._x0,an=en._y0,rn=en._x1,on=en._y1,sn=(rn-nn)/3;en._context.bezierCurveTo(nn+sn,an+sn*He,rn-sn,on-sn*tn,rn,on)}function MonotoneX(en){this._context=en}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(en,He){var tn=NaN;if(en=+en,He=+He,!(en===this._x1&&He===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(en,He):this._context.moveTo(en,He);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,tn=slope3(this,en,He)),tn);break;default:point(this,this._t0,tn=slope3(this,en,He));break}this._x0=this._x1,this._x1=en,this._y0=this._y1,this._y1=He,this._t0=tn}}};function MonotoneY(en){this._context=new ReflectContext(en)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(en,He){MonotoneX.prototype.point.call(this,He,en)};function ReflectContext(en){this._context=en}ReflectContext.prototype={moveTo:function(en,He){this._context.moveTo(He,en)},closePath:function(){this._context.closePath()},lineTo:function(en,He){this._context.lineTo(He,en)},bezierCurveTo:function(en,He,tn,nn,an,rn){this._context.bezierCurveTo(He,en,nn,tn,rn,an)}};function monotoneX(en){return new MonotoneX(en)}function monotoneY(en){return new MonotoneY(en)}function Natural(en){this._context=en}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var en=this._x,He=this._y,tn=en.length;if(tn)if(this._line?this._context.lineTo(en[0],He[0]):this._context.moveTo(en[0],He[0]),tn===2)this._context.lineTo(en[1],He[1]);else for(var nn=controlPoints(en),an=controlPoints(He),rn=0,on=1;on<tn;++rn,++on)this._context.bezierCurveTo(nn[0][rn],an[0][rn],nn[1][rn],an[1][rn],en[on],He[on]);(this._line||this._line!==0&&tn===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(en,He){this._x.push(+en),this._y.push(+He)}};function controlPoints(en){var He,tn=en.length-1,nn,an=new Array(tn),rn=new Array(tn),on=new Array(tn);
94for(an[0]=0,rn[0]=2,on[0]=en[0]+2*en[1],He=1;He<tn-1;++He)an[He]=1,rn[He]=4,on[He]=4*en[He]+2*en[He+1];for(an[tn-1]=2,rn[tn-1]=7,on[tn-1]=8*en[tn-1]+en[tn],He=1;He<tn;++He)nn=an[He]/rn[He-1],rn[He]-=nn,on[He]-=nn*on[He-1];for(an[tn-1]=on[tn-1]/rn[tn-1],He=tn-2;He>=0;--He)an[He]=(on[He]-an[He+1])/rn[He];for(rn[tn-1]=(en[tn]+an[tn-1])/2,He=0;He<tn-1;++He)rn[He]=2*en[He+1]-an[He+1];return[an,rn]}function curveNatural(en){return new Natural(en)}function Step(en,He){this._context=en,this._t=He}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(en,He){switch(en=+en,He=+He,this._point){case 0:this._point=1,this._line?this._context.lineTo(en,He):this._context.moveTo(en,He);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,He),this._context.lineTo(en,He);else{var tn=this._x*(1-this._t)+en*this._t;this._context.lineTo(tn,this._y),this._context.lineTo(tn,He)}break}}this._x=en,this._y=He}};function curveStep(en){return new Step(en,.5)}function stepAfter(en){return new Step(en,1)}function none$1(en,He){if((on=en.length)>1)for(var tn=1,nn,an,rn=en[He[0]],on,sn=rn.length;tn<on;++tn)for(an=rn,rn=en[He[tn]],nn=0;nn<sn;++nn)rn[nn][1]+=rn[nn][0]=isNaN(an[nn][1])?an[nn][0]:an[nn][1]}function stackOrderNone(en){for(var He=en.length,tn=new Array(He);--He>=0;)tn[He]=He;return tn}function stackValue(en,He){return en[He]}function stackSeries(en){const He=[];return He.key=en,He}function stack(){var en=constant$2([]),He=stackOrderNone,tn=none$1,nn=stackValue;function an(rn){var on=Array.from(en.apply(this,arguments),stackSeries),sn,dn=on.length,hn=-1,mn;for(const gn of rn)for(sn=0,++hn;sn<dn;++sn)(on[sn][hn]=[0,+nn(gn,on[sn].key,hn,rn)]).data=gn;for(sn=0,mn=array$1(He(on));sn<dn;++sn)on[mn[sn]].index=sn;return tn(on,mn),on}return an.keys=function(rn){return arguments.length?(en=typeof rn=="function"?rn:constant$2(Array.from(rn)),an):en},an.value=function(rn){return arguments.length?(nn=typeof rn=="function"?rn:constant$2(+rn),an):nn},an.order=function(rn){return arguments.length?(He=rn==null?stackOrderNone:typeof rn=="function"?rn:constant$2(Array.from(rn)),an):He},an.offset=function(rn){return arguments.length?(tn=rn??none$1,an):tn},an}const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(He,tn){this.data=He,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(nn=>nn!==void 0,tn),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=ref(0)}get bandScale(){return this.scales.primary.type==="band"?this.scales.primary:this.scales.secondary.type==="band"?this.scales.secondary:null}get canvas(){const{margin:He,size:tn}=this.config,nn=this.config.axisSpace;return this.config.axis.primary.hide&&(nn.y=0),this.config.axis.secondary.hide&&(nn.x=0),{x:He.left+nn.x,y:He.top,width:tn.width-He.right,height:tn.height-He.bottom-nn.y}}getStackedData(He){return stack().keys(He).order(stackOrderNone)(this.data)}changeData(He){this.data=He,this.update("data")}changeConfig(He){this.config=mergeDeepLeft$1(pickBy$1(tn=>tn!==void 0,He),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(He){this.layers.push(He),this.update("layers")}removeLayer(He){this.layers=this.layers.filter(tn=>tn.id!==He),this.update("layers")}getLayers(He){return He?this.layers.filter(tn=>tn.type===He):this.layers}getData(He){return He.reduce((tn,nn)=>tn.concat(getCol(nn,this.data)),[])}getKeys(He=-1,tn=null){const nn=this.layers.filter(an=>tn?an.type===tn:!0).map(an=>an.dataKeys);return He===-1?nn:getCol(He,nn)}getStackedKeys(He=-1,tn=null){const nn=this.layers.filter(an=>tn?an.type===tn&&an.props.stacked:an.props.stacked).map(an=>an.dataKeys);return He===-1?nn:getCol(He,nn)}update(He){const tn=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,tn,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(en){var He=en+="",tn=He.indexOf(":");return tn>=0&&(He=en.slice(0,tn))!=="xmlns"&&(en=en.slice(tn+1)),namespaces.hasOwnProperty(He)?{space:namespaces[He],local:en}:en}function creatorInherit(en){return function(){var He=this.ownerDocument,tn=this.namespaceURI;return tn===xhtml&&He.documentElement.namespaceURI===xhtml?He.createElement(en):He.createElementNS(tn,en)}}function creatorFixed(en){return function(){return this.ownerDocument.createElementNS(en.space,en.local)}}function creator(en){var He=namespace(en);return(He.local?creatorFixed:creatorInherit)(He)}function none(){}function selector(en){return en==null?none:function(){return this.querySelector(en)}}function selection_select(en){typeof en!="function"&&(en=selector(en));for(var He=this._groups,tn=He.length,nn=new Array(tn),an=0;an<tn;++an)for(var rn=He[an],on=rn.length,sn=nn[an]=new Array(on),dn,hn,mn=0;mn<on;++mn)(dn=rn[mn])&&(hn=en.call(dn,dn.__data__,mn,rn))&&("__data__"in dn&&(hn.__data__=dn.__data__),sn[mn]=hn);return new Selection(nn,this._parents)}function array(en){return en==null?[]:Array.isArray(en)?en:Array.from(en)}function empty(){return[]}function selectorAll(en){return en==null?empty:function(){return this.querySelectorAll(en)}}function arrayAll(en){return function(){return array(en.apply(this,arguments))}}function selection_selectAll(en){typeof en=="function"?en=arrayAll(en):en=selectorAll(en);for(var He=this._groups,tn=He.length,nn=[],an=[],rn=0;rn<tn;++rn)for(var on=He[rn],sn=on.length,dn,hn=0;hn<sn;++hn)(dn=on[hn])&&(nn.push(en.call(dn,dn.__data__,hn,on)),an.push(dn));return new Selection(nn,an)}function matcher(en){return function(){return this.matches(en)}}function childMatcher(en){return function(He){return He.matches(en)}}var find=Array.prototype.find;function childFind(en){return function(){return find.call(this.children,en)}}function childFirst(){return this.firstElementChild}function selection_selectChild(en){return this.select(en==null?childFirst:childFind(typeof en=="function"?en:childMatcher(en)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(en){return function(){return filter.call(this.children,en)}}function selection_selectChildren(en){return this.selectAll(en==null?children:childrenFilter(typeof en=="function"?en:childMatcher(en)))}function selection_filter(en){typeof en!="function"&&(en=matcher(en));for(var He=this._groups,tn=He.length,nn=new Array(tn),an=0;an<tn;++an)for(var rn=He[an],on=rn.length,sn=nn[an]=[],dn,hn=0;hn<on;++hn)(dn=rn[hn])&&en.call(dn,dn.__data__,hn,rn)&&sn.push(dn);return new Selection(nn,this._parents)}function sparse(en){return new Array(en.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(en,He){this.ownerDocument=en.ownerDocument,this.namespaceURI=en.namespaceURI,this._next=null,this._parent=en,this.__data__=He}EnterNode.prototype={constructor:EnterNode,appendChild:function(en){return this._parent.insertBefore(en,this._next)},insertBefore:function(en,He){return this._parent.insertBefore(en,He)},querySelector:function(en){return this._parent.querySelector(en)},querySelectorAll:function(en){return this._parent.querySelectorAll(en)}};function constant$1(en){return function(){return en}}function bindIndex(en,He,tn,nn,an,rn){for(var on=0,sn,dn=He.length,hn=rn.length;on<hn;++on)(sn=He[on])?(sn.__data__=rn[on],nn[on]=sn):tn[on]=new EnterNode(en,rn[on]);for(;on<dn;++on)(sn=He[on])&&(an[on]=sn)}function bindKey(en,He,tn,nn,an,rn,on){var sn,dn,hn=new Map,mn=He.length,gn=rn.length,yn=new Array(mn),fn;for(sn=0;sn<mn;
vendor: 6,528 bytes, line 94
94++sn)(dn=He[sn])&&(yn[sn]=fn=on.call(dn,dn.__data__,sn,He)+"",hn.has(fn)?an[sn]=dn:hn.set(fn,dn));for(sn=0;sn<gn;++sn)fn=on.call(en,rn[sn],sn,rn)+"",(dn=hn.get(fn))?(nn[sn]=dn,dn.__data__=rn[sn],hn.delete(fn)):tn[sn]=new EnterNode(en,rn[sn]);for(sn=0;sn<mn;++sn)(dn=He[sn])&&hn.get(yn[sn])===dn&&(an[sn]=dn)}function datum(en){return en.__data__}function selection_data(en,He){if(!arguments.length)return Array.from(this,datum);var tn=He?bindKey:bindIndex,nn=this._parents,an=this._groups;typeof en!="function"&&(en=constant$1(en));for(var rn=an.length,on=new Array(rn),sn=new Array(rn),dn=new Array(rn),hn=0;hn<rn;++hn){var mn=nn[hn],gn=an[hn],yn=gn.length,fn=arraylike(en.call(mn,mn&&mn.__data__,hn,nn)),bn=fn.length,Mn=sn[hn]=new Array(bn),Tn=on[hn]=new Array(bn),xn=dn[hn]=new Array(yn);tn(mn,gn,Mn,Tn,xn,fn,He);for(var En=0,Rn=0,ni,mi;En<bn;++En)if(ni=Mn[En]){for(En>=Rn&&(Rn=En+1);!(mi=Tn[Rn])&&++Rn<bn;);ni._next=mi||null}}return on=new Selection(on,nn),on._enter=sn,on._exit=dn,on}function arraylike(en){return typeof en=="object"&&"length"in en?en:Array.from(en)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(en,He,tn){var nn=this.enter(),an=this,rn=this.exit();return typeof en=="function"?(nn=en(nn),nn&&(nn=nn.selection())):nn=nn.append(en+""),He!=null&&(an=He(an),an&&(an=an.selection())),tn==null?rn.remove():tn(rn),nn&&an?nn.merge(an).order():an}function selection_merge(en){for(var He=en.selection?en.selection():en,tn=this._groups,nn=He._groups,an=tn.length,rn=nn.length,on=Math.min(an,rn),sn=new Array(an),dn=0;dn<on;++dn)for(var hn=tn[dn],mn=nn[dn],gn=hn.length,yn=sn[dn]=new Array(gn),fn,bn=0;bn<gn;++bn)(fn=hn[bn]||mn[bn])&&(yn[bn]=fn);for(;dn<an;++dn)sn[dn]=tn[dn];return new Selection(sn,this._parents)}function selection_order(){for(var en=this._groups,He=-1,tn=en.length;++He<tn;)for(var nn=en[He],an=nn.length-1,rn=nn[an],on;--an>=0;)(on=nn[an])&&(rn&&on.compareDocumentPosition(rn)^4&&rn.parentNode.insertBefore(on,rn),rn=on);return this}function selection_sort(en){en||(en=ascending);function He(gn,yn){return gn&&yn?en(gn.__data__,yn.__data__):!gn-!yn}for(var tn=this._groups,nn=tn.length,an=new Array(nn),rn=0;rn<nn;++rn){for(var on=tn[rn],sn=on.length,dn=an[rn]=new Array(sn),hn,mn=0;mn<sn;++mn)(hn=on[mn])&&(dn[mn]=hn);dn.sort(He)}return new Selection(an,this._parents).order()}function ascending(en,He){return en<He?-1:en>He?1:en>=He?0:NaN}function selection_call(){var en=arguments[0];return arguments[0]=this,en.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var en=this._groups,He=0,tn=en.length;He<tn;++He)for(var nn=en[He],an=0,rn=nn.length;an<rn;++an){var on=nn[an];if(on)return on}return null}function selection_size(){let en=0;for(const He of this)++en;return en}function selection_empty(){return!this.node()}function selection_each(en){for(var He=this._groups,tn=0,nn=He.length;tn<nn;++tn)for(var an=He[tn],rn=0,on=an.length,sn;rn<on;++rn)(sn=an[rn])&&en.call(sn,sn.__data__,rn,an);return this}function attrRemove(en){return function(){this.removeAttribute(en)}}function attrRemoveNS(en){return function(){this.removeAttributeNS(en.space,en.local)}}function attrConstant(en,He){return function(){this.setAttribute(en,He)}}function attrConstantNS(en,He){return function(){this.setAttributeNS(en.space,en.local,He)}}function attrFunction(en,He){return function(){var tn=He.apply(this,arguments);tn==null?this.removeAttribute(en):this.setAttribute(en,tn)}}function attrFunctionNS(en,He){return function(){var tn=He.apply(this,arguments);tn==null?this.removeAttributeNS(en.space,en.local):this.setAttributeNS(en.space,en.local,tn)}}function selection_attr(en,He){var tn=namespace(en);if(arguments.length<2){var nn=this.node();return tn.local?nn.getAttributeNS(tn.space,tn.local):nn.getAttribute(tn)}return this.each((He==null?tn.local?attrRemoveNS:attrRemove:typeof He=="function"?tn.local?attrFunctionNS:attrFunction:tn.local?attrConstantNS:attrConstant)(tn,He))}function defaultView(en){return en.ownerDocument&&en.ownerDocument.defaultView||en.document&&en||en.defaultView}function styleRemove(en){return function(){this.style.removeProperty(en)}}function styleConstant(en,He,tn){return function(){this.style.setProperty(en,He,tn)}}function styleFunction(en,He,tn){return function(){var nn=He.apply(this,arguments);nn==null?this.style.removeProperty(en):this.style.setProperty(en,nn,tn)}}function selection_style(en,He,tn){return arguments.length>1?this.each((He==null?styleRemove:typeof He=="function"?styleFunction:styleConstant)(en,He,tn??"")):styleValue(this.node(),en)}function styleValue(en,He){return en.style.getPropertyValue(He)||defaultView(en).getComputedStyle(en,null).getPropertyValue(He)}function propertyRemove(en){return function(){delete this[en]}}function propertyConstant(en,He){return function(){this[en]=He}}function propertyFunction(en,He){return function(){var tn=He.apply(this,arguments);tn==null?delete this[en]:this[en]=tn}}function selection_property(en,He){return arguments.length>1?this.each((He==null?propertyRemove:typeof He=="function"?propertyFunction:propertyConstant)(en,He)):this.node()[en]}function classArray(en){return en.trim().split(/^|\s+/)}function classList(en){return en.classList||new ClassList(en)}function ClassList(en){this._node=en,this._names=classArray(en.getAttribute("class")||"")}ClassList.prototype={add:function(en){var He=this._names.indexOf(en);He<0&&(this._names.push(en),this._node.setAttribute("class",this._names.join(" ")))},remove:function(en){var He=this._names.indexOf(en);He>=0&&(this._names.splice(He,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(en){return this._names.indexOf(en)>=0}};function classedAdd(en,He){for(var tn=classList(en),nn=-1,an=He.length;++nn<an;)tn.add(He[nn])}function classedRemove(en,He){for(var tn=classList(en),nn=-1,an=He.length;++nn<an;)tn.remove(He[nn])}function classedTrue(en){return function(){classedAdd(this,en)}}function classedFalse(en){return function(){classedRemove(this,en)}}function classedFunction(en,He){return function(){(He.apply(this,arguments)?classedAdd:classedRemove)(this,en)}}function selection_classed(en,He){var tn=classArray(en+"");if(arguments.length<2){for(var nn=classList(this.node()),an=-1,rn=tn.length;++an<rn;)if(!nn.contains(tn[an]))return!1;return!0}return this.each((typeof He=="function"?classedFunction:He?classedTrue:classedFalse)(tn,He))}function textRemove(){this.textContent=""}
vendor: 4,384 bytes, line 94
94function textConstant(en){return function(){this.textContent=en}}function textFunction(en){return function(){var He=en.apply(this,arguments);this.textContent=He??""}}function selection_text(en){return arguments.length?this.each(en==null?textRemove:(typeof en=="function"?textFunction:textConstant)(en)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(en){return function(){this.innerHTML=en}}function htmlFunction(en){return function(){var He=en.apply(this,arguments);this.innerHTML=He??""}}function selection_html(en){return arguments.length?this.each(en==null?htmlRemove:(typeof en=="function"?htmlFunction:htmlConstant)(en)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(en){var He=typeof en=="function"?en:creator(en);return this.select(function(){return this.appendChild(He.apply(this,arguments))})}function constantNull(){return null}function selection_insert(en,He){var tn=typeof en=="function"?en:creator(en),nn=He==null?constantNull:typeof He=="function"?He:selector(He);return this.select(function(){return this.insertBefore(tn.apply(this,arguments),nn.apply(this,arguments)||null)})}function remove(){var en=this.parentNode;en&&en.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var en=this.cloneNode(!1),He=this.parentNode;return He?He.insertBefore(en,this.nextSibling):en}function selection_cloneDeep(){var en=this.cloneNode(!0),He=this.parentNode;return He?He.insertBefore(en,this.nextSibling):en}function selection_clone(en){return this.select(en?selection_cloneDeep:selection_cloneShallow)}function selection_datum(en){return arguments.length?this.property("__data__",en):this.node().__data__}function contextListener(en){return function(He){en.call(this,He,this.__data__)}}function parseTypenames(en){return en.trim().split(/^|\s+/).map(function(He){var tn="",nn=He.indexOf(".");return nn>=0&&(tn=He.slice(nn+1),He=He.slice(0,nn)),{type:He,name:tn}})}function onRemove(en){return function(){var He=this.__on;if(He){for(var tn=0,nn=-1,an=He.length,rn;tn<an;++tn)rn=He[tn],(!en.type||rn.type===en.type)&&rn.name===en.name?this.removeEventListener(rn.type,rn.listener,rn.options):He[++nn]=rn;++nn?He.length=nn:delete this.__on}}}function onAdd(en,He,tn){return function(){var nn=this.__on,an,rn=contextListener(He);if(nn){for(var on=0,sn=nn.length;on<sn;++on)if((an=nn[on]).type===en.type&&an.name===en.name){this.removeEventListener(an.type,an.listener,an.options),this.addEventListener(an.type,an.listener=rn,an.options=tn),an.value=He;return}}this.addEventListener(en.type,rn,tn),an={type:en.type,name:en.name,value:He,listener:rn,options:tn},nn?nn.push(an):this.__on=[an]}}function selection_on(en,He,tn){var nn=parseTypenames(en+""),an,rn=nn.length,on;if(arguments.length<2){var sn=this.node().__on;if(sn){for(var dn=0,hn=sn.length,mn;dn<hn;++dn)for(an=0,mn=sn[dn];an<rn;++an)if((on=nn[an]).type===mn.type&&on.name===mn.name)return mn.value}return}for(sn=He?onAdd:onRemove,an=0;an<rn;++an)this.each(sn(nn[an],He,tn));return this}function dispatchEvent(en,He,tn){var nn=defaultView(en),an=nn.CustomEvent;typeof an=="function"?an=new an(He,tn):(an=nn.document.createEvent("Event"),tn?(an.initEvent(He,tn.bubbles,tn.cancelable),an.detail=tn.detail):an.initEvent(He,!1,!1)),en.dispatchEvent(an)}function dispatchConstant(en,He){return function(){return dispatchEvent(this,en,He)}}function dispatchFunction(en,He){return function(){return dispatchEvent(this,en,He.apply(this,arguments))}}function selection_dispatch(en,He){return this.each((typeof He=="function"?dispatchFunction:dispatchConstant)(en,He))}function*selection_iterator(){for(var en=this._groups,He=0,tn=en.length;He<tn;++He)for(var nn=en[He],an=0,rn=nn.length,on;an<rn;++an)(on=nn[an])&&(yield on)}var root=[null];function Selection(en,He){this._groups=en,this._parents=He}function selection_selection(){return this}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter
94:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(en){return typeof en=="string"?new Selection([[document.querySelector(en)]],[document.documentElement]):new Selection([[en]],root)}function sourceEvent(en){let He;for(;He=en.sourceEvent;)en=He;return en}function pointer(en,He){if(en=sourceEvent(en),He===void 0&&(He=en.currentTarget),He){var tn=He.ownerSVGElement||He;if(tn.createSVGPoint){var nn=tn.createSVGPoint();return nn.x=en.clientX,nn.y=en.clientY,nn=nn.matrixTransform(He.getScreenCTM().inverse()),[nn.x,nn.y]}if(He.getBoundingClientRect){var an=He.getBoundingClientRect();return[en.clientX-an.left-He.clientLeft,en.clientY-an.top-He.clientTop]}}return[en.pageX,en.pageY]}function identity(en){return en}var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(en){return"translate("+en+",0)"}function translateY(en){return"translate(0,"+en+")"}function number(en){return He=>+en(He)}function center(en,He){return He=Math.max(0,en.bandwidth()-He*2)/2,en.roun
94d()&&(He=Math.round(He)),tn=>+en(tn)+He}function entering(){return!this.__axis}function axis(en,He){var tn=[],nn=null,an=null,rn=6,on=6,sn=3,dn=typeof window<"u"&&window.devicePixelRatio>1?0:.5,hn=en===top||en===left?-1:1,mn=en===left||en===right?"x":"y",gn=en===top||en===bottom?translateX:translateY;function yn(fn){var bn=nn??(He.ticks?He.ticks.apply(He,tn):He.domain()),Mn=an??(He.tickFormat?He.tickFormat.apply(He,tn):identity),Tn=Math.max(rn,0)+sn,xn=He.range(),En=+xn[0]+dn,Rn=+xn[xn.length-1]+dn,ni=(He.bandwidth?center:number)(He.copy(),dn),mi=fn.selection?fn.selection():fn,bi=mi.selectAll(".domain").data([null]),_i=mi.selectAll(".tick").data(bn,He).order(),oi=_i.exit(),si=_i.enter().append("g").attr("class","tick"),fi=_i.select("line"),ei=_i.select("text");bi=bi.merge(bi.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_i=_i.merge(si),fi=fi.merge(si.append("line").attr("stroke","currentColor").attr(mn+"2",hn*rn)),ei=ei.merge(si.append("text").attr("fill","currentColor").attr(mn,hn*Tn).attr("dy",en===top?"0em":en===bottom?"0.71em":"0.32em")),fn!==mi&&(bi=bi.transition(fn),_i=_i.transition(fn),fi=fi.transition(fn),ei=ei.transition(fn),oi=oi.transition(fn).attr("opacity",epsilon).attr("transform",function(ci){return isFinite(ci=ni(ci))?gn(ci+dn):this.getAttribute("transform")}),si.attr("opacity",epsilon).attr("transform",function(ci){var di=this.parentNode.__axis;return gn((di&&isFinite(di=di(ci))?di:ni(ci))+dn)})),oi.remove(),bi.attr("d",en===left||en===right?on?"M"+hn*on+","+En+"H"+dn+"V"+Rn+"H"+hn*on:"M"+dn+","+En+"V"+Rn:on?"M"+En+","+hn*on+"V"+dn+"H"+Rn+"V"+hn*on:"M"+En+","+dn+"H"+Rn),_i.attr("opacity",1).attr("transform",function(ci){return gn(ni(ci)+dn)}),fi.attr(mn+"2",hn*rn),ei.attr(mn,hn*Tn).text(Mn),mi.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",en===right?"start":en===left?"end":"middle"),mi.each(function(){this.__axis=ni})}return yn.scale=function(fn){return arguments.length?(He=fn,yn):He},yn.ticks=function(){return tn=Array.from(arguments),yn},yn.tickArguments=function(fn){return arguments.length?(tn=fn==null?[]:Array.from(fn),yn):tn.slice()},yn.tickValues=function(fn){return arguments.length?(nn=fn==null?null:Array.from(fn),yn):nn&&nn.slice()},yn.tickFormat=function(fn){return arguments.length?(an=fn,yn):an},yn.tickSize=function(fn){return arguments.length?(rn=on=+fn,yn):rn},yn.tickSizeInner=function(fn){return arguments.length?(rn=+fn,yn):rn},yn.tickSizeOuter=function(fn){return arguments.length?(on=+fn,yn):on},yn.tickPadding=function(fn){return arguments.length?(sn=+fn,yn):sn},yn.offset=function(fn){return arguments.length?(dn=+fn,yn):dn},yn}function axisBottom(en){return axis(bottom,en)}function axisLeft(en){return axis(left,en)}var useChart=()=>inject("chart"),usePoints=(en,He={stacked:!1,type:"line"})=>{const tn=ref([]),nn=useChart(),{stacked:an,type:rn}=He;function on(dn,hn){const{primary:mn,secondary:gn}=nn.scales;return nn.config.direction==="horizontal"?hn.map(fn=>({x:mn.mapOne(fn.data[dn]),y:gn.mapOne(fn[1]),props:{values:[...fn],data:fn.data}})).filter(fn=>!isNaN(fn.x)&&!isNaN(fn.y)):nn.config.direction==="vertical"?hn.map(yn=>({x:gn.mapOne(yn[1]),y:mn.mapOne(yn.data[dn]),props:{values:[...yn],data:yn.data}})).filter(yn=>!isNaN(yn.x)&&!isNaN(yn.y)):[]}function sn(){const dn=nn.getStackedKeys(1,rn),[hn,mn]=en,yn=nn.getStackedData(an?dn:[en[1]]).find(fn=>fn.key===mn);yn&&(tn.value=on(hn,yn))}return watch(nn.updates,()=>{sn()},{immediate:!0}),{points:tn}},useMouse=()=>inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(en,He={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const tn=ref([]),nn=useChart(),{stacked:an,type:rn,gap:on}=He;function sn(){const{primary:fn,secondary:bn}=nn.scales,Mn=fn.type==="band"?fn:bn,Tn=fn.type==="band"?bn:fn;return{bandScale:Mn,linearScale:Tn}}function dn(){if(an)return 0;const bn=nn.getLayers(rn).findIndex(Mn=>Mn.dataKeys.join(",")===en.join(","));return bn>-1?bn:0}function hn(){const{bandScale:fn}=sn(),bn=He.maxWidth>-1?Math.min(fn.bandwidth()-on,He.maxWidth):fn.bandwidth()-on,Mn=nn.getLayers(rn);return Mn.length>0&&!an?bn/Mn.length:bn}function mn(){if(an)return 0;const{bandScale:fn}=sn(),bn=fn.bandwidth()-on,Mn=nn.getLayers(rn).length*hn();return(bn-Mn)/2}function gn(fn,bn){const{bandScale:Mn,linearScale:Tn}=sn(),xn=dn(),En=hn(),Rn=mn();return bn.map(ni=>{const mi={x:0,y:0,width:0,height:0,props:{values:[...ni],data:ni.data}},bi=Mn.scale(ni.data[fn]),[_i,oi]=Tn.map(ni);return nn.config.direction==="horizontal"?(mi.y=Math.min(_i,oi),mi.height=Math.abs(_i-oi),mi.x=Rn+bi+xn*En+on/2,mi.width=En):nn.config.direction==="vertical"&&(mi.x=Math.min(_i,oi),mi.width=Math.abs(_i-oi),mi.y=Rn+bi+xn*En+on/2,mi.height=En),mi})}function yn(){const fn=an?nn.getStackedKeys(1,rn):[en[1]],[bn,Mn]=en,xn=nn.getStackedData(fn).find(En=>En.key===Mn);xn&&(tn.value=gn(bn,xn))}return watch(nn.updates,()=>{yn()}),{bars:tn}},useTooltip=()=>{const en=useMouse(),He=useChart(),tn=computed(()=>en.hover),nn=ref({x:0,y:0}),an=ref({});
94return watch(en,()=>{const{primary:rn}=He.scales,on=He.getKeys(0),sn=He.getData(on),[dn]=rn.map([sn[en.index]]);dn&&(He.config.direction==="horizontal"?nn.value={x:dn,y:en.position.y}:He.config.direction==="vertical"?nn.value={x:en.position.x,y:dn}:nn.value={x:en.position.x,y:en.position.y});const hn=He.data[en.index];hn&&(an.value=Object.assign(Object.assign({},hn),{idx:en.index}))}),{position:nn,payload:an,show:tn}},useResize=en=>{const He=ref(0),tn=ref(0);let nn=null,an=null;function rn(sn,dn){He.value=sn,tn.value=dn,an&&an()}function on(sn){an=sn}return onMounted(()=>{nn=new window.ResizeObserver(sn=>{const dn=sn[0].contentRect.width,hn=sn[0].contentRect.height;rn(dn,hn)}),nn.observe(en.value)}),onUnmounted(()=>{nn.disconnect()}),{width:He,height:tn,onResize:on}},script$d=defineComponent({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(en){const He=ref(),tn=useChart(),nn=computed(()=>en.position==="bottom"?axisBottom:axisLeft),an=ref(tn.canvas),rn={ticks:5};function on(){if(tn.data.length>0){const{primary:sn,secondary:dn}=tn.scales,hn=en.isPrimary?sn:dn,mn=Object.assign({},en.isPrimary?sn.config:dn.config,rn),gn=nn.value(hn.scale);mn.format&&gn.tickFormat(mn.format),mn.ticks!==void 0&&gn.ticks(mn.ticks),mn.tickValues!==void 0&&gn.tickValues(mn.tickValues),mn.useConfig&&mn.useConfig(gn);const yn=select(He.value).call(gn);return en.position==="bottom"&&en.rotate&&yn.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),gn}return null}return watch(()=>en.isPrimary,()=>{on()}),watch(tn.updates,()=>{an.value=tn.canvas,on()}),{el:He,canvas:an}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(en,He,tn,nn,an,rn){return en.position==="bottom"?(openBlock(),createElementBlock("g",{key:0,class:normalizeClass("layer-axis-x"),ref:"el",transform:`translate(0, ${en.canvas.height})`},null,8,_hoisted_1$b$1)):(openBlock(),createElementBlock("g",{key:1,class:normalizeClass("layer-axis-y"),ref:"el",transform:`translate(${en.canvas.x}, 0)`},null,8,_hoisted_2$8$1))}script$d.render=render$d;script$d.__file="src/components/Axis/index.vue";var script$c=defineComponent({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(en){const He=ref(null),tn=ref(),nn=ref(),an=reactive({x:40,y:20}),rn=new Chart(en.data,en.config),on=computed(()=>en.axis&&en.axis.primary&&en.axis.primary.rotate),sn=computed(()=>en.axis&&en.axis.primary&&en.axis.primary.hide),dn=computed(()=>en.axis&&en.axis.secondary&&en.axis.secondary.hide),hn=reactive({index:-1,position:{x:0,y:0},hover:!1});provide("chart",rn),provide("chartMouse",hn),watch(()=>en.data,()=>{rn&&rn.changeData(en.data)},{immediate:!0}),watch(()=>en.config,()=>{rn&&rn.changeConfig(en.config)}),watch(()=>[Object.assign({},an),en.direction,en.size,en.margin,en.axis],()=>{rn&&rn.changeConfig({axisSpace:Object.assign({},an),direction:en.direction,size:en.size,margin:en.margin,axis:en.axis})},{immediate:!0});const mn=new ResizeObserver(fn=>{for(const bn of fn)nn.value&&bn.target===nn.value.$el?an.y=bn.contentRect.height:tn.value&&bn.target===tn.value.$el&&(an.x=bn.contentRect.width)});onMounted(()=>{nn.value&&mn.observe(nn.value.$el),tn.value&&mn.observe(tn.value.$el)}),onUnmounted(()=>{mn.disconnect()});function gn(){en.config.controlHover!==!1&&(hn.index=-1,hn.hover=!1)}function yn(fn){if(en.config.controlHover===!1)return;hn.hover=!0,hn.position={x:pointer(fn)[0],y:pointer(fn)[1]};const{primary:bn}=rn.scales,Mn=rn.getKeys(0),Tn=rn.getData(Mn);if(rn.config.direction==="horizontal")if(bn.type==="band"){const xn=bn.bandwidth(),En=hn.position.x-rn.canvas.x;hn.index=Math.round((En+xn/2)/xn)-1}else hn.index=bisectCenter(Tn,bn.scale.invert(hn.position.x));else if(rn.config.direction==="vertical")if(bn.type==="band"){const xn=bn.bandwidth(),En=hn.position.y-rn.canvas.y;hn.index=Math.round((En+xn/2)/xn)-1}else hn.index=bisectCenter(Tn,bn.scale.invert(hn.position.y))}return{axBottomEl:nn,axLeftEl:tn,chartEl:He,hideX:sn,hideY:dn,rotateX:on,onMouseMove:yn,onMouseOut:gn}}});const _hoisted_1$a$1={class:"chart",ref:"chartEl"},_hoisted_2$7$1=["width","height","viewBox"],_hoisted_3$6$1={class:"layers"},_hoisted_4$3$1={class:"axis"},_hoisted_5$3$1={class:"widgets"};function render$c(en,He,tn,nn,an,rn){const on=resolveComponent("axis");return openBlock(),createElementBlock("div",_hoisted_1$a$1,[(openBlock(),createElementBlock("svg",{width:en.size.width,height:en.size.height,viewBox:`0 0 ${en.size.width} ${en.size.height}`,onPointermove:He[0]||(He[0]=(...sn)=>en.onMouseMove&&en.onMouseMove(...sn)),onPointerleave:He[1]||(He[1]=(...sn)=>en.onMouseOut&&en.onMouseOut(...sn))},[createBaseVNode("g",_hoisted_3$6$1,[renderSlot(en.$slots,"layers")]),createBaseVNode("g",_hoisted_4$3$1,[en.hideX?createCommentVNode("v-if",!0):(openBlock(),createBlock(on,{key:0,position:"bottom",ref:"axBottomEl",rotate:en.rotateX,isPrimary:en.direction==="horizontal"},null,8,["rotate","isPrimary"])),en.hideY?createCommentVNode("v-if",!0):(openBlock(),createBlock(on,{key:1,position:"left",ref:"axLeftEl",isPrimary:en.direction==="vertical"},null,8,["isPrimary"]))])],40,_hoisted_2$7$1)),createBaseVNode("div",_hoisted_5$3$1,[renderSlot(en.$slots,"widgets")])],512)}function styleInject(en,He){He===void 0&&(He={});var tn=He.insertAt;if(!(!en||typeof document>"u")){var nn=document.head||document.getElementsByTagName("head")[0],an=document.createElement("style");an.type="text/css",tn==="top"&&nn.firstChild?nn.insertBefore(an,nn.firstChild):nn.appendChild(an),an.styleSheet?an.styleSheet.cssText=en:an.appendChild(document.createTextNode(en))}}var css_248z$1=`
95.chart {
96  position: relative;
97}
98`;styleInject(css_248z$1);script$c.render=render$c;script$c.__file="src/components/Chart/index.vue";var script$b=defineComponent({name:"Layer",props:{type:{type:String,default:"custom"},dataKeys:{type:Object,required:!0}},setup(en){const He=useChart(),tn=new Date().getTime().toString(),nn=inject("layerProps",{});return onMounted(()=>{He.addLayer({id:tn,type:en.type,dataKeys:en.dataKeys,props:nn})}),onUnmounted(()=>{He.removeLayer(tn)}),{}}});function render$b(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("g",{class:normalizeClass(`layer-${en.type}`)},[renderSlot(en.$slots,"default")],2)}script$b.render=render$b;script$b.__file="src/components/Layer/index.vue";var script$a=defineComponent({name:"AreaComponent",components:{Layer:script$b},props:{areaStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"},gap:{type:Number,default:0}},setup(en){const He=useChart(),{stacked:tn}=inject("layerProps",{stacked:!1}),{points:nn}=usePoints(en.dataKeys,{stacked:!1,type:"area"}),{bars:an}=useBars(en.dataKeys,{stacked:tn,type:"area",gap:en.gap,maxWidth:-1}),rn=ref(""),on=mn=>
98({normal:curveLinear,natural:curveNatural,step:curveStep,monotone:He.config.direction==="horizontal"?monotoneX:monotoneY})[mn],sn=()=>{console.log(nn.value);const{secondary:mn}=He.scales;return tn?area().curve(on(en.type)).x0(gn=>gn.x+gn.width/2).y0(gn=>gn.y).x1(gn=>gn.x+gn.width/2).y1(gn=>gn.y+gn.height):He.config.direction==="vertical"?area().curve(on(en.type)).y0(gn=>gn.y).y1(gn=>gn.y).x0(gn=>gn.x).x1(()=>mn.scale(0)):area().curve(on(en.type)).x0(gn=>gn.x).x1(gn=>gn.x).y0(gn=>gn.y).y1(()=>mn.scale(0))},dn=computed(()=>()=>Object.assign({fill:"blue",fillOpacity:.25,stroke:"none"},en.areaStyle)),hn=mn=>mapKeys(kebabize,mn);return watch(nn,()=>{rn.value=tn?sn()(an.value):sn()(nn.value)}),{d:rn,getStyle:dn,toKebabCase:hn}}});const _hoisted_1$9$1=["d"];function render$a(en,He,tn,nn,an,rn){const on=resolveComponent("Layer");return openBlock(),createBlock(on,{type:"area",dataKeys:en.dataKeys},{default:withCtx(()=>[createBaseVNode("path",mergeProps(en.toKebabCase(en.getStyle()),{d:en.d}),null,16,_hoisted_1$9$1)]),_:1},8,["dataKeys"])}script$a.render=render$a;script$a.__file="src/components/Area/index.vue";var script$9=defineComponent({name:"LineComponent",components:{Layer:script$b},props:{lineStyle:{type:Object,required:!1},dotStyle:{type:Object,required:!1},hideDot:{type:Boolean,default:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"}},setup(en){const{stacked:He}=inject("layerProps",{stacked:!1}),tn=useMouse(),nn=useChart(),an=ref(""),{points:rn}=usePoints(en.dataKeys,{stacked:He,type:"line"}),on={normal:curveLinear,natural:curveNatural,step:stepAfter,monotone:monotoneX};function sn(){let yn=on[en.type];en.type==="monotone"&&nn.config.direction==="vertical"&&(yn=monotoneY),an.value=line().x(fn=>fn.x).y(fn=>fn.y).curve(yn)(rn.value)}function dn(yn){const fn=en.dotStyle,bn=hn.value();return Object.assign({r:yn?5:3,stroke:bn.stroke,strokeWidth:bn.strokeWidth,fill:"white"},fn)}const hn=computed(()=>is$1(Function,en.lineStyle)?en.lineStyle:()=>Object.assign({stroke:"#8884d8",strokeWidth:2},en.lineStyle)),mn=computed(()=>is$1(Function,en.dotStyle)?en.dotStyle:({active:yn})=>dn(yn));return watch(rn,()=>sn()),watch(nn.updates,()=>sn()),{d:an,mouse:tn,points:rn,toKebabCase:yn=>mapKeys(kebabize,yn),getStyle:hn,getDotStyle:mn}}});const _hoisted_1$8$1=["d"],_hoisted_2$6$1={key:0},_hoisted_3$5$1=["cx","cy"];function render$9(en,He,tn,nn,an,rn){const on=resolveComponent("Layer");return openBlock(),createBlock(on,{dataKeys:en.dataKeys,type:"line"},{default:withCtx(()=>[createBaseVNode("path",mergeProps({class:"chart-line"},en.toKebabCase(en.getStyle()),{d:en.d,fill:"none"}),null,16,_hoisted_1$8$1),createCommentVNode(` :stroke="stroke"
99      :stroke-width="strokeWidth"
100      stroke-linejoin="round"
101      stroke-linecap="round" `),en.hideDot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("g",_hoisted_2$6$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.points,(sn,dn)=>(openBlock(),createElementBlock("circle",mergeProps(en.toKebabCase(en.getDotStyle({active:dn===en.mouse.index,index:dn})),{key:dn,cx:sn.x,cy:sn.y}),null,16,_hoisted_3$5$1))),128))]))]),_:1},8,["dataKeys"])}script$9.render=render$9;script$9.__file="src/components/Line/index.vue";var script$8=defineComponent({name:"Bar",components:{Layer:script$b},props:{selectedBar:{type:Object,default:()=>null},barStyle:{type:[Function,Object],default:()=>({fill:"blue"})},barStyleSelected:{type:[Function,Object],default:()=>({fill:"darkblue"})},maxWidth:{type:Number,default:-1},dataKeys:{type:Object,required:!0},gap:{type:Number,default:5}},setup(en,{emit:He}){const tn=useMouse(),{stacked:nn,maxWidth:an}=inject("layerProps",{stacked:!1,maxWidth:-1}),{bars:rn}=useBars(en.dataKeys,{maxWidth:Math.max(en.maxWidth,an),stacked:nn,gap:en.gap,type:"bar"}),on=computed(()=>is$1(Function,en.barStyle)?en.barStyle:()=>en.barStyle),sn=computed(()=>is$1(Function,en.barStyleSelected)?en.barStyleSelected:()=>en.barStyleSelected),dn=mn=>mapKeys(kebabize,mn);function hn(mn,gn){He("barClick",Object.assign(Object.assign({},mn),{idx:gn}))}return{getStyle:on,getStyleSelected:sn,toKebabCase:dn,bars:rn,mouse:tn,onBarClick:hn}}});const _hoisted_1$7$1={key:0},_hoisted_2$5$1=["x","y","width","height","onClick"],_hoisted_3$4$1=["x","y","width","height"];function render$8(en,He,tn,nn,an,rn){const on=resolveComponent("Layer");
101return openBlock(),createBlock(on,{dataKeys:en.dataKeys,type:"bar"},{default:withCtx(()=>[en.bars.length===0?(openBlock(),createElementBlock("text",_hoisted_1$7$1,"No Data")):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(en.bars,(sn,dn)=>(openBlock(),createElementBlock("rect",mergeProps({class:"chart-bar"},en.toKebabCase(en.getStyle({...sn.props,active:dn===en.mouse.index})),{key:dn,x:sn.x,y:sn.y,width:sn.width>0?sn.width:0,height:sn.height>0?sn.height:0,onClick:()=>en.onBarClick(sn,dn)}),null,16,_hoisted_2$5$1))),128)),en.selectedBar?(openBlock(),createElementBlock("rect",mergeProps({key:1,class:"chart-bar"},en.toKebabCase(en.getStyleSelected({...en.selectedBar.props})),{x:en.selectedBar.x,y:en.selectedBar.y,width:en.selectedBar.width>0?en.selectedBar.width:0,height:en.selectedBar.height>0?en.selectedBar.height:0}),null,16,_hoisted_3$4$1)):createCommentVNode("v-if",!0)]),_:1},8,["dataKeys"])}script$8.render=render$8;script$8.__file="src/components/Bar/index.vue";const PieSort=String;var script$7=defineComponent({name:"PieLayer",components:{Layer:script$b},props:{pieStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},sort:{type:PieSort,default:"desc",required:!1},sortFunc:{type:Function,required:!1}},setup(en){var He;const tn=useChart(),nn=useMouse(),an=ref(Math.min(tn.canvas.width-tn.canvas.x,tn.canvas.height-tn.canvas.y)/2),rn=computed(()=>()=>Object.assign({colors:["#4daf4a","#377eb8","#ff7f00","#984ea3","#e41a1c"],innerRadius:2,cornerRadius:0,padAngle:.01},en.pieStyle)),on=rn.value(),sn=ref([]),dn=ordinal(rn.value().colors),hn=()=>arc().outerRadius(an.value).innerRadius(on.innerRadius).cornerRadius(on.cornerRadius).padAngle(on.padAngle),mn=ref(`translate(${an.value+tn.canvas.x}, ${an.value+tn.canvas.y})`);let gn;
101switch(en.sort){case"desc":gn=descending$1;break;case"asc":gn=ascending$1;break;case"none":gn=null;break;case"custom":gn=(He=en.sortFunc)!==null&&He!==void 0?He:null;break;default:gn=null}function yn(){const xn=tn.getData([en.dataKeys[1]]);sn.value=pie().sort(gn)(xn)}function fn(xn){return dn(xn.toString())}function bn(xn,En){nn.hover=!0,nn.index=En;const[Rn,ni]=pointer(xn);nn.position={x:Rn+an.value,y:ni+an.value}}function Mn(){nn.hover=!1,nn.index=-1}function Tn(xn){mapKeys(kebabize,xn)}return watch(tn.updates,()=>{an.value=Math.min(tn.canvas.width-tn.canvas.x,(tn.canvas.height-tn.canvas.y)/2),mn.value=`translate(${an.value+tn.canvas.x}, ${an.value+tn.canvas.y})`,yn()}),{arcs:sn,arcGen:hn,getStyle:rn,transform:mn,getColor:fn,hideTooltip:Mn,toKebabCase:Tn,showTooltip:bn}}});const _hoisted_1$6$1={key:0},_hoisted_2$4$1=["transform"],_hoisted_3$3$1=["id","fill","d","onMousemove"];function render$7(en,He,tn,nn,an,rn){const on=resolveComponent("Layer");return openBlock(),createBlock(on,{dataKeys:en.dataKeys,type:"pie"},{default:withCtx(()=>[en.arcs.length===0?(openBlock(),createElementBlock("text",_hoisted_1$6$1,"No Data")):createCommentVNode("v-if",!0),createBaseVNode("g",{transform:en.transform},[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.arcs,(sn,dn)=>(openBlock(),createElementBlock("path",mergeProps({key:dn,id:`arc-${dn}`,class:"chart-pie"},en.toKebabCase(en.getStyle()),{fill:en.getColor(dn),d:en.arcGen()(sn),onMousemove:hn=>en.showTooltip(hn,dn),onMouseleave:He[0]||(He[0]=hn=>en.hideTooltip())}),null,16,_hoisted_3$3$1))),128))],8,_hoisted_2$4$1)]),_:1},8,["dataKeys"])}script$7.render=render$7;script$7.__file="src/components/Pie/index.vue";var script$6=defineComponent({name:"Responsive",setup(){const en=ref(null),{width:He,height:tn}=useResize(en);return{el:en,width:He,height:tn}}});const _hoisted_1$5$1={ref:"el"};function render$6(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$5$1,[renderSlot(en.$slots,"main",{width:en.width,height:en.height})],512)}script$6.render=render$6;script$6.__file="src/components/Responsive/index.vue";var script$5=defineComponent({name:"Grid",props:{strokeDasharray:{type:String,default:()=>"3 3"},hideX:{type:Boolean,default:!1},hideY:{type:Boolean,default:!1},center:{type:Boolean,default:!0}},setup(en){const He=useChart(),tn=ref([]),nn=ref(null),an=ref([]),rn=ref([]);function on(){const{primary:dn,secondary:hn}=He.scales,mn=He.config.direction==="horizontal"?hn:dn;if(mn.type==="band"&&!en.center){const gn=mn.map(He.getData(He.getKeys(0))).map(yn=>yn+mn.bandwidth()/2);gn.pop(),an.value=gn}else{const gn=mn.ticks();an.value=mn.map(gn)}}function sn(){const{primary:dn,secondary:hn}=He.scales,mn=He.config.direction==="horizontal"?dn:hn;if(mn.type==="band"&&!en.center){const gn=mn.map(He.getData(He.getKeys(0))).map(yn=>yn+mn.bandwidth()/2);gn.pop(),rn.value=gn}else{const gn=mn.ticks();rn.value=mn.map(gn)}}return watch(He.updates,()=>{tn.value=He.data,nn.value=He.canvas,on(),sn()}),{data:tn,canvas:nn,xLines:an,yLines:rn}}});const _hoisted_1$4$1=["stroke-dasharray"],_hoisted_2$3$1={key:0,class:"grid-x"},_hoisted_3$2$1=["x1","y1","x2","y2"],_hoisted_4$2$1={key:1,class:"grid-y"},_hoisted_5$2$1=["x1","y1","x2","y2"],_hoisted_6$2$1=["x1","y1","x2","y2"],_hoisted_7$b=["x1","y1","x2","y2"];function render$5(en,He,tn,nn,an,rn){return en.data.length?(openBlock(),createElementBlock("g",{key:0,class:"layer-grid",stroke:"black","stroke-opacity":"0.15","stroke-width":"1","stroke-dasharray":en.strokeDasharray},[en.hideX?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("g",_hoisted_2$3$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.xLines,(on,sn)=>(openBlock(),createElementBlock("line",{key:sn,x1:en.canvas.x,y1:on,x2:en.canvas.width,y2:on},null,8,_hoisted_3$2$1))),128))])),en.hideY?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("g",_hoisted_4$2$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.yLines,(on,sn)=>(openBlock(),createElementBlock("line",{key:sn,x1:on,y1:en.canvas.y,x2:on,y2:en.canvas.height},null,8,_hoisted_5$2$1))),128))])),createBaseVNode("g",null,[createBaseVNode("line",{x1:en.canvas.x,y1:en.canvas.y,x2:en.canvas.width,y2:en.canvas.y},null,8,_hoisted_6$2$1),createBaseVNode("line",{x1:en.canvas.width-1,y1:en.canvas.y,x2:en.canvas.width-1,y2:en.canvas.height},null,8,_hoisted_7$b)])],8,_hoisted_1$4$1)):createCommentVNode("v-if",!0)}script$5.render=render$5;script$5.__file="src/components/Grid/index.vue";var script$4=defineComponent({name:"Tooltip",components:{},props:{format:{type:String,default:",.0f"},color:{type:String,default:"#7876ec"},hideLine:{type:Boolean,default:!1},config:{type:Object,default:()=>({})}},setup(en){const He=ref(null),tn=useChart(),nn=ref(tn.canvas),an=ref(tn.config.direction),{position:rn,payload:on,show:sn}=useTooltip(),dn=computed(()=>rn.value.x>=nn.value.width/4*3),hn=computed(()=>an.value==="vertical"?{top:rn.value.y-.5+"px",left:nn.value.x+"px"}:an.value==="horizontal"?{top:nn.value.y+"px",left:rn.value.x-.5+"px"}:{top:nn.value.y+"px",left:nn.value.x+"px"}),mn=computed(()=>an.value==="vertical"?{top:"5px",left:rn.value.x-30+"px"}:an.value==="horizontal"?{top:rn.value.y+"px",transform:`translateX(${dn.value?"-100%":0})`}:{top:rn.value.y+"px",left:rn.value.x+"px"}),gn=(fn,bn)=>is$1(Function,bn)?bn(fn):is$1(Number,fn)?format(bn)(fn):fn,yn=computed(()=>Object.keys(omit$1(["idx"],on.value)).map(fn=>{const bn=Object.assign({label:fn,format:en.format,color:en.color,hide:!1},en.config[fn]);return{key:fn,label:bn.label,value:on.value[fn],valueFormatted:gn(on.value[fn],bn.format),color:is$1(Function,bn.color)?bn.color(on.value):bn.color,hide:bn.hide}}).filter(fn=>!fn.hide));return watch(tn.updates,()=>{an.value=tn.config.direction,nn.value=tn.canvas}),{el:He,show:sn,canvas:nn,direction:an,style:hn,styleContent:mn,position:rn,items:yn,isRight:dn}}});const _hoisted_1$3$1={key:0};function render$4(en,He,tn,nn,an,rn){return en.show?(openBlock(),createElementBlock("div",{key:0,class:"v-tooltip",style:normalizeStyle(en.style)},[createBaseVNode("div",{class:"v-tooltip-content",style:normalizeStyle(en.styleContent),ref:"el"},[renderSlot(en.$slots,"default",{payload:en.items},()=>[createBaseVNode("div",{style:normalizeStyle({borderColor:en.color})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.items,(on,sn)=>(openBlock(),createElementBlock("div",{key:sn,style:normalizeStyle({color:on.color})},[createBaseVNode("b",null,toDisplayString(on.label),1),createTextVNode(": "+toDisplayString(on.valueFormatted),1)],4))),128))],4)])],4),en.hideLine?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",_hoisted_1$3$1,[en.direction==="horizontal"?(openBlock(),createElementBlock("div",{key:0,class:"v-tooltip-line-vertical",style:normalizeStyle({height:en.canvas.height+"px"})},null,4)):(openBlock(),createElementBlock("div",{key:1,class:"v-tooltip-line-horizontal",style:normalizeStyle({width:en.canvas.width-40+"px"})},null,4))]))],4)):createCommentVNode("v-if",!0)}var css_248z=`
102.v-tooltip[data-v-43da20c6] {
103  position: absolute;
104  pointer-events: none;
105}
106.v-tooltip-content[data-v-43da20c6] {
107  position: absolute;
108  white-space: nowrap;
109  pointer-events: none;
110}
111.v-tooltip-content > div[data-v-43da20c6] {
112  margin-left: 5px;
113  margin-right: 5px;
114  border: 2px solid;
115  background-color: white;
116  padding: 8px;
117  text-align: left;
118  border-radius: 4px;
119  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
120}
121.v-tooltip-right[data-v-43da20c6] {
122  transform: translateX(-100%);
123  margin-left: 0;
124}
125.v-tooltip-line-vertical[data-v-43da20c6] {
126  top: 0px;
127  position: absolute;
128  width: 1px;
129  background-color: black;
130  pointer-events: none;
131  opacity: 0.3;
132}
133.v-tooltip-line-horizontal[data-v-43da20c6] {
134  left: 0px;
135  position: absolute;
136  height: 1px;
137  background-color: black;
138  pointer-events: none;
139  opacity: 0.3;
140}
141`;styleInject(css_248z);script$4.render=render$4;script$4.__scopeId="data-v-43da20c6";script$4.__file="src/components/Tooltip/index.vue";var script$3=defineComponent({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(en){provide("layerProps",en)}});function render$3(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",null,[render
141Slot(en.$slots,"default")])}script$3.render=render$3;script$3.__file="src/components/Group/index.vue";var script$2=defineComponent({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(en){const He=useChart(),tn=ref(0),nn=ref("horizontal"),an=ref({});return watch(He.updates,()=>{en.value!==void 0&&(tn.value=He.scales.secondary.scale(en.value)),an.value=He.canvas,nn.value=He.config.direction},{immediate:!0}),watch(()=>en.value,()=>{tn.value=He.scales.secondary.scale(en.value)},{immediate:!0}),{y:tn,canvas:an,direction:nn}}});const _hoisted_1$2$1={key:0,class:"layer-marker"},_hoisted_2$2$1=["x","y","fill"],_hoisted_3$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1$1={key:1,class:"layer-marker"},_hoisted_5$1$1=["x","y","fill"],_hoisted_6$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(en,He,tn,nn,an,rn){return en.direction==="horizontal"?(openBlock(),createElementBlock("g",_hoisted_1$2$1,[createBaseVNode("text",{x:en.canvas.x+5,y:en.y-5,"text-anchor":"start",fill:en.color},toDisplayString(en.label),9,_hoisted_2$2$1),createBaseVNode("line",{x1:en.canvas.x,y1:en.y,x2:en.canvas.width,y2:en.y,stroke:en.color,"stroke-opacity":en.strokeOpacity,"stroke-width":en.strokeWidth,"stroke-dasharray":en.strokeDasharray},null,8,_hoisted_3$1$1)])):(openBlock(),createElementBlock("g",_hoisted_4$1$1,[createBaseVNode("text",{x:en.y+10,y:en.canvas.y+5,"text-anchor":"start",fill:en.color,style:{"writing-mode":"tb"}},toDisplayString(en.label),9,_hoisted_5$1$1),createBaseVNode("line",{x1:en.y,y1:en.canvas.y,x2:en.y,y2:en.canvas.height,stroke:en.color,"stroke-opacity":en.strokeOpacity,"stroke-width":en.strokeWidth,"stroke-dasharray":en.strokeDasharray},null,8,_hoisted_6$1$1)]))}script$2.render=render$2;script$2.__file="src/components/Marker/index.vue";function count(en){var He=0,tn=en.children,nn=tn&&tn.length;if(!nn)He=1;else for(;--nn>=0;)He+=tn[nn].value;en.value=He}function node_count(){return this.eachAfter(count)}function node_each(en,He){let tn=-1;for(const nn of this)en.call(He,nn,++tn,this);return this}function node_eachBefore(en,He){for(var tn=this,nn=[tn],an,rn,on=-1;tn=nn.pop();)if(en.call(He,tn,++on,this),an=tn.children)for(rn=an.length-1;rn>=0;--rn)nn.push(an[rn]);return this}function node_eachAfter(en,He){for(var tn=this,nn=[tn],an=[],rn,on,sn,dn=-1;tn=nn.pop();)if(an.push(tn),rn=tn.children)for(on=0,sn=rn.length;on<sn;++on)nn.push(rn[on]);for(;tn=an.pop();)en.call(He,tn,++dn,this);return this}function node_find(en,He){let tn=-1;for(const nn of this)if(en.call(He,nn,++tn,this))return nn}function node_sum(en){return this.eachAfter(function(He){for(var tn=+en(He.data)||0,nn=He.children,an=nn&&nn.length;--an>=0;)tn+=nn[an].value;He.value=tn})}function node_sort(en){return this.eachBefore(function(He){He.children&&He.children.sort(en)})}function node_path(en){for(var He=this,tn=leastCommonAncestor(He,en),nn=[He];He!==tn;)He=He.parent,nn.push(He);for(var an=nn.length;en!==tn;)nn.splice(an,0,en),en=en.parent;return nn}function leastCommonAncestor(en,He){if(en===He)return en;var tn=en.ancestors(),nn=He.ancestors(),an=null;for(en=tn.pop(),He=nn.pop();en===He;)an=en,en=tn.pop(),He=nn.pop();return an}function node_ancestors(){for(var en=this,He=[en];en=en.parent;)He.push(en);return He}function node_descendants(){return Array.from(this)}function node_leaves(){var en=[];return this.eachBefore(function(He){He.children||en.push(He)}),en}function node_links(){var en=this,He=[];return en.each(function(tn){tn!==en&&He.push({source:tn.parent,target:tn})}),He}function*node_iterator(){var en=this,He,tn=[en],nn,an,rn;do for(He=tn.reverse(),tn=[];en=He.pop();)if(yield en,nn=en.children)for(an=0,rn=nn.length;an<rn;++an)tn.push(nn[an]);while(tn.length)}function hierarchy(en,He){en instanceof Map?(en=[void 0,en],He===void 0&&(He=mapChildren)):He===void 0&&(He=objectChildren);for(var tn=new Node$1(en),nn,an=[tn],rn,on,sn,dn;nn=an.pop();)if((on=He(nn.data))&&(dn=(on=Array.from(on)).length))for(nn.children=on,sn=dn-1;sn>=0;--sn)an.push(rn=on[sn]=new Node$1(on[sn])),rn.parent=nn,rn.depth=nn.depth+1;return tn.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(en){return en.children}function mapChildren(en){return Array.isArray(en)?en[1]:null}function copyData(en){en.data.value!==void 0&&(en.value=en.data.value),en.data=en.data.data}function computeHeight(en){var He=0;do en.height=He;while((en=en.parent)&&en.height<++He)}function Node$1(en){this.data=en,this.depth=this.height=0,this.parent=null}Node$1.prototype=hierarchy.prototype={constructor:Node$1,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};function optional(en){return en==null?null:required(en)}function required(en){if(typeof en!="function")throw new Error;return en}function constantZero(){return 0}
141function constant(en){return function(){return en}}function roundNode(en){en.x0=Math.round(en.x0),en.y0=Math.round(en.y0),en.x1=Math.round(en.x1),en.y1=Math.round(en.y1)}function treemapDice(en,He,tn,nn,an){for(var rn=en.children,on,sn=-1,dn=rn.length,hn=en.value&&(nn-He)/en.value;++sn<dn;)on=rn[sn],on.y0=tn,on.y1=an,on.x0=He,on.x1=He+=on.value*hn}var preroot={depth:-1},ambiguous={},imputed={};function defaultId(en){return en.id}function defaultParentId(en){return en.parentId}function stratify(){var en=defaultId,He=defaultParentId,tn;function nn(an){var rn=Array.from(an),on=en,sn=He,dn,hn,mn,gn,yn,fn,bn,Mn,Tn=new Map;if(tn!=null){const xn=rn.map((ni,mi)=>normalize(tn(ni,mi,an))),En=xn.map(parentof),Rn=new Set(xn).add("");for(const ni of En)Rn.has(ni)||(Rn.add(ni),xn.push(ni),En.push(parentof(ni)),rn.push(imputed));on=(ni,mi)=>xn[mi],sn=(ni,mi)=>En[mi]}for(mn=0,dn=rn.length;mn<dn;++mn)hn=rn[mn],fn=rn[mn]=new Node$1(hn),(bn=on(hn,mn,an))!=null&&(bn+="")&&(Mn=fn.id=bn,Tn.set(Mn,Tn.has(Mn)?ambiguous:fn)),(bn=sn(hn,mn,an))!=null&&(bn+="")&&(fn.parent=bn);for(mn=0;mn<dn;++mn)if(fn=rn[mn],bn=fn.parent){if(yn=Tn.get(bn),!yn)throw new Error("missing: "+bn);if(yn===ambiguous)throw new Error("ambiguous: "+bn);yn.children?yn.children.push(fn):yn.children=[fn],fn.parent=yn}else{if(gn)throw new Error("multiple roots");gn=fn}if(!gn)throw new Error("no root");if(tn!=null){for(;gn.data===imputed&&gn.children.length===1;)gn=gn.children[0],--dn;for(let xn=rn.length-1;xn>=0&&(fn=rn[xn],fn.data===imputed);--xn)fn.data=null}if(gn.parent=preroot,gn.eachBefore(function(xn){xn.depth=xn.parent.depth+1,--dn}).eachBefore(computeHeight),gn.parent=null,dn>0)throw new Error("cycle");return gn}return nn.id=function(an){return arguments.length?(en=optional(an),nn):en},nn.parentId=function(an){return arguments.length?(He=optional(an),nn):He},nn.path=function(an){return arguments.length?(tn=optional(an),nn):tn},nn}function normalize(en){en=`${en}`;let He=en.length;return slash(en,He-1)&&!slash(en,He-2)&&(en=en.slice(0,-1)),en[0]==="/"?en:`/${en}`}function parentof(en){let He=en.length;if(He<2)return"";for(;--He>1&&!slash(en,He););return en.slice(0,He)}function slash(en,He){if(en[He]==="/"){let tn=0;for(;He>0&&en[--He]==="\\";)++tn;if((tn&1)===0)return!0}return!1}function treemapSlice(en,He,tn,nn,an){for(var rn=en.children,on,sn=-1,dn=rn.length,hn=en.value&&(an-tn)/en.value;++sn<dn;)on=rn[sn],on.x0=He,on.x1=nn,on.y0=tn,on.y1=tn+=on.value*hn}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(en,He,tn,nn,an,rn){for(var on=[],sn=He.children,dn,hn,mn=0,gn=0,yn=sn.length,fn,bn,Mn=He.value,Tn,xn,En,Rn,ni,mi,bi;mn<yn;){fn=an-tn,bn=rn-nn;do Tn=sn[gn++].value;while(!Tn&&gn<yn);for(xn=En=Tn,mi=Math.max(bn/fn,fn/bn)/(Mn*en),bi=Tn*Tn*mi,ni=Math.max(En/bi,bi/xn);gn<yn;++gn){if(Tn+=hn=sn[gn].value,hn<xn&&(xn=hn),hn>En&&(En=hn),bi=Tn*Tn*mi,Rn=Math.max(En/bi,bi/xn),Rn>ni){Tn-=hn;break}ni=Rn}on.push(dn={value:Tn,dice:fn<bn,children:sn.slice(mn,gn)}),dn.dice?treemapDice(dn,tn,nn,an,Mn?nn+=bn*Tn/Mn:rn):treemapSlice(dn,tn,nn,Mn?tn+=fn*Tn/Mn:an,rn),Mn-=Tn,mn=gn}return on}var squarify=(function en(He){function tn(nn,an,rn,on,sn){squarifyRatio(He,nn,an,rn,on,sn)}return tn.ratio=function(nn){return en((nn=+nn)>1?nn:1)},tn})(phi);function treemap(){var en=squarify,He=!1,tn=1,nn=1,an=[0],rn=constantZero,on=constantZero,sn=constantZero,dn=constantZero,hn=constantZero;function mn(yn){return yn.x0=yn.y0=0,yn.x1=tn,yn.y1=nn,yn.eachBefore(gn),an=[0],He&&yn.eachBefore(roundNode),yn}function gn(yn){var fn=an[yn.depth],bn=yn.x0+fn,Mn=yn.y0+fn,Tn=yn.x1-fn,xn=yn.y1-fn;Tn<bn&&(bn=Tn=(bn+Tn)/2),xn<Mn&&(Mn=xn=(Mn+xn)/2),yn.x0=bn,yn.y0=Mn,yn.x1=Tn,yn.y1=xn,yn.children&&(fn=an[yn.depth+1]=rn(yn)/2,bn+=hn(yn)-fn,Mn+=on(yn)-fn,Tn-=sn(yn)-fn,xn-=dn(yn)-fn,Tn<bn&&(bn=Tn=(bn+Tn)/2),xn<Mn&&(Mn=xn=(Mn+xn)/2),en(yn,bn,Mn,Tn,xn))}return mn.round=function(yn){return arguments.length?(He=!!yn,mn):He},mn.size=function(yn){return arguments.length?(tn=+yn[0],nn=+yn[1],mn):[tn,nn]},mn.tile=function(yn){return arguments.length?(en=required(yn),mn):en},mn.padding=function(yn){return arguments.length?mn.paddingInner(yn).paddingOuter(yn):mn.paddingInner()},mn.paddingInner=function(yn){return arguments.length?(rn=typeof yn=="function"?yn:constant(+yn),mn):rn},mn.paddingOuter=function(yn){return arguments.length?mn.paddingTop(yn).paddingRight(yn).paddingBottom(yn).paddingLeft(yn):mn.paddingTop()},mn.paddingTop=function(yn){return arguments.length?(on=typeof yn=="function"?yn:constant(+yn),mn):on},mn.paddingRight=function(yn){return arguments.length?(sn=typeof yn=="function"?yn:constant(+yn),mn):sn},mn.paddingBottom=function(yn){return arguments.length?(dn=typeof yn=="function"?yn:constant(+yn),mn):dn},mn.paddingLeft=function(yn){return arguments.length?(hn=typeof yn=="function"?yn:constant(+yn),mn):hn},mn}
141var script$1=defineComponent({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(en){const He=ref(null),tn=ref(en.data),nn=ref(null),an=ref({x:en.margin.left,y:en.margin.top,width:en.size.width-en.margin.right,height:en.size.height-en.margin.bottom}),rn=ref([]);function on(){const fn=extent(tn.value.map(Tn=>Tn[en.dataKeys[1]])),bn=linear().domain(fn).range([0,100]).nice(),Mn=sequential().domain(fn).interpolator(en.colorFn());return{x:bn,y:Mn}}function sn(){const{y:fn}=on();return dn(tn.value).leaves().map((Mn,Tn)=>({idx:Tn,x0:an.value.x+Mn.x0,x1:an.value.x+Mn.x1,y0:an.value.y+Mn.y0,y1:an.value.y+Mn.y1,width:Mn.x1-Mn.x0,height:Mn.y1-Mn.y0,data:Mn.data,color:fn(Mn.value)}))}function dn(fn){const{x:bn}=on(),Mn=treemap().size([an.value.width-an.value.x,an.value.height-an.value.y]).padding(en.padding),xn=stratify().id(En=>En.name).parentId(En=>En.parent)([{name:"root"}].concat(fn.map(En=>({name:En[en.dataKeys[0]],value:En[en.dataKeys[1]],parent:"root"}))));return xn.sum(En=>bn(En.value)),Mn(xn),xn}const hn=fn=>mapKeys(kebabize,fn),mn=fn=>{const bn={stroke:fn.color,strokeWidth:5,fill:fn.color,fillOpacity:.9};return en.rcStyle&&typeof en.rcStyle=="function"?Object.assign(Object.assign({},bn),en.rcStyle(fn)):bn};function gn(fn){nn.value=fn}function yn(){nn.value=null}return watch(en,()=>{tn.value=en.data,an.value={x:en.margin.left,y:en.margin.top,width:en.size.width-en.margin.right,height:en.size.height-en.margin.bottom},rn.value=sn()},{immediate:!0}),{el:He,rectangles:rn,selected:nn,getStyle:mn,toKebabCase:hn,onMouseOver:gn,onMouseOut:yn}}});const _hoisted_1$1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1$1=["width","height","viewBox"],_hoisted_3$l={class:"layer-rectangles"},_hoisted_4$g=["transform","onMouseover"],_hoisted_5$e=["width","height"],_hoisted_6$b={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$1$1,[(openBlock(),createElementBlock("svg",{width:en.size.width,height:en.size.height,viewBox:`0 0 ${en.size.width} ${en.size.height}`,ref:"el"},[createBaseVNode("g",_hoisted_3$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.rectangles,(on,sn)=>(openBlock(),createElementBlock("g",{class:normalizeClass(["rectangle",{selected:en.selected===sn}]),key:sn,transform:`translate(${on.x0}, ${on.y0})`,onMouseover:()=>en.onMouseOver(sn),onMouseleave:He[0]||(He[0]=(...dn)=>en.onMouseOut&&en.onMouseOut(...dn))},[renderSlot(en.$slots,"default",{r:on,selected:en.selected===sn},()=>[createBaseVNode("rect",mergeProps(en.toKebabCase(en.getStyle(on)),{x:0,y:0,width:on.width,height:on.height}),null,16,_hoisted_5$e),renderSlot(en.$slots,"text",{r:on,selected:en.selected===sn},()=>[createBaseVNode("text",_hoisted_6$b,toDisplayString(on.data.name),1)])])],42,_hoisted_4$g))),128))])],8,_hoisted_2$1$1)),renderSlot(en.$slots,"widgets")])}script$1.render=render$1;script$1.__file="src/components/Treemap/index.vue";var script=defineComponent({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const en=useChart(),He=useMouse(),tn=ref({x:0,y:0,width:0,height:0}),nn=ref("horizontal"),an=ref({x:0,y:0,width:0,height:0});return watch(en.updates,()=>{an.value=en.canvas,nn.value=en.config.direction},{immediate:!0}),watch(He,()=>{if(en.bandScale){const rn=en.getData(en.getKeys(0)),[on]=en.bandScale.map([rn[He.index]]),sn=en.bandScale.bandwidth();on&&(en.config.direction==="horizontal"?tn.value={x:on-sn/2,y:0,width:sn,height:an.value.height}:tn.value={x:40,y:on-sn/2,width:an.value.width-40,height:sn})}}),{bar:tn,canvas:an,direction:nn,mouse:He}}});const _hoisted_1$o={key:0,class:"layer-hover-bar"},_hoisted_2$l=["x","y","width","height"];function render(en,He,tn,nn,an,rn){return en.mouse.hover?(openBlock(),createElementBlock("g",_hoisted_1$o,[createBaseVNode("rect",mergeProps({class:"hover-bar"},en.barStyle,{x:en.bar.x,y:en.bar.y,width:en.bar.width>0?en.bar.width:0,height:en.bar.height>0?en.bar.height:0}),null,16,_hoisted_2$l)])):createCommentVNode("v-if",!0)}script.render=render;script.__file="src/components/HoverBar/index.vue";const _sfc_main$n=defineComponent({name:"RouteHeightmapPoi",props:{track:{type:Number,required:!1,default:0},position:{type:Number,required:!1,default:0},poi:{type:Object,required:!0},trackwidth:{type:Number,required:!0},strokeWidth:{type:Number,required:!1,default:3},dotSize:{type:Number,required:!1,default:8}},data(){return{y:0,spacing:16,trackSize:30,trackSpacing:5,numberOfTracks:3}},computed:{...mapState("tris",["poiData"]),...mapGetters("tris",{fetchPoi:"poi"}),type(){return this.getPoiData()?.type},url(){const en=this.getPoiData();return en?.url?this.$store.getters["context/multilingualUrl"](en.url):"#"},iconClasses(){const en=["fas"];switch(this.type){case"poi":en.push("star");break;
141case"reca":en.push("utensils");break;case"accommodation":en.push("bed");break;case"meeting_room":en.push("building");break;case"event":en.push("calendar-alt");break;case"route":en.push("map-signs");break;default:en.push("map-marker-alt");break}return en},x(){return Math.max(0,this.position)*this.trackwidth+this.dotSize/2+this.strokeWidth}},beforeMount(){const en=Math.min(this.numberOfTracks-1,Math.max(0,this.track));this.y=(this.trackSize+this.trackSpacing)*(this.numberOfTracks-1)-(this.trackSize+this.trackSpacing)*en},methods:{getPoiData(){if(!this.poi)return;const en=this.poi.winId;if(this.poiData[en])return this.poiData[en]},showPoiPopup(en){const He=en.target.parentElement,tn=[this.poi.id,He.getBoundingClientRect()];this.$emit("showRouteHeightmapPoi",tn)}}}),_hoisted_1$n=["viewbox","x","y"],_hoisted_2$k=["href"],_hoisted_3$k=["cx","cy","r"],_hoisted_4$f=["x1","y1","x2","y2"];function _sfc_render$n(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewbox:"0 0 "+en.trackSize+" "+en.trackSize,x:en.x,y:en.y},[createBaseVNode("a",{href:en.url,class:"poi",tabindex:"-1",onClick:He[0]||(He[0]=withModifiers((...sn)=>en.showPoiPopup&&en.showPoiPopup(...sn),["prevent"]))},[createBaseVNode("circle",{class:"poi-background-circle",cx:en.trackSize/2,cy:en.trackSize/2,r:en.trackSize/2},null,8,_hoisted_3$k),createBaseVNode("line",{class:"poi-background-line",x1:en.trackSize/2,y1:en.trackSize,x2:en.trackSize/2,y2:en.trackSize+200-en.y},null,8,_hoisted_4$f),createVNode(on,{style:{"pointer-events":"none"},icon:en.iconClasses,width:en.trackSize-en.spacing,height:en.trackSize-en.spacing,x:en.spacing/2,y:en.spacing/2},null,8,["icon","width","height","x","y"])],8,_hoisted_2$k)],8,_hoisted_1$n)}const RouteHeightmapPoi=_export_sfc(_sfc_main$n,[["render",_sfc_render$n],["__scopeId","data-v-48a398d0"]]),_sfc_main$m=defineComponent({name:"RouteHeightmapPois",components:{RouteHeightmapPoi},props:{poiIds:{type:Array,required:!0},strokeWidth:{type:Number,required:!1,default:3},dotSize:{type:Number,required:!1,default:8}},data(){return{width:0}},mounted(){this.updateWidth()},updated(){this.updateWidth()},computed:{...mapState("tris",["poiData"]),...mapGetters("tris",{fetchPoi:"poi",poiVariant:"poiVariant"}),pois(){const en=[];for(const nn of this.poiIds){const an=this.fetchPoi(nn),rn=this.poiVariant(an.id);rn&&en.push({id:an.id,position:rn.fractionAlongRoute,data:an})}let He=0;const tn=36;for(const nn in en){const an=Number(nn),rn=en[an],on=en[an+1];on&&(He=(on.position-rn.position)*this.width<tn?He+1:0,en[an+1].track=He%3)}return en.reverse()}},methods:{showRouteHeightmapPoi(en){this.$emit("showRouteHeightmapPoi",en)},updateWidth(){this.width=document.querySelector(".layer-area").getBoundingClientRect().width}}}),_hoisted_1$m={key:0,class:"layer-pois"};function _sfc_render$m(en,He,tn,nn,an,rn){const on=resolveComponent("RouteHeightmapPoi");return en.poiIds&&en.width>0?(openBlock(),createElementBlock("g",_hoisted_1$m,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.pois,(sn,dn)=>(openBlock(),createBlock(on,{key:dn,poi:sn.data,track:sn.track,position:sn.position,trackwidth:en.width,"stroke-width":en.strokeWidth,"dot-size":en.dotSize,onShowRouteHeightmapPoi:en.showRouteHeightmapPoi},null,8,["poi","track","position","trackwidth","stroke-width","dot-size","onShowRouteHeightmapPoi"]))),128))])):createCommentVNode("",!0)}const RouteHeightmapPois=_export_sfc(_sfc_main$m,[["render",_sfc_render$m]]),_sfc_main$l=defineComponent({name:"RouteHeightmapPoiHighlight",props:{uuid:{type:String,required:!0},position:{type:Object,required:!1,default:()=>({x:0,y:0})}},data(){return{poi:null,width:600,height:205}},mounted(){this.poi=this.fetchPoi(this.uuid)},computed:{...mapState("tris",["poiData"]),...mapState("context",["site","locale"]),...mapGetters("tris",{fetchPoi:"poi"}),highlightStyle(){const en=this.$refs.wrapper.getBoundingClientRect(),He=this.position.x-en.x+this.position.width/2,tn=this.position.height-this.height;let nn=0;switch(!0){case He<this.width/2:nn=0;break;case He>en.width-this.width/2:nn=en.width-this.width;break;default:nn=He-this.width/2;break}return"bottom:"+tn+"px;left:"+nn+"px;width:"+this.width+"px;"},pointerStyle(){const en=this.$refs.wrapper.getBoundingClientRect(),He=(this.position.width-20)/2,tn=this.position.left-en.left+He,nn=this.position.height-(this.height+10);return"left:"+tn+"px;bottom:"+nn+"px;"},name(){let en="";if(this.poi){const He=this.poi.winId;this.poiData[He]&&(en=this.poiData[He]?.name)}return en},description(){let en="";if(this.poi){const He=this.poi.winId;this.poiData[He]&&(en=this.poiData[He]?.description)}return en},url(){let en="#";if(this.poi){const He=this.poi.winId;if(this.poiData[He]){const tn=this.poiData[He]?.url;en=this.$store.getters["context/multilingualUrl"](tn)??"#"}}return en},productType(){let en=null;if(this.poi){const He=this.poi.winId;this.poiData[He]&&(en=this.poiData[He]?.productType)}return en},locality(){let en=null;if(this.poi){const He=this.poi.winId;this.poiData[He]&&(en=this.poiData[He]?.locality)}return en}},methods:{closeHighlight(){this.poi=null}}}),_hoisted_1$l={ref:"wrapper",class:"wrapper"},_hoisted_2$j=["href"],_hoisted_3$j={class:"highlight__title"},_hoisted_4$e={key:0,class:"highlight__type_locality"},_hoisted_5$d={class:"highlight__description"};function _sfc_render$l(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$l,[en.poi?(openBlock(),createElementBlock("a",{key:0,href:"#",class:"highlight__background",tabindex:"-1",onClick:He[0]||(He[0]=withModifiers((...on)=>en.closeHighlight&&en.closeHighlight(...on),["prevent"]))})):createCommentVNode("",!0),en.poi?(openBlock(),createElementBlock("div",{key:1,class:"highlight",style:normalizeStyle(en.highlightStyle)},[createBaseVNode("a",{href:"#",class:"highlight__close",onClick:He[1]||(He[1]=withModifiers((...on)=>en.closeHighlight&&en.closeHighlight(...on),["prevent"]))}," × "),createBaseVNode("a",{href:en.url,class:"highlight__link"},[createBaseVNode("h3",_hoisted_3$j,toDisplayString(en.name),1),en.productType||en.locality?(openBlock(),createElementBlock("div",_hoisted_4$e,[en.productType&&en.locality?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(en.$t("{type} in {locality}",{type:en.productType,locality:en.locality})),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(en.productType)+toDisplayString(en.locality),1)],64))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$d,toDisplayString(en.description),1)],8,_hoisted_2$j)],4)):createCommentVNode("",!0),en.poi?(openBlock(),createElementBlock("div",{key:2,class:"highlight__pointer",style:normalizeStyle(en.pointerStyle)}
141,null,4)):createCommentVNode("",!0)],512)}const RouteHeightmapPoiHighlight=_export_sfc(_sfc_main$l,[["render",_sfc_render$l],["__scopeId","data-v-b6b38224"]]),_sfc_main$k=defineComponent({name:"RouteHeightmap",components:{RouteHeightmapPoiHighlight,Tooltip:script$4,Chart:script$c,Area:script$a,Line:script$9,RouteHeightmapPois},props:{elevationProfile:{type:Array,required:!0},profileLength:{type:Number,required:!0},poiIds:{type:Array,required:!1}},setup(){return{margin:ref({left:0,top:120,right:0,bottom:0})}},data(){return{containerWidth:0,dotSize:8,strokeWidth:3,highlightUuid:null,highlightPosition:{x:0,y:0},highlightTime:0}},computed:{...mapGetters("tris",{fetchPoi:"poi"}),heightmap(){const en=[],He=this.elevationProfile.length-1;return this.elevationProfile.entries().forEach(({0:tn,1:nn})=>{en.push({height:nn,distance:tn>0?this.profileLength/He*tn:0,incline:0})}),en.entries().forEach(({0:tn,1:nn})=>{const an=tn+1,rn=en[an];if(rn){const on=(rn.distance-nn.distance)*1e3,sn=rn.height-nn.height;nn.incline=Math.round(sn/on*1e3)/10}}),en},axis(){const en=isProxy(this.elevationProfile)?toRaw(this.elevationProfile):this.elevationProfile;if(en.length<1)return{primary:{},secondary:{}};const He=5,tn=5,nn=Math.min(...en),an=Math.max(...en),rn=Math.ceil(this.profileLength/He),on=[...Array(rn).keys()].map(hn=>hn*He),sn=Math.ceil(an/tn),dn=[...Array(sn).keys()].map(hn=>hn*tn);return{primary:{type:"linear",tickValues:on,domain:[0,rn*He]},secondary:{type:"linear",tickValues:dn,domain:[Math.floor(nn/tn)*tn,sn*tn]}}}},mounted(){window.addEventListener("resize",()=>{this.containerWidth=document.querySelector(".heightmap").offsetWidth}),this.containerWidth=document.querySelector(".heightmap").offsetWidth},methods:{showRouteHeightmapPoi(en){this.highlightTime=new Date().getTime();const{0:He,1:tn}=en;this.highlightUuid=He,this.highlightPosition=tn}}}),_hoisted_1$k={class:"heightmap","aria-hidden":"true",tabindex:"-1"};function _sfc_render$k(en,He,tn,nn,an,rn){const on=resolveComponent("RouteHeightmapPoiHighlight"),sn=resolveComponent("RouteHeightmapPois"),dn=resolveComponent("Area"),hn=resolveComponent("Line"),mn=resolveComponent("Tooltip"),gn=resolveComponent("Chart");return openBlock(),createElementBlock("div",_hoisted_1$k,[en.highlightUuid?(openBlock(),createBlock(on,{key:en.highlightTime,uuid:en.highlightUuid,position:en.highlightPosition},null,8,["uuid","position"])):createCommentVNode("",!0),createVNode(gn,{size:{width:en.containerWidth,height:250},data:en.heightmap,margin:en.margin,direction:"horizontal",axis:en.axis},{layers:withCtx(()=>[en.poiIds&&en.poiIds.length>0?(openBlock(),createBlock(sn,{key:0,"poi-ids":en.poiIds,"stroke-width":en.strokeWidth,"dot-size":en.dotSize,onShowRouteHeightmapPoi:en.showRouteHeightmapPoi},null,8,["poi-ids","stroke-width","dot-size","onShowRouteHeightmapPoi"])):createCommentVNode("",!0),createVNode(dn,{type:"natural","data-keys":["distance","height"],"area-style":{fill:"url(#grad)",fillOpacity:1}}),createVNode(hn,{"data-keys":["distance","height"],"line-style":{strokeWidth:en.strokeWidth},"dot-style":function(yn){return{r:yn.active?en.dotSize:0,stroke:"#ef5643",strokeWidth:en.strokeWidth,fill:"#152841"}},type:"natural"},null,8,["line-style","dot-style"]),He[0]||(He[0]=createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:"grad",gradientTransform:"rotate(90)"},[createBaseVNode("stop",{"stop-color":"white"})])],-1))]),widgets:withCtx(()=>[createVNode(mn,{"hide-line":!0,format:yn=>Math.round(yn*100)/100,config:{name:{hide:!0},height:{label:"↑"},distance:{label:"↔"},incline:{label:"↗"}}},null,8,["format"])]),_:1},8,["size","data","margin","axis"])])}const RouteHeightmap=_export_sfc(_sfc_main$k,[["render",_sfc_render$k]]),_sfc_main$j={name:"StartingPointSelector",data(){return{collapsed:!0}},computed:{...mapState("tris",["clockwise","route"]),...mapGetters("tris",["startingPoints","selectedStartingPoint","otherStartingPoints","twoWay","node"]),startingNode2(){if(this.selectedStartingPoint.points[0]&&this.selectedStartingPoint.points[0].knoop)return this.node(this.selectedStartingPoint.points[0].knoop)},startingPointsWithParking(){return this.startingPoints.filter(en=>this.startingPointHasParking(en))}},methods:{...mapActions("tris",["selectPoint","setClockWise"]),selectStartingPoint(en){this.selectPoint({code:en}),this.collapsed=!0},startingNode(en){if(en.points[0]&&en.points[0].knoop)return this.node(en.points[0].knoop)},startingPointHasParking(en){const[{knoop:He}]=en.points;return this.node(He).parkingSpot}}},_hoisted_1$j={class:"starting-points"},_hoisted_2$i={class:"starting-points__title"},_hoisted_3$i={class:"starting-points__title-amount"},_hoisted_4$d={class:"starting-points__locality"},_hoisted_5$c={key:0,class:"starting-points__description"},_hoisted_6$a={key:0,class:"starting-points__info-icon starting-points__node"},_hoisted_7$a={key:1,class:"starting-points__info-icon"},_hoisted_8$8={key:1,class:"starting-points__selector"},_hoisted_9$7=["onClick"],_hoisted_10$7={class:"starting-points__locality"}
141,_hoisted_11$7={key:0,class:"starting-points__description"},_hoisted_12$5={key:0,class:"starting-points__info-icon starting-points__node"},_hoisted_13$4={key:1,class:"starting-points__info-icon"},_hoisted_14$3={key:2,class:"starting-points__senses"};function _sfc_render$j(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$j,[createBaseVNode("h3",_hoisted_2$i,[createTextVNode(toDisplayString(rn.startingPointsWithParking.length>1?en.$t("Choose your starting place"):en.$t("Starting place"))+" ",1),createBaseVNode("span",_hoisted_3$i," ("+toDisplayString(rn.startingPointsWithParking.length)+" "+toDisplayString(rn.startingPointsWithParking.length===1?en.$t("place"):en.$t("places"))+") ",1)]),en.selectedStartingPoint?(openBlock(),createElementBlock("a",{key:0,href:"#",class:"starting-points__point starting-points__point--selected",onClick:He[0]||(He[0]=withModifiers(sn=>an.collapsed=!an.collapsed,["prevent"]))},[createBaseVNode("div",_hoisted_4$d,toDisplayString(en.selectedStartingPoint.locality),1),en.selectedStartingPoint.description?(openBlock(),createElementBlock("div",_hoisted_5$c,[createTextVNode(toDisplayString(en.selectedStartingPoint.description)+" ",1),en.route.networkBased&&rn.startingNode(en.selectedStartingPoint)?(openBlock(),createElementBlock("span",_hoisted_6$a,toDisplayString(rn.startingNode(en.selectedStartingPoint).name),1)):createCommentVNode("",!0),rn.startingPointHasParking(en.selectedStartingPoint)?(openBlock(),createElementBlock("span",_hoisted_7$a,[createVNode(on,{icon:["fas","square-parking"]})])):createCommentVNode("",!0)])):createCommentVNode("",!0),en.otherStartingPoints.length&&!an.collapsed?(openBlock(),createBlock(on,{key:1,icon:["fas","chevron-up"],class:"starting-points__arrow"})):en.otherStartingPoints.length&&an.collapsed?(openBlock(),createBlock(on,{key:2,icon:["fas","chevron-down"],class:"starting-points__arrow"})):createCommentVNode("",!0)])):createCommentVNode("",!0),en.otherStartingPoints.length?withDirectives((openBlock(),createElementBlock("div",_hoisted_8$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(en.otherStartingPoints,sn=>(openBlock(),createElementBlock("a",{key:sn.code,href:"#",class:"starting-points__point",onClick:withModifiers(dn=>rn.selectStartingPoint(sn.code),["prevent"])},[createBaseVNode("div",_hoisted_10$7,toDisplayString(sn.locality),1),sn.description?(openBlock(),createElementBlock("div",_hoisted_11$7,[createTextVNode(toDisplayString(sn.description)+" ",1),en.route.networkBased&&rn.startingNode(sn)?(openBlock(),createElementBlock("span",_hoisted_12$5,toDisplayString(rn.startingNode(sn).name),1)):createCommentVNode("",!0),rn.startingPointHasParking(sn)?(openBlock(),createElementBlock("span",_hoisted_13$4,[createVNode(on,{icon:["fas","square-parking"]})])):createCommentVNode("",!0)])):createCommentVNode("",!0)],8,_hoisted_9$7))),128))],512)),[[vShow,!an.collapsed]]):createCommentVNode("",!0),en.twoWay?(openBlock(),createElementBlock("div",_hoisted_14$3,[createBaseVNode("a",{href:"#",class:normalizeClass(["starting-points__sense",{"starting-points__sense--selected":en.clockwise}]),onClick:He[1]||(He[1]=withModifiers(sn=>en.setClockWise(!0),["prevent"]))},toDisplayString(en.$t("Clockwise")),3),He[3]||(He[3]=createBaseVNode("div",{class:"starting-points__senses-separator","aria-hidden":"true"}," | ",-1)),createBaseVNode("a",{href:"#",class:normalizeClass(["starting-points__sense",{"starting-points__sense--selected":!en.clockwise}]),onClick:He[2]||(He[2]=withModifiers(sn=>en.setClockWise(!1),["prevent"]))},toDisplayString(en.$t("Counter clockwise")),3)])):createCommentVNode("",!0)])}const StartingPointSelector=_export_sfc(_sfc_main$j,[["render",_sfc_render$j],["__scopeId","data-v-51c4f2b0"]]),_sfc_main$i={name:"RouteNodes",props:{ids:{type:Array,required:!0}},computed:{...mapState("context",["locale"]),...mapState("tris",["route"]),...mapGetters("tris",["node"]),nodes(){const en=[];return this.ids.forEach(He=>{const tn=this.node(He);tn&&en.push(tn)}),en}}},_hoisted_1$i={class:"pre-route-items"},_hoisted_2$h={class:"route-item__icon-wrapper"},_hoisted_3$h={class:"route-item__icon route-item__icon--first"},_hoisted_4$c={class:"route-item__heading"},_hoisted_5$b={class:"route-item__label"},_hoisted_6$9={class:"route-items"},_hoisted_7$9={class:"route-item__node"},_hoisted_8$7={class:"route-item__icon-wrapper"},_hoisted_9$6={class:"route-item__icon route-item__icon--last"},_hoisted_10$6={class:"route-item__heading"},_hoisted_11$6={class:"route-item__label"};function _sfc_render$i(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",{class:normalizeClass(["route-item route-item--nodes",{"route-item--bike":en.route&&en.route.mobility==="BIKE","route-item--foot":en.route&&en.route.mobility==="FOOT"}])},[createBaseVNode("div",_hoisted_1$i,[createBaseVNode("div",_hoisted_2$h,[createBaseVNode("div",_hoisted_3$h,[createVNode(on,{icon:["fas","flag"]})]),createBaseVNode("div",_hoisted_4$c,[createBaseVNode("div",_hoisted_5$b,toDisplayString(en.$t("Start")),1)])])]),createBaseVNode("div",_hoisted_6$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.nodes,(sn,dn)=>(openBlock(),createElementBlock("div",{key:dn,class:"route-item__node-wrapper"},[createVNode(on,{icon:["fas","chevron-right"],class:"route-item__node-icon"}),createBaseVNode("div",_hoisted_7$9,toDisplayString(sn.name),1)]))),128)),createBaseVNode("div",_hoisted_8$7,[createVNode(on,{icon:["fas","chevron-right"],class:"route-item__node-icon"}),createBaseVNode("div",_hoisted_9$6,[createVNode(on,{icon:["fas","flag"]})]),createBaseVNode("div",_hoisted_10$6,[createBaseVNode("div",_hoisted_11$6,toDisplayString(en.$t("Stop")),1)])])])],2)}const RouteNodes=_export_sfc(_sfc_main$i,[["render",_sfc_render$i],["__scopeId","data-v-2c3fdb1f"]]),_sfc_main$h={props:{name:{type:String,required:!0},description:{type:String,required:!1},url:{type:String,required:!0},type:{type:String,default:"primary"},icon:{type:Array,default:null},target:{type:String,default:"_self"}}},_hoisted_1$h=["href","target","title"],_hoisted_2$g={class:"button--content"},_hoisted_3$g={class:"button--description"},_hoisted_4$b={class:"button--icon"};function _sfc_render$h(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("a",{href:tn.url,class:normalizeClass(["button","button--"+tn.type]),target:tn.target,title:tn.name},[createBaseVNode("div",_hoisted_2$g,[createTextVNode(toDisplayString(tn.name)+" ",1),createBaseVNode("span",_hoisted_3$g,toDisplayString(tn.description),1)]),createBaseVNode("div",_hoisted_4$b,[tn.icon?(openBlock(),createBlock(on,{key:0,icon:tn.icon},null,8,["icon"])):createCommentVNode("",!0)])],10,_hoisted_1$h)}const CtaButtonComponent=_export_sfc(_sfc_main$h,[["render",_sfc_render$h],["__scopeId","data-v-04c318c4"]]),_sfc_main$g={name:"RoutePoi",props:{id:{type:String,required:!0},focusable:{type:Boolean,required:!1}},computed:{...mapState("tris",["poiData"]),...mapState("context",["site","locale"]),...mapGetters("tris",{fetchPoi:"poi"}),...mapGetters("product",["productByWinId"]),tabindex(){return this.focusable?"0":"-1"},poi(){return this.fetchPoi(this.id)},image(){const en=this.productByWinId(this.poi.winId);if(!(!en||!en.teaserImageUrl))return en.teaserImageUrl}
141,url(){const en=this.productByWinId(this.poi.winId);return!en||!en.canonicalUrl?"#":en.canonicalUrl},type(){const en=this.productByWinId(this.poi.winId);return!en||!en.nodeType?"no node type":en.nodeType},productType(){const en=this.productByWinId(this.poi.winId);return!en||!en.type?"":en.type},locality(){const en=this.productByWinId(this.poi.winId);return!en||!en.city?"":en.city},description(){const en=this.productByWinId(this.poi.winId);if(!en||!en.winDescription)return"";const He=en.winDescription;let tn=He.slice(0,180);return He.length>180&&(tn+="..."),tn},title(){const en=this.productByWinId(this.poi.winId);return!en||!en.title?"":en.title},hasProduct(){return this.productByWinId(this.poi.winId)!==void 0}},mounted:function(){this.fetchProduct()},methods:{...mapActions("product",["fetchProductByWinId"]),fetchProduct(){this.poi&&this.fetchProductByWinId(this.poi.winId)}}},_hoisted_1$g={class:"route-item route-item--poi"},_hoisted_2$f=["href","tabindex"],_hoisted_3$f={class:"route-item__icon"},_hoisted_4$a={class:"poi__top"},_hoisted_5$a=["src"],_hoisted_6$8={class:"poi__bottom"},_hoisted_7$8={class:"poi__title"},_hoisted_8$6={key:0,class:"poi__info"},_hoisted_9$5={key:1,class:"poi__info"},_hoisted_10$5={key:2,class:"poi__info"},_hoisted_11$5=["innerHTML"];function _sfc_render$g(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$g,[rn.poi?(openBlock(),createElementBlock("a",{key:0,href:rn.url,class:"poi",tabindex:rn.tabindex},[createBaseVNode("div",_hoisted_3$f,[rn.type==="poi"?(openBlock(),createBlock(on,{key:0,icon:["fas","star"]})):rn.type==="reca"?(openBlock(),createBlock(on,{key:1,icon:["fas","utensils"]})):rn.type==="accommodation"?(openBlock(),createBlock(on,{key:2,icon:["fas","bed"]})):rn.type==="meeting_room"?(openBlock(),createBlock(on,{key:3,icon:["fas","building"]})):rn.type==="event"?(openBlock(),createBlock(on,{key:4,icon:["fas","calendar-alt"]})):rn.type==="route"?(openBlock(),createBlock(on,{key:5,icon:["fas","map-signs"]})):(openBlock(),createBlock(on,{key:6,icon:["fas","map-marker-alt"]}))]),createBaseVNode("div",_hoisted_4$a,[rn.image?(openBlock(),createElementBlock("img",{key:0,src:rn.image,alt:"",class:"poi__image"},null,8,_hoisted_5$a)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_6$8,[createBaseVNode("h3",_hoisted_7$8,toDisplayString(rn.title),1),rn.productType&&rn.locality?(openBlock(),createElementBlock("p",_hoisted_8$6,toDisplayString(rn.productType)+" "+toDisplayString(en.$t("in"))+" "+toDisplayString(rn.locality),1)):rn.locality?(openBlock(),createElementBlock("p",_hoisted_9$5,toDisplayString(en.$t("in"))+" "+toDisplayString(rn.locality),1)):rn.productType?(openBlock(),createElementBlock("p",_hoisted_10$5,toDisplayString(rn.productType),1)):createCommentVNode("",!0),He[0]||(He[0]=createBaseVNode("div",{class:"poi__line","aria-hidden":"true"},null,-1)),rn.hasProduct?(openBlock(),createElementBlock("p",{key:3,class:"poi__description",innerHTML:rn.description},null,8,_hoisted_11$5)):createCommentVNode("",!0)])],8,_hoisted_2$f)):createCommentVNode("",!0)])}const RoutePoi=_export_sfc(_sfc_main$g,[["render",_sfc_render$g],["__scopeId","data-v-f28044aa"]]),_sfc_main$f={name:"RoutePois",components:{RoutePoi},props:{ids:{type:Array,required:!0},routeType:{type:String,required:!0}},data(){return{currentSlide:0,offset:0,windowWidth:window.innerWidth}},computed:{itemsCount(){return this.ids.length},itemsToShow(){return this.windowWidth>=1024?3:this.windowWidth>=768?2:1},pageCount(){return this.itemsCount-this.itemsToShow+1},showNavigationPrevious(){return this.currentSlide>0},showNavigationNext(){return this.currentSlide+1<this.pageCount},showPagination(){return this.pageCount>1},cardStyling(){return{width:100/this.itemsToShow+"%"}},trackStyling(){return{transform:"translateX("+this.offset+"px)",transition:"all 500ms ease 0s"}}},mounted(){window.addEventListener("resize",this.handleResize)},beforeUnmount(){window.removeEventListener("resize",this.handleResize)},methods:{next(){this.moveTo(this.currentSlide+1)},previous(){this.moveTo(this.currentSlide-1)},calculateOffset(){this.offset=-this.$refs["card-"+this.currentSlide][0].offsetLeft},moveTo(en){this.currentSlide=en,this.calculateOffset()},isActive(en){return en==this.currentSlide},handleResize(){this.windowWidth=window.innerWidth;let en=this.currentSlide;this.currentSlide>=this.itemsCount-this.itemsToShow&&(en=this.itemsCount-this.itemsToShow),this.moveTo(en)},isVisible(en){const He=this.currentSlide,tn=this.currentSlide+this.itemsToShow-1;return He<=en&&en<=tn}}},_hoisted_1$f={class:"route-pois"},_hoisted_2$e={class:"route-pois__title"},_hoisted_3$e={class:"route-pois__title__icon"},_hoisted_4$9={class:"carousel"},_hoisted_5$9={class:"carousel__grid"},_hoisted_6$7={key:0,class:"carousel__navigation carousel__navigation--previous"},_hoisted_7$7=["title","aria-label"],_hoisted_8$5={class:"carousel__viewport"},_hoisted_9$4={key:1,class:"carousel__navigation carousel__navigation--next"},_hoisted_10$4=["title","aria-label"],_hoisted_11$4=["aria-label"],_hoisted_12$4=["aria-label","onClick"];function _sfc_render$f(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("route-poi");return openBlock(),createElementBlock("div",_hoisted_1$f,[createBaseVNode("div",_hoisted_2$e,[createBaseVNode("div",_hoisted_3$e,[tn.routeType==="BIKE"?(openBlock(),createBlock(on,{key:0,icon:["fas","bicycle"]})):tn.routeType==="FOOT"?(openBlock(),createBlock(on,{key:1,icon:["fas","person-walking"]})):createCommentVNode("",!0)]),createBaseVNode("h2",null,toDisplayString(en.$t("Along your route")),1)]),createBaseVNode("div",_hoisted_4$9,[createBaseVNode("div",_hoisted_5$9,[rn.showNavigationPrevious?(openBlock(),createElementBlock("div",_hoisted_6$7,[createBaseVNode("a",{class:"carousel__navigation__button",title:en.$t("Previous"),role:"button","aria-label":en.$t("Previous"),onClick:He[0]||(He[0]=withModifiers((...dn)=>rn.previous&&rn.previous(...dn),["prevent"]))},[createVNode(on,{icon:["fas","chevron-left"]})],8,_hoisted_7$7)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_8$5,[createBaseVNode("div",{class:"carousel__track",style:normalizeStyle(rn.trackStyling)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(tn.ids,(dn,hn)=>(openBlock(),createElementBlock("div",{key:hn,ref_for:!0,ref:"card-"
141+hn,style:normalizeStyle(rn.cardStyling),class:"carousel__card"},[createVNode(sn,{id:dn,focusable:rn.isVisible(hn)},null,8,["id","focusable"])],4))),128))],4)]),rn.showNavigationNext?(openBlock(),createElementBlock("div",_hoisted_9$4,[createBaseVNode("a",{class:"carousel__navigation__button",title:en.$t("Next"),role:"button","aria-label":en.$t("Next"),onClick:He[1]||(He[1]=withModifiers((...dn)=>rn.next&&rn.next(...dn),["prevent"]))},[createVNode(on,{icon:["fas","chevron-right"]})],8,_hoisted_10$4)])):createCommentVNode("",!0)]),rn.showPagination?(openBlock(),createElementBlock("div",{key:0,"aria-label":en.$t("Slide controls"),class:"carousel__pagination"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.pageCount,dn=>(openBlock(),createElementBlock("button",{key:dn,"aria-label":en.$t("Show slide {index} of {pageCount}",{index:dn,pageCount:rn.pageCount}),class:normalizeClass(["carousel__pagination-button",rn.isActive(dn-1)?"carousel__pagination-button--active":""]),onClick:withModifiers(hn=>rn.moveTo(dn-1),["prevent"])},null,10,_hoisted_12$4))),128))],8,_hoisted_11$4)):createCommentVNode("",!0)])])}const RoutePois=_export_sfc(_sfc_main$f,[["render",_sfc_render$f],["__scopeId","data-v-153220e2"]]),_sfc_main$e={name:"RouteUnavailablePopup",data(){return{popupIsVisible:!0}},methods:{closePopup(){this.popupIsVisible=!1}}},_hoisted_1$e={key:0,class:"popup"},_hoisted_2$d={class:"popup__body"},_hoisted_3$d={class:"popup__content"},_hoisted_4$8={class:"popup__text-wrapper"},_hoisted_5$8={class:"popup__title"},_hoisted_6$6={class:"popup__text"},_hoisted_7$6=["href"];function _sfc_render$e(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",null,[an.popupIsVisible?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",_hoisted_2$d,[createBaseVNode("a",{href:"#",class:"popup__close",onClick:He[0]||(He[0]=withModifiers((...on)=>rn.closePopup&&rn.closePopup(...on),["prevent"]))}," × "),createBaseVNode("div",_hoisted_3$d,[He[1]||(He[1]=createBaseVNode("div",{class:"popup__image-wrapper"},[createBaseVNode("img",{class:"popup__image",src:"/images/sorry.png",alt:"Sorry!"})],-1)),createBaseVNode("div",_hoisted_4$8,[createBaseVNode("div",_hoisted_5$8,toDisplayString(en.$t("We are working on the cycling network of West Flanders")),1),createBaseVNode("p",_hoisted_6$6,toDisplayString(en.$t("Between October 2025 and April 2026, Westtoer will carry out works on the cycling network in West Flanders. This means that cycling along the junctions and signposted routes of Westtoer will be temporarily impossible.")),1),createBaseVNode("a",{href:en.$t("https://www.visitwestvlaanderen.be/en/visitwestvlaanderen-node/biking/upgrades-west-flanders-cycling-network"),class:"popup__cta",target:"_blank"},toDisplayString(en.$t("More info")),9,_hoisted_7$6)])])])])):createCommentVNode("",!0)])}const RouteUnavailablePopup=_export_sfc(_sfc_main$e,[["render",_sfc_render$e],["__scopeId","data-v-0cf7d0c5"]]),_sfc_main$d={name:"Route",components:{Ins
141piration,Recommended,RoutePois,CtaButtonComponent,RouteNodes,RouteHeightmap,StartingPointSelector,DirectionsType,RoutePhotoGrid,ProductHero,RouteUnavailablePopup,LMap:io,LTileLayer:vo,LMarker:uo,LPopup:yo,LIcon:so,MarkupRenderer:_sfc_main$X},data(){return{mapObject:void 0,gpxObject:void 0,locationLayers:[],windowWidth:window.innerWidth,zoomIsSet:!1,routeUnavailablePopupEnabled:!1}},computed:{...mapState("context",["site","mainContent","locale"]),...mapState("tris",["route","clockwise","selectedVariantCode"]),...mapGetters("tris",["twoWay","distance","directionsType","products","gpxFile","routeItems","markers","node","localities","elevationProfile"]),images(){if(!this.routeNode)return[];const en=[];return this.routeNode.image.length>0&&en.push(this.routeNode.image),this.routeNode.images.length>0&&en.push(...this.routeNode.images),en},items(){const en=[];let He=[];return this.routeItems.forEach(tn=>{tn.type==="knoop"?this.node(tn.id).forwardDescription[this.locale]?(He.length>0&&(en.push({type:"nodes",ids:He}),He=[]),en.push({type:"nodes",ids:[tn.id]})):He.push(tn.id):(He.length>0&&(en.push({type:"nodes",ids:He}),He=[]),en.push({type:"poi",id:tn.id}))}),He.length>0&&en.push({type:"nodes",ids:He}),en},routeNodes(){const en=[];return this.routeItems.forEach(He=>{He.type==="knoop"&&en.push(He.id)}),en},routePois(){const en=[];return this.routeItems.forEach(He=>{He.type==="poi"&&en.push(He.id)}),en},routeNode(){return this.$store.getters["product/product"](this.mainContent.uuid)},tileAttribution(){return'&copy; <a href="https://www.openstreetmap.org">OpenStreetMap</a> contributors, Tiles generated by <a href="https://www.champs-libres.coop" target="_blank">Champs-Libres</a>'},getRoutePdfUrl(){let en="/get-route-pdf/"+this.routeNode.trisId+"/"+this.locale+"?clockwise="+this.clockwise;return this.selectedVariantCode&&(en+="&variant=",en+=this.selectedVariantCode),en},largeWindow(){return this.windowWidth>=1024},showRouteUnavailablePopup(){return this.routeUnavailablePopupEnabled&&this.route?.mobility==="BIKE"&&this.site.machine_name!=="beaufort_beeldenpark"}},watch:{gpxFile:function(en,He){this.applyGpxFile()}},mounted(){this.fetchRoute(this.mainContent.uuid).then(tn=>this.fetchTrisRoute(tn.trisId)),window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth});const en=new Date().getTime(),He=Math.round(en/(5*1e3));axios.get("/api/westtoer/exposed-global-settings/routes-unavailable-popup?cachebuster="+He).then(tn=>{tn.data.enable_routes_unavailable_popup&&(this.routeUnavailablePopupEnabled=!0)})},methods:{...mapActions("product",["fetchRoute"]),...mapActions("tris",{fetchTrisRoute:"fetchRoute",selectPoint:"selectPoint"}),setMap(){this.mapObject=this.$refs.map,this.applyGpxFile();const en=this.markers.map(He=>He.coordinates);navigator.permissions.query({name:"geolocation"}).then(He=>{He.state!=="granted"&&this.mapObject.leafletObject.fitBounds(en)}),this.trackUserLocation(en)},applyGpxFile(){this.mapObject&&(this.gpxObject&&this.gpxObject.remove(),this.gpxObject=new L$1.GPX(this.gpxFile,{async:!0,polyline_options:{color:"#a31637"},marker_options:{startIconUrl:startIcon,endIconUrl:endIcon,shadowUrl:"",shadowSize:[0,0],wptIconUrls:{"":waypointIcon}},gpx_options:{joinTrackSegments:!1}}),this.gpxObject.addTo(this.mapObject.leafletObject))},trackUserLocation(en){if(!this.mapObject)return;const He=this.mapObject.leafletObject;He.locate({watch:!0,maximumAge:2e3,enableHighAccuracy:!0}),He.on("locationfound",tn=>{this.zoomIsSet||(this.zoomIsSet=!0,en.push([tn.latlng.lat,tn.latlng.lng]),this.mapObject.leafletObject.fitBounds(en)),this.locationLayers.length&&(this.locationLayers.forEach(nn=>nn.remove()),this.locationLayers=[]),this.locationLayers.push(L$1.circleMarker(tn.latlng,{weight:5,radius:3})),this.locationLayers.push(L$1.circle(tn.latlng,tn.accuracy,{stroke:!1,opacity:.15})),this.locationLayers.forEach(nn=>nn.addTo(He))})},draggableMap(){return!L$1.Browser.mobile},parseDistanceAsNumber(en){return parseFloat(en.replace(",","."))}}},_hoisted_1$d={key:0,class:"route__info-teaser"},_hoisted_2$c={class:"route__distance-wrapper"},_hoisted_3$c={class:"route__distance"},_hoisted_4$7={class:"route__main-content"},_hoisted_5$7={key:0,class:"route__tris-description wysiwyg"},_hoisted_6$5={class:"route__tris-description__title"},_hoisted_7$5=["innerHTML"],_hoisted_8$4={class:"route__info"},_hoisted_9$3={key:0,class:"route__main-content-markup"},_hoisted_10$3={class:"route__heightmap"},_hoisted_11$3={class:"route__details"},_hoisted_12$3={id:"route-on-map",class:"route__map"},_hoisted_13$3={key:1,class:"route__marker-icon route__marker-icon--node"},_hoisted_14$2=["href","title"],_hoisted_15$2=["src"],_hoisted_16$2={class:"route__marker-content"},_hoisted_17$2={key:0,class:"route__marker-title"},_hoisted_18$2={key:1,class:"route__marker-info"},_hoisted_19$2={else:""},_hoisted_20$2={key:2,class:"route__marker-description wysiwyg"},_hoisted_21$2={key:0,class:"route__cta-links"},_hoisted_22$2={class:"route__items"};function _sfc_render$d(en,He,tn,nn,an,rn){const on=resolveComponent("directions-type"),sn=resolveComponent("product-hero"),dn=resolveComponent("route-photo-grid"),hn=resolveComponent("markup-renderer"),mn=resolveComponent("route-heightmap"),gn=resolveComponent("starting-point-selector"),yn=resolveComponent("l-tile-layer"),fn=resolveComponent("font-awesome-icon"),bn=resolveComponent("l-icon"),Mn=resolveComponent("l-popup"),Tn=resolveComponent("l-marker"),xn=resolveComponent("l-map"),En=resolveComponent("cta-button-component"),Rn=resolveComponent("route-nodes"),ni=resolveComponent("route-pois"),mi=resolveComponent("recommended"),bi=resolveComponent("inspiration"),_i=resolveComponent("route-unavailable-popup");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{class:normalizeClass(["route",{"route--bike":en.route&&en.route.mobility==="BIKE","route--foot":en.route&&en.route.mobility==="FOOT","route--network":en.route&&en.route.networkBased}])},[createVNode(sn,{title:en.mainContent.title,type:rn.routeNode?rn.routeNode.type:void 0,locations:en.localities,"is-route":!0},{default:withCtx(()=>[en.route?(openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",_hoisted_2$c,[createBaseVNode("div",_hoisted_3$c,toDisplayString(en.distance),1),He[0]||(He[0]=createBaseVNode("div",{class:"route__distance-units"},"km",-1))]),en.route&&en.route.signSvg?(openBlock(),createBlock(on,{key:0})):createCommentVNode("",!0)])):createCommentVNode("",!0)]),_:1},8,["title","type","locations"]),rn.images.length>0?(openBlock(),createBlock(dn,{key:0,images:rn.images,class:"route__photo-grid"},null,8,["images"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$7,[rn.routeNode&&rn.routeNode.trisDescription&&!rn.routeNode.hideTrisDescription?(openBlock(),createElementBlock("div",_hoisted_5$7,[createBaseVNode("h2",_hoisted_6$5,toDisplayString(en.$t("Route description")),1),createBaseVNode("p",{innerHTML:rn.routeNode.trisDescription},null,8,_hoisted_7$5)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_8$4,[en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_9$3,[createVNode(hn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_10$3,[en.elevationProfile?withDirectives((openBlock(),createBlock(mn,{key:0,"elevation-profile":en.elevationProfile,"profile-length":rn.parseDistanceAsNumber(en.distance),"poi-ids":rn.routePois},null,8,["elevation-profile","profile-length","poi-ids"])),[[vShow,rn.largeWindow]]):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_11$3,[createVNode(gn),createBaseVNode("div",_hoisted_12$3,[en.markers.length>0?(openBlock(),createBlock(xn,{key:0,ref:"map","use-global-leaflet":!0,options:{dragging:rn.draggableMap(),scrollWheelZoom:!1,touchZoom:!0,preferCanvas:!0},onReady:rn.setMap},{default:withCtx(()=>[createVNode(yn,{url:"https://tile.openstreetmap.be/osmbe/{z}/{x}/{y}.png",attribution:rn.tileAttribution,"max-zoom":"18"},null,8,["attribution"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(en.markers,(oi,si)=>(openBlock(),createBlock(Tn,{key:si,"lat-lng":oi.coordinates,options:{title:oi.name??oi.node}},{default:withCtx(()=>[oi.node||oi.start?(openBlock(),createBlock(bn,{key:0,"icon-size":[21,28],"icon-anchor":[10,28]},{default:withCtx(()=>[oi.start&&oi.parkingSpot?(openBlock(),createBlock(fn,{key:0,class:"route__marker-icon route__marker-icon--typed route__marker-icon--start",icon:["fa","flag"]})):rn.routeNode.loop&&oi.start&&oi.parkingSpot||oi.nodeIsNumeric?(openBlock(),createElementBlock("div",_hoisted_13$3,toDisplayString(oi.node),1)):createCommentVNode("",!0)]),_:2},1024)):oi.type?(openBlock(),createBlock(bn,{key:1,"icon-size":[5,7],"icon-anchor":[2,7]},{default:withCtx(()=>[oi.type==="poi"?(openBlock(),createBlock(fn,{key:0,class:"route__marker-icon route__marker-icon--typed",icon:["fas","star"]})):oi.type==="reca"?(openBlock(),createBlock(fn,{key:1,class:"route__marker-icon route__marker-icon--typed",icon:["fas","utensils"]})):oi.type==="accommodation"?(openBlock(),createBlock(fn,{key:2,class:"route__marker-icon route__marker-icon--typed",icon:["fas","bed"]})):oi.type==="meeting_room"?(openBlock(),createBlock(fn,{key:3,class:"route__marker-icon route__marker-icon--typed",icon:["fas","building"]})):oi.type==="event"?(openBlock(),createBlock(fn,{key:4,class:"route__marker-icon route__marker-icon--typed",icon:["fas","calendar-alt"]})):oi.type==="route"?(openBlock(),createBlock(fn,{key:5,class:"route__marker-icon route__marker-icon--typed",icon:["fas","map-signs"]})):(openBlock(),createBlock(fn,{key:6,class:"route__marker-icon route__marker-icon--typed",icon:["fas","map-marker-alt"]}))]),_:2},1024)):(openBlock(),createBlock(bn,{key:2,"icon-size":[21,28],"icon-anchor":[10,28]},{default:withCtx(()=>[createVNode(fn,{class:"route__marker-icon",icon:["fas","map-marker-alt"]})]),_:1})),oi.description||oi.name?(openBlock(),createBlock(Mn,{key:3},{default:withCtx(()=>[createBaseVNode("a",{href:oi.url,title:oi.name,class:"route__marker-teaser"},[oi.image?(openBlock(),createElementBlock("img",{key:0,src:oi.image,alt:"",class:"route__marker-image",loading:"lazy"},null,8,_hoisted_15$2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_16$2,[oi.name?(openBlock(),createElementBlock("h3",_hoisted_17$2,toDisplayString(oi.name),1)):createCommentVNode("",!0),oi.productType||oi.locality?(openBlock(),createElementBlock("div",_hoisted_18$2,[oi.productType&&oi.locality?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(en.$t("{type} in {locality}",{type:oi.productType,locality:oi.locality})),1)],64)):createCommentVNode("",!0),createBaseVNode("template",_hoisted_19$2,[createTextVNode(toDisplayString(oi.productType)+toDisplayString(oi.locality),1)])])):oi.description?(openBlock(),createElementBlock("div",_hoisted_20$2,toDisplayString(oi.description),1)):createCommentVNode("",!0)])],8,_hoisted_14$2)]),_:2},1024)):createCommentVNode("",!0)]),_:2},1032,["lat-lng","options"]))),128))]),_:1},8,["options","onReady"])):createCommentVNode("",!0)]),en.route?(openBlock(),createElementBlock("div",_hoisted_21$2,[en.route.pdfs.length>0?(openBlock(),createBlock(En,{key:0,name:en.$t("Printable map (.PDF)"),description:en.$t("Download the route map"),url:en.route.pdfs[0],icon:["fas","download"],type:"secondary",class:"route__cta-link route__cta-link--download",target:"_blank"},null,8,["name","description","url"])):createCommentVNode("",!0),en.route.pdfs.length>1?(openBlock(),createBlock(En,{key:1,name:en.$t("Accessibility information"),description:en.$t("Download the accessibility information"),url:en.route.pdfs[1],icon:["fas","download"],type:"secondary",class:"route__cta-link route__cta-link--download",target:"_blank"},null,8,["name","description","url"])):createCommentVNode("",!0),createVNode(En,{name:en.$t("GPS file (.GPX)"),description:en.$t("Pick your starting position and download the GPS file"),url:en.gpxFile??"#",icon:["fas","download"],type:"secondary",class:"route__cta-link route__cta-link--download-gpx",target:"_blank"},null,8,["name","description","url"]),en.route.networkBased?(openBlock(),createBlock(En,{key:2,name:en.$t("Junction strip (.PDF)"),description:en.$t("Print and hang from your handlebars"),url:rn.getRoutePdfUrl,icon:["fas","download"],type:"secondary",class:"route__cta-link route__cta-link--download",target:"_blank"},null,8,["name","description","url"])):createCommentVNode("",!0),en.products.length>0?(openBlock(),createBlock(En,{key:3,name:en.$t("Buy route map"),description:en.$t("Hit the road with a printed map"),url:en.products[0].url,icon:["fas","shopping-basket"],type:"primary",class:"route__cta-link route__cta-link--order",target:"_blank"},null,8,["name","description","url"])):createCommentVNode("",!0)])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_22$2,[rn.routeNodes&&rn.routeNodes.length>0&&en.route&&en.route.networkBased?withDirectives((openBlock(),createBlock(Rn,{key:0,ids:rn.routeNodes},null,8,["ids"])),[[vShow,rn.largeWindow]]):createCommentVNode("",!0),rn.routePois&&rn.routePois.length>0?(openBlock(),createBlock(ni,{key:1,ids:rn.routePois,"route-type":en.route.mobility},null,8,["ids","route-type"])):createCommentVNode("",!0)]),createVNode(mi),createVNode(bi)],2),rn.showRouteUnavailablePopup?(openBlock(),createBlock(_i,{key:0})):createCommentVNode("",!0)],64)}const Route=_export_sfc(_sfc_main$d,[["render",_sfc_render$d],["__scopeId","data-v-338ab543"]]),_sfc_main$c={name:"MinMaxFilter",props:{field:{type:String,required:!0},name:{type:String,required:!0}},computed:{min:{get(){const en=this.$store.getters["overview/filter"](this.field);if(en)return en.value.min},set(en){this.setFilterValue({field:this.field,value:{min:en,max:this.max}})}},max:{get(){const en=this.$store.getters["overview/filter"](this.field);if(en)return en.value.max},set(en){this.setFilterValue({field:this.field,value:{min:this.min,max:en}})}}},created(){const en={type:"min-max",field:this.field,name:this.name,value:{min:void 0,max:void 0}}
141,He=new URLSearchParams(window.location.search),tn=JSON.parse(He.get(this.field));tn&&(en.value=tn),this.addFilter(en)},methods:{...mapActions("overview",["addFilter","setFilterValue"])}},_hoisted_1$c={class:"min-max-filter"},_hoisted_2$b={for:"min"},_hoisted_3$b={for:"max"};function _sfc_render$c(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$c,[createBaseVNode("label",_hoisted_2$b,toDisplayString(en.$t("Between")),1),withDirectives(createBaseVNode("input",{"onUpdate:modelValue":He[0]||(He[0]=on=>rn.min=on),type:"number",name:"min",class:"min-max-filter__input min-max-filter__input-min"},null,512),[[vModelText,rn.min]]),createBaseVNode("label",_hoisted_3$b,toDisplayString(en.$t("and")),1),withDirectives(createBaseVNode("input",{"onUpdate:modelValue":He[1]||(He[1]=on=>rn.max=on),type:"number",name:"max",class:"min-max-filter__input min-max-filter__input-max"},null,512),[[vModelText,rn.max]])])}const MinMaxFilter=_export_sfc(_sfc_main$c,[["render",_sfc_render$c],["__scopeId","data-v-311fcc95"]]),_sfc_main$b={name:"DateFilter",props:{field:{type:String,required:!0},endField:{type:String,required:!0},name:{type:String,required:!0}},computed:{filter(){return this.$store.getters["overview/filter"](this.field)},start:{get(){if(this.filter)return this.filter.value.start},set(en){this.setFilterValue({field:this.field,value:{start:en===""?void 0:en,end:this.end}})}},end:{get(){if(this.filter)return this.filter.value.end},set(en){this.setFilterValue({field:this.field,value:{start:this.start,end:en===""?void 0:en}})}}},created(){const en={type:"date-filter",field:this.field,name:this.name,endField:this.endField,value:{start:void 0,end:void 0}},He=new URLSearchParams(window.location.search),tn=JSON.parse(He.get(this.field));tn&&(en.value=tn),this.addFilter(en)},methods:{...mapActions("overview",["addFilter"]),setFilterValue(en){const He=new Date().setFullYear(new Date().getFullYear()-1),tn=new Date(en.value.start).getTime(),nn=new Date(en.value.end).getTime();(isNaN(tn)||tn>He)&&(isNaN(nn)||nn>He)&&this.$store.dispatch("overview/setFilterValue",en)}}},_hoisted_1$b={class:"date-filter"},_hoisted_2$a={for:"start"},_hoisted_3$a={for:"end"};function _sfc_render$b(en,He,tn,nn,an,rn){return openBlock(),createElementBlock("div",_hoisted_1$b,[createBaseVNode("label",_hoisted_2$a,toDisplayString(en.$t("Between")),1),withDirectives(createBaseVNode("input",{ref:"startRef","onUpdate:modelValue":He[0]||(He[0]=on=>rn.start=on),type:"date",name:"start",class:"date-filter__input date-filter__input-start",onFocus:He[1]||(He[1]=on=>en.$refs.startRef.showPicker())},null,544),[[vModelText,rn.start]]),createBaseVNode("label",_hoisted_3$a,toDisplayString(en.$t("and")),1),withDirectives(createBaseVNode("input",{ref:"endRef","onUpdate:modelValue":He[2]||(He[2]=on=>rn.end=on),type:"date",name:"end",class:"date-filter__input date-filter__input-end",onFocus:He[3]||(He[3]=on=>en.$refs.endRef.showPicker())},null,544),[[vModelText,rn.end]])])}const DateFilter=_export_sfc(_sfc_main$b,[["render",_sfc_render$b],["__scopeId","data-v-d788fdb4"]]),_sfc_main$a={name:"LocationFilter",components:{ButtonComponent},props:{field:{type:String,required:!0},name:{type:String,required:!0}},data(){return{query:"",locationMessage:"",currentLocationMessage:"",processing:!1,debounce:null,suggestions:[]}},created(){const en={type:"location",field:this.field,name:this.name};this.addFilter(en);const tn=new URLSearchParams(window.location.search).get(this.field);tn&&(tn==="current_location"?this.useCurrentLocation():this.setLocation(tn))},methods:{...mapActions("overview",["addFilter","setFilterValue"]),setLocation(en){this.locationMessage=this.$t("Fetching location..."),axios.get(`/fetch-city/${en}`).then(He=>{const tn=He.data;if(tn.length===0)throw new Error("City not found");this.setFilterValue({field:this.field,value:{query:en,coordinates:{lat:parseFloat(tn.lat),lon:parseFloat(tn.lon),textual:en}}}),this.locationMessage="",this.query="",this.$parent.closeOverviewFilter()}).catch(()=>{this.locationMessage=this.$t("Location not found")})},searchLocations(en){clearTimeout(this.debounce),this.debounce=setTimeout(()=>{axios.get(`/fetch-autocomplete-cities/${en.target.value}`).then(He=>{this.suggestions=He.data})},600)},selectSuggestion(en){this.setLocation(en),this.suggestions=[]},useCurrentLocation(){this.message=this.$t("Fetching current location..."),navigator.geolocation&&navigator.geolocation.getCurrentPosition(en=>{this.setFilterValue({field:this.field,value:{query:"current_location",coordinates:{lat:en.coords.latitude,lon:en.coords.longitude}}}),this.query="",this.$parent.closeOverviewFilter()},en=>{this.currentLocationMessage=this.$t("Could not determine current location")})}}},_hoisted_1$a={class:"location-filter"},_hoisted_2$9={key:0},_hoisted_3$9={class:"location-filter__spacer"},_hoisted_4$6=["placeholder"],_hoisted_5$6={key:1,class:"location-filter__suggestions"},_hoisted_6$4=["onClick"],_hoisted_7$4={key:2};function _sfc_render$a(en,He,tn,nn,an,rn){const on=resolveComponent("button-component");return openBlock(),createElementBlock("div",_hoisted_1$a,[createVNode(on,{name:en.$t("Current location"),icon:["fas","location-arrow"],url:"#",class:"location-filter__current-location",type:"primary",onClick:withModifiers(rn.useCurrentLocation,["prevent"])},null,8,["name","onClick"]),an.currentLocationMessage?(openBlock(),createElementBlock("span",_hoisted_2$9,toDisplayString(an.currentLocationMessage),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_3$9,toDisplayString(en.$t("or")),1),withDirectives(createBaseVNode("input",{"onUpdate:modelValue":He[0]||(He[0]=sn=>an.query=sn),type:"text",class:"location-filter__query",placeholder:en.$t("Location e.g. Brugge"),onKeyup:He[1]||(He[1]=withKeys(sn=>rn.setLocation(an.query),["enter"])),onInput:He[2]||(He[2]=(...sn)=>rn.searchLocations&&rn.searchLocations(...sn))},null,40,_hoisted_4$6),[[vModelText,an.query]]),an.suggestions.length>0?(openBlock(),createElementBlock("ul",_hoisted_5$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(an.suggestions,sn=>(openBlock(),createElementBlock("li",{key:sn,class:"location-filter__suggestion",onClick:dn=>rn.selectSuggestion(sn)},[createBaseVNode("a",{href:"#",onClick:He[3]||(He[3]=withModifiers(()=>{},["prevent"]))},toDisplayString(sn),1)],8,_hoisted_6$4))),128))])):createCommentVNode("",!0),an.locationMessage?(openBlock(),createElementBlock("span",_hoisted_7$4,toDisplayString(an.locationMessage),1)):createCommentVNode("",!0),createVNode(on,{name:en.$t("Search"),url:"#",class:"location-filter__submit",type:"primary",onClick:He[4]||(He[4]=withModifiers(sn=>rn.setLocation(an.query),["prevent"]))},null,8,["name"])])}const LocationFilter=_export_sfc(_sfc_main$a,[["render",_sfc_render$a],["__scopeId","data-v-eeb5edaf"]]),_sfc_main$9={name:"BinaryFilter",props:{field:{type:String,required:!0},name:{type:String,required:!0}},computed:{filter(){return this.$store.getters["overview/filter"](this.field)}
141,value(){if(this.filter)return this.filter.value},trueCount(){return this.filter?this.filter.trueCount:0},falseCount(){return this.filter?this.filter.falseCount:0}},created(){const en={type:"binary",field:this.field,name:this.name,trueCount:0,falseCount:0,value:void 0},He=new URLSearchParams(window.location.search),tn=JSON.parse(He.get(this.field));typeof tn=="boolean"&&(en.value=tn),this.addFilter(en)},methods:{...mapActions("overview",["addFilter","setFilterValue"]),toggleValue(en){this.setFilterValue({field:this.field,value:this.value===en?void 0:en})}}},_hoisted_1$9={class:"binary-filter"},_hoisted_2$8=["title"],_hoisted_3$8={class:"binary-filter__option-value"},_hoisted_4$5=["title"],_hoisted_5$5={class:"binary-filter__option-value"};function _sfc_render$9(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return openBlock(),createElementBlock("div",_hoisted_1$9,[withDirectives(createBaseVNode("a",{href:"#",class:"binary-filter__option binary-filter__option--true",title:en.$t("Yes")+" ("+rn.trueCount+")",onClick:He[0]||(He[0]=withModifiers(sn=>rn.toggleValue(!0),["prevent"]))},[rn.value===!0?(openBlock(),createBlock(on,{key:0,icon:["far","check-square"],class:"binary-filter__option-icon binary-filter__option-icon--active"})):(openBlock(),createBlock(on,{key:1,icon:["far","square"],class:"binary-filter__option-icon"})),createBaseVNode("span",_hoisted_3$8,toDisplayString(en.$t("Yes"))+" ("+toDisplayString(rn.trueCount)+")",1)],8,_hoisted_2$8),[[vShow,rn.trueCount>0]]),withDirectives(createBaseVNode("a",{href:"#",class:"binary-filter__option binary-filter__option--false",title:en.$t("No")+" ("+rn.falseCount+")",onClick:He[1]||(He[1]=withModifiers(sn=>rn.toggleValue(!1),["prevent"]))},[rn.value===!1?(openBlock(),createBlock(on,{key:0,icon:["far","check-square"],class:"binary-filter__option-icon binary-filter__option-icon--active"})):(openBlock(),createBlock(on,{key:1,icon:["far","square"],class:"binary-filter__option-icon"})),createBaseVNode("span",_hoisted_5$5,toDisplayString(en.$t("No"))+" ("+toDisplayString(rn.falseCount)+")",1)],8,_hoisted_4$5),[[vShow,rn.falseCount>0]])])}const BinaryFilter=_export_sfc(_sfc_main$9,[["render",_sfc_render$9],["__scopeId","data-v-2f449c72"]]);globalThis.L=L$4;const _sfc_main$8={name:"OverviewPage",components:{ButtonComponent,BinaryFilter,LocationFilter,AppliedFilters,TermsFilter,OverviewFilter,DateFilter,MinMaxFilter,CampaignBadge,LMap:io,LTileLayer:vo,LMarkerClusterGroup:Y$1,LCircleMarker:Yt$1,LPopup:yo,FavoritesToggle},data(){return{mapObject:void 0,mapMinZoom:8,mapMaxZoom:18,showExtraFilters:!1,searchUsingMap:!1,pageSize:20,openedProductTeasers:[],showList:!0,currentPage:0}},computed:{...mapState("context",["mainContent"]),...mapState("overview",["bounds"]),...mapGetters("overview",{getFilter:"filter",locationFiltered:"locationFiltered",resultingContentTypes:"resultingContentTypes"}),products(){return this.$store.getters["overview/productSelection"]()},pagedProducts(){return this.$store.getters["overview/productSelection"]().slice(this.currentPage*this.pageSize,this.currentPage*this.pageSize+this.pageSize)},extraFilters(){return this.$store.getters["overview/extraFilters"]()},pages(){return Math.ceil(this.products.length/this.pageSize)},visiblePages(){const en=[];for(let He=Math.max(1,this.currentPage-1);He<Math.min(this.pages-1,this.currentPage+2);He++)en.push(He);return en},markerColor(){const[en,He,tn]=getComputedStyle(document.body).getPropertyValue("--primary").replaceAll(" ","").split(",").map(nn=>nn*1);return"#"+[en,He,tn].map(nn=>{const an=nn.toString(16);return an.length===1?"0"+an:an}).join("")},tileAttribution(){return'&copy; <a href="https://www.openstreetmap.org">OpenStreetMap</a> contributors, Tiles generated by <a href="https://www.champs-libres.coop" target="_blank">Champs-Libres</a>'}},watch:{products:function(en,He){if(this.setCurrentPage(),!this.mapObject||this.bounds)return;const tn=en.flatMap(an=>!an.latitude||!an.longitude?[]:[[parseFloat(an.latitude),parseFloat(an.longitude)]]),nn=[];switch(tn.forEach(an=>{nn.find(on=>on[0]===an[0]&&on[1]===an[1])||nn.push(an)}),nn.length){case 0:break;case 1:this.mapObject.leafletObject.panTo(nn[0]);break;default:this.mapObject.leafletObject.fitBounds(nn)}},currentPage:function(){this.$refs.overviewList.scrollTo(0,0);let He=this.$refs.overviewTabs;He.offsetParent||(He=this.$refs.overviewContent);const{top:tn}=He.getBoundingClientRect();window.scrollTo(0,tn+window.scrollY)}},mounted(){this.fetchOverviewPage(this.mainContent.uuid)},methods:{...mapActions("overview",["fetchOverviewPage","setBounds","resetFilters"]),setCurrentPage(){const en=new URLSearchParams(window.location.search);this.currentPage=en.get("page")?parseInt(en.get("page"))-1:0},setMap(){this.mapObject=this.$refs.map}
141,showMap(){this.showList=!1,this.mapObject.leafletObject.invalidateSize()},handleMapPan(){let en;if(this.searchUsingMap){const He=this.mapObject.leafletObject.getBounds();en={topRight:{lat:He._northEast.lat,lon:He._northEast.lng},bottomLeft:{lat:He._southWest.lat,lon:He._southWest.lng}}}this.bounds!=en&&this.setBounds(en)},toggleExtraFilters(){this.showExtraFilters=!this.showExtraFilters},resetToggleExtraFilters(){this.toggleExtraFilters(),this.resetFilters()},toggleMapSearch(){this.searchUsingMap=!this.searchUsingMap,this.handleMapPan()},dateForTimestamp(en){const He=new Date(en*1e3);return He.getDate()+"/"+(He.getMonth()+1)+"/"+He.getFullYear()},markerObject(en){const He=this.$refs["marker-"+en];return He&&He[0]?He[0].leafletObject:void 0},showMarker(en){const He=this.markerObject(en);if(!He)return;const tn=this.mapObject?.leafletObject,nn=He.getPopup();if(!tn||!nn||tn.hasLayer(He)){He.openPopup();return}const rn=this.$refs.markerCluster?.leafletObject?.getVisibleParent(He)??He;tn.openPopup(nn,rn.getLatLng())},hideMarker(en){const He=this.markerObject(en);if(!He)return;const tn=this.mapObject?.leafletObject,nn=He.getPopup();if(tn&&nn){tn.closePopup(nn);return}He.closePopup()},toggleMarker(en){const He=this.openedProductTeasers.indexOf(en.id);He>-1?this.openedProductTeasers.splice(He,1):this.openedProductTeasers.push(en.id)},clusterRadiusForZoom(en){let He=60;switch(!0){case en===18:He=4;break;case en===17:He=8;break;case en>=14:He=30;break}return He},clusterIconCreateFunction(en){const He=en.getChildCount();return L$4.divIcon({html:`<div class="overview__cluster" style="background-color: ${this.markerColor}">${He}</div>`,iconSize:[34,34],iconAnchor:[17,17],className:""})},truncatedSummary(en){let He="";if(en.summary&&(He=en.summary),He.length<1&&en.description&&(He=en.description),He.length<1)return"";const tn=document.createElement("p");return tn.innerHTML=He,He=tn.textContent||tn.innerText||"",He.length<=180?He:He.substr(0,180)+"..."},routeLocation(en){const He=this.getFilter("location");if(!He||!He.value||!He.value.coordinates||en.coordinatesList.length<1)return en.localities[0];let[tn,nn]=en.coordinatesList[0].split(", "),an=this.distance(He.value.coordinates.lat,He.value.coordinates.lon,tn,nn),rn=0;return en.coordinatesList.forEach((on,sn)=>{let[dn,hn]=on.split(", "),mn=this.distance(He.value.coordinates.lat,He.value.coordinates.lon,dn,hn);mn<an&&(an=mn,rn=sn)}),en.localities[rn]?en.localities[rn]:""},routeDistance(en){return en.distance?(Math.round(en.distance/100)/10).toLocaleString():"0"},distance(en,He,tn,nn){if(en===tn&&He===nn)return 0;let an=Math.PI*en/180,rn=Math.PI*tn/180,on=He-nn,sn=Math.PI*on/180,dn=Math.sin(an)*Math.sin(rn)+Math.cos(an)*Math.cos(rn)*Math.cos(sn);return dn>1&&(dn=1),dn=Math.acos(dn),dn=dn*180/Math.PI,dn=dn*60*1.1515,dn*1.609344}}},_hoisted_1$8={class:"overview"},_hoisted_2$7={class:"overview__title-wrapper"},_hoisted_3$7={class:"overview__title"},_hoisted_4$4={class:"overview__summary"},_hoisted_5$4={ref:"overviewTabs",class:"overview__tabs"},_hoisted_6$3=["title"],_hoisted_7$3=["title"],_hoisted_8$3={ref:"overviewContent",class:"overview__content"},_hoisted_9$2={class:"overview__filters"},_hoisted_10$2=["title"],_hoisted_11$2={class:"overview__extra-filters"},_hoisted_12$2={class:"overview__extra-filters-header"},_hoisted_13$2={class:"overview__extra-filters-title"},_hoisted_14$1=["title"],_hoisted_15$1={class:"overview__result-count"},_hoisted_16$1={class:"overview__results"},_hoisted_17$1=["href","title","onMouseenter","onMouseleave"],_hoisted_18$1={class:"overview__result-left"},_hoisted_19$1=["src"],_hoisted_20$1={class:"overview__result-right"},_hoisted_21$1={class:"overview__product-title"},_hoisted_22$1={key:0,class:"overview__product-info"},_hoisted_23$1={key:1,class:"overview__product-date"},_hoisted_24$1={class:"overview__product-summary"},_hoisted_25$1={class:"overview__pager"},_hoisted_26$1={key:0,class:"overview__pager-ellipsis"},_hoisted_27$1={key:1,class:"overview__pager-ellipsis"},_hoisted_28$1=["href","title"],_hoisted_29$1=["src"],_hoisted_30$1={class:"overview__marker-content"},_hoisted_31$1={class:"overview__marker-title"},_hoisted_32$1={class:"overview__marker-info"},_hoisted_33$1=["title"];function _sfc_render$8(en,He,tn,nn,an,rn){const on=resolveComponent("campaign-badge"),sn=resolveComponent("favorites-toggle"),dn=resolveComponent("location-filter"),hn=resolveComponent("overview-filter"),mn=resolveComponent("terms-filter"),gn=resolveComponent("date-filter"),yn=resolveComponent("font-awesome-icon"),fn=resolveComponent("min-max-filter"),bn=resolveComponent("binary-filter"),Mn=resolveComponent("button-component"),Tn=resolveComponent("applied-filters"),xn=resolveComponent("l-tile-layer"),En=resolveComponent("l-popup"),Rn=resolveComponent("l-circle-marker"),ni=resolveComponent("l-marker-cluster-group"),mi=resolveComponent("l-map");return openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(on),createBaseVNode("div",_hoisted_2$7,[createBaseVNode("h1",_hoisted_3$7,toDisplayString(en.mainContent.title),
1411),createVNode(sn,{"content-id":en.mainContent.uuid,type:en.mainContent.contentType},null,8,["content-id","type"])]),createBaseVNode("div",_hoisted_4$4,toDisplayString(en.mainContent.summary),1),createBaseVNode("div",_hoisted_5$4,[createBaseVNode("a",{href:"#",class:normalizeClass(["overview__tabs-tab overview__tabs-tab--list",{"overview__tabs-tab--selected":an.showList}]),title:en.$t("List"),onClick:He[0]||(He[0]=withModifiers(bi=>an.showList=!0,["prevent"]))},toDisplayString(en.$t("List")),11,_hoisted_6$3),createBaseVNode("a",{href:"#",class:normalizeClass(["overview__tabs-tab overview__tabs-tab--map",{"overview__tabs-tab--selected":!an.showList}]),title:en.$t("Map"),onClick:He[1]||(He[1]=withModifiers((...bi)=>rn.showMap&&rn.showMap(...bi),["prevent"]))},toDisplayString(en.$t("Map")),11,_hoisted_7$3)],512),createBaseVNode("div",_hoisted_8$3,[createBaseVNode("div",{ref:"overviewList",class:normalizeClass(["overview__list",{"overview__list--show":an.showList}])},[createBaseVNode("div",_hoisted_9$2,[en.locationFiltered?createCommentVNode("",!0):(openBlock(),createBlock(hn,{key:0,field:"location"},{default:withCtx(()=>[createVNode(dn,{name:en.$t("Location"),field:"location"},null,8,["name"])]),_:1})),createVNode(hn,{field:"product_type"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Type"),field:"product_type"},null,8,["name"])]),_:1}),en.resultingContentTypes().length===1&&en.resultingContentTypes()[0]==="route"?(openBlock(),createBlock(hn,{key:1,field:"distance"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Distance"),field:"distance"},null,8,["name"])]),_:1})):(openBlock(),createBlock(hn,{key:2,field:"labels"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Label"),field:"labels"},null,8,["name"])]),_:1})),en.resultingContentTypes().length===1&&en.resultingContentTypes()[0]==="event"?(openBlock(),createBlock(hn,{key:3,field:"period_start"},{default:withCtx(()=>[createVNode(gn,{name:en.$t("When"),field:"period_start","end-field":"period_end"},null,8,["name"])]),_:1})):createCommentVNode("",!0),withDirectives(createBaseVNode("a",{href:"#",class:"overview__extra-filters-trigger",title:en.$t("More filters"),onClick:He[2]||(He[2]=withModifiers((...bi)=>rn.toggleExtraFilters&&rn.toggleExtraFilters(...bi),["prevent"]))},[createTextVNode(toDisplayString(en.$t("More filters"))+" ",1),createVNode(yn,{icon:["fas","chevron-right"],class:"overview__extra-filters-trigger-icon"})],8,_hoisted_10$2),[[vShow,rn.extraFilters.length>0]])]),withDirectives(createBaseVNode("div",{class:"overview__extra-filters-overlay",onClick:He[4]||(He[4]=withModifiers((...bi)=>rn.toggleExtraFilters&&rn.toggleExtraFilters(...bi),["self"]))},[createBaseVNode("div",_hoisted_11$2,[createBaseVNode("div",_hoisted_12$2,[createBaseVNode("h2",_hoisted_13$2,toDisplayString(en.$t("Filters")),1),createBaseVNode("a",{href:"#",class:"overview__close-extra-filters",title:en.$t("Close"),onClick:He[3]||(He[3]=withModifiers((...bi)=>rn.toggleExtraFilters&&rn.toggleExtraFilters(...bi),["prevent"]))},[createVNode(yn,{icon:["fas","times"],class:"overview__close-extra-filters-icon"})],8,_hoisted_14$1)]),en.locationFiltered?createCommentVNode("",!0):(openBlock(),createBlock(hn,{key:0,field:"location"},{default:withCtx(()=>[createVNode(dn,{name:en.$t("Location"),field:"location"},null,8,["name"])]),_:1})),createVNode(hn,{field:"product_type"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Type"),field:"product_type"},null,8,["name"])]),_:1}),createVNode(hn,{field:"labels"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Label"),field:"labels"},null,8,["name"])]),_:1}),createVNode(hn,{field:"facilities"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Facilities"),field:"facilities"},null,8,["name"])]),_:1}),createVNode(hn,{field:"classification"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Classification"),field:"classification"},null,8,["name"])]),_:1}),createVNode(hn,{field:"rooms"},{default:withCtx(()=>[createVNode(fn,{name:en.$t("Rooms"),field:"rooms"},null,8,["name"])]),_:1}),createVNode(hn,{field:"beds"},{default:withCtx(()=>[createVNode(fn,{name:en.$t("persons"),field:"beds"},null,8,["name"])]),_:1}),createVNode(hn,{field:"period_start"},{default:withCtx(()=>[createVNode(gn,{name:en.$t("When"),field:"period_start","end-field":"period_end"},null,8,["name"])]),_:1}),createVNode(hn,{field:"surface"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Surface"),field:"surface"},null,8,["name"])]),_:1}),createVNode(hn,{field:"layout"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Layout"),field:"layout"},null,8,["name"])]),_:1}),createVNode(hn,{field:"capacity"},{default:withCtx(()=>[createVNode(fn,{name:en.$t("Capacity"),field:"capacity"},null,8,["name"])]),_:1}),createVNode(hn,{field:"distance"},{default:withCtx(()=>[createVNode(mn,{name:en.$t("Distance"),field:"distance"},null,8,["name"])]),_:1}),createVNode(hn,{field:"loop"},{default:withCtx(()=>[createVNode(bn,{name:en.$t("Loop"),field:"loop"},null,8,["name"])]),_:1}),createVNode(hn,{field:"child_friendly"},{default:withCtx(()=>[createVNode(bn,{name:en.$t("Child-friendly"),field:"child_friendly"},null,8,["name"])]),_:1}),createVNode(hn,{field:"accessible"},{default:withCtx(()=>[createVNode(bn,{name:en.$t("Accessible"),field:"accessible"},null,8,["name"])]),_:1}),createVNode(Mn,{name:en.$t("Reset filters"),url:"#",class:"overview__reset-filters",onClick:withModifiers(rn.resetToggleExtraFilters,["prevent"])},null,8,["name","onClick"]),createVNode(Mn,{name:rn.products.length===1?en.$t("Show 1 result"):en.$t("Show {count} results",{count:rn.products.length}),url:"#",class:"overview__reset-show-results",onClick:withModifiers(rn.toggleExtraFilters,["prevent"])},null,8,["name","onClick"])])],512),[[vShow,rn.extraFilters.length>0&&an.showExtraFilters]]),createVNode(Tn),createBaseVNode("div",_hoisted_15$1,toDisplayString(rn.products.length===1?en.$t("1 result"):en.$t("{count} results",{count:rn.products.length})),1),createBaseVNode("div",_hoisted_16$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.pagedProducts,(bi,_i)=>(openBlock(),createElementBlock("a",{key:_i,href:bi.contentType==="route"?bi.url+"?starting-locality="+rn.routeLocation(bi):bi.url,title:bi.title,class:"overview__result",onMouseenter:oi=>rn.showMarker(bi.id),onMouseleave:oi=>rn.hideMarker(bi.id)},[createBaseVNode("div",_hoisted_18$1,[createBaseVNode("img",{src:bi.image,alt:"",class:"overview__product-image"},null,8,_hoisted_19$1)]),createBaseVNode("div",_hoisted_20$1,[createBaseVNode("h2",_hoisted_21$1,toDisplayString(bi.title),1),bi.localities?(openBlock(),createElementBlock("p",_hoisted_22$1,toDisplayString(bi.contentType==="route"?en.$t("{type} from {localities} - {distance}km",{type:bi.type,localities:rn.routeLocation(bi),distance:rn.routeDistance(bi)}):en.$t("{type} in {locality}",{type:bi.type,locality:bi.localities.join(", ")})),1)):createCommentVNode("",!0),He[8]||(He[8]=createBaseVNode("div",{class:"overview__line","aria-hidden":"true"},null,-1)),bi.periodStart?(openBlock(),createElementBlock("p",_hoisted_23$1,[createTextVNode(toDisplayString(rn.dateForTimestamp(bi.periodStart))+" ",1),bi.periodEnd&&rn.dateForTimestamp(bi.periodEnd)!==rn.dateForTimestamp(bi.periodStart)?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(" - "+toDisplayString(rn.dateForTimestamp(bi.periodEnd)),1)],64)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("p",_hoisted_24$1,toDisplayString(rn.truncatedSummary(bi)),1)])],40,_hoisted_17$1))),128))]),withDirectives(createBaseVNode("div",_hoisted_25$1,[createVNode(Mn,{url:"",class:"overview__pager-link",name:"1",type:an.currentPage===0?"primary":"primary-outline",onClick:He[5]||(He[5]=withModifiers(bi=>an.currentPage=0,["prevent"]))},null,8,["type"]),an.currentPage>2?(openBlock(),createElementBlock("span",_hoisted_26$1,"...")):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.visiblePages,bi=>(openBlock(),createBlock(Mn,{key:bi,url:"?page="+(bi+1).toString(),class:"overview__pager-link",name:(bi+1).toString(),type:an.currentPage===bi?"primary":"primary-outline",onClick:withModifiers(_i=>an.currentPage=bi,["prevent"])},null,8,["url","name","type","onClick"]))),128)),an.currentPage<rn.pages-3?(openBlock(),createElementBlock("span",_hoisted_27$1,"...")):createCommentVNode("",!0),createVNode(Mn,{url:"?page="+rn.pages.toString(),class:"overview__pager-link",name:rn.pages.toString(),type:an.currentPage===rn.pages-1?"primary":"primary-outline",onClick:He[6]||(He[6]=withModifiers(bi=>an.currentPage=rn.pages-1,["prevent"]))},null,8,["url","name","type"])],512),[[vShow,rn.pages>1]])],2),createBaseVNode("div",{class:normalizeClass(["overview__map",{"overview__map--s
141how":!an.showList}])},[createVNode(mi,{ref:"map",zoom:13,"min-zoom":an.mapMinZoom,"max-zoom":an.mapMaxZoom,"use-global-leaflet":!0,options:{scrollWheelZoom:!1,touchZoom:!0,preferCanvas:!0},onReady:rn.setMap,onDragend:rn.handleMapPan},{default:withCtx(()=>[createVNode(xn,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:rn.tileAttribution},null,8,["attribution"]),createVNode(ni,{ref:"markerCluster","chunked-loading":!0,"show-coverage-on-hover":!1,animate:!1,"max-cluster-radius":rn.clusterRadiusForZoom,"icon-create-function":rn.clusterIconCreateFunction},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.products.filter(bi=>bi.latitude&&bi.longitude),(bi,_i)=>(openBlock(),createBlock(Rn,{key:_i,ref_for:!0,ref:"marker-"+bi.id,"lat-lng":[bi.latitude,bi.longitude],radius:5,color:rn.markerColor,fill:!0,"fill-opacity":1,"fill-color":rn.markerColor,onClick:oi=>rn.toggleMarker(bi)},{default:withCtx(()=>[createVNode(En,null,{default:withCtx(()=>[createBaseVNode("a",{href:bi.url,title:bi.title,class:"overview__marker-teaser"},[createBaseVNode("img",{src:bi.image,alt:"",class:"overview__marker-image",loading:"lazy"},null,8,_hoisted_29$1),createBaseVNode("div",_hoisted_30$1,[createBaseVNode("h3",_hoisted_31$1,toDisplayString(bi.title),1),createBaseVNode("div",_hoisted_32$1,toDisplayString(bi.localities.length>1?en.$t("{type} from {localities}",{type:bi.type,localities:bi.localities.join(", ")}):en.$t("{type} in {locality}",{type:bi.type,locality:bi.localities.join(", ")})),1)])],8,_hoisted_28$1)]),_:2},1024)]),_:2},1032,["lat-lng","color","fill-color","onClick"]))),128))]),_:1},8,["max-cluster-radius","icon-create-function"])]),_:1},8,["min-zoom","max-zoom","onReady","onDragend"]),createBaseVNode("a",{href:"#",class:"overview__map-search-toggle",title:an.searchUsingMap?en.$t("Stop searching using map"):en.$t("Search using map"),onClick:He[7]||(He[7]=withModifiers((...bi)=>rn.toggleMapSearch&&rn.toggleMapSearch(...bi),["prevent"]))},[an.searchUsingMap?createCommentVNode("",!0):(openBlock(),createBlock(yn,{key:0,icon:["far","square"],class:"overview__map-search-toggle-icon"})),an.searchUsingMap?(openBlock(),createBlock(yn,{key:1,icon:["far","check-square"],class:"overview__map-search-toggle-icon overview__map-search-toggle-icon--active"})):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(an.searchUsingMap?en.$t("Stop searching using map"):en.$t("Search using map")),1)],8,_hoisted_33$1)],2)],512)])}const OverviewPage=_export_sfc(_sfc_main$8,[["render",_sfc_render$8],["__scopeId","data-v-4c166e7e"]]),_sfc_main$7={name:"SectorProductTeaser",props:{uuid:{type:String,required:!0}},computed:{sectorProduct(){return this.$store.getters["sectorProduct/sectorProduct"](this.uuid)},sectorProductType(){return!this.sectorProduct||!this.sectorProduct.sectorProductTypes?"":this.sectorProduct.sectorProductTypes[0].attributes.name},timeAndLocation(){const en=[];return this.sectorProduct.date&&en.push(hooks(this.sectorProduct.date).format("DD/MM/YYYY")),this.sectorProduct.location&&en.push(this.sectorProduct.location),en.join(", ")}},mounted(){this.fetchSectorProduct(this.uuid)},methods:{...mapActions("sectorProduct",["fetchSectorProduct"])}},_hoisted_1$7=["href"],_hoisted_2$6={class:"sector-product-teaser__content"},_hoisted_3$6={class:"sector-product-teaser__top"},_hoisted_4$3={key:0,class:"sector-product-teaser__type"},_hoisted_5$3=["src","alt"],_hoisted_6$2={class:"sector-product-teaser__info"},_hoisted_7$2={class:"sector-product-teaser__title"},_hoisted_8$2={key:0};function _sfc_render$7(en,He,tn,nn,an,rn){return rn.sectorProduct?(openBlock(),createElementBlock("a",{key:0,class:"sector-product-teaser",href:rn.sectorProduct.canonicalUrl},[createBaseVNode("div",_hoisted_2$6,[createBaseVNode("div",_hoisted_3$6,[rn.sectorProductType?(openBlock(),createElementBlock("div",_hoisted_4$3,toDisplayString(rn.sectorProductType),1)):createCommentVNode("",!0),createBaseVNode("img",{src:rn.sectorProduct.teaserImage.url,alt:rn.sectorProduct.teaserImage.alt},null,8,_hoisted_5$3)]),createBaseVNode("div",_hoisted_6$2,[createBaseVNode("div",_hoisted_7$2,toDisplayString(rn.sectorProduct.title),
1411),rn.timeAndLocation?(openBlock(),createElementBlock("div",_hoisted_8$2,[createBaseVNode("span",null,toDisplayString(rn.timeAndLocation),1)])):createCommentVNode("",!0)])])],8,_hoisted_1$7)):createCommentVNode("",!0)}const SectorProductTeaser=_export_sfc(_sfc_main$7,[["render",_sfc_render$7],["__scopeId","data-v-e6f65f27"]]);var moment$2={exports:{}},moment$1=moment$2.exports,hasRequiredMoment;function requireMoment(){return hasRequiredMoment||(hasRequiredMoment=1,(function(en,He){(function(tn,nn){en.exports=nn()})(moment$1,(function(){var tn;function nn(){return tn.apply(null,arguments)}function an(vn){tn=vn}function rn(vn){return vn instanceof Array||Object.prototype.toString.call(vn)==="[object Array]"}function on(vn){return vn!=null&&Object.prototype.toString.call(vn)==="[object Object]"}function sn(vn,Pn){return Object.prototype.hasOwnProperty.call(vn,Pn)}function dn(vn){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(vn).length===0;var Pn;for(Pn in vn)if(sn(vn,Pn))return!1;return!0}function hn(vn){return vn===void 0}function mn(vn){return typeof vn=="number"||Object.prototype.toString.call(vn)==="[object Number]"}function gn(vn){return vn instanceof Date||Object.prototype.toString.call(vn)==="[object Date]"}function yn(vn,Pn){var In=[],li,Di=vn.length;for(li=0;li<Di;++li)In.push(Pn(vn[li],li));return In}function fn(vn,Pn){for(var In in Pn)sn(Pn,In)&&(vn[In]=Pn[In]);return sn(Pn,"toString")&&(vn.toString=Pn.toString),sn(Pn,"valueOf")&&(vn.valueOf=Pn.valueOf),vn}function bn(vn,Pn,In,li){return ad(vn,Pn,In,li,!0).utc()}function Mn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Tn(vn){return vn._pf==null&&(vn._pf=Mn()),vn._pf}var xn;Array.prototype.some?xn=Array.prototype.some:xn=function(vn){var Pn=Object(this),In=Pn.length>>>0,li;for(li=0;li<In;li++)if(li in Pn&&vn.call(this,Pn[li],li,Pn))return!0;return!1};function En(vn){var Pn=null,In=!1,li=vn._d&&!isNaN(vn._d.getTime());if(li&&(Pn=Tn(vn),In=xn.call(Pn.parsedDateParts,function(Di){return Di!=null}),li=Pn.overflow<0&&!Pn.empty&&!Pn.invalidEra&&!Pn.invalidMonth&&!Pn.invalidWeekday&&!Pn.weekdayMismatch&&!Pn.nullInput&&!Pn.invalidFormat&&!Pn.userInvalidated&&(!Pn.meridiem||Pn.meridiem&&In),vn._strict&&(li=li&&Pn.charsLeftOver===0&&Pn.unusedTokens.length===0&&Pn.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(vn))vn._isValid=li;else return li;return vn._isValid}function Rn(vn){var Pn=bn(NaN);return vn!=null?fn(Tn(Pn),vn):Tn(Pn).userInvalidated=!0,Pn}var ni=nn.momentProperties=[],mi=!1;function bi(vn,Pn){var In,li,Di,Qi=ni.length;if(hn(Pn._isAMomentObject)||(vn._isAMomentObject=Pn._isAMomentObject),hn(Pn._i)||(vn._i=Pn._i),hn(Pn._f)||(vn._f=Pn._f),hn(Pn._l)||(vn._l=Pn._l),hn(Pn._strict)||(vn._strict=Pn._strict),hn(Pn._tzm)||(vn._tzm=Pn._tzm),hn(Pn._isUTC)||(vn._isUTC=Pn._isUTC),hn(Pn._offset)||(vn._offset=Pn._offset),hn(Pn._pf)||(vn._pf=Tn(Pn)),hn(Pn._locale)||(vn._locale=Pn._locale),Qi>0)for(In=0;In<Qi;In++)li=ni[In],Di=Pn[li],hn(Di)||(vn[li]=Di);return vn}function _i(vn){bi(this,vn),this._d=new Date(vn._d!=null?vn._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),mi===!1&&(mi=!0,nn.updateOffset(this),mi=!1)}function oi(vn){return vn instanceof _i||vn!=null&&vn._isAMomentObject!=null}function si(vn){nn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+vn)}function fi(vn,Pn){var In=!0;return fn(function(){if(nn.deprecationHandler!=null&&nn.deprecationHandler(null,vn),In){var li=[],Di,Qi,Ca,hs=arguments.length;for(Qi=0;Qi<hs;Qi++){if(Di="",typeof arguments[Qi]=="object"){Di+=`
142[`+Qi+"] ";for(Ca in arguments[0])sn(arguments[0],Ca)&&(Di+=Ca+": "+arguments[0][Ca]+", ");Di=Di.slice(0,-2)}else Di=arguments[Qi];li.push(Di)}si(vn+`
143Arguments: `+Array.prototype.slice.call(li).join("")+`
144`+new Error().stack),In=!1}return Pn.apply(this,arguments)},Pn)}var ei={};function ci(vn,Pn){nn.deprecationHandler!=null&&nn.deprecationHandler(vn,Pn),ei[vn]||(si(Pn),ei[vn]=!0)}nn.suppressDeprecationWarnings=!1,nn.deprecationHandler=null;function di(vn){return typeof Function<"u"&&vn instanceof Function||Object.prototype.toString.call(vn)==="[object Function]"}function wi(vn){var Pn,In;for(In in vn)sn(vn,In)&&(Pn=vn[In],di(Pn)?this[In]=Pn:this["_"+In]=Pn);this._config=vn,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ci(vn,Pn){var In=fn({},vn),li;for(li in Pn)sn(Pn,li)&&(on(vn[li])&&on(Pn[li])?(In[li]={},fn(In[li],vn[li]),fn(In[li],Pn[li])):Pn[li]!=null?In[li]=Pn[li]:delete In[li]);for(li in vn)sn(vn,li)&&!sn(Pn,li)&&on(vn[li])&&(In[li]=fn({},In[li]));return In}function ji(vn){vn!=null&&this.set(vn)}var Yi;Object.keys?Yi=Object.keys:Yi=function(vn){var Pn,In=[];for(Pn in vn)sn(vn,Pn)&&In.push(Pn);return In};var Pi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Fi(vn,Pn,In){var li=this._calendar[vn]||this._calendar.sameElse;return di(li)?li.call(Pn,In):li}function $i(vn,Pn,In){var li=""+Math.abs(vn),Di=Pn-li.length,Qi=vn>=0;return(Qi?In?"+":"":"-")+Math.pow(10,Math.max(0,Di)).toString().substr(1)+li}var Wi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 31,922 bytes, line 144
144|x|X|zz?|ZZ?|.)/g,hi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Si={},Ni={};function yi(vn,Pn,In,li){var Di=li;typeof li=="string"&&(Di=function(){return this[li]()}),vn&&(Ni[vn]=Di),Pn&&(Ni[Pn[0]]=function(){return $i(Di.apply(this,arguments),Pn[1],Pn[2])}),In&&(Ni[In]=function(){return this.localeData().ordinal(Di.apply(this,arguments),vn)})}function Hi(vn){return vn.match(/\[[\s\S]/)?vn.replace(/^\[|\]$/g,""):vn.replace(/\\/g,"")}function Ui(vn){var Pn=vn.match(Wi),In,li;for(In=0,li=Pn.length;In<li;In++)Ni[Pn[In]]?Pn[In]=Ni[Pn[In]]:Pn[In]=Hi(Pn[In]);return function(Di){var Qi="",Ca;for(Ca=0;Ca<li;Ca++)Qi+=di(Pn[Ca])?Pn[Ca].call(Di,vn):Pn[Ca];return Qi}}function Ji(vn,Pn){return vn.isValid()?(Pn=Oi(Pn,vn.localeData()),Si[Pn]=Si[Pn]||Ui(Pn),Si[Pn](vn)):vn.localeData().invalidDate()}function Oi(vn,Pn){var In=5;function li(Di){return Pn.longDateFormat(Di)||Di}for(hi.lastIndex=0;In>=0&&hi.test(vn);)vn=vn.replace(hi,li),hi.lastIndex=0,In-=1;return vn}var Ei={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ea(vn){var Pn=this._longDateFormat[vn],In=this._longDateFormat[vn.toUpperCase()];return Pn||!In?Pn:(this._longDateFormat[vn]=In.match(Wi).map(function(li){return li==="MMMM"||li==="MM"||li==="DD"||li==="dddd"?li.slice(1):li}).join(""),this._longDateFormat[vn])}var vi="Invalid date";function ti(){return this._invalidDate}var ui="%d",Cn=/\d{1,2}/;function ki(vn){return this._ordinal.replace("%d",vn)}var Zi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ta(vn,Pn,In,li){var Di=this._relativeTime[In];return di(Di)?Di(vn,Pn,In,li):Di.replace(/%d/i,vn)}function Ri(vn,Pn){var In=this._relativeTime[vn>0?"future":"past"];return di(In)?In(Pn):In.replace(/%s/i,Pn)}var ha={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function qi(vn){return typeof vn=="string"?ha[vn]||ha[vn.toLowerCase()]:void 0}function ca(vn){var Pn={},In,li;for(li in vn)sn(vn,li)&&(In=qi(li),In&&(Pn[In]=vn[li]));return Pn}var Bi={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Na(vn){var Pn=[],In;for(In in vn)sn(vn,In)&&Pn.push({unit:In,priority:Bi[In]});return Pn.sort(function(li,Di){return li.priority-Di.priority}),Pn}var pa=/\d/,Ea=/\d\d/,ns=/\d{3}/,vs=/\d{4}/,rs=/[+-]?\d{6}/,Xa=/\d\d?/,_s=/\d\d\d\d?/,mo=/\d\d\d\d\d\d?/,Is=/\d{1,3}/,$s=/\d{1,4}/,Ps=/[+-]?\d{1,6}/,Ws=/\d+/,ps=/[+-]?\d+/,oo=/Z|[+-]\d\d:?\d\d/gi,bs=/Z|[+-]\d\d(?::?\d\d)?/gi,As=/[+-]?\d+(\.\d{1,3})?/,ts=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,cs=/^[1-9]\d?/,ws=/^([1-9]\d|\d)/,js;js={};function Ma(vn,Pn,In){js[vn]=di(Pn)?Pn:function(li,Di){return li&&In?In:Pn}}function Jo(vn,Pn){return sn(js,vn)?js[vn](Pn._strict,Pn._locale):new RegExp(eu(vn))}function eu(vn){return ko(vn.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Pn,In,li,Di,Qi){return In||li||Di||Qi}))}function ko(vn){return vn.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function fs(vn){return vn<0?Math.ceil(vn)||0:Math.floor(vn)}function os(vn){var Pn=+vn,In=0;return Pn!==0&&isFinite(Pn)&&(In=fs(Pn)),In}var kc={};function ys(vn,Pn){var In,li=Pn,Di;for(typeof vn=="string"&&(vn=[vn]),mn(Pn)&&(li=function(Qi,Ca){Ca[Pn]=os(Qi)}),Di=vn.length,In=0;In<Di;In++)kc[vn[In]]=li}function Vo(vn,Pn){ys(vn,function(In,li,Di,Qi){Di._w=Di._w||{},Pn(In,Di._w,Di,Qi)})}function ho(vn,Pn,In){Pn!=null&&sn(kc,vn)&&kc[vn](Pn,In._a,In,vn)}function ls(vn){return vn%4===0&&vn%100!==0||vn%400===0}var ia=0,Fa=1,us=2,as=3,Cs=4,to=5,co=6,tc=7,Vc=8;yi("Y",0,0,function(){var vn=this.year();return vn<=9999?$i(vn,4):"+"+vn}),yi(0,["YY",2],0,function(){return this.year()%100}),yi(0,["YYYY",4],0,"year"),yi(0,["YYYYY",5],0,"year"),yi(0,["YYYYYY",6,!0],0,"year"),Ma("Y",ps),Ma("YY",Xa,Ea),Ma("YYYY",$s,vs),Ma("YYYYY",Ps,rs),Ma("YYYYYY",Ps,rs),ys(["YYYYY","YYYYYY"],ia),ys("YYYY",function(vn,Pn){Pn[ia]=vn.length===2?nn.parseTwoDigitYear(vn):os(vn)}),ys("YY",function(vn,Pn){Pn[ia]=nn.parseTwoDigitYear(vn)}),ys("Y",function(vn,Pn){Pn[ia]=parseInt(vn,10)});function Yo(vn){return ls(vn)?366:365}nn.parseTwoDigitYear=function(vn){return os(vn)+(os(vn)>68?1900:2e3)};var uc=nc("FullYear",!0);function vu(){return ls(this.year())}function nc(vn,Pn){return function(In){return In!=null?(Ku(this,vn,In),nn.updateOffset(this,Pn),this):Tc(this,vn)}}function Tc(vn,Pn){if(!vn.isValid())return NaN;var In=vn._d,li=vn._isUTC;switch(Pn){case"Milliseconds":return li?In.getUTCMilliseconds():In.getMilliseconds();case"Seconds":return li?In.getUTCSeconds():In.getSeconds();case"Minutes":return li?In.getUTCMinutes():In.getMinutes();case"Hours":return li?In.getUTCHours():In.getHours();case"Date":return li?In.getUTCDate():In.getDate();case"Day":return li?In.getUTCDay():In.getDay();case"Month":return li?In.getUTCMonth():In.getMonth();case"FullYear":return li?In.getUTCFullYear():In.getFullYear();default:return NaN}}function Ku(vn,Pn,In){var li,Di,Qi,Ca,hs;if(!(!vn.isValid()||isNaN(In))){switch(li=vn._d,Di=vn._isUTC,Pn){case"Milliseconds":return void(Di?li.setUTCMilliseconds(In):li.setMilliseconds(In));case"Seconds":return void(Di?li.setUTCSeconds(In):li.setSeconds(In));case"Minutes":return void(Di?li.setUTCMinutes(In):li.setMinutes(In));case"Hours":return void(Di?li.setUTCHours(In):li.setHours(In));case"Date":return void(Di?li.setUTCDate(In):li.setDate(In));case"FullYear":break;default:return}Qi=In,Ca=vn.month(),hs=vn.date(),hs=hs===29&&Ca===1&&!ls(Qi)?28:hs,Di?li.setUTCFullYear(Qi,Ca,hs):li.setFullYear(Qi,Ca,hs)}}function Jd(vn){return vn=qi(vn),di(this[vn])?this[vn]():this}function ch(vn,Pn){if(typeof vn=="object"){vn=ca(vn);var In=Na(vn),li,Di=In.length;for(li=0;li<Di;li++)this[In[li].unit](vn[In[li].unit])}else if(vn=qi(vn),di(this[vn]))return this[vn](Pn);return this}function uh(vn,Pn){return(vn%Pn+Pn)%Pn}var Es;Array.prototype.indexOf?Es=Array.prototype.indexOf:Es=function(vn){var Pn;for(Pn=0;Pn<this.length;++Pn)if(this[Pn]===vn)return Pn;return-1};function $u(vn,Pn){if(isNaN(vn)||isNaN(Pn))return NaN;var In=uh(Pn,12);return vn+=(Pn-In)/12,In===1?ls(vn)?29:28:31-In%7%2}yi("M",["MM",2],"Mo",function(){return this.month()+1}),yi("MMM",0,0,function(vn){return this.localeData().monthsShort(this,vn)}),yi("MMMM",0,0,function(vn){return this.localeData().months(this,vn)}),Ma("M",Xa,cs),Ma("MM",Xa,Ea),Ma("MMM",function(vn,Pn){return Pn.monthsShortRegex(vn)}),Ma("MMMM",function(vn,Pn){return Pn.monthsRegex(vn)}),ys(["M","MM"],function(vn,Pn){Pn[Fa]=os(vn)-1}),ys(["MMM","MMMM"],function(vn,Pn,In,li){var Di=In._locale.monthsParse(vn,li,In._strict);Di!=null?Pn[Fa]=Di:Tn(In).invalidMonth=vn});var xd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xd=ts,Ju=ts;function Us(vn,Pn){return vn?rn(this._months)?this._months[vn.month()]:this._months[(this._months.isFormat||dd).test(Pn)?"format":"standalone"][vn.month()]:rn(this._months)?this._months:this._months.standalone}function bo(vn,Pn){return vn?rn(this._monthsShort)?this._monthsShort[vn.month()]:this._monthsShort[dd.test(Pn)?"format":"standalone"][vn.month()]:rn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Sd(vn,Pn,In){var li,Di,Qi,Ca=vn.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],li=0;li<12;++li)Qi=bn([2e3,li]),this._shortMonthsParse[li]=this.monthsShort(Qi,"").toLocaleLowerCase(),this._longMonthsParse[li]=this.months(Qi,"").toLocaleLowerCase();return In?Pn==="MMM"?(Di=Es.call(this._shortMonthsParse,Ca),Di!==-1?Di:null):(Di=Es.call(this._longMonthsParse,Ca),Di!==-1?Di:null):Pn==="MMM"?(Di=Es.call(this._shortMonthsParse,Ca),Di!==-1?Di:(Di=Es.call(this._longMonthsParse,Ca),Di!==-1?Di:null)):(Di=Es.call(this._longMonthsParse,Ca),Di!==-1?Di:(Di=Es.call(this._shortMonthsParse,Ca),Di!==-1?Di:null))}function Bo(vn,Pn,In){var li,Di,Qi;if(this._monthsParseExact)return Sd.call(this,vn,Pn,In);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),li=0;li<12;li++){if(Di=bn([2e3,li]),In&&!this._longMonthsParse[li]&&(this._longMonthsParse[li]=new RegExp("^"+this.months(Di,"").replace(".","")+"$","i"),this._shortMonthsParse[li]=new RegExp("^"+this.monthsShort(Di,"").replace(".","")+"$","i")),!In&&!this._monthsParse[li]&&(Qi="^"+this.months(Di,"")+"|^"+this.monthsShort(Di,""),this._monthsParse[li]=new RegExp(Qi.replace(".",""),"i")),In&&Pn==="MMMM"&&this._longMonthsParse[li].test(vn))return li;if(In&&Pn==="MMM"&&this._shortMonthsParse[li].test(vn))return li;if(!In&&this._monthsParse[li].test(vn))return li}}function nu(vn,Pn){if(!vn.isValid())return vn;if(typeof Pn=="string"){if(/^\d+$/.test(Pn))Pn=os(Pn);else if(Pn=vn.localeData().monthsParse(Pn),!mn(Pn))return vn}var In=Pn,li=vn.date();return li=li<29?li:Math.min(li,$u(vn.year(),In)),vn._isUTC?vn._d.setUTCMonth(In,li):vn._d.setMonth(In,li),vn}function Dc(vn){return vn!=null?(nu(this,vn),nn.updateOffset(this,!0),this):Tc(this,"Month")}function Hs(){return $u(this.year(),this.month())}function $o(vn){return this._monthsParseExact?(sn(this,"_monthsRegex")||Eo.call(this),vn?this._monthsShortStrictRegex:this._monthsShortRegex):(sn(this,"_monthsShortRegex")||(this._monthsShortRegex=Xd),this._monthsShortStrictRegex&&vn?this._monthsShortStrictRegex:this._monthsShortRegex)}function Pc(vn){return this._monthsParseExact?(sn(this,"_monthsRegex")||Eo.call(this),vn?this._monthsStrictRegex:this._monthsRegex):(sn(this,"_monthsRegex")||(this._monthsRegex=Ju),this._monthsStrictRegex&&vn?this._monthsStrictRegex:this._monthsRegex)}function Eo(){function vn(Fs,Zs){return Zs.length-Fs.length}var Pn=[],In=[],li=[],Di,Qi,Ca,hs;for(Di=0;Di<12;Di++)Qi=bn([2e3,Di]),Ca=ko(this.monthsShort(Qi,"")),hs=ko(this.months(Qi,"")),Pn.push(Ca),In.push(hs),li.push(hs),li.push(Ca);Pn.sort(vn),In.sort(vn),li.sort(vn),this._monthsRegex=new RegExp("^("+li.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+In.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Pn.join("|")+")","i")}function Xo(vn,Pn,In,li,Di,Qi,Ca){var hs;return vn<100&&vn>=0?(hs=new Date(vn+400,Pn,In,li,Di,Qi,Ca),isFinite(hs.getFullYear())&&hs.setFullYear(vn)):hs=new Date(vn,Pn,In,li,Di,Qi,Ca),hs}function Hc(vn){var Pn,In;return vn<100&&vn>=0?(In=Array.prototype.slice.call(arguments),In[0]=vn+400,Pn=new Date(Date.UTC.apply(null,In)),isFinite(Pn.getUTCFullYear())&&Pn.setUTCFullYear(vn)):Pn=new Date(Date.UTC.apply(null,arguments)),Pn}function jc(vn,Pn,In){var li=7+Pn-In,Di=(7+Hc(vn,0,li).getUTCDay()-Pn)%7;return-Di+li-1}function ru(vn,Pn,In,li,Di){var Qi=(7+In-li)%7,Ca=jc(vn,li,Di),hs=1+7*(Pn-1)+Qi+Ca,Fs,Zs;return hs<=0?(Fs=vn-1,Zs=Yo(Fs)+hs):hs>Yo(vn)?(Fs=vn+1,Zs=hs-Yo(vn)):(Fs=vn,Zs=hs),{year:Fs,dayOfYear:Zs}}function no(vn,Pn,In){var li=jc(vn.year(),Pn,In),Di=Math.floor((vn.dayOfYear()-li-1)/7)+1,Qi,Ca;return Di<1?(Ca=vn.year()-1,Qi=Di+Co(Ca,Pn,In)):Di>Co(vn.year(),Pn,In)?(Qi=Di-Co(vn.year(),Pn,In),Ca=vn.year()+1):(Ca=vn.year(),Qi=Di),{week:Qi,year:Ca}}function Co(vn,Pn,In){var li=jc(vn,Pn,In),Di=jc(vn+1,Pn,In);return(Yo(vn)-li+Di)/7}yi("w",["ww",2],"wo","week"),yi("W",["WW",2],"Wo","isoWeek"),Ma("w",Xa,cs),Ma("ww",Xa,Ea),Ma("W",Xa,cs),Ma("WW",Xa,Ea),Vo(["w","ww","W","WW"],function(vn,Pn,In,li){Pn[li.substr(0,1)]=os(vn)});function Xu(vn){return no(vn,this._week.dow,this._week.doy).week}var wu={dow:0,doy:6};function Eu(){return this._week.dow}function hd(){return this._week.doy}function Qd(vn){var Pn=this.localeData().week(this);return vn==null?Pn:this.add((vn-Pn)*7,"d")}function eh(vn){var Pn=no(this,1,4).week;return vn==null?Pn:this.add((vn-Pn)*7,"d")}yi("d",0,"do","day"),yi("dd",0,0,function(vn){return this.localeData().weekdaysMin(this,vn)}),yi("ddd",0,0,function(vn){return this.localeData().weekdaysShort(this,vn)}),yi("dddd",0,0,function(vn){return this.localeData().weekdays(this,vn)}),yi("e",0,0,"weekday"),yi("E",0,0,"isoWeekday"),Ma("d",Xa),Ma("e",Xa),Ma("E",Xa),Ma("dd",function(vn,Pn){return Pn.weekdaysMinRegex(vn)}),Ma("ddd",function(vn,Pn){return Pn.weekdaysShortRegex(vn)}),Ma("dddd",function(vn,Pn){return Pn.weekdaysRegex(vn)}),Vo(["dd","ddd","dddd"],function(vn,Pn,In,li){var Di=In._locale.weekdaysParse(vn,li,In._strict);Di!=null?Pn.d=Di:Tn(In).invalidWeekday=vn}),Vo(["d","e","E"],function(vn,Pn,In,li){Pn[li]=os(vn)});function Qu(vn,Pn){return typeof vn!="string"?vn:isNaN(vn)?(vn=Pn.weekdaysParse(vn),typeof vn=="number"?vn:null):parseInt(vn,10)}function Td(vn,Pn){return typeof vn=="string"?Pn.weekdaysParse(vn)%7||7:isNaN(vn)?null:vn}function fc(vn,Pn){return vn.slice(Pn,7).concat(vn.slice(0,Pn))}var Dd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ku="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),fd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bh=ts,ss=ts,zc=ts;function Mo(vn,Pn){var In=rn(this._weekdays)?this._weekdays:this._weekdays[vn&&vn!==!0&&this._weekdays.isFormat.test(Pn)?"format":"standalone"];return vn===!0?fc(In,this._week.dow):vn?In[vn.day()]:In}function dh(vn){return vn===!0?fc(this._weekdaysShort,this._week.dow):vn?this._weekdaysShort[vn.day()]:this._weekdaysShort}function iu(vn){return vn===!0?fc(this._weekdaysMin,this._week.dow):vn?this._weekdaysMin[vn.day()]:this._weekdaysMin}function au(vn,Pn,In){var li,Di,Qi,Ca=vn.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],li=0;li<7;++li)Qi=bn([2e3,1]).day(li),this._minWeekdaysParse[li]=this.weekdaysMin(Qi,"").toLocaleLowerCase(),this._shortWeekdaysParse[li]=this.weekdaysShort(Qi,"").toLocaleLowerCase(),this._weekdaysParse[li]=this.weekdays(Qi,"").toLocaleLowerCase();return In?Pn==="dddd"?(Di=Es.call(this._weekdaysParse,Ca),Di!==-1?Di:null):Pn==="ddd"?(Di=Es.call(this._shortWeekdaysParse,Ca),Di!==-1?Di:null):(Di=Es.call(this._minWeekdaysParse,Ca),Di!==-1?Di:null):Pn==="dddd"?(Di=Es.call(this._weekdaysParse,Ca),Di!==-1||(Di=Es.call(this._shortWeekdaysParse,Ca),Di!==-1)?Di:(Di=Es.call(this._minWeekdaysParse,Ca),Di!==-1?Di:null)):Pn==="ddd"?(Di=Es.call(this._shortWeekdaysParse,Ca),Di!==-1||(Di=Es.call(this._weekdaysParse,Ca),Di!==-1)?Di:(Di=Es.call(this._minWeekdaysParse,Ca),Di!==-1?Di:null)):(Di=Es.call(this._minWeekdaysParse,Ca),Di!==-1||(Di=Es.call(this._weekdaysParse,Ca),Di!==-1)?Di:(Di=Es.call(this._shortWeekdaysParse,Ca),Di!==-1?Di:null))}function th(vn,Pn,In){var li,Di,Qi;if(this._weekdaysParseExact)return au.call(this,vn,Pn,In);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),li=0;li<7;li++){if(Di=bn([2e3,1]).day(li),In&&!this._fullWeekdaysParse[li]&&(this._fullWeekdaysParse[li]=new RegExp("^"+this.weekdays(Di,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[li]=new RegExp("^"+this.weekdaysShort(Di,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[li]=new RegExp("^"+this.weekdaysMin(Di,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[li]||(Qi="^"+this.weekdays(Di,"")+"|^"+this.weekdaysShort(Di,"")+"|^"+this.weekdaysMin(Di,""),this._weekdaysParse[li]=new RegExp(Qi.replace(".",""),"i")),In&&Pn==="dddd"&&this._fullWeekdaysParse[li].test(vn))return li;if(In&&Pn==="ddd"&&this._shortWeekdaysParse[li].test(vn))return li;if(In&&Pn==="dd"&&this._minWeekdaysParse[li].test(vn))return li;if(!In&&this._weekdaysParse[li].test(vn))return li}}function Ou(vn){if(!this.isValid())return vn!=null?this:NaN;var Pn=Tc(this,"Day");return vn!=null?(vn=Qu(vn,this.localeData()),this.add(vn-Pn,"d")):Pn}function ed(vn){if(!this.isValid())return vn!=null?this:NaN;var Pn=(this.day()+7-this.localeData()._week.dow)%7;return vn==null?Pn:this.add(vn-Pn,"d")}function Ru(vn){if(!this.isValid())return vn!=null?this:NaN;if(vn!=null){var Pn=Td(vn,this.localeData());return this.day(this.day()%7?Pn:Pn-7)}else return this.day()||7}function Oo(vn){return this._weekdaysParseExact?(sn(this,"_weekdaysRegex")||nd.call(this),vn?this._weekdaysStrictRegex:this._weekdaysRegex):(sn(this,"_weekdaysRegex")||(this._weekdaysRegex=bh),this._weekdaysStrictRegex&&vn?this._weekdaysStrictRegex:this._weekdaysRegex)}function Iu(vn){return this._weekdaysParseExact?(sn(this,"_weekdaysRegex")||nd.call(this),vn?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(sn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ss),this._weekdaysShortStrictRegex&&vn?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function bu(vn){return this._weekdaysParseExact?(sn(this,"_weekdaysRegex")||nd.call(this),vn?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(sn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zc),this._weekdaysMinStrictRegex&&vn?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nd(){function vn($c,bd){return bd.length-$c.length}var Pn=[],In=[],li=[],Di=[],Qi,Ca,hs,Fs,Zs;for(Qi=0;Qi<7;Qi++)Ca=bn([2e3,1]).day(Qi),hs=ko(this.weekdaysMin(Ca,"")),Fs=ko(this.weekdaysShort(Ca,"")),Zs=ko(this.weekdays(Ca,"")),Pn.push(hs),In.push(Fs),li.push(Zs),Di.push(hs),Di.push(Fs),Di.push(Zs);Pn.sort(vn),In.sort(vn),li.sort(vn),Di.sort(vn),this._weekdaysRegex=new RegExp("^("+Di.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+li.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+In.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Pn.join("|")+")","i")}function Fu(){return this.hours()%12||12}function Pd(){return this.hours()||24}yi("H",["HH",2],0,"hour"),yi("h",["hh",2],0,Fu),yi("k",["kk",2],0,Pd),yi("hmm",0,0,function(){return""+Fu.apply(this)+$i(this.minutes(),2)}),yi("hmmss",0,0,function(){return""+Fu.apply(this)+$i(this.minutes(),2)+$i(this.seconds(),2)}),yi("Hmm",0,0,function(){return""+this.hours()+$i(this.minutes(),2)}),yi("Hmmss",0,0,function(){return""+this.hours()+$i(this.minutes(),2)+$i(this.seconds(),2)});function rd(vn,Pn){yi(vn,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Pn)})}rd("a",!0),rd("A",!1);function su(vn,Pn){return Pn._meridiemParse}Ma("a",su),Ma("A",su),Ma("H",Xa,ws),Ma("h",Xa,cs),Ma("k",Xa,cs),Ma("HH",Xa,Ea),Ma("hh",Xa,Ea),Ma("kk",Xa,Ea),Ma("hmm",_s),Ma("hmmss",mo),Ma("Hmm",_s),Ma("Hmmss",mo),ys(["H","HH"],as),ys(["k","kk"],function(vn,Pn,In){var li=os(vn);Pn[as]=li===24?0:li}),ys(["a","A"],function(vn,Pn,In){In._isPm=In._locale.isPM(vn),In._meridiem=vn}),ys(["h","hh"],function(vn,Pn,In){Pn[as]=os(vn),Tn(In).bigHour=!0}),ys("hmm",function(vn,Pn,In){var li=vn.length-2;Pn[as]=os(vn.substr(0,li)),Pn[Cs]=os(vn.substr(li)),Tn(In).bigHour=!0}),ys("hmmss",function(vn,Pn,In){var li=vn.length-4,Di=vn.length-2;Pn[as]=os(vn.substr(0,li)),Pn[Cs]=os(vn.substr(li,2)),Pn[to]=os(vn.substr(Di)),Tn(In).bigHour=!0}),ys("Hmm",function(vn,Pn,In){var li=vn.length-2;Pn[as]=os(vn.substr(0,li)),Pn[Cs]=os(vn.substr(li))}),ys("Hmmss",function(vn,Pn,In){var li=vn.length-4,Di=vn.length-2;Pn[as]=os(vn.substr(0,li)),Pn[Cs]=os(vn.substr(li,2)),Pn[to]=os(vn.substr(Di))});function Nd(vn){return(vn+"").toLowerCase().charAt(0)==="p"}var Js=/[ap]\.?m?\.?/i,nh=nc("Hours",!0);function mc(vn,Pn,In){return vn>11?In?"pm":"PM":In?"am":"AM"}var ou={calendar:Pi,longDateFormat:Ei,invalidDate:vi,ordinal:ui,dayOfMonthOrdinalParse:Cn,relativeTime:Zi,months:xd,monthsShort:tu,week:wu,weekdays:Dd,weekdaysMin:fd,weekdaysShort:ku,meridiemParse:Js},Os={},Wc={},rc;function Vu(vn,Pn){var In,li=Math.min(vn.length,Pn.length);for(In=0;In<li;In+=1)if(vn[In]!==Pn[In])return In;return li}function md(vn){return vn&&vn.toLowerCase().replace("_","-")}function _d(vn){for(var Pn=0,In,li,Di,Qi;Pn<vn.length;){for(Qi=md(vn[Pn]).split("-"),In=Qi.length,li=md(vn[Pn+1]),li=li?li.split("-"):null;In>0;){if(Di=An(Qi.slice(0,In).join("-")),Di)return Di;if(li&&li.length>=In&&Vu(Qi,li)>=In-1)break;In--}Pn++}return rc}function hh(vn){return!!(vn&&vn.match("^[^/\\\\]*$"))}function An(vn){var Pn=null,In;if(Os[vn]===void 0&&en&&en.exports&&hh(vn))try{Pn=rc._abbr,In=commonjsRequire,In("./locale/"+vn),gi(Pn)}catch{Os[vn]=null}return Os[vn]}function gi(vn,Pn){var In;return vn&&(hn(Pn)?In=ua(vn):In=Ii(vn,Pn),In?rc=In:typeof console<"u"&&console.warn&&console.warn("Locale "+vn+" not found. Did you forget to load it?")),rc._abbr}function Ii(vn,Pn){if(Pn!==null){var In,li=ou;if(Pn.abbr=vn,Os[vn]!=null)ci("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),li=Os[vn]._config;else if(Pn.parentLocale!=null)if(Os[Pn.parentLocale]!=null)li=Os[Pn.parentLocale]._config;else if(In=An(Pn.parentLocale),In!=null)li=In._config;else return Wc[Pn.parentLocale]||(Wc[Pn.parentLocale]=[]),Wc[Pn.parentLocale].push({name:vn,config:Pn}),null;return Os[vn]=new ji(Ci(li,Pn)),Wc[vn]&&Wc[vn].forEach(function(Di){Ii(Di.name,Di.config)}),gi(vn),Os[vn]}else return delete Os[vn],null}function Xi(vn,Pn){if(Pn!=null){var In,li,Di=ou;Os[vn]!=null&&Os[vn].parentLocale!=null?Os[vn].set(Ci(Os[vn]._config,Pn)):(li=An(vn),li!=null&&(Di=li._config),Pn=Ci(Di,Pn),li==null&&(Pn.abbr=vn),In=new ji(Pn),In.parentLocale=Os[vn],Os[vn]=In),gi(vn)}else Os[vn]!=null&&(Os[vn].parentLocale!=null?(Os[vn]=Os[vn].parentLocale,vn===gi()&&gi(vn)):Os[vn]!=null&&delete Os[vn]);return Os[vn]}function ua(vn){var Pn;if(vn&&vn._locale&&vn._locale._abbr&&(vn=vn._locale._abbr),!vn)return rc;if(!rn(vn)){if(Pn=An(vn),Pn)return Pn;vn=[vn]}return _d(vn)}function Aa(){return Yi(Os)}function Va(vn){var Pn,In=vn._a;return In&&Tn(vn).overflow===-2&&(Pn=In[Fa]<0||In[Fa]>11?Fa:In[us]<1||In[us]>$u(In[ia],In[Fa])?us:In[as]<0||In[as]>24||In[as]===24&&(In[Cs]!==0||In[to]!==0||In[co]!==0)?as:In[Cs]<0||In[Cs]>59?Cs:In[to]<0||In[to]>59?to:In[co]<0||In[co]>999?co:-1,Tn(vn)._overflowDayOfYear&&(Pn<ia||Pn>us)&&(Pn=us),Tn(vn)._overflowWeeks&&Pn===-1&&(Pn=tc),Tn(vn)._overflowWeekday&&Pn===-1&&(Pn=Vc),Tn(vn).overflow=Pn),vn}var Ms=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vs=/Z|[+-]\d\d(?::?\d\d)?/,Rs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ro=/^\/?Date\((-?\d+)/i,Qo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Lo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jo(vn){var Pn,In,li=vn._i,Di=Ms.exec(li)||xs.exec(li),Qi,Ca,hs,Fs,Zs=Rs.length,$c=Qs.length;if(Di){for(Tn(vn).iso=!0,Pn=0,In=Zs;Pn<In;Pn++)if(Rs[Pn][1].exec(Di[1])){Ca=Rs[Pn][0],Qi=Rs[Pn][2]!==!1;break}if(Ca==null){vn._isValid=!1;return}if(Di[3]){for(Pn=0,In=$c;Pn<In;Pn++)if(Qs[Pn][1].exec(Di[3])){hs=(Di[2]||" ")+Qs[Pn][0];break}if(hs==null){vn._isValid=!1;return}}if(!Qi&&hs!=null){vn._isValid=!1;return}if(Di[4])if(Vs.exec(Di[4]))Fs="Z";else{vn._isValid=!1;return}vn._f=Ca+(hs||"")+(Fs||""),Io(vn)}else vn._isValid=!1}function zo(vn,Pn,In,li,Di,Qi){var Ca=[dc(vn),tu.indexOf(Pn),parseInt(In,10),parseInt(li,10),parseInt(Di,10)];return Qi&&Ca.push(parseInt(Qi,10)),Ca}function dc(vn){var Pn=parseInt(vn,10);return Pn<=49?2e3+Pn:Pn<=999?1900+Pn:Pn}function Uc(vn){return vn.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _c(vn,Pn,In){if(vn){var li=ku.indexOf(vn),Di=new Date(Pn[0],Pn[1],Pn[2]).getDay();if(li!==Di)return Tn(In).weekdayMismatch=!0,In._isValid=!1,!1}return!0}function Hu(vn,Pn,In){if(vn)return Lo[vn];if(Pn)return 0;var li=parseInt(In,10),Di=li%100,Qi=(li-Di)/100;return Qi*60+Di}function lu(vn){var Pn=Qo.exec(Uc(vn._i)),In;if(Pn){if(In=zo(Pn[4],Pn[3],Pn[2],Pn[5],Pn[6],Pn[7]),!_c(Pn[1],In,vn))return;vn._a=In,vn._tzm=Hu(Pn[8],Pn[9],Pn[10]),vn._d=Hc.apply(null,vn._a),vn._d.setUTCMinutes(vn._d.getUTCMinutes()-vn._tzm),Tn(vn).rfc2822=!0}else vn._isValid=!1}function pc(vn){var Pn=Ro.exec(vn._i);if(Pn!==null){vn._d=new Date(+Pn[1]);return}if(jo(vn),vn._isValid===!1)delete vn._isValid;else return;if(lu(vn),vn._isValid===!1)delete vn._isValid;else return;vn._strict?vn._isValid=!1:nn.createFromInputFallback(vn)}nn.createFromInputFallback=fi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(vn){vn._d=new Date(vn._i+(vn._useUTC?" UTC":""))});function ic(vn,Pn,In){return vn??Pn??In}function id(vn){var Pn=new Date(nn.now());return vn._useUTC?[Pn.getUTCFullYear(),Pn.getUTCMonth(),Pn.getUTCDate()]:[Pn.getFullYear(),Pn.getMonth(),Pn.getDate()]}function cu(vn){var Pn,In,li=[],Di,Qi,Ca;if(!vn._d){for(Di=id(vn),vn._w&&vn._a[us]==null&&vn._a[Fa]==null&&Mu(vn),vn._dayOfYear!=null&&(Ca=ic(vn._a[ia],Di[ia]),(vn._dayOfYear>Yo(Ca)||vn._dayOfYear===0)&&(Tn(vn)._overflowDayOfYear=!0),In=Hc(Ca,0,vn._dayOfYear),vn._a[Fa]=In.getUTCMonth(),vn._a[us]=In.getUTCDate()),Pn=0;Pn<3&&vn._a[Pn]==null;++Pn)vn._a[Pn]=li[Pn]=Di[Pn];for(;Pn<7;Pn++)vn._a[Pn]=li[Pn]=vn._a[Pn]==null?Pn===2?1:0:vn._a[Pn];vn._a[as]===24&&vn._a[Cs]===0&&vn._a[to]===0&&vn._a[co]===0&&(vn._nextDay=!0,vn._a[as]=0),vn._d=(vn._useUTC?Hc:Xo).apply(null,li),Qi=vn._useUTC?vn._d.getUTCDay():vn._d.getDay(),vn._tzm!=null&&vn._d.setUTCMinutes(vn._d.getUTCMinutes()-vn._tzm),vn._nextDay&&(vn._a[as]=24),vn._w&&typeof vn._w.d<"u"&&vn._w.d!==Qi&&(Tn(vn).weekdayMismatch=!0)}}function Mu(vn){var Pn,In,li,Di,Qi,Ca,hs,Fs,Zs;Pn=vn._w,Pn.GG!=null||Pn.W!=null||Pn.E!=null?(Qi=1,Ca=4,In=ic(Pn.GG,vn._a[ia],no(Ds(),1,4).year),li=ic(Pn.W,1),Di=ic(Pn.E,1),(Di<1||Di>7)&&(Fs=!0)):(Qi=vn._locale._week.dow,Ca=vn._locale._week.doy,Zs=no(Ds(),Qi,Ca),In=ic(Pn.gg,vn._a[ia],Zs.year),li=ic(Pn.w,Zs.week),Pn.d!=null?(Di=Pn.d,(Di<0||Di>6)&&(Fs=!0)):Pn.e!=null?(Di=Pn.e+Qi,(Pn.e<0||Pn.e>6)&&(Fs=!0)):Di=Qi),li<1||li>Co(In,Qi,Ca)?Tn(vn)._overflowWeeks=!0:Fs!=null?Tn(vn)._overflowWeekday=!0:(hs=ru(In,li,Di,Qi,Ca),vn._a[ia]=hs.year,vn._dayOfYear=hs.dayOfYear)}nn.ISO_8601=function(){},nn.RFC_2822=function(){};function Io(vn){if(vn._f===nn.ISO_8601){jo(vn);return}if(vn._f===nn.RFC_2822){lu(vn);return}vn._a=[],Tn(vn).empty=!0;var Pn=""+vn._i,In,li,Di,Qi,Ca,hs=Pn.length,Fs=0,Zs,$c;for(Di=Oi(vn._f,vn._locale).match(Wi)||[],$c=Di.length,In=0;In<$c;In++)Qi=Di[In],li=(Pn.match(Jo(Qi,vn))||[])[0],li&&(Ca=Pn.substr(0,Pn.indexOf(li)),Ca.length>0&&Tn(vn).unusedInput.push(Ca),Pn=Pn.slice(Pn.indexOf(li)+li.length),Fs+=li.length),Ni[Qi]?(li?Tn(vn).empty=!1:Tn(vn).unusedTokens.push(Qi),ho(Qi,li,vn)):vn._strict&&!li&&Tn(vn).unusedTokens.push(Qi);Tn(vn).charsLeftOver=hs-Fs,Pn.length>0&&Tn(vn).unusedInput.push(Pn),vn._a[as]<=12&&Tn(vn).bigHour===!0&&vn._a[as]>0&&(Tn(vn).bigHour=void 0),Tn(vn).parsedDateParts=vn._a.slice(0),Tn(vn).meridiem=vn._meridiem,vn._a[as]=pd(vn._locale,vn._a[as],vn._meridiem),Zs=Tn(vn).era,Zs!==null&&(vn._a[ia]=vn._locale.erasConvertYear(Zs,vn._a[ia])),cu(vn),Va(vn)}function pd(vn,Pn,In){var li;return In==null?Pn:vn.meridiemHour!=null?vn.meridiemHour(Pn,In):(vn.isPM!=null&&(li=vn.isPM(In),li&&Pn<12&&(Pn+=12),!li&&Pn===12&&(Pn=0)),Pn)}function gd(vn){var Pn,In,li,Di,Qi,Ca,hs=!1,Fs=vn._f.length;if(Fs===0){Tn(vn).invalidFormat=!0,vn._d=new Date(NaN);return}for(Di=0;Di<Fs;Di++)Qi=0,Ca=!1,Pn=bi({},vn),vn._useUTC!=null&&(Pn._useUTC=vn._useUTC),Pn._f=vn._f[Di],Io(Pn),En(Pn)&&(Ca=!0),Qi+=Tn(Pn).charsLeftOver,Qi+=Tn(Pn).unusedTokens.length*10,Tn(Pn).score=Qi,hs?Qi<li&&(li=Qi,In=Pn):(li==null||Qi<li||Ca)&&(li=Qi,In=Pn,Ca&&(hs=!0));fn(vn,In||Pn)}function Cd(vn){if(!vn._d){var Pn=ca(vn._i),In=Pn.day===void 0?Pn.date:Pn.day;vn._a=yn([Pn.year,Pn.month,In,Pn.hour,Pn.minute,Pn.second,Pn.millisecond],function(li){return li&&parseInt(li,10)}),cu(vn)}}function rh(vn){var Pn=new _i(Va(To(vn)));return Pn._nextDay&&(Pn.add(1,"d"),Pn._nextDay=void 0),Pn}function To(vn){var Pn=vn._i,In=vn._f;return vn._locale=vn._locale||ua(vn._l),Pn===null||In===void 0&&Pn===""?Rn({nullInput:!0}):(typeof Pn=="string"&&(vn._i=Pn=vn._locale.preparse(Pn)),oi(Pn)?new _i(Va(Pn)):(gn(Pn)?vn._d=Pn:rn(In)?gd(vn):In?Io(vn):Nc(vn),En(vn)||(vn._d=null),vn))}function Nc(vn){var Pn=vn._i;hn(Pn)?vn._d=new Date(nn.now()):gn(Pn)?vn._d=new Date(Pn.valueOf()):typeof Pn=="string"?pc(vn):rn(Pn)?(vn._a=yn(Pn.slice(0),function(In){return parseInt(In,10)}),cu(vn)):on(Pn)?Cd(vn):mn(Pn)?vn._d=new Date(Pn):nn.createFromInputFallback(vn)}function ad(vn,Pn,In,li,Di){var Qi={};return(Pn===!0||Pn===!1)&&(li=Pn,Pn=void 0),(In===!0||In===!1)&&(li=In,In=void 0),(on(vn)&&dn(vn)||rn(vn)&&vn.length===0)&&(vn=void 0),Qi._isAMomentObject=!0,Qi._useUTC=Qi._isUTC=Di,Qi._l=In,Qi._i=vn,Qi._f=Pn,Qi._strict=li,rh(Qi)}function Ds(vn,Pn,In,li){return ad(vn,Pn,In,li,!1)}var qc=fi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var vn=Ds.apply(null,arguments);return this.isValid()&&vn.isValid()?vn<this?this:vn:Rn()}),Gc=fi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var vn=Ds.apply(null,arguments);return this.isValid()&&vn.isValid()?vn>this?this:vn:Rn()});function yd(vn,Pn){var In,li;if(Pn.length===1&&rn(Pn[0])&&(Pn=Pn[0]),!Pn.length)return Ds();for(In=Pn[0],li=1;li<Pn.length;++li)(!Pn[li].isValid()||Pn[li][vn](In))&&(In=Pn[li]);return In}function ju(){var vn=[].slice.call(arguments,0);return yd("isBefore",vn)}function zu(){var vn=[].slice.call(arguments,0);return yd("isAfter",vn)}var Lu=function(){return Date.now?Date.now():+new Date},Wo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Zl(vn){var Pn,In=!1,li,Di=Wo.length;for(Pn in vn)if(sn(vn,Pn)&&!(Es.call(Wo,Pn)!==-1&&(vn[Pn]==null||!isNaN(vn[Pn]))))return!1;for(li=0;li<Di;++li)if(vn[Wo[li]]){if(In)return!1;parseFloat(vn[Wo[li]])!==os(vn[Wo[li]])&&(In=!0)}return!0}function uu(){return this._isValid}function Wu(){return Gs(NaN)}function vc(vn){var Pn=ca(vn),In=Pn.year||0,li=Pn.quarter||0,Di=Pn.month||0,Qi=Pn.week||Pn.isoWeek||0,
vendor: 4,397 bytes, line 144
144Ca=Pn.day||0,hs=Pn.hour||0,Fs=Pn.minute||0,Zs=Pn.second||0,$c=Pn.millisecond||0;this._isValid=Zl(Pn),this._milliseconds=+$c+Zs*1e3+Fs*6e4+hs*1e3*60*60,this._days=+Ca+Qi*7,this._months=+Di+li*3+In*12,this._data={},this._locale=ua(),this._bubble()}function du(vn){return vn instanceof vc}function hc(vn){return vn<0?Math.round(-1*vn)*-1:Math.round(vn)}function Uo(vn,Pn,In){var li=Math.min(vn.length,Pn.length),Di=Math.abs(vn.length-Pn.length),Qi=0,Ca;for(Ca=0;Ca<li;Ca++)os(vn[Ca])!==os(Pn[Ca])&&Qi++;return Qi+Di}function hu(vn,Pn){yi(vn,0,0,function(){var In=this.utcOffset(),li="+";return In<0&&(In=-In,li="-"),li+$i(~~(In/60),2)+Pn+$i(~~In%60,2)})}hu("Z",":"),hu("ZZ",""),Ma("Z",bs),Ma("ZZ",bs),ys(["Z","ZZ"],function(vn,Pn,In){In._useUTC=!0,In._tzm=Ho(bs,vn)});var xu=/([\+\-]|\d\d)/gi;function Ho(vn,Pn){var In=(Pn||"").match(vn),li,Di,Qi;return In===null?null:(li=In[In.length-1]||[],Di=(li+"").match(xu)||["-",0,0],Qi=+(Di[1]*60)+os(Di[2]),Qi===0?0:Di[0]==="+"?Qi:-Qi)}function Zc(vn,Pn){var In,li;return Pn._isUTC?(In=Pn.clone(),li=(oi(vn)||gn(vn)?vn.valueOf():Ds(vn).valueOf())-In.valueOf(),In._d.setTime(In._d.valueOf()+li),nn.updateOffset(In,!1),In):Ds(vn).local()}function Su(vn){return-Math.round(vn._d.getTimezoneOffset())}nn.updateOffset=function(){};function vd(vn,Pn,In){var li=this._offset||0,Di;if(!this.isValid())return vn!=null?this:NaN;if(vn!=null){if(typeof vn=="string"){if(vn=Ho(bs,vn),vn===null)return this}else Math.abs(vn)<16&&!In&&(vn=vn*60);return!this._isUTC&&Pn&&(Di=Su(this)),this._offset=vn,this._isUTC=!0,Di!=null&&this.add(Di,"m"),li!==vn&&(!Pn||this._changeInProgress?wd(this,Gs(vn-li,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,nn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?li:Su(this)}function sd(vn,Pn){return vn!=null?(typeof vn!="string"&&(vn=-vn),this.utcOffset(vn,Pn),this):-this.utcOffset()}function Tu(vn){return this.utcOffset(0,vn)}function fu(vn){return this._isUTC&&(this.utcOffset(0,vn),this._isUTC=!1,vn&&this.subtract(Su(this),"m")),this}function Ec(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var vn=Ho(oo,this._i);vn!=null?this.utcOffset(vn):this.utcOffset(0,!0)}return this}function Du(vn){return this.isValid()?(vn=vn?Ds(vn).utcOffset():0,(this.utcOffset()-vn)%60===0):!1}function Pu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function od(){if(!hn(this._isDSTShifted))return this._isDSTShifted;var vn={},Pn;return bi(vn,this),vn=To(vn),vn._a?(Pn=vn._isUTC?bn(vn._a):Ds(vn._a),this._isDSTShifted=this.isValid()&&Uo(vn._a,Pn.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Kc(){return this.isValid()?!this._isUTC:!1}function Oc(){return this.isValid()?this._isUTC:!1}function _o(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gs(vn,Pn){var In=vn,li=null,Di,Qi,Ca;return du(vn)?In={ms:vn._milliseconds,d:vn._days,M:vn._months}:mn(vn)||!isNaN(+vn)?(In={},Pn?In[Pn]=+vn:In.milliseconds=+vn):(li=xo.exec(vn))?(Di=li[1]==="-"?-1:1,In={y:0,d:os(li[us])*Di,h:os(li[as])*Di,m:os(li[Cs])*Di,s:os(li[to])*Di,ms:os(hc(li[co]*1e3))*Di}):(li=qo.exec(vn))?(Di=li[1]==="-"?-1:1,In={y:Go(li[2],Di),M:Go(li[3],Di),w:Go(li[4],Di),d:Go(li[5],Di),h:Go(li[6],Di),m:Go(li[7],Di),s:Go(li[8],Di)}):In==null?In={}:typeof In=="object"&&("from"in In||"to"in In)&&(Ca=Uu(Ds(In.from),Ds(In.to)),In={},In.ms=Ca.milliseconds,In.M=Ca.months),Qi=new vc(In),du(vn)&&sn(vn,"_locale")&&(Qi._locale=vn._locale),du(vn)&&sn(vn,"_isValid")&&(Qi._isValid=vn._isValid),Qi}Gs.fn=vc.prototype,Gs.invalid=Wu;function Go(vn,Pn){var In=vn&&parseFloat(vn.replace(",","."));return(isNaN(In)?0:In)*Pn}function wc(vn,Pn){var In={};return In.months=Pn.month()-vn.month()+(Pn.year()-vn.year())*12,vn.clone().add(In.months,"M").isAfter(Pn)&&--In.months,In.milliseconds=+Pn-+vn.clone().add(In.months,"M"),In}function Uu(vn,Pn){var In;return vn.isValid()&&Pn.isValid()?(Pn=Zc(Pn,vn),vn.isBefore(Pn)?In=wc(vn,Pn):(In=wc(Pn,vn),In.milliseconds=-In.milliseconds,In.months=-In.months),In):{milliseconds:0,months:0}}function Bd(vn,Pn){return function(In,li){var Di,Qi;
vendor: 21,370 bytes, line 144
144return li!==null&&!isNaN(+li)&&(ci(Pn,"moment()."+Pn+"(period, number) is deprecated. Please use moment()."+Pn+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Qi=In,In=li,li=Qi),Di=Gs(In,li),wd(this,Di,vn),this}}function wd(vn,Pn,In,li){var Di=Pn._milliseconds,Qi=hc(Pn._days),Ca=hc(Pn._months);vn.isValid()&&(li=li??!0,Ca&&nu(vn,Tc(vn,"Month")+Ca*In),Qi&&Ku(vn,"Date",Tc(vn,"Date")+Qi*In),Di&&vn._d.setTime(vn._d.valueOf()+Di*In),li&&nn.updateOffset(vn,Qi||Ca))}var Oh=Bd(1,"add"),Mh=Bd(-1,"subtract");function fh(vn){return typeof vn=="string"||vn instanceof String}function Ad(vn){return oi(vn)||gn(vn)||fh(vn)||mn(vn)||Nu(vn)||Rh(vn)||vn===null||vn===void 0}function Rh(vn){var Pn=on(vn)&&!dn(vn),In=!1,li=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Di,Qi,Ca=li.length;for(Di=0;Di<Ca;Di+=1)Qi=li[Di],In=In||sn(vn,Qi);return Pn&&In}function Nu(vn){var Pn=rn(vn),In=!1;return Pn&&(In=vn.filter(function(li){return!mn(li)&&fh(vn)}).length===0),Pn&&In}function Lh(vn){var Pn=on(vn)&&!dn(vn),In=!1,li=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],Di,Qi;for(Di=0;Di<li.length;Di+=1)Qi=li[Di],In=In||sn(vn,Qi);return Pn&&In}function xh(vn,Pn){var In=vn.diff(Pn,"days",!0);return In<-6?"sameElse":In<-1?"lastWeek":In<0?"lastDay":In<1?"sameDay":In<2?"nextDay":In<7?"nextWeek":"sameElse"}function Ih(vn,Pn){arguments.length===1&&(arguments[0]?Ad(arguments[0])?(vn=arguments[0],Pn=void 0):Lh(arguments[0])&&(Pn=arguments[0],vn=void 0):(vn=void 0,Pn=void 0));var In=vn||Ds(),li=Zc(In,this).startOf("day"),Di=nn.calendarFormat(this,li)||"sameElse",Qi=Pn&&(di(Pn[Di])?Pn[Di].call(this,In):Pn[Di]);return this.format(Qi||this.localeData().calendar(Di,this,Ds(In)))}function Cu(){return new _i(this)}function Sh(vn,Pn){var In=oi(vn)?vn:Ds(vn);return this.isValid()&&In.isValid()?(Pn=qi(Pn)||"millisecond",Pn==="millisecond"?this.valueOf()>In.valueOf():In.valueOf()<this.clone().startOf(Pn).valueOf()):!1}function Th(vn,Pn){var In=oi(vn)?vn:Ds(vn);return this.isValid()&&In.isValid()?(Pn=qi(Pn)||"millisecond",Pn==="millisecond"?this.valueOf()<In.valueOf():this.clone().endOf(Pn).valueOf()<In.valueOf()):!1}function Yd(vn,Pn,In,li){var Di=oi(vn)?vn:Ds(vn),Qi=oi(Pn)?Pn:Ds(Pn);return this.isValid()&&Di.isValid()&&Qi.isValid()?(li=li||"()",(li[0]==="("?this.isAfter(Di,In):!this.isBefore(Di,In))&&(li[1]===")"?this.isBefore(Qi,In):!this.isAfter(Qi,In))):!1}function Fh(vn,Pn){var In=oi(vn)?vn:Ds(vn),li;return this.isValid()&&In.isValid()?(Pn=qi(Pn)||"millisecond",Pn==="millisecond"?this.valueOf()===In.valueOf():(li=In.valueOf(),this.clone().startOf(Pn).valueOf()<=li&&li<=this.clone().endOf(Pn).valueOf())):!1}function $d(vn,Pn){return this.isSame(vn,Pn)||this.isAfter(vn,Pn)}function ld(vn,Pn){return this.isSame(vn,Pn)||this.isBefore(vn,Pn)}function Cc(vn,Pn,In){var li,Di,Qi;if(!this.isValid())return NaN;if(li=Zc(vn,this),!li.isValid())return NaN;switch(Di=(li.utcOffset()-this.utcOffset())*6e4,Pn=qi(Pn),Pn){case"year":Qi=ac(this,li)/12;break;case"month":Qi=ac(this,li);break;case"quarter":Qi=ac(this,li)/3;break;case"second":Qi=(this-li)/1e3;break;case"minute":Qi=(this-li)/6e4;break;case"hour":Qi=(this-li)/36e5;break;case"day":Qi=(this-li-Di)/864e5;break;case"week":Qi=(this-li-Di)/6048e5;break;default:Qi=this-li}return In?Qi:fs(Qi)}function ac(vn,Pn){if(vn.date()<Pn.date())return-ac(Pn,vn);var In=(Pn.year()-vn.year())*12+(Pn.month()-vn.month()),li=vn.clone().add(In,"months"),Di,Qi;return Pn-li<0?(Di=vn.clone().add(In-1,"months"),Qi=(Pn-li)/(li-Di)):(Di=vn.clone().add(In+1,"months"),Qi=(Pn-li)/(Di-li)),-(In+Qi)||0}nn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",nn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ih(vn){if(!this.isValid())return null;var Pn=vn!==!0,In=Pn?this.clone().utc():this;return In.year()<0||In.year()>9999?Ji(In,Pn?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):di(Date.prototype.toISOString)?Pn?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ji(In,"Z")):Ji(In,Pn?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Dh(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var vn="moment",Pn="",In,li,Di,Qi;return this.isLocal()||(vn=this.utcOffset()===0?"moment.utc":"moment.parseZone",Pn="Z"),In="["+vn+'("]',li=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Di="-MM-DD[T]HH:mm:ss.SSS",Qi=Pn+'[")]',this.format(In+li+Di+Qi)}function ah(vn){vn||(vn=this.isUtc()?nn.defaultFormatUtc:nn.defaultFormat);var Pn=Ji(this,vn);return this.localeData().postformat(Pn)}function sh(vn,Pn){return this.isValid()&&(oi(vn)&&vn.isValid()||Ds(vn).isValid())?Gs({to:this,from:vn}).locale(this.locale()).humanize(!Pn):this.localeData().invalidDate()}function _h(vn){return this.from(Ds(),vn)}function Vh(vn,Pn){return this.isValid()&&(oi(vn)&&vn.isValid()||Ds(vn).isValid())?Gs({from:this,to:vn}).locale(this.locale()).humanize(!Pn):this.localeData().invalidDate()}function ph(vn){return this.to(Ds(),vn)}function Ed(vn){var Pn;return vn===void 0?this._locale._abbr:(Pn=ua(vn),Pn!=null&&(this._locale=Pn),this)}var Od=fi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(vn){return vn===void 0?this.localeData():this.locale(vn)});function un(){return this._locale}var _n=1e3,kn=60*_n,$n=60*kn,ai=(365*400+97)*24*$n;function Mi(vn,Pn){return(vn%Pn+Pn)%Pn}function Gi(vn,Pn,In){return vn<100&&vn>=0?new Date(vn+400,Pn,In)-ai:new Date(vn,Pn,In).valueOf()}function ma(vn,Pn,In){return vn<100&&vn>=0?Date.UTC(vn+400,Pn,In)-ai:Date.UTC(vn,Pn,In)}function Sa(vn){var Pn,In;if(vn=qi(vn),vn===void 0||vn==="millisecond"||!this.isValid())return this;switch(In=this._isUTC?ma:Gi,vn){case"year":Pn=In(this.year(),0,1);break;case"quarter":Pn=In(this.year(),this.month()-this.month()%3,1);break;case"month":Pn=In(this.year(),this.month(),1);break;case"week":Pn=In(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Pn=In(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Pn=In(this.year(),this.month(),this.date());break;case"hour":Pn=this._d.valueOf(),Pn-=Mi(Pn+(this._isUTC?0:this.utcOffset()*kn),$n);break;case"minute":Pn=this._d.valueOf(),Pn-=Mi(Pn,kn);break;case"second":Pn=this._d.valueOf(),Pn-=Mi(Pn,_n);break}return this._d.setTime(Pn),nn.updateOffset(this,!0),this}function Wa(vn){var Pn,In;if(vn=qi(vn),vn===void 0||vn==="millisecond"||!this.isValid())return this;switch(In=this._isUTC?ma:Gi,vn){case"year":Pn=In(this.year()+1,0,1)-1;break;case"quarter":Pn=In(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Pn=In(this.year(),this.month()+1,1)-1;break;case"week":Pn=In(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Pn=In(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Pn=In(this.year(),this.month(),this.date()+1)-1;break;case"hour":Pn=this._d.valueOf(),Pn+=$n-Mi(Pn+(this._isUTC?0:this.utcOffset()*kn),$n)-1;break;case"minute":Pn=this._d.valueOf(),Pn+=kn-Mi(Pn,kn)-1;break;case"second":Pn=this._d.valueOf(),Pn+=_n-Mi(Pn,_n)-1;break}return this._d.setTime(Pn),nn.updateOffset(this,!0),this}function ms(){return this._d.valueOf()-(this._offset||0)*6e4}function Ys(){return Math.floor(this.valueOf()/1e3)}function eo(){return new Date(this.valueOf())}function bc(){var vn=this;return[vn.year(),vn.month(),vn.date(),vn.hour(),vn.minute(),vn.second(),vn.millisecond()]}function sc(){var vn=this;return{years:vn.year(),months:vn.month(),date:vn.date(),hours:vn.hours(),minutes:vn.minutes(),seconds:vn.seconds(),milliseconds:vn.milliseconds()}}function Jc(){return this.isValid()?this.toISOString():null}function Bc(){return En(this)}function Rd(){return fn({},Tn(this))}function Xh(){return Tn(this).overflow}function cd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}yi("N",0,0,"eraAbbr"),yi("NN",0,0,"eraAbbr"),yi("NNN",0,0,"eraAbbr"),yi("NNNN",0,0,"eraName"),yi("NNNNN",0,0,"eraNarrow"),yi("y",["y",1],"yo","eraYear"),yi("y",["yy",2],0,"eraYear"),yi("y",["yyy",3],0,"eraYear"),yi("y",["yyyy",4],0,"eraYear"),Ma("N",kd),Ma("NN",kd),Ma("NNN",kd),Ma("NNNN",jh),Ma("NNNNN",Lf),ys(["N","NN","NNN","NNNN","NNNNN"],function(vn,Pn,In,li){var Di=In._locale.erasParse(vn,li,In._strict);Di?Tn(In).era=Di:Tn(In).invalidEra=vn}),Ma("y",Ws),Ma("yy",Ws),Ma("yyy",Ws),Ma("yyyy",Ws),Ma("yo",zh),ys(["y","yy","yyy","yyyy"],ia),ys(["yo"],function(vn,Pn,In,li){var Di;In._locale._eraYearOrdinalRegex&&(Di=vn.match(In._locale._eraYearOrdinalRegex)),In._locale.eraYearOrdinalParse?Pn[ia]=In._locale.eraYearOrdinalParse(vn,Di):Pn[ia]=parseInt(vn,10)});function mu(vn,Pn){var In,li,Di,Qi=this._eras||ua("en")._eras;for(In=0,li=Qi.length;In<li;++In){switch(typeof Qi[In].since){case"string":Di=nn(Qi[In].since).startOf("day"),Qi[In].since=Di.valueOf();break}switch(typeof Qi[In].until){case"undefined":Qi[In].until=1/0;break;case"string":Di=nn(Qi[In].until).startOf("day").valueOf(),Qi[In].until=Di.valueOf();break}}return Qi}function Bu(vn,Pn,In){var li,Di,Qi=this.eras(),Ca,hs,Fs;for(vn=vn.toUpperCase(),li=0,Di=Qi.length;li<Di;++li)if(Ca=Qi[li].name.toUpperCase(),hs=Qi[li].abbr.toUpperCase(),Fs=Qi[li].narrow.toUpperCase(),In)switch(Pn){case"N":case"NN":case"NNN":if(hs===vn)return Qi[li];break;case"NNNN":if(Ca===vn)return Qi[li];break;case"NNNNN":if(Fs===vn)return Qi[li];break}else if([Ca,hs,Fs].indexOf(vn)>=0)return Qi[li]}function Qh(vn,Pn){var In=vn.since<=vn.until?1:-1;return Pn===void 0?nn(vn.since).year():nn(vn.since).year()+(Pn-vn.offset)*In}function Ph(){var vn,Pn,In,li=this.localeData().eras();for(vn=0,Pn=li.length;vn<Pn;++vn)if(In=this.clone().startOf("day").valueOf(),li[vn].since<=In&&In<=li[vn].until||li[vn].until<=In&&In<=li[vn].since)return li[vn].name;return""}function Do(){var vn,Pn,In,li=this.localeData().eras();for(vn=0,Pn=li.length;vn<Pn;++vn)if(In=this.clone().startOf("day").valueOf(),li[vn].since<=In&&In<=li[vn].until||li[vn].until<=In&&In<=li[vn].since)return li[vn].narrow;return""}function Mc(){var vn,Pn,In,li=this.localeData().eras();for(vn=0,Pn=li.length;vn<Pn;++vn)if(In=this.clone().startOf("day").valueOf(),li[vn].since<=In&&In<=li[vn].until||li[vn].until<=In&&In<=li[vn].since)return li[vn].abbr;return""}function ef(){var vn,Pn,In,li,Di=this.localeData().eras();for(vn=0,Pn=Di.length;vn<Pn;++vn)if(In=Di[vn].since<=Di[vn].until?1:-1,li=this.clone().startOf("day").valueOf(),Di[vn].since<=li&&li<=Di[vn].until||Di[vn].until<=li&&li<=Di[vn].since)return(this.year()-nn(Di[vn].since).year())*In+Di[vn].offset;return this.year()}function tf(vn){return sn(this,"_erasNameRegex")||Id.call(this),vn?this._erasNameRegex:this._erasRegex}function Hh(vn){return sn(this,"_erasAbbrRegex")||Id.call(this),vn?this._erasAbbrRegex:this._erasRegex}function gh(vn){return sn(this,"_erasNarrowRegex")||Id.call(this),vn?this._erasNarrowRegex:this._erasRegex}function kd(vn,Pn){return Pn.erasAbbrRegex(vn)}function jh(vn,Pn){return Pn.erasNameRegex(vn)}function Lf(vn,Pn){return Pn.erasNarrowRegex(vn)}function zh(vn,Pn){return Pn._eraYearOrdinalRegex||Ws}function Id(){var vn=[],Pn=[],In=[],li=[],Di,Qi,Ca,hs,Fs,Zs=this.eras();for(Di=0,Qi=Zs.length;Di<Qi;++Di)Ca=ko(Zs[Di].name),hs=ko(Zs[Di].abbr),Fs=ko(Zs[Di].narrow),Pn.push(Ca),vn.push(hs),In.push(Fs),li.push(Ca),li.push(hs),li.push(Fs);this._erasRegex=new RegExp("^("+li.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Pn.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+vn.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+In.join("|")+")","i")}yi(0,["gg",2],0,function(){return this.weekYear()%100}),yi(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qu(vn,Pn){yi(0,[vn,vn.length],0,Pn)}qu("gggg","weekYear"),qu("ggggg","weekYear"),qu("GGGG","isoWeekYear"),qu("GGGGG","isoWeekYear"),Ma("G",ps),Ma("g",ps),Ma("GG",Xa,Ea),Ma("gg",Xa,Ea),Ma("GGGG",$s,vs),Ma("gggg",$s,vs),Ma("GGGGG",Ps,rs),Ma("ggggg",Ps,rs),Vo(["gggg","ggggg","GGGG","GGGGG"],function(vn,Pn,In,li){Pn[li.substr(0,2)]=os(vn)}),Vo(["gg","GG"],function(vn,Pn,In,li){Pn[li]=nn.parseTwoDigitYear(vn)});function nf(vn){return rf.call(this,vn,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function xf(vn){return rf.call(this,vn,this.isoWeek(),this.isoWeekday(),1,4)}function lf(){return Co(this.year(),1,4)}function Sf(){return Co(this.isoWeekYear(),1,4)}function Tf(){var vn=this.localeData()._week;return Co(this.year(),vn.dow,vn.doy)}function Df(){var vn=this.localeData()._week;return Co(this.weekYear(),vn.dow,vn.doy)}function rf(vn,Pn,In,li,Di){var Qi;return vn==null?no(this,li,Di).year:(Qi=Co(vn,li,Di),Pn>Qi&&(Pn=Qi),Pf.call(this,vn,Pn,In,li,Di))}function Pf(vn,Pn,In,li,Di){var Qi=ru(vn,Pn,In,li,Di),Ca=Hc(Qi.year,0,Qi.dayOfYear);return this.year(Ca.getUTCFullYear()),this.month(Ca.getUTCMonth()),this.date(Ca.getUTCDate()),this}yi("Q",0,"Qo","quarter"),Ma("Q",pa),ys("Q",function(vn,Pn){Pn[Fa]=(os(vn)-1)*3});function Nf(vn){return vn==null?Math.ceil((this.month()+1)/3):this.month((vn-1)*3+this.month()%3)}yi("D",["DD",2],"Do","date"),Ma("D",Xa,cs),Ma("DD",Xa,Ea),Ma("Do",function(vn,Pn){return vn?Pn._dayOfMonthOrdinalParse||Pn._ordinalParse:Pn._dayOfMonthOrdinalParseLenient}),ys(["D","DD"],us),ys("Do",function(vn,Pn){Pn[us]=os(vn.match(Xa)[0])});var Wh=nc("Date",!0);yi("DDD",["DDDD",3],"DDDo","dayOfYear"),Ma("DDD",Is),Ma("DDDD",ns),ys(["DDD","DDDD"],function(vn,Pn,In){In._dayOfYear=os(vn)});function Uh(vn){var Pn=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return vn==null?Pn:this.add(vn-Pn,"d")}yi("m",["mm",2],0,"minute"),Ma("m",Xa,ws),Ma("mm",Xa,Ea),ys(["m","mm"],Cs);var Cf=nc("Minutes",!1);yi("s",["ss",2],0,"second"),Ma("s",Xa,ws),Ma("ss",Xa,Ea),ys(["s","ss"],to);var Bf=nc("Seconds",!1);yi("S",0,0,function(){return~~(this.millisecond()/100)}),yi(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),yi(0,["SSS",3],0,"millisecond"),yi(0,["SSSS",4],0,function(){return this.millisecond()*10}),yi(0,["SSSSS",5],0,function(){return this.millisecond()*100}),yi(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),yi(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),yi(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),yi(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ma("S",Is,pa),Ma("SS",Is,Ea),Ma("SSS",Is,ns);var Ac,wn;for(Ac="SSSS";Ac.length<=9;Ac+="S")Ma(Ac,Ws);function Sn(vn,Pn){Pn[co]=os(("0."+vn)*1e3)}for(Ac="S";Ac.length<=9;Ac+="S")ys(Ac,Sn);wn=nc("Milliseconds",!1),yi("z",0,0,"zoneAbbr"),yi("zz",0,0,"zoneName");function On(){return this._isUTC?"UTC":""}function ri(){return this._isUTC?"Coordinated Universal Time":""}var Vn=_i.prototype;Vn.add=Oh,Vn.calendar=Ih,Vn.clone=Cu,Vn.diff=Cc,Vn.endOf=Wa,Vn.format=ah,Vn.from=sh,Vn.fromNow=_h,Vn.to=Vh,Vn.toNow=ph,Vn.get=Jd,Vn.invalidAt=Xh,Vn.isAfter=Sh,Vn.isBefore=Th,Vn.isBetween=Yd,Vn.isSame=Fh,Vn.isSameOrAfter=$d,Vn.isSameOrBefore=ld,Vn.isValid=Bc,Vn.lang=Od,Vn.locale=Ed,Vn.localeData=un,Vn.max=Gc,Vn.min=qc,Vn.parsingFlags=Rd,Vn.set=ch,Vn.startOf=Sa,Vn.subtract=Mh,Vn.toArray=bc,Vn.toObject=sc,Vn.toDate=eo,Vn.toISOString=ih,Vn.inspect=Dh,typeof Symbol<"u"&&Symbol.for!=null&&(Vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Vn.toJSON=Jc,Vn.toString=mh,Vn.unix=Ys,Vn.valueOf=ms,Vn.creationData=cd,Vn.eraName=Ph,Vn.eraNarrow=Do,Vn.eraAbbr=Mc,Vn.eraYear=ef,Vn.year=uc,Vn.isLeapYear=vu,Vn.weekYear=nf,Vn.isoWeekYear=xf,Vn.quarter=Vn.quarters=Nf,Vn.month=Dc,Vn.daysInMonth=Hs,Vn.week=Vn.weeks=Qd,Vn.isoWeek=Vn.isoWeeks=eh,Vn.weeksInYear=Tf,Vn.weeksInWeekYear=Df,Vn.isoWeeksInYear=lf,Vn.isoWeeksInISOWeekYear=Sf,Vn.date=Wh,Vn.day=Vn.days=Ou,Vn.weekday=ed,Vn.isoWeekday=Ru,Vn.dayOfYear=Uh,Vn.hour=Vn.hours=nh,Vn.minute=Vn.minutes=Cf,Vn.second=Vn.seconds=Bf,Vn.millisecond=Vn.milliseconds=wn,Vn.utcOffset=vd,Vn.utc=Tu,Vn.local=fu,Vn.parseZone=Ec,Vn.hasAlignedHourOffset=Du,Vn.isDST=Pu,Vn.isLocal=Kc,Vn.isUtcOffset=Oc,Vn.isUtc=_o,Vn.isUTC=_o,Vn.zoneAbbr=On,Vn.zoneName=ri,Vn.dates=fi("dates accessor is deprecated. Use date instead.",Wh),Vn.months=fi("months accessor is deprecated. Use month instead",Dc),Vn.years=fi("years accessor is deprecated. Use year instead",uc),Vn.zone=fi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sd),Vn.isDSTShifted=fi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",od);function Li(vn){return Ds(vn*1e3)}function Ti(){return Ds.apply(null,arguments).parseZone()}function Ai(vn){return vn}var xi=ji.prototype;xi.calendar=Fi,xi.longDateFormat=ea,xi.invalidDate=ti,xi.ordinal=ki,xi.preparse=Ai,xi.postformat=Ai,xi.relativeTime=ta,xi.pastFuture=Ri,xi.set=wi,xi.eras=mu,xi.erasParse=Bu,xi.erasConvertYear=Qh,xi.erasAbbrRegex=Hh,xi.erasNameRegex=tf,xi.erasNarrowRegex=gh,xi.months=Us,xi.monthsShort=bo,xi.monthsParse=Bo,xi.monthsRegex=Pc,xi.monthsShortRegex=$o,xi.week=Xu,xi.firstDayOfYear=hd,xi.firstDayOfWeek=Eu,xi.weekdays=Mo,xi.weekdaysMin=iu,xi.weekdaysShort=dh,xi.weekdaysParse=th,xi.weekdaysRegex=Oo,xi.weekdaysShortRegex=Iu,xi.weekdaysMinRegex=bu,xi.isPM=Nd,xi.meridiem=mc;function Vi(vn,Pn,In,li){var Di=ua(),Qi=bn().set(li,Pn);return Di[In](Qi,vn)}function aa(vn,Pn,In){if(mn(vn)&&(Pn=vn,vn=void 0),vn=vn||"",Pn!=null)return Vi(vn,Pn,In,"month");var li,Di=[];for(li=0;li<12;li++)Di[li]=Vi(vn,li,In,"month");return Di}function ga(vn,Pn,In,li){typeof vn=="boolean"?(mn(Pn)&&(In=Pn,Pn=void 0),Pn=Pn||""):(Pn=vn,In=Pn,vn=!1,mn(Pn)&&(In=Pn,Pn=void 0),Pn=Pn||"");var Di=ua(),Qi=vn?Di._week.dow:0,Ca,hs=[];if(In!=null)return Vi(Pn,(In+Qi)%7,li,"day");for(Ca=0;Ca<7;Ca++)hs[Ca]=Vi(Pn,(Ca+Qi)%7,li,"day");return hs}function zi(vn,Pn){return aa(vn,Pn,"months")}function da(vn,Pn){return aa(vn,Pn,"monthsShort")}function fa(vn,Pn,In){return ga(vn,Pn,In,"weekdays")}function $a(vn,Pn,In){return ga(vn,Pn,In,"weekdaysShort")}function va(vn,Pn,In){return ga(vn,Pn,In,"weekdaysMin")}gi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(vn){var Pn=vn%10,In=os(vn%100/10)===1?"th":Pn===1?"st":Pn===2?"nd":Pn===3?"rd":"th";return vn+In}}),nn.lang=fi("moment.lang is deprecated. Use moment.locale instead.",gi),nn.langData=fi("moment.langData is deprecated. Use moment.localeData instead.",ua);var Ta=Math.abs;function Ra(){var vn=this._data;return this._milliseconds=Ta(this._milliseconds),this._days=Ta(this._days),this._months=Ta(this._months),vn.milliseconds=Ta(vn.milliseconds),vn.seconds=Ta(vn.seconds),vn.minutes=Ta(vn.minutes),vn.hours=Ta(vn.hours),vn.months=Ta(vn.months),vn.years=Ta(vn.years),this}function es(vn,Pn,In,li){var Di=Gs(Pn,In);return vn._milliseconds+=li*Di._milliseconds,vn._days+=li*Di._days,vn._months+=li*Di._months,vn._bubble()}function Za(vn,Pn){return es(this,vn,Pn,1)}function Ns(vn,Pn){return es(this,vn,Pn,-1)}function ks(vn){return vn<0?Math.floor(vn):Math.ceil(vn)}function Xs(){var vn=this._milliseconds,Pn=this._days,In=this._months,li=this._data,Di,Qi,Ca,hs,Fs;return vn>=0&&Pn>=0&&In>=0||vn<=0&&Pn<=0&&In<=0||(vn+=ks(ro(In)+Pn)*864e5,Pn=0,In=0),li.milliseconds=vn%1e3,Di=fs(vn/1e3),li.seconds=Di%60,Qi=fs(Di/60),li.minutes=Qi%60,Ca=fs(Qi/60),li.hours=Ca%24,Pn+=fs(Ca/24),Fs=fs(Ss(Pn)),In+=Fs,Pn-=ks(ro(Fs)),hs=fs(In/12),In%=12,li.days=Pn,li.months=In,li.years=hs,this}function Ss(vn){return vn*4800/146097}function ro(vn){return vn*146097/4800}function gc(vn){if(!this.isValid())return NaN;var Pn,In,li=this._milliseconds;if(vn=qi(vn),vn==="month"||vn==="quarter"||vn==="year")switch(Pn=this._days+li/864e5,In=this._months+Ss(Pn),vn){case"month":return In;case"quarter":return In/3;case"year":return In/12}else switch(Pn=this._days+Math.round(ro(this._months)),vn){case"week":return Pn/7+li/6048e5;case"day":return Pn+li/864e5;case"hour":return Pn*24+li/36e5;case"minute":return Pn*1440+li/6e4;case"second":return Pn*86400+li/1e3;case"millisecond":return Math.floor(Pn*864e5)+li;default:throw new Error("Unknown unit "+vn)}}function Bs(vn){return function(){return this.as(vn)}}var Ts=Bs("ms"),ds=Bs("s"),oc=Bs("m"),qs=Bs("h"),po=Bs("d"),Fo=Bs("w"),Lc=Bs("M"),Rc=Bs("Q"),Xl=Bs("y"),Yc=Ts;function Ic(){return Gs(this)}function yc(vn){return vn=qi(vn),this.isValid()?this[vn+"s"]():NaN}function zs(vn){return function(){return this.isValid()?this._data[vn]:NaN}}var Po=zs("milliseconds"),ec=zs("seconds"),No=zs("minutes"),xc=zs("hours"),Gu=zs("days"),cc=zs("months"),Xc=zs("years");function Ao(){return fs(this.days()/7)}var fo=Math.round,Zo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fc(vn,Pn,In,li,Di){return Di.relativeTime(Pn||1,!!In,vn,li)}function _u(vn,Pn,In,li){var Di=Gs(vn).abs(),Qi=fo(Di.as("s")),Ca=fo(Di.as("m")),hs=fo(Di.as("h")),Fs=fo(Di.as("d")),Zs=fo(Di.as("M")),$c=fo(Di.as("w")),bd=fo(Di.as("y")),Fd=Qi<=In.ss&&["s",Qi]||Qi<In.s&&["ss",Qi]||Ca<=1&&["m"]||Ca<In.m&&["mm",Ca]||hs<=1&&["h"]||hs<In.h&&["hh",hs]||Fs<=1&&["d"]||Fs<In.d&&["dd",Fs];
144return In.w!=null&&(Fd=Fd||$c<=1&&["w"]||$c<In.w&&["ww",$c]),Fd=Fd||Zs<=1&&["M"]||Zs<In.M&&["MM",Zs]||bd<=1&&["y"]||["yy",bd],Fd[2]=Pn,Fd[3]=+vn>0,Fd[4]=li,Fc.apply(null,Fd)}function pu(vn){return vn===void 0?fo:typeof vn=="function"?(fo=vn,!0):!1}function Qc(vn,Pn){return Zo[vn]===void 0?!1:Pn===void 0?Zo[vn]:(Zo[vn]=Pn,vn==="s"&&(Zo.ss=Pn-1),!0)}function gu(vn,Pn){if(!this.isValid())return this.localeData().invalidDate();var In=!1,li=Zo,Di,Qi;return typeof vn=="object"&&(Pn=vn,vn=!1),typeof vn=="boolean"&&(In=vn),typeof Pn=="object"&&(li=Object.assign({},Zo,Pn),Pn.s!=null&&Pn.ss==null&&(li.ss=Pn.s-1)),Di=this.localeData(),Qi=_u(this,!In,li,Di),In&&(Qi=Di.pastFuture(+this,Qi)),Di.postformat(Qi)}var So=Math.abs;function Ko(vn){return(vn>0)-(vn<0)||+vn}function Sc(){if(!this.isValid())return this.localeData().invalidDate();var vn=So(this._milliseconds)/1e3,Pn=So(this._days),In=So(this._months),li,Di,Qi,Ca,hs=this.asSeconds(),Fs,Zs,$c,bd;return hs?(li=fs(vn/60),Di=fs(li/60),vn%=60,li%=60,Qi=fs(In/12),In%=12,Ca=vn?vn.toFixed(3).replace(/\.?0+$/,""):"",Fs=hs<0?"-":"",Zs=Ko(this._months)!==Ko(hs)?"-":"",$c=Ko(this._days)!==Ko(hs)?"-":"",bd=Ko(this._milliseconds)!==Ko(hs)?"-":"",Fs+"P"+(Qi?Zs+Qi+"Y":"")+(In?Zs+In+"M":"")+(Pn?$c+Pn+"D":"")+(Di||li||vn?"T":"")+(Di?bd+Di+"H":"")+(li?bd+li+"M":"")+(vn?bd+Ca+"S":"")):"P0D"}var gs=vc.prototype;gs.isValid=uu,gs.abs=Ra,gs.add=Za,gs.subtract=Ns,gs.as=gc,gs.asMilliseconds=Ts,gs.asSeconds=ds,gs.asMinutes=oc,gs.asHours=qs,gs.asDays=po,gs.asWeeks=Fo,gs.asMonths=Lc,gs.asQuarters=Rc,gs.asYears=Xl,gs.valueOf=Yc,gs._bubble=Xs,gs.clone=Ic,gs.get=yc,gs.milliseconds=Po,gs.seconds=ec,gs.minutes=No,gs.hours=xc,gs.days=Gu,gs.weeks=Ao,gs.months=cc,gs.years=Xc,gs.humanize=gu,gs.toISOString=Sc,gs.toString=Sc,gs.toJSON=Sc,gs.locale=Ed,gs.localeData=un,gs.toIsoString=fi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Sc),gs.lang=Od,yi("X",0,0,"unix"),yi("x",0,0,"valueOf"),Ma("x",ps),Ma("X",As),ys("X",function(vn,Pn,In){In._d=new Date(parseFloat(vn)*1e3)}),ys("x",function(vn,Pn,In){In._d=new Date(os(vn))});return nn.version="2.30.1",an(Ds),nn.fn=Vn,nn.min=ju,nn.max=zu,nn.now=Lu,nn.utc=bn,nn.unix=Li,nn.months=zi,nn.isDate=gn,nn.locale=gi,nn.invalid=Rn,nn.duration=Gs,nn.isMoment=oi,nn.weekdays=fa,nn.parseZone=Ti,nn.localeData=ua,nn.isDuration=du,nn.monthsShort=da,nn.weekdaysMin=va,nn.defineLocale=Ii,nn.updateLocale=Xi,nn.locales=Aa,nn.weekdaysShort=$a,nn.normalizeUnits=qi,nn.relativeTimeRounding=pu,nn.relativeTimeThreshold=Qc,nn.calendarFormat=xh,nn.prototype=Vn,nn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},nn}))})(moment$2)),moment$2.exports}var momentExports=requireMoment();const moment=getDefaultExportFromCjs(momentExports),_sfc_main$6={name:"SectorProduct",components:{ButtonComponent,FavoritesToggle,SectorProductTeaser,MarkupRenderer:_sfc_main$X},data(){return{relatedSectorProductUuids:[]}},mounted(){this.fetchSectorProduct(this.mainContent.uuid).then(()=>this.fetchRelatedSectorProducts())},computed:{...mapState("context",["mainContent","site"]),sectorProduct(){return this.$store.getters["sectorProduct/sectorProduct"](this.mainContent.uuid)},getSectorTypeLabels(){return this.getTermNames("sectorProductTypes")},getSectorThemes(){return this.getTermNames("sectorThemes")},getSectorTargetGroups(){return this.getTermNames("sectorTargetGroup")},datetime(){const en=[];return this.sectorProduct.date&&en.push(moment(this.sectorProduct.date).format("DD/MM/YYYY")),this.sectorProduct.time&&en.push(this.sectorProduct.time),en.join(", ")},getSectorRegions(){const en={brugge:"Brugge",brugse_ommeland:"Brugse Ommeland",kust:"Kust",leiestreek:"Leiestreek",westhoek:"Westhoek"};return this.sectorProduct.sectorRegions.map(He=>en[He])},getMainLinkUri(){if(this.sectorProduct.mainLink){const en=this.sectorProduct.mainLink;if(en.alias)return en.alias;if(en.uri)return en.uri}return""}},methods:{...mapActions("sectorProduct",["fetchSectorProduct"]),getTermNames(en){return!this.sectorProduct||!this.sectorProduct[en]?[]:this.sectorProduct[en].map(He=>He.attributes.name)},fetchRelatedSectorProducts(){const en=[],He={sector_theme:"sectorThemes",sector_producttype:"sectorProductTypes"};for(const[nn,an]of Object.entries(He)){const rn=this.sectorProduct[an].map(on=>on.id);for(const on of rn)en.push(nn+"[]="+on)}const tn=["/fetch-related-sector-products",this.sectorProduct.langcode,this.sectorProduct.productFamily,this.sectorProduct.uuid];return axios.get(tn.join("/")+"?"+en.join("&")).then(nn=>{for(const an of nn.data)this.relatedSectorProductUuids.push(an)})}}},_hoisted_1$6={key:0,class:"sector-product"},_hoisted_2$5={class:"sector-product__header top"},_hoisted_3$5={class:"right"},_hoisted_4$2=["src","alt"],_hoisted_5$2={class:"left"},_hoisted_6$1={class:"card"},_hoisted_7$1={class:"sector-product__title-wrapper"},_hoisted_8$1={class:"sector-product__title"},_hoisted_9$1={key:0,class:"sector-product__types"},_hoisted_10$1={class:"sector-product__core-info"},_hoisted_11$1={key:0,class:"sector-product__when core-info"},_hoisted_12$1={class:"label"},_hoisted_13$1={class:"col-span-2"},_hoisted_14={key:1,class:"sector-product__where core-info"},_hoisted_15={class:"label"},_hoisted_16={class:"col-span-2"},_hoisted_17={key:2,class:"sector-product__theme core-info"},_hoisted_18={class:"label"},_hoisted_19={class:"col-span-2"},_hoisted_20={key:3,class:"sector-product__target_group core-info"},_hoisted_21={class:"label"},_hoisted_22={class:"col-span-2"},_hoisted_23={key:4,class:"sector-product__regions core-info"},_hoisted_24={class:"label"},_hoisted_25={class:"col-span-2"},_hoisted_26={key:5,class:"sector-product__duration core-info"},_hoisted_27={class:"label"},_hoisted_28={class:"col-span-2"},_hoisted_29={key:6,class:"sector-product__author core-info"},_hoisted_30={class:"label"},_hoisted_31={class:"col-span-2"},_hoisted_32={key:7,class:"sector-product__organizer core-info"},_hoisted_33={class:"label"},_hoisted_34={class:"col-span-2"}
144,_hoisted_35={key:8,class:"sector-product__price core-info"},_hoisted_36={class:"label"},_hoisted_37={class:"col-span-2"},_hoisted_38={key:9,class:"sector-product__recording_date core-info"},_hoisted_39={class:"label"},_hoisted_40={class:"col-span-2"},_hoisted_41={key:0,class:"page__main-content-markup"},_hoisted_42={key:1,class:"related"},_hoisted_43={class:"related__title"},_hoisted_44={class:"related__list"};function _sfc_render$6(en,He,tn,nn,an,rn){const on=resolveComponent("favorites-toggle"),sn=resolveComponent("button-component"),dn=resolveComponent("markup-renderer"),hn=resolveComponent("sector-product-teaser");return rn.sectorProduct?(openBlock(),createElementBlock("div",_hoisted_1$6,[createBaseVNode("div",_hoisted_2$5,[createBaseVNode("div",_hoisted_3$5,[rn.sectorProduct?.image?(openBlock(),createElementBlock("img",{key:0,class:"sector-product__main-image",src:rn.sectorProduct.image.url,alt:rn.sectorProduct.image.alt},null,8,_hoisted_4$2)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_5$2,[createBaseVNode("div",_hoisted_6$1,[createBaseVNode("div",_hoisted_7$1,[createBaseVNode("h1",_hoisted_8$1,toDisplayString(en.mainContent.title),1),createVNode(on,{"content-id":en.mainContent.uuid,type:en.mainContent.contentType},null,8,["content-id","type"]),rn.sectorProduct.sectorProductTypes?(openBlock(),createElementBlock("div",_hoisted_9$1,toDisplayString(rn.getSectorTypeLabels.join(", ")),1)):createCommentVNode("",!0),He[0]||(He[0]=createBaseVNode("div",{class:"line","aria-hidden":"true"},null,-1))]),createBaseVNode("div",_hoisted_10$1,[rn.datetime?(openBlock(),createElementBlock("div",_hoisted_11$1,[createBaseVNode("span",_hoisted_12$1,toDisplayString(en.$t("When"))+":",1),createBaseVNode("span",_hoisted_13$1,toDisplayString(rn.datetime),1)])):createCommentVNode("",!0),rn.sectorProduct.location?(openBlock(),createElementBlock("div",_hoisted_14,[createBaseVNode("span",_hoisted_15,toDisplayString(en.$t("Where"))+":",1),createBaseVNode("span",_hoisted_16,toDisplayString(rn.sectorProduct.location),1)])):createCommentVNode("",!0),rn.sectorProduct.sectorThemes?(openBlock(),createElementBlock("div",_hoisted_17,[createBaseVNode("span",_hoisted_18,toDisplayString(en.$t("Theme"))+":",1),createBaseVNode("span",_hoisted_19,toDisplayString(rn.getSectorThemes.join(", ")),1)])):createCommentVNode("",!0),rn.sectorProduct.sectorTargetGroup?(openBlock(),createElementBlock("div",_hoisted_20,[createBaseVNode("span",_hoisted_21,toDisplayString(en.$t("For who"))+":",1),createBaseVNode("span",_hoisted_22,toDisplayString(rn.getSectorTargetGroups.join(", ")),1)])):createCommentVNode("",!0),rn.sectorProduct.sectorRegions?(openBlock(),createElementBlock("div",_hoisted_23,[createBaseVNode("span",_hoisted_24,toDisplayString(en.$t("Region"))+":",1),createBaseVNode("span",_hoisted_25,toDisplayString(rn.getSectorRegions.join(", ")),1)])):createCommentVNode("",!0),rn.sectorProduct.duration?(openBlock(),createElementBlock("div",_hoisted_26,[createBaseVNode("span",_hoisted_27,toDisplayString(en.$t("Duration"))+":",1),createBaseVNode("span",_hoisted_28,toDisplayString(rn.sectorProduct.duration),1)])):createCommentVNode("",!0),rn.sectorProduct.author?(openBlock(),createElementBlock("div",_hoisted_29,[createBaseVNode("span",_hoisted_30,toDisplayString(en.$t("Author"))+":",1),createBaseVNode("span",_hoisted_31,toDisplayString(rn.sectorProduct.author),1)])):createCommentVNode("",!0),rn.sectorProduct.organizer?(openBlock(),createElementBlock("div",_hoisted_32,[createBaseVNode("span",_hoisted_33,toDisplayString(en.$t("Organizer"))+":",1),createBaseVNode("span",_hoisted_34,toDisplayString(rn.sectorProduct.organizer),1)])):createCommentVNode("",!0),rn.sectorProduct.price?(openBlock(),createElementBlock("div",_hoisted_35,[createBaseVNode("span",_hoisted_36,toDisplayString(en.$t("Price"))+":",1),createBaseVNode("span",_hoisted_37,toDisplayString(rn.sectorProduct.price),1)])):createCommentVNode("",!0),rn.sectorProduct.recordingDate?(openBlock(),createElementBlock("div",_hoisted_38,[createBaseVNode("span",_hoisted_39,toDisplayString(en.$t("Recorded on"))+":",1),createBaseVNode("span",_hoisted_40,toDisplayString(rn.sectorProduct.recordingDate),1)])):createCommentVNode("",!0),rn.sectorProduct.mainLink?(openBlock(),createBlock(sn,{key:10,target:"_blank",name:rn.sectorProduct.mainLink.title||en.$t("View"),url:rn.getMainLinkUri,class:"recording-link"},null,8,["name","url"])):createCommentVNode("",!0)])])])]),en.mainContent.markup?(openBlock(),createElementBlock("div",_hoisted_41,[createVNode(dn,{markup:en.mainContent.markup},null,8,["markup"])])):createCommentVNode("",!0),an.relatedSectorProductUuids.length>0?(openBlock(),createElementBlock("div",_hoisted_42,[createBaseVNode("div",_hoisted_43,[createBaseVNode("h2",null,toDisplayString(en.$t("You might also be interested in")),1)]),createBaseVNode("div",_hoisted_44,[(openBlock(!0),createElementBlock(Fragment,null,renderList(an.relatedSectorProductUuids,(mn,gn)=>(openBlock(),createBlock(hn,{key:gn,uuid:mn},null,8,["uuid"]))),128))])])):createCommentVNode("",!0)])):createCommentVNode("",!0)}const SectorProduct=_export_sfc(_sfc_main$6,[["render",_sfc_render$6],["__scopeId","data-v-04fb86a2"]]),_sfc_main$5={name:"MainContent",components:{OverviewPage,Homepage,Accommodation,MeetingRoom,InspirationPage,LandingPage,Page,Poi,Event:Event$1,Reca,Route,SectorProduct},computed:{...mapState("context",["mainContent","locale"])},mounted(){this.replaceInlineEmbedScripts(),this.mainContent.contentType!=="page"&&this.addRecentlyViewedPage({contentId:this.mainContent.uuid,type:this.mainContent.contentType,langcode:this.locale})},methods:{...mapActions("favorites",["addRecentlyViewedPage"]),replaceInlineEmbedScripts(){Array.from(document.querySelectorAll(".paragraph--type--embed script")).forEac
144h(He=>{let tn=document.createElement("script");Array.from(He.attributes).forEach(nn=>{tn.setAttribute(nn.nodeName,nn.nodeValue)}),He.innerHTML!==void 0&&(tn.innerHTML=He.innerHTML),document.head.appendChild(tn)})}}},_hoisted_1$5={key:0,id:"main-content"};function _sfc_render$5(en,He,tn,nn,an,rn){const on=resolveComponent("homepage"),sn=resolveComponent("inspiration-page"),dn=resolveComponent("landing-page"),hn=resolveComponent("page"),mn=resolveComponent("poi"),gn=resolveComponent("reca"),yn=resolveComponent("event"),fn=resolveComponent("meeting-room"),bn=resolveComponent("accommodation"),Mn=resolveComponent("route"),Tn=resolveComponent("overview-page"),xn=resolveComponent("sector-product");return en.mainContent?(openBlock(),createElementBlock("main",_hoisted_1$5,[en.mainContent.isHomepage?(openBlock(),createBlock(on,{key:0})):en.mainContent.contentType==="inspiration_page"?(openBlock(),createBlock(sn,{key:1})):en.mainContent.contentType==="landing_page"?(openBlock(),createBlock(dn,{key:2})):en.mainContent.contentType==="page"?(openBlock(),createBlock(hn,{key:3})):en.mainContent.contentType==="poi"?(openBlock(),createBlock(mn,{key:4})):en.mainContent.contentType==="reca"?(openBlock(),createBlock(gn,{key:5})):en.mainContent.contentType==="event"?(openBlock(),createBlock(yn,{key:6})):en.mainContent.contentType==="meeting_room"?(openBlock(),createBlock(fn,{key:7})):en.mainContent.contentType==="accommodation"?(openBlock(),createBlock(bn,{key:8})):en.mainContent.contentType==="route"?(openBlock(),createBlock(Mn,{key:9})):en.mainContent.contentType==="overview_page"?(openBlock(),createBlock(Tn,{key:10})):en.mainContent.contentType==="sector_product"?(openBlock(),createBlock(xn,{key:11})):createCommentVNode("",!0)])):createCommentVNode("",!0)}const MainContent=_export_sfc(_sfc_main$5,[["render",_sfc_render$5]]),_sfc_main$4={name:"Breadcrumbs",computed:{...mapState("context",["site","mainContent","locale"]),...mapGetters("context",["activeMenuLinks","productTypeMenuLink"]),parentLinks(){let en=this.activeMenuLinks.filter(He=>He.url!==window.location.href);return en.length>0?en:this.productTypeMenuLink?[this.productTypeMenuLink]:[]},homepageUrl(){return this.$store.getters["context/multilingualUrl"]("/")}}},_hoisted_1$4={key:0,class:"breadcrumbs"},_hoisted_2$4={class:"breadcrumbs__links"},_hoisted_3$4=["href","title"],_hoisted_4$1=["href","title"],_hoisted_5$1={class:"breadcrumbs__breadcrumb breadcrumbs__breadcrumb--current"};function _sfc_render$4(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon");return en.mainContent.isHomepage?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1$4,[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("a",{href:rn.homepageUrl,title:en.$t("To the homepage"),class:"breadcrumbs__home"},[createVNode(on,{icon:["fas","home"]})],8,_hoisted_3$4),createVNode(on,{icon:["fas","chevron-right"],class:"breadcrumbs__arrow"}),(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.parentLinks,(sn,dn)=>(openBlock(),createElementBlock(Fragment,{key:dn},[createBaseVNode("a",{href:sn.url,title:sn.title,class:"breadcrumbs__breadcrumb breadcrumbs__breadcrumb--link"},toDisplayString(sn.title),9,_hoisted_4$1),createVNode(on,{icon:["fas","chevron-right"],class:"breadcrumbs__arrow"})],64))),128)),createBaseVNode("span",_hoisted_5$1,toDisplayString(en.mainContent.title),1)])]))}const Breadcrumbs=_export_sfc(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-c5895174"]]),_sfc_main$3={components:{ButtonComponent},computed:{...mapState("context",["site"]),cookieName(){return`${this.site.machine_name}_wizard_cta_minimized`}},mounted(){this.minimized=this.getCookie()==="1"},data(){return{minimized:!1}},methods:{minimize(){this.minimized=!0,this.setCookie()},maximize(){this.minimized=!1,this.setCookie()},setCookie(){const en=new Date;en.setTime(en.getTime()+720*60*60*1e3),document.cookie=`${this.cookieName}=${this.minimized?"1":"0"};expires=${en.toUTCString()};path=/`},getCookie(){const en=`${this.cookieName}=`,He=document.cookie.split(";");for(let tn=0;tn<He.length;tn++){let nn=He[tn];for(;nn.charAt(0)==" ";)nn=nn.substring(1,nn.length);if(nn.indexOf(en)==0)return nn.substring(en.length,nn.length)}return null}}},_hoisted_1$3={key:0,class:"wizard-cta"},_hoisted_2$3=["title"],_hoisted_3$3=["title"];function _sfc_render$3(en,He,tn,nn,an,rn){const on=resolveComponent("button-component"),sn=resolveComponent("font-awesome-icon");
144return en.site.wizardPagePath?(openBlock(),createElementBlock("div",_hoisted_1$3,[en.site.wizardPagePath?(openBlock(),createBlock(on,{key:0,name:an.minimized?"":en.$t("Expert suggestions tailored to your needs"),url:en.site.wizardPagePath,icon:["fas","magic"],type:"primary",class:"wizard-cta__link",title:en.$t("Expert suggestions tailored to your needs")},null,8,["name","url","title"])):createCommentVNode("",!0),an.minimized?createCommentVNode("",!0):(openBlock(),createElementBlock("a",{key:1,class:"wizard-cta__toggle wizard-cta__toggle--minimize",title:en.$t("Minimize"),onClick:He[0]||(He[0]=withModifiers((...dn)=>rn.minimize&&rn.minimize(...dn),["prevent"]))},[createVNode(sn,{icon:["fas","chevron-down"]})],8,_hoisted_2$3)),an.minimized?(openBlock(),createElementBlock("a",{key:2,class:"wizard-cta__toggle wizard-cta__toggle--maximize",title:en.$t("Maximize"),onClick:He[1]||(He[1]=withModifiers((...dn)=>rn.maximize&&rn.maximize(...dn),["prevent"]))},[createVNode(sn,{icon:["fas","chevron-up"]})],8,_hoisted_3$3)):createCommentVNode("",!0)])):createCommentVNode("",!0)}const WizardCta=_export_sfc(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-be9c811c"]]),_sfc_main$2={name:"CookieBanner",components:{ButtonComponent},computed:{...mapState("context",["site","showCookieBanner","functionalityStorage","analyticsStorage","adStorage"])},created(){this.setFunctionalityStorage(localStorage.functionalityStorage==="granted"),this.setAnalyticsStorage(localStorage.analyticsStorage==="granted"),this.setAdStorage(localStorage.adStorage==="granted"),window.googleTagManagerId&&localStorage.cookiebarShown==="true"?(this.setShowCookieBanner(!1),this.sendConsent()):this.setShowCookieBanner(!0)},methods:{...mapActions("context",["setShowCookieBanner","setFunctionalityStorage","setAnalyticsStorage","setAdStorage","sendConsent"]),acceptAll(){this.setFunctionalityStorage(!0),this.setAnalyticsStorage(!0),this.setAdStorage(!0),this.accept()},accept(){this.setShowCookieBanner(!1),this.sendConsent()}}},_hoisted_1$2={key:0,class:"cookie-banner","data-nosnippet":""},_hoisted_2$2={class:"cookie-banner__wrapper"},_hoisted_3$2={class:"cookie-banner__content"},_hoisted_4={class:"cookie-banner__text"},_hoisted_5=["innerHTML"],_hoisted_6={class:"cookie-banner__options"},_hoisted_7={class:"cookie-banner__option"},_hoisted_8={class:"cookie-banner__option-label"},_hoisted_9={class:"cookie-banner__option-label"},_hoisted_10={class:"cookie-banner__option-label"},_hoisted_11={class:"cookie-banner__option-label"},_hoisted_12={class:"cookie-banner__buttons"},_hoisted_13=["title"];function _sfc_render$2(en,He,tn,nn,an,rn){const on=resolveComponent("font-awesome-icon"),sn=resolveComponent("button-component");return en.showCookieBanner?(openBlock(),createElementBlock("div",_hoisted_1$2,[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createBaseVNode("div",_hoisted_4,[createBaseVNode("p",{innerHTML:en.$t('Westtoer apb (West Flanders tourist office) collects and analyzes information about your visit via cookies. This allows us to analyze the use of the site, to integrate social media and to personalize content. More explanation can be found via <a href="{url}" class="cookie-banner__text-link" target="_blank">this link</a>.',{url:en.site.cookiePagePath})},null,8,_hoisted_5),createBaseVNode("p",null,toDisplayString(en.$t("Do you want to enjoy an optimal experience? Click on “agree” below if you agree to the use of cookies for all of the above purposes. You can also set your own preferences. You can adjust your choice at any time.")),1),createBaseVNode("p",null,toDisplayString(en.$t("We appreciate your trust and wish you an enriching browsing experience!")),1)]),createBaseVNode("div",_hoisted_6,[createBaseVNode("span",_hoisted_7,[createVNode(on,{icon:["fas","check-square"],class:"cookie-banner__option-icon"}),createBaseVNode("span",_hoisted_8,toDisplayString(en.$t("Essential cookies")),1)]),createBaseVNode("a",{href:"#",class:"cookie-banner__option cookie-banner__option--selectable",onClick:He[0]||(He[0]=withModifiers(dn=>en.setFunctionalityStorage(!en.functionalityStorage),["prevent"]))},[en.functionalityStorage?(openBlock(),createBlock(on,{key:0,icon:["far","check-square"],class:"cookie-banner__option-icon"})):(openBlock(),createBlock(on,{key:1,icon:["far","square"],class:"cookie-banner__option-icon"})),createBaseVNode("span",_hoisted_9,toDisplayString(en.$t("Functional cookies")),1)]),createBaseVNode("a",{href:"#",class:"cookie-banner__option cookie-banner__option--selectable",onClick:He[1]||(He[1]=withModifiers(dn=>en.setAnalyticsStorage(!en.analyticsStorage),["prevent"]))},[en.analyticsStorage?(openBlock(),createBlock(on,{key:0,icon:["far","check-square"],class:"cookie-banner__option-icon"})):(openBlock(),createBlock(on,{key:1,icon:["far","square"],class:"cookie-banner__option-icon"})),createBaseVNode("span",_hoisted_10,toDisplayString(en.$t("Analytical cookies")),1)]),createBaseVNode("a",{href:"#",class:"cookie-banner__option cookie-banner__option--selectable",onClick:He[2]||(He[2]=withModifiers(dn=>en.setAdStorage(!en.adStorage),["prevent"]))},[en.adStorage?(openBlock(),createBlock(on,{key:0,icon:["far","check-square"],class:"cookie-banner__option-icon"})):(openBlock(),createBlock(on,{key:1,icon:["far","square"],class:"cookie-banner__option-icon"})),createBaseVNode("span",_hoisted_11,toDisplayString(en.$t("Advertisement cookies")),1)])]),createBaseVNode("div",_hoisted_12,[createVNode(sn,{name:en.$t("Accept all"),url:"#",type:"primary",class:"cookie-banner__button",onClick:withModifiers(rn.acceptAll,["prevent"])},null,8,["name","onClick"]),createBaseVNode("a",{title:en.$t("Accept selection"),url:"#",class:"cookie-banner__link",onClick:He[3]||(He[3]=withModifiers((...dn)=>rn.accept&&rn.accept(...dn),["prevent"]))},toDisplayString(en.$t("Accept selection")),9,_hoisted_13)])])])])):createCommentVNode("",!0)}
144const CookieBanner=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-8ba3e08b"]]),_sfc_main$1={name:"ExitOverlay",data(){return{show:!1,triggered:!1}},computed:{...mapState("context",["site"])},created(){new URLSearchParams(window.location.search).get("overlay")==="0"&&(localStorage.closedExitOverlay=!0)},mounted(){localStorage.closedExitOverlay||setTimeout(()=>{document.documentElement.addEventListener("mouseleave",this.open)},5e3)},methods:{open(en){en.offsetY>0||this.triggered||(this.triggered=!0,this.show=!0,document.addEventListener("keyup",this.listenEscape))},close(){this.show=!1,localStorage.closedExitOverlay=!0,document.removeEventListener("keyup",this.listenEscape)},listenEscape(en){switch(en.code){case"Escape":this.close();break}}}},_hoisted_1$1={class:"exit-overlay__wrapper"},_hoisted_2$1=["title"],_hoisted_3$1=["innerHTML"];function _sfc_render$1(en,He,tn,nn,an,rn){return an.show?(openBlock(),createElementBlock("div",{key:0,class:"exit-overlay",tabindex:"-1",onClick:He[1]||(He[1]=withModifiers((...on)=>rn.close&&rn.close(...on),["self"]))},[createBaseVNode("div",_hoisted_1$1,[createBaseVNode("a",{class:"exit-overlay__close",title:en.$t("Close"),onClick:He[0]||(He[0]=withModifiers((...on)=>rn.close&&rn.close(...on),["prevent"]))},[...He[2]||(He[2]=[createBaseVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 46 46","xml:space":"preserve"},[createBaseVNode("path",{d:"M24.8,23.4l-7.3,7.4c-0.2,0.2-0.6,0.2-0.8,0l-1-1c-0.2-0.2-0.2-0.6,0-0.8l5.9-5.9l-5.9-5.9c-0.2-0.2-0.2-0.6,0-0.8l1-1c0.2-0.2,0.6-0.2,0.8,0l7.3,7.4C25,22.8,25,23.2,24.8,23.4z",fill:"currentColor"}),createBaseVNode("circle",{fill:"none",stroke:"currentColor",cx:"23",cy:"23",r:"22.5"}),createBaseVNode("path",{d:"M21.7,22.6l7.3-7.4c0.2-0.2,0.6-0.2,0.8,0l1,1c0.2,0.2,0.2,0.6,0,0.8L25,23l5.9,5.9c0.2,0.2,0.2,0.6,0,0.8l-1,1c-0.2,0.2-0.6,0.2-0.8,0l-7.3-7.4C21.5,23.2,21.5,22.8,21.7,22.6z",fill:"currentColor"})],-1)])],8,_hoisted_2$1),createBaseVNode("div",{class:"exit-overlay__content",innerHTML:en.site.exitOverlayContent},null,8,_hoisted_3$1)])])):createCommentVNode("",!0)}const ExitOverlay=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-4ef6f396"]]),_sfc_main=defineComponent({name:"App",components:{WizardCta,CookieBanner,ExitOverlay,Breadcrumbs,MainContent,FooterComponent,HeaderComponent,Doormat},computed:{...mapState("context",["site","showCookieBanner"])},created(){window.westtoerSite!==void 0&&(this.setSite(window.westtoerSite),this.setFavoritesPagePath(window.westtoerSite.favoritesPagePath)),window.mainContent&&this.setMainContent(window.mainContent),document.documentElement.lang&&this.setLocale(document.documentElement.lang),this.setTailwindConfig(resolveConfig(tailwindConfig))},methods:{...mapActions("context",["setSite","setMainContent","setLocale","setTailwindConfig","setShowCookieBanner","setFunctionalityStorage","setAnalyticsStorage","setAdStorage"]),...mapActions("favorites",["setFavoritesPagePath"])}}),_hoisted_1={class:"page-wrapper"},_hoisted_2=["aria-label"],_hoisted_3={class:"sticky-footer","data-nosnippet":"",role:"contentinfo"};function _sfc_render(en,He,tn,nn,an,rn){const on=resolveComponent("header-component"),sn=resolveComponent("breadcrumbs"),dn=resolveComponent("main-content"),hn=resolveComponent("doormat"),mn=resolveComponent("footer-component"),gn=resolveComponent("wizard-cta"),yn=resolveComponent("cookie-banner"),fn=resolveComponent("exit-overlay");return openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("a",{href:"#main-content","aria-label":en.$t("Skip to main content"),role:"link",class:"visually-hidden-focusable"},toDisplayString(en.$t("Skip to main content")),9,_hoisted_2),createVNode(on),createVNode(sn),createVNode(dn),createBaseVNode("footer",_hoisted_3,[createVNode(hn),createVNode(mn)]),createVNode(gn),createVNode(yn),en.site.exitOverlayContent?(openBlock(),createBlock(fn,{key:0})):createCommentVNode("",!0)])}const App=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-5b826a1d"]]);createMainApp(App,"#app");export{RGBColor$1 as R,_typeof$1 as _,_ as a,processCanvasRGBA as p,requestAnimationFrame$1 as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.