!function(){"use strict";function e(){}const t=e=>e;function n(e,t){for(const n in t)e[n]=t[n];return e}function r(e){return e()}function i(){return Object.create(null)}function o(e){e.forEach(r)}function a(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function l(e,t,n){e.$$.on_destroy.push(function(e,t){const n=e.subscribe(t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function c(e,t,n){if(e){const r=u(e,t,n);return e[0](r)}}function u(e,t,r){return e[1]?n({},n(t.$$scope.ctx,e[1](r?r(t):{}))):t.$$scope.ctx}function d(e,t,r,i){return e[1]?n({},n(t.$$scope.changed||{},e[1](i?i(r):{}))):t.$$scope.changed||{}}const h="undefined"!=typeof window;let f=h?()=>window.performance.now():()=>Date.now(),p=h?e=>requestAnimationFrame(e):e;const g=new Set;let m,v=!1;function y(){g.forEach(e=>{e[0](f())||(g.delete(e),e[1]())}),(v=g.size>0)&&p(y)}function x(e){let t;return v||(v=!0,p(y)),{promise:new Promise(n=>{g.add(t=[e,n])}),abort(){g.delete(t)}}}function b(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function $(e){e.parentNode.removeChild(e)}function _(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function I(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function S(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function T(e,t){t=""+t,e.data!==t&&(e.data=t)}function D(e,t){(null!=t||e.value)&&(e.value=t)}function M(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function N(e,t){for(let n=0;n>>0}(u)}_${s}`;if(!z[d]){if(!m){const e=k("style");document.head.appendChild(e),m=e.sheet}z[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length)}const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${d} ${r}ms linear ${i}ms 1 both`,R+=1,d}function H(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")).join(", "),t&&!--R&&p(()=>{if(R)return;let e=m.cssRules.length;for(;e--;)m.deleteRule(e);z={}})}function V(e){F=e}function W(){if(!F)throw new Error("Function called outside component initialization");return F}function U(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e(t))}const Y=[],q=[],Q=[],K=[],J=Promise.resolve();let G,X=!1;function Z(e){Q.push(e)}function ee(e){K.push(e)}function te(){const e=new Set;do{for(;Y.length;){const e=Y.shift();V(e),ne(e.$$)}for(;q.length;)q.pop()();for(let t=0;t{G=null}),G}function ie(e,t,n){e.dispatchEvent(function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(`${t?"intro":"outro"}${n}`))}const oe=new Set;let ae;function se(){ae={r:0,c:[],p:ae}}function le(){ae.r||o(ae.c),ae=ae.p}function ce(e,t){e&&e.i&&(oe.delete(e),e.i(t))}function ue(e,t,n,r){if(e&&e.o){if(oe.has(e))return;oe.add(e),ae.c.push(()=>{oe.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}const de={duration:0};function he(n,r,i){let o,s,l=r(n,i),c=!1,u=0;function d(){o&&H(n,o)}function h(){const{delay:r=0,duration:i=300,easing:a=t,tick:h=e,css:p}=l||de;p&&(o=B(n,0,1,i,r,a,p,u++)),h(0,1);const g=f()+r,m=g+i;s&&s.abort(),c=!0,Z(()=>ie(n,!0,"start")),s=x(e=>{if(c){if(e>=m)return h(1,0),ie(n,!0,"end"),d(),c=!1;if(e>=g){const t=a((e-g)/i);h(t,1-t)}}return c})}let p=!1;return{start(){p||(H(n),a(l)?(l=l(),re().then(h)):h())},invalidate(){p=!1},end(){c&&(d(),c=!1)}}}function fe(n,r,i){let s,l=r(n,i),c=!0;const u=ae;function d(){const{delay:r=0,duration:i=300,easing:a=t,tick:d=e,css:h}=l||de;h&&(s=B(n,1,0,i,r,a,h));const p=f()+r,g=p+i;Z(()=>ie(n,!1,"start")),x(e=>{if(c){if(e>=g)return d(0,1),ie(n,!1,"end"),--u.r||o(u.c),!1;if(e>=p){const t=a((e-p)/i);d(1-t,t)}}return c})}return u.r+=1,a(l)?re().then(()=>{l=l(),d()}):d(),{end(e){e&&l.tick&&l.tick(1,0),c&&(s&&H(n,s),c=!1)}}}function pe(e,t,n){-1!==e.$$.props.indexOf(t)&&(e.$$.bound[t]=n,n(e.$$.ctx[t]))}function ge(e,t,n){const{fragment:i,on_mount:s,on_destroy:l,after_update:c}=e.$$;i.m(t,n),Z(()=>{const t=s.map(r).filter(a);l?l.push(...t):o(t),e.$$.on_mount=[]}),c.forEach(Z)}function me(e,t){e.$$.fragment&&(o(e.$$.on_destroy),e.$$.fragment.d(t),e.$$.on_destroy=e.$$.fragment=null,e.$$.ctx={})}function ve(e,t){e.$$.dirty||(Y.push(e),X||(X=!0,J.then(te)),e.$$.dirty=i()),e.$$.dirty[t]=!0}function ye(t,n,r,a,s,l){const c=F;V(t);const u=n.props||{},d=t.$$={fragment:null,ctx:null,props:l,update:e,not_equal:s,bound:i(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:i(),dirty:null};let h=!1;var f;d.ctx=r?r(t,u,(e,n,r=n)=>(d.ctx&&s(d.ctx[e],d.ctx[e]=r)&&(d.bound[e]&&d.bound[e](r),h&&ve(t,e)),n)):u,d.update(),h=!0,o(d.before_update),d.fragment=a(d.ctx),n.target&&(n.hydrate?d.fragment.l((f=n.target,Array.from(f.childNodes))):d.fragment.c(),n.intro&&ce(t.$$.fragment),ge(t,n.target,n.anchor),te()),V(c)}let xe;"undefined"!=typeof HTMLElement&&(xe=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}$destroy(){me(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}});class be{$destroy(){me(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}}function we(e){var t,n,r,i;const o=e.$$slots.default,a=c(o,e,null);return{c(){t=k("button"),a&&a.c(),S(t,"class",n=e.color+" "+e.className+" "+e.borderClass+" "+(e.grouped?"grouped":"")+" svelte-vnon4v"),S(t,"style",e.style),i=j(t,"click",e.click_handler)},l(e){a&&a.l(button_nodes)},m(e,n){w(e,t,n),a&&a.m(t,null),r=!0},p(e,i){a&&a.p&&e.$$scope&&a.p(d(o,i,e,null),u(o,i,null)),(!r||e.color||e.className||e.borderClass||e.grouped)&&n!==(n=i.color+" "+i.className+" "+i.borderClass+" "+(i.grouped?"grouped":"")+" svelte-vnon4v")&&S(t,"class",n),r&&!e.style||S(t,"style",i.style)},i(e){r||(ce(a,e),r=!0)},o(e){ue(a,e),r=!1},d(e){e&&$(t),a&&a.d(e),i()}}}function $e(e,t,n){let r,{color:i="primary",className:o="",style:a="",groupPosition:s="",grouped:l=!1}=t,{$$slots:c={},$$scope:u}=t;return e.$set=(e=>{"color"in e&&n("color",i=e.color),"className"in e&&n("className",o=e.className),"style"in e&&n("style",a=e.style),"groupPosition"in e&&n("groupPosition",s=e.groupPosition),"grouped"in e&&n("grouped",l=e.grouped),"$$scope"in e&&n("$$scope",u=e.$$scope)}),e.$$.update=((e={grouped:1})=>{e.grouped&&n("borderClass",r=l?"":"border-normal")}),{color:i,className:o,style:a,groupPosition:s,grouped:l,borderClass:r,click_handler:function(t){U(e,t)},$$slots:c,$$scope:u}}class _e extends be{constructor(e){super(),ye(this,e,$e,we,s,["color","className","style","groupPosition","grouped"])}}var ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ee(e,t){return e(t={exports:{}},t.exports),t.exports}var Ce=Ee(function(e,t){(function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i"']/g,Y=RegExp(W.source),q=RegExp(U.source),Q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+|\s+$/g,re=/^\s+/,ie=/\s+$/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,be="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",we="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+be,$e=RegExp("['’]","g"),_e=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Ee=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])"+be,"g"),Ce=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",we].join("|"),"g"),Ae=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ie="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Se={};Se["[object Float32Array]"]=Se["[object Float64Array]"]=Se["[object Int8Array]"]=Se["[object Int16Array]"]=Se["[object Int32Array]"]=Se["[object Uint8Array]"]=Se["[object Uint8ClampedArray]"]=Se["[object Uint16Array]"]=Se["[object Uint32Array]"]=!0,Se["[object Arguments]"]=Se["[object Array]"]=Se["[object ArrayBuffer]"]=Se["[object Boolean]"]=Se["[object DataView]"]=Se["[object Date]"]=Se["[object Error]"]=Se["[object Function]"]=Se["[object Map]"]=Se["[object Number]"]=Se["[object Object]"]=Se["[object RegExp]"]=Se["[object Set]"]=Se["[object String]"]=Se["[object WeakMap]"]=!1;var Te={};Te["[object Arguments]"]=Te["[object Array]"]=Te["[object ArrayBuffer]"]=Te["[object DataView]"]=Te["[object Boolean]"]=Te["[object Date]"]=Te["[object Float32Array]"]=Te["[object Float64Array]"]=Te["[object Int8Array]"]=Te["[object Int16Array]"]=Te["[object Int32Array]"]=Te["[object Map]"]=Te["[object Number]"]=Te["[object Object]"]=Te["[object RegExp]"]=Te["[object Set]"]=Te["[object String]"]=Te["[object Symbol]"]=Te["[object Uint8Array]"]=Te["[object Uint8ClampedArray]"]=Te["[object Uint16Array]"]=Te["[object Uint32Array]"]=!0,Te["[object Error]"]=Te["[object Function]"]=Te["[object WeakMap]"]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Me=parseFloat,Ne=parseInt,Oe="object"==typeof ke&&ke&&ke.Object===Object&&ke,Pe="object"==typeof self&&self&&self.Object===Object&&self,Le=Oe||Pe||Function("return this")(),Fe=t&&!t.nodeType&&t,Re=Fe&&e&&!e.nodeType&&e,ze=Re&&Re.exports===Fe,Be=ze&&Oe.process,He=function(){try{var e=Re&&Re.f&&Re.f("util").types;return e||Be&&Be.binding&&Be.binding("util")}catch(e){}}(),Ve=He&&He.isArrayBuffer,We=He&&He.isDate,Ue=He&&He.isMap,Ye=He&&He.isRegExp,qe=He&&He.isSet,Qe=He&&He.isTypedArray,Ke=b("length"),Je=w({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ge=w({"&":"&","<":"<",">":">",'"':""","'":"'"}),Xe=w({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ze=function e(t){function w(e){if(Vr(e)&&!Ta(e)&&!(e instanceof ke)){if(e instanceof we)return e;if(Ti.call(e,"__wrapped__"))return gr(e)}return new we(e)}function be(){}function we(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=L}function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function at(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==L)return s;if(!Hr(e))return e;if(r=Ta(e)){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ti.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return gn(e,s)}else{var d=Bo(e),h="[object Function]"==d||"[object GeneratorFunction]"==d;if(Ma(e))return cn(e,l);if("[object Object]"==d||"[object Arguments]"==d||h&&!o){if(s=c||h?{}:Zn(e),!l)return c?function(e,t){return mn(e,zo(e),t)}(e,function(e,t){return e&&mn(t,ii(t),e)}(s,e)):function(e,t){return mn(e,Ro(e),t)}(e,nt(s,e))}else{if(!Te[d])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return un(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return t=n?un(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dn(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return(t=new e.constructor(e.source,de.exec(e))).lastIndex=e.lastIndex,t;case"[object Set]":return new r;case"[object Symbol]":return Ao?_i(Ao.call(e)):{}}}(e,d,l)}}if(a||(a=new Fe),o=a.get(e))return o;a.set(e,s),La(e)?e.forEach(function(r){s.add(at(r,t,n,r,e,a))}):Oa(e)&&e.forEach(function(r,i){s.set(i,at(r,t,n,i,e,a))});c=u?c?Un:Wn:c?ii:ri;var f=r?L:c(e);return i(f||e,function(r,i){f&&(r=e[i=r]),Ke(s,i,at(r,t,n,i,e,a))}),s}function st(e,t,n){var r=n.length;if(null==e)return!r;for(e=_i(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===L&&!(i in e)||!o(a))return!1}return!0}function lt(e,t,n){if("function"!=typeof e)throw new Ci("Expected a function");return Wo(function(){e.apply(L,n)},t)}function ct(e,t,n,r){var i=-1,o=s,a=!0,u=e.length,d=[],h=t.length;if(!u)return d;n&&(t=c(t,E(n))),r?(o=l,a=!1):200<=t.length&&(o=A,a=!1,t=new Pe(t));e:for(;++it}function wt(e,t){return null!=e&&Ti.call(e,t)}function $t(e,t){return null!=e&&t in _i(e)}function _t(e,t,n){for(var r=n?l:s,i=e[0].length,o=e.length,a=o,u=yi(o),d=1/0,h=[];a--;){var f=e[a];a&&t&&(f=c(f,E(t))),d=so(f.length,d),u[a]=!n&&(t||120<=i&&120<=f.length)?new Pe(a&&f):L}f=e[0];var p=-1,g=u[0];e:for(;++p(t=sn(t,e)).length?e:vt(e,Ut(t,0,-1)))?e:e[hr(br(t))])?L:n(t,e,r)}function Et(e){return Vr(e)&&"[object Arguments]"==xt(e)}function Ct(e,t,n,r,i){if(e===t)t=!0;else if(null==e||null==t||!Vr(e)&&!Vr(t))t=e!=e&&t!=t;else e:{var o,a,s=Ta(e),l=Ta(t),c="[object Object]"==(o="[object Arguments]"==(o=s?"[object Array]":Bo(e))?"[object Object]":o);l="[object Object]"==(a="[object Arguments]"==(a=l?"[object Array]":Bo(t))?"[object Object]":a);if((a=o==a)&&Ma(e)){if(!Ma(t)){t=!1;break e}s=!0,c=!1}if(a&&!c)i||(i=new Fe),t=s||Fa(e)?Hn(e,t,n,r,Ct,i):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new zi(e),new zi(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return Or(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=T;case"[object Set]":if(s||(s=N),e.size!=t.size&&!(1&r))break;return(n=a.get(e))?n==t:(r|=2,a.set(e,t),t=Hn(s(e),s(t),r,i,o,a),a.delete(e),t);case"[object Symbol]":if(Ao)return Ao.call(e)==Ao.call(t)}return!1}(e,t,o,n,r,Ct,i);else{if(!(1&n)&&(s=c&&Ti.call(e,"__wrapped__"),o=l&&Ti.call(t,"__wrapped__"),s||o)){e=s?e.value():e,t=o?t.value():t,i||(i=new Fe),t=Ct(e,t,n,r,i);break e}if(a)t:if(i||(i=new Fe),s=1&n,o=Wn(e),l=o.length,a=Wn(t).length,l==a||s){for(c=l;c--;){var u=o[c];if(!(s?u in t:Ti.call(t,u))){t=!1;break t}}if((a=i.get(e))&&i.get(t))t=a==t;else{a=!0,i.set(e,t),i.set(t,e);for(var d=s;++ct?n:0,n)?e[t]:L}function Lt(e,t,n){var r=-1;return t=c(t.length?t:[di],E(Qn())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}(e=Dt(e,function(e){return{a:c(t,function(t){return t(e)}),b:++r,c:e}}),function(e,t){var r;e:{r=-1;for(var i=e.a,o=t.a,a=i.length,s=n.length;++r=s?l:l*("desc"==n[r]?-1:1);break e}}r=e.b-t.b}return r})}function Ft(e,t,n){for(var r=-1,i=t.length,o={};++rt||9007199254740991t&&(t=-t>i?0:i+t),0>(n=n>i?i:n)&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,n=yi(i);++r=i){for(;r>>1,a=e[o];null!==a&&!qr(a)&&(n?a<=t:a(t=sn(t,e)).length?e:vt(e,Ut(t,0,-1)))||delete e[hr(br(t))]}function en(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++or)return r?Xt(e[0]):[];for(var i=-1,o=yi(r);++i=r?e:Ut(e,t,n)}function cn(e,t){if(t)return e.slice();var n=e.length;n=Bi?Bi(n):new e.constructor(n);return e.copy(n),n}function un(e){var t=new e.constructor(e.byteLength);return new zi(t).set(new zi(e)),t}function dn(e,t){return new e.constructor(t?un(e.buffer):e.buffer,e.byteOffset,e.length)}function hn(e,t){if(e!==t){var n=e!==L,r=null===e,i=e==e,o=qr(e),a=t!==L,s=null===t,l=t==t,c=qr(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&ei?L:o,i=1),t=_i(t);++ra&&s[0]!==c&&s[a-1]!==c?[]:M(s,c)).length)n?n?Ht(t,e):t:(n=Ht(t,Zi(e/O(t))),Ae.test(t)?ln(P(n),0,e).join(""):n.slice(0,e))}function Dn(e,t,r,i){var o=1&t,a=_n(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=yi(u+l),h=this&&this!==Le&&this instanceof t?a:e;++ct||r)&&(1&e&&(o[2]=h[2],t|=1&n?0:4),(n=h[3])&&(r=o[3],o[3]=r?fn(r,n,h[4]):n,o[4]=r?M(o[3],"__lodash_placeholder__"):h[4]),(n=h[5])&&(r=o[5],o[5]=r?pn(r,n,h[6]):n,o[6]=r?M(o[5],"__lodash_placeholder__"):h[6]),(n=h[7])&&(o[7]=n),128&e&&(o[8]=null==o[8]?h[8]:so(o[8],h[8])),null==o[9]&&(o[9]=h[9]),o[0]=h[0],o[1]=t),e=o[0],t=o[1],n=o[2],r=o[3],i=o[4],!(s=o[9]=o[9]===L?l?0:e.length:ao(o[9]-c,0))&&24&t&&(t&=-25),cr((h?No:Vo)(t&&1!=t?8==t||16==t?kn(e,t,s):32!=t&&33!=t||i.length?An.apply(L,o):Dn(e,t,n,r):function(e,t,n){var r=1&t,i=_n(e);return function t(){return(this&&this!==Le&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n),o),e,t)}function Rn(e,t,n,r){return e===L||Or(e,ji[n])&&!Ti.call(r,n)?t:e}function zn(e,t,n,r,i,o){return Hr(e)&&Hr(t)&&(o.set(t,e),Ot(e,t,L,zn,o),o.delete(t)),e}function Bn(e){return Ur(e)?L:e}function Hn(e,t,n,r,i,o){var a=1&n,s=e.length;if(s!=(l=t.length)&&!(a&&l>s))return!1;if((l=o.get(e))&&o.get(t))return l==t;var l=-1,c=!0,u=2&n?new Pe:L;for(o.set(e,t),o.set(t,e);++l(n=null==n?0:Jr(n))&&(n=ao(r+n,0)),g(e,Qn(t,3),n)):-1}function vr(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==L&&(i=Jr(n),i=0>n?ao(r+i,0):so(i,r-1)),g(e,Qn(t,3),i,!0)}function yr(e){return null!=e&&e.length?ft(e,1):[]}function xr(e){return e&&e.length?e[0]:L}function br(e){var t=null==e?0:e.length;return t?e[t-1]:L}function wr(e,t){return e&&e.length&&t&&t.length?Rt(e,t):e}function $r(e){return null==e?e:ho.call(e)}function _r(e){if(!e||!e.length)return[];var t=0;return e=a(e,function(e){if(Lr(e))return t=ao(e.length,t),!0}),k(t,function(t){return c(e,b(t))})}function kr(e,t){if(!e||!e.length)return[];var r=_r(e);return null==t?r:c(r,function(e){return n(t,L,e)})}function Er(e){return(e=w(e)).__chain__=!0,e}function Cr(e,t){return t(e)}function Ar(e,t){return(Ta(e)?i:So)(e,Qn(t,3))}function jr(e,t){return(Ta(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:To)(e,Qn(t,3))}function Ir(e,t){return(Ta(e)?c:Dt)(e,Qn(t,3))}function Sr(e,t,n){return t=n?L:t,t=e&&null==t?e.length:t,Fn(e,128,L,L,L,L,t)}function Tr(e,t){var n;if("function"!=typeof t)throw new Ci("Expected a function");return e=Jr(e),function(){return 0<--e&&(n=t.apply(this,arguments)),1>=e&&(t=L),n}}function Dr(e,t,n){function r(t){var n=l,r=c;return l=c=L,p=t,d=e.apply(r,n)}function i(e){var n=e-f;return e-=p,f===L||n>=t||0>n||m&&e>=u}function o(){var e=xa();if(i(e))return a(e);var n,r=Wo;n=e-p,e=t-(e-f),n=m?so(e,u-n):e,h=r(o,n)}function a(e){return h=L,v&&l?r(e):(l=c=L,d)}function s(){var e=xa(),n=i(e);if(l=arguments,c=this,f=e,n){if(h===L)return p=e=f,h=Wo(o,t),g?r(e):d;if(m)return Po(h),h=Wo(o,t),r(f)}return h===L&&(h=Wo(o,t)),d}var l,c,u,d,h,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new Ci("Expected a function");return t=Xr(t)||0,Hr(n)&&(g=!!n.leading,u=(m="maxWait"in n)?ao(Xr(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),s.cancel=function(){h!==L&&Po(h),p=0,l=f=c=h=L},s.flush=function(){return h===L?d:a(xa())},s}function Mr(e,t){function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;return o.has(i)?o.get(i):(r=e.apply(this,r),n.cache=o.set(i,r)||o,r)}if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ci("Expected a function");return n.cache=new(Mr.Cache||Oe),n}function Nr(e){if("function"!=typeof e)throw new Ci("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Or(e,t){return e===t||e!=e&&t!=t}function Pr(e){return null!=e&&Br(e.length)&&!Rr(e)}function Lr(e){return Vr(e)&&Pr(e)}function Fr(e){if(!Vr(e))return!1;var t=xt(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ur(e)}function Rr(e){return!!Hr(e)&&("[object Function]"==(e=xt(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}function zr(e){return"number"==typeof e&&e==Jr(e)}function Br(e){return"number"==typeof e&&-1=e}function Hr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vr(e){return null!=e&&"object"==typeof e}function Wr(e){return"number"==typeof e||Vr(e)&&"[object Number]"==xt(e)}function Ur(e){return!(!Vr(e)||"[object Object]"!=xt(e))&&(null===(e=Hi(e))||"function"==typeof(e=Ti.call(e,"constructor")&&e.constructor)&&e instanceof e&&Si.call(e)==Oi)}function Yr(e){return"string"==typeof e||!Ta(e)&&Vr(e)&&"[object String]"==xt(e)}function qr(e){return"symbol"==typeof e||Vr(e)&&"[object Symbol]"==xt(e)}function Qr(e){if(!e)return[];if(Pr(e))return Yr(e)?P(e):gn(e);if(qi&&e[qi]){e=e[qi]();for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}return("[object Map]"==(t=Bo(e))?T:"[object Set]"==t?N:ai)(e)}function Kr(e){return e?(e=Xr(e))===F||e===-F?1.7976931348623157e308*(0>e?-1:1):e==e?e:0:0===e?e:0}function Jr(e){var t=(e=Kr(e))%1;return e==e?t?e-t:e:0}function Gr(e){return e?ot(Jr(e),0,4294967295):0}function Xr(e){if("number"==typeof e)return e;if(qr(e))return R;if(Hr(e)&&(e=Hr(e="function"==typeof e.valueOf?e.valueOf():e)?e+"":e),"string"!=typeof e)return 0===e?e:+e;e=e.replace(ne,"");var t=fe.test(e);return t||ge.test(e)?Ne(e.slice(2),t?2:8):he.test(e)?R:+e}function Zr(e){return mn(e,ii(e))}function ei(e){return null==e?"":Gt(e)}function ti(e,t,n){return(e=null==e?L:vt(e,t))===L?n:e}function ni(e,t){return null!=e&&Xn(e,t,$t)}function ri(e){return Pr(e)?Re(e):St(e)}function ii(e){if(Pr(e))e=Re(e,!0);else if(Hr(e)){var t,n=or(e),r=[];for(t in e)("constructor"!=t||!n&&Ti.call(e,t))&&r.push(t);e=r}else{if(t=[],null!=e)for(n in _i(e))t.push(n);e=t}return e}function oi(e,t){if(null==e)return{};var n=c(Un(e),function(e){return[e]});return t=Qn(t),Ft(e,n,function(e,n){return t(e,n[0])})}function ai(e){return null==e?[]:C(e,ri(e))}function si(e){return us(ei(e).toLowerCase())}function li(e){return(e=ei(e))&&e.replace(ve,Je).replace(_e,"")}function ci(e,t,n){return e=ei(e),(t=n?L:t)===L?je.test(e)?e.match(Ce)||[]:e.match(le)||[]:e.match(t)||[]}function ui(e){return function(){return e}}function di(e){return e}function hi(e){return It("function"==typeof e?e:at(e,1))}function fi(e,t,n){var r=ri(t),o=mt(t,r);null!=n||Hr(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=mt(t,ri(t)));var a=!(Hr(n)&&"chain"in n&&!n.chain),s=Rr(e);return i(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=gn(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,u([this.value()],arguments))})}),e}function pi(){}function gi(e){return rr(e)?b(hr(e)):function(e){return function(t){return vt(t,e)}}(e)}function mi(){return[]}function vi(){return!1}var yi=(t=null==t?Le:Ze.defaults(Le.Object(),t,Ze.pick(Le,Ie))).Array,xi=t.Date,bi=t.Error,wi=t.Function,$i=t.Math,_i=t.Object,ki=t.RegExp,Ei=t.String,Ci=t.TypeError,Ai=yi.prototype,ji=_i.prototype,Ii=t["__core-js_shared__"],Si=wi.prototype.toString,Ti=ji.hasOwnProperty,Di=0,Mi=function(){var e=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ni=ji.toString,Oi=Si.call(_i),Pi=Le._,Li=ki("^"+Si.call(Ti).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fi=ze?t.Buffer:L,Ri=t.Symbol,zi=t.Uint8Array,Bi=Fi?Fi.g:L,Hi=D(_i.getPrototypeOf,_i),Vi=_i.create,Wi=ji.propertyIsEnumerable,Ui=Ai.splice,Yi=Ri?Ri.isConcatSpreadable:L,qi=Ri?Ri.iterator:L,Qi=Ri?Ri.toStringTag:L,Ki=function(){try{var e=Gn(_i,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ji=t.clearTimeout!==Le.clearTimeout&&t.clearTimeout,Gi=xi&&xi.now!==Le.Date.now&&xi.now,Xi=t.setTimeout!==Le.setTimeout&&t.setTimeout,Zi=$i.ceil,eo=$i.floor,to=_i.getOwnPropertySymbols,no=Fi?Fi.isBuffer:L,ro=t.isFinite,io=Ai.join,oo=D(_i.keys,_i),ao=$i.max,so=$i.min,lo=xi.now,co=t.parseInt,uo=$i.random,ho=Ai.reverse,fo=Gn(t,"DataView"),po=Gn(t,"Map"),go=Gn(t,"Promise"),mo=Gn(t,"Set"),vo=Gn(t,"WeakMap"),yo=Gn(_i,"create"),xo=vo&&new vo,bo={},wo=fr(fo),$o=fr(po),_o=fr(go),ko=fr(mo),Eo=fr(vo),Co=Ri?Ri.prototype:L,Ao=Co?Co.valueOf:L,jo=Co?Co.toString:L,Io=function(){function e(){}return function(t){return Hr(t)?Vi?Vi(t):(e.prototype=t,t=new e,e.prototype=L,t):{}}}();w.templateSettings={escape:Q,evaluate:K,interpolate:J,variable:"",imports:{_:w}},w.prototype=be.prototype,w.prototype.constructor=w,we.prototype=Io(be.prototype),we.prototype.constructor=we,ke.prototype=Io(be.prototype),ke.prototype.constructor=ke,Ee.prototype.clear=function(){this.__data__=yo?yo(null):{},this.size=0},Ee.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},Ee.prototype.get=function(e){var t=this.__data__;return yo?"__lodash_hash_undefined__"===(e=t[e])?L:e:Ti.call(t,e)?t[e]:L},Ee.prototype.has=function(e){var t=this.__data__;return yo?t[e]!==L:Ti.call(t,e)},Ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yo&&t===L?"__lodash_hash_undefined__":t,this},De.prototype.clear=function(){this.__data__=[],this.size=0},De.prototype.delete=function(e){var t=this.__data__;return!(0>(e=et(t,e))||(e==t.length-1?t.pop():Ui.call(t,e,1),--this.size,0))},De.prototype.get=function(e){var t=this.__data__;return 0>(e=et(t,e))?L:t[e][1]},De.prototype.has=function(e){return-1r?(++this.size,n.push([e,t])):n[r][1]=t,this},Oe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(po||De),string:new Ee}},Oe.prototype.delete=function(e){return e=Kn(this,e).delete(e),this.size-=e?1:0,e},Oe.prototype.get=function(e){return Kn(this,e).get(e)},Oe.prototype.has=function(e){return Kn(this,e).has(e)},Oe.prototype.set=function(e,t){var n=Kn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Fe.prototype.clear=function(){this.__data__=new De,this.size=0},Fe.prototype.delete=function(e){var t=this.__data__;return e=t.delete(e),this.size=t.size,e},Fe.prototype.get=function(e){return this.__data__.get(e)},Fe.prototype.has=function(e){return this.__data__.has(e)},Fe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof De){var r=n.__data__;if(!po||199>r.length)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oe(r)}return n.set(e,t),this.size=n.size,this};var So=xn(pt),To=xn(gt,!0),Do=bn(),Mo=bn(!0),No=xo?function(e,t){return xo.set(e,t),e}:di,Oo=Ki?function(e,t){return Ki(e,"toString",{configurable:!0,enumerable:!1,value:ui(t),writable:!0})}:di,Po=Ji||function(e){return Le.clearTimeout(e)},Lo=mo&&1/N(new mo([,-0]))[1]==F?function(e){return new mo(e)}:pi,Fo=xo?function(e){return xo.get(e)}:pi,Ro=to?function(e){return null==e?[]:(e=_i(e),a(to(e),function(t){return Wi.call(e,t)}))}:mi,zo=to?function(e){for(var t=[];e;)u(t,Ro(e)),e=Hi(e);return t}:mi,Bo=xt;(fo&&"[object DataView]"!=Bo(new fo(new ArrayBuffer(1)))||po&&"[object Map]"!=Bo(new po)||go&&"[object Promise]"!=Bo(go.resolve())||mo&&"[object Set]"!=Bo(new mo)||vo&&"[object WeakMap]"!=Bo(new vo))&&(Bo=function(e){var t=xt(e);if(e=(e="[object Object]"==t?e.constructor:L)?fr(e):"")switch(e){case wo:return"[object DataView]";case $o:return"[object Map]";case _o:return"[object Promise]";case ko:return"[object Set]";case Eo:return"[object WeakMap]"}return t});var Ho=Ii?Rr:vi,Vo=ur(No),Wo=Xi||function(e,t){return Le.setTimeout(e,t)},Uo=ur(Oo),Yo=function(e){var t=(e=Mr(e,function(e){return 500===t.size&&t.clear(),e})).cache;return e}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Z,function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)}),t}),qo=Vt(function(e,t){return Lr(e)?ct(e,ft(t,1,Lr,!0)):[]}),Qo=Vt(function(e,t){var n=br(t);return Lr(n)&&(n=L),Lr(e)?ct(e,ft(t,1,Lr,!0),Qn(n,2)):[]}),Ko=Vt(function(e,t){var n=br(t);return Lr(n)&&(n=L),Lr(e)?ct(e,ft(t,1,Lr,!0),L,n):[]}),Jo=Vt(function(e){var t=c(e,on);return t.length&&t[0]===e[0]?_t(t):[]}),Go=Vt(function(e){var t=br(e),n=c(e,on);return t===br(n)?t=L:n.pop(),n.length&&n[0]===e[0]?_t(n,Qn(t,2)):[]}),Xo=Vt(function(e){var t=br(e),n=c(e,on);return(t="function"==typeof t?t:L)&&n.pop(),n.length&&n[0]===e[0]?_t(n,L,t):[]}),Zo=Vt(wr),ea=Vn(function(e,t){var n=null==e?0:e.length,r=it(e,t);return zt(e,c(t,function(e){return tr(e,n)?+e:e}).sort(hn)),r}),ta=Vt(function(e){return Xt(ft(e,1,Lr,!0))}),na=Vt(function(e){var t=br(e);return Lr(t)&&(t=L),Xt(ft(e,1,Lr,!0),Qn(t,2))}),ra=Vt(function(e){var t="function"==typeof(t=br(e))?t:L;return Xt(ft(e,1,Lr,!0),L,t)}),ia=Vt(function(e,t){return Lr(e)?ct(e,t):[]}),oa=Vt(function(e){return nn(a(e,Lr))}),aa=Vt(function(e){var t=br(e);return Lr(t)&&(t=L),nn(a(e,Lr),Qn(t,2))}),sa=Vt(function(e){var t="function"==typeof(t=br(e))?t:L;return nn(a(e,Lr),L,t)}),la=Vt(_r),ca=Vt(function(e){var t="function"==typeof(t=1<(t=e.length)?e[t-1]:L)?(e.pop(),t):L;return kr(e,t)}),ua=Vn(function(e){function t(t){return it(t,e)}var n=e.length,r=n?e[0]:0,i=this.__wrapped__;return!(1=t}),Sa=Et(function(){return arguments}())?Et:function(e){return Vr(e)&&Ti.call(e,"callee")&&!Wi.call(e,"callee")},Ta=yi.isArray,Da=Ve?E(Ve):function(e){return Vr(e)&&"[object ArrayBuffer]"==xt(e)},Ma=no||vi,Na=We?E(We):function(e){return Vr(e)&&"[object Date]"==xt(e)},Oa=Ue?E(Ue):function(e){return Vr(e)&&"[object Map]"==Bo(e)},Pa=Ye?E(Ye):function(e){return Vr(e)&&"[object RegExp]"==xt(e)},La=qe?E(qe):function(e){return Vr(e)&&"[object Set]"==Bo(e)},Fa=Qe?E(Qe):function(e){return Vr(e)&&Br(e.length)&&!!Se[xt(e)]},Ra=Nn(Tt),za=Nn(function(e,t){return e<=t}),Ba=yn(function(e,t){if(or(t)||Pr(t))mn(t,ri(t),e);else for(var n in t)Ti.call(t,n)&&Ke(e,n,t[n])}),Ha=yn(function(e,t){mn(t,ii(t),e)}),Va=yn(function(e,t,n,r){mn(t,ii(t),e,r)}),Wa=yn(function(e,t,n,r){mn(t,ri(t),e,r)}),Ua=Vn(it),Ya=Vt(function(e,t){e=_i(e);var n=-1,r=t.length;for((i=2--e)return t.apply(this,arguments)}},w.ary=Sr,w.assign=Ba,w.assignIn=Ha,w.assignInWith=Va,w.assignWith=Wa,w.at=Ua,w.before=Tr,w.bind=ba,w.bindAll=hs,w.bindKey=wa,w.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ta(e)?e:[e]},w.chain=Er,w.chunk=function(e,t,n){if(t=(n?nr(e,t,n):t===L)?1:ao(Jr(t),0),!(n=null==e?0:e.length)||1>t)return[];for(var r=0,i=0,o=yi(Zi(n/t));r(t=n||t===L?1:Jr(t))?0:t,r):[]},w.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Ut(e,0,0>(t=r-(t=n||t===L?1:Jr(t)))?0:t):[]},w.dropRightWhile=function(e,t){return e&&e.length?en(e,Qn(t,3),!0,!0):[]},w.dropWhile=function(e,t){return e&&e.length?en(e,Qn(t,3),!0):[]},w.fill=function(e,t,n,r){var i=null==e?0:e.length;if(!i)return[];for(n&&"number"!=typeof n&&nr(e,t,n)&&(n=0,r=i),i=e.length,0>(n=Jr(n))&&(n=-n>i?0:i+n),0>(r=r===L||r>i?i:Jr(r))&&(r+=i),r=n>r?0:Gr(r);n>>0)?(e=ei(e))&&("string"==typeof t||null!=t&&!Pa(t))&&(!(t=Gt(t))&&Ae.test(e))?ln(P(e),0,n):e.split(t,n):[]},w.spread=function(e,t){if("function"!=typeof e)throw new Ci("Expected a function");return t=null==t?0:ao(Jr(t),0),Vt(function(r){var i=r[t];return r=ln(r,0,t),i&&u(r,i),n(e,this,r)})},w.tail=function(e){var t=null==e?0:e.length;return t?Ut(e,1,t):[]},w.take=function(e,t,n){return e&&e.length?Ut(e,0,0>(t=n||t===L?1:Jr(t))?0:t):[]},w.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ut(e,0>(t=r-(t=n||t===L?1:Jr(t)))?0:t,r):[]},w.takeRightWhile=function(e,t){return e&&e.length?en(e,Qn(t,3),!1,!0):[]},w.takeWhile=function(e,t){return e&&e.length?en(e,Qn(t,3)):[]},w.tap=function(e,t){return t(e),e},w.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ci("Expected a function");return Hr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Dr(e,t,{leading:r,maxWait:t,trailing:i})},w.thru=Cr,w.toArray=Qr,w.toPairs=ts,w.toPairsIn=ns,w.toPath=function(e){return Ta(e)?c(e,hr):qr(e)?[e]:gn(Yo(ei(e)))},w.toPlainObject=Zr,w.transform=function(e,t,n){var r=Ta(e),o=r||Ma(e)||Fa(e);if(t=Qn(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Hr(e)&&Rr(a)?Io(Hi(e)):{}}return(o?i:pt)(e,function(e,r,i){return t(n,e,r,i)}),n},w.unary=function(e){return Sr(e,1)},w.union=ta,w.unionBy=na,w.unionWith=ra,w.uniq=function(e){return e&&e.length?Xt(e):[]},w.uniqBy=function(e,t){return e&&e.length?Xt(e,Qn(t,2)):[]},w.uniqWith=function(e,t){return t="function"==typeof t?t:L,e&&e.length?Xt(e,L,t):[]},w.unset=function(e,t){return null==e||Zt(e,t)},w.unzip=_r,w.unzipWith=kr,w.update=function(e,t,n){return null==e?e:Wt(e,t,an(n)(vt(e,t)),void 0)},w.updateWith=function(e,t,n,r){return r="function"==typeof r?r:L,null!=e&&(e=Wt(e,t,an(n)(vt(e,t)),r)),e},w.values=ai,w.valuesIn=function(e){return null==e?[]:C(e,ii(e))},w.without=ia,w.words=ci,w.wrap=function(e,t){return Ea(an(t),e)},w.xor=oa,w.xorBy=aa,w.xorWith=sa,w.zip=la,w.zipObject=function(e,t){return rn(e||[],t||[],Ke)},w.zipObjectDeep=function(e,t){return rn(e||[],t||[],Wt)},w.zipWith=ca,w.entries=ts,w.entriesIn=ns,w.extend=Ha,w.extendWith=Va,fi(w,w),w.add=$s,w.attempt=ds,w.camelCase=rs,w.capitalize=si,w.ceil=_s,w.clamp=function(e,t,n){return n===L&&(n=t,t=L),n!==L&&(n=(n=Xr(n))==n?n:0),t!==L&&(t=(t=Xr(t))==t?t:0),ot(Xr(e),t,n)},w.clone=function(e){return at(e,4)},w.cloneDeep=function(e){return at(e,5)},w.cloneDeepWith=function(e,t){return at(e,5,t="function"==typeof t?t:L)},w.cloneWith=function(e,t){return at(e,4,t="function"==typeof t?t:L)},w.conformsTo=function(e,t){return null==t||st(e,t,ri(t))},w.deburr=li,w.defaultTo=function(e,t){return null==e||e!=e?t:e},w.divide=ks,w.endsWith=function(e,t,n){e=ei(e),t=Gt(t);var r=e.length;r=n=n===L?r:ot(Jr(n),0,r);return 0<=(n-=t.length)&&e.slice(n,r)==t},w.eq=Or,w.escape=function(e){return(e=ei(e))&&q.test(e)?e.replace(U,Ge):e},w.escapeRegExp=function(e){return(e=ei(e))&&te.test(e)?e.replace(ee,"\\$&"):e},w.every=function(e,t,n){var r=Ta(e)?o:ut;return n&&nr(e,t,n)&&(t=L),r(e,Qn(t,3))},w.find=ha,w.findIndex=mr,w.findKey=function(e,t){return p(e,Qn(t,3),pt)},w.findLast=fa,w.findLastIndex=vr,w.findLastKey=function(e,t){return p(e,Qn(t,3),gt)},w.floor=Es,w.forEach=Ar,w.forEachRight=jr,w.forIn=function(e,t){return null==e?e:Do(e,Qn(t,3),ii)},w.forInRight=function(e,t){return null==e?e:Mo(e,Qn(t,3),ii)},w.forOwn=function(e,t){return e&&pt(e,Qn(t,3))},w.forOwnRight=function(e,t){return e&>(e,Qn(t,3))},w.get=ti,w.gt=ja,w.gte=Ia,w.has=function(e,t){return null!=e&&Xn(e,t,wt)},w.hasIn=ni,w.head=xr,w.identity=di,w.includes=function(e,t,n,r){return e=Pr(e)?e:ai(e),n=n&&!r?Jr(n):0,r=e.length,0>n&&(n=ao(r+n,0)),Yr(e)?n<=r&&-1(n=null==n?0:Jr(n))&&(n=ao(r+n,0)),m(e,t,n)):-1},w.inRange=function(e,t,n){return t=Kr(t),n===L?(n=t,t=0):n=Kr(n),(e=Xr(e))>=so(t,n)&&e=e},w.isSet=La,w.isString=Yr,w.isSymbol=qr,w.isTypedArray=Fa,w.isUndefined=function(e){return e===L},w.isWeakMap=function(e){return Vr(e)&&"[object WeakMap]"==Bo(e)},w.isWeakSet=function(e){return Vr(e)&&"[object WeakSet]"==xt(e)},w.join=function(e,t){return null==e?"":io.call(e,t)},w.kebabCase=is,w.last=br,w.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;if(n!==L&&(i=0>(i=Jr(n))?ao(r+i,0):so(i,r-1)),t==t){for(n=i+1;n--&&e[n]!==t;);e=n}else e=g(e,y,i,!0);return e},w.lowerCase=os,w.lowerFirst=as,w.lt=Ra,w.lte=za,w.max=function(e){return e&&e.length?dt(e,di,bt):L},w.maxBy=function(e,t){return e&&e.length?dt(e,Qn(t,2),bt):L},w.mean=function(e){return x(e,di)},w.meanBy=function(e,t){return x(e,Qn(t,2))},w.min=function(e){return e&&e.length?dt(e,di,Tt):L},w.minBy=function(e,t){return e&&e.length?dt(e,Qn(t,2),Tt):L},w.stubArray=mi,w.stubFalse=vi,w.stubObject=function(){return{}},w.stubString=function(){return""},w.stubTrue=function(){return!0},w.multiply=Cs,w.nth=function(e,t){return e&&e.length?Pt(e,Jr(t)):L},w.noConflict=function(){return Le._===this&&(Le._=Pi),this},w.noop=pi,w.now=xa,w.pad=function(e,t,n){e=ei(e);var r=(t=Jr(t))?O(e):0;return!t||r>=t?e:Tn(eo(t=(t-r)/2),n)+e+Tn(Zi(t),n)},w.padEnd=function(e,t,n){e=ei(e);var r=(t=Jr(t))?O(e):0;return t&&rt){var r=e;e=t,t=r}return n||e%1||t%1?(n=uo(),so(e+n*(t-e+Me("1e-"+((n+"").length-1))),t)):Bt(e,t)},w.reduce=function(e,t,n){var r=Ta(e)?d:$,i=3>arguments.length;return r(e,Qn(t,4),n,i,So)},w.reduceRight=function(e,t,n){var r=Ta(e)?h:$,i=3>arguments.length;return r(e,Qn(t,4),n,i,To)},w.repeat=function(e,t,n){return t=(n?nr(e,t,n):t===L)?1:Jr(t),Ht(ei(e),t)},w.replace=function(){var e=arguments,t=ei(e[0]);return 3>e.length?t:t.replace(e[1],e[2])},w.result=function(e,t,n){var r=-1,i=(t=sn(t,e)).length;for(i||(i=1,e=L);++r(e=Jr(e))||9007199254740991=o)return e;if(1>(o=n-O(r)))return r;if(n=a?ln(a,0,o).join(""):e.slice(0,o),i===L)return n+r;if(a&&(o+=n.length-o),Pa(i)){if(e.slice(o).search(i)){var s=n;for(i.global||(i=ki(i.source,ei(de.exec(i))+"g")),i.lastIndex=0;a=i.exec(s);)var l=a.index;n=n.slice(0,l===L?o:l)}}else e.indexOf(Gt(i),o)!=o&&(-1<(i=n.lastIndexOf(i))&&(n=n.slice(0,i)));return n+r},w.unescape=function(e){return(e=ei(e))&&Y.test(e)?e.replace(W,Xe):e},w.uniqueId=function(e){var t=++Di;return ei(e)+t},w.upperCase=cs,w.upperFirst=us,w.each=Ar,w.eachRight=jr,w.first=xr,fi(w,function(){var e={};return pt(w,function(t,n){Ti.call(w.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),w.VERSION="4.17.15",i("bind bindKey curry curryRight partial partialRight".split(" "),function(e){w[e].placeholder=w}),i(["drop","take"],function(e,t){ke.prototype[e]=function(n){n=n===L?1:ao(Jr(n),0);var r=this.__filtered__&&!t?new ke(this):this.clone();return r.__filtered__?r.__takeCount__=so(n,r.__takeCount__):r.__views__.push({size:so(n,4294967295),type:e+(0>r.__dir__?"Right":"")}),r},ke.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),i(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ke.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qn(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),i(["head","last"],function(e,t){var n="take"+(t?"Right":"");ke.prototype[e]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[n](1)}}),ke.prototype.compact=function(){return this.filter(di)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Vt(function(e,t){return"function"==typeof e?new ke(this):this.map(function(n){return kt(n,e,t)})}),ke.prototype.reject=function(e){return this.filter(Nr(Qn(e)))},ke.prototype.slice=function(e,t){e=Jr(e);var n=this;return n.__filtered__&&(0t)?new ke(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==L&&(n=0>(t=Jr(t))?n.dropRight(-t):n.take(t-e)),n)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(4294967295)},pt(ke.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=w[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(w.prototype[t]=function(){function t(e){return e=i.apply(w,u([e],s)),r&&h?e[0]:e}var a=this.__wrapped__,s=r?[1]:arguments,l=a instanceof ke,c=s[0],d=l||Ta(a);d&&n&&"function"==typeof c&&1!=c.length&&(l=d=!1);var h=this.__chain__,f=!!this.__actions__.length;c=o&&!h,l=l&&!f;return!o&&d?(a=l?a:new ke(this),(a=e.apply(a,s)).__actions__.push({func:Cr,args:[t],thisArg:L}),new we(a,h)):c&&l?e.apply(this,s):(a=this.thru(t),c?r?a.value()[0]:a.value():a)})}),i("pop push shift sort splice unshift".split(" "),function(e){var t=Ai[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);w.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ta(i)?i:[],e)}return this[n](function(n){return t.apply(Ta(n)?n:[],e)})}}),pt(ke.prototype,function(e,t){var n=w[t];if(n){var r=n.name+"";Ti.call(bo,r)||(bo[r]=[]),bo[r].push({name:t,func:n})}}),bo[An(L,2).name]=[{name:"wrapper",func:L}],ke.prototype.clone=function(){var e=new ke(this.__wrapped__);return e.__actions__=gn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gn(this.__views__),e},ke.prototype.reverse=function(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ke.prototype.value=function(){var e,t=this.__wrapped__.value(),n=this.__dir__,r=Ta(t),i=0>n,o=r?t.length:0;e=o;for(var a=this.__views__,s=0,l=-1,c=a.length;++l=this.__values__.length;return{done:e,value:e?L:this.__values__[this.__index__++]}},w.prototype.plant=function(e){for(var t,n=this;n instanceof be;){var r=gr(n);r.__index__=0,r.__values__=L,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},w.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof ke?(this.__actions__.length&&(e=new ke(this)),(e=e.reverse()).__actions__.push({func:Cr,args:[$r],thisArg:L}),new we(e,this.__chain__)):this.thru($r)},w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=function(){return tn(this.__wrapped__,this.__actions__)},w.prototype.first=w.prototype.head,qi&&(w.prototype[qi]=function(){return this}),w}();Re?((Re.exports=Ze)._=Ze,Fe._=Ze):Le._=Ze}).call(ke)}),Ae=Ee(function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}}),je=(Ae.aliasToReal,Ae.aryMethod,Ae.aryRearg,Ae.iterateeAry,Ae.iterateeRearg,Ae.methodRearg,Ae.methodSpread,Ae.mutate,Ae.realToAlias,Ae.remap,Ae.skipFixed,Ae.skipRearg,{}),Ie=Array.prototype.push;function Se(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function Te(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function De(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}var Me=function e(t,n,r,i){var o="function"==typeof n,a=n===Object(n);if(a&&(i=r,r=n,n=void 0),null==r)throw new TypeError;i||(i={});var s={cap:!("cap"in i)||i.cap,curry:!("curry"in i)||i.curry,fixed:!("fixed"in i)||i.fixed,immutable:!("immutable"in i)||i.immutable,rearg:!("rearg"in i)||i.rearg},l=o?r:je,c="curry"in i&&i.curry,u="fixed"in i&&i.fixed,d="rearg"in i&&i.rearg,h=o?r.runInContext():void 0,f=o?r:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},p=f.ary,g=f.assign,m=f.clone,v=f.curry,y=f.forEach,x=f.isArray,b=f.isError,w=f.isFunction,$=f.isWeakMap,_=f.keys,k=f.rearg,E=f.toInteger,C=f.toPath,A=_(Ae.aryMethod),j={castArray:function(e){return function(){var t=arguments[0];return x(t)?e(Te(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return s.cap&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:Se(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!w(n))return e(n,Object(t));var r=[];return y(_(t),function(e){w(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),y(r,function(e){var t=e[1];w(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},nthArg:function(e){return function(t){var n=t<0?1:E(t)+1;return v(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return v(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),i)}}};function I(e,t){if(s.cap){var n=Ae.iterateeRearg[e];if(n)return function(e,t){return N(e,function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(k(Se(e,n),t),n)})}(t,n);var r=!o&&Ae.iterateeAry[e];if(r)return function(e,t){return N(e,function(e){return"function"==typeof e?Se(e,t):e})}(t,r)}return t}function S(e,t,n){if(s.fixed&&(u||!Ae.skipFixed[e])){var r=Ae.methodSpread[e],i=r&&r.start;return void 0===i?p(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var o=i[t],a=i.slice(0,t);return o&&Ie.apply(a,o),t!=r&&Ie.apply(a,i.slice(t+1)),e.apply(this,a)}}(t,i)}return t}function T(e,t,n){return s.rearg&&n>1&&(d||!Ae.skipRearg[e])?k(t,Ae.methodRearg[e]||Ae.aryRearg[n]):t}function D(e,t){for(var n=-1,r=(t=C(t)).length,i=r-1,o=m(Object(e)),a=o;null!=a&&++n1?v(l,u):l,!1}var l,u}),!r}),r||(r=o),r==t&&(r=c?v(r,1):function(){return t.apply(this,arguments)}),r.convert=M(i,t),r.placeholder=t.placeholder=n,r}if(!a)return O(n,r,l);var P=r,L=[];return y(A,function(e){y(Ae.aryMethod[e],function(e){var t=P[Ae.remap[e]||e];t&&L.push([e,O(e,t,P)])})}),y(_(P),function(e){var t=P[e];if("function"==typeof t){for(var n=L.length;n--;)if(L[n][0]==e)return;t.convert=M(e,t),L.push([e,t])}}),y(L,function(e){P[e[0]]=e[1]}),P.convert=function(e){return P.runInContext.convert(e)(void 0)},P.placeholder=P,y(_(P),function(e){y(Ae.realToAlias[e]||[],function(t){P[t]=P[e]})}),P},Ne=Ce.runInContext(),Oe=Me(Ne,Ne),Pe=Oe.union,Le=Oe.reduce,Fe=Oe.isUndefined,Re=Oe.cloneDeep,ze=Oe.split,Be=Oe.some,He=Oe.map,Ve=Oe.filter,We=Oe.isEmpty,Ue=Oe.countBy,Ye=Oe.includes,qe=Oe.last,Qe=Oe.find,Ke=Oe.constant,Je=Oe.take,Ge=Oe.first,Xe=Oe.intersection,Ze=Oe.mapValues,et=Oe.isNull,tt=Oe.has,nt=Oe.isInteger,rt=Oe.isNumber,it=Oe.isString,ot=Oe.isBoolean,at=Oe.isDate,st=Oe.isArray,lt=Oe.isObject,ct=Oe.clone,ut=Oe.values,dt=Oe.keyBy,ht=Oe.isNaN,ft=Oe.keys,pt=(Oe.orderBy,Oe.concat),gt=(Oe.reverse,Oe.difference),mt=(Oe.merge,Oe.flatten),vt=Oe.each,yt=(Oe.pull,Oe.join),xt=Oe.defaultCase,bt=Oe.uniqBy,wt=Oe.every,$t=Oe.uniqWith,_t=(Oe.isFunction,Oe.groupBy,Oe.differenceBy,Oe.intersectionBy,Oe.isEqual),kt=Oe.max,Et=Oe.sortBy,Ct=Oe.assign,At=(Oe.uniq,Oe.trimChars),jt=Oe.trimCharsStart,It=Oe.isObjectLike,St=(Oe.flattenDeep,Oe.indexOf,Oe.isPlainObject),Tt=Oe.toNumber,Dt=1;var Mt,Nt,Ot,Pt={nextValue:function(){return(Dt=(9301*Dt+49297)%233280)/233280},seed:function(e){Dt=e}},Lt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function Ft(){Ot=!1}function Rt(e){if(e){if(e!==Mt){if(e.length!==Lt.length)throw new Error("Custom alphabet for shortid must be "+Lt.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(e,t,n){return t!==n.lastIndexOf(e)});if(t.length)throw new Error("Custom alphabet for shortid must be "+Lt.length+" unique characters. These characters were not unique: "+t.join(", "));Mt=e,Ft()}}else Mt!==Lt&&(Mt=Lt,Ft())}function zt(){return Ot||(Ot=function(){Mt||Rt(Lt);for(var e,t=Mt.split(""),n=[],r=Pt.nextValue();t.length>0;)r=Pt.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var Bt={get:function(){return Mt||Lt},characters:function(e){return Rt(e),Mt},seed:function(e){Pt.seed(e),Nt!==e&&(Ft(),Nt=e)},lookup:function(e){return zt()[e]},shuffled:zt},Ht="object"==typeof window&&(window.crypto||window.msCrypto),Vt=Ht&&Ht.getRandomValues?function(e){return Ht.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n0&&(t+=qt(Ut)),t+=qt(n)};var Gt=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+Bt.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))},Xt=Ee(function(e){var t=0;function n(){return Jt(t)}e.exports=n,e.exports.generate=n,e.exports.seed=function(t){return Bt.seed(t),e.exports},e.exports.worker=function(n){return t=n,e.exports},e.exports.characters=function(e){return void 0!==e&&Bt.characters(e),Bt.shuffled()},e.exports.isValid=Gt}),Zt=(Xt.generate,Xt.seed,Xt.worker,Xt.characters,Xt.isValid,Xt.generate),en=Ee(function(e,t){(function(){var n,r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="__lodash_hash_undefined__",s=500,l="__lodash_placeholder__",c=1,u=2,d=4,h=1,f=2,p=1,g=2,m=4,v=8,y=16,x=32,b=64,w=128,$=256,_=512,k=30,E="...",C=800,A=16,j=1,I=2,S=1/0,T=9007199254740991,D=1.7976931348623157e308,M=NaN,N=4294967295,O=N-1,P=N>>>1,L=[["ary",w],["bind",p],["bindKey",g],["curry",v],["curryRight",y],["flip",_],["partial",x],["partialRight",b],["rearg",$]],F="[object Arguments]",R="[object Array]",z="[object AsyncFunction]",B="[object Boolean]",H="[object Date]",V="[object DOMException]",W="[object Error]",U="[object Function]",Y="[object GeneratorFunction]",q="[object Map]",Q="[object Number]",K="[object Null]",J="[object Object]",G="[object Proxy]",X="[object RegExp]",Z="[object Set]",ee="[object String]",te="[object Symbol]",ne="[object Undefined]",re="[object WeakMap]",ie="[object WeakSet]",oe="[object ArrayBuffer]",ae="[object DataView]",se="[object Float32Array]",le="[object Float64Array]",ce="[object Int8Array]",ue="[object Int16Array]",de="[object Int32Array]",he="[object Uint8Array]",fe="[object Uint8ClampedArray]",pe="[object Uint16Array]",ge="[object Uint32Array]",me=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,we=RegExp(xe.source),$e=RegExp(be.source),_e=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Ce=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Se=/[\\^$.*+?()[\]{}|]/g,Te=RegExp(Se.source),De=/^\s+|\s+$/g,Me=/^\s+/,Ne=/\s+$/,Oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pe=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Re=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,He=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Ke=/['\n\r\u2028\u2029\\]/g,Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ge="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xe="[\\ud800-\\udfff]",Ze="["+Ge+"]",et="["+Je+"]",tt="\\d+",nt="[\\u2700-\\u27bf]",rt="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+Ge+tt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",at="[^\\ud800-\\udfff]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ut="(?:"+rt+"|"+it+")",dt="(?:"+ct+"|"+it+")",ht="(?:"+et+"|"+ot+")"+"?",ft="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[at,st,lt].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),pt="(?:"+[nt,st,lt].join("|")+")"+ft,gt="(?:"+[at+et+"?",et,st,lt,Xe].join("|")+")",mt=RegExp("['’]","g"),vt=RegExp(et,"g"),yt=RegExp(ot+"(?="+ot+")|"+gt+ft,"g"),xt=RegExp([ct+"?"+rt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ze,ct,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ze,ct+ut,"$"].join("|")+")",ct+"?"+ut+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ct+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tt,pt].join("|"),"g"),bt=RegExp("[\\u200d\\ud800-\\udfff"+Je+"\\ufe0e\\ufe0f]"),wt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_t=-1,kt={};kt[se]=kt[le]=kt[ce]=kt[ue]=kt[de]=kt[he]=kt[fe]=kt[pe]=kt[ge]=!0,kt[F]=kt[R]=kt[oe]=kt[B]=kt[ae]=kt[H]=kt[W]=kt[U]=kt[q]=kt[Q]=kt[J]=kt[X]=kt[Z]=kt[ee]=kt[re]=!1;var Et={};Et[F]=Et[R]=Et[oe]=Et[ae]=Et[B]=Et[H]=Et[se]=Et[le]=Et[ce]=Et[ue]=Et[de]=Et[q]=Et[Q]=Et[J]=Et[X]=Et[Z]=Et[ee]=Et[te]=Et[he]=Et[fe]=Et[pe]=Et[ge]=!0,Et[W]=Et[U]=Et[re]=!1;var Ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,jt=parseInt,It="object"==typeof ke&&ke&&ke.Object===Object&&ke,St="object"==typeof self&&self&&self.Object===Object&&self,Tt=It||St||Function("return this")(),Dt=t&&!t.nodeType&&t,Mt=Dt&&e&&!e.nodeType&&e,Nt=Mt&&Mt.exports===Dt,Ot=Nt&&It.process,Pt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Ot&&Ot.binding&&Ot.binding("util")}catch(e){}}(),Lt=Pt&&Pt.isArrayBuffer,Ft=Pt&&Pt.isDate,Rt=Pt&&Pt.isMap,zt=Pt&&Pt.isRegExp,Bt=Pt&&Pt.isSet,Ht=Pt&&Pt.isTypedArray;function Vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Wt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Jt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&an(t,e[n],0)>-1;);return n}var bn=dn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wn=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function $n(e){return"\\"+Ct[e]}function _n(e){return bt.test(e)}function kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function En(e,t){return function(n){return e(t(n))}}function Cn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Dn=function e(t){var ke,Je=(t=null==t?Tt:Dn.defaults(Tt.Object(),t,Dn.pick(Tt,$t))).Array,Ge=t.Date,Xe=t.Error,Ze=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,ot=Je.prototype,at=Ze.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ct=at.toString,ut=st.hasOwnProperty,dt=0,ht=(ke=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+ke:"",ft=st.toString,pt=ct.call(tt),gt=Tt._,yt=nt("^"+ct.call(ut).replace(Se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=Nt?t.Buffer:n,Ct=t.Symbol,It=t.Uint8Array,St=bt?bt.allocUnsafe:n,Dt=En(tt.getPrototypeOf,tt),Mt=tt.create,Ot=st.propertyIsEnumerable,Pt=ot.splice,nn=Ct?Ct.isConcatSpreadable:n,dn=Ct?Ct.iterator:n,Mn=Ct?Ct.toStringTag:n,Nn=function(){try{var e=Ro(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),On=t.clearTimeout!==Tt.clearTimeout&&t.clearTimeout,Pn=Ge&&Ge.now!==Tt.Date.now&&Ge.now,Ln=t.setTimeout!==Tt.setTimeout&&t.setTimeout,Fn=et.ceil,Rn=et.floor,zn=tt.getOwnPropertySymbols,Bn=bt?bt.isBuffer:n,Hn=t.isFinite,Vn=ot.join,Wn=En(tt.keys,tt),Un=et.max,Yn=et.min,qn=Ge.now,Qn=t.parseInt,Kn=et.random,Jn=ot.reverse,Gn=Ro(t,"DataView"),Xn=Ro(t,"Map"),Zn=Ro(t,"Promise"),er=Ro(t,"Set"),tr=Ro(t,"WeakMap"),nr=Ro(tt,"create"),rr=tr&&new tr,ir={},or=da(Gn),ar=da(Xn),sr=da(Zn),lr=da(er),cr=da(tr),ur=Ct?Ct.prototype:n,dr=ur?ur.valueOf:n,hr=ur?ur.toString:n;function fr(e){if(js(e)&&!vs(e)&&!(e instanceof vr)){if(e instanceof mr)return e;if(ut.call(e,"__wrapped__"))return ha(e)}return new mr(e)}var pr=function(){function e(){}return function(t){if(!As(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function gr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Or(e,t,r,i,o,a){var s,l=t&c,h=t&u,f=t&d;if(r&&(s=o?r(e,i,o,a):r(e)),s!==n)return s;if(!As(e))return e;var p=vs(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return no(e,s)}else{var g=Ho(e),m=g==U||g==Y;if(ws(e))return Ji(e,l);if(g==J||g==F||m&&!o){if(s=h||m?{}:Wo(e),!l)return h?function(e,t){return ro(e,Bo(e),t)}(e,function(e,t){return e&&ro(t,ol(t),e)}(s,e)):function(e,t){return ro(e,zo(e),t)}(e,Tr(s,e))}else{if(!Et[g])return o?e:{};s=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case oe:return Gi(e);case B:case H:return new a(+e);case ae:return function(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case se:case le:case ce:case ue:case de:case he:case fe:case pe:case ge:return Xi(e,n);case q:return new a;case Q:case ee:return new a(e);case X:return(o=new(i=e).constructor(i.source,Be.exec(i))).lastIndex=i.lastIndex,o;case Z:return new a;case te:return r=e,dr?tt(dr.call(r)):{}}}(e,g,l)}}a||(a=new $r);var v=a.get(e);if(v)return v;a.set(e,s),Ms(e)?e.forEach(function(n){s.add(Or(n,t,r,n,e,a))}):Is(e)&&e.forEach(function(n,i){s.set(i,Or(n,t,r,i,e,a))});var y=p?n:(f?h?Do:To:h?ol:il)(e);return Ut(y||e,function(n,i){y&&(n=e[i=n]),jr(s,i,Or(n,t,r,i,e,a))}),s}function Pr(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var o=r[i],a=t[o],s=e[o];if(s===n&&!(o in e)||!a(s))return!1}return!0}function Lr(e,t,r){if("function"!=typeof e)throw new it(o);return ia(function(){e.apply(n,r)},t)}function Fr(e,t,n,i){var o=-1,a=Kt,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Gt(t,gn(n))),i?(a=Jt,s=!1):t.length>=r&&(a=vn,s=!1,t=new wr(t));e:for(;++o-1},xr.prototype.set=function(e,t){var n=this.__data__,r=Ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Xn||xr),string:new yr}},br.prototype.delete=function(e){var t=Lo(this,e).delete(e);return this.size-=t?1:0,t},br.prototype.get=function(e){return Lo(this,e).get(e)},br.prototype.has=function(e){return Lo(this,e).has(e)},br.prototype.set=function(e,t){var n=Lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(e){return this.__data__.set(e,a),this},wr.prototype.has=function(e){return this.__data__.has(e)},$r.prototype.clear=function(){this.__data__=new xr,this.size=0},$r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$r.prototype.get=function(e){return this.__data__.get(e)},$r.prototype.has=function(e){return this.__data__.has(e)},$r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var i=n.__data__;if(!Xn||i.length0&&n(s)?t>1?Wr(s,t-1,n,r,i):Xt(i,s):r||(i[i.length]=s)}return i}var Ur=so(),Yr=so(!0);function qr(e,t){return e&&Ur(e,t,il)}function Qr(e,t){return e&&Yr(e,t,il)}function Kr(e,t){return Qt(t,function(t){return ks(e[t])})}function Jr(e,t){for(var r=0,i=(t=Yi(t,e)).length;null!=e&&rt}function ei(e,t){return null!=e&&ut.call(e,t)}function ti(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?Jt:Kt,o=e[0].length,a=e.length,s=a,l=Je(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Gt(d,gn(t))),c=Yn(d.length,c),l[s]=!r&&(t||o>=120&&d.length>=120)?new wr(s&&d):n}d=e[0];var h=-1,f=l[0];e:for(;++h=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function yi(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Pt.call(s,l,1),Pt.call(e,l,1);return e}function bi(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Yo(i)?Pt.call(e,i,1):Fi(e,i)}}return e}function wi(e,t){return e+Rn(Kn()*(t-e+1))}function $i(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=Rn(t/2))&&(e+=e)}while(t);return n}function _i(e,t){return oa(ea(e,t,Sl),e+"")}function ki(e){return kr(fl(e))}function Ei(e,t){var n=fl(e);return la(n,Nr(t,0,n.length))}function Ci(e,t,r,i){if(!As(e))return e;for(var o=-1,a=(t=Yi(t,e)).length,s=a-1,l=e;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Je(i);++r>>1,a=e[o];null!==a&&!Os(a)&&(n?a<=t:a=r){var u=t?null:_o(e);if(u)return An(u);s=!1,o=vn,c=new wr}else c=t?[]:l;e:for(;++i=i?e:Si(e,t,r)}var Ki=On||function(e){return Tt.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Gi(e){var t=new e.constructor(e.byteLength);return new It(t).set(new It(e)),t}function Xi(e,t){var n=t?Gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Zi(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=Os(e),s=t!==n,l=null===t,c=t==t,u=Os(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&e1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&qo(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=tt(t);++i-1?o[a?t[s]:s]:n}}function fo(e){return So(function(t){var r=t.length,i=r,a=mr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new it(o);if(a&&!l&&"wrapper"==No(s))var l=new mr([],!0)}for(i=l?i:r;++i1&&v.reverse(),d&&cl))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,p=!0,g=r&f?new wr:n;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ut(L,function(n){var r="_."+n[0];t&n[1]&&!Kt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Pe);return t?t[1].split(Le):[]}(r),n)))}function sa(e){var t=0,r=0;return function(){var i=qn(),o=A-(i-r);if(r=i,o>0){if(++t>=C)return arguments[0]}else t=0;return e.apply(n,arguments)}}function la(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Da(e,r)});function Ra(e){var t=fr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Ba=So(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Mr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof vr&&Yo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:za,args:[o],thisArg:n}),new mr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(o)});var Ha=io(function(e,t,n){ut.call(e,n)?++e[n]:Dr(e,n,1)});var Va=ho(ma),Wa=ho(va);function Ua(e,t){return(vs(e)?Ut:Rr)(e,Po(t,3))}function Ya(e,t){return(vs(e)?Yt:zr)(e,Po(t,3))}var qa=io(function(e,t,n){ut.call(e,n)?e[n].push(t):Dr(e,n,[t])});var Qa=_i(function(e,t,n){var r=-1,i="function"==typeof t,o=xs(e)?Je(e.length):[];return Rr(e,function(e){o[++r]=i?Vt(t,e,n):ri(e,t,n)}),o}),Ka=io(function(e,t,n){Dr(e,n,t)});function Ja(e,t){return(vs(e)?Gt:hi)(e,Po(t,3))}var Ga=io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Xa=_i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&qo(e,t[0],t[1])?t=[]:n>2&&qo(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,Wr(t,1),[])}),Za=Pn||function(){return Tt.Date.now()};function es(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Eo(e,w,n,n,n,n,t)}function ts(e,t){var r;if("function"!=typeof t)throw new it(o);return e=Bs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ns=_i(function(e,t,n){var r=p;if(n.length){var i=Cn(n,Oo(ns));r|=x}return Eo(e,r,t,n,i)}),rs=_i(function(e,t,n){var r=p|g;if(n.length){var i=Cn(n,Oo(rs));r|=x}return Eo(t,r,e,n,i)});function is(e,t,r){var i,a,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new it(o);function g(t){var r=i,o=a;return i=a=n,d=t,l=e.apply(o,r)}function m(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=s}function v(){var e=Za();if(m(e))return y(e);c=ia(v,function(e){var n=t-(e-u);return f?Yn(n,s-(e-d)):n}(e))}function y(e){return c=n,p&&i?g(e):(i=a=n,l)}function x(){var e=Za(),r=m(e);if(i=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=ia(v,t),h?g(e):l}(u);if(f)return Ki(c),c=ia(v,t),g(u)}return c===n&&(c=ia(v,t)),l}return t=Vs(t)||0,As(r)&&(h=!!r.leading,s=(f="maxWait"in r)?Un(Vs(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),x.cancel=function(){c!==n&&Ki(c),d=0,i=u=a=c=n},x.flush=function(){return c===n?l:y(Za())},x}var os=_i(function(e,t){return Lr(e,1,t)}),as=_i(function(e,t,n){return Lr(e,Vs(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ss.Cache||br),n}function ls(e){if("function"!=typeof e)throw new it(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=br;var cs=qi(function(e,t){var n=(t=1==t.length&&vs(t[0])?Gt(t[0],gn(Po())):Gt(Wr(t,1),gn(Po()))).length;return _i(function(r){for(var i=-1,o=Yn(r.length,n);++i=t}),ms=ii(function(){return arguments}())?ii:function(e){return js(e)&&ut.call(e,"callee")&&!Ot.call(e,"callee")},vs=Je.isArray,ys=Lt?gn(Lt):function(e){return js(e)&&Xr(e)==oe};function xs(e){return null!=e&&Cs(e.length)&&!ks(e)}function bs(e){return js(e)&&xs(e)}var ws=Bn||Vl,$s=Ft?gn(Ft):function(e){return js(e)&&Xr(e)==H};function _s(e){if(!js(e))return!1;var t=Xr(e);return t==W||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!Ts(e)}function ks(e){if(!As(e))return!1;var t=Xr(e);return t==U||t==Y||t==z||t==G}function Es(e){return"number"==typeof e&&e==Bs(e)}function Cs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function js(e){return null!=e&&"object"==typeof e}var Is=Rt?gn(Rt):function(e){return js(e)&&Ho(e)==q};function Ss(e){return"number"==typeof e||js(e)&&Xr(e)==Q}function Ts(e){if(!js(e)||Xr(e)!=J)return!1;var t=Dt(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==pt}var Ds=zt?gn(zt):function(e){return js(e)&&Xr(e)==X};var Ms=Bt?gn(Bt):function(e){return js(e)&&Ho(e)==Z};function Ns(e){return"string"==typeof e||!vs(e)&&js(e)&&Xr(e)==ee}function Os(e){return"symbol"==typeof e||js(e)&&Xr(e)==te}var Ps=Ht?gn(Ht):function(e){return js(e)&&Cs(e.length)&&!!kt[Xr(e)]};var Ls=bo(di),Fs=bo(function(e,t){return e<=t});function Rs(e){if(!e)return[];if(xs(e))return Ns(e)?Sn(e):no(e);if(dn&&e[dn])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[dn]());var t=Ho(e);return(t==q?kn:t==Z?An:fl)(e)}function zs(e){return e?(e=Vs(e))===S||e===-S?(e<0?-1:1)*D:e==e?e:0:0===e?e:0}function Bs(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function Hs(e){return e?Nr(Bs(e),0,N):0}function Vs(e){if("number"==typeof e)return e;if(Os(e))return M;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(De,"");var n=Ve.test(e);return n||Ue.test(e)?jt(e.slice(2),n?2:8):He.test(e)?M:+e}function Ws(e){return ro(e,ol(e))}function Us(e){return null==e?"":Pi(e)}var Ys=oo(function(e,t){if(Go(t)||xs(t))ro(t,il(t),e);else for(var n in t)ut.call(t,n)&&jr(e,n,t[n])}),qs=oo(function(e,t){ro(t,ol(t),e)}),Qs=oo(function(e,t,n,r){ro(t,ol(t),e,r)}),Ks=oo(function(e,t,n,r){ro(t,il(t),e,r)}),Js=So(Mr);var Gs=_i(function(e,t){e=tt(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&qo(t[0],t[1],o)&&(i=1);++r1),t}),ro(e,Do(e),n),r&&(n=Or(n,c|u|d,jo));for(var i=t.length;i--;)Fi(n,t[i]);return n});var cl=So(function(e,t){return null==e?{}:function(e,t){return yi(e,t,function(t,n){return el(e,n)})}(e,t)});function ul(e,t){if(null==e)return{};var n=Gt(Do(e),function(e){return[e]});return t=Po(t),yi(e,n,function(e,n){return t(e,n[0])})}var dl=ko(il),hl=ko(ol);function fl(e){return null==e?[]:mn(e,il(e))}var pl=co(function(e,t,n){return t=t.toLowerCase(),e+(n?gl(t):t)});function gl(e){return _l(Us(e).toLowerCase())}function ml(e){return(e=Us(e))&&e.replace(qe,bn).replace(vt,"")}var vl=co(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yl=co(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),xl=lo("toLowerCase");var bl=co(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var wl=co(function(e,t,n){return e+(n?" ":"")+_l(t)});var $l=co(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_l=lo("toUpperCase");function kl(e,t,r){return e=Us(e),(t=r?n:t)===n?function(e){return wt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Fe)||[]}(e):e.match(t)||[]}var El=_i(function(e,t){try{return Vt(e,n,t)}catch(e){return _s(e)?e:new Xe(e)}}),Cl=So(function(e,t){return Ut(t,function(t){t=ua(t),Dr(e,t,ns(e[t],e))}),e});function Al(e){return function(){return e}}var jl=fo(),Il=fo(!0);function Sl(e){return e}function Tl(e){return li("function"==typeof e?e:Or(e,c))}var Dl=_i(function(e,t){return function(n){return ri(n,e,t)}}),Ml=_i(function(e,t){return function(n){return ri(e,n,t)}});function Nl(e,t,n){var r=il(t),i=Kr(t,r);null!=n||As(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Kr(t,il(t)));var o=!(As(n)&&"chain"in n&&!n.chain),a=ks(e);return Ut(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=no(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Xt([this.value()],arguments))})}),e}function Ol(){}var Pl=vo(Gt),Ll=vo(qt),Fl=vo(tn);function Rl(e){return Qo(e)?un(ua(e)):function(e){return function(t){return Jr(t,e)}}(e)}var zl=xo(),Bl=xo(!0);function Hl(){return[]}function Vl(){return!1}var Wl=mo(function(e,t){return e+t},0),Ul=$o("ceil"),Yl=mo(function(e,t){return e/t},1),ql=$o("floor");var Ql,Kl=mo(function(e,t){return e*t},1),Jl=$o("round"),Gl=mo(function(e,t){return e-t},0);return fr.after=function(e,t){if("function"!=typeof t)throw new it(o);return e=Bs(e),function(){if(--e<1)return t.apply(this,arguments)}},fr.ary=es,fr.assign=Ys,fr.assignIn=qs,fr.assignInWith=Qs,fr.assignWith=Ks,fr.at=Js,fr.before=ts,fr.bind=ns,fr.bindAll=Cl,fr.bindKey=rs,fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return vs(e)?e:[e]},fr.chain=Ra,fr.chunk=function(e,t,r){t=(r?qo(e,t,r):t===n)?1:Un(Bs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=Je(Fn(i/t));oo?0:o+r),(i=i===n||i>o?o:Bs(i))<0&&(i+=o),i=r>i?0:Hs(i);r>>0)?(e=Us(e))&&("string"==typeof t||null!=t&&!Ds(t))&&!(t=Pi(t))&&_n(e)?Qi(Sn(e),0,r):e.split(t,r):[]},fr.spread=function(e,t){if("function"!=typeof e)throw new it(o);return t=null==t?0:Un(Bs(t),0),_i(function(n){var r=n[t],i=Qi(n,0,t);return r&&Xt(i,r),Vt(e,this,i)})},fr.tail=function(e){var t=null==e?0:e.length;return t?Si(e,1,t):[]},fr.take=function(e,t,r){return e&&e.length?Si(e,0,(t=r||t===n?1:Bs(t))<0?0:t):[]},fr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Si(e,(t=i-(t=r||t===n?1:Bs(t)))<0?0:t,i):[]},fr.takeRightWhile=function(e,t){return e&&e.length?zi(e,Po(t,3),!1,!0):[]},fr.takeWhile=function(e,t){return e&&e.length?zi(e,Po(t,3)):[]},fr.tap=function(e,t){return t(e),e},fr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(o);return As(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(e,t,{leading:r,maxWait:t,trailing:i})},fr.thru=za,fr.toArray=Rs,fr.toPairs=dl,fr.toPairsIn=hl,fr.toPath=function(e){return vs(e)?Gt(e,ua):Os(e)?[e]:no(ca(Us(e)))},fr.toPlainObject=Ws,fr.transform=function(e,t,n){var r=vs(e),i=r||ws(e)||Ps(e);if(t=Po(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:As(e)&&ks(o)?pr(Dt(e)):{}}return(i?Ut:qr)(e,function(e,r,i){return t(n,e,r,i)}),n},fr.unary=function(e){return es(e,1)},fr.union=ja,fr.unionBy=Ia,fr.unionWith=Sa,fr.uniq=function(e){return e&&e.length?Li(e):[]},fr.uniqBy=function(e,t){return e&&e.length?Li(e,Po(t,2)):[]},fr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?Li(e,n,t):[]},fr.unset=function(e,t){return null==e||Fi(e,t)},fr.unzip=Ta,fr.unzipWith=Da,fr.update=function(e,t,n){return null==e?e:Ri(e,t,Ui(n))},fr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ri(e,t,Ui(r),i)},fr.values=fl,fr.valuesIn=function(e){return null==e?[]:mn(e,ol(e))},fr.without=Ma,fr.words=kl,fr.wrap=function(e,t){return us(Ui(t),e)},fr.xor=Na,fr.xorBy=Oa,fr.xorWith=Pa,fr.zip=La,fr.zipObject=function(e,t){return Vi(e||[],t||[],jr)},fr.zipObjectDeep=function(e,t){return Vi(e||[],t||[],Ci)},fr.zipWith=Fa,fr.entries=dl,fr.entriesIn=hl,fr.extend=qs,fr.extendWith=Qs,Nl(fr,fr),fr.add=Wl,fr.attempt=El,fr.camelCase=pl,fr.capitalize=gl,fr.ceil=Ul,fr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Vs(r))==r?r:0),t!==n&&(t=(t=Vs(t))==t?t:0),Nr(Vs(e),t,r)},fr.clone=function(e){return Or(e,d)},fr.cloneDeep=function(e){return Or(e,c|d)},fr.cloneDeepWith=function(e,t){return Or(e,c|d,t="function"==typeof t?t:n)},fr.cloneWith=function(e,t){return Or(e,d,t="function"==typeof t?t:n)},fr.conformsTo=function(e,t){return null==t||Pr(e,t,il(t))},fr.deburr=ml,fr.defaultTo=function(e,t){return null==e||e!=e?t:e},fr.divide=Yl,fr.endsWith=function(e,t,r){e=Us(e),t=Pi(t);var i=e.length,o=r=r===n?i:Nr(Bs(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},fr.eq=fs,fr.escape=function(e){return(e=Us(e))&&$e.test(e)?e.replace(be,wn):e},fr.escapeRegExp=function(e){return(e=Us(e))&&Te.test(e)?e.replace(Se,"\\$&"):e},fr.every=function(e,t,r){var i=vs(e)?qt:Br;return r&&qo(e,t,r)&&(t=n),i(e,Po(t,3))},fr.find=Va,fr.findIndex=ma,fr.findKey=function(e,t){return rn(e,Po(t,3),qr)},fr.findLast=Wa,fr.findLastIndex=va,fr.findLastKey=function(e,t){return rn(e,Po(t,3),Qr)},fr.floor=ql,fr.forEach=Ua,fr.forEachRight=Ya,fr.forIn=function(e,t){return null==e?e:Ur(e,Po(t,3),ol)},fr.forInRight=function(e,t){return null==e?e:Yr(e,Po(t,3),ol)},fr.forOwn=function(e,t){return e&&qr(e,Po(t,3))},fr.forOwnRight=function(e,t){return e&&Qr(e,Po(t,3))},fr.get=Zs,fr.gt=ps,fr.gte=gs,fr.has=function(e,t){return null!=e&&Vo(e,t,ei)},fr.hasIn=el,fr.head=xa,fr.identity=Sl,fr.includes=function(e,t,n,r){e=xs(e)?e:fl(e),n=n&&!r?Bs(n):0;var i=e.length;return n<0&&(n=Un(i+n,0)),Ns(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&an(e,t,n)>-1},fr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Bs(n);return i<0&&(i=Un(r+i,0)),an(e,t,i)},fr.inRange=function(e,t,r){return t=zs(t),r===n?(r=t,t=0):r=zs(r),function(e,t,n){return e>=Yn(t,n)&&e=-T&&e<=T},fr.isSet=Ms,fr.isString=Ns,fr.isSymbol=Os,fr.isTypedArray=Ps,fr.isUndefined=function(e){return e===n},fr.isWeakMap=function(e){return js(e)&&Ho(e)==re},fr.isWeakSet=function(e){return js(e)&&Xr(e)==ie},fr.join=function(e,t){return null==e?"":Vn.call(e,t)},fr.kebabCase=vl,fr.last=_a,fr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Bs(r))<0?Un(i+o,0):Yn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):on(e,ln,o,!0)},fr.lowerCase=yl,fr.lowerFirst=xl,fr.lt=Ls,fr.lte=Fs,fr.max=function(e){return e&&e.length?Hr(e,Sl,Zr):n},fr.maxBy=function(e,t){return e&&e.length?Hr(e,Po(t,2),Zr):n},fr.mean=function(e){return cn(e,Sl)},fr.meanBy=function(e,t){return cn(e,Po(t,2))},fr.min=function(e){return e&&e.length?Hr(e,Sl,di):n},fr.minBy=function(e,t){return e&&e.length?Hr(e,Po(t,2),di):n},fr.stubArray=Hl,fr.stubFalse=Vl,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=Kl,fr.nth=function(e,t){return e&&e.length?mi(e,Bs(t)):n},fr.noConflict=function(){return Tt._===this&&(Tt._=gt),this},fr.noop=Ol,fr.now=Za,fr.pad=function(e,t,n){e=Us(e);var r=(t=Bs(t))?In(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return yo(Rn(i),n)+e+yo(Fn(i),n)},fr.padEnd=function(e,t,n){e=Us(e);var r=(t=Bs(t))?In(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Kn();return Yn(e+o*(t-e+At("1e-"+((o+"").length-1))),t)}return wi(e,t)},fr.reduce=function(e,t,n){var r=vs(e)?Zt:hn,i=arguments.length<3;return r(e,Po(t,4),n,i,Rr)},fr.reduceRight=function(e,t,n){var r=vs(e)?en:hn,i=arguments.length<3;return r(e,Po(t,4),n,i,zr)},fr.repeat=function(e,t,r){return t=(r?qo(e,t,r):t===n)?1:Bs(t),$i(Us(e),t)},fr.replace=function(){var e=arguments,t=Us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fr.result=function(e,t,r){var i=-1,o=(t=Yi(t,e)).length;for(o||(o=1,e=n);++iT)return[];var n=N,r=Yn(e,N);t=Po(t),e-=N;for(var i=pn(r,t);++n=a)return e;var l=r-In(i);if(l<1)return i;var c=s?Qi(s,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(s&&(l+=c.length-l),Ds(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=nt(o.source,Us(Be.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===n?l:h)}}else if(e.indexOf(Pi(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},fr.unescape=function(e){return(e=Us(e))&&we.test(e)?e.replace(xe,Tn):e},fr.uniqueId=function(e){var t=++dt;return Us(e)+t},fr.upperCase=$l,fr.upperFirst=_l,fr.each=Ua,fr.eachRight=Ya,fr.first=xa,Nl(fr,(Ql={},qr(fr,function(e,t){ut.call(fr.prototype,t)||(Ql[t]=e)}),Ql),{chain:!1}),fr.VERSION="4.17.15",Ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fr[e].placeholder=fr}),Ut(["drop","take"],function(e,t){vr.prototype[e]=function(r){r=r===n?1:Un(Bs(r),0);var i=this.__filtered__&&!t?new vr(this):this.clone();return i.__filtered__?i.__takeCount__=Yn(r,i.__takeCount__):i.__views__.push({size:Yn(r,N),type:e+(i.__dir__<0?"Right":"")}),i},vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ut(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==j||3==n;vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Po(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ut(["head","last"],function(e,t){var n="take"+(t?"Right":"");vr.prototype[e]=function(){return this[n](1).value()[0]}}),Ut(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");vr.prototype[e]=function(){return this.__filtered__?new vr(this):this[n](1)}}),vr.prototype.compact=function(){return this.filter(Sl)},vr.prototype.find=function(e){return this.filter(e).head()},vr.prototype.findLast=function(e){return this.reverse().find(e)},vr.prototype.invokeMap=_i(function(e,t){return"function"==typeof e?new vr(this):this.map(function(n){return ri(n,e,t)})}),vr.prototype.reject=function(e){return this.filter(ls(Po(e)))},vr.prototype.slice=function(e,t){e=Bs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Bs(t))<0?r.dropRight(-t):r.take(t-e)),r)},vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vr.prototype.toArray=function(){return this.take(N)},qr(vr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=fr[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(fr.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof vr,c=s[0],u=l||vs(t),d=function(e){var t=o.apply(fr,Xt([e],s));return i&&h?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,g=l&&!f;if(!a&&u){t=g?t:new vr(this);var m=e.apply(t,s);return m.__actions__.push({func:za,args:[d],thisArg:n}),new mr(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),Ut(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);fr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(vs(i)?i:[],e)}return this[n](function(n){return t.apply(vs(n)?n:[],e)})}}),qr(vr.prototype,function(e,t){var n=fr[t];if(n){var r=n.name+"";ut.call(ir,r)||(ir[r]=[]),ir[r].push({name:t,func:n})}}),ir[po(n,g).name]=[{name:"wrapper",func:n}],vr.prototype.clone=function(){var e=new vr(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vr.prototype.reverse=function(){if(this.__filtered__){var e=new vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=vs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},fr.prototype.plant=function(e){for(var t,r=this;r instanceof gr;){var i=ha(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vr){var t=e;return this.__actions__.length&&(t=new vr(this)),(t=t.reverse()).__actions__.push({func:za,args:[Aa],thisArg:n}),new mr(t,this.__chain__)}return this.thru(Aa)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Bi(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,dn&&(fr.prototype[dn]=function(){return this}),fr}();Mt?((Mt.exports=Dn)._=Dn,Dt._=Dn):Tt._=Dn}).call(ke)}),tn=en.flow,nn=en.join,rn=en.replace,on=en.trim,an=en.dropRight,sn=en.takeRight,ln=en.head,cn=(en.reduce,en.tail),un=en.startsWith,dn=en.findIndex,hn=en.merge,fn=en.assign,pn=en.each,gn=en.find;en.orderBy,en.union;const mn=e=>Pe(["onBegin","onComplete","onError"])(e),vn=()=>mn([]),yn={recordApi:{save:mn(["onInvalid","onRecordUpdated","onRecordCreated"]),delete:vn(),getContext:vn(),getNew:vn(),load:vn(),validate:vn(),uploadFile:vn(),downloadFile:vn()},indexApi:{buildIndex:vn(),listItems:vn(),delete:vn(),aggregates:vn()},collectionApi:{getAllowedRecordTypes:vn(),initialise:vn(),delete:vn()},authApi:{authenticate:vn(),authenticateTemporaryAccess:vn(),createTemporaryAccess:vn(),createUser:vn(),enableUser:vn(),disableUser:vn(),loadAccessLevels:vn(),getNewAccessLevel:vn(),getNewUser:vn(),getNewUserAuth:vn(),getUsers:vn(),saveAccessLevels:vn(),isAuthorized:vn(),changeMyPassword:vn(),setPasswordFromTemporaryCode:vn(),scorePassword:vn(),isValidPassword:vn(),validateUser:vn(),validateAccessLevels:vn(),setUserAccessLevels:vn()},templateApi:{saveApplicationHierarchy:vn(),saveActionsAndTriggers:vn()},actionsApi:{execute:vn()}},xn=[],bn=(e,t,n)=>`${e}:${t}:${n}`;for(const e in yn)for(const t in yn[e])yn[e][t]=Le((n,r)=>(n[r]=bn(e,t,r),n),{})(yn[e][t]);for(const e in yn)for(const t in yn[e])for(const n in yn[e][t])xn.push(yn[e][t][n]);const wn=yn,$n=xn;class _n extends Error{constructor(e){super(e),this.httpStatusCode=400}}class kn extends Error{constructor(e){super(e),this.httpStatusCode=401}}class En extends Error{constructor(e){super(e),this.httpStatusCode=404}}const Cn=async(e,t,n,r,i,...o)=>{if(In(e,t),!n(e))return void jn(e,r,t);const a=Date.now(),s=()=>Date.now()-a;try{await e.publish(t.onBegin,r);const n=await i(...o);return await Dn(e,r,t,s,n),n}catch(n){throw await Tn(e,r,t,s,n),n}},An=(e,t,n,r,i,...o)=>{if(In(e,t),!n(e))return void jn(e,r,t);const a=Date.now(),s=()=>Date.now()-a;try{e.publish(t.onBegin,r);const n=i(...o);return Dn(e,r,t,s,n),n}catch(n){throw Tn(e,r,t,s,n),n}},jn=(e,t,n)=>{const r=new kn(`Unauthorized: ${n}`);throw Tn(e,t,n,()=>0,r),r},In=(e,t,n)=>{const r=Zt();Fe(e.calls)&&(e.calls=(()=>({seedCallId:Fe(n)?r:n,threadCallId:r,stack:[]}))()),e.calls.stack.push({namespace:t,callId:r})},Sn=e=>{e.calls.stack.pop(),0===e.calls.stack.length&&delete e.calls},Tn=async(e,t,n,r,i)=>{const o=Re(t);o.error=i,o.elapsed=r(),await e.publish(n.onError,o),Sn(e)},Dn=async(e,t,n,r,i)=>{const o=Re(t);return o.result=i,o.elapsed=r(),await e.publish(n.onComplete,o),Sn(e),i},Mn=async(e,t,n,r,i=0)=>{try{const o={timeout:await e.getEpochTime()+n,key:t,totalTimeout:n};return await e.datastore.createFile(t,Nn(o.totalTimeout,o.timeout)),o}catch(o){if(i==r)return Ln;const a=On(t,await e.datastore.loadFile(t));if(await e.getEpochTime()`${e}:${t.toString()}`,On=(e,t)=>Bn(t,[ze(":"),t=>({totalTimeout:new Number(t[0]),timeout:new Number(t[1]),key:e})]),Pn=async(e,t)=>{if(await e.getEpochTime()e===Ln,Rn=()=>new Promise(e=>setTimeout(e,10)),zn=(...e)=>t=>tn(e)(t),Bn=(e,t)=>zn(...t)(e),Hn=e=>on(e,"/"),Vn=(...e)=>{const t=1===e.length&st(e[0])?e[0]:e;return(e=>rn(`/${Hn(e)}`,"//","/"))(yt("/")(t))},Wn=zn(Hn,e=>ze("/")(e)),Un=zn(Wn,an,e=>Vn(...e)),Yn=zn(Wn,sn,ln),qn=Vn("/.config","fields.json"),Qn=Vn("/.config","templates.json"),Kn=Vn("/.config","appDefinition.json"),Jn=e=>Vn("/.config","dir",...Wn(e),"dir.idx"),Gn=zn(Un,Jn),Xn=(e,t,n)=>Fe(e)?Fe(n)?void 0:n():t(),Zn=e=>t=>!e(t),er=Zn(Fe),tr=Zn(et),nr=Zn(ht),rr=(...e)=>t=>Le((e,n)=>(et(e)||1==e)&&n(t),null)(e),ir=(...e)=>t=>Le((e,n)=>1==e||n(t),null)(e),or=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),ar=rr(er,tr,nr),sr=Zn(ar),lr=e=>sr(e)||We(e),cr=e=>t=>ar(t)?t:e(),ur=(e,t)=>n=>ar(n)?e(n):t,dr=e=>t=>!Be(e)(t),hr=e=>t=>dr(t=>!e(t))(t),fr=e=>!We(e),pr=rr(st,fr),gr=rr(it,fr),mr=e=>(t,...n)=>{try{return t.apply(null,...n)}catch(t){return e()}},vr=e=>async(t,...n)=>{try{return await t.apply(null,...n)}catch(t){return await e()}},yr=mr(()=>{}),xr=vr(async()=>{}),br=e=>{try{return e(),!1}catch(e){return!0}},wr=e=>!br(e),$r=e=>mr(Ke(e)),_r=$r(void 0),kr=(...e)=>t=>{if(!We(e))return!0===(()=>ln(e)[0](t))()?(()=>ln(e)[1](t))():kr(...cn(e))(t)},Er=(...e)=>t=>Ye(t)(e),Cr=Ke(!0),Ar=e=>{let t,n,r,i=0;if(0==e.length)return i;for(t=0,r=e.length;tnt(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=0-Number.MAX_SAFE_INTEGER,Ir=e=>et(e)?null:at(e)?e:new Date(e),Sr=e=>et(e)?null:"true"===e||!0===e,Tr=e=>et(e)?null:Tt(e),Dr=e=>st(e)&&hr(it)(e),Mr=async e=>new Promise(t=>setTimeout(t,e)),Nr=async(e,t,n,...r)=>{try{return await e(...r)}catch(i){if(t>1)return await Mr(n).then(async()=>await Nr(e,t-1,n,...r));throw i}};var Or={ifExists:Xn,getOrDefault:(e,t)=>Xn(e,()=>e,()=>t),isDefined:er,isNonNull:tr,isNotNaN:nr,allTrue:rr,isSomething:ar,mapIfSomethingOrDefault:ur,mapIfSomethingOrBlank:e=>ur(e,""),configFolder:"/.config",fieldDefinitions:qn,isNothing:sr,not:Zn,switchCase:kr,defaultCase:Cr,StartsWith:e=>t=>un(t,e),contains:e=>t=>dn(t,t=>t===e)>-1,templateDefinitions:Qn,handleErrorWith:$r,handleErrorWithUndefined:_r,tryOr:mr,tryOrIgnore:yr,tryAwaitOr:vr,tryAwaitOrIgnore:xr,dirIndex:Jn,keySep:"/",$:Bn,$$:zn,getDirFomKey:Un,getFileFromKey:Yn,splitKey:Wn,somethingOrDefault:(e,t)=>cr(Ke(t))(e),getIndexKeyFromFileKey:Gn,joinKey:Vn,somethingOrGetDefault:cr,appDefinitionFile:Kn,isValue:e=>t=>e===t,all:hr,isOneOf:Er,memberMatches:(e,t)=>n=>t(n[e]),defineError:(e,t)=>{try{return e()}catch(e){throw e.message=`${t} : ${e.message}`,e}},anyTrue:ir,isNonEmptyArray:pr,causesException:br,executesWithoutException:wr,none:dr,getHashCode:Ar,awEx:async e=>{try{return[void 0,await e]}catch(e){return[e,void 0]}},apiWrapper:Cn,events:wn,eventsList:$n,isNothingOrEmpty:lr,isSafeInteger:jr,toNumber:Tt,toDate:Ir,toBool:Sr,isArrayOfString:Dr,getLock:Mn,NO_LOCK:Ln,isNolock:Fn,insensitiveEquals:or,pause:Mr,retry:Nr};const Pr=(e,t,n)=>({field:e,error:t,isValid:n}),Lr=(e,t)=>({...e,item:t}),Fr=e=>t=>Bn(e,[He(Rr(t)),Ve(ar)]),Rr=e=>t=>t.isValid(e)?null:Lr(t,e);var zr="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Br=new Map,Hr=new Map;function Vr(e){return new Function("context","tempVars","const sandbox = $nxCompileToSandbox(context, tempVars)\n try { with (sandbox) { return "+e+" } } catch (err) {\n if (!(err instanceof TypeError)) throw err\n }\n $nxClearSandbox()")}function Wr(e){return new Function("context","tempVars","const sandbox = $nxCompileToSandbox(context, tempVars)\n with (sandbox) { "+e+" }\n $nxClearSandbox()")}var Ur=/(?:[^\|]|\|\|)+/g,Yr=/(?:[^&]|&&)+/g,qr=/\S+/g;var Qr=new Map,Kr=new Map;function Jr(e){if("string"!=typeof e)throw new TypeError("First argument must be a string.");var t=Qr.get(e);return t||(t=function(e){var t=e.match(Ur);if(1===t.length)return Vr(t[0]);for(var n={exec:Vr(t[0]),filters:[]},r=1;rgr(e.map)),Pr("map","index's map function does not compile",e=>!gr(e.map)||wr(()=>(e=>Gr(e.map))(e))),Pr("filter","index's filter function does not compile",e=>!gr(e.filter)||wr(()=>(e=>Jr(e.filter))(e))),Pr("name","must declare a name for index",e=>gr(e.name)),Pr("name","there is a duplicate named index on this node",e=>We(e.name)||1===Ue("name")(e.parent().indexes)[e.name]),Pr("indexType","reference index may only exist on a record node",e=>xi(e.parent())||e.indexType!==oi.reference),Pr("indexType",`index type must be one of: ${yt(", ")(ft(oi))}`,e=>Ye(e.indexType)(ft(oi)))],si=(e,t=!0)=>{if(ar(e.getFlattenedHierarchy)&&t)return e.getFlattenedHierarchy();const n=(e,t)=>{if(t.push(e),!(e.children&&0!==e.children.length||e.indexes&&0!==e.indexes.length||e.aggregateGroups&&0!==e.aggregateGroups.length))return t;const r=e=>t=>Pe(t)(e||[]),i=Bn([],[r(e.children),r(e.indexes),r(e.aggregateGroups)]);for(const e of i)n(e,t);return t};return e.getFlattenedHierarchy=(()=>n(e,[])),e.getFlattenedHierarchy()},li=e=>t=>Bn(e,[si,Qe(e=>new RegExp(`${e.pathRegx()}$`).test(t))]),ci=e=>t=>kr([e=>sr(e.parent()),Ke(!1)],[t=>e(t.parent()),Ke(!0)],[Cr,t=>ci(e)(t.parent())])(t),ui=(e,t)=>Bn(e,[si,Qe(e=>e.nodeKey()===t||bi(e)&&e.collectionNodeKey()===t)]),di=(e,t)=>{const n=li(e)(t);return sr(n)?ui(e,t):n},hi=(e,t)=>ar(li(e)(t)),fi=e=>t=>ci(t=>t.nodeKey()===e)(t),pi=e=>t=>fi(t.nodeKey())(e),gi=e=>t=>pi(t)(e),mi=e=>Bn(e,[ze("-"),Ge,parseInt]),vi=e=>t=>0===e.allowedRecordNodeIds.length||Ye(t)(e.allowedRecordNodeIds),yi=e=>t=>vi(e)(t.nodeId),xi=e=>ar(e)&&"record"===e.type,bi=e=>xi(e)&&!e.isSingle,wi=e=>ar(e)&&"index"===e.type,$i=e=>ar(e)&&"aggregateGroup"===e.type,_i=e=>ar(e)&&e.isRoot(),ki=ci(xi),Ei=e=>wi(e)&&_i(e.parent()),Ci=e=>wi(e)&&e.indexType===oi.reference,Ai=e=>wi(e)&&e.indexType===oi.ancestor,ji=e=>t=>"reference"===t.type&&Xe(t.typeOptions.reverseIndexNodeKeys)([e.nodeKey()]).length>0;var Ii={getLastPartInKey:e=>qe(Wn(e)),getNodesInPath:e=>t=>Bn(e,[si,Ve(e=>new RegExp(`${e.pathRegx()}`).test(t))]),getExactNodeForPath:li,hasMatchingAncestor:ci,getNode:ui,getNodeByKeyOrNodeKey:di,isNode:hi,getActualKeyOfParent:(e,t)=>Bn(t,[Wn,Je(Wn(e).length),e=>Vn(...e)]),getParentKey:e=>Bn(e,[Wn,Je(Wn(e).length-1),Vn]),isKeyAncestorOf:fi,hasNoMatchingAncestors:e=>t=>!ci(e)(t),findField:(e,t)=>Qe(e=>e.name==t)(e.fields),isAncestor:pi,isDecendant:gi,getRecordNodeId:e=>Bn(e,[Wn,qe,mi]),getRecordNodeIdFromId:mi,getRecordNodeById:(e,t)=>Bn(e,[si,Qe(e=>xi(e)&&e.nodeId===mi(t))]),recordNodeIdIsAllowed:vi,recordNodeIsAllowed:yi,getAllowedRecordNodesForIndex:(e,t)=>{const n=Bn(e,[si,Ve(xi)]);return Ei(t)?Bn(n,[Ve(yi(t))]):Ai(t)?Bn(n,[Ve(gi(t.parent())),Ve(yi(t))]):Ci(t)?Bn(n,[Ve(e=>Be(ji(t))(e.fields))]):void 0},getNodeFromNodeKeyHash:e=>t=>Bn(e,[si,Qe(e=>Ar(e.nodeKey())===t)]),isRecord:xi,isCollectionRecord:bi,isIndex:wi,isaggregateGroup:$i,isShardedIndex:e=>wi(e)&&gr(e.getShardName),isRoot:_i,isDecendantOfARecord:ki,isGlobalIndex:Ei,isReferenceIndex:Ci,isAncestorIndex:Ai,fieldReversesReferenceToNode:e=>t=>"reference"===t.type&&Xe(t.typeOptions.reverseIndexNodeKeys)(He(e=>e.nodeKey())(e.indexes)).length>0,fieldReversesReferenceToIndex:ji,getFlattenedHierarchy:si};const Si=(e,t)=>(n,r)=>tt(n.name)(r)?Ti(e,t)(r[n.name]):t[n.getUndefinedValue](),Ti=(e,t)=>n=>{const r=e(n);return r.success?r.value:t.default()},Di=(e,t)=>n=>{const r=Fe(n)||Fe(n.getInitialValue)?"default":n.getInitialValue;return tt(r)(t)?t[r]():Ti(e,t)(r)},Mi=e=>hn({value:Ke,null:Ke(null)},e),Ni=e=>async(t,n,r)=>{const i=n[t.name],o=async e=>await e.isValid(i,t.typeOptions,r)?"":e.getMessage(i,t.typeOptions),a=[];for(const t of e){const e=await o(t);fr(e)&&a.push(e)}return a},Oi=Ze(e=>e.defaultValue),Pi=(e,t)=>({isValid:e,getMessage:t}),Li=e=>({success:!1,value:e}),Fi=e=>({success:!0,value:e}),Ri=(e,t,n,r,i,o,a)=>({getNew:Di(t,n),safeParseField:Si(t,n),safeParseValue:Ti(t,n),tryParse:t,name:e,getDefaultOptions:()=>Oi(Re(r)),optionDefinitions:r,validateTypeConstraints:Ni(i),sampleValue:o,stringify:e=>null==e?"":a(e),getDefaultValue:n.default}),zi=Mi({default:Ke(null)}),Bi=kr([it,Fi],[et,Fi],[Cr,e=>Fi(e.toString())]),Hi={maxLength:{defaultValue:null,isValid:e=>null===e||jr(e)&&e>0,requirementDescription:"max length must be null (no limit) or a greater than zero integer",parse:Tr},values:{defaultValue:null,isValid:e=>null===e||Dr(e)&&e.length>0&&e.length<1e4,requirementDescription:"'values' must be null (no values) or an arry of at least one string",parse:e=>e},allowDeclaredValuesOnly:{defaultValue:!1,isValid:ot,requirementDescription:"allowDeclaredValuesOnly must be true or false",parse:Sr}},Vi=[Pi(async(e,t)=>null===e||null===t.maxLength||e.length<=t.maxLength,(e,t)=>`value exceeds maximum length of ${t.maxLength}`),Pi(async(e,t)=>null===e||!1===t.allowDeclaredValuesOnly||Ye(e)(t.values),e=>`"${e}" does not exist in the list of allowed values`)];var Wi=Ri("string",Bi,zi,Hi,Vi,"abcde",e=>e);const Ui=Mi({default:Ke(null)}),Yi=kr([ot,Fi],[et,Fi],[Er("true","1","yes","on"),()=>Fi(!0)],[Er("false","0","no","off"),()=>Fi(!1)],[Cr,Li]),qi={allowNulls:{defaultValue:!0,isValid:ot,requirementDescription:"must be a true or false",parse:Sr}},Qi=[Pi(async(e,t)=>!0===t.allowNulls||null!==e,()=>"field cannot be null")];var Ki=Ri("bool",Yi,Ui,qi,Qi,!0,JSON.stringify);const Ji=Mi({default:Ke(null)}),Gi=kr([rt,Fi],[it,e=>{const t=Number(e);return isNaN(t)?Li(e):Fi(t)}],[et,Fi],[Cr,Li]),Xi={maxValue:{defaultValue:Number.MAX_SAFE_INTEGER,isValid:jr,requirementDescription:"must be a valid integer",parse:Tr},minValue:{defaultValue:0-Number.MAX_SAFE_INTEGER,isValid:jr,requirementDescription:"must be a valid integer",parse:Tr},decimalPlaces:{defaultValue:0,isValid:e=>jr(e)&&e>=0,requirementDescription:"must be a positive integer",parse:Tr}},Zi=[Pi(async(e,t)=>null===e||null===t.minValue||e>=t.minValue,(e,t)=>`value (${e.toString()}) must be greater than or equal to ${t.minValue}`),Pi(async(e,t)=>null===e||null===t.maxValue||e<=t.maxValue,(e,t)=>`value (${e.toString()}) must be less than or equal to ${t.minValue} options`),Pi(async(e,t)=>null===e||t.decimalPlaces>=(e=>{const t=e.toString().split(".");return 1===t.length?0:t[1].length})(e),(e,t)=>`value (${e.toString()}) must have ${t.decimalPlaces} decimal places or less`)];var eo=Ri("number",Gi,Ji,Xi,Zi,1,e=>e.toString());const to=Mi({default:Ke(null),now:()=>new Date}),no=e=>e instanceof Date&&!isNaN(e),ro=kr([at,Fi],[it,e=>kr([no,Fi],[Cr,Li])(new Date(e))],[et,Fi],[Cr,Li]),io={maxValue:{defaultValue:new Date(3250368e7),isValid:at,requirementDescription:"must be a valid date",parse:Ir},minValue:{defaultValue:new Date(-8520336e6),isValid:at,requirementDescription:"must be a valid date",parse:Ir}},oo=[Pi(async(e,t)=>null===e||null===t.minValue||e>=t.minValue,(e,t)=>`value (${e.toString()}) must be greater than or equal to ${t.minValue}`),Pi(async(e,t)=>null===e||null===t.maxValue||e<=t.maxValue,(e,t)=>`value (${e.toString()}) must be less than or equal to ${t.minValue} options`)];var ao=Ri("datetime",ro,to,io,oo,new Date(1984,4,1),e=>JSON.stringify(e).replace(new RegExp('"',"g"),""));const so=e=>zn(He(t=>e.safeParseValue(t)),Fi),lo={maxLength:{defaultValue:1e4,isValid:jr,requirementDescription:"must be a positive integer",parse:Tr},minLength:{defaultValue:0,isValid:e=>jr(e)&&e>=0,requirementDescription:"must be a positive integer",parse:Tr}},co=[Pi(async(e,t)=>null===e||e.length>=t.minLength,(e,t)=>`must choose ${t.minLength} or more options`),Pi(async(e,t)=>null===e||e.length<=t.maxLength,(e,t)=>`cannot choose more than ${t.maxLength} options`)];var uo=e=>Ri((e=>`array<${e}>`)(e.name),(e=>kr([st,so(e)],[Cr,Li]))(e),(()=>Mi({default:Ke([])}))(),lo,co,[e.sampleValue],JSON.stringify);const ho=()=>({key:""}),fo=Mi({default:ho}),po=e=>It(e)&&((e,t)=>tt(t)(e)&&it(e[t]))(e,"key"),go=e=>{try{const t=JSON.parse(e);if(po)return Fi(t)}catch(e){}return Li(e)},mo={indexNodeKey:{defaultValue:null,isValid:gr,requirementDescription:"must be a non-empty string",parse:e=>e},displayValue:{defaultValue:"",isValid:gr,requirementDescription:"must be a non-empty string",parse:e=>e},reverseIndexNodeKeys:{defaultValue:null,isValid:e=>Dr(e)&&e.length>0,requirementDescription:"must be a non-empty array of strings",parse:e=>e}},vo=[Pi(async(e,t,n)=>(e=>it(e)&&We(e))(e.key)||await n.referenceExists(t,e.key),(e,t)=>`"${e[t.displayValue]}" does not exist in options list (key: ${e.key})`)];var yo=Ri("reference",e=>kr([po,Fi],[it,go],[et,()=>Fi({key:""})],[Cr,Li])(e),fo,mo,vo,{key:"key",value:"value"},JSON.stringify);const xo=()=>({relativePath:"",size:0}),bo=Mi({default:xo}),wo=e=>Bn(e,[Wn,qe]),$o=e=>!et(e)&&tt("relativePath")(e)&&tt("size")(e)&&rt(e.size)&&it(e.relativePath)&&(e=>{const t=wo(e);return t.length<=255&&0===Xe(t.split(""))("*?\\/:<>|\0\b\f\v".split("")).length&&dr(e=>".."===e)(Wn(e))})(e.relativePath);var _o=Ri("file",e=>kr([$o,Fi],[et,()=>Fi({relativePath:"",size:0})],[Cr,Li])(e),bo,{},[],{relativePath:"some_file.jpg",size:1e3},JSON.stringify);const ko=(()=>{const e={string:Wi,number:eo,datetime:ao,bool:Ki,reference:yo,file:_o},t=Bn(e,[ft,He(t=>{const n={},r=uo(e[t]);return n[r.name]=r,n}),e=>fn({},...e)]);return hn({},e,t)})(),Eo=e=>(e=>{if(!tt(e)(ko))throw new _n(`Do not recognise type ${e}`);return ko[e]})(e).getDefaultOptions(),Co=Vn("/.auth","users.json"),Ao=e=>Vn("/.auth",`auth_${e}.json`),jo=Vn("/.auth","users_lock"),Io=Vn("/.auth","access_levels.json"),So=Vn("/.auth","access_levels_lock"),To={CREATE_RECORD:"create record",UPDATE_RECORD:"update record",READ_RECORD:"read record",DELETE_RECORD:"delete record",READ_INDEX:"read index",MANAGE_INDEX:"manage index",MANAGE_COLLECTION:"manage collection",WRITE_TEMPLATES:"write templates",CREATE_USER:"create user",SET_PASSWORD:"set password",CREATE_TEMPORARY_ACCESS:"create temporary access",ENABLE_DISABLE_USER:"enable or disable user",WRITE_ACCESS_LEVELS:"write access levels",LIST_USERS:"list users",LIST_ACCESS_LEVELS:"list access levels",EXECUTE_ACTION:"execute action",SET_USER_ACCESS_LEVELS:"set user access levels"},Do=(e,t)=>Bn(e,[Qe(e=>e.name.toLowerCase()===t.toLowerCase())]),Mo=e=>{const t=ct(e);return delete t.tempCode,t},No=e=>Bn(e,[ze(":"),e=>({id:e[1],code:e[2]})]),Oo=e=>(t,n)=>An(e,wn.authApi.isAuthorized,na,{resourceKey:n,permissionType:t},Po,e,t,n),Po=(e,t,n)=>{if(!e.user)return!1;if(!Bn(To,[ut,Ye(t)]))return!1;return Bn(e.user.permissions,[Be(r=>{const i=sr(n)?null:hi(e.hierarchy,n)?di(e.hierarchy,n).nodeKey():n;return r.type===t&&(sr(n)||i===r.nodeKey)})])},Lo=e=>({add:(t,n)=>n.permissions.push({type:e,nodeKey:t}),isAuthorized:t=>n=>Oo(n)(e,t),isNode:!0,get:t=>({type:e,nodeKey:t})}),Fo=e=>({add:t=>t.permissions.push({type:e}),isAuthorized:t=>Oo(t)(e),isNode:!1,get:()=>({type:e})}),Ro=Lo(To.CREATE_RECORD),zo=Lo(To.UPDATE_RECORD),Bo=Lo(To.DELETE_RECORD),Ho=Lo(To.READ_RECORD),Vo=Fo(To.WRITE_TEMPLATES),Wo=Fo(To.CREATE_USER),Uo=Fo(To.SET_PASSWORD),Yo=Lo(To.READ_INDEX),qo=Fo(To.MANAGE_INDEX),Qo=Fo(To.MANAGE_COLLECTION),Ko=Fo(To.CREATE_TEMPORARY_ACCESS),Jo=Fo(To.ENABLE_DISABLE_USER),Go=Fo(To.WRITE_ACCESS_LEVELS),Xo=Fo(To.LIST_USERS),Zo=Fo(To.LIST_ACCESS_LEVELS),ea=Fo(To.SET_USER_ACCESS_LEVELS),ta=Lo(To.EXECUTE_ACTION),na=()=>!0,ra={createRecord:Ro,updateRecord:zo,deleteRecord:Bo,readRecord:Ho,writeTemplates:Vo,createUser:Wo,setPassword:Uo,readIndex:Yo,createTemporaryAccess:Ko,enableDisableUser:Jo,writeAccessLevels:Go,listUsers:Xo,listAccessLevels:Zo,manageIndex:qo,manageCollection:Qo,executeAction:ta,setUserAccessLevels:ea};Ee(function(e,t){!function(){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,x,b,w,$,_,k,E,C,A=function(e){var t=new A.Builder;return t.pipeline.add(A.trimmer,A.stopWordFilter,A.stemmer),t.searchPipeline.add(A.stemmer),e.call(t,t),t.build()};A.version="2.3.6",A.utils={},A.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),A.utils.asString=function(e){return null==e?"":e.toString()},A.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r0){var l=A.utils.clone(t)||{};l.position=[a,s],l.index=i.length,i.push(new A.Token(n.slice(a,o),l))}a=o+1}}return i},A.tokenizer.separator=/[\s\-]+/,A.Pipeline=function(){this._stack=[]},A.Pipeline.registeredFunctions=Object.create(null),A.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&A.utils.warn("Overwriting existing registered function: "+t),e.label=t,A.Pipeline.registeredFunctions[e.label]=e},A.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||A.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},A.Pipeline.load=function(e){var t=new A.Pipeline;return e.forEach(function(e){var n=A.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)}),t},A.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){A.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},A.Pipeline.prototype.after=function(e,t){A.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},A.Pipeline.prototype.before=function(e,t){A.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},A.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},A.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n1&&(oe&&(n=i),o!=e);)r=n-t,i=t+Math.floor(r/2),o=this.elements[2*i];return o==e?2*i:o>e?2*i:os?c+=2:a==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},A.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},A.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t0){var o,a=i.str.charAt(0);a in i.node.edges?o=i.node.edges[a]:(o=new A.TokenSet,i.node.edges[a]=o),1==i.str.length&&(o.final=!0),r.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var s=i.node.edges["*"];else{s=new A.TokenSet;i.node.edges["*"]=s}if(0==i.str.length&&(s.final=!0),r.push({node:s,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else{l=new A.TokenSet;i.node.edges["*"]=l}1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,u=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?c=i.node.edges[d]:(c=new A.TokenSet,i.node.edges[d]=c),1==i.str.length&&(c.final=!0),r.push({node:c,editsRemaining:i.editsRemaining-1,str:u+i.str.slice(2)})}}}return n},A.TokenSet.fromString=function(e){for(var t=new A.TokenSet,n=t,r=0,i=e.length;r=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},A.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},A.Index.prototype.search=function(e){return this.query(function(t){new A.QueryParser(e,t).parse()})},A.Index.prototype.query=function(e){for(var t=new A.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s1?1:e},A.Builder.prototype.k1=function(e){this._k1=e},A.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var i=0;i=this.length)return A.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},A.QueryLexer.prototype.width=function(){return this.pos-this.start},A.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},A.QueryLexer.prototype.backup=function(){this.pos-=1},A.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=A.QueryLexer.EOS&&this.backup()},A.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(A.QueryLexer.TERM)),e.ignore(),e.more())return A.QueryLexer.lexText},A.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(A.QueryLexer.EDIT_DISTANCE),A.QueryLexer.lexText},A.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(A.QueryLexer.BOOST),A.QueryLexer.lexText},A.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(A.QueryLexer.TERM)},A.QueryLexer.termSeparator=A.tokenizer.separator,A.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==A.QueryLexer.EOS)return A.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return A.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(A.QueryLexer.TERM),A.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(A.QueryLexer.TERM),A.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(A.QueryLexer.PRESENCE),A.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(A.QueryLexer.PRESENCE),A.QueryLexer.lexText;if(t.match(A.QueryLexer.termSeparator))return A.QueryLexer.lexTerm}else e.escapeCharacter()}},A.QueryParser=function(e,t){this.lexer=new A.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},A.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=A.QueryParser.parseClause;e;)e=e(this);return this.query},A.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},A.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},A.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},A.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case A.QueryLexer.PRESENCE:return A.QueryParser.parsePresence;case A.QueryLexer.FIELD:return A.QueryParser.parseField;case A.QueryLexer.TERM:return A.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new A.QueryParseError(n,t.start,t.end)}},A.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=A.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=A.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new A.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new A.QueryParseError(n,t.start,t.end)}switch(r.type){case A.QueryLexer.FIELD:return A.QueryParser.parseField;case A.QueryLexer.TERM:return A.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new A.QueryParseError(n,r.start,r.end)}}},A.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new A.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i){r="expecting term, found nothing";throw new A.QueryParseError(r,t.start,t.end)}switch(i.type){case A.QueryLexer.TERM:return A.QueryParser.parseTerm;default:r="expecting term, found '"+i.type+"'";throw new A.QueryParseError(r,i.start,i.end)}}},A.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case A.QueryLexer.TERM:return e.nextClause(),A.QueryParser.parseTerm;case A.QueryLexer.FIELD:return e.nextClause(),A.QueryParser.parseField;case A.QueryLexer.EDIT_DISTANCE:return A.QueryParser.parseEditDistance;case A.QueryLexer.BOOST:return A.QueryParser.parseBoost;case A.QueryLexer.PRESENCE:return e.nextClause(),A.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new A.QueryParseError(r,n.start,n.end)}else e.nextClause()}},A.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new A.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case A.QueryLexer.TERM:return e.nextClause(),A.QueryParser.parseTerm;case A.QueryLexer.FIELD:return e.nextClause(),A.QueryParser.parseField;case A.QueryLexer.EDIT_DISTANCE:return A.QueryParser.parseEditDistance;case A.QueryLexer.BOOST:return A.QueryParser.parseBoost;case A.QueryLexer.PRESENCE:return e.nextClause(),A.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new A.QueryParseError(r,i.start,i.end)}else e.nextClause()}},A.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new A.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case A.QueryLexer.TERM:return e.nextClause(),A.QueryParser.parseTerm;case A.QueryLexer.FIELD:return e.nextClause(),A.QueryParser.parseField;case A.QueryLexer.EDIT_DISTANCE:return A.QueryParser.parseEditDistance;case A.QueryLexer.BOOST:return A.QueryParser.parseBoost;case A.QueryLexer.PRESENCE:return e.nextClause(),A.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new A.QueryParseError(r,i.start,i.end)}else e.nextClause()}},e.exports=A}()});var ia=[],oa=[],aa="undefined"!=typeof Uint8Array?Uint8Array:Array,sa=!1;function la(){sa=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ia[i>>12&63]+ia[i>>6&63]+ia[63&i]);return o.join("")}function ua(e){var t;sa||la();for(var n=e.length,r=n%3,i="",o=[],a=0,s=n-r;as?s:a+16383));return 1===r?(t=e[n-1],i+=ia[t>>2],i+=ia[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=ia[t>>10],i+=ia[t>>4&63],i+=ia[t<<2&63],i+="="),o.push(i),o.join("")}function da(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)}function ha(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}var fa={}.toString,pa=Array.isArray||function(e){return"[object Array]"==fa.call(e)};ya.TYPED_ARRAY_SUPPORT=void 0===zr.TYPED_ARRAY_SUPPORT||zr.TYPED_ARRAY_SUPPORT;var ga=ma();function ma(){return ya.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function va(e,t){if(ma()=ma())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ma().toString(16)+" bytes");return 0|e}function ka(e){return!(null==e||!e._isBuffer)}function Ea(e,t){if(ka(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ga(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Xa(e).length;default:if(r)return Ga(e).length;t=(""+t).toLowerCase(),r=!0}}function Ca(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Aa(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=ya.from(t,r)),ka(t))return 0===t.length?-1:ja(e,t,n,r,i);if("number"==typeof t)return t&=255,ya.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ja(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function ja(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Oa(e,t,n){return 0===t&&n===e.length?ua(e):ua(e.slice(t,n))}function Pa(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=La)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return za(this,t,n);case"utf8":case"utf-8":return Pa(this,t,n);case"ascii":return Fa(this,t,n);case"latin1":case"binary":return Ra(this,t,n);case"base64":return Oa(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ba(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},ya.prototype.equals=function(e){if(!ka(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ya.compare(this,e)},ya.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ya.prototype.compare=function(e,t,n,r,i){if(!ka(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;ui)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ia(this,e,t,n);case"utf8":case"utf-8":return Sa(this,e,t,n);case"ascii":return Ta(this,e,t,n);case"latin1":case"binary":return Da(this,e,t,n);case"base64":return Ma(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Na(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},ya.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var La=4096;function Fa(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Va(e,t,n,r,i,o){if(!ka(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Wa(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function Ua(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function Ya(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function qa(e,t,n,r,i){return i||Ya(e,0,n,4),ha(e,t,n,r,23,4),n+4}function Qa(e,t,n,r,i){return i||Ya(e,0,n,8),ha(e,t,n,r,52,8),n+8}ya.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},ya.prototype.readUInt8=function(e,t){return t||Ha(e,1,this.length),this[e]},ya.prototype.readUInt16LE=function(e,t){return t||Ha(e,2,this.length),this[e]|this[e+1]<<8},ya.prototype.readUInt16BE=function(e,t){return t||Ha(e,2,this.length),this[e]<<8|this[e+1]},ya.prototype.readUInt32LE=function(e,t){return t||Ha(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ya.prototype.readUInt32BE=function(e,t){return t||Ha(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ya.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ha(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},ya.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ha(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},ya.prototype.readInt8=function(e,t){return t||Ha(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ya.prototype.readInt16LE=function(e,t){t||Ha(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ya.prototype.readInt16BE=function(e,t){t||Ha(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ya.prototype.readInt32LE=function(e,t){return t||Ha(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ya.prototype.readInt32BE=function(e,t){return t||Ha(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ya.prototype.readFloatLE=function(e,t){return t||Ha(e,4,this.length),da(this,e,!0,23,4)},ya.prototype.readFloatBE=function(e,t){return t||Ha(e,4,this.length),da(this,e,!1,23,4)},ya.prototype.readDoubleLE=function(e,t){return t||Ha(e,8,this.length),da(this,e,!0,52,8)},ya.prototype.readDoubleBE=function(e,t){return t||Ha(e,8,this.length),da(this,e,!1,52,8)},ya.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Va(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},ya.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,1,255,0),ya.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ya.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,2,65535,0),ya.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wa(this,e,t,!0),t+2},ya.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,2,65535,0),ya.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wa(this,e,t,!1),t+2},ya.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,4,4294967295,0),ya.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ua(this,e,t,!0),t+4},ya.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,4,4294967295,0),ya.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ua(this,e,t,!1),t+4},ya.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Va(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},ya.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Va(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},ya.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,1,127,-128),ya.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ya.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,2,32767,-32768),ya.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wa(this,e,t,!0),t+2},ya.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,2,32767,-32768),ya.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wa(this,e,t,!1),t+2},ya.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,4,2147483647,-2147483648),ya.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ua(this,e,t,!0),t+4},ya.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Va(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ya.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ua(this,e,t,!1),t+4},ya.prototype.writeFloatLE=function(e,t,n){return qa(this,e,t,!0,n)},ya.prototype.writeFloatBE=function(e,t,n){return qa(this,e,t,!1,n)},ya.prototype.writeDoubleLE=function(e,t,n){return Qa(this,e,t,!0,n)},ya.prototype.writeDoubleBE=function(e,t,n){return Qa(this,e,t,!1,n)},ya.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!ya.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Xa(e){return function(e){var t,n,r,i,o,a;sa||la();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new aa(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=oa[e.charCodeAt(t)]<<2|oa[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=oa[e.charCodeAt(t)]<<10|oa[e.charCodeAt(t+1)]<<4|oa[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ka,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Za(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function es(e){return null!=e&&(!!e._isBuffer||ts(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ts(e.slice(0,0))}(e))}function ts(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ns=Object.freeze({INSPECT_MAX_BYTES:50,kMaxLength:ga,Buffer:ya,SlowBuffer:function(e){return+e!=e&&(e=0),ya.alloc(+e)},isBuffer:es});Ee(function(e,t){var n=ns.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=ns:(r(ns,t),t.Buffer=i),i.prototype=Object.create(n.prototype),r(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return ns.SlowBuffer(e)}}).Buffer;Vn("/.transactions","lock");const rs="Only the root node may have no parent",is="An index may only have a record or root as a parent",os="aggregateGroup parent must be an index",as=e=>()=>kr([e=>xi(e)&&!(e=>xi(e)&&e.isSingle)(e),t=>Vn(e.parent().nodeKey(),e.collectionName,`${t.nodeId}-{id}`)],[_i,Ke("/")],[Cr,t=>Vn(e.parent().nodeKey(),t.name)])(e),ss=e=>t=>{if(wi(t)&&ar(e)&&!_i(e)&&!xi(e))throw new _n(is);if($i(t)&&ar(e)&&!wi(e))throw new _n(os);if(sr(e)&&!_i(t))throw new _n(rs);return t},ls=e=>t=>(t.nodeKey=as(t),t.pathRegx=(e=>()=>e.nodeKey().replace(/{id}/g,"[a-zA-Z0-9_-]+"))(t),t.parent=Ke(e),t.isRoot=(()=>sr(e)&&"root"===t.name&&"root"===t.type),bi(t)&&(t.collectionNodeKey=(()=>Vn(e.nodeKey(),t.collectionName)),t.collectionPathRegx=(()=>Vn(e.pathRegx(),t.collectionName))),t),cs=e=>{const t=e.parent();if(ar(t)&&(wi(e)?t.indexes.push(e):$i(e)?t.aggregateGroups.push(e):t.children.push(e),xi(e))){const n=gn(t.indexes,e=>e.name===`${t.name}_index`);n&&n.allowedRecordNodeIds.push(e.nodeId)}return e},us=(e,t)=>Bn(t,[ls(e),ss(e),cs]),ds=e=>{if(!e)return null;const t=e=>_i(e)?e:t(e.parent()),n=t(e);return Bn(n,[si,He(e=>e.nodeId),kt])+1},hs=(e,t)=>(ls(t)(e),e.indexes&&pn(e.indexes,t=>hs(t,e)),e.aggregateGroups&&pn(e.aggregateGroups,t=>hs(t,e)),e.children&&e.children.length>0&&pn(e.children,t=>hs(t,e)),e.fields&&pn(e.fields,e=>pn(e.typeOptions,(t,n)=>{const r=ko[e.type].optionDefinitions[n];r?e.typeOptions[n]=r.parse(t):delete e.typeOptions[n]})),e),fs=()=>ls()({name:"root",type:"root",children:[],pathMaps:[],indexes:[],nodeId:0}),ps=(e,t,n,r)=>{const i=us(e,{name:t,type:"record",fields:[],children:[],validationRules:[],nodeId:ds(e),indexes:[],allidsShardFactor:xi(e)?1:64,collectionName:"",isSingle:r});if(n){const n=vs(e);n.name=`${t}_index`,n.allowedRecordNodeIds.push(i.nodeId)}return i},gs=(e,t="",n=!0)=>ps(e,t,n,!1),ms=e=>ps(e,"",!1,!0),vs=(e,t="ancestor")=>us(e,{name:"",type:"index",map:"return {...record};",filter:"",indexType:t,getShardName:"",getSortKey:"record.id",aggregateGroups:[],allowedRecordNodeIds:[],nodeId:ds(e)}),ys=e=>us(e,{name:"",type:"aggregateGroup",groupBy:"",aggregates:[],condition:"",nodeId:ds(e)}),xs=e=>{const t={name:"",aggregatedValue:""};return e.aggregates.push(t),t},bs={AddFieldValidationFailed:"Add field validation: "},ws=e=>({name:"",type:e,typeOptions:Eo(e),label:"",getInitialValue:"default",getUndefinedValue:"default"}),$s=e=>[Pr("name","field name is not set",e=>gr(e.name)),Pr("type","field type is not set",e=>gr(e.type)),Pr("label","field label is not set",e=>gr(e.label)),Pr("getInitialValue","getInitialValue function is not set",e=>gr(e.getInitialValue)),Pr("getUndefinedValue","getUndefinedValue function is not set",e=>gr(e.getUndefinedValue)),Pr("name","field name is duplicated",t=>lr(t.name)||1===Ue("name")(e)[t.name]),Pr("type","type is unknown",e=>lr(e.type)||Be(t=>e.type===t)((()=>ft(ko))()))],_s=e=>{const t=ko[e.type];if(sr(t))return[];const n=e=>t.optionDefinitions[e];return Bn(e.typeOptions,[ft,Ve(e=>ar(n(e))&&ar(n(e).isValid)),He(e=>Pr(`typeOptions.${e}`,`${n(e).requirementDescription}`,t=>n(e).isValid(t.typeOptions[e])))])},ks=e=>t=>{const n=Ye(t)(e)?e:[...e,t];return Fr([...$s(n),..._s(t)])(t)},Es=e=>Bn(e.fields,[He(ks(e.fields)),mt]),Cs=(e,t)=>{lr(t.label)&&(t.label=t.name);const n=ks([...e.fields,t])(t);if(n.length>0){const e=He(e=>e.error)(n);throw new _n(`${bs.AddFieldValidationFailed} ${e.join(", ")}`)}e.fields.push(t)},As=(e,t,n)=>({invalidFields:e,messageWhenInvalid:t,expressionWhenValid:n}),js=kr([rt,e=>e.toString()],[ot,e=>e.toString()],[xt,e=>`'${e}'`]),Is={fieldNotEmpty:e=>As([e],`${e} is empty`,`!_.isEmpty(record['${e}'])`),fieldBetween:(e,t,n)=>As([e],`${e} must be between ${t.toString()} and ${n.toString()}`,`record['${e}'] >= ${js(t)} && record['${e}'] <= ${js(n)} `),fieldGreaterThan:(e,t,n)=>As([e],`${e} must be greater than ${t.toString()} and ${n.toString()}`,`record['${e}'] >= ${js(t)} `)},Ss=e=>t=>e.validationRules.push(t),Ts=()=>({actionName:"",eventName:"",optionsCreator:"",condition:""}),Ds=()=>({name:"",behaviourSource:"",behaviourName:"",initialOptions:{}}),Ms=[Pr("name","choose a name for the aggregate",e=>gr(e.name)),Pr("aggregatedValue","aggregatedValue does not compile",e=>We(e.aggregatedValue)||wr(()=>Gr(e.aggregatedValue)))],Ns=e=>Fr(Ms)(e),Os=(...e)=>Ke(mt([...e])),Ps=[Pr("name","node name is not set",e=>(e=>ar(e)&&e.trim().length>0)(e.name)),Pr("type","node type not recognised",ir(xi,_i,wi,$i))],Ls=[Pr("fields","no fields have been added to the record",e=>pr(e.fields)),Pr("validationRules","validation rule is missing a 'messageWhenValid' member",e=>wt(e=>tt("messageWhenInvalid")(e))(e.validationRules)),Pr("validationRules","validation rule is missing a 'expressionWhenValid' member",e=>wt(e=>tt("expressionWhenValid")(e))(e.validationRules))],Fs=[Pr("condition","condition does not compile",e=>We(e.condition)||wr(()=>Jr(e.condition)))],Rs=e=>Fr((e=>kr([xi,Os(Ps,Ls)],[wi,Os(Ps,ai)],[$i,Os(Ps,Fs)],[Cr,Os(Ps,[])])(e))(e))(e),zs=e=>{const t=si(e),n=Pr("name","node names must be unique under shared parent",e=>1===Ve(t=>t.parent()===e.parent()&&t.name===e.name)(t).length),r=Bn(t,[He(e=>Fr([n])(e)),Ve(ar),mt]),i=Bn(t,[Ve(xi),He(Es),mt]),o=Bn(t,[Ve($i),He(e=>(e=>Bn(e,[He(Ns),mt]))(e.aggregates)),mt]);return Bn(t,[He(Rs),mt,Pe(r),Pe(i),Pe(o)])},Bs=[Pr("name","action must have a name",e=>gr(e.name)),Pr("behaviourName","must supply a behaviour name to the action",e=>gr(e.behaviourName)),Pr("behaviourSource","must supply a behaviour source for the action",e=>gr(e.behaviourSource))],Hs=Pr("","action name must be unique",()=>{}),Vs=e=>Fr(Bs)(e),Ws=e=>{const t=Bn(e,[Ve(t=>Ve(e=>e.name===t.name)(e).length>1),He(e=>Lr(Hs,e))]);return Bn(e,[He(Vs),mt,Pe(t),bt("name")])},Us=(e,t)=>{return Fr((e=>[Pr("actionName","must specify an action",e=>gr(e.actionName)),Pr("eventName","must specify and event",e=>gr(e.eventName)),Pr("actionName","specified action not supplied",t=>!t.actionName||Be(e=>e.name===t.actionName)(e)),Pr("eventName","invalid Event Name",e=>!e.eventName||Ye(e.eventName)($n)),Pr("optionsCreator","Options Creator does not compile - check your expression",e=>{if(!e.optionsCreator)return!0;try{return Gr(e.optionsCreator),!0}catch(e){return!1}}),Pr("condition","Trigger condition does not compile - check your expression",e=>{if(!e.condition)return!0;try{return Jr(e.condition),!0}catch(e){return!1}})])(t))(e)},Ys=(e,t)=>Bn(e,[He(e=>Us(e,t)),mt]),qs=e=>async()=>{if(!await e.exists(Kn))throw new Error("Application definition does not exist");const t=await e.loadJson(Kn);return t.hierarchy=hs(t.hierarchy),t},Qs=e=>async t=>Cn(e,wn.templateApi.saveApplicationHierarchy,ra.writeTemplates.isAuthorized,{hierarchy:t},Ks,e.datastore,t),Ks=async(e,t)=>{const n=await zs(t);if(n.length>0)throw new Error(`Hierarchy is invalid: ${nn(n.map(e=>`${e.item.nodeKey?e.item.nodeKey():""} : ${e.error}`),",")}`);if(await e.exists(Kn)){const n=await e.loadJson(Kn);n.hierarchy=t,await e.updateJson(Kn,n)}else{await e.createFolder("/.config");const n={actions:[],triggers:[],hierarchy:t};await e.createJson(Kn,n)}},Js=e=>async(t,n)=>Cn(e,wn.templateApi.saveActionsAndTriggers,ra.writeTemplates.isAuthorized,{actions:t,triggers:n},Gs,e.datastore,t,n),Gs=async(e,t,n)=>{if(!await e.exists(Kn))throw new _n("Cannot save actions: Application definition does not exist");{const r=await e.loadJson(Kn);r.actions=t,r.triggers=n;const i=He(e=>e.error)(Ws(t));if(i.length>0)throw new _n(`Actions are invalid: ${nn(i,", ")}`);const o=He(e=>e.error)(Ys(n,t));if(o.length>0)throw new _n(`Triggers are invalid: ${nn(o,", ")}`);await e.updateJson(Kn,r)}},Xs=e=>(e=>({getApplicationDefinition:qs(e.datastore),saveApplicationHierarchy:Qs(e),saveActionsAndTriggers:Js(e),getBehaviourSources:()=>(async e=>{await e.loadFile("/.config/behaviourSources.js")})(e.datastore),getNewRootLevel:fs,constructNode:us,getNewIndexTemplate:vs,getNewRecordTemplate:gs,getNewField:ws,validateField:ks,addField:Cs,fieldErrors:bs,getNewRecordValidationRule:As,commonRecordValidationRules:Is,addRecordValidationRule:Ss,createAction:Ds,createTrigger:Ts,validateActions:Ws,validateTrigger:Us,getNewAggregateGroupTemplate:ys,getNewAggregateTemplate:xs,constructHierarchy:hs,getNewSingleRecordTemplate:ms,allTypes:ko,validateNode:Rs,validateAll:zs,validateTriggers:Ys}))(e),Zs=e=>async()=>Cn(e,wn.authApi.getUsers,ra.listUsers.isAuthorized,{},el,e),el=async e=>Bn(await e.datastore.loadJson(Co),[He(Mo)]),tl=e=>async()=>Cn(e,wn.authApi.loadAccessLevels,ra.listAccessLevels.isAuthorized,{},nl,e),nl=async e=>await e.datastore.loadJson(Io),rl="$argon2i$v=19$m=4096,t=3,p=1$UZRo409UYBGjHJS3CV6Uxw$rU84qUqPeORFzKYmYY0ceBLDaPO+JWSH4PfNiKXfIKk",il=e=>async(t,n)=>Cn(e,wn.authApi.authenticate,na,{username:t,password:n},ol,e,t,n),ol=async(e,t,n)=>{if(lr(t)||lr(n))return null;const r=await el(e);let i=Do(r,t);let o;i&&i.enabled||(i="not-a-user");try{o=await e.datastore.loadJson(Ao(t))}catch(e){o={accessLevels:[],passwordHash:rl}}const a=await sl(e,i.accessLevels),s=await e.crypto.verify(o.passwordHash,n);return"not-a-user"===i?null:s?{...i,permissions:a,temp:!1,isUser:!0}:null},al=e=>async t=>{if(lr(t))return null;const n=No(t);let r=Bn(await el(e),[Qe(e=>e.temporaryAccessId===n.id)]);let i;r&&r.enabled||(r="not-a-user");try{i=await e.datastore.loadJson(Ao(r.name))}catch(t){i={temporaryAccessHash:rl,temporaryAccessExpiryEpoch:await e.getEpochTime()+1e4}}i.temporaryAccessExpiryEpoch{const n=await nl(e);return Bn(n.levels,[Ve(e=>Be(t=>e.name===t)(t)),He(e=>e.permissions),mt])},ll=e=>async t=>Cn(e,wn.authApi.createTemporaryAccess,na,{userName:t},cl,e,t),cl=async(e,t)=>{const n=await ul(e),r=await Mn(e,jo,1e3,2);if(Fn(r))throw new Error("Unable to create temporary access, could not get lock - try again");try{const i=await e.datastore.loadJson(Co);Do(i,t).temporaryAccessId=n.temporaryAccessId,await e.datastore.updateJson(Co,i)}finally{await Pn(e,r)}const i=await e.datastore.loadJson(Ao(t));return i.temporaryAccessHash=n.temporaryAccessHash,i.temporaryAccessExpiryEpoch=n.temporaryAccessExpiryEpoch,await e.datastore.updateJson(Ao(t),i),n.tempCode},ul=async e=>{const t=Zt()+Zt()+Zt()+Zt(),n=Zt();return{temporaryAccessHash:await e.crypto.hash(t),temporaryAccessExpiryEpoch:await e.getEpochTime()+3e5,tempCode:`tmp:${n}:${t}`,temporaryAccessId:n}},dl=()=>(e,t)=>Fr((e=>[Pr("name","username must be set",e=>gr(e.name)),Pr("accessLevels","user must have at least one access level",e=>e.accessLevels.length>0),Pr("name","username must be unique",t=>1===Ve(e=>or(e.name,t.name))(e).length),Pr("accessLevels","access levels must only contain stings",e=>hr(gr)(e.accessLevels))])(e))(t),hl=e=>()=>An(e,wn.authApi.getNewUser,ra.createUser.isAuthorized,{},fl,e),fl=()=>({name:"",accessLevels:[],enabled:!0,temporaryAccessId:""}),pl=e=>()=>An(e,wn.authApi.getNewUserAuth,ra.createUser.isAuthorized,{},gl,e),gl=()=>({passwordHash:"",temporaryAccessHash:"",temporaryAccessExpiryEpoch:0}),ml=e=>t=>An(e,wn.authApi.isValidPassword,na,{password:t},vl,e,t),vl=(e,t)=>_l(t).score>30,yl=e=>async(t,n)=>Cn(e,wn.authApi.changeMyPassword,na,{currentPw:t,newpassword:n},xl,e,t,n),xl=async(e,t,n)=>{const r=await e.datastore.loadJson(Ao(e.user.name));if(ar(r.passwordHash)){if(await e.crypto.verify(r.passwordHash,t))return await(await $l(e,r,e.user.name,n)),!0}return!1},bl=e=>async(t,n)=>Cn(e,wn.authApi.setPasswordFromTemporaryCode,na,{tempCode:t,newpassword:n},wl,e,t,n),wl=async(e,t,n)=>{const r=await e.getEpochTime(),i=No(t),o=Bn(await el(e),[Qe(e=>e.temporaryAccessId===i.id)]);if(!o)return!1;const a=await e.datastore.loadJson(Ao(o.name));if(ar(a.temporaryAccessHash)&&a.temporaryAccessExpiryEpoch>r){if(await e.crypto.verify(a.temporaryAccessHash,i.code))return await $l(e,a,o.name,n),!0}return!1},$l=async(e,t,n,r)=>{t.temporaryAccessHash="",t.temporaryAccessExpiryEpoch=0,t.passwordHash=await e.crypto.hash(r),await e.datastore.updateJson(Ao(n),t)},_l=e=>t=>An(e,wn.authApi.scorePassword,na,{password:t},kl,t),kl=e=>{let t=0;if(!e)return t;const n=new Object;for(let r=0;r80?"strong":t>60?"good":t>=30?"weak":"very weak";return{score:parseInt(t),strengthText:o}},El=e=>async(t,n=null)=>Cn(e,wn.authApi.createUser,ra.createUser.isAuthorized,{user:t,password:n},Cl,e,t,n),Cl=async(e,t,n=null)=>{const r=await Mn(e,jo,1e3,2);if(Fn(r))throw new Error("Unable to create user, could not get lock - try again");const i=await e.datastore.loadJson(Co),o=dl()([...i,t],t);if(o.length>0)throw new _n(`User is invalid. ${yt("; ")(o)}`);const{auth:a,tempCode:s,temporaryAccessId:l}=await Al(e,n);if(t.tempCode=s,t.temporaryAccessId=l,Be(e=>or(e.name,t.name))(i))throw new _n("User already exists");i.push(Mo(t)),await e.datastore.updateJson(Co,i);try{await e.datastore.createJson(Ao(t.name),a)}catch(n){await e.datastore.updateJson(Ao(t.name),a)}return await Pn(e,r),t},Al=async(e,t)=>{const n=pl(e)();if(gr(t)){if(ml(t))return n.passwordHash=await e.crypto.hash(t),n.temporaryAccessHash="",n.temporaryAccessId="",n.temporaryAccessExpiryEpoch=0,{auth:n};throw new _n("Password does not meet requirements")}{const t=await ul(e);return n.temporaryAccessHash=t.temporaryAccessHash,n.temporaryAccessExpiryEpoch=t.temporaryAccessExpiryEpoch,n.passwordHash="",{auth:n,tempCode:t.tempCode,temporaryAccessId:t.temporaryAccessId}}},jl=e=>async t=>Cn(e,wn.authApi.enableUser,ra.enableDisableUser.isAuthorized,{username:t},Sl,e,t),Il=e=>async t=>Cn(e,wn.authApi.disableUser,ra.enableDisableUser.isAuthorized,{username:t},Tl,e,t),Sl=async(e,t)=>await Dl(e,t,!0),Tl=async(e,t)=>await Dl(e,t,!1),Dl=async(e,t,n)=>{const r=await Mn(e,jo,1e3,1,0),i=n?"enable":"disable";if(Fn(r))throw new Error(`Could not ${i} user - cannot get lock`);try{const o=await e.datastore.loadJson(Co),a=Do(o,t);if(!a)throw new En(`Could not find user to ${i}`);a.enabled===!n&&(a.enabled=n,await e.datastore.updateJson(Co,o))}finally{Pn(e,r)}},Ml=e=>[Pr("type","type must be one of allowed types",e=>(e=>Bn(To,[ut,Ye(e)]))(e.type)),Pr("nodeKey","record and index permissions must include a valid nodeKey",t=>!(e=>Be(t=>t===e)([To.CREATE_RECORD,To.UPDATE_RECORD,To.DELETE_RECORD,To.READ_RECORD,To.READ_INDEX,To.EXECUTE_ACTION]))(t.type)||ar(ui(e.hierarchy,t.nodeKey)))],Nl=e=>Fr(Ml(e)),Ol=e=>Fr((e=>[Pr("name","name must be set",e=>gr(e.name)),Pr("name","access level names must be unique",t=>We(t.name)||1===Ve(e=>or(t.name,e.name))(e).length)])(e)),Pl=e=>t=>An(e,wn.authApi.validateAccessLevels,na,{allLevels:t},Ll,e,t),Ll=(e,t)=>Bn(t,[He(n=>(e=>(t,n)=>Bn(n.permissions,[He(Nl(e)),mt,pt(Ol(t)(n))]))(e)(t,n)),mt,$t((e,t)=>e.field===t.field&&e.item===t.item&&e.error===t.error)]),Fl=e=>async t=>Cn(e,wn.authApi.saveAccessLevels,ra.writeAccessLevels.isAuthorized,{accessLevels:t},Rl,e,t),Rl=async(e,t)=>{const n=Pl(e)(t.levels);if(n.length>0){const e=Bn(n,[He(e=>e.error),yt(", ")]);throw new Error(`Access Levels Invalid: ${e}`)}const r=await Mn(e,So,2e3,2);if(Fn(r))throw new Error("Could not get lock to save access levels");try{if((await e.datastore.loadJson(Io)).version!==t.version)throw new Error("Access levels have already been updated, since you loaded");t.version++,e.datastore.updateJson(Io,t)}finally{await Pn(e,r)}},zl=e=>async(t,n)=>Cn(e,wn.authApi.setUserAccessLevels,ra.setUserAccessLevels.isAuthorized,{userName:t,accessLevels:n},Bl,e,t,n),Bl=async(e,t,n)=>{const r=await Mn(e,jo,1e3,1,0),i=Bn(await e.datastore.loadJson(Io),[e=>e.levels,He(e=>e.name)]),o=gt(n)(i);if(o.length>0)throw new Error(`Invalid access levels supplied: ${yt(", ",o)}`);if(Fn(r))throw new Error("Could set user access levels cannot get lock");try{const i=await e.datastore.loadJson(Co),o=Do(i,t);if(!o)throw new En(`Could not find user with ${t}`);o.accessLevels=n,await e.datastore.updateJson(Co,i)}finally{Pn(e,r)}},Hl=e=>({authenticate:il(e),authenticateTemporaryAccess:al(e),createTemporaryAccess:ll(e),createUser:El(e),loadAccessLevels:tl(e),enableUser:jl(e),disableUser:Il(e),getNewAccessLevel:()=>({name:"",permissions:[],default:!1}),getNewUser:hl(e),getNewUserAuth:pl(e),getUsers:Zs(e),saveAccessLevels:Fl(e),isAuthorized:Oo(e),changeMyPassword:yl(e),setPasswordFromTemporaryCode:bl(e),scorePassword:_l,isValidPassword:ml(e),validateUser:dl(),validateAccessLevels:Pl(e),generateFullPermissions:()=>(e=>{const t=si(e.hierarchy),n={permissions:[]},r=Bn(t,[Ve(xi)]);for(const e of r)ra.createRecord.add(e.nodeKey(),n),ra.updateRecord.add(e.nodeKey(),n),ra.deleteRecord.add(e.nodeKey(),n),ra.readRecord.add(e.nodeKey(),n);const i=Bn(t,[Ve(wi)]);for(const e of i)ra.readIndex.add(e.nodeKey(),n);for(const t of ft(e.actions))ra.executeAction.add(t,n);return Bn(ra,[ut,Ve(e=>!e.isNode),vt(e=>e.add(n))]),n.permissions})(e),setUserAccessLevels:zl(e)}),Vl=Or.$,Wl=Or.eventsList,Ul=(e,t)=>Vl(e,[Ii.getFlattenedHierarchy,Qe(e=>e.nodeId===t||e.nodeKey()===t)]),Yl=e=>e?ql(e).constructHierarchy(e):e,ql=e=>Xs({hierarchy:e}),Ql=(e,t)=>Hl({hierarchy:e,actions:dt("name")(t),publish:()=>{}}),Kl=ql({}).allTypes,Jl={all:ql({}).validateAll,node:ql({}).validateNode,field:ql({}).validateField},Gl=(e,t)=>{return Vl(e,[Ii.getFlattenedHierarchy,Ve(e=>Ii.isAncestor(t)(e)||Ii.isAncestor(t)(e.parent())),He(e=>e.indexes),mt,Ve(Ii.isReferenceIndex)])},Xl=(e,t)=>Vl(e,[Ii.getFlattenedHierarchy,Ve(Ii.isAncestorIndex),Ve(e=>Ii.isAncestor(t)(e.parent())||e.parent().nodeId===t.parent().nodeId||Ii.isRoot(e.parent()))]),Zl=e=>e?Kl[e].getDefaultOptions():{},ec=()=>ql({}).createAction(),tc=()=>ql({}).createTrigger(),nc=e=>ql({}).validateActions(e),rc=(e,t)=>ql({}).validateTriggers(e,t),ic=(e,t)=>Ql(e,t).generateFullPermissions(),oc=()=>Ql().getNewAccessLevel(),ac=(e,t,n)=>Ql(e,t).validateAccessLevels(n),sc=[];const lc=(e,t,n)=>{if(!t||0===t.length)return;const r=t.split("."),i=(e,t=0)=>{const o=r[t];r.length-1!=t?(null!==e[o]&&void 0!==e[o]&<(e.currentKey)||(e[o]={}),i(e[o],t+1)):e[o]=n};e.update(e=>(i(e),e))},cc=e=>async({recordKey:t,statePath:n})=>{if(!t)return void e.error("Load Record: record key not set");if(!n)return void e.error("Load Record: state path not set");const r=await get({url:`${rootPath}/api/record/${key}`});e.isSuccess(r)&&e.setState(n,r)},uc=e=>async({indexKey:t,statePath:n})=>{if(!recordKey)return void e.error("Load Record: record key not set");if(!n)return void e.error("Load Record: state path not set");const r=get({url:`${rootPath}/api/listRecords/${t}`});e.isSuccess(r)&&e.setState(n,r)},dc=e=>async({username:t,password:n})=>{if(!t)return void e.error("Authenticate: username not set");if(!n)return void e.error("Authenticate: password not set");const r=await post({url:`${rootPath}/api/authenticate`,body:{username:t,password:n}});e.setState("_bbuser",r),localStorage.setItem("budibase:user",r)},hc=(e,t)=>({recordKey:n,collectionName:r,childRecordType:i,statePath:o})=>{const a=pc(setState);try{if(!n)return void a("getNewChild > recordKey not set");if(!r)return void a("getNewChild > collectionName not set");if(!i)return void a("getNewChild > childRecordType not set");if(!o)return void a("getNewChild > statePath not set");const s=t.recordApi.getNewChild(n,r,i);setState(e,o,s)}catch(e){a(e.message)}},fc=(e,t)=>({collectionKey:n,childRecordType:r,statePath:i})=>{const o=pc(setState);try{if(!n)return void o("getNewChild > collectionKey not set");if(!r)return void o("getNewChild > childRecordType not set");if(!i)return void o("getNewChild > statePath not set");const a=t.recordApi.getNew(n,r);setState(e,i,a)}catch(e){o(e.message)}},pc=e=>t=>e("##error_message",t),gc="##eventHandlerType",mc=(e,t)=>{const n=(e,t)=>({execute:t,parameters:e}),r=(({rootPath:e,setState:t,getState:n})=>{const r=e=>({url:t,body:n,notFound:r,badRequest:i,forbidden:o})=>{fetch(t,{method:e,headers:{"Content-Type":"application/json"},body:n&&JSON.stringify(n),credentials:"same-origin"}).then(e=>{switch(e.status){case 200:return e.json();case 404:return l(r||`${t} Not found`);case 400:return l(i||`${t} Bad Request`);case 403:return l(o||`${t} Forbidden`);default:return e.status.toString().startsWith("2")||e.status.toString().startsWith("3")?e.json():l(`${t} - ${e.statusText}`)}})},i=r("POST"),o=r("GET"),a=r("PATCH"),s=r("DELETE"),l=e=>{const n={};return n["##error"]=e,t("##error_message",e),n},c={rootPath:e,setState:t,getState:n,isSuccess:e=>!!e["##error"],error:l,post:i,get:o,patch:a,delete:s};return{loadRecord:cc(c),listRecords:uc(c),authenticate:dc(c)}})({rootPath:"",setState:(t,n)=>lc(e,t,n),getState:(t,n)=>((e,t,n)=>{if(!t||0===t.length)return n;const r=t.split("."),i=(e,t=0)=>{const o=r[t];if(r.length-1==t){const t=e[o];return Fe(t)?n:t}return null!==e[o]&&void 0!==e[o]&<(e[o])?i(e[o],t+1):n};return i(e)})(e,t,n)});return{"Set State":n(["path","value"],({path:t,value:n})=>lc(e,t,n)),"Load Record":n(["recordKey","statePath"],r.loadRecord),"List Records":n(["indexKey","statePath"],r.listRecords),"Save Record":n(["statePath"],r.saveRecord),"Get New Child Record":n(["recordKey","collectionName","childRecordType","statePath"],hc(e,t)),"Get New Record":n(["collectionKey","childRecordType","statePath"],fc(e,t)),Authenticate:n(["username","password"],r.authenticate)}},vc=()=>{const e=mc({},{}),t=[];for(let n in e)t.push({name:n,...e[n]});return t},yc=e=>()=>({type:e,required:!1,default:kc[e].default(),options:"options"===e?[]:void 0,elementDefinition:"array"===e?{}:void 0}),xc=(e,t,n)=>({isOfType:t,default:e,defaultDefinition:n}),bc=e=>{const t=it(e)?kc[e].defaultDefinition():e;if(!it(e)){const t=kc[e.type].defaultDefinition();for(let n in t)void 0===e[n]&&(e[n]=t[n])}return"array"===t.type&&(t.elementDefinition=wc(t.elementDefinition)),t},wc=e=>{const t={};for(let n in e)t[n]=bc(e[n]);return t},$c=It,_c=e=>St(e)&&it(e[gc])&&St(e.parameters),kc={string:xc(()=>"",it,yc("string")),bool:xc(()=>!1,ot,yc("bool")),number:xc(()=>0,rt,yc("number")),array:xc(()=>[],st,yc("array")),options:xc(()=>"",it,yc("options")),component:xc(()=>({_component:""}),$c,yc("component")),asset:xc(()=>"",it,yc("asset")),event:xc(()=>[],e=>st(e)&&wt(_c)(e),yc("event")),state:xc(()=>(()=>{const e={"##bbstate":""};return e})(),e=>void 0!==e["##bbstate"],yc("state"))},Ec=e=>(e||"").trim().toLowerCase(),Cc=e=>Ac(e)&&Fe(e.inherits),Ac=e=>{const t=t=>!Fe(e[t]);return t("name")&&t("props")},jc=(e,t)=>{const n=r=>{if(((...e)=>Vl(e,[Be(e=>Ye(Ec(t))(Ec(e)))]))(r.name,...r.tags||[]))return!0;if(Cc(r))return!1;const i=Ic(e,r.inherits);return n(i)};return Ve(n)(e)},Ic=(e,t)=>{return Vl(e,[Qe(e=>((e,t)=>Ec(e)===Ec(t))(e.name,t))])},Sc=(e,t)=>{const n=Re(e.fullProps);for(let e in t)n[e]=t[e];return n},Tc=(e,t)=>{const n=Qe(e=>e.name===t)(e),r={name:"",description:"",inherits:t,props:{},tags:n.tags};return Dc(e,t,[r],{})},Dc=(e,t,n=[],r=null)=>{const i=it(t)?Qe(e=>e.name===t)(e):t,o=it(t)?t:t.name;if(Cc(i)){r=r||{};const e=Mc(o,i.props,r),t=Mc(o,i.props),a=[],s=n.length>0?qe(n):i;if(n.length>0)for(let e in r){Vl(s.props,[ft,Ye(e)])||a.push(e)}const l=Vl(e.props,[ft,Ve(e=>!Ye(e)(ft(r))&&"_component"!==e)]),c=Re(e.props);return c._component=s.name,{propsDefinition:wc(i.props),inheritedProps:a,rootDefaultProps:t.props,unsetProps:l,fullProps:c,errors:e.errors,component:s,rootComponent:i}}return Dc(e,i.inherits,[i,...n],{...i.props,...r})},Mc=(e,t,n)=>{const r=(e,t)=>o.push({propName:e,error:t}),i={_component:e},o=[];e||r("_component","Component name not supplied");for(let e in t){const n=Oc(t[e]);n.error?r(e,n.error):i[e]=n}return n&&fn(i,n),{props:i,errors:o}},Nc=(e,t)=>Mc(`#${e}#array_element`,t),Oc=e=>{const t=t=>({error:t,propDef:e});if(it(e))return kc[e]?kc[e].default():t(`Do not recognise type ${e}`);if(!e.type)return t("Property Definition must declare a type");const n=kc[e.type];return n?Fe(e.default)?n.default(e):n.isOfType(e.default)?e.default:t(`${e.default} is not of type ${n}`):t(`Do not recognise type ${e.type}`)},Pc=(e,t)=>{const n=(t,r,i)=>{const{props:o}=Mc(t,r,i);o._component=t;for(let t in o){if("_component"===t)continue;const i=r[t];if("component"===i.type){const r=o[t];if(!r._component)continue;const i=Dc(e,r._component),a=Sc(i,r);o[t]=n(i.rootComponent.name,i.propsDefinition,a)}else if("array"===i.type){const e=o[t],r=[];for(let o of e)r.push(n(`${t}#array_element#`,i.elementDefinition,o));o[t]=r}}return o};if(!t)return{};const r=Dc(e,t);return n(r.rootComponent.name,r.propsDefinition,r.fullProps)},Lc=e=>(t,n)=>fetch(t,{method:e,headers:{"Content-Type":"application/json"},body:n&&JSON.stringify(n)});var Fc={post:Lc("POST"),get:Lc("GET"),patch:Lc("PATCH"),delete:Lc("DELETE")};const Rc=(e,t)=>`/_builder/${e}/componentlibrary?lib=${encodeURI(t)}`;let zc="";const Bc=(e,t)=>async()=>{if(!(zc=window.location.hash?qe(window.location.hash.substr(1).split("/")):""))return t.apps=await Fc.get("/_builder/api/apps").then(e=>e.json()),t.hasAppPackage=!1,e.set(t),t;const n=await Fc.get(`/_builder/api/${zc}/appPackage`).then(e=>e.json());if(t.libraries=await(async(e,t)=>{const n={};for(let r of t.pages.componentLibraries){const t=await import(Rc(e,r));n[r]=t}return n})(zc,n),t.loadLibraryUrls=(()=>((e,t)=>{const n=[];for(let r of t.pages.componentLibraries){const t=Rc(e,r);n.push({libName:r,importPath:t})}return n})(zc,n)),t.appname=zc,t.pages=n.pages,t.hasAppPackage=!0,t.hierarchy=n.appDefinition.hierarchy,t.accessLevels=n.accessLevels,t.derivedComponents=n.derivedComponents,t.allComponents=Yc(n.derivedComponents,n.rootComponents),t.actions=Le((e,t)=>(e.push(t),e))(n.appDefinition.actions,[]),t.triggers=n.appDefinition.triggers,t.hierarchy&&!We(t.hierarchy)){t.hierarchy=Yl(t.hierarchy);const e=lu(t.hierarchy);null!==t.currentNode&&(t.currentNode=Ul(e,t.currentNode.nodeId))}return e.set(t),t},Hc=e=>t=>{e.update(e=>(e.showSettings=!e.showSettings,e))},Vc=e=>t=>{e.update(e=>(e.useAnalytics=!e.useAnalytics,e))},Wc=e=>()=>{e.update(e=>(e.isBackend=!0,e))},Uc=e=>()=>{e.update(e=>(e.isBackend=!1,e))},Yc=(e,t)=>{const n=[];for(let t in e)n.push(e[t]);for(let e in t)n.push(t[e]);return n},qc=(e,t)=>()=>{e.update(e=>{e.currentNodeIsNew=!0;const n=lu(e.hierarchy);return parent=t?n:Ul(n,e.currentNode.nodeId),e.errors=[],e.currentNode=ql(n).getNewRecordTemplate(parent,"",!0),e})},Qc=e=>t=>{e.update(e=>{const n=lu(e.hierarchy);return e.currentNode=Ul(n,t),e.currentNodeIsNew=!1,e.errors=[],e.activeNav="database",e})},Kc=(e,t)=>()=>{e.update(e=>{e.currentNodeIsNew=!0,e.errors=[];const n=lu(e.hierarchy);return parent=t?n:Ul(n,e.currentNode.nodeId),e.currentNode=ql(n).getNewIndexTemplate(parent),e})},Jc=e=>()=>{e.update(t=>{const n=Jl.node(t.currentNode);if(t.errors=n,n.length>0)return t;const r=Ul(t.hierarchy,t.currentNode.parent().nodeId),i=Ul(t.hierarchy,t.currentNode.nodeId);let o=r.children.length;i&&(o=i.parent().children.indexOf(i),i.parent().children=Vl(i.parent().children,[Ve(e=>e.nodeId!==i.nodeId)]));const a=Re(t.currentNode);ql(t.hierarchy).constructNode(r,a);return r.children=Vl(r.children,[Et(e=>{if(e===a)return o;const t=r.children.indexOf(e);return t>=o?t+1:t})]),t.currentNodeIsNew=!1,xu(e,t),t})},Gc=e=>t=>{e.update(e=>(e.hierarchy=t.hierarchy,e.currentNode=t.hierarchy.children.length>0?t.hierarchy.children[0]:null,e.actions=t.actions,e.triggers=t.triggers,e.currentNodeIsNew=!1,e))},Xc=e=>()=>{e.update(t=>{const n=Ul(t.hierarchy,t.currentNode.nodeId);return t.currentNode=Ii.isRoot(n.parent())?Qe(e=>e!=t.currentNode)(t.hierarchy.children):n.parent(),Ii.isRecord(n)?n.parent().children=Ve(e=>e.nodeId!==n.nodeId)(n.parent().children):n.parent().indexes=Ve(e=>e.nodeId!==n.nodeId)(n.parent().indexes),t.errors=[],xu(e,t),t})},Zc=e=>t=>{e.update(e=>(e.currentNode.fields=Ve(e=>e.name!==t.name)(e.currentNode.fields),ql(e.hierarchy).addField(e.currentNode,t),e))},eu=e=>t=>{e.update(e=>(e.currentNode.fields=Ve(e=>e.name!==t.name)(e.currentNode.fields),e))},tu=e=>(t,n,r=null)=>{e.update(i=>{const o=n?null:Qe(e=>e.name===r.name)(i.actions);return o?i.actions=Vl(i.actions,[He(e=>e===o?t:e)]):i.actions.push(t),xu(e,i),i})},nu=e=>t=>{e.update(n=>(n.actions=Ve(e=>e.name!==t.name)(n.actions),xu(e,n),n))},ru=e=>(t,n,r=null)=>{e.update(i=>{const o=n?null:Qe(e=>e.name===r.name)(i.triggers);return o?i.triggers=Vl(i.triggers,[He(e=>e===o?t:e)]):i.triggers.push(t),xu(e,i),i})},iu=e=>t=>{e.update(e=>(e.triggers=Ve(e=>e.name!==t.name)(e.triggers),e))},ou=e=>(t,n,r=null)=>{e.update(i=>{const o=n?null:Qe(e=>e.name===r.name)(i.accessLevels);return o?i.accessLevels=Vl(i.accessLevels,[He(e=>e===o?t:e)]):i.accessLevels.push(t),xu(e,i),i})},au=e=>t=>{e.update(n=>(n.accessLevels=Ve(e=>e.name!==t.name)(n.accessLevels),xu(e,n),n))},su=e=>t=>{e.update(e=>(e.activeNav=t,e))},lu=e=>Yl(JSON.parse(JSON.stringify(e))),cu=e=>t=>{e.update(n=>{const r=Vl(n.allComponents,[Ve(e=>e.name!==t.name),pt([t])]),i=Vl(n.derivedComponents,[Ve(e=>e.name!==t.name),pt([t])]);return n.allComponents=r,n.derivedComponents=i,n.currentFrontEndItem=t,n.currentComponentInfo=Tc(n.allComponents,t.name),n.currentComponentIsNew=!1,Fc.post(`/_builder/api/${n.appname}/derivedcomponent`,t).then(()=>xu(e,n)),n})},uu=e=>t=>{e.update(e=>{const n=Tc(e.allComponents,t);return e.currentFrontEndItem=n.component,e.currentComponentInfo=n,e.currentComponentIsNew=!0,e})},du=e=>t=>{e.update(e=>{const n=Vl(e.allComponents,[Ve(e=>e.name!==t)]),r=Vl(e.derivedComponents,[Ve(e=>e.name!==t)]);return e.allComponents=n,e.derivedComponents=r,e.currentFrontEndItem.name===t&&(e.currentFrontEndItem=null),Fc.delete(`/_builder/api/${e.appname}/derivedcomponent/${t}`),e})},hu=e=>(t,n)=>{e.update(e=>{const r=Vl(e.allComponents,[Qe(e=>e.name===name)]);r.name=n;const i=Vl(e.allComponents,[Ve(e=>e.name!==name),pt([r])]);return e.allComponents=i,Fc.patch(`/_builder/api/${e.appname}/derivedcomponent`,{oldname:t,newname:n}),e})},fu=e=>async t=>{e.update(n=>{if(!n.currentFrontEndIsComponent&&n.currentFrontEndItem)return n.pages[n.currentPageName]=t,n.currentFrontEndItem=t,xu(e,n),n})},pu=e=>async t=>{const n=await Fc.get(`/_builder/api/${zc}/componentlibrary?lib=${encodeURI(t)}`,void 0,!1),r=200===n.status,i=(404===n.status||(r||n.statusText),r?await n.json():[]);e.update(n=>{if(r){const r=[];for(let e in i)r.push(i[e]);n.allComponents=Vl(n.allComponents,[Ve(e=>!e.name.startsWith(`${t}/`)),pt(r)]),n.pages.componentLibraries.push(t),xu(e,n)}return n})},gu=e=>t=>{e.update(n=>(n.pages.componentLibraries=Ve(e=>e!==t)(n.pages.componentLibraries),xu(e,n),n))},mu=e=>t=>{e.update(n=>(n.pages.stylesheets.push(t),xu(e,n),n))},vu=e=>t=>{e.update(n=>(n.pages.stylesheets=Ve(e=>e!==t)(n.pages.stylesheets),xu(e,n),n))},yu=e=>async()=>{const t=await Fc.get(`/_builder/api/${db.appname}/components`).then(e=>e.json()),n=Vl(t,[ft,He(e=>({...t[e],name:e}))]);e.update(e=>(e.allComponents=Vl(e.allComponents,[Ve(e=>!Cc(e)),pt(n)]),e))},xu=(e,t)=>{const n={appDefinition:{hierarchy:t.hierarchy,triggers:t.triggers,actions:t.actions,props:{main:Pc(t.allComponents,t.pages.main.appBody),unauthenticated:Pc(t.allComponents,t.pages.unauthenticated.appBody)}},accessLevels:t.accessLevels,pages:t.pages};Fc.post(`/_builder/api/${t.appname}/appPackage`,n)},bu=e=>t=>{e.update(e=>(e.currentFrontEndItem=t,e.currentFrontEndIsComponent=!0,e.currentComponentIsNew=!1,e.currentComponentInfo=Dc(e.allComponents,t.name),e))},wu=e=>t=>{e.update(e=>(e.currentFrontEndItem=e.pages[t],e.currentFrontEndIsComponent=!1,e.currentPageName=t,e))},$u=(()=>{const t={apps:[],appname:"",hierarchy:{},actions:[],triggers:[],pages:{main:{index:{_component:"./components/indexHtml"},appBody:"bbapp.main.json"},unauthenticated:{index:{_component:"./components/indexHtml"},appBody:"bbapp.unauthenticated.json"},componentLibraries:[],stylesheets:[]},mainUi:{},unauthenticatedUi:{},allComponents:[],currentFrontEndItem:null,currentComponentInfo:null,currentComponentIsNew:!1,currentPageName:"",currentNodeIsNew:!1,errors:[],activeNav:"database",isBackend:!0,hasAppPackage:!1,accessLevels:[],currentNode:null,libraries:null,showSettings:!1,useAnalytics:!0},n=function(t,n=e){let r;const i=[];function o(e){if(s(t,e)&&(t=e,r)){const e=!sc.length;for(let e=0;e{const e=i.indexOf(l);-1!==e&&i.splice(e,1),0===i.length&&(r(),r=null)}}}}(t);return n.initialise=Bc(n,t),n.newChildRecord=qc(n,!1),n.newRootRecord=qc(n,!0),n.selectExistingNode=Qc(n),n.newChildIndex=Kc(n,!1),n.newRootIndex=Kc(n,!0),n.saveCurrentNode=Jc(n),n.importAppDefinition=Gc(n),n.deleteCurrentNode=Xc(n),n.saveField=Zc(n),n.deleteField=eu(n),n.saveAction=tu(n),n.deleteAction=nu(n),n.saveTrigger=ru(n),n.deleteTrigger=iu(n),n.saveLevel=ou(n),n.deleteLevel=au(n),n.setActiveNav=su(n),n.saveDerivedComponent=cu(n),n.refreshComponents=yu(n),n.addComponentLibrary=pu(n),n.renameDerivedComponent=hu(n),n.deleteDerivedComponent=du(n),n.setCurrentComponent=bu(n),n.setCurrentPage=wu(n),n.createDerivedComponent=uu(n),n.removeComponentLibrary=gu(n),n.addStylesheet=mu(n),n.removeStylesheet=vu(n),n.savePage=fu(n),n.showFrontend=Uc(n),n.showBackend=Wc(n),n.showSettings=Hc(n),n.useAnalytics=Vc(n),n})(),_u=async()=>{try{ku($u),await $u.initialise()}catch(e){console.log(e)}},ku=e=>{const t=history.pushState;history.pushState=(()=>{t.apply(history,arguments),e.initialise()}),window.addEventListener("hashchange",()=>{e.initialise()})};function Eu(e,t,n){const r=Object.create(e);return r.app=t[n],r}function Cu(e){var t,n,r,i=e.app+"";return{c(){t=k("a"),n=E(i),S(t,"href",r=`#/${e.app}`),S(t,"class","app-link svelte-e4n7zy")},m(e,r){w(e,t,r),b(t,n)},p(e,o){e.$store&&i!==(i=o.app+"")&&T(n,i),e.$store&&r!==(r=`#/${o.app}`)&&S(t,"href",r)},d(e){e&&$(t)}}}function Au(t){var n,r,i,o,a,s,l,c;let u=t.$store.apps,d=[];for(let e=0;e{n("$store",r=e)}),{$store:r}}class Iu extends be{constructor(e){super(),ye(this,e,ju,Au,s,[])}}var Su,Tu=Ee(function(e,t){var n;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"./dist/icons.json":function(e){e.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"dollar-sign":'',"download-cloud":'',download:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(e,t,n){var r,i;i=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(h);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),null==y||f==Array&&a(y))for(n=new f(t=s(h.length));t>v;v++)l(n,v,m?g(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(u=d.next()).done;v++)l(n,v,m?o(d,g,[u.value,v],!0):u.value);return n.length=v,n}},"./node_modules/core-js/internals/array-includes.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/to-length.js"),o=n("./node_modules/core-js/internals/to-absolute-index.js");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(e,t,n){var r=n("./node_modules/core-js/internals/a-function.js");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,t,n){var r=n("./node_modules/core-js/internals/an-object.js");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,t,n){var r=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},"./node_modules/core-js/internals/classof-raw.js":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,n){var r=n("./node_modules/core-js/internals/classof-raw.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/own-keys.js"),o=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;cdocument.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d.prototype[o[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[c]=e):n=d(),void 0===t?n:i(n,t)},a[c]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/ie8-dom-define.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-primitive.js"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-primitive.js"),l=n("./node_modules/core-js/internals/has.js"),c=n("./node_modules/core-js/internals/ie8-dom-define.js"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-keys-internal.js"),i=n("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/array-includes.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),s=o(!1);e.exports=function(e,t){var n,o=i(e),l=0,c=[];for(n in o)!r(a,n)&&r(o,n)&&c.push(n);for(;t.length>l;)r(o,n=t[l++])&&(~s(c,n)||c.push(n));return c}},"./node_modules/core-js/internals/object-keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-keys-internal.js"),i=n("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n,i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js"),o=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js"),s=r.Reflect;e.exports=s&&s.ownKeys||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"./node_modules/core-js/internals/path.js":function(e,t,n){e.exports=n("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/shared.js"),o=n("./node_modules/core-js/internals/hide.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/function-to-string.js"),c=n("./node_modules/core-js/internals/internal-state.js"),u=c.get,d=c.enforce,h=String(l).split("toString");i("inspectSource",function(e){return l.call(e)}),(e.exports=function(e,t,n,i){var l=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),d(n).source=h.join("string"==typeof t?t:"")),e!==r?(l?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:s(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||l.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/hide.js");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-define-property.js").f,i=n("./node_modules/core-js/internals/has.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":function(e,t,n){var r=n("./node_modules/core-js/internals/shared.js"),i=n("./node_modules/core-js/internals/uid.js"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"./node_modules/core-js/internals/shared.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/set-global.js"),o=n("./node_modules/core-js/internals/is-pure.js"),a=r["__core-js_shared__"]||i("__core-js_shared__",{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e,t,n){var o,a,s=String(i(e)),l=r(t),c=s.length;return l<0||l>=c?n?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?n?s.charAt(l):o:n?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/indexed-object.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return r(i(e))}},"./node_modules/core-js/internals/to-integer.js":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"./node_modules/core-js/internals/to-length.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return Object(r(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/an-object.js");e.exports=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/shared.js"),o=n("./node_modules/core-js/internals/uid.js"),a=n("./node_modules/core-js/internals/native-symbol.js"),s=r.Symbol,l=i("wks");e.exports=function(e){return l[e]||(l[e]=a&&s[e]||(a?s:o)("Symbol."+e))}},"./node_modules/core-js/modules/es.array.from.js":function(e,t,n){var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/array-from.js");r({target:"Array",stat:!0,forced:!n("./node_modules/core-js/internals/check-correctness-of-iteration.js")(function(e){})},{from:i})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,n){var r=n("./node_modules/core-js/internals/string-at.js"),i=n("./node_modules/core-js/internals/internal-state.js"),o=n("./node_modules/core-js/internals/define-iterator.js"),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i,!0),t.index+=e.length,{value:e,done:!1})})},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./src/default-attrs.json":function(e){e.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.contents=n,this.tags=i,this.attrs=r({},a.default,{class:"feather feather-"+t})}return i(e,[{key:"toSvg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),e}();t.default=l},"./src/icons.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=a(n("./src/icon.js")),i=a(n("./dist/icons.json")),o=a(n("./src/tags.json"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=Object.keys(i.default).map(function(e){return new r.default(e,i.default[e],o.default[e])}).reduce(function(e,t){return e[t.name]=t,e},{})},"./src/index.js":function(e,t,n){var r=a(n("./src/icons.js")),i=a(n("./src/to-svg.js")),o=a(n("./src/replace.js"));function a(e){return e&&e.__esModule?e:{default:e}}e.exports={icons:r.default,toSvg:i.default,replace:o.default}},"./src/replace.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`feather.replace()` only works in a browser environment.");var t=document.querySelectorAll("[data-feather]");Array.from(t).forEach(function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){return Array.from(e.attributes).reduce(function(e,t){return e[t.name]=t.value,e},{})}(e),a=n["data-feather"];delete n["data-feather"];var s=o.default[a].toSvg(r({},t,n,{class:(0,i.default)(t.class,n.class)})),l=(new DOMParser).parseFromString(s,"image/svg+xml").querySelector("svg");e.parentNode.replaceChild(l,e)}(t,e)})}},"./src/tags.json":function(e){e.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning"],"alert-octagon":["warning"],"alert-triangle":["warning"],"at-sign":["mention"],award:["achievement","badge"],aperture:["camera","photo"],bell:["alarm","notification"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read"],book:["read","dictionary","booklet","magazine"],bookmark:["read","clip","marker","tag"],briefcase:["work","bag","baggage","folder"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],command:["keyboard","cmd"],compass:["navigation","safari","travel"],copy:["clone","duplicate"],"corner-down-left":["arrow"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch"],"external-link":["outbound"],facebook:["logo"],"fast-forward":["music"],figma:["logo","design","tool"],film:["movie","video"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],global:["world","browser","language","translate"],"hard-drive":["computer","server"],hash:["hashtag","number","pound"],headphones:["music","audio"],heart:["like","love"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication"],"life-bouy":["help","life ring","support"],linkedin:["logo"],lock:["security","password"],"log-in":["sign in","arrow"],"log-out":["sign out","arrow"],mail:["email"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record"],mic:["record"],minimize:["exit fullscreen"],"minimize-2":["exit fullscreen","arrows"],monitor:["tv"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","stop"],"pen-tool":["vector","drawing"],play:["music","start"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],radio:["signal"],rewind:["music"],rss:["feed","subscribe"],save:["floppy disk"],search:["find","magnifier","magnifying glass"],send:["message","mail","paper airplane"],settings:["cog","edit","gear","preferences"],shield:["security"],"shield-off":["security"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slash:["ban","no"],sliders:["settings","controls"],smile:["emoji","face","happy","good","emotion"],speaker:["music"],star:["bookmark","favorite","like"],sun:["brightness","weather","light"],sunrise:["weather"],sunset:["weather"],tag:["label"],target:["bullseye"],terminal:["code","command line"],"thumbs-down":["dislike","bad"],"thumbs-up":["like","good"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],trash:["garbage","delete","remove"],"trash-2":["garbage","delete","remove"],triangle:["delta"],truck:["delivery","van","shipping"],twitter:["logo"],umbrella:["rain","weather"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times"],"x-octagon":["delete","stop","alert","warning","times"],"x-square":["cancel","close","delete","remove","times"],x:["cancel","close","delete","remove","times"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"]}},"./src/to-svg.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,i=n("./src/icons.js"),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!e)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[e])throw new Error("No icon matching '"+e+"'. See the complete list of icons at https://feathericons.com");return o.default[e].toSvg(t)}},0:function(e,t,n){n("./node_modules/core-js/es/array/from.js"),e.exports=n("./src/index.js")}})},e.exports=n()}),Du=(Su=Tu)&&Su.__esModule&&Object.prototype.hasOwnProperty.call(Su,"default")?Su.default:Su;const Mu=(e,t)=>Du.icons[e].toSvg({height:t||"16",width:t||"16"});function Nu(t){var n,r,i,o,a=Mu(t.icon,t.size)+"";return{c(){S(n=k("button"),"style",r=t.style+(t.style?";":"")+" color:"+t.color+"; --hovercolor:"+t.hoverColor),S(n,"class","svelte-bxuckr"),o=j(n,"click",t.click_handler)},m(e,r){w(e,n,r),n.innerHTML=a,i=t.addAttributes.call(null,n,t.attributes)||{}},p(e,t){(e.icon||e.size)&&a!==(a=Mu(t.icon,t.size)+"")&&(n.innerHTML=a),(e.style||e.color||e.hoverColor)&&r!==(r=t.style+(t.style?";":"")+" color:"+t.color+"; --hovercolor:"+t.hoverColor)&&S(n,"style",r),"function"==typeof i.update&&e.attributes&&i.update.call(null,t.attributes)},i:e,o:e,d(e){e&&$(n),i&&"function"==typeof i.destroy&&i.destroy(),o()}}}function Ou(e,t,n){let{size:r=18,icon:i="",style:o="",color:a="var(--secondary100)",hoverColor:s="var(--secondary75)",attributes:l={}}=t,c=[];return e.$set=(e=>{"size"in e&&n("size",r=e.size),"icon"in e&&n("icon",i=e.icon),"style"in e&&n("style",o=e.style),"color"in e&&n("color",a=e.color),"hoverColor"in e&&n("hoverColor",s=e.hoverColor),"attributes"in e&&n("attributes",l=e.attributes)}),{size:r,icon:i,style:o,color:a,hoverColor:s,attributes:l,addAttributes:(e,t)=>{const n=t=>{const n=[];for(let r in t)e.setAttribute(r,t[r]),n.push("uk-toggle");c=n};return n(t),{update(t){for(let t of c)e.removeAttribute(t);n(t)},destroy(){}}},click_handler:function(t){U(e,t)}}}class Pu extends be{constructor(e){super(),ye(this,e,Ou,Nu,s,["size","icon","style","color","hoverColor","attributes"])}}function Lu(e,t,n){const r=Object.create(e);return r.component=t[n],r}function Fu(e,t,n){const r=Object.create(e);return r.folder=t[n],r}function Ru(e){var t,n=new Wu({props:{components:e.subComponents(e.folder.name),thisLevel:e.folder.path}});return{c(){n.$$.fragment.c()},m(e,r){ge(n,e,r),t=!0},p(e,t){var r={};e.subfolders&&(r.components=t.subComponents(t.folder.name)),e.subfolders&&(r.thisLevel=t.folder.path),n.$set(r)},i(e){t||(ce(n.$$.fragment,e),t=!0)},o(e){ue(n.$$.fragment,e),t=!1},d(e){me(n,e)}}}function zu(e){var t,n,r,i,o,a,s,l,c=Mu(e.folder.isExpanded?"chevron-down":"chevron-right","16")+"",u=e.folder.name+"",d=e.folder.isExpanded&&Ru(e);function h(){return e.click_handler(e)}return{c(){t=k("div"),n=k("span"),r=C(),i=k("span"),o=E(u),a=C(),d&&d.c(),S(i,"class","title svelte-1r2dipt"),P(i,"currentfolder",e.$store.currentFrontEndItem&&e.isInSubfolder(e.folder.name,e.$store.currentFrontEndItem)),S(t,"class","hierarchy-item folder svelte-1r2dipt"),l=j(t,"click",I(h))},m(e,l){w(e,t,l),b(t,n),n.innerHTML=c,b(t,r),b(t,i),b(i,o),b(t,a),d&&d.m(t,null),s=!0},p(r,a){e=a,s&&!r.subfolders||c===(c=Mu(e.folder.isExpanded?"chevron-down":"chevron-right","16")+"")||(n.innerHTML=c),s&&!r.subfolders||u===(u=e.folder.name+"")||T(o,u),(r.$store||r.isInSubfolder||r.subfolders)&&P(i,"currentfolder",e.$store.currentFrontEndItem&&e.isInSubfolder(e.folder.name,e.$store.currentFrontEndItem)),e.folder.isExpanded?d?(d.p(r,e),ce(d,1)):((d=Ru(e)).c(),ce(d,1),d.m(t,null)):d&&(se(),ue(d,1,1,()=>{d=null}),le())},i(e){s||(ce(d),s=!0)},o(e){ue(d),s=!1},d(e){e&&$(t),d&&d.d(),l()}}}function Bu(e){var t,n,r,i,o,a,s,l=Mu("circle","7")+"",c=e.component.title+"";function u(){return e.click_handler_1(e)}return{c(){t=k("div"),n=k("span"),r=C(),i=k("span"),o=E(c),a=C(),S(i,"class","title svelte-1r2dipt"),S(t,"class","hierarchy-item component svelte-1r2dipt"),P(t,"selected",e.isComponentSelected(e.$store.currentFrontEndItem,e.component.component)),s=j(t,"click",I(u))},m(e,s){w(e,t,s),b(t,n),n.innerHTML=l,b(t,r),b(t,i),b(i,o),b(t,a)},p(n,r){e=r,n.componentsThisLevel&&c!==(c=e.component.title+"")&&T(o,c),(n.isComponentSelected||n.$store||n.componentsThisLevel)&&P(t,"selected",e.isComponentSelected(e.$store.currentFrontEndItem,e.component.component))},d(e){e&&$(t),s()}}}function Hu(e){var t,n,r,i;let o=e.subfolders,a=[];for(let t=0;tue(a[e],1,1,()=>{a[e]=null});let l=e.componentsThisLevel,c=[];for(let t=0;t{n("$store",r=e)});let i,o,a,{components:s=[],thisLevel:c=""}=t,u=[];const d=yt("/"),h=e=>Vl(e,[jt("./"),jt("~/"),jt("../"),At(" ")]),f=e=>h(e.name).split("/").length===i&&(!c||h(e.name).startsWith(h(c))),p=e=>!f(e),g=(e,t)=>h(t.name).startsWith(jt("/")(d([c,e]))),m=e=>qe(e.name.split("/")),v=e=>{const t=h(e.name),n=t.substring(c.length,t.length).split("/")[0];return{name:n,isExpanded:Ye(n)(u),path:c+"/"+n}},y=e=>{const t={...e};t.isExpanded?(t.isExpanded=!1,u=Ve(t=>t.name!==e.name)(u)):(t.isExpanded=!0,u.push(e.name));const r=[...a];r.splice(r.indexOf(e),1,t),n("subfolders",a=r)};return e.$set=(e=>{"components"in e&&n("components",s=e.components),"thisLevel"in e&&n("thisLevel",c=e.thisLevel)}),e.$$.update=((e={thisLevel:1,components:1})=>{(e.thisLevel||e.components)&&(n("pathPartsThisLevel",i=c?h(c).split("/").length+1:1),n("componentsThisLevel",o=Vl(s,[Ve(f),He(e=>({component:e,title:m(e)})),Et("title")])),n("subfolders",a=Vl(s,[Ve(p),Et("name"),He(v),$t((e,t)=>e.path===t.path)])))}),{components:s,thisLevel:c,pathPartsThisLevel:i,componentsThisLevel:o,subfolders:a,isInSubfolder:g,subComponents:e=>Vl(s,[Ve(t=>g(e,t))]),expandFolder:y,isComponentSelected:(e,t)=>e&&e.name===t.name,$store:r,click_handler:({folder:e})=>y(e),click_handler_1:({component:e})=>$u.setCurrentComponent(e.component)}}class Wu extends be{constructor(e){super(),ye(this,e,Vu,Hu,s,["components","thisLevel"])}}function Uu(t){var n,r,i,a,s,l,c,u,d,h,f,p=Mu("circle","7")+"",g=Mu("circle","7")+"";return{c(){n=k("div"),r=k("div"),i=k("span"),a=C(),(s=k("span")).textContent="Main",l=C(),c=k("div"),u=k("span"),d=C(),(h=k("span")).textContent="Login",S(s,"class","title svelte-117bbrk"),S(r,"class","hierarchy-item component svelte-117bbrk"),P(r,"selected",t.$store.currentFrontEndItem&&"main"===t.$store.currentPageName),S(h,"class","title svelte-117bbrk"),S(c,"class","hierarchy-item component svelte-117bbrk"),P(c,"selected",t.$store.currentFrontEndItem&&"unauthenticated"===t.$store.currentPageName),S(n,"class","root svelte-117bbrk"),f=[j(r,"click",I(t.click_handler)),j(c,"click",I(t.click_handler_1))]},m(e,t){w(e,n,t),b(n,r),b(r,i),i.innerHTML=p,b(r,a),b(r,s),b(n,l),b(n,c),b(c,u),u.innerHTML=g,b(c,d),b(c,h)},p(e,t){e.$store&&(P(r,"selected",t.$store.currentFrontEndItem&&"main"===t.$store.currentPageName),P(c,"selected",t.$store.currentFrontEndItem&&"unauthenticated"===t.$store.currentPageName))},i:e,o:e,d(e){e&&$(n),o(f)}}}function Yu(e,t,n){let r;l(e,$u,e=>{n("$store",r=e)});return{$store:r,click_handler:()=>$u.setCurrentPage("main"),click_handler_1:()=>$u.setCurrentPage("unauthenticated")}}class qu extends be{constructor(e){super(),ye(this,e,Yu,Uu,s,[])}}function Qu(t){var n,r,i;return{c(){n=k("input"),r=E(t.label),S(n,"class","uk-checkbox svelte-9fre0g"),S(n,"type","checkbox"),i=[j(n,"change",t.input_change_handler),j(n,"change",t.change_handler)]},m(e,i){w(e,n,i),n.checked=t.checked,w(e,r,i)},p(e,t){e.checked&&(n.checked=t.checked),e.label&&T(r,t.label)},i:e,o:e,d(e){e&&($(n),$(r)),o(i)}}}function Ku(e,t,n){let{checked:r=!1,label:i=""}=t;return e.$set=(e=>{"checked"in e&&n("checked",r=e.checked),"label"in e&&n("label",i=e.label)}),{checked:r,label:i,change_handler:function(t){U(e,t)},input_change_handler:function(){r=this.checked,n("checked",r)}}}class Ju extends be{constructor(e){super(),ye(this,e,Ku,Qu,s,["checked","label"])}}function Gu(e){var t,n;return{c(){t=k("div"),n=E(e.infoText),S(t,"class","info-text svelte-1gx0gkl")},m(e,r){w(e,t,r),b(t,n)},p(e,t){e.infoText&&T(n,t.infoText)},d(e){e&&$(t)}}}function Xu(t){var n,r,i,a,s,l,c,u,d,h=t.infoText&&Gu(t);return{c(){n=k("div"),r=k("label"),i=E(t.label),a=C(),s=k("div"),l=k("input"),u=C(),h&&h.c(),S(r,"class","uk-form-label"),S(l,"class",c="uk-input uk-form-width-"+t.width+" uk-form-"+t.size+" svelte-1gx0gkl"),l.disabled=t.disabled,P(l,"uk-form-danger",t.hasError),S(s,"class","uk-form-controls"),P(n,"uk-margin",t.margin),d=[j(l,"input",t.input_input_handler),j(l,"change",t.change_handler)]},m(e,o){w(e,n,o),b(n,r),b(r,i),b(n,a),b(n,s),b(s,l),D(l,t.text),b(n,u),h&&h.m(n,null)},p(e,t){e.label&&T(i,t.label),e.text&&l.value!==t.text&&D(l,t.text),(e.width||e.size)&&c!==(c="uk-input uk-form-width-"+t.width+" uk-form-"+t.size+" svelte-1gx0gkl")&&S(l,"class",c),e.disabled&&(l.disabled=t.disabled),(e.width||e.size||e.hasError)&&P(l,"uk-form-danger",t.hasError),t.infoText?h?h.p(e,t):((h=Gu(t)).c(),h.m(n,null)):h&&(h.d(1),h=null),e.margin&&P(n,"uk-margin",t.margin)},i:e,o:e,d(e){e&&$(n),h&&h.d(),o(d)}}}function Zu(e,t,n){let{text:r="",label:i="",width:o="medium",size:a="small",margin:s=!0,infoText:l="",hasError:c=!1,disabled:u=!1}=t;return e.$set=(e=>{"text"in e&&n("text",r=e.text),"label"in e&&n("label",i=e.label),"width"in e&&n("width",o=e.width),"size"in e&&n("size",a=e.size),"margin"in e&&n("margin",s=e.margin),"infoText"in e&&n("infoText",l=e.infoText),"hasError"in e&&n("hasError",c=e.hasError),"disabled"in e&&n("disabled",u=e.disabled)}),{text:r,label:i,width:o,size:a,margin:s,infoText:l,hasError:c,disabled:u,change_handler:function(t){U(e,t)},input_input_handler:function(){r=this.value,n("text",r)}}}class ed extends be{constructor(e){super(),ye(this,e,Zu,Xu,s,["text","label","width","size","margin","infoText","hasError","disabled"])}}function td(e,t,n){const r=Object.create(e);return r.option=t[n],r}function nd(e,t,n){const r=Object.create(e);return r.option=t[n],r}function rd(e){var t,n,r;let i=e.options,a=[];for(let t=0;te.select_change_handler_1.call(t)),S(t,"class",n="uk-select uk-form-width-"+e.width+" uk-form-"+e.size),r=[j(t,"change",e.select_change_handler_1),j(t,"change",e.change_handler_1)]},m(n,r){w(n,t,r);for(let e=0;ee.select_change_handler.call(t)),S(t,"class",n="uk-select uk-form-width-"+e.width+" uk-form-"+e.size),t.multiple=!0,r=[j(t,"change",e.select_change_handler),j(t,"change",e.change_handler)]},m(n,r){w(n,t,r);for(let e=0;e{"selected"in e&&n("selected",r=e.selected),"label"in e&&n("label",i=e.label),"options"in e&&n("options",o=e.options),"valueMember"in e&&n("valueMember",a=e.valueMember),"textMember"in e&&n("textMember",s=e.textMember),"multiple"in e&&n("multiple",l=e.multiple),"width"in e&&n("width",c=e.width),"size"in e&&n("size",u=e.size)}),{selected:r,label:i,options:o,valueMember:a,textMember:s,multiple:l,width:c,size:u,change_handler:function(t){U(e,t)},change_handler_1:function(t){U(e,t)},select_change_handler:function(){var e;e=this,r=[].map.call(e.querySelectorAll(":checked"),e=>e.__value),n("selected",r),n("valueMember",a),n("options",o)},select_change_handler_1:function(){r=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n("selected",r),n("valueMember",a),n("options",o)}}}class cd extends be{constructor(e){super(),ye(this,e,ld,sd,s,["selected","label","options","valueMember","textMember","multiple","width","size"])}}var ud=zr.performance||{};ud.now||ud.mozNow||ud.msNow||ud.oNow||ud.webkitNow;function dd(e){return"string"==typeof e}const hd=e=>!it(e)&&e&&it(e["##bbstate"])&&e["##bbstate"].length>0,fd=({path:e,fallback:t,source:n},r={})=>(gd(e)&&(r["##bbstate"]=e),gd(t)&&(r["##bbstatefallback"]=t),r["##bbsource"]=n||"store",r),pd=e=>({path:e["##bbstate"]||"",fallback:e["##bbstatefallback"]||"",source:e["##bbsource"]||"store"}),gd=e=>it(e)&&e.length>0,md=(e,t,n)=>r=>e.push({stack:n,propName:t,error:r}),vd=e=>{const t=dd(e)?kc[e].defaultDefinition():e;return"array"===t.type&&dd(t.elementDefinition)&&(t.elementDefinition=kc[t.elementDefinition].defaultDefinition()),t},yd=(e,t,n=[],r=!0,i=!1)=>{const o=[];if(r&&!t._component&&!i)return md(o,"_component",n)("Component is not set"),o;for(let i in e){if("_component"===i)continue;const a=vd(e[i]),s=kc[a.type],l=md(o,i,n),c=t[i];if(r||!Fe(c))if(r&&a.required&&c)l(`Property ${i} is required`);else{if(hd(c)){if("array"===a.type||"component"===a.type||"event"===a.type){l(`Cannot apply binding to type ${a.type}`);continue}}else if(!s.isOfType(c)){l(`Property ${i} is not of type ${a.type}. Actual value ${c}`);continue}if("array"===a.type){let e=0;for(let t of c){const s=yd(a.elementDefinition,t,[...n,`${i}[${e}]`],r,!0);for(let e of s)o.push(e);e++}}"options"!==a.type||!c||hd(c)||Ye(c)(a.options)||l(`Property ${i} is not one of allowed options. Acutal value is ${c}`)}}return o};function xd(e,t,n){const r=Object.create(e);return r.component=t[n],r}function bd(e){var t,n,r,i,o,a,s,l,c=e.component.name+"",u=e.component.description+"";function d(){return e.click_handler(e)}return{c(){t=k("div"),n=k("div"),r=E(c),i=C(),o=k("div"),a=E(u),s=C(),S(n,"class","title svelte-qxar5p"),S(o,"class","description svelte-qxar5p"),S(t,"class","component svelte-qxar5p"),l=j(t,"click",d)},m(e,l){w(e,t,l),b(t,n),b(n,r),b(t,i),b(t,o),b(o,a),b(t,s)},p(t,n){e=n,t.filteredComponents&&c!==(c=e.component.name+"")&&T(r,c),t.filteredComponents&&u!==(u=e.component.description+"")&&T(a,u)},d(e){e&&$(t),l()}}}function wd(t){var n,r,i,o,a,s,l,c;let u=t.filteredComponents,d=[];for(let e=0;e{})}=t,i=[],o="";$u.subscribe(e=>{n("allComponents",i=e.allComponents)});let a;return e.$set=(e=>{"onComponentChosen"in e&&n("onComponentChosen",r=e.onComponentChosen)}),e.$$.update=((e={phrase:1,allComponents:1})=>{(e.phrase||e.allComponents)&&n("filteredComponents",a=o?jc(i,o):[])}),{onComponentChosen:r,phrase:o,filteredComponents:a,input_input_handler:function(){o=this.value,n("phrase",o)},click_handler:({component:e})=>r(e)}}class _d extends be{constructor(e){super(),ye(this,e,$d,wd,s,["onComponentChosen"])}}function kd(e){var t,n;const r=e.$$slots.default,i=c(r,e,null);return{c(){t=k("div"),i&&i.c(),S(t,"class","root svelte-x3bf9z"),S(t,"style",e.style)},l(e){i&&i.l(div_nodes)},m(e,r){w(e,t,r),i&&i.m(t,null),n=!0},p(e,o){i&&i.p&&e.$$scope&&i.p(d(r,o,e,null),u(r,o,null)),n&&!e.style||S(t,"style",o.style)},i(e){n||(ce(i,e),n=!0)},o(e){ue(i,e),n=!1},d(e){e&&$(t),i&&i.d(e)}}}function Ed(e,t,n){let{style:r=""}=t,{$$slots:i={},$$scope:o}=t;return e.$set=(e=>{"style"in e&&n("style",r=e.style),"$$scope"in e&&n("$$scope",o=e.$$scope)}),{style:r,$$slots:i,$$scope:o}}class Cd extends be{constructor(e){super(),ye(this,e,Ed,kd,s,["style"])}}var Ad=Ee(function(e,t){e.exports=function(){var e=Object.prototype,t=e.hasOwnProperty;function n(e,n){return t.call(e,n)}var r={},i=/([a-z\d])([A-Z])/g;function o(e){return e in r||(r[e]=e.replace(i,"$1-$2").toLowerCase()),r[e]}var a=/-(\w)/g;function s(e){return e.replace(a,l)}function l(e,t){return t?t.toUpperCase():""}function c(e){return e.length?l(0,e.charAt(0))+e.slice(1):""}var u=String.prototype,d=u.startsWith||function(e){return 0===this.lastIndexOf(e,0)};function h(e,t){return d.call(e,t)}var f=u.endsWith||function(e){return this.substr(-e.length)===e};function p(e,t){return f.call(e,t)}var g=Array.prototype,m=function(e,t){return~this.indexOf(e,t)},v=u.includes||m,y=g.includes||m;function x(e,t){return e&&(M(e)?v:y).call(e,t)}var b=g.findIndex||function(e){for(var t=arguments,n=0;n=1}var S=e.toString;function T(e){return S.call(e).match(/^\[object (NodeList|HTMLCollection)\]$/)}function D(e){return"boolean"==typeof e}function M(e){return"string"==typeof e}function N(e){return"number"==typeof e}function O(e){return N(e)||M(e)&&!isNaN(e-parseFloat(e))}function P(e){return!($(e)?e.length:k(e)&&Object.keys(e).length)}function L(e){return void 0===e}function F(e){return D(e)?e:"true"===e||"1"===e||""===e||"false"!==e&&"0"!==e&&e}function R(e){var t=Number(e);return!isNaN(t)&&t}function z(e){return parseFloat(e)||0}function B(e){return I(e)||C(e)||A(e)?e:T(e)||j(e)?e[0]:$(e)?B(e[0]):null}function H(e){return I(e)?[e]:T(e)?g.slice.call(e):$(e)?e.map(B).filter(Boolean):j(e)?e.toArray():[]}function V(e){return $(e)?e:M(e)?e.split(/,(?![^(]*\))/).map(function(e){return O(e)?R(e):F(e.trim())}):[e]}function W(e){return e?p(e,"ms")?z(e):1e3*z(e):0}function U(e,t){return e===t||k(e)&&k(t)&&Object.keys(e).length===Object.keys(t).length&&K(e,function(e,n){return e===t[n]})}function Y(e,t,n){return e.replace(new RegExp(t+"|"+n,"mg"),function(e){return e===t?n:t})}var q=Object.assign||function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];e=Object(e);for(var i=0;ii?1:i>r?-1:0})}function G(e,t){var n=new Set;return e.filter(function(e){var r=e[t];return!n.has(r)&&(n.add(r)||!0)})}function X(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),Math.min(Math.max(R(e)||0,t),n)}function Z(){}function ee(e,t){return e.leftt.left&&e.topt.top}function te(e,t){return e.x<=t.right&&e.x>=t.left&&e.y<=t.bottom&&e.y>=t.top}var ne={ratio:function(e,t,n){var r,i="width"===t?"height":"width";return(r={})[i]=e[t]?Math.round(n*e[i]/e[t]):e[i],r[t]=n,r},contain:function(e,t){var n=this;return K(e=q({},e),function(r,i){return e=e[i]>t[i]?n.ratio(e,i,t[i]):e}),e},cover:function(e,t){var n=this;return K(e=this.contain(e,t),function(r,i){return e=e[i]+~-]/,Ee=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g;function Ce(e){return M(e)&&e.match(ke)}var Ae=/.*?[^\\](?:,|$)/g,je=Element.prototype,Ie=je.matches||je.webkitMatchesSelector||je.msMatchesSelector;function Se(e,t){return H(e).some(function(e){return Ie.call(e,t)})}var Te=je.closest||function(e){var t=this;do{if(Se(t,e))return t;t=t.parentNode}while(t&&1===t.nodeType)};function De(e,t){return h(t,">")&&(t=t.slice(1)),I(e)?Te.call(e,t):H(e).map(function(e){return De(e,t)}).filter(Boolean)}function Me(e,t){var n=[];for(e=B(e);(e=e.parentNode)&&1===e.nodeType;)Se(e,t)&&n.push(e);return n}var Ne=window.CSS&&CSS.escape||function(e){return e.replace(/([^\x7f-\uFFFF\w-])/g,function(e){return"\\"+e})};function Oe(e){return M(e)?Ne.call(null,e):""}var Pe={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Le(e){return H(e).some(function(e){return Pe[e.tagName.toLowerCase()]})}function Fe(e){return H(e).some(function(e){return e.offsetWidth||e.offsetHeight||e.getClientRects().length})}var Re="input,select,textarea,button";function ze(e){return H(e).some(function(e){return Se(e,Re)})}function Be(e,t){return H(e).filter(function(e){return Se(e,t)})}function He(e,t){return M(t)?Se(e,t)||De(e,t):e===t||(A(t)?t.documentElement:B(t)).contains(B(e))}function Ve(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Qe(e),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];return r=Xe(r),a.length>1&&(a=function(e){return function(t){return $(t.detail)?e.apply(void 0,[t].concat(t.detail)):e(t)}}(a)),o&&(a=function(e,t,n){var r=this;return function(i){e.forEach(function(e){var o=">"===t[0]?$e(t,e).reverse().filter(function(e){return He(i.target,e)})[0]:De(i.target,t);o&&(i.delegate=e,i.current=o,n.call(r,i))})}}(r,o,a)),s&&s.self&&(a=function(e){return function(t){if(t.target===t.currentTarget||t.target===t.current)return e.call(null,t)}}(a)),s=Ke(s),i.split(" ").forEach(function(e){return r.forEach(function(t){return t.addEventListener(e,a,s)})}),function(){return We(r,i,a,s)}}function We(e,t,n,r){void 0===r&&(r=!1),r=Ke(r),e=Xe(e),t.split(" ").forEach(function(t){return e.forEach(function(e){return e.removeEventListener(t,n,r)})})}function Ue(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Qe(e),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=Ve(r,i,o,function(e){var t=!l||l(e);t&&(c(),a(e,t))},s);return c}function Ye(e,t,n){return Xe(e).reduce(function(e,r){return e&&r.dispatchEvent(qe(t,!0,!0,n))},!0)}function qe(e,t,n,r){if(void 0===t&&(t=!0),void 0===n&&(n=!1),M(e)){var i=document.createEvent("CustomEvent");i.initCustomEvent(e,t,n,r),e=i}return e}function Qe(e){return _(e[2])&&e.splice(2,0,!1),e}function Ke(e){return e&&se&&!D(e)?!!e.capture:e}function Je(e){return e&&"addEventListener"in e}function Ge(e){return Je(e)?e:B(e)}function Xe(e){return $(e)?e.map(Ge).filter(Boolean):M(e)?$e(e):Je(e)?[e]:H(e)}function Ze(e){return"touch"===e.pointerType||!!e.touches}function et(e,t){void 0===t&&(t="client");var n=e.touches,r=e.changedTouches,i=n&&n[0]||r&&r[0]||e,o=i[t+"X"],a=i[t+"Y"];return{x:o,y:a}}var tt="Promise"in window?window.Promise:ot,nt=function(){var e=this;this.promise=new tt(function(t,n){e.reject=n,e.resolve=t})},rt=2,it="setImmediate"in window?setImmediate:setTimeout;function ot(e){this.state=rt,this.value=void 0,this.deferred=[];var t=this;try{e(function(e){t.resolve(e)},function(e){t.reject(e)})}catch(e){t.reject(e)}}ot.reject=function(e){return new ot(function(t,n){n(e)})},ot.resolve=function(e){return new ot(function(t,n){t(e)})},ot.all=function(e){return new ot(function(t,n){var r=[],i=0;function o(n){return function(o){r[n]=o,(i+=1)===e.length&&t(r)}}0===e.length&&t(r);for(var a=0;a=200&&o.status<300||304===o.status?n(o):r(q(Error(o.statusText),{xhr:o,status:o.status}))}),Ve(o,"error",function(){return r(q(Error("Network Error"),{xhr:o}))}),Ve(o,"timeout",function(){return r(q(Error("Network Timeout"),{xhr:o}))}),o.send(i.data)})}function lt(e,t,n){return new tt(function(r,i){var o=new Image;o.onerror=i,o.onload=function(){return r(o)},n&&(o.sizes=n),t&&(o.srcset=t),o.src=e})}function ct(e){if("loading"===document.readyState)var t=Ve(document,"DOMContentLoaded",function(){t(),e()});else e()}function ut(e,t){return t?H(e).indexOf(B(t)):H((e=B(e))&&e.parentNode.children).indexOf(e)}function dt(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=(t=H(t)).length;return e=O(e)?R(e):"next"===e?n+1:"previous"===e?n-1:ut(t,e),r?X(e,0,i-1):(e%=i)<0?e+i:e}function ht(e){return(e=Ct(e)).innerHTML="",e}function ft(e,t){return e=Ct(e),L(t)?e.innerHTML:pt(e.hasChildNodes()?ht(e):e,t)}function pt(e,t){return e=Ct(e),vt(t,function(t){return e.appendChild(t)})}function gt(e,t){return e=Ct(e),vt(t,function(t){return e.parentNode.insertBefore(t,e)})}function mt(e,t){return e=Ct(e),vt(t,function(t){return e.nextSibling?gt(e.nextSibling,t):pt(e.parentNode,t)})}function vt(e,t){return(e=M(e)?kt(e):e)?"length"in e?H(e).map(t):t(e):null}function yt(e){H(e).map(function(e){return e.parentNode&&e.parentNode.removeChild(e)})}function xt(e,t){for(t=B(gt(e,t));t.firstChild;)t=t.firstChild;return pt(t,e),t}function bt(e,t){return H(H(e).map(function(e){return e.hasChildNodes?xt(H(e.childNodes),t):pt(e,t)}))}function wt(e){H(e).map(function(e){return e.parentNode}).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(e){gt(e,e.childNodes),yt(e)})}at.resolve=function(e){var t=this;if(t.state===rt){if(e===t)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=e&&e.then;if(null!==e&&k(e)&&_(r))return void r.call(e,function(e){n||t.resolve(e),n=!0},function(e){n||t.reject(e),n=!0})}catch(e){return void(n||t.reject(e))}t.state=0,t.value=e,t.notify()}},at.reject=function(e){if(this.state===rt){if(e===this)throw new TypeError("Promise settled with itself.");this.state=1,this.value=e,this.notify()}},at.notify=function(){var e=this;it(function(){if(e.state!==rt)for(;e.deferred.length;){var t=e.deferred.shift(),n=t[0],r=t[1],i=t[2],o=t[3];try{0===e.state?_(n)?i(n.call(void 0,e.value)):i(e.value):1===e.state&&(_(r)?i(r.call(void 0,e.value)):o(e.value))}catch(e){o(e)}}})},at.then=function(e,t){var n=this;return new ot(function(r,i){n.deferred.push([e,t,r,i]),n.notify()})},at.catch=function(e){return this.then(void 0,e)};var $t=/^\s*<(\w+|!)[^>]*>/,_t=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function kt(e){var t=_t.exec(e);if(t)return document.createElement(t[1]);var n=document.createElement("div");return $t.test(e)?n.insertAdjacentHTML("beforeend",e.trim()):n.textContent=e,n.childNodes.length>1?H(n.childNodes):n.firstChild}function Et(e,t){if(e&&1===e.nodeType)for(t(e),e=e.firstElementChild;e;)Et(e,t),e=e.nextElementSibling}function Ct(e,t){return M(e)?jt(e)?B(kt(e)):we(e,t):B(e)}function At(e,t){return M(e)?jt(e)?H(kt(e)):$e(e,t):H(e)}function jt(e){return"<"===e[0]||e.match(/^\s*0;)t[n]=arguments[n+1];Ot(e,t,"add")}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];Ot(e,t,"remove")}function Tt(e,t){re(e,"class",function(e){return(e||"").replace(new RegExp("\\b"+t+"\\b","g"),"")})}function Dt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];t[0]&&St(e,t[0]),t[1]&&It(e,t[1])}function Mt(e,t){return t&&H(e).some(function(e){return e.classList.contains(t.split(" ")[0])})}function Nt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(t.length){var r=M(Q(t=Pt(t)))?[]:t.pop();t=t.filter(Boolean),H(e).forEach(function(e){for(var n=e.classList,i=0;ie[f]){var p=c[t]/2,g="center"===r[o]?-u[t]/2:0;return"center"===n[o]&&(m(p,g)||m(-p,-g))||m(a,h)}function m(n,r){var a=d[s]+n+r-2*i[o];if(a>=e[s]&&a+c[t]<=e[f])return d[s]=a,["element","target"].forEach(function(e){l[e][o]=n?l[e][o]===en[t][1]?en[t][2]:en[t][1]:l[e][o]}),!0}})})}return nn(e,d),l}function nn(e,t){if(e=B(e),!t)return rn(e);var n=nn(e),r=Rt(e,"position");["left","top"].forEach(function(i){if(i in t){var o=Rt(e,i);Rt(e,i,t[i]-n[i]+z("absolute"===r&&"auto"===o?on(e)[i]:o))}})}function rn(e){if(!(e=B(e)))return{};var t,n,r=bn(e),i=r.pageYOffset,o=r.pageXOffset;if(C(e)){var a=e.innerHeight,s=e.innerWidth;return{top:i,left:o,height:a,width:s,bottom:i+a,right:o+s}}Fe(e)||"none"!==Rt(e,"display")||(t=re(e,"style"),n=re(e,"hidden"),re(e,{style:(t||"")+";display:block !important;",hidden:null}));var l=e.getBoundingClientRect();return L(t)||re(e,{style:t,hidden:n}),{height:l.height,width:l.width,top:l.top+i,left:l.left+o,bottom:l.bottom+i,right:l.right+o}}function on(e){var t=(e=B(e)).offsetParent||function(e){return wn(e).documentElement}(e),n=nn(t),r=["top","left"].reduce(function(r,i){var o=c(i);return r[i]-=n[i]+z(Rt(e,"margin"+o))+z(Rt(t,"border"+o+"Width")),r},nn(e)),i=r.top,o=r.left;return{top:i,left:o}}var an=ln("height"),sn=ln("width");function ln(e){var t=c(e);return function(n,r){if(n=B(n),L(r)){if(C(n))return n["inner"+t];if(A(n)){var i=n.documentElement;return Math.max(i["offset"+t],i["scroll"+t])}return(r="auto"===(r=Rt(n,e))?n["offset"+t]:z(r)||0)-cn(e,n)}Rt(n,e,r||0===r?+r+cn(e,n)+"px":"")}}function cn(e,t,n){return void 0===n&&(n="border-box"),Rt(t,"boxSizing")===n?en[e].slice(1).map(c).reduce(function(e,n){return e+z(Rt(t,"padding"+n))+z(Rt(t,"border"+n+"Width"))},0):0}function un(e,t,n,r){K(en,function(i,o){var a=i[0],s=i[1],l=i[2];t[a]===l?e[s]+=n[o]*r:"center"===t[a]&&(e[s]+=n[o]*r/2)})}function dn(e){var t=/left|center|right/,n=/top|center|bottom/;return 1===(e=(e||"").split(" ")).length&&(e=t.test(e[0])?e.concat(["center"]):n.test(e[0])?["center"].concat(e):["center","center"]),{x:t.test(e[0])?e[0]:"center",y:n.test(e[1])?e[1]:"center"}}function hn(e,t,n){var r=(e||"").split(" "),i=r[0],o=r[1];return{x:i?z(i)*(p(i,"%")?t/100:1):0,y:o?z(o)*(p(o,"%")?n/100:1):0}}function fn(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}}function pn(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!Fe(e))return!1;var r=bn(e=B(e)),i=e.getBoundingClientRect(),o={top:-t,left:-n,bottom:t+an(r),right:n+sn(r)};return ee(i,o)||te({x:i.left,y:i.top},o)}function gn(e,t){if(void 0===t&&(t=0),!Fe(e))return 0;var n=bn(e=B(e)),r=wn(e),i=e.offsetHeight+t,o=vn(e),a=o[0],s=an(n),l=s+Math.min(0,a-s),c=Math.max(0,s-(an(r)+t-(a+i)));return X((l+n.pageYOffset-a)/((l+(i-(c100&&e.positions.splice(0,o),e.positions.push({time:r,x:n.pageX,y:n.pageY}),e.positions.length>5&&e.positions.shift(),t=!1},5),t=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(e){if(this.positions.length<2)return!1;var t=nn(e),n=Q(this.positions),r=this.positions,i=r[0];if(t.left<=n.x&&n.x<=t.right&&t.top<=n.y&&n.y<=t.bottom)return!1;var o=[[{x:t.left,y:t.top},{x:t.right,y:t.bottom}],[{x:t.right,y:t.top},{x:t.left,y:t.bottom}]];return t.right<=n.x||(t.left>=n.x?(o[0].reverse(),o[1].reverse()):t.bottom<=n.y?o[0].reverse():t.top>=n.y&&o[1].reverse()),!!o.reduce(function(e,t){return e+(jn(i,t[0])jn(n,t[1]))},0)}};var In={};function Sn(e,t,n){return In.computed(_(e)?e.call(n,n):e,_(t)?t.call(n,n):t)}function Tn(e,t){return e=e&&!$(e)?[e]:e,t?e?e.concat(t):$(t)?t:[t]:e}function Dn(e,t,r){var i={};if(_(t)&&(t=t.options),t.extends&&(e=Dn(e,t.extends,r)),t.mixins)for(var o=0,a=t.mixins.length;o *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(e,t){var n=e.targets;return At(n,t)}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(e){e.preventDefault(),this.toggle(ut(At(this.targets+" "+this.$props.toggle,this.$el),e.current))}}],connected:function(){if(!1!==this.active){var e=this.items[Number(this.active)];e&&!Mt(e,this.clsOpen)&&this.toggle(e,!1)}},update:function(){var e=this;this.items.forEach(function(t){return e._toggle(Ct(e.content,t),Mt(t,e.clsOpen))});var t=!this.collapsible&&!Mt(this.items,this.clsOpen)&&this.items[0];t&&this.toggle(t,!1)},methods:{toggle:function(e,t){var n=this,r=dt(e,this.items),i=Be(this.items,"."+this.clsOpen);(e=this.items[r])&&[e].concat(!this.multiple&&!x(i,e)&&i||[]).forEach(function(r){var o=r===e,a=o&&!Mt(r,n.clsOpen);if(a||!o||n.collapsible||!(i.length<2)){Nt(r,n.clsOpen,a);var s=r._wrapper?r._wrapper.firstElementChild:Ct(n.content,r);r._wrapper||(r._wrapper=xt(s,"
"),re(r._wrapper,"hidden",a?"":null)),n._toggle(s,!0),n.toggleElement(r._wrapper,a,t).then(function(){Mt(r,n.clsOpen)===a&&(a||n._toggle(s,!1),r._wrapper=null,wt(s))})}})}}},Vn={mixins:[zn,Bn],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:q({opacity:0},Bn.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(e){e.preventDefault(),this.close()}}],methods:{close:function(){var e=this;this.toggleElement(this.$el).then(function(){return e.$destroy(!0)})}}};function Wn(e){ct(function(){var t;e.update(),Ve(window,"load resize",function(){return e.update(null,"resize")}),Ve(document,"loadedmetadata load",function(t){var n=t.target;return e.update(n,"resize")},!0),Ve(window,"scroll",function(n){if(!t){t=!0,$n.write(function(){return t=!1});var r=n.target;e.update(1!==r.nodeType?document.body:r,n.type)}},{passive:!0,capture:!0});var n,r=0;Ve(document,"animationstart",function(e){var t=e.target;(Rt(t,"animationName")||"").match(/^uk-.*(left|right)/)&&(r++,Rt(document.body,"overflowX","hidden"),setTimeout(function(){--r||Rt(document.body,"overflowX","")},W(Rt(t,"animationDuration"))+100))},!0),Ve(document,he,function(e){if(n&&n(),Ze(e)){var t=et(e),r="tagName"in e.target?e.target:e.target.parentNode;n=Ue(document,pe+" "+ve,function(e){var n=et(e),i=n.x,o=n.y;(r&&i&&Math.abs(t.x-i)>100||o&&Math.abs(t.y-o)>100)&&setTimeout(function(){var e,n,a,s;Ye(r,"swipe"),Ye(r,"swipe"+(e=t.x,n=t.y,a=i,s=o,Math.abs(e-a)>=Math.abs(n-s)?e-a>0?"Left":"Right":n-s>0?"Up":"Down"))})}),"touchstart"===he&&(Rt(document.body,"cursor","pointer"),Ue(document,pe+" "+ve,function(){return setTimeout(function(){return Rt(document.body,"cursor","")},50)}))}},{passive:!0})})}var Un,Yn={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(e){var t=e.autoplay;return"inview"===t}},connected:function(){this.inView&&!ie(this.$el,"preload")&&(this.$el.preload="none"),this.player=new On(this.$el),this.automute&&this.player.mute()},update:{read:function(){return!!this.player&&{visible:Fe(this.$el)&&"hidden"!==Rt(this.$el,"visibility"),inView:this.inView&&pn(this.$el)}},write:function(e){var t=e.visible,n=e.inView;!t||this.inView&&!n?this.player.pause():(!0===this.autoplay||this.inView&&n)&&this.player.play()},events:["resize","scroll"]}},qn={mixins:[zn,Yn],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var e=this.$el,t=e.parentNode,n=t.offsetHeight,r=t.offsetWidth,i=ne.cover({width:this.width||e.naturalWidth||e.videoWidth||e.clientWidth,height:this.height||e.naturalHeight||e.videoHeight||e.clientHeight},{width:r+(r%2?1:0),height:n+(n%2?1:0)});return!(!i.width||!i.height)&&i},write:function(e){var t=e.height,n=e.width;Rt(this.$el,{height:t,width:n})},events:["resize"]}},Qn={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(le?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(e){var t=e.pos;return(t+(x(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(e,t,n){var r;Tt(e,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),Rt(e,{top:"",left:""});var i=this.offset,o=this.getAxis();O(i)||(r=Ct(i),i=r?nn(r)["x"===o?"left":"top"]-nn(t)["x"===o?"right":"bottom"]:0);var a=tn(e,t,"x"===o?fn(this.dir)+" "+this.align:this.align+" "+fn(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-i:i):" "+("top"===this.dir?-i:i),null,this.flip,n).target,s=a.x,l=a.y;this.dir="x"===o?s:l,this.align="x"===o?l:s,Nt(e,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Kn={mixins:[Qn,Bn],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},computed:{boundary:function(e,t){var n=e.boundary;return ye(n,t)},clsDrop:function(e){var t=e.clsDrop;return t||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new An},connected:function(){It(this.$el,this.clsDrop);var e=this.$props,t=e.toggle;this.toggle=t&&this.$create("toggle",ye(t,this.$el),{target:this.$el,mode:this.mode}),!this.toggle&&Ye(this.$el,"updatearia")},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(e){e.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(e){var t=e.defaultPrevented,n=e.current.hash;t||!n||He(n,this.$el)||this.hide(!1)}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(e,t){e.preventDefault(),this.isToggled()?this.hide(!1):this.show(t,!1)}},{name:ge,filter:function(){return x(this.mode,"hover")},handler:function(e){Ze(e)||(Un&&Un!==this&&Un.toggle&&x(Un.toggle.mode,"hover")&&!He(e.target,Un.toggle.$el)&&!te({x:e.pageX,y:e.pageY},nn(Un.$el))&&Un.hide(!1),e.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(e,t){t&&!x(t.target,this.$el)||(e.preventDefault(),this.show(t||this.toggle))}},{name:"togglehide "+me,handler:function(e,t){Ze(e)||t&&!x(t.target,this.$el)||(e.preventDefault(),this.toggle&&x(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers(),Zt.cancel(this.$el),this.position()}},{name:"show",self:!0,handler:function(){var e=this;this.tracker.init(),Ye(this.$el,"updatearia");var t=Jn(document,"click",function(t){var n=t.defaultPrevented,r=t.target;n||He(r,e.$el)||e.toggle&&He(r,e.toggle.$el)||e.hide(!1)});Ue(this.$el,"hide",t,{self:!0})}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(e){var t=e.target;this.$el===t?(Un=this.isActive()?null:Un,Ye(this.$el,"updatearia"),this.tracker.cancel()):Un=null===Un&&He(t,this.$el)&&this.isToggled()?this:Un}},{name:"updatearia",self:!0,handler:function(e,t){e.preventDefault(),this.updateAria(this.$el),(t||this.toggle)&&(re((t||this.toggle).$el,"aria-expanded",this.isToggled()),Nt(this.toggle.$el,this.cls,this.isToggled()))}}],update:{write:function(){this.isToggled()&&!Zt.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(e,t){var n=this;void 0===t&&(t=!0);var r=function(){return!n.isToggled()&&n.toggleElement(n.$el,!0)},i=function(){if(n.toggle=e||n.toggle,n.clearTimers(),!n.isActive())if(t&&Un&&Un!==n&&Un.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(Un)){if(!Un.hideTimer)return;Un.hide(!1)}else if(n.isChildOf(Un))Un.clearTimers();else if(Un&&!n.isChildOf(Un)&&!n.isParentOf(Un))for(var i;Un&&Un!==i&&!n.isChildOf(Un);)i=Un,Un.hide(!1);t&&n.delayShow?n.showTimer=setTimeout(r,n.delayShow):r(),Un=n}};e&&this.toggle&&e.$el!==this.toggle.$el?(Ue(this.$el,"hide",i),this.hide(!1)):i()},hide:function(e){var t=this;void 0===e&&(e=!0);var n=function(){return t.toggleNow(t.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),e&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):e&&this.delayHide?this.hideTimer=setTimeout(n,this.delayHide):n()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return Un===this},isChildOf:function(e){return e&&e!==this&&He(this.$el,e.$el)},isParentOf:function(e){return e&&e!==this&&He(e.$el,this.$el)},position:function(){Tt(this.$el,this.clsDrop+"-(stack|boundary)"),Rt(this.$el,{top:"",left:"",display:"block"}),Nt(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var e=nn(this.boundary),t=this.boundaryAlign?e:nn(this.toggle.$el);if("justify"===this.align){var n="y"===this.getAxis()?"width":"height";Rt(this.$el,n,t[n])}else this.$el.offsetWidth>Math.max(e.right-t.left,t.right-e.left)&&It(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),Rt(this.$el,"display","")}}};function Jn(e,t,n){var r=Ue(e,t,function(){return r=Ve(e,t,n)},!0);return function(){return r()}}var Gn={extends:Kn},Xn={mixins:[zn],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(e,t){return Ct(Re,t)},state:function(){return this.input.nextElementSibling},target:function(e,t){var n=e.target;return n&&(!0===n&&this.input.parentNode===t&&this.input.nextElementSibling||ye(n,t))}},update:function(){var e=this.target,t=this.input;if(e){var n,r=ze(e)?"value":"textContent",i=e[r],o=t.files&&t.files[0]?t.files[0].name:Se(t,"select")&&(n=At("option",t).filter(function(e){return e.selected})[0])?n.textContent:t.value;i!==o&&(e[r]=o)}},events:[{name:"change",handler:function(){this.$emit()}},{name:"reset",el:function(){return De(this.$el,"form")},handler:function(){this.$emit()}}]},Zn={update:{read:function(e){var t=pn(this.$el);if(!t||e.isInView===t)return!1;e.isInView=t},write:function(){this.$el.src=this.$el.src},events:["scroll","resize"]}},er={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},update:{read:function(e){var t=this.$el.children;if(!t.length||!Fe(this.$el))return e.rows=[[]];e.rows=tr(t),e.stacks=!e.rows.some(function(e){return e.length>1})},write:function(e){var t=this,n=e.rows;n.forEach(function(e,n){return e.forEach(function(e,r){Nt(e,t.margin,0!==n),Nt(e,t.firstColumn,0===r)})})},events:["resize"]}};function tr(e){for(var t=[[]],n=0;n=0;o--){var a=t[o];if(!a[0]){a.push(r);break}var s=void 0;if(a[0].offsetParent===r.offsetParent?s=nr(a[0]):(i=nr(r,!0),s=nr(a[0],!0)),i.top>=s.bottom-1&&i.top!==s.top){t.push([r]);break}if(i.bottom>s.top){if(i.left=0;a--)for(var s=r;s=t.offsetHeight)&&Rt(t,"height",n)})},order:5,events:["resize"]}]}:{},ar={mixins:[or],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(e,t){var n=e.target;return At(n,t)}},update:{read:function(){return{rows:(this.row?tr(this.elements):[this.elements]).map(sr)}},write:function(e){var t=e.rows;t.forEach(function(e){var t=e.heights,n=e.elements;return n.forEach(function(e,n){return Rt(e,"minHeight",t[n])})})},events:["resize"]}};function sr(e){var t;if(e.length<2)return{heights:[""],elements:e};var n=lr(e),r=n.heights,i=n.max,o=e.some(function(e){return e.style.minHeight}),a=e.some(function(e,t){return!e.style.minHeight&&r[t]0&&o1&&(e=n,this.src=e[0],this.icon=e[1])}this.svg=this.getSvg().then(function(e){return t.applyAttributes(e),t.svgEl=function(e,t){if(Le(t)||"CANVAS"===t.tagName){re(t,"hidden",!0);var n=t.nextElementSibling;return mr(e,n)?n:mt(t,e)}var r=t.lastElementChild;return mr(e,r)?r:pt(t,e)}(e,t.$el)},Z)},disconnected:function(){var e=this;Le(this.$el)&&re(this.$el,"hidden",null),this.svg&&this.svg.then(function(t){return(!e._connected||t!==e.svgEl)&&yt(t)},Z),this.svg=this.svgEl=null},update:{read:function(){return!!(this.strokeAnimation&&this.svgEl&&Fe(this.svgEl))},write:function(){var e,t;e=this.svgEl,(t=gr(e))&&e.style.setProperty("--uk-animation-stroke",t)},type:["resize"]},methods:{getSvg:function(){var e,t=this;return(e=this.src,hr[e]?hr[e]:hr[e]=new tt(function(t,n){e?h(e,"data:")?t(decodeURIComponent(e.split(",")[1])):st(e).then(function(e){return t(e.response)},function(){return n("SVG not found.")}):n()})).then(function(e){return function(e,t){return t&&x(e,"";fr.lastIndex=0}return pr[e][t]}(e,t)||e),(e=Ct(e.substr(e.indexOf("/g,pr={};function gr(e){return Math.ceil(Math.max.apply(Math,At("[stroke]",e).map(function(e){return e.getTotalLength&&e.getTotalLength()||0}).concat([0])))}function mr(e,t){return re(e,"data-svg")===re(t,"data-svg")}var vr={},yr={spinner:'',totop:'',marker:'',"close-icon":'',"close-large":'',"navbar-toggle-icon":'',"overlay-icon":'',"pagination-next":'',"pagination-previous":'',"search-icon":'',"search-large":'',"search-navbar":'',"slidenav-next":'',"slidenav-next-large":'',"slidenav-previous":'',"slidenav-previous-large":''},xr={install:function(e){e.icon.add=function(t,n){var r,i=M(t)?((r={})[t]=n,r):t;K(i,function(e,t){yr[t]=e,delete vr[t]}),e._initialized&&Et(document.body,function(t){return K(e.getComponents(t),function(e){e.$options.isIcon&&e.icon in i&&e.$reset()})})}},extends:dr,args:"icon",props:["icon"],data:{include:["focusable"]},isIcon:!0,beforeConnect:function(){It(this.$el,"uk-icon")},methods:{getSvg:function(){var e=function(e){return yr[e]?(vr[e]||(vr[e]=Ct(yr[e].trim())),vr[e].cloneNode(!0)):null}(function(e){return le?Y(Y(e,"left","right"),"previous","next"):e}(this.icon));return e?tt.resolve(e):tt.reject("Icon not found.")}}},br={args:!1,extends:xr,data:function(e){return{icon:o(e.constructor.options.name)}},beforeConnect:function(){It(this.$el,this.$name)}},wr={extends:br,beforeConnect:function(){It(this.$el,"uk-slidenav")},computed:{icon:function(e,t){var n=e.icon;return Mt(t,"uk-slidenav-large")?n+"-large":n}}},$r={extends:br,computed:{icon:function(e,t){var n=e.icon;return Mt(t,"uk-search-icon")&&Me(t,".uk-search-large").length?"search-large":Me(t,".uk-search-navbar").length?"search-navbar":n}}},_r={extends:br,computed:{icon:function(){return"close-"+(Mt(this.$el,"uk-close-large")?"large":"icon")}}},kr={extends:br,connected:function(){var e=this;this.svg.then(function(t){return 1!==e.ratio&&Rt(Ct("circle",t),"strokeWidth",1/e.ratio)},Z)}},Er={args:"dataSrc",props:{dataSrc:String,dataSrcset:Boolean,sizes:String,width:Number,height:Number,offsetTop:String,offsetLeft:String,target:String},data:{dataSrc:"",dataSrcset:!1,sizes:!1,width:!1,height:!1,offsetTop:"50vh",offsetLeft:0,target:!1},computed:{cacheKey:function(e){var t=e.dataSrc;return this.$name+"."+t},width:function(e){var t=e.width,n=e.dataWidth;return t||n},height:function(e){var t=e.height,n=e.dataHeight;return t||n},sizes:function(e){var t=e.sizes,n=e.dataSizes;return t||n},isImg:function(e,t){return Mr(t)},target:{get:function(e){var t=e.target;return[this.$el].concat(xe(t,this.$el))},watch:function(){this.observe()}},offsetTop:function(e){var t=e.offsetTop;return yn(t,"height")},offsetLeft:function(e){var t=e.offsetLeft;return yn(t,"width")}},connected:function(){var e,t,n,r;Ir[this.cacheKey]?Cr(this.$el,Ir[this.cacheKey]||this.dataSrc,this.dataSrcset,this.sizes):this.isImg&&this.width&&this.height&&Cr(this.$el,(e=this.width,t=this.height,(n=this.sizes)&&(r=ne.ratio({width:e,height:t},"width",yn(jr(n))),e=r.width,t=r.height),'data:image/svg+xml;utf8,')),this.observer=new Ln(this.load,{rootMargin:this.offsetTop+"px "+this.offsetLeft+"px"}),requestAnimationFrame(this.observe)},disconnected:function(){this.observer.disconnect()},update:{read:function(e){var t=this,n=e.image;if(n||"complete"!==document.readyState||this.load(this.observer.takeRecords()),this.isImg)return!1;n&&n.then(function(e){return e&&""!==e.currentSrc&&Cr(t.$el,Nr(e))})},write:function(e){if(this.dataSrcset&&1!==window.devicePixelRatio){var t=Rt(this.$el,"backgroundSize");(t.match(/^(auto\s?)+$/)||z(t)===e.bgSize)&&(e.bgSize=(n=this.dataSrcset,r=this.sizes,i=yn(jr(r)),(o=(n.match(Dr)||[]).map(z).sort(function(e,t){return e-t})).filter(function(e){return e>=i})[0]||o.pop()||""),Rt(this.$el,"backgroundSize",e.bgSize+"px"))}var n,r,i,o},events:["resize"]},methods:{load:function(e){var t=this;e.some(function(e){return L(e.isIntersecting)||e.isIntersecting})&&(this._data.image=lt(this.dataSrc,this.dataSrcset,this.sizes).then(function(e){return Cr(t.$el,Nr(e),e.srcset,e.sizes),Ir[t.cacheKey]=Nr(e),e},Z),this.observer.disconnect())},observe:function(){var e=this;!this._data.image&&this._connected&&this.target.forEach(function(t){return e.observer.observe(t)})}}};function Cr(e,t,n,r){if(Mr(e))r&&(e.sizes=r),n&&(e.srcset=n),t&&(e.src=t);else if(t){var i=!x(e.style.backgroundImage,t);i&&(Rt(e,"backgroundImage","url("+Oe(t)+")"),Ye(e,qe("load",!1)))}}var Ar=/\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;function jr(e){var t,n;for(Ar.lastIndex=0;t=Ar.exec(e);)if(!t[1]||window.matchMedia(t[1]).matches){n=t[2],t=h(n,"calc")?n.substring(5,n.length-1).replace(Sr,function(e){return yn(e)}).replace(/ /g,"").match(Tr).reduce(function(e,t){return e+ +t},0):n;break}return t||"100vw"}var Ir,Sr=/\d+(?:\w+|%)/g,Tr=/[+-]?(\d+)/g,Dr=/\s+\d+w\s*(?:,|$)/g;function Mr(e){return"IMG"===e.tagName}function Nr(e){return e.currentSrc||e.src}try{(Ir=window.sessionStorage||{}).__test__=1,delete Ir.__test__}catch(e){Ir={}}var Or={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=function(e){if(M(e))if("@"===e[0]){var t="breakpoint-"+e.substr(1);e=z(Vt(t))}else if(isNaN(e))return e;return!(!e||isNaN(e))&&"(min-width: "+e+"px)"}(this.media);return!e||window.matchMedia(e).matches}}},Pr={mixins:[zn,Or],props:{fill:String},data:{fill:"",clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(e){var t=e.fill;return t||Vt("leader-fill-content")}},connected:function(){var e;e=bt(this.$el,''),this.wrapper=e[0]},disconnected:function(){wt(this.wrapper.childNodes)},update:{read:function(e){var t=e.changed,n=e.width,r=n;return{width:n=Math.floor(this.$el.offsetWidth/2),fill:this.fill,changed:t||r!==n,hide:!this.matchMedia}},write:function(e){Nt(this.wrapper,this.clsHide,e.hide),e.changed&&(e.changed=!1,re(this.wrapper,this.attrFill,new Array(e.width).join(e.fill)))},events:["resize"]}},Lr={props:{container:Boolean},data:{container:!0},computed:{container:function(e){var t=e.container;return!0===t&&this.$container||t&&Ct(t)}}},Fr=[],Rr={mixins:[zn,Lr,Bn],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(e,t){var n=e.selPanel;return Ct(n,t)},transitionElement:function(){return this.panel},bgClose:function(e){var t=e.bgClose;return t&&this.panel}},beforeDisconnect:function(){this.isToggled()&&this.toggleNow(this.$el,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(e){e.defaultPrevented||(e.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(e){if(x(Fr,this))return!1;!this.stack&&Fr.length?(tt.all(Fr.map(function(e){return e.hide()})).then(this.show),e.preventDefault()):Fr.push(this)}},{name:"show",self:!0,handler:function(){var e=this;sn(window)-sn(document)&&this.overlay&&Rt(document.body,"overflowY","scroll"),It(document.documentElement,this.clsPage),this.bgClose&&Ue(this.$el,"hide",Jn(document,"click",function(t){var n=t.defaultPrevented,r=t.target,i=Q(Fr);n||i!==e||i.overlay&&!He(r,i.$el)||He(r,i.panel)||i.hide()}),{self:!0}),this.escClose&&Ue(this.$el,"hide",Ve(document,"keydown",function(t){var n=Q(Fr);27===t.keyCode&&n===e&&(t.preventDefault(),n.hide())}),{self:!0})}},{name:"hidden",self:!0,handler:function(){var e=this;Fr.splice(Fr.indexOf(this),1),Fr.length||Rt(document.body,"overflowY",""),Fr.some(function(t){return t.clsPage===e.clsPage})||St(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.container&&this.$el.parentNode!==this.container?(pt(this.container,this.$el),new tt(function(t){return requestAnimationFrame(function(){return e.show().then(t)})})):this.toggleElement(this.$el,!0,zr(this))},hide:function(){return this.toggleElement(this.$el,!1,zr(this))}}};function zr(e){var t=e.transitionElement,n=e._toggle;return function(e,r){return new tt(function(i,o){return Ue(e,"show hide",function(){e._reject&&e._reject(),e._reject=o,n(e,r);var a=Ue(t,"transitionstart",function(){Ue(t,"transitionend transitioncancel",i,{self:!0}),clearTimeout(s)},{self:!0}),s=setTimeout(function(){a(),i()},W(Rt(t,"transitionDuration")))})})}}var Br={install:function(e){e.modal.dialog=function(t,n){var r=e.modal('
'+t+"
",n);return r.show(),Ve(r.$el,"hidden",function(){return tt.resolve(function(){return r.$destroy(!0)})},{self:!0}),r},e.modal.alert=function(t,n){return n=q({bgClose:!1,escClose:!1,labels:e.modal.labels},n),new tt(function(r){return Ve(e.modal.dialog('
'+(M(t)?t:ft(t))+'
",n).$el,"hide",r)})},e.modal.confirm=function(t,n){return n=q({bgClose:!1,escClose:!0,labels:e.modal.labels},n),new tt(function(r,i){var o=e.modal.dialog('
'+(M(t)?t:ft(t))+'
",n),a=!1;Ve(o.$el,"submit","form",function(e){e.preventDefault(),r(),a=!0,o.hide()}),Ve(o.$el,"hide",function(){a||i()})})},e.modal.prompt=function(t,n,r){return r=q({bgClose:!1,escClose:!0,labels:e.modal.labels},r),new tt(function(i){var o=e.modal.dialog('
",r),a=Ct("input",o.$el);a.value=n;var s=!1;Ve(o.$el,"submit","form",function(e){e.preventDefault(),i(a.value),s=!0,o.hide()}),Ve(o.$el,"hide",function(){s||i(null)})})},e.modal.labels={ok:"Ok",cancel:"Cancel"}},mixins:[Rr],data:{clsPage:"uk-modal-page",selPanel:".uk-modal-dialog",selClose:".uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full"},events:[{name:"show",self:!0,handler:function(){Mt(this.panel,"uk-margin-auto-vertical")?It(this.$el,"uk-flex"):Rt(this.$el,"display","block"),an(this.$el)}},{name:"hidden",self:!0,handler:function(){Rt(this.$el,"display",""),St(this.$el,"uk-flex")}}]},Hr={extends:Hn,data:{targets:"> .uk-parent",toggle:"> a",content:"> ul"}},Vr={mixins:[zn,or],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:Boolean,duration:Number},data:{dropdown:".uk-navbar-nav > li",align:le?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200,forceHeight:!0,selMinHeight:".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle"},computed:{boundary:function(e,t){var n=e.boundary,r=e.boundaryAlign;return!0===n||r?t:n},dropbarAnchor:function(e,t){var n=e.dropbarAnchor;return ye(n,t)},pos:function(e){var t=e.align;return"bottom-"+t},dropdowns:function(e,t){var n=e.dropdown,r=e.clsDrop;return At(n+" ."+r,t)}},beforeConnect:function(){var e=this.$props,t=e.dropbar;this.dropbar=t&&(ye(t,this.$el)||Ct("+ .uk-navbar-dropbar",this.$el)||Ct("
")),this.dropbar&&(It(this.dropbar,"uk-navbar-dropbar"),"slide"===this.dropbarMode&&It(this.dropbar,"uk-navbar-dropbar-slide"))},disconnected:function(){this.dropbar&&yt(this.dropbar)},update:function(){var e=this;this.$create("drop",this.dropdowns.filter(function(t){return!e.getDropdown(t)}),q({},this.$props,{boundary:this.boundary,pos:this.pos,offset:this.dropbar||this.offset}))},events:[{name:"mouseover",delegate:function(){return this.dropdown},handler:function(e){var t=e.current,n=this.getActive();n&&n.toggle&&!He(n.toggle.$el,t)&&!n.tracker.movesTo(n.$el)&&n.hide(!1)}},{name:"mouseleave",el:function(){return this.dropbar},handler:function(){var e=this.getActive();e&&!this.dropdowns.some(function(e){return Se(e,":hover")})&&e.hide()}},{name:"beforeshow",capture:!0,filter:function(){return this.dropbar},handler:function(){this.dropbar.parentNode||mt(this.dropbarAnchor||this.$el,this.dropbar)}},{name:"show",capture:!0,filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=t.dir;this.clsDrop&&It(n,this.clsDrop+"-dropbar"),"bottom"===r&&this.transitionTo(n.offsetHeight+z(Rt(n,"marginTop"))+z(Rt(n,"marginBottom")),n)}},{name:"beforehide",filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=this.getActive();Se(this.dropbar,":hover")&&r&&r.$el===n&&e.preventDefault()}},{name:"hide",filter:function(){return this.dropbar},handler:function(e,t){var n=t.$el,r=this.getActive();(!r||r&&r.$el===n)&&this.transitionTo(0)}}],methods:{getActive:function(){var e=this.dropdowns.map(this.getDropdown).filter(function(e){return e&&e.isActive()}),t=e[0];return t&&x(t.mode,"hover")&&He(t.toggle.$el,this.$el)&&t},transitionTo:function(e,t){var n=this,r=this.dropbar,i=Fe(r)?an(r):0;return Rt(t=i=i||0===r&&t>0||i-r<=o&&t<0)&&e.cancelable&&e.preventDefault()}}},{name:"show",self:!0,handler:function(){"reveal"!==this.mode||Mt(this.panel.parentNode,this.clsMode)||(xt(this.panel,"
"),It(this.panel.parentNode,this.clsMode)),Rt(document.documentElement,"overflowY",this.overlay?"hidden":""),It(document.body,this.clsContainer,this.clsFlip),Rt(document.body,"touch-action","pan-y pinch-zoom"),Rt(this.$el,"display","block"),It(this.$el,this.clsOverlay),It(this.panel,this.clsSidebarAnimation,"reveal"!==this.mode?this.clsMode:""),an(document.body),It(document.body,this.clsContainerAnimation),this.clsContainerAnimation&&(Ur().content+=",user-scalable=0")}},{name:"hide",self:!0,handler:function(){St(document.body,this.clsContainerAnimation),Rt(document.body,"touch-action","")}},{name:"hidden",self:!0,handler:function(){var e;this.clsContainerAnimation&&((e=Ur()).content=e.content.replace(/,user-scalable=0$/,"")),"reveal"===this.mode&&wt(this.panel),St(this.panel,this.clsSidebarAnimation,this.clsMode),St(this.$el,this.clsOverlay),Rt(this.$el,"display",""),St(document.body,this.clsContainer,this.clsFlip),Rt(document.documentElement,"overflowY","")}},{name:"swipeLeft swipeRight",handler:function(e){this.isToggled()&&p(e.type,"Left")^this.flip&&this.hide()}}]};function Ur(){return Ct('meta[name="viewport"]',document.head)||pt(document.head,'')}var Yr={mixins:[zn],props:{selContainer:String,selContent:String},data:{selContainer:".uk-modal",selContent:".uk-modal-dialog"},computed:{container:function(e,t){var n=e.selContainer;return De(t,n)},content:function(e,t){var n=e.selContent;return De(t,n)}},connected:function(){Rt(this.$el,"minHeight",150)},update:{read:function(){return!(!this.content||!this.container)&&{current:z(Rt(this.$el,"maxHeight")),max:Math.max(150,an(this.container)-(nn(this.content).height-an(this.$el)))}},write:function(e){var t=e.current,n=e.max;Rt(this.$el,"maxHeight",n),Math.round(t)!==Math.round(n)&&Ye(this.$el,"resize")},events:["resize"]}},qr={props:["width","height"],connected:function(){It(this.$el,"uk-responsive-width")},update:{read:function(){return!!(Fe(this.$el)&&this.width&&this.height)&&{width:sn(this.$el.parentNode),height:this.height}},write:function(e){an(this.$el,ne.contain({height:this.height,width:this.width},e).height)},events:["resize"]}},Qr={props:{duration:Number,offset:Number},data:{duration:1e3,offset:0},methods:{scrollTo:function(e){var t=this;e=e&&Ct(e)||document.body;var n=an(document),r=an(window),i=nn(e).top-this.offset;if(i+r>n&&(i=n-r),Ye(this.$el,"beforescroll",[this,e])){var o=Date.now(),a=window.pageYOffset,s=function(){var n,r=a+(i-a)*(n=X((Date.now()-o)/t.duration),.5*(1-Math.cos(Math.PI*n)));mn(window,r),r!==i?requestAnimationFrame(s):Ye(t.$el,"scrolled",[t,e])};s()}}},events:{click:function(e){e.defaultPrevented||(e.preventDefault(),this.scrollTo(Oe(decodeURIComponent(this.$el.hash)).substr(1)))}}},Kr={args:"cls",props:{cls:String,target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},data:function(){return{cls:!1,target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"}},computed:{elements:function(e,t){var n=e.target;return n?At(n,t):[t]}},update:[{write:function(){this.hidden&&Rt(Be(this.elements,":not(."+this.inViewClass+")"),"visibility","hidden")}},{read:function(e){var t=this,n=e.update;n&&this.elements.forEach(function(e){var n=e._ukScrollspyState;n||(n={cls:ae(e,"uk-scrollspy-class")||t.cls}),n.show=pn(e,t.offsetTop,t.offsetLeft),e._ukScrollspyState=n})},write:function(e){var t=this;if(!e.update)return this.$emit(),e.update=!0;this.elements.forEach(function(n){var r=n._ukScrollspyState,i=r.cls;if(!r.show||r.inview||r.queued){if(!r.show&&(r.inview||r.queued)&&t.repeat){if(r.abort&&r.abort(),!r.inview)return;Rt(n,"visibility",t.hidden?"hidden":""),St(n,t.inViewClass),Nt(n,i),Ye(n,"outview"),t.$update(n),r.inview=!1}}else{var o=function(){Rt(n,"visibility",""),It(n,t.inViewClass),Nt(n,i),Ye(n,"inview"),t.$update(n),r.inview=!0,r.abort&&r.abort()};t.delay?(r.queued=!0,e.promise=(e.promise||tt.resolve()).then(function(){return!r.inview&&new tt(function(n){var i=setTimeout(function(){o(),n()},e.promise||1===t.elements.length?t.delay:0);r.abort=function(){clearTimeout(i),n(),r.queued=!1}})})):o()}})},events:["scroll","resize"]}]},Jr={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(e,t){return At('a[href^="#"]',t).filter(function(e){return e.hash})},elements:function(e){var t=e.closest;return De(this.links,t||"*")},targets:function(){return At(this.links.map(function(e){return Oe(e.hash).substr(1)}).join(","))}},update:[{read:function(){this.scroll&&this.$create("scroll",this.links,{offset:this.offset||0})}},{read:function(e){var t=this,n=window.pageYOffset+this.offset+1,r=an(document)-an(window)+this.offset;e.active=!1,this.targets.every(function(i,o){var a=nn(i),s=a.top,l=o+1===t.targets.length;if(!t.overflow&&(0===o&&s>n||l&&s+i.offsetTop=r)for(var c=t.targets.length-1;c>o;c--)if(pn(t.targets[c])){i=t.targets[c];break}return!(e.active=Ct(Be(t.links,'[href="#'+i.id+'"]')))})},write:function(e){var t=e.active;this.links.forEach(function(e){return e.blur()}),St(this.elements,this.cls),t&&Ye(this.$el,"active",[t,It(this.closest?De(t,this.closest):t,this.cls)])},events:["scroll","resize"]}]},Gr={mixins:[zn,Or],props:{top:null,bottom:Boolean,offset:String,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,widthElement:Boolean,showOnUp:Boolean,targetOffset:Number},data:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",selTarget:"",widthElement:!1,showOnUp:!1,targetOffset:!1},computed:{offset:function(e){var t=e.offset;return yn(t)},selTarget:function(e,t){var n=e.selTarget;return n&&Ct(n,t)||t},widthElement:function(e,t){var n=e.widthElement;return ye(n,t)||this.placeholder},isActive:{get:function(){return Mt(this.selTarget,this.clsActive)},set:function(e){e&&!this.isActive?(Dt(this.selTarget,this.clsInactive,this.clsActive),Ye(this.$el,"active")):e||Mt(this.selTarget,this.clsInactive)||(Dt(this.selTarget,this.clsActive,this.clsInactive),Ye(this.$el,"inactive"))}}},connected:function(){this.placeholder=Ct("+ .uk-sticky-placeholder",this.$el)||Ct('
'),this.isFixed=!1,this.isActive=!1},disconnected:function(){this.isFixed&&(this.hide(),St(this.selTarget,this.clsInactive)),yt(this.placeholder),this.placeholder=null,this.widthElement=null},events:[{name:"load hashchange popstate",el:window,handler:function(){var e=this;if(!1!==this.targetOffset&&location.hash&&window.pageYOffset>0){var t=Ct(location.hash);t&&$n.read(function(){var n=nn(t),r=n.top,i=nn(e.$el).top,o=e.$el.offsetHeight;e.isFixed&&i+o>=r&&i<=r+t.offsetHeight&&mn(window,r-o-(O(e.targetOffset)?e.targetOffset:0)-e.offset)})}}}],update:[{read:function(e,t){var n=e.height;this.isActive&&"update"!==t&&(this.hide(),n=this.$el.offsetHeight,this.show()),n=this.isActive?n:this.$el.offsetHeight,this.topOffset=nn(this.isFixed?this.placeholder:this.$el).top,this.bottomOffset=this.topOffset+n;var r=Xr("bottom",this);return this.top=Math.max(z(Xr("top",this)),this.topOffset)-this.offset,this.bottom=r&&r-n,this.inactive=!this.matchMedia,{lastScroll:!1,height:n,margins:Rt(this.$el,["marginTop","marginBottom","marginLeft","marginRight"])}},write:function(e){var t=e.height,n=e.margins,r=this.placeholder;Rt(r,q({height:t},n)),He(r,document)||(mt(this.$el,r),re(r,"hidden","")),this.isActive=this.isActive},events:["resize"]},{read:function(e){var t=e.scroll;return void 0===t&&(t=0),this.width=(Fe(this.widthElement)?this.widthElement:this.$el).offsetWidth,this.scroll=window.pageYOffset,{dir:t<=this.scroll?"down":"up",scroll:this.scroll,visible:Fe(this.$el),top:vn(this.placeholder)[0]}},write:function(e,t){var n=this,r=e.initTimestamp;void 0===r&&(r=0);var i=e.dir,o=e.lastDir,a=e.lastScroll,s=e.scroll,l=e.top,c=e.visible,u=performance.now();if(e.lastScroll=s,!(s<0||s===a||!c||this.disabled||this.showOnUp&&"scroll"!==t||((u-r>300||i!==o)&&(e.initScroll=s,e.initTimestamp=u),e.lastDir=i,this.showOnUp&&Math.abs(e.initScroll-s)<=30&&Math.abs(a-s)<=10)))if(this.inactive||ss&&(Zt.cancel(this.$el),this.hide()));this.isFixed=!1,this.animation&&s>this.topOffset?(Zt.cancel(this.$el),Zt.out(this.$el,this.animation).then(function(){return n.hide()},Z)):this.hide()}else this.isFixed?this.update():this.animation?(Zt.cancel(this.$el),this.show(),Zt.in(this.$el,this.animation).catch(Z)):this.show()},events:["resize","scroll"]}],methods:{show:function(){this.isFixed=!0,this.update(),re(this.placeholder,"hidden",null)},hide:function(){this.isActive=!1,St(this.$el,this.clsFixed,this.clsBelow),Rt(this.$el,{position:"",top:"",width:""}),re(this.placeholder,"hidden","")},update:function(){var e=0!==this.top||this.scroll>this.top,t=Math.max(0,this.offset);this.bottom&&this.scroll>this.bottom-this.offset&&(t=this.bottom-this.scroll),Rt(this.$el,{position:"fixed",top:t+"px",width:this.width}),this.isActive=e,Nt(this.$el,this.clsBelow,this.scroll>this.bottomOffset),It(this.$el,this.clsFixed)}}};function Xr(e,t){var n=t.$props,r=t.$el,i=t[e+"Offset"],o=n[e];if(o)return O(o)&&M(o)&&o.match(/^-?\d/)?i+yn(o):nn(!0===o?r.parentNode:ye(o,r)).bottom}var Zr={mixins:[Bn],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},data:{connect:"~.uk-switcher",toggle:"> * > :first-child",active:0,swiping:!0,cls:"uk-active",clsContainer:"uk-switcher",attrItem:"uk-switcher-item",queued:!0},computed:{connects:function(e,t){var n=e.connect;return xe(n,t)},toggles:function(e,t){var n=e.toggle;return At(n,t)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(e){e.preventDefault(),this.show(H(this.$el.children).filter(function(t){return He(e.current,t)})[0])}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(e){e.preventDefault(),this.show(ae(e.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(e){var t=e.type;this.show(p(t,"Left")?"next":"previous")}}],update:function(){var e=this;this.connects.forEach(function(t){return e.updateAria(t.children)});var t=this.$el,n=t.children;this.show(Be(n,"."+this.cls)[0]||n[this.active]||n[0]),this.swiping&&Rt(this.connects,"touch-action","pan-y pinch-zoom")},methods:{index:function(){return!P(this.connects)&&ut(Be(this.connects[0].children,"."+this.cls)[0])},show:function(e){for(var t,n,r=this,i=this.$el,o=i.children,a=o.length,s=this.index(),l=s>=0,c="previous"===e?-1:1,u=dt(e,o,s),d=0;d=0&&Mt(n,this.cls)||s===u||(St(o,this.cls),It(n,this.cls),re(this.toggles,"aria-expanded",!1),re(t,"aria-expanded",!0),this.connects.forEach(function(e){l?r.toggleElement([e.children[s],e.children[u]]):r.toggleNow(e.children[u])}))}}},ei={mixins:[zn],extends:Zr,props:{media:Boolean},data:{media:960,attrItem:"uk-tab-item"},connected:function(){var e=Mt(this.$el,"uk-tab-left")?"uk-tab-left":!!Mt(this.$el,"uk-tab-right")&&"uk-tab-right";e&&this.$create("toggle",this.$el,{cls:e,mode:"media",media:this.media})}},ti={mixins:[Or,Bn],args:"target",props:{href:String,target:null,mode:"list"},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:function(e,t){var n=e.href,r=e.target;return(r=xe(r||n,t)).length&&r||[t]}},connected:function(){Ye(this.target,"updatearia",[this])},events:[{name:ge+" "+me,filter:function(){return x(this.mode,"hover")},handler:function(e){Ze(e)||this.toggle("toggle"+(e.type===ge?"show":"hide"))}},{name:"click",filter:function(){return x(this.mode,"click")||de&&x(this.mode,"hover")},handler:function(e){var t;(De(e.target,'a[href="#"], a[href=""]')||(t=De(e.target,"a[href]"))&&(this.cls||!Fe(this.target)||t.hash&&Se(this.target,t.hash)))&&e.preventDefault(),this.toggle()}}],update:{read:function(){return!(!x(this.mode,"media")||!this.media)&&{match:this.matchMedia}},write:function(e){var t=e.match,n=this.isToggled(this.target);(t?!n:n)&&this.toggle()},events:["resize"]},methods:{toggle:function(e){Ye(this.target,e||"toggle",[this])&&this.toggleElement(this.target)}}};Rn.version="3.2.0",function(e){e.component("accordion",Hn),e.component("alert",Vn),e.component("cover",qn),e.component("drop",Kn),e.component("dropdown",Gn),e.component("formCustom",Xn),e.component("gif",Zn),e.component("grid",rr),e.component("heightMatch",ar),e.component("heightViewport",cr),e.component("icon",xr),e.component("img",Er),e.component("leader",Pr),e.component("margin",er),e.component("modal",Br),e.component("nav",Hr),e.component("navbar",Vr),e.component("offcanvas",Wr),e.component("overflowAuto",Yr),e.component("responsive",qr),e.component("scroll",Qr),e.component("scrollspy",Kr),e.component("scrollspyNav",Jr),e.component("sticky",Gr),e.component("svg",dr),e.component("switcher",Zr),e.component("tab",ei),e.component("toggle",ti),e.component("video",Yn),e.component("close",_r),e.component("marker",br),e.component("navbarToggleIcon",br),e.component("overlayIcon",br),e.component("paginationNext",br),e.component("paginationPrevious",br),e.component("searchIcon",$r),e.component("slidenavNext",wr),e.component("slidenavPrevious",wr),e.component("spinner",kr),e.component("totop",br),e.use(Wn)}(Rn);var ni,ri={mixins:[zn],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(e){var t=e.date;return Date.parse(t)},days:function(e,t){var n=e.clsWrapper;return Ct(n.replace("%unit%","days"),t)},hours:function(e,t){var n=e.clsWrapper;return Ct(n.replace("%unit%","hours"),t)},minutes:function(e,t){var n=e.clsWrapper;return Ct(n.replace("%unit%","minutes"),t)},seconds:function(e,t){var n=e.clsWrapper;return Ct(n.replace("%unit%","seconds"),t)},units:function(){var e=this;return["days","hours","minutes","seconds"].filter(function(t){return e[t]})}},connected:function(){this.start()},disconnected:function(){var e=this;this.stop(),this.units.forEach(function(t){return ht(e[t])})},events:[{name:"visibilitychange",el:document,handler:function(){document.hidden?this.stop():this.start()}}],update:{write:function(){var e,t,n=this,r=(e=this.date,{total:t=e-Date.now(),seconds:t/1e3%60,minutes:t/1e3/60%60,hours:t/1e3/60/60%24,days:t/1e3/60/60/24});r.total<=0&&(this.stop(),r.days=r.hours=r.minutes=r.seconds=0),this.units.forEach(function(e){var t=String(Math.floor(r[e]));t=t.length<2?"0"+t:t;var i=n[e];i.textContent!==t&&((t=t.split("")).length!==i.children.length&&ft(i,t.map(function(){return""}).join("")),t.forEach(function(e,t){return i.children[t].textContent=e}))})}},methods:{start:function(){var e=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return e.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}},ii="uk-animation-target",oi={props:{animation:Number},data:{animation:150},computed:{target:function(){return this.$el}},methods:{animate:function(e){var t=this;ni||(ni=pt(document.head,"