appblocks
Version:
A lightweight javascript library for building micro apps for the front-end.
1 lines • 81.8 kB
JavaScript
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).AppBlock=r()}(this,function(){"use strict";var t,r,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={};function i(){if(r)return t;r=1;var n=function(t){return t&&t.Math===Math&&t};return t=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var o,u,a,c,f,s,l,v,d={};function p(){return u?o:(u=1,o=function(t){try{return!!t()}catch(t){return!0}})}function h(){if(c)return a;c=1;var t=p();return a=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g(){if(s)return f;s=1;var t=p();return f=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function m(){if(v)return l;v=1;var t=g(),r=Function.prototype.call;return l=t?r.bind(r):function(){return r.apply(r,arguments)},l}var y,b,S,w,E,O,x,A,j,T,R,N,I,M,P,k,C,L,F,B,_,D,H,W,U,$,z,V,q,G,K,Y,J,X,Q,Z,tt,rt,et,nt,it,ot={};function ut(){if(y)return ot;y=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);return ot.f=e?function(t){var e=r(this,t);return!!e&&e.enumerable}:t,ot}function at(){return S?b:(S=1,b=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function ct(){if(E)return w;E=1;var t=g(),r=Function.prototype,e=r.call,n=t&&r.bind.bind(e,e);return w=t?n:function(t){return function(){return e.apply(t,arguments)}},w}function ft(){if(x)return O;x=1;var t=ct(),r=t({}.toString),e=t("".slice);return O=function(t){return e(r(t),8,-1)}}function st(){if(j)return A;j=1;var t=ct(),r=p(),e=ft(),n=Object,i=t("".split);return A=r(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===e(t)?i(t,""):n(t)}:n}function lt(){return R?T:(R=1,T=function(t){return null==t})}function vt(){if(I)return N;I=1;var t=lt(),r=TypeError;return N=function(e){if(t(e))throw new r("Can't call method on "+e);return e}}function dt(){if(P)return M;P=1;var t=st(),r=vt();return M=function(e){return t(r(e))}}function pt(){if(C)return k;C=1;var t="object"==typeof document&&document.all;return k=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function ht(){if(F)return L;F=1;var t=pt();return L=function(r){return"object"==typeof r?null!==r:t(r)}}function gt(){if(_)return B;_=1;var t=i(),r=pt();return B=function(e,n){return arguments.length<2?(i=t[e],r(i)?i:void 0):t[e]&&t[e][n];var i},B}function mt(){if(H)return D;H=1;var t=ct();return D=t({}.isPrototypeOf)}function yt(){if(U)return W;U=1;var t=i().navigator,r=t&&t.userAgent;return W=r?String(r):""}function bt(){if(z)return $;z=1;var t,r,e=i(),n=yt(),o=e.process,u=e.Deno,a=o&&o.versions||u&&u.version,c=a&&a.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(r=+t[1]),$=r}function St(){if(q)return V;q=1;var t=bt(),r=p(),e=i().String;return V=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!e(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function wt(){if(K)return G;K=1;var t=St();return G=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Et(){if(J)return Y;J=1;var t=gt(),r=pt(),e=mt(),n=wt(),i=Object;return Y=n?function(t){return"symbol"==typeof t}:function(n){var o=t("Symbol");return r(o)&&e(o.prototype,i(n))}}function Ot(){if(Q)return X;Q=1;var t=String;return X=function(r){try{return t(r)}catch(t){return"Object"}}}function xt(){if(tt)return Z;tt=1;var t=pt(),r=Ot(),e=TypeError;return Z=function(n){if(t(n))return n;throw new e(r(n)+" is not a function")}}function At(){if(et)return rt;et=1;var t=xt(),r=lt();return rt=function(e,n){var i=e[n];return r(i)?void 0:t(i)}}function jt(){if(it)return nt;it=1;var t=m(),r=pt(),e=ht(),n=TypeError;return nt=function(i,o){var u,a;if("string"===o&&r(u=i.toString)&&!e(a=t(u,i)))return a;if(r(u=i.valueOf)&&!e(a=t(u,i)))return a;if("string"!==o&&r(u=i.toString)&&!e(a=t(u,i)))return a;throw new n("Can't convert object to primitive value")}}var Tt,Rt,Nt,It,Mt,Pt,kt,Ct,Lt,Ft,Bt,_t,Dt,Ht,Wt,Ut,$t,zt,Vt,qt,Gt,Kt,Yt,Jt,Xt={exports:{}};function Qt(){return Rt?Tt:(Rt=1,Tt=!1)}function Zt(){if(It)return Nt;It=1;var t=i(),r=Object.defineProperty;return Nt=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}function tr(){if(Mt)return Xt.exports;Mt=1;var t=Qt(),r=i(),e=Zt(),n="__core-js_shared__",o=Xt.exports=r[n]||e(n,{});return(o.versions||(o.versions=[])).push({version:"3.46.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Xt.exports}function rr(){if(kt)return Pt;kt=1;var t=tr();return Pt=function(r,e){return t[r]||(t[r]=e||{})}}function er(){if(Lt)return Ct;Lt=1;var t=vt(),r=Object;return Ct=function(e){return r(t(e))}}function nr(){if(Bt)return Ft;Bt=1;var t=ct(),r=er(),e=t({}.hasOwnProperty);return Ft=Object.hasOwn||function(t,n){return e(r(t),n)}}function ir(){if(Dt)return _t;Dt=1;var t=ct(),r=0,e=Math.random(),n=t(1.1.toString);return _t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+e,36)}}function or(){if(Wt)return Ht;Wt=1;var t=i(),r=rr(),e=nr(),n=ir(),o=St(),u=wt(),a=t.Symbol,c=r("wks"),f=u?a.for||a:a&&a.withoutSetter||n;return Ht=function(t){return e(c,t)||(c[t]=o&&e(a,t)?a[t]:f("Symbol."+t)),c[t]}}function ur(){if($t)return Ut;$t=1;var t=m(),r=ht(),e=Et(),n=At(),i=jt(),o=or(),u=TypeError,a=o("toPrimitive");return Ut=function(o,c){if(!r(o)||e(o))return o;var f,s=n(o,a);if(s){if(void 0===c&&(c="default"),f=t(s,o,c),!r(f)||e(f))return f;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function ar(){if(Vt)return zt;Vt=1;var t=ur(),r=Et();return zt=function(e){var n=t(e,"string");return r(n)?n:n+""}}function cr(){if(Gt)return qt;Gt=1;var t=i(),r=ht(),e=t.document,n=r(e)&&r(e.createElement);return qt=function(t){return n?e.createElement(t):{}}}function fr(){if(Yt)return Kt;Yt=1;var t=h(),r=p(),e=cr();return Kt=!t&&!r(function(){return 7!==Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a})}function sr(){if(Jt)return d;Jt=1;var t=h(),r=m(),e=ut(),n=at(),i=dt(),o=ar(),u=nr(),a=fr(),c=Object.getOwnPropertyDescriptor;return d.f=t?c:function(t,f){if(t=i(t),f=o(f),a)try{return c(t,f)}catch(t){}if(u(t,f))return n(!r(e.f,t,f),t[f])},d}var lr,vr,dr,pr,hr,gr,mr,yr={};function br(){if(vr)return lr;vr=1;var t=h(),r=p();return lr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Sr(){if(pr)return dr;pr=1;var t=ht(),r=String,e=TypeError;return dr=function(n){if(t(n))return n;throw new e(r(n)+" is not an object")}}function wr(){if(hr)return yr;hr=1;var t=h(),r=fr(),e=br(),n=Sr(),i=ar(),o=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",f="configurable",s="writable";return yr.f=t?e?function(t,r,e){if(n(t),r=i(r),n(e),"function"==typeof t&&"prototype"===r&&"value"in e&&s in e&&!e[s]){var o=a(t,r);o&&o[s]&&(t[r]=e.value,e={configurable:f in e?e[f]:o[f],enumerable:c in e?e[c]:o[c],writable:!1})}return u(t,r,e)}:u:function(t,e,a){if(n(t),e=i(e),n(a),r)try{return u(t,e,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[e]=a.value),t},yr}function Er(){if(mr)return gr;mr=1;var t=h(),r=wr(),e=at();return gr=t?function(t,n,i){return r.f(t,n,e(1,i))}:function(t,r,e){return t[r]=e,t}}var Or,xr,Ar,jr,Tr,Rr,Nr,Ir,Mr,Pr,kr,Cr,Lr,Fr,Br,_r={exports:{}};function Dr(){if(xr)return Or;xr=1;var t=h(),r=nr(),e=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,i=r(e,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&n(e,"name").configurable);return Or={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function Hr(){if(jr)return Ar;jr=1;var t=ct(),r=pt(),e=tr(),n=t(Function.toString);return r(e.inspectSource)||(e.inspectSource=function(t){return n(t)}),Ar=e.inspectSource}function Wr(){if(Ir)return Nr;Ir=1;var t=rr(),r=ir(),e=t("keys");return Nr=function(t){return e[t]||(e[t]=r(t))}}function Ur(){return Pr?Mr:(Pr=1,Mr={})}function $r(){if(Cr)return kr;Cr=1;var t,r,e,n=function(){if(Rr)return Tr;Rr=1;var t=i(),r=pt(),e=t.WeakMap;return Tr=r(e)&&/native code/.test(String(e))}(),o=i(),u=ht(),a=Er(),c=nr(),f=tr(),s=Wr(),l=Ur(),v="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||f.state){var h=f.state||(f.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new d(v);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},e=function(t){return h.has(t)}}else{var g=s("state");l[g]=!0,t=function(t,r){if(c(t,g))throw new d(v);return r.facade=t,a(t,g,r),r},r=function(t){return c(t,g)?t[g]:{}},e=function(t){return c(t,g)}}return kr={set:t,get:r,has:e,enforce:function(n){return e(n)?r(n):t(n,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=r(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}}function zr(){if(Lr)return _r.exports;Lr=1;var t=ct(),r=p(),e=pt(),n=nr(),i=h(),o=Dr().CONFIGURABLE,u=Hr(),a=$r(),c=a.enforce,f=a.get,s=String,l=Object.defineProperty,v=t("".slice),d=t("".replace),g=t([].join),m=i&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),b=_r.exports=function(t,r,e){"Symbol("===v(s(r),0,7)&&(r="["+d(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!n(t,"name")||o&&t.name!==r)&&(i?l(t,"name",{value:r,configurable:!0}):t.name=r),m&&e&&n(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&n(e,"constructor")&&e.constructor?i&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=c(t);return n(u,"source")||(u.source=g(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=b(function(){return e(this)&&f(this).source||u(this)},"toString"),_r.exports}function Vr(){if(Br)return Fr;Br=1;var t=pt(),r=wr(),e=zr(),n=Zt();return Fr=function(i,o,u,a){a||(a={});var c=a.enumerable,f=void 0!==a.name?a.name:o;if(t(u)&&e(u,f,a),a.global)c?i[o]=u:n(o,u);else{try{a.unsafe?i[o]&&(c=!0):delete i[o]}catch(t){}c?i[o]=u:r.f(i,o,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i}}var qr,Gr,Kr,Yr,Jr,Xr,Qr,Zr,te,re,ee,ne,ie,oe,ue,ae,ce,fe={};function se(){if(Yr)return Kr;Yr=1;var t=function(){if(Gr)return qr;Gr=1;var t=Math.ceil,r=Math.floor;return qr=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}}();return Kr=function(r){var e=+r;return e!=e||0===e?0:t(e)}}function le(){if(Xr)return Jr;Xr=1;var t=se(),r=Math.max,e=Math.min;return Jr=function(n,i){var o=t(n);return o<0?r(o+i,0):e(o,i)}}function ve(){if(Zr)return Qr;Zr=1;var t=se(),r=Math.min;return Qr=function(e){var n=t(e);return n>0?r(n,9007199254740991):0}}function de(){if(re)return te;re=1;var t=ve();return te=function(r){return t(r.length)}}function pe(){if(ne)return ee;ne=1;var t=dt(),r=le(),e=de(),n=function(n){return function(i,o,u){var a=t(i),c=e(a);if(0===c)return!n&&-1;var f,s=r(u,c);if(n&&o!=o){for(;c>s;)if((f=a[s++])!=f)return!0}else for(;c>s;s++)if((n||s in a)&&a[s]===o)return n||s||0;return!n&&-1}};return ee={includes:n(!0),indexOf:n(!1)}}function he(){if(oe)return ie;oe=1;var t=ct(),r=nr(),e=dt(),n=pe().indexOf,i=Ur(),o=t([].push);return ie=function(t,u){var a,c=e(t),f=0,s=[];for(a in c)!r(i,a)&&r(c,a)&&o(s,a);for(;u.length>f;)r(c,a=u[f++])&&(~n(s,a)||o(s,a));return s}}function ge(){return ae?ue:(ae=1,ue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function me(){if(ce)return fe;ce=1;var t=he(),r=ge().concat("length","prototype");return fe.f=Object.getOwnPropertyNames||function(e){return t(e,r)},fe}var ye,be,Se,we,Ee,Oe,xe,Ae,je,Te,Re,Ne,Ie,Me,Pe,ke,Ce,Le,Fe,Be,_e,De,He,We,Ue,$e,ze,Ve,qe,Ge,Ke,Ye,Je={};function Xe(){return ye||(ye=1,Je.f=Object.getOwnPropertySymbols),Je}function Qe(){if(Se)return be;Se=1;var t=gt(),r=ct(),e=me(),n=Xe(),i=Sr(),o=r([].concat);return be=t("Reflect","ownKeys")||function(t){var r=e.f(i(t)),u=n.f;return u?o(r,u(t)):r}}function Ze(){if(Ee)return we;Ee=1;var t=nr(),r=Qe(),e=sr(),n=wr();return we=function(i,o,u){for(var a=r(o),c=n.f,f=e.f,s=0;s<a.length;s++){var l=a[s];t(i,l)||u&&t(u,l)||c(i,l,f(o,l))}}}function tn(){if(xe)return Oe;xe=1;var t=p(),r=pt(),e=/#|\.prototype\./,n=function(e,n){var c=o[i(e)];return c===a||c!==u&&(r(n)?t(n):!!n)},i=n.normalize=function(t){return String(t).replace(e,".").toLowerCase()},o=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return Oe=n}function rn(){if(je)return Ae;je=1;var t=i(),r=sr().f,e=Er(),n=Vr(),o=Zt(),u=Ze(),a=tn();return Ae=function(i,c){var f,s,l,v,d,p=i.target,h=i.global,g=i.stat;if(f=h?t:g?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in c){if(v=c[s],l=i.dontCallGetSet?(d=r(f,s))&&d.value:f[s],!a(h?s:p+(g?".":"#")+s,i.forced)&&void 0!==l){if(typeof v==typeof l)continue;u(v,l)}(i.sham||l&&l.sham)&&e(v,"sham",!0),n(f,s,v,i)}}}function en(){if(Re)return Te;Re=1;var t=ft(),r=ct();return Te=function(e){if("Function"===t(e))return r(e)}}function nn(){if(Ie)return Ne;Ie=1;var t=en(),r=xt(),e=g(),n=t(t.bind);return Ne=function(t,i){return r(t),void 0===i?t:e?n(t,i):function(){return t.apply(i,arguments)}},Ne}function on(){if(Pe)return Me;Pe=1;var t=ft();return Me=Array.isArray||function(r){return"Array"===t(r)}}function un(){if(Ce)return ke;Ce=1;var t={};return t[or()("toStringTag")]="z",ke="[object z]"===String(t)}function an(){if(Fe)return Le;Fe=1;var t=un(),r=pt(),e=ft(),n=or()("toStringTag"),i=Object,o="Arguments"===e(function(){return arguments}());return Le=t?e:function(t){var u,a,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,r){try{return t[r]}catch(t){}}(u=i(t),n))?a:o?e(u):"Object"===(c=e(u))&&r(u.callee)?"Arguments":c}}function cn(){if(_e)return Be;_e=1;var t=ct(),r=p(),e=pt(),n=an(),i=gt(),o=Hr(),u=function(){},a=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,f=t(c.exec),s=!c.test(u),l=function(t){if(!e(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},v=function(t){if(!e(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(c,o(t))}catch(t){return!0}};return v.sham=!0,Be=!a||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function fn(){if(He)return De;He=1;var t=on(),r=cn(),e=ht(),n=or()("species"),i=Array;return De=function(o){var u;return t(o)&&(u=o.constructor,(r(u)&&(u===i||t(u.prototype))||e(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?i:u}}function sn(){if(Ue)return We;Ue=1;var t=fn();return We=function(r,e){return new(t(r))(0===e?0:e)}}function ln(){if(ze)return $e;ze=1;var t=nn(),r=ct(),e=st(),n=er(),i=de(),o=sn(),u=r([].push),a=function(r){var a=1===r,c=2===r,f=3===r,s=4===r,l=6===r,v=7===r,d=5===r||l;return function(p,h,g,m){for(var y,b,S=n(p),w=e(S),E=i(w),O=t(h,g),x=0,A=m||o,j=a?A(p,E):c||v?A(p,0):void 0;E>x;x++)if((d||x in w)&&(b=O(y=w[x],x,S),r))if(a)j[x]=b;else if(b)switch(r){case 3:return!0;case 5:return y;case 6:return x;case 2:u(j,y)}else switch(r){case 4:return!1;case 7:u(j,y)}return l?-1:f||s?s:j}};return $e={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}function vn(){if(qe)return Ve;qe=1;var t=p();return Ve=function(r,e){var n=[][r];return!!n&&t(function(){n.call(null,e||function(){return 1},1)})}}function dn(){if(Ke)return Ge;Ke=1;var t=ln().forEach,r=vn()("forEach");return Ge=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},Ge}!function(){if(Ye)return n;Ye=1;var t=rn(),r=dn();t({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})}();var pn,hn,gn,mn,yn,bn,Sn,wn,En,On,xn,An,jn,Tn,Rn,Nn,In,Mn,Pn,kn={};function Cn(){if(hn)return pn;hn=1;var t=m(),r=Sr(),e=At();return pn=function(n,i,o){var u,a;r(n);try{if(!(u=e(n,"return"))){if("throw"===i)throw o;return o}u=t(u,n)}catch(t){a=!0,u=t}if("throw"===i)throw o;if(a)throw u;return r(u),o}}function Ln(){if(mn)return gn;mn=1;var t=Sr(),r=Cn();return gn=function(e,n,i,o){try{return o?n(t(i)[0],i[1]):n(i)}catch(t){r(e,"throw",t)}}}function Fn(){return bn?yn:(bn=1,yn={})}function Bn(){if(wn)return Sn;wn=1;var t=or(),r=Fn(),e=t("iterator"),n=Array.prototype;return Sn=function(t){return void 0!==t&&(r.Array===t||n[e]===t)}}function _n(){if(On)return En;On=1;var t=h(),r=wr(),e=at();return En=function(n,i,o){t?r.f(n,i,e(0,o)):n[i]=o}}function Dn(){if(An)return xn;An=1;var t=an(),r=At(),e=lt(),n=Fn(),i=or()("iterator");return xn=function(o){if(!e(o))return r(o,i)||r(o,"@@iterator")||n[t(o)]}}function Hn(){if(Tn)return jn;Tn=1;var t=m(),r=xt(),e=Sr(),n=Ot(),i=Dn(),o=TypeError;return jn=function(u,a){var c=arguments.length<2?i(u):a;if(r(c))return e(t(c,u));throw new o(n(u)+" is not iterable")},jn}function Wn(){if(Mn)return In;Mn=1;var t=or()("iterator"),r=!1;try{var e=0,n={next:function(){return{done:!!e++}},return:function(){r=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return In=function(e,n){try{if(!n&&!r)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},e(o)}catch(t){}return i}}!function(){if(Pn)return kn;Pn=1;var t=rn(),r=function(){if(Nn)return Rn;Nn=1;var t=nn(),r=m(),e=er(),n=Ln(),i=Bn(),o=cn(),u=de(),a=_n(),c=Hn(),f=Dn(),s=Array;return Rn=function(l){var v=e(l),d=o(this),p=arguments.length,h=p>1?arguments[1]:void 0,g=void 0!==h;g&&(h=t(h,p>2?arguments[2]:void 0));var m,y,b,S,w,E,O=f(v),x=0;if(!O||this===s&&i(O))for(m=u(v),y=d?new this(m):s(m);m>x;x++)E=g?h(v[x],x):v[x],a(y,x,E);else for(y=d?new this:[],w=(S=c(v,O)).next;!(b=r(w,S)).done;x++)E=g?n(S,h,[b.value,x],!0):b.value,a(y,x,E);return y.length=x,y},Rn}();t({target:"Array",stat:!0,forced:!Wn()(function(t){Array.from(t)})},{from:r})}();var Un,$n={};!function(){if(Un)return $n;Un=1;var t=rn(),r=en(),e=pe().indexOf,n=vn(),i=r([].indexOf),o=!!i&&1/i([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!n("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return o?i(this,t,r)||0:e(this,t,r)}})}();var zn;zn||(zn=1,rn()({target:"Array",stat:!0},{isArray:on()}));var Vn,qn,Gn,Kn,Yn,Jn,Xn,Qn,Zn,ti,ri,ei,ni,ii,oi,ui,ai,ci,fi,si,li,vi,di,pi,hi,gi,mi,yi,bi,Si,wi,Ei,Oi,xi={};function Ai(){if(qn)return Vn;qn=1;var t=he(),r=ge();return Vn=Object.keys||function(e){return t(e,r)}}function ji(){if(Yn)return Kn;Yn=1;var t=gt();return Kn=t("document","documentElement")}function Ti(){if(Xn)return Jn;Xn=1;var t,r=Sr(),e=function(){if(Gn)return xi;Gn=1;var t=h(),r=br(),e=wr(),n=Sr(),i=dt(),o=Ai();return xi.f=t&&!r?Object.defineProperties:function(t,r){n(t);for(var u,a=i(r),c=o(r),f=c.length,s=0;f>s;)e.f(t,u=c[s++],a[u]);return t},xi}(),n=ge(),i=Ur(),o=ji(),u=cr(),a=Wr(),c="prototype",f="script",s=a("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},d=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,e,i;p="undefined"!=typeof document?document.domain&&t?d(t):(e=u("iframe"),i="java"+f+":",e.style.display="none",o.appendChild(e),e.src=String(i),(r=e.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):d(t);for(var a=n.length;a--;)delete p[c][n[a]];return p()};return i[s]=!0,Jn=Object.create||function(t,n){var i;return null!==t?(l[c]=r(t),i=new l,l[c]=null,i[s]=t):i=p(),void 0===n?i:e.f(i,n)}}function Ri(){if(Zn)return Qn;Zn=1;var t=or(),r=Ti(),e=wr().f,n=t("unscopables"),i=Array.prototype;return void 0===i[n]&&e(i,n,{configurable:!0,value:r(null)}),Qn=function(t){i[n][t]=!0}}function Ni(){if(ni)return ei;ni=1;var t=nr(),r=pt(),e=er(),n=Wr(),i=function(){if(ri)return ti;ri=1;var t=p();return ti=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),o=n("IE_PROTO"),u=Object,a=u.prototype;return ei=i?u.getPrototypeOf:function(n){var i=e(n);if(t(i,o))return i[o];var c=i.constructor;return r(c)&&i instanceof c?c.prototype:i instanceof u?a:null}}function Ii(){if(oi)return ii;oi=1;var t,r,e,n=p(),i=pt(),o=ht(),u=Ti(),a=Ni(),c=Vr(),f=or(),s=Qt(),l=f("iterator"),v=!1;return[].keys&&("next"in(e=[].keys())?(r=a(a(e)))!==Object.prototype&&(t=r):v=!0),!o(t)||n(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=u(t)),i(t[l])||c(t,l,function(){return this}),ii={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function Mi(){if(ai)return ui;ai=1;var t=wr().f,r=nr(),e=or()("toStringTag");return ui=function(n,i,o){n&&!o&&(n=n.prototype),n&&!r(n,e)&&t(n,e,{configurable:!0,value:i})}}function Pi(){if(di)return vi;di=1;var t=ht();return vi=function(r){return t(r)||null===r}}function ki(){if(hi)return pi;hi=1;var t=Pi(),r=String,e=TypeError;return pi=function(n){if(t(n))return n;throw new e("Can't set "+r(n)+" as a prototype")}}function Ci(){if(mi)return gi;mi=1;var t=function(){if(li)return si;li=1;var t=ct(),r=xt();return si=function(e,n,i){try{return t(r(Object.getOwnPropertyDescriptor(e,n)[i]))}catch(t){}}}(),r=ht(),e=vt(),n=ki();return gi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=t(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(t){}return function(t,u){return e(t),n(u),r(t)?(o?i(t,u):t.__proto__=u,t):t}}():void 0)}function Li(){if(bi)return yi;bi=1;var t=rn(),r=m(),e=Qt(),n=Dr(),i=pt(),o=function(){if(fi)return ci;fi=1;var t=Ii().IteratorPrototype,r=Ti(),e=at(),n=Mi(),i=Fn(),o=function(){return this};return ci=function(u,a,c,f){var s=a+" Iterator";return u.prototype=r(t,{next:e(+!f,c)}),n(u,s,!1,!0),i[s]=o,u}}(),u=Ni(),a=Ci(),c=Mi(),f=Er(),s=Vr(),l=or(),v=Fn(),d=Ii(),p=n.PROPER,h=n.CONFIGURABLE,g=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,b=l("iterator"),S="keys",w="values",E="entries",O=function(){return this};return yi=function(n,l,d,m,x,A,j){o(d,l,m);var T,R,N,I=function(t){if(t===x&&L)return L;if(!y&&t&&t in k)return k[t];switch(t){case S:case w:case E:return function(){return new d(this,t)}}return function(){return new d(this)}},M=l+" Iterator",P=!1,k=n.prototype,C=k[b]||k["@@iterator"]||x&&k[x],L=!y&&C||I(x),F="Array"===l&&k.entries||C;if(F&&(T=u(F.call(new n)))!==Object.prototype&&T.next&&(e||u(T)===g||(a?a(T,g):i(T[b])||s(T,b,O)),c(T,M,!0,!0),e&&(v[M]=O)),p&&x===w&&C&&C.name!==w&&(!e&&h?f(k,"name",w):(P=!0,L=function(){return r(C,this)})),x)if(R={values:I(w),keys:A?L:I(S),entries:I(E)},j)for(N in R)(y||P||!(N in k))&&s(k,N,R[N]);else t({target:l,proto:!0,forced:y||P},R);return e&&!j||k[b]===L||s(k,b,L,{name:x}),v[l]=L,R}}function Fi(){return wi?Si:(wi=1,Si=function(t,r){return{value:t,done:r}})}function Bi(){if(Oi)return Ei;Oi=1;var t=dt(),r=Ri(),e=Fn(),n=$r(),i=wr().f,o=Li(),u=Fi(),a=Qt(),c=h(),f="Array Iterator",s=n.set,l=n.getterFor(f);Ei=o(Array,"Array",function(r,e){s(this,{type:f,target:t(r),index:0,kind:e})},function(){var t=l(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(e,!1);case"values":return u(r[e],!1)}return u([e,r[e]],!1)},"values");var v=e.Arguments=e.Array;if(r("keys"),r("values"),r("entries"),!a&&c&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(t){}return Ei}Bi();var _i,Di,Hi,Wi,Ui,$i={};function zi(){if(Di)return _i;Di=1;var t=p(),r=or(),e=bt(),n=r("species");return _i=function(r){return e>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}function Vi(){if(Wi)return Hi;Wi=1;var t=ct();return Hi=t([].slice)}!function(){if(Ui)return $i;Ui=1;var t=rn(),r=on(),e=cn(),n=ht(),i=le(),o=de(),u=dt(),a=_n(),c=or(),f=zi(),s=Vi(),l=f("slice"),v=c("species"),d=Array,p=Math.max;t({target:"Array",proto:!0,forced:!l},{slice:function(t,c){var f,l,h,g=u(this),m=o(g),y=i(t,m),b=i(void 0===c?m:c,m);if(r(g)&&(f=g.constructor,(e(f)&&(f===d||r(f.prototype))||n(f)&&null===(f=f[v]))&&(f=void 0),f===d||void 0===f))return s(g,y,b);for(l=new(void 0===f?d:f)(p(b-y,0)),h=0;y<b;y++,h++)y in g&&a(l,h,g[y]);return l.length=h,l}})}();var qi,Gi,Ki,Yi={};function Ji(){if(Gi)return qi;Gi=1;var t=zr(),r=wr();return qi=function(e,n,i){return i.get&&t(i.get,n,{getter:!0}),i.set&&t(i.set,n,{setter:!0}),r.f(e,n,i)}}!function(){if(Ki)return Yi;Ki=1;var t=h(),r=Dr().EXISTS,e=ct(),n=Ji(),i=Function.prototype,o=e(i.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a=e(u.exec);t&&!r&&n(i,"name",{configurable:!0,get:function(){try{return a(u,o(this))[1]}catch(t){return""}}})}();var Xi,Qi,Zi,to,ro,eo,no,io,oo,uo,ao,co,fo,so,lo,vo,po,ho,go,mo,yo,bo,So,wo,Eo={exports:{}},Oo={};function xo(){if(Xi)return Oo;Xi=1;var t=ft(),r=dt(),e=me().f,n=Vi(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Oo.f=function(o){return i&&"Window"===t(o)?function(t){try{return e(t)}catch(t){return n(i)}}(o):e(r(o))},Oo}function Ao(){if(ro)return to;ro=1;var t=p(),r=ht(),e=ft(),n=function(){if(Zi)return Qi;Zi=1;var t=p();return Qi=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),i=Object.isExtensible,o=t(function(){});return to=o||n?function(t){return!!r(t)&&((!n||"ArrayBuffer"!==e(t))&&(!i||i(t)))}:i}function jo(){if(io)return Eo.exports;io=1;var t=rn(),r=ct(),e=Ur(),n=ht(),i=nr(),o=wr().f,u=me(),a=xo(),c=Ao(),f=ir(),s=function(){if(no)return eo;no=1;var t=p();return eo=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}(),l=!1,v=f("meta"),d=0,h=function(t){o(t,v,{value:{objectID:"O"+d++,weakData:{}}})},g=Eo.exports={enable:function(){g.enable=function(){},l=!0;var e=u.f,n=r([].splice),i={};i[v]=1,e(i).length&&(u.f=function(t){for(var r=e(t),i=0,o=r.length;i<o;i++)if(r[i]===v){n(r,i,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,r){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,v)){if(!c(t))return"F";if(!r)return"E";h(t)}return t[v].objectID},getWeakData:function(t,r){if(!i(t,v)){if(!c(t))return!0;if(!r)return!1;h(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&c(t)&&!i(t,v)&&h(t),t}};return e[v]=!0,Eo.exports}function To(){if(uo)return oo;uo=1;var t=nn(),r=m(),e=Sr(),n=Ot(),i=Bn(),o=de(),u=mt(),a=Hn(),c=Dn(),f=Cn(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return oo=function(d,p,h){var g,m,y,b,S,w,E,O=h&&h.that,x=!(!h||!h.AS_ENTRIES),A=!(!h||!h.IS_RECORD),j=!(!h||!h.IS_ITERATOR),T=!(!h||!h.INTERRUPTED),R=t(p,O),N=function(t){return g&&f(g,"normal"),new l(!0,t)},I=function(t){return x?(e(t),T?R(t[0],t[1],N):R(t[0],t[1])):T?R(t,N):R(t)};if(A)g=d.iterator;else if(j)g=d;else{if(!(m=c(d)))throw new s(n(d)+" is not iterable");if(i(m)){for(y=0,b=o(d);b>y;y++)if((S=I(d[y]))&&u(v,S))return S;return new l(!1)}g=a(d,m)}for(w=A?d.next:g.next;!(E=r(w,g)).done;){try{S=I(E.value)}catch(t){f(g,"throw",t)}if("object"==typeof S&&S&&u(v,S))return S}return new l(!1)}}function Ro(){if(co)return ao;co=1;var t=mt(),r=TypeError;return ao=function(e,n){if(t(n,e))return e;throw new r("Incorrect invocation")}}function No(){if(so)return fo;so=1;var t=pt(),r=ht(),e=Ci();return fo=function(n,i,o){var u,a;return e&&t(u=i.constructor)&&u!==o&&r(a=u.prototype)&&a!==o.prototype&&e(n,a),n}}function Io(){if(ho)return po;ho=1;var t=Vr();return po=function(r,e,n){for(var i in e)t(r,i,e[i],n);return r}}function Mo(){if(mo)return go;mo=1;var t=gt(),r=Ji(),e=or(),n=h(),i=e("species");return go=function(e){var o=t(e);n&&o&&!o[i]&&r(o,i,{configurable:!0,get:function(){return this}})}}wo||(wo=1,So||(So=1,function(){if(vo)return lo;vo=1;var t=rn(),r=i(),e=ct(),n=tn(),o=Vr(),u=jo(),a=To(),c=Ro(),f=pt(),s=lt(),l=ht(),v=p(),d=Wn(),h=Mi(),g=No();return lo=function(i,p,m){var y=-1!==i.indexOf("Map"),b=-1!==i.indexOf("Weak"),S=y?"set":"add",w=r[i],E=w&&w.prototype,O=w,x={},A=function(t){var r=e(E[t]);o(E,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(n(i,!f(w)||!(b||E.forEach&&!v(function(){(new w).entries().next()}))))O=m.getConstructor(p,i,y,S),u.enable();else if(n(i,!0)){var j=new O,T=j[S](b?{}:-0,1)!==j,R=v(function(){j.has(1)}),N=d(function(t){new w(t)}),I=!b&&v(function(){for(var t=new w,r=5;r--;)t[S](r,r);return!t.has(-0)});N||((O=p(function(t,r){c(t,E);var e=g(new w,t,O);return s(r)||a(r,e[S],{that:e,AS_ENTRIES:y}),e})).prototype=E,E.constructor=O),(R||I)&&(A("delete"),A("has"),y&&A("get")),(I||T)&&A(S),b&&E.clear&&delete E.clear}return x[i]=O,t({global:!0,constructor:!0,forced:O!==w},x),h(O,i),b||m.setStrong(O,i,y),O}}()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},function(){if(bo)return yo;bo=1;var t=Ti(),r=Ji(),e=Io(),n=nn(),i=Ro(),o=lt(),u=To(),a=Li(),c=Fi(),f=Mo(),s=h(),l=jo().fastKey,v=$r(),d=v.set,p=v.getterFor;return yo={getConstructor:function(a,c,f,v){var h=a(function(r,e){i(r,g),d(r,{type:c,index:t(null),first:null,last:null,size:0}),s||(r.size=0),o(e)||u(e,r[v],{that:r,AS_ENTRIES:f})}),g=h.prototype,m=p(c),y=function(t,r,e){var n,i,o=m(t),u=b(t,r);return u?u.value=e:(o.last=u={index:i=l(r,!0),key:r,value:e,previous:n=o.last,next:null,removed:!1},o.first||(o.first=u),n&&(n.next=u),s?o.size++:t.size++,"F"!==i&&(o.index[i]=u)),t},b=function(t,r){var e,n=m(t),i=l(r);if("F"!==i)return n.index[i];for(e=n.first;e;e=e.next)if(e.key===r)return e};return e(g,{clear:function(){for(var r=m(this),e=r.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;r.first=r.last=null,r.index=t(null),s?r.size=0:this.size=0},delete:function(t){var r=this,e=m(r),n=b(r,t);if(n){var i=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),e.first===n&&(e.first=i),e.last===n&&(e.last=o),s?e.size--:r.size--}return!!n},forEach:function(t){for(var r,e=m(this),i=n(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:e.first;)for(i(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!b(this,t)}}),e(g,f?{get:function(t){var r=b(this,t);return r&&r.value},set:function(t,r){return y(this,0===t?0:t,r)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),s&&r(g,"size",{configurable:!0,get:function(){return m(this).size}}),h},setStrong:function(t,r,e){var n=r+" Iterator",i=p(r),o=p(n);a(t,r,function(t,r){d(this,{type:n,target:t,state:i(t),kind:r,last:null})},function(){for(var t=o(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?c("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=null,c(void 0,!0))},e?"entries":"values",!e,!0),f(r)}},yo}())));var Po,ko,Co,Lo={};!function(){if(Co)return Lo;Co=1;var t=rn(),r=function(){if(ko)return Po;ko=1;var t=h(),r=ct(),e=m(),n=p(),i=Ai(),o=Xe(),u=ut(),a=er(),c=st(),f=Object.assign,s=Object.defineProperty,l=r([].concat);return Po=!f||n(function(){if(t&&1!==f({b:1},f(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var r={},e={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return r[n]=7,o.split("").forEach(function(t){e[t]=t}),7!==f({},r)[n]||i(f({},e)).join("")!==o})?function(r,n){for(var f=a(r),s=arguments.length,v=1,d=o.f,p=u.f;s>v;)for(var h,g=c(arguments[v++]),m=d?l(i(g),d(g)):i(g),y=m.length,b=0;y>b;)h=m[b++],t&&!e(p,g,h)||(f[h]=g[h]);return f}:f,Po}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}();var Fo,Bo,_o,Do={};!function(){if(_o)return Do;_o=1;var t=un(),r=Vr(),e=function(){if(Bo)return Fo;Bo=1;var t=un(),r=an();return Fo=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",e,{unsafe:!0})}();var Ho,Wo,Uo,$o,zo,Vo={};function qo(){if(Wo)return Ho;Wo=1;var t=an(),r=String;return Ho=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}function Go(){if($o)return Uo;$o=1;var t=ct(),r=se(),e=qo(),n=vt(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,c){var f,s,l=e(n(a)),v=r(c),d=l.length;return v<0||v>=d?t?"":void 0:(f=o(l,v))<55296||f>56319||v+1===d||(s=o(l,v+1))<56320||s>57343?t?i(l,v):f:t?u(l,v,v+2):s-56320+(f-55296<<10)+65536}};return Uo={codeAt:a(!1),charAt:a(!0)}}!function(){if(zo)return Vo;zo=1;var t=Go().charAt,r=qo(),e=$r(),n=Li(),i=Fi(),o="String Iterator",u=e.set,a=e.getterFor(o);n(String,"String",function(t){u(this,{type:o,string:r(t),index:0})},function(){var r,e=a(this),n=e.string,o=e.index;return o>=n.length?i(void 0,!0):(r=t(n,o),e.index+=r.length,i(r,!1))})}();var Ko,Yo,Jo,Xo,Qo,Zo,tu,ru={};function eu(){return Yo?Ko:(Yo=1,Ko="\t\n\v\f\r \u2028\u2029\ufeff")}function nu(){if(Xo)return Jo;Xo=1;var t=ct(),r=vt(),e=qo(),n=eu(),i=t("".replace),o=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=e(r(n));return 1&t&&(a=i(a,o,"")),2&t&&(a=i(a,u,"$1")),a}};return Jo={start:a(1),end:a(2),trim:a(3)}}!function(){if(tu)return ru;tu=1;var t=rn(),r=nu().trim,e=function(){if(Zo)return Qo;Zo=1;var t=Dr().PROPER,r=p(),e=eu();return Qo=function(n){return r(function(){return!!e[n]()||"
"!=="
"[n]()||t&&e[n].name!==n})}}();t({target:"String",proto:!0,forced:e("trim")},{trim:function(){return r(this)}})}();var iu,ou,uu,au,cu,fu={};function su(){return ou?iu:(ou=1,iu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function lu(){if(au)return uu;au=1;var t=cr()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return uu=r===Object.prototype?void 0:r}!function(){if(cu)return fu;cu=1;var t=i(),r=su(),e=lu(),n=dn(),o=Er(),u=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(r){t.forEach=n}};for(var a in r)r[a]&&u(t[a]&&t[a].prototype);u(e)}();var vu,du={};!function(){if(vu)return du;vu=1;var t=i(),r=su(),e=lu(),n=Bi(),o=Er(),u=Mi(),a=or()("iterator"),c=n.values,f=function(t,e){if(t){if(t[a]!==c)try{o(t,a,c)}catch(r){t[a]=c}if(u(t,e,!0),r[e])for(var i in n)if(t[i]!==n[i])try{o(t,i,n[i])}catch(r){t[i]=n[i]}}};for(var s in r)f(t[s]&&t[s].prototype,s);f(e,"DOMTokenList")}();var pu=function(){const t=()=>{},r={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:t,afterNodeAdded:t,beforeNodeMorphed:t,afterNodeMorphed:t,beforeNodeRemoved:t,afterNodeRemoved:t,beforeAttributeUpdated:t},head:{style:"merge",shouldPreserve:t=>"true"===t.getAttribute("im-preserve"),shouldReAppend:t=>"true"===t.getAttribute("im-re-append"),shouldRemove:t,afterHeadMorphed:t},restoreFocus:!0};const e=function(){function t(t,r,e,i){if(!1===i.callbacks.beforeNodeAdded(r))return null;if(i.idMap.has(r)){const o=document.createElement(r.tagName);return t.insertBefore(o,e),n(o,r,i),i.callbacks.afterNodeAdded(o),o}{const n=document.importNode(r,!0);return t.insertBefore(n,e),i.callbacks.afterNodeAdded(n),n}}const r=function(){function t(t,r,e){let n=t.idMap.get(r),i=t.idMap.get(e);if(!i||!n)return!1;for(const t of n)if(i.has(t))return!0;return!1}function r(t,r){const e=t,n=r;return e.nodeType===n.nodeType&&e.tagName===n.tagName&&(!e.getAttribute?.("id")||e.getAttribute?.("id")===n.getAttribute?.("id"))}return function(e,n,i,o){let u=null,a=n.nextSibling,c=0,f=i;for(;f&&f!=o;){if(r(f,n)){if(t(e,f,n))return f;null===u&&(e.idMap.has(f)||(u=f))}if(null===u&&a&&r(f,a)&&(c++,a=a.nextSibling,c>=2&&(u=void 0)),e.activeElementAndParents.includes(f))break;f=f.nextSibling}return u||null}}();function e(t,r){if(t.idMap.has(r))u(t.pantry,r,null);else{if(!1===t.callbacks.beforeNodeRemoved(r))return;r.parentNode?.removeChild(r),t.callbacks.afterNodeRemoved(r)}}function i(t,r,n){let i=r;for(;i&&i!==n;){let r=i;i=i.nextSibling,e(t,r)}return i}function o(t,r,e,n){const i=n.target.getAttribute?.("id")===r&&n.target||n.target.querySelector(`[id="${r}"]`)||n.pantry.querySelector(`[id="${r}"]`);return function(t,r){const e=t.getAttribute("id");for(;t=t.parentNode;){let n=r.idMap.get(t);n&&(n.delete(e),n.size||r.idMap.delete(t))}}(i,n),u(t,i,e),i}function u(t,r,e){if(t.moveBefore)try{t.moveBefore(r,e)}catch(n){t.insertBefore(r,e)}else t.insertBefore(r,e)}return function(u,a,c,f=null,s=null){a instanceof HTMLTemplateElement&&c instanceof HTMLTemplateElement&&(a=a.content,c=c.content),f||=a.firstChild;for(const e of c.childNodes){if(f&&f!=s){const t=r(u,e,f,s);if(t){t!==f&&i(u,f,t),n(t,e,u),f=t.nextSibling;continue}}if(e instanceof Element){const t=e.getAttribute("id");if(u.persistentIds.has(t)){const r=o(a,t,f,u);n(r,e,u),f=r.nextSibling;continue}}const c=t(a,e,f,u);c&&(f=c.nextSibling)}for(;f&&f!=s;){const t=f;f=f.nextSibling,e(u,t)}}}(),n=function(){function t(t,e,n,i){const o=e[n];if(o!==t[n]){const u=r(n,t,"update",i);u||(t[n]=e[n]),o?u||t.setAttribute(n,""):r(n,t,"remove",i)||t.removeAttribute(n)}}function r(t,r,e,n){return!("value"!==t||!n.ignoreActiveValue||r!==document.activeElement)||!1===n.callbacks.beforeAttributeUpdated(t,r,e)}function n(t,r){return!!r.ignoreActiveValue&&t===document.activeElement&&t!==document.body}return function(o,u,a){return a.ignoreActive&&o===document.activeElement?null:(!1===a.callbacks.beforeNodeMorphed(o,u)||(o instanceof HTMLHeadElement&&a.head.ignore||(o instanceof HTMLHeadElement&&"morph"!==a.head.style?i(o,u,a):(!function(e,i,o){let u=i.nodeType;if(1===u){const u=e,a=i,c=u.attributes,f=a.attributes;for(const t of f)r(t.name,u,"update",o)||u.getAttribute(t.name)!==t.value&&u.setAttribute(t.name,t.value);for(let t=c.length-1;0<=t;t--){const e=c[t];if(e&&!a.hasAttribute(e.name)){if(r(e.name,u,"remove",o))continue;u.removeAttribute(e.name)}}n(u,o)||function(e,n,i){if(e instanceof HTMLInputElement&&n instanceof HTMLInputElement&&"file"!==n.type){let o=n.value,u=e.value;t(e,n,"checked",i),t(e,n,"disabled",i),n.hasAttribute("value")?u!==o&&(r("value",e,"update",i)||(e.setAttribute("value",o),e.value=o)):r("value",e,"remove",i)||(e.value="",e.removeAttribute("value"))}else if(e instanceof HTMLOptionElement&&n instanceof HTMLOptionElement)t(e,n,"selected",i);else if(e instanceof HTMLTextAreaElement&&n instanceof HTMLTextAreaElement){let t=n.value,o=e.value;if(r("value",e,"update",i))return;t!==o&&(e.value=t),e.firstChild&&e.firstChild.nodeValue!==t&&(e.firstChild.nodeValue=t)}}(u,a,o)}8!==u&&3!==u||e.nodeValue!==i.nodeValue&&(e.nodeValue=i.nodeValue)}(o,u,a),n(o,a)||e(a,o,u))),a.callbacks.afterNodeMorphed(o,u)),o)}}();function i(t,r,e){let n=[],i=[],o=[],u=[],a=new Map;for(const t of r.children)a.set(t.outerHTML,t);for(const r of t.children){let t=a.has(r.outerHTML),n=e.head.shouldReAppend(r),c=e.head.shouldPreserve(r);t||c?n?i.push(r):(a.delete(r.outerHTML),o.push(r)):"append"===e.head.style?n&&(i.push(r),u.push(r)):!1!==e.head.shouldRemove(r)&&i.push(r)}u.push(...a.values());let c=[];for(const r of u){let i=document.createRange().createContextualFragment(r.outerHTML).firstChild;if(!1!==e.callbacks.beforeNodeAdded(i)){if("href"in i&&i.href||"src"in i&&i.src){let t,r=new Promise(function(r){t=r});i.addEventListener("load",function(){t()}),c.push(r)}t.appendChild(i),e.callbacks.afterNodeAdded(i),n.push(i)}}for(const r of i)!1!==e.callbacks.beforeNodeRemoved(r)&&(t.removeChild(r),e.callbacks.afterNodeRemoved(r));return e.head.afterHeadMorphed(t,{added:n,kept:o,removed:i}),c}const o=function(){function t(){const t=document.createElement("div");return t.hidden=!0,document.body.insertAdjacentElement("afterend",t),t}function e(t){let r=[],e=document.activeElement;if("BODY"!==e?.tagName&&t.contains(e))for(;e&&(r.push(e),e!==t);)e=e.parentElement;return r}function n(t){let r=Array.from(t.querySelectorAll("[id]"));return t.getAttribute?.("id")&&r.push(t),r}function i(t,r,e,n){for(const i of n){const n=i.getAttribute("id");if(r.has(n)){let r=i;for(;r;){let i=t.get(r);if(null==i&&(i=new Set,t.set(r,i)),i.add(n),r===e)break;r=r.parentElement}}}}return function(o,u,a){const{persistentIds:c,idMap:f}=function(t,r){const e=n(t),o=n(r),u=function(t,r){let e=new Set,n=new Map;for(const{id:r,tagName:i}of t)n.has(r)?e.add(r):n.set(r,i);let i=new Set;for(const{id:t,tagName:o}of r)i.has(t)?e.add(t):n.get(t)===o&&i.add(t);for(const t of e)i.delete(t);return i}(e,o);let a=new Map;i(a,u,t,e);const c=r.__idiomorphRoot||r;return i(a,u,c,o),{persistentIds:u,idMap:a}}(o,u),s=function(t){let e=Object.assign({},r);return Object.assign(e,t),e.callbacks=Object.assign({},r.callbacks,t.callbacks),e.head=Object.assign({},r.head,t.head),e}(a),l=s.morphStyle||"outerHTML";if(!["innerHTML","outerHTML"].includes(l))throw`Do not understand how to morph style ${l}`;return{target:o,newContent:u,config:s,morphStyle:l,ignoreActive:s.ignoreActive,ignoreActiveValue:s.ignoreActiveValue,restoreFocus:s.restoreFocus,idMap:f,persistentIds:c,pantry:t(),activeElementAndParents:e(o),callbacks:s.callbacks,head:s.head}}}(),{normalizeElement:u,normalizeParent:a}=function(){const t=new WeakSet;class r{constructor(t){this.originalNode=t,this.realParentNode=t.parentNode,this.previousSibling=t.previousSibling,this.nextSibling=t.nextSibling}get childNodes(){const t=[];let r=this.previousSibling?this.previousSibling.nextSibling:this.realParentNode.firstChild;for(;r&&r!=this.nextSibling;)t.push(r),r=r.nextSibling;return t}querySelectorAll(t){return this.childNodes.reduce((r,e)=>{if(e instanceof Element){e.matches(t)&&r.push(e);const n=e.querySelectorAll(t);for(let t=0;t<n.length;t++)r.push(n[t])}return r},[])}insertBefore(t,r){return this.realParentNode.insertBefore(t,r)}moveBefore(t,r){return this.realParentNode.moveBefore(t,r)}get __idiomorphRoot(){return this.originalNode}}return{normalizeElement:function(t){return t instanceof Document?t.documentElement:t},normalizeParent:function e(n){if(null==n)return document.createElement("div");if("string"==typeof n)return e(function(r){let e=new DOMParser,n=r.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(n.match(/<\/html>/)||n.match(/<\/head>/)||n.match(/<\/body>/)){let i=e.parseFromString(r,"text/html");if(n.match(/<\/html>/))return t.add(i),i;{let r=i.firstChild;return r&&t.add(r),r}}{let n=e.parseFromString("<body><template>"+r+"</template></body>","text/html").body.querySelector("template").content;return t.add(n),n}}(n));if(t.has(n))return n;if(n instanceof Node){if(n.parentNode)return new r(n);{const t=document.createElement("div");return t.append(n),t}}{const t=document.createElement("div");for(const r of[...n])t.append(r);return t}}}}();return{morph:function(t,r,n={}){t=u(t);const c=a(r),f=o(t,c,n),s=function(t,r){if(!t.config.restoreFocus)return r();let e=document.activeElement;if(!(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement))return r();const{id:n,selectionStart:i,selectionEnd:o}=e,u=r();n&&n!==document.activeElement?.getAttribute("id")&&(e=t.target.querySelector(`[id="${n}"]`),e?.focus());e&&!e.selectionEnd&&o&&e.setSelectionRange(i,o);return u}(f,()=>function(t,r,e,n){if(t.head.block){const o=r.querySelector("head"),u=e.querySelector("head");if(o&&u){const r=i(o,u,t);return Promise.all(r).then(()=>{const r=Object.assign(t,{head:{block:!1,ignore:!0}});return n(r)})}}return n(t)}(f,t,c,r=>"innerHTML"===r.morphStyle?(e(r,t,c),Array.from(t.childNodes)):function(t,r,n){const i=a(r);return e(t,i,n,r,r.nextSibling),Array.from(i.childNodes)}(r,t,c)));return f.pantry.remove(),s},defaults:r}}();function hu(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function gu(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Su(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){a=!0,o=t},f:function(){try{u||null==e.return||e.return()}finally{if(a)throw o}}}}function mu(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,i,o,u,a=[],c=!0,f=!1;try{if(o=(e=e.call(t)).next,0===r);else for(;!(c=(n=o.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){f=!0,i=t}finally{try{if(!c&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(f)throw i}}return a}}(t,r)||Su(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yu(t){return function(t){if(Array.isArray(t))return hu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Su(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bu(t){return bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(t)}function Su(t,r){if(t){if("string"==typeof t)return hu(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?hu(t,r):void 0}}var wu,Eu={};!function(){if(wu)return Eu;wu=1;var t=rn(),r=ln().filter;t({target:"Array",proto:!0,forced:!zi()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Ou,xu={};!function(){if(Ou)return xu;Ou=1;var t=rn(),r=pe().includes,e=p(),n=Ri();t({target:"Array",proto:!0,forced:e(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var Au,ju={};!function(){if(Au)return ju;Au=1;var t=rn(),r=ln().map;t({target:"Array",proto:!0,forced:!zi()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Tu,Ru,Nu,Iu,Mu,Pu,ku,Cu,Lu,Fu,Bu,_u={};function Du(){if(Ru)return Tu;Ru=1;var t=Sr();return Tu=function(){var r=t(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}}function Hu(){if(Iu)return Nu;Iu=1;var t=p(),r=i().RegExp,e=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=e||t(function(){return!r("a","y").sticky}),o=e||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Nu={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:e}}function Wu(){if(Pu)return Mu;Pu=1;var t=p(),r=i().RegExp;return Mu=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}function Uu(){if(Cu)return ku;Cu=1;var t=p(),r=i().RegExp;return ku=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}function $u(){if(Fu)return Lu;Fu=1;var t,r,e=m(),n=ct(),i=qo(),o=Du(),u=Hu(),a=rr(),c=Ti(),f=$r().get,s=Wu(),l=Uu(),v=a("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,p=d,h=n("".charAt),g=n("".indexOf),y=n("".replace),b=n("".slice),S=(r=/b*/g,e(d,t=/a/,"a"),e(d,r,"a"),0!==t.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];return(S||E||w||s||l)&&(p=function(t){var r,n,u,a,s,l,m,O=this,x=f(O),A=i(t),j=x.raw;if(j)return j.lastIndex=O.lastIndex,r=e(p,j,A),O.lastIndex=j.lastIndex,r;var T=x.groups,R=w&&O.sticky,N=e(o,O),I=O.source,M=0,P=A;if(R&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),P=b(A,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&"\n"!==h(A,O.lastIndex-1))&&(I="(?: "+I+")",P=" "+P,M++),n=new RegExp("^(?:"+I+")",N)),E&&(n=new RegExp("^"+I+"$(?!\\s)",N)),S&&(u=O.lastIndex),a=e(d,R?n:O,P),R?a?(a.input=b(a.input,M),a[0]=b(a[0],M),a.index=O.lastIndex,O.lastIndex+=a[0].length):O.lastIndex=0:S&&a&&(O.lastIndex=O.global?a.index+a[0].length:u),E&&a&&a.length>1&&e(v,a[0],n,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(a[s]=void 0)}),a&&T)for(a.groups=l=c(null),s=0;s<T.length;s++)l[(m=T[s])[0]]=a[m[1]];return a}),Lu=p}function zu(){if(Bu)return _u;Bu=1;var t=rn(),r=$u();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),_u}zu();var Vu,qu,Gu,Ku,Yu,Ju,Xu,Qu={};function Zu(){if(qu)return Vu;qu=1;var t=ht(),r=ft(),e=or()("match");return Vu=function(n){var i;return t(n)&&(void 0!==(i=n[e])?!!i:"RegExp"===r(n))}}function ta(){if(Ku)return Gu;Ku=1;var t=Zu(),r=TypeError;return Gu=function(e){if(t(e))throw new r("The method doesn't accept regular expressions");return e}}function ra(){if(Ju)return Yu;Ju=1;var t=or()("match");return Yu=function(r){var e=/./;try{"/./"[r](e)}catch(n){try{return e[t]=!1,"/./"[r](e)}catch(t){}}return!1}}!function(){if(Xu)return Qu;Xu=1;var t=rn(),r=ct(),e=ta(),n=vt(),i=qo(),o=ra(),u=r("".indexOf);t({target:"String",proto:!0,forced:!o("includes")