UNPKG

chimee-helper-dom

Version:
2 lines (1 loc) 31.6 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.ChimeeHelperDom={})}(this,function(t){"use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=Math.ceil,o=Math.floor,i=function(t){return isNaN(t=+t)?0:(t>0?o:r)(t)},u=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},a=n(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),c=n(function(t){var e=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=e)}),f=(c.version,function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}),s=function(t,e,n){if(f(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},l=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t){if(!l(t))throw TypeError(t+" is not an object!");return t},h=function(t){try{return!!t()}catch(t){return!0}},p=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),d=a.document,y=l(d)&&l(d.createElement),m=function(t){return y?d.createElement(t):{}},g=!p&&!h(function(){return 7!=Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a}),_=function(t,e){if(!l(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!l(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!l(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!l(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},b=Object.defineProperty,w={f:p?Object.defineProperty:function(t,e,n){if(v(t),e=_(e,!0),v(n),g)try{return b(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},O=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=p?function(t,e,n){return w.f(t,e,O(1,n))}:function(t,e,n){return t[e]=n,t},j="prototype",E=function(t,e,n){var r,o,i,u=t&E.F,f=t&E.G,l=t&E.S,v=t&E.P,h=t&E.B,p=t&E.W,d=f?c:c[e]||(c[e]={}),y=d[j],m=f?a:l?a[e]:(a[e]||{})[j];f&&(n=e);for(r in n)(o=!u&&m&&void 0!==m[r])&&r in d||(i=o?m[r]:n[r],d[r]=f&&"function"!=typeof m[r]?n[r]:h&&o?s(i,a):p&&m[r]==i?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[j]=t[j],e}(i):v&&"function"==typeof i?s(Function.call,i):i,v&&((d.virtual||(d.virtual={}))[r]=i,t&E.R&&y&&!y[r]&&S(y,r,i)))};E.F=1,E.G=2,E.S=4,E.P=8,E.B=16,E.W=32,E.U=64,E.R=128;var P,A=E,k=S,M={}.hasOwnProperty,x=function(t,e){return M.call(t,e)},F={},L={}.toString,T=function(t){return L.call(t).slice(8,-1)},C=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==T(t)?t.split(""):Object(t)},N=function(t){return C(u(t))},R=Math.min,I=function(t){return t>0?R(i(t),9007199254740991):0},D=Math.max,q=Math.min,G="__core-js_shared__",W=a[G]||(a[G]={}),H=function(t){return W[t]||(W[t]={})},V=0,K=Math.random(),z=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++V+K).toString(36))},B=H("keys"),J=function(t){return B[t]||(B[t]=z(t))},U=(P=!1,function(t,e,n){var r,o,u,a=N(t),c=I(a.length),f=(r=n,o=c,(r=i(r))<0?D(r+o,0):q(r,o));if(P&&e!=e){for(;c>f;)if((u=a[f++])!=u)return!0}else for(;c>f;f++)if((P||f in a)&&a[f]===e)return P||f||0;return!P&&-1}),Y=J("IE_PROTO"),$=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)n!=Y&&x(r,n)&&i.push(n);for(;e.length>o;)x(r,n=e[o++])&&(~U(i,n)||i.push(n));return i},Q="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),X=Object.keys||function(t){return $(t,Q)},Z=p?Object.defineProperties:function(t,e){v(t);for(var n,r=X(e),o=r.length,i=0;o>i;)w.f(t,n=r[i++],e[n]);return t},tt=a.document,et=tt&&tt.documentElement,nt=J("IE_PROTO"),rt=function(){},ot="prototype",it=function(){var t,e=m("iframe"),n=Q.length;for(e.style.display="none",et.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),it=t.F;n--;)delete it[ot][Q[n]];return it()},ut=Object.create||function(t,e){var n;return null!==t?(rt[ot]=v(t),n=new rt,rt[ot]=null,n[nt]=t):n=it(),void 0===e?n:Z(n,e)},at=n(function(t){var e=H("wks"),n=a.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:z)("Symbol."+t))}).store=e}),ct=w.f,ft=at("toStringTag"),st=function(t,e,n){t&&!x(t=n?t:t.prototype,ft)&&ct(t,ft,{configurable:!0,value:e})},lt={};S(lt,at("iterator"),function(){return this});var vt,ht=function(t){return Object(u(t))},pt=J("IE_PROTO"),dt=Object.prototype,yt=Object.getPrototypeOf||function(t){return t=ht(t),x(t,pt)?t[pt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?dt:null},mt=at("iterator"),gt=!([].keys&&"next"in[].keys()),_t="values",bt=function(){return this},wt=function(t,e,n,r,o,i,u){c=e,f=r,(a=n).prototype=ut(lt,{next:O(1,f)}),st(a,c+" Iterator");var a,c,f,s,l,v,h=function(t){if(!gt&&t in m)return m[t];switch(t){case"keys":case _t:return function(){return new n(this,t)}}return function(){return new n(this,t)}},p=e+" Iterator",d=o==_t,y=!1,m=t.prototype,g=m[mt]||m["@@iterator"]||o&&m[o],_=!gt&&g||h(o),b=o?d?h("entries"):_:void 0,w="Array"==e?m.entries||g:g;if(w&&(v=yt(w.call(new t)))!==Object.prototype&&v.next&&st(v,p,!0),d&&g&&g.name!==_t&&(y=!0,_=function(){return g.call(this)}),u&&(gt||y||!m[mt])&&S(m,mt,_),F[e]=_,F[p]=bt,o)if(s={values:d?_:h(_t),keys:i?_:h("keys"),entries:b},u)for(l in s)l in m||k(m,l,s[l]);else A(A.P+A.F*(gt||y),e,s);return s},Ot=(vt=!0,function(t,e){var n,r,o=String(u(t)),a=i(e),c=o.length;return a<0||a>=c?vt?"":void 0:(n=o.charCodeAt(a))<55296||n>56319||a+1===c||(r=o.charCodeAt(a+1))<56320||r>57343?vt?o.charAt(a):n:vt?o.slice(a,a+2):r-56320+(n-55296<<10)+65536});wt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=Ot(e,n),this._i+=t.length,{value:t,done:!1})});var St=function(t,e){return{value:e,done:!!t}};wt(Array,"Array",function(t,e){this._t=N(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,St(1)):St(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");F.Arguments=F.Array;for(var jt=at("toStringTag"),Et="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Pt=0;Pt<Et.length;Pt++){var At=Et[Pt],kt=a[At],Mt=kt&&kt.prototype;Mt&&!Mt[jt]&&S(Mt,jt,At),F[At]=F.Array}var xt={f:at},Ft=xt.f("iterator"),Lt=n(function(t){t.exports={default:Ft,__esModule:!0}});e(Lt);var Tt=n(function(t){var e=z("meta"),n=w.f,r=0,o=Object.isExtensible||function(){return!0},i=!h(function(){return o(Object.preventExtensions({}))}),u=function(t){n(t,e,{value:{i:"O"+ ++r,w:{}}})},a=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!l(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!x(t,e)){if(!o(t))return"F";if(!n)return"E";u(t)}return t[e].i},getWeak:function(t,n){if(!x(t,e)){if(!o(t))return!0;if(!n)return!1;u(t)}return t[e].w},onFreeze:function(t){return i&&a.NEED&&o(t)&&!x(t,e)&&u(t),t}}}),Ct=(Tt.KEY,Tt.NEED,Tt.fastKey,Tt.getWeak,Tt.onFreeze,w.f),Nt=function(t){var e=c.Symbol||(c.Symbol={});"_"==t.charAt(0)||t in e||Ct(e,t,{value:xt.f(t)})},Rt={f:Object.getOwnPropertySymbols},It={f:{}.propertyIsEnumerable},Dt=Array.isArray||function(t){return"Array"==T(t)},qt=Q.concat("length","prototype"),Gt={f:Object.getOwnPropertyNames||function(t){return $(t,qt)}},Wt=Gt.f,Ht={}.toString,Vt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kt={f:function(t){return Vt&&"[object Window]"==Ht.call(t)?function(t){try{return Wt(t)}catch(t){return Vt.slice()}}(t):Wt(N(t))}},zt=Object.getOwnPropertyDescriptor,Bt={f:p?zt:function(t,e){if(t=N(t),e=_(e,!0),g)try{return zt(t,e)}catch(t){}if(x(t,e))return O(!It.f.call(t,e),t[e])}},Jt=Tt.KEY,Ut=Bt.f,Yt=w.f,$t=Kt.f,Qt=a.Symbol,Xt=a.JSON,Zt=Xt&&Xt.stringify,te="prototype",ee=at("_hidden"),ne=at("toPrimitive"),re={}.propertyIsEnumerable,oe=H("symbol-registry"),ie=H("symbols"),ue=H("op-symbols"),ae=Object[te],ce="function"==typeof Qt,fe=a.QObject,se=!fe||!fe[te]||!fe[te].findChild,le=p&&h(function(){return 7!=ut(Yt({},"a",{get:function(){return Yt(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Ut(ae,e);r&&delete ae[e],Yt(t,e,n),r&&t!==ae&&Yt(ae,e,r)}:Yt,ve=function(t){var e=ie[t]=ut(Qt[te]);return e._k=t,e},he=ce&&"symbol"==typeof Qt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Qt},pe=function(t,e,n){return t===ae&&pe(ue,e,n),v(t),e=_(e,!0),v(n),x(ie,e)?(n.enumerable?(x(t,ee)&&t[ee][e]&&(t[ee][e]=!1),n=ut(n,{enumerable:O(0,!1)})):(x(t,ee)||Yt(t,ee,O(1,{})),t[ee][e]=!0),le(t,e,n)):Yt(t,e,n)},de=function(t,e){v(t);for(var n,r=function(t){var e=X(t),n=Rt.f;if(n)for(var r,o=n(t),i=It.f,u=0;o.length>u;)i.call(t,r=o[u++])&&e.push(r);return e}(e=N(e)),o=0,i=r.length;i>o;)pe(t,n=r[o++],e[n]);return t},ye=function(t){var e=re.call(this,t=_(t,!0));return!(this===ae&&x(ie,t)&&!x(ue,t))&&(!(e||!x(this,t)||!x(ie,t)||x(this,ee)&&this[ee][t])||e)},me=function(t,e){if(t=N(t),e=_(e,!0),t!==ae||!x(ie,e)||x(ue,e)){var n=Ut(t,e);return!n||!x(ie,e)||x(t,ee)&&t[ee][e]||(n.enumerable=!0),n}},ge=function(t){for(var e,n=$t(N(t)),r=[],o=0;n.length>o;)x(ie,e=n[o++])||e==ee||e==Jt||r.push(e);return r},_e=function(t){for(var e,n=t===ae,r=$t(n?ue:N(t)),o=[],i=0;r.length>i;)!x(ie,e=r[i++])||n&&!x(ae,e)||o.push(ie[e]);return o};ce||(k((Qt=function(){if(this instanceof Qt)throw TypeError("Symbol is not a constructor!");var t=z(arguments.length>0?arguments[0]:void 0),e=function(n){this===ae&&e.call(ue,n),x(this,ee)&&x(this[ee],t)&&(this[ee][t]=!1),le(this,t,O(1,n))};return p&&se&&le(ae,t,{configurable:!0,set:e}),ve(t)})[te],"toString",function(){return this._k}),Bt.f=me,w.f=pe,Gt.f=Kt.f=ge,It.f=ye,Rt.f=_e,xt.f=function(t){return ve(at(t))}),A(A.G+A.W+A.F*!ce,{Symbol:Qt});for(var be="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),we=0;be.length>we;)at(be[we++]);for(var Oe=X(at.store),Se=0;Oe.length>Se;)Nt(Oe[Se++]);A(A.S+A.F*!ce,"Symbol",{for:function(t){return x(oe,t+="")?oe[t]:oe[t]=Qt(t)},keyFor:function(t){if(!he(t))throw TypeError(t+" is not a symbol!");for(var e in oe)if(oe[e]===t)return e},useSetter:function(){se=!0},useSimple:function(){se=!1}}),A(A.S+A.F*!ce,"Object",{create:function(t,e){return void 0===e?ut(t):de(ut(t),e)},defineProperty:pe,defineProperties:de,getOwnPropertyDescriptor:me,getOwnPropertyNames:ge,getOwnPropertySymbols:_e}),Xt&&A(A.S+A.F*(!ce||h(function(){var t=Qt();return"[null]"!=Zt([t])||"{}"!=Zt({a:t})||"{}"!=Zt(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(l(e)||void 0!==t)&&!he(t))return Dt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!he(e))return e}),r[1]=e,Zt.apply(Xt,r)}}),Qt[te][ne]||S(Qt[te],ne,Qt[te].valueOf),st(Qt,"Symbol"),st(Math,"Math",!0),st(a.JSON,"JSON",!0),Nt("asyncIterator"),Nt("observable");var je=c.Symbol,Ee=n(function(t){t.exports={default:je,__esModule:!0}});e(Ee);var Pe=e(n(function(t,e){e.__esModule=!0;var n=i(Lt),r=i(Ee),o="function"==typeof r.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};function i(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===o(n.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":o(t)}}));!function(t,e){var n=(c.Object||{})[t]||Object[t],r={};r[t]=e(n),A(A.S+A.F*h(function(){n(1)}),"Object",r)}("keys",function(){return function(t){return X(ht(t))}});var Ae=c.Object.keys;e(n(function(t){t.exports={default:Ae,__esModule:!0}}));var ke=Math.floor;A(A.S,"Number",{isInteger:function(t){return!l(t)&&isFinite(t)&&ke(t)===t}});var Me=c.Number.isInteger;e(n(function(t){t.exports={default:Me,__esModule:!0}}));var xe="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Fe="["+xe+"]",Le=RegExp("^"+Fe+Fe+"*"),Te=RegExp(Fe+Fe+"*$"),Ce=function(t,e,n){var r={},o=h(function(){return!!xe[t]()||"​…"!="​…"[t]()}),i=r[t]=o?e(Ne):xe[t];n&&(r[n]=i),A(A.P+A.F*o,"String",r)},Ne=Ce.trim=function(t,e){return t=String(u(t)),1&e&&(t=t.replace(Le,"")),2&e&&(t=t.replace(Te,"")),t},Re=Ce,Ie=a.parseFloat,De=Re.trim,qe=1/Ie(xe+"-0")!=-1/0?function(t){var e=De(String(t),3),n=Ie(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Ie;A(A.S+A.F*(Number.parseFloat!=qe),"Number",{parseFloat:qe});var Ge=parseFloat;e(n(function(t){t.exports={default:Ge,__esModule:!0}}));function We(t){return Array.isArray(t)}function He(t){return"function"==typeof t}function Ve(t){return Object(t)===t&&"[object Object]"===String(t)&&!He(t)&&!We(t)}function Ke(t){return"boolean"==typeof t}var ze=e(n(function(t,e){e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}}));A(A.S+A.F*!p,"Object",{defineProperty:w.f});var Be=c.Object,Je=function(t,e,n){return Be.defineProperty(t,e,n)},Ue=n(function(t){t.exports={default:Je,__esModule:!0}});e(Ue);var Ye=e(n(function(t,e){e.__esModule=!0;var n,r=(n=Ue,n&&n.__esModule?n:{default:n});e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()})),$e=Object.assign,Qe=!$e||h(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=$e({},t)[n]||Object.keys($e({},e)).join("")!=r})?function(t,e){for(var n=ht(t),r=arguments.length,o=1,i=Rt.f,u=It.f;r>o;)for(var a,c=C(arguments[o++]),f=i?X(c).concat(i(c)):X(c),s=f.length,l=0;s>l;)u.call(c,a=f[l++])&&(n[a]=c[a]);return n}:$e;A(A.S+A.F,"Object",{assign:Qe});var Xe=c.Object.assign,Ze=e(n(function(t){t.exports={default:Xe,__esModule:!0}}));A(A.S,"Object",{create:ut});var tn=c.Object,en=function(t,e){return tn.create(t,e)},nn=e(n(function(t){t.exports={default:en,__esModule:!0}})),rn=nn(null);rn.count=0;function on(t,e){var n=t.__evt_id;n||(Object.defineProperty(t,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=t.__evt_id=++rn.count);var r=n+"_"+e,o=rn[r];return o||(o=rn[r]=[]),o}function un(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments[4];He(r)&&!o&&(o=r,r=void 0);var i=[n,void 0,r];r&&!o&&(o=function(){an(t,e,n,r);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];n.apply(t,i)}),o&&(i[1]=o),on(t,e).push(i)}function an(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=on(t,e);if(n||r){var i=-1,u=void 0;return o.find(function(t,e){if((!n||t[0]===n)&&(!r||t[2]))return i=e,u=t[1],!0}),-1!==i&&o.splice(i,1),u}o.length=0}!function(){function t(e,n){var r=this;if(ze(this,t),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,e){if("object"!==(void 0===e?"undefined":Pe(e)))throw new Error("CusEvent target are not object");this.__target=e,n&&["on","once","off","emit"].forEach(function(t){e[t]=r[t]})}}Ye(t,[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return un(this.__target,t,e,n),this}},{key:"once",value:function(t,e){return this.on(t,e,!0)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return an(this.__target,t,e,n),this}},{key:"emit",value:function(t,e){return function(t,e,n){var r=nn(null);r.type=e,r.target=t,n&&Ze(r,Ve(n)?n:{data:n}),on(t,e).forEach(function(e){(e[1]||e[0]).apply(t,[r])})}(this.__target,t,{data:e}),this}}])}();var cn=function(t,e,n,r){try{return r?e(v(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&v(o.call(t)),e}},fn=at("iterator"),sn=Array.prototype,ln=function(t){return void 0!==t&&(F.Array===t||sn[fn]===t)},vn=function(t,e,n){e in t?w.f(t,e,O(0,n)):t[e]=n},hn=at("toStringTag"),pn="Arguments"==T(function(){return arguments}()),dn=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),hn))?n:pn?T(e):"Object"==(r=T(e))&&"function"==typeof e.callee?"Arguments":r},yn=at("iterator"),mn=c.getIteratorMethod=function(t){if(void 0!=t)return t[yn]||t["@@iterator"]||F[dn(t)]},gn=at("iterator"),_n=!1;try{[7][gn]().return=function(){_n=!0}}catch(t){}var bn=function(t,e){if(!e&&!_n)return!1;var n=!1;try{var r=[7],o=r[gn]();o.next=function(){return{done:n=!0}},r[gn]=function(){return o},t(r)}catch(t){}return n};A(A.S+A.F*!bn(function(t){}),"Array",{from:function(t){var e,n,r,o,i=ht(t),u="function"==typeof this?this:Array,a=arguments.length,c=a>1?arguments[1]:void 0,f=void 0!==c,l=0,v=mn(i);if(f&&(c=s(c,a>2?arguments[2]:void 0,2)),void 0==v||u==Array&&ln(v))for(n=new u(e=I(i.length));e>l;l++)vn(n,l,f?c(i[l],l):i[l]);else for(o=v.call(i),n=new u;!(r=o.next()).done;l++)vn(n,l,f?cn(o,c,[r.value,l],!0):r.value);return n.length=l,n}});var wn=c.Array.from,On=n(function(t){t.exports={default:wn,__esModule:!0}}),Sn=e(On);e(n(function(t,e){e.__esModule=!0;var n,r=(n=On,n&&n.__esModule?n:{default:n});e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,r.default)(t)}}));var jn,En,Pn,An=n(function(t){var e={},n={},r=t.exports=function(t,r,o,i,u){var a,c,f,l,h=u?function(){return t}:mn(t),p=s(o,i,r?2:1),d=0;if("function"!=typeof h)throw TypeError(t+" is not iterable!");if(ln(h)){for(a=I(t.length);a>d;d++)if((l=r?p(v(c=t[d])[0],c[1]):p(t[d]))===e||l===n)return l}else for(f=h.call(t);!(c=f.next()).done;)if((l=cn(f,p,c.value,r))===e||l===n)return l};r.BREAK=e,r.RETURN=n}),kn=at("species"),Mn=function(t,e){var n,r=v(t).constructor;return void 0===r||void 0==(n=v(r)[kn])?e:f(n)},xn=a.process,Fn=a.setImmediate,Ln=a.clearImmediate,Tn=a.MessageChannel,Cn=a.Dispatch,Nn=0,Rn={},In="onreadystatechange",Dn=function(){var t=+this;if(Rn.hasOwnProperty(t)){var e=Rn[t];delete Rn[t],e()}},qn=function(t){Dn.call(t.data)};Fn&&Ln||(Fn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Rn[++Nn]=function(){!function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}t.apply(n,e)}("function"==typeof t?t:Function(t),e)},jn(Nn),Nn},Ln=function(t){delete Rn[t]},"process"==T(xn)?jn=function(t){xn.nextTick(s(Dn,t,1))}:Cn&&Cn.now?jn=function(t){Cn.now(s(Dn,t,1))}:Tn?(Pn=(En=new Tn).port2,En.port1.onmessage=qn,jn=s(Pn.postMessage,Pn,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(jn=function(t){a.postMessage(t+"","*")},a.addEventListener("message",qn,!1)):jn=In in m("script")?function(t){et.appendChild(m("script"))[In]=function(){et.removeChild(this),Dn.call(t)}}:function(t){setTimeout(s(Dn,t,1),0)});var Gn={set:Fn,clear:Ln},Wn=Gn.set,Hn=a.MutationObserver||a.WebKitMutationObserver,Vn=a.process,Kn=a.Promise,zn="process"==T(Vn);var Bn,Jn,Un,Yn,$n={f:function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=f(e),this.reject=f(n)}(t)}},Qn=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},Xn=function(t,e){if(v(t),l(e)&&e.constructor===t)return e;var n=$n.f(t);return(0,n.resolve)(e),n.promise},Zn=at("species"),tr=Gn.set,er=function(){var t,e,n,r=function(){var r,o;for(zn&&(r=Vn.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(zn)n=function(){Vn.nextTick(r)};else if(!Hn||a.navigator&&a.navigator.standalone)if(Kn&&Kn.resolve){var o=Kn.resolve();n=function(){o.then(r)}}else n=function(){Wn.call(a,r)};else{var i=!0,u=document.createTextNode("");new Hn(r).observe(u,{characterData:!0}),n=function(){u.data=i=!i}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}(),nr="Promise",rr=a.TypeError,or=a.process,ir=a[nr],ur="process"==dn(or),ar=function(){},cr=Jn=$n.f,fr=!!function(){try{var t=ir.resolve(1),e=(t.constructor={})[at("species")]=function(t){t(ar,ar)};return(ur||"function"==typeof PromiseRejectionEvent)&&t.then(ar)instanceof e}catch(t){}}(),sr=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},lr=function(t,e){if(!t._n){t._n=!0;var n=t._c;er(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u=o?e.ok:e.fail,a=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&pr(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&f.exit()),n===e.promise?c(rr("Promise-chain cycle")):(i=sr(n))?i.call(n,a,c):a(n)):c(r)}catch(t){c(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&vr(t)})}},vr=function(t){tr.call(a,function(){var e,n,r,o=t._v,i=hr(t);if(i&&(e=Qn(function(){ur?or.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=ur||hr(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},hr=function(t){return 1!==t._h&&0===(t._a||t._c).length},pr=function(t){tr.call(a,function(){var e;ur?or.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},dr=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),lr(e,!0))},yr=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw rr("Promise can't be resolved itself");(e=sr(t))?er(function(){var r={_w:n,_d:!1};try{e.call(t,s(yr,r,1),s(dr,r,1))}catch(t){dr.call(r,t)}}):(n._v=t,n._s=1,lr(n,!1))}catch(t){dr.call({_w:n,_d:!1},t)}}};fr||(ir=function(t){!function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!")}(this,ir,nr,"_h"),f(t),Bn.call(this);try{t(s(yr,this,1),s(dr,this,1))}catch(t){dr.call(this,t)}},(Bn=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:S(t,r,e[r]);return t}(ir.prototype,{then:function(t,e){var n=cr(Mn(this,ir));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=ur?or.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&lr(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Un=function(){var t=new Bn;this.promise=t,this.resolve=s(yr,t,1),this.reject=s(dr,t,1)},$n.f=cr=function(t){return t===ir||t===Yn?new Un(t):Jn(t)}),A(A.G+A.W+A.F*!fr,{Promise:ir}),st(ir,nr),function(t){var e="function"==typeof c[t]?c[t]:a[t];p&&e&&!e[Zn]&&w.f(e,Zn,{configurable:!0,get:function(){return this}})}(nr),Yn=c[nr],A(A.S+A.F*!fr,nr,{reject:function(t){var e=cr(this);return(0,e.reject)(t),e.promise}}),A(A.S+!0*A.F,nr,{resolve:function(t){return Xn(this===Yn?ir:this,t)}}),A(A.S+A.F*!(fr&&bn(function(t){ir.all(t).catch(ar)})),nr,{all:function(t){var e=this,n=cr(e),r=n.resolve,o=n.reject,i=Qn(function(){var n=[],i=0,u=1;An(t,!1,function(t){var a=i++,c=!1;n.push(void 0),u++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=cr(e),r=n.reject,o=Qn(function(){An(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}}),A(A.P+A.R,"Promise",{finally:function(t){var e=Mn(this,c.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return Xn(e,t()).then(function(){return n})}:t,n?function(n){return Xn(e,t()).then(function(){throw n})}:t)}}),A(A.S,"Promise",{try:function(t){var e=$n.f(this),n=Qn(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}});var mr=c.Promise;e(n(function(t){t.exports={default:mr,__esModule:!0}}));var gr="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window);gr&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),gr&&(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame);var _r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},br=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),wr=gr?document.createElement("div"):{},Or="innerText";"textContent"in wr&&(Or="textContent");var Sr=Array.prototype;function jr(t,e){return t.getAttribute(e)}function Er(t,e,n){void 0===n?t.removeAttribute(e):t.setAttribute(e,n)}function Pr(t,e){if(e&&(e=e.trim())){var n=e.split(/\s+/);if(t.classList)n.forEach(function(e){return t.classList.add(e)});else{var r=" "+(t.className||"")+" ";n.forEach(function(t){-1===r.indexOf(" "+t+" ")&&(r+=" "+t)}),t.className=r.trim()}}}function Ar(t,e){if(e&&(e=e.trim())){var n=e.split(/\s+/);if(t.classList)n.forEach(function(e){return t.classList.remove(e)});else{var r=" "+t.className+" ";n.forEach(function(t){for(var e=" "+t+" ";-1!==r.indexOf(e);)r=r.replace(e," ")}),t.className=r.trim()}}}function kr(t,e){return new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t.className)}t.supportsPassive=!1;try{var Mr=Object.defineProperty({},"passive",{get:function(){t.supportsPassive=!0}});gr&&window.addEventListener("test",null,Mr)}catch(t){console.error(t)}function xr(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(void 0!==i&&!Ke(i)&&t.supportsPassive&&(i={passive:!0}),o){var u=an(e,n+"_once",r);u&&(r=u)}e.removeEventListener(n,r,i)}function Fr(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(void 0!==i&&!Ke(i)&&t.supportsPassive&&(i={passive:!0}),o){var u=r;un(e,n+"_once",u,r=function(){for(var t=arguments.length,a=Array(t),c=0;c<t;c++)a[c]=arguments[c];u.apply(this,a),xr(e,n,r,o,i)})}e.addEventListener(n,r,i)}function Lr(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];void 0!==i&&!Ke(i)&&t.supportsPassive&&(i={passive:!0});var u=function(t){var r=Dr(t.target||t.srcElement,e,!0),i=Rr(n,e,!0),u=void 0;i.find?u=i.find(function(t){return r.find(function(e){return t===e})}):i.forEach(function(t){return!u&&r.forEach(function(e){u||t!==e||(u=e)})}),u&&o.apply(u,arguments)};un(e,r+"_delegate_"+n,o,u),e.addEventListener(r,u,i)}function Tr(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];void 0!==i&&!Ke(i)&&t.supportsPassive&&(i={passive:!0});var u=an(e,r+"_delegate_"+n,o);u&&e.removeEventListener(r,u,i)}function Cr(t,e){return(t.currentStyle||document.defaultView.getComputedStyle(t,null))[e]||t.style[e]}function Nr(t,e,n){if(Ve(e))for(var r in e)Nr(t,r,e[r]);else t.style[e]=n}function Rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments[2],r=e.querySelectorAll(t);return n?Array.from(r):r}function Ir(t){t.parentNode.removeChild(t)}function Dr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],o=[];for(n&&o.push(t);t&&t.parentNode!==e;)(t=t.parentNode)&&o.push(t);return r&&o.push(e),o}var qr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;_r(this,t);this.selector=e;var r=void 0;e&&e.constructor===NodeList?r=Sn(e):We(e)?r=e:"string"==typeof(o=e)||o instanceof String?0===e.indexOf("<")?(wr.innerHTML=e,r=Rr("*",wr,!0)):r=Rr(e,n,!0):r=[e];var o;Object.assign(this,r),this.length=r.length}return br(t,[{key:"each",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return Sr.forEach.apply(this,e),this}},{key:"push",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return Sr.push.apply(this,e),this}},{key:"splice",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return Gr(Sr.splice.apply(this,e))}},{key:"find",value:function(t){var e=[];this.each(function(n){e=e.concat(Rr(t,n,!0))});var n=Gr(e);return n.parent=this,n.selector=t,n}},{key:"append",value:function(t){var e=Gr(t),n=this[0];return e.each(function(t){return n.appendChild(t)}),this}},{key:"appendTo",value:function(t){return Gr(t).append(this),this}},{key:"text",value:function(t){return 0===arguments.length?this[0][Or]:this.each(function(e){e[Or]=t})}},{key:"html",value:function(t){return 0===arguments.length?this[0].innerHTML:this.each(function(e){e.innerHTML=t})}},{key:"attr",value:function(t,e){return 1===arguments.length?jr(this[0],t):this.each(function(n){return Er(n,t,e)})}},{key:"data",value:function(t,e){return 0===arguments.length?this[0].dataset||{}:1===arguments.length?(this[0].dataset||{})[t]:this.each(function(n){(n.dataset||(n.dataset={}))[t]=e})}},{key:"css",value:function(t,e){return 1!==arguments.length||Ve(t)?this.each(function(n){return Nr(n,t,e)}):Cr(this[0],t)}},{key:"addClass",value:function(t){return this.each(function(e){return Pr(e,t)})}},{key:"removeClass",value:function(t){return this.each(function(e){return Ar(e,t)})}},{key:"hasClass",value:function(t){return kr(this[0],t)}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return Fr(o,t,e,n,r)})}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return xr(o,t,e,n,r)})}},{key:"delegate",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return Lr(o,t,e,n,r)})}},{key:"undelegate",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.each(function(o){return Tr(o,t,e,n,r)})}},{key:"remove",value:function(){return this.each(function(t){return Ir(t)})}}]),t}();function Gr(t,e){return t.constructor===qr?t:new qr(t,e)}t.getAttr=jr,t.setAttr=Er,t.addClassName=Pr,t.removeClassName=Ar,t.hasClassName=kr,t.removeEvent=xr,t.addEvent=Fr,t.addDelegate=Lr,t.removeDelegate=Tr,t.getStyle=Cr,t.setStyle=Nr,t.query=Rr,t.removeEl=Ir,t.findParents=Dr,t.NodeWrap=qr,t.$=Gr,Object.defineProperty(t,"__esModule",{value:!0})});