UNPKG

rabbit-design

Version:

A lightweight UI plugin library written in TypeScript and based on JavaScript

1 lines 126 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rabbit",[],e):"object"==typeof exports?exports.rabbit=e():t.rabbit=e()}(self,(function(){var __webpack_modules__={484:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",n="minute",o="hour",r="day",i="week",a="month",s="quarter",c="year",l="date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(t,e,n){var o=String(t);return!o||o.length>=e?t:""+Array(e+1-o.length).join(n)+t},h={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),o=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+f(o,2,"0")+":"+f(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var o=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(o,a),i=n-r<0,s=e.clone().add(o+(i?-1:1),a);return+(-(o+(n-r)/(i?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return{M:a,y:c,w:i,d:r,D:l,h:o,m:n,s:e,ms:t,Q:s}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",m={};m[_]=p;var y=function(t){return t instanceof w},v=function(t,e,n){var o;if(!t)return _;if("string"==typeof t)m[t]&&(o=t),e&&(m[t]=e,o=t);else{var r=t.name;m[r]=t,o=r}return!n&&o&&(_=o),o||!n&&_},g=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new w(n)},b=h;b.l=v,b.i=y,b.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function p(t){this.$L=v(t.locale,null,!0),this.parse(t)}var f=p.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var o=e.match(u);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return b},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=g(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return g(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<g(t)},f.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,s){var u=this,d=!!b.u(s)||s,p=b.p(t),f=function(t,e){var n=b.w(u.$u?Date.UTC(u.$y,e,t):new Date(u.$y,e,t),u);return d?n:n.endOf(r)},h=function(t,e){return b.w(u.toDate()[t].apply(u.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),u)},_=this.$W,m=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case c:return d?f(1,0):f(31,11);case a:return d?f(1,m):f(0,m+1);case i:var g=this.$locale().weekStart||0,w=(_<g?_+7:_)-g;return f(d?y-w:y+(6-w),m);case r:case l:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case n:return h(v+"Seconds",2);case e:return h(v+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(i,s){var u,d=b.p(i),p="set"+(this.$u?"UTC":""),f=(u={},u[r]=p+"Date",u[l]=p+"Date",u[a]=p+"Month",u[c]=p+"FullYear",u[o]=p+"Hours",u[n]=p+"Minutes",u[e]=p+"Seconds",u[t]=p+"Milliseconds",u)[d],h=d===r?this.$D+(s-this.$W):s;if(d===a||d===c){var _=this.clone().set(l,1);_.$d[f](h),_.init(),this.$d=_.set(l,Math.min(this.$D,_.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[b.p(t)]()},f.add=function(t,s){var l,u=this;t=Number(t);var d=b.p(s),p=function(e){var n=g(u);return b.w(n.date(n.date()+Math.round(e*t)),u)};if(d===a)return this.set(a,this.$M+t);if(d===c)return this.set(c,this.$y+t);if(d===r)return p(1);if(d===i)return p(7);var f=(l={},l[n]=6e4,l[o]=36e5,l[e]=1e3,l)[d]||1,h=this.$d.getTime()+t*f;return b.w(h,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),r=this.$locale(),i=this.$H,a=this.$m,s=this.$M,c=r.weekdays,l=r.months,u=function(t,o,r,i){return t&&(t[o]||t(e,n))||r[o].substr(0,i)},p=function(t){return b.s(i%12||12,t,"0")},f=r.meridiem||function(t,e,n){var o=t<12?"AM":"PM";return n?o.toLowerCase():o},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:u(r.monthsShort,s,l,3),MMMM:u(l,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:u(r.weekdaysMin,this.$W,c,2),ddd:u(r.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:b.s(i,2,"0"),h:p(1),hh:p(2),a:f(i,a,!0),A:f(i,a,!1),m:String(a),mm:b.s(a,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return n.replace(d,(function(t,e){return e||h[t]||o.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,l,u){var d,p=b.p(l),f=g(t),h=6e4*(f.utcOffset()-this.utcOffset()),_=this-f,m=b.m(this,f);return m=(d={},d[c]=m/12,d[a]=m,d[s]=m/3,d[i]=(_-h)/6048e5,d[r]=(_-h)/864e5,d[o]=_/36e5,d[n]=_/6e4,d[e]=_/1e3,d)[p]||_,u?m:b.a(m)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return m[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),o=v(t,e,!0);return o&&(n.$L=o),n},f.clone=function(){return b.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},p}(),C=w.prototype;return g.prototype=C,[["$ms",t],["$s",e],["$m",n],["$H",o],["$W",r],["$M",a],["$y",c],["$D",l]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),g.extend=function(t,e){return t.$i||(t(e,w,g),t.$i=!0),g},g.locale=v,g.isDayjs=y,g.unix=function(t){return g(1e3*t)},g.en=m[_],g.Ls=m,g.p={},g}()},852:function(t,e,n){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){switch(e){case"W":return t+"周";default:return t+"日"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return t.locale(e,null,!0),e}(n(484))},110:function(t){t.exports=function(){"use strict";return function(t,e,n){t=t||{};var o=e.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(t,e,n,r){return o.fromToBase(t,e,n,r)}n.en.relativeTime=r,o.fromToBase=function(e,o,i,a,s){for(var c,l,u,d=i.$locale().relativeTime||r,p=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=p.length,h=0;h<f;h+=1){var _=p[h];_.d&&(c=a?n(e).diff(i,_.d,!0):i.diff(e,_.d,!0));var m=(t.rounding||Math.round)(Math.abs(c));if(u=c>0,m<=_.r||!_.r){m<=1&&h>0&&(_=p[h-1]);var y=d[_.l];s&&(m=s(""+m)),l="string"==typeof y?y.replace("%d",m):y(m,o,_.l,u);break}}if(o)return l;var v=u?d.future:d.past;return"function"==typeof v?v(l):v.replace("%s",l)},o.to=function(t,e){return i(t,e,this,!0)},o.from=function(t,e){return i(t,e,this)};var a=function(t){return t.$u?n.utc():n()};o.toNow=function(t){return this.to(a(this),t)},o.fromNow=function(t){return this.from(a(this),t)}}}()},367:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return an}}),e={},n.r(e),n.d(e,{Alert:function(){return Ot},Avatar:function(){return Tt},BackTop:function(){return Et},Badge:function(){return Mt},Breadcrumb:function(){return qt},Button:function(){return Pt},Card:function(){return It},Carousel:function(){return jt},Collapse:function(){return Bt},Divider:function(){return $t},Drawer:function(){return zt},Dropdown:function(){return Yt},Empty:function(){return Gt},Jumbotron:function(){return Qt},Loading:function(){return le},Message:function(){return ye},Modal:function(){return be},Notice:function(){return xe},PageHeader:function(){return Me},Poptip:function(){return qe},Progress:function(){return Pe},Radio:function(){return Ie},Result:function(){return je},Skeleton:function(){return Re},Spin:function(){return $e},Steps:function(){return Ve},Switch:function(){return Ke},Tabs:function(){return Fe},Tag:function(){return Xe},Time:function(){return Qe},Timeline:function(){return nn},Tooltip:function(){return rn}});var o=n(723);function r(t){console.error("[Rabbit] Error: "+t)}function i(){function t(t){t.forEach((function(t){var e=t.dataset.popperPlacement;t.getAttribute("x-placement")!=e&&t.setAttribute("x-placement",e)}))}var e=(0,o.mh)(".rab-tooltip-popper",{all:!0}),n=(0,o.mh)(".rab-poptip-popper",{all:!0});0<e.length&&window.addEventListener("scroll",(function(){return t(e)})),0<n.length&&window.addEventListener("scroll",(function(){return t(n)}))}function a(t,e,n,o){function r(){var e=t.getAttribute("x-placement"),n=t.dataset.popperPlacement;n&&e!==n&&t.setAttribute("x-placement",n)}n&&("hover"===e?n.addEventListener(e,(function(t){t.stopPropagation(),o?setTimeout((function(){r()}),o):r()})):"click"===e?n.addEventListener("click",(function(t){t.stopPropagation(),r()})):"focus"===e&&n.addEventListener("mousedown",(function(t){t.stopPropagation(),r()}))),r()}function s(t,e){var n=e.enterCls,o=e.leaveCls,r=e.inOrOut,i=e.rmCls,a=e.timeout,s=e.hiddenParent;e=function(e){i&&setTimeout((function(){e&&t.classList.remove(e)}),a)},"in"===r?(s&&(s.style.display="",s.style.opacity="1"),"none"===t.style.display&&(t.style.display=""),"0"===t.style.opacity&&(t.style.opacity="1"),t.classList.add(n),e(n)):"out"===r&&(t.classList.contains(n)?t.classList.replace(n,o):t.classList.add(o),e(o),setTimeout((function(){s&&(s.style.display="none"),t.style.display="none",t.style.opacity="0"}),a))}function c(t){return 1<t.childElementCount&&(r("The <"+t.tagName.toLowerCase()+"> tag must have a parent element"),1)}function l(t){var e=void 0!==(n=t.scroll)&&n,n=void 0!==(r=t.lock)&&r,r=t.node;t=t.tagName,n&&!e?((0,o.oJ)(document.body,"paddingRight","17px"),(0,o.oJ)(document.body,"overflow","hidden")):((0,o.oJ)(document.body,"paddingRight",""),(0,o.oJ)(document.body,"overflow","")),!(e=null==r?void 0:r.previousElementSibling)||(r=e.tagName.toLocaleLowerCase().replace(/r-/,""))===t&&"true"===e.dataset[r+"Visable"]&&l({scroll:!1,lock:!0})}function u(t,e){var n,o,r=t;return"object"==typeof e&&(r=e.duration||0===e.duration?e.duration:t),n=r,o=null,new Promise((function(t){o=setTimeout(t,1e3*n),0===n&&clearTimeout(o)}))}function d(t){return{width:(t=t.getBoundingClientRect()).width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function p(t){return"[object Window]"===t.toString()?t:(t=t.ownerDocument)&&t.defaultView||window}function f(t){return{scrollLeft:(t=p(t)).pageXOffset,scrollTop:t.pageYOffset}}function h(t){return t instanceof p(t).Element||t instanceof Element}function _(t){return t instanceof p(t).HTMLElement||t instanceof HTMLElement}function m(t){return t?(t.nodeName||"").toLowerCase():null}function y(t){return((h(t)?t.ownerDocument:t.document)||window.document).documentElement}function v(t){return d(y(t)).left+f(t).scrollLeft}function g(t){return p(t).getComputedStyle(t)}function b(t){var e=(n=g(t)).overflow,n=(t=n.overflowX,n.overflowY);return/auto|scroll|overlay|hidden/.test(e+n+t)}function w(t,e,n){void 0===n&&(n=!1);var o=y(e),r=d(t),i=_(e),a={scrollLeft:0,scrollTop:0};return t={x:0,y:0},!i&&(i||n)||("body"===m(e)&&!b(o)||(a=(i=e)!==p(i)&&_(i)?{scrollLeft:(n=i).scrollLeft,scrollTop:n.scrollTop}:f(i)),_(e)?((t=d(e)).x+=e.clientLeft,t.y+=e.clientTop):o&&(t.x=v(o))),{x:r.left+a.scrollLeft-t.x,y:r.top+a.scrollTop-t.y,width:r.width,height:r.height}}function C(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Z(t){return"html"===m(t)?t:t.assignedSlot||t.parentNode||t.host||y(t)}function k(t,e){void 0===e&&(e=[]);var n=function t(e){return 0<=["html","body","#document"].indexOf(m(e))?e.ownerDocument.body:_(e)&&b(e)?e:t(Z(e))}(t),o="body"===m(n);return t=p(n),n=o?[t].concat(t.visualViewport||[],b(n)?n:[]):n,e=e.concat(n),o?e:e.concat(k(Z(n)))}function O(t){if(!_(t)||"fixed"===g(t).position)return null;var e=t.offsetParent;return e&&(t=y(e),"body"===m(e)&&"static"===g(e).position&&"static"!==g(t).position)?t:e}function S(t){for(var e=p(t),n=O(t);n&&0<=["table","td","th"].indexOf(m(n))&&"static"===g(n).position;)n=O(n);return(!n||"body"!==m(n)||"static"!==g(n).position)&&(n||function(t){for(var e=Z(t);_(e)&&["html","body"].indexOf(m(e))<0;){var n=g(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t))||e}var T="top",x="bottom",E="right",N="left",M="auto",L=[T,x,E,N],q="start",A="end",P="viewport",D="popper",I=L.reduce((function(t,e){return t.concat([e+"-"+q,e+"-"+A])}),[]),H=[].concat(L,[M]).reduce((function(t,e){return t.concat([e,e+"-"+q,e+"-"+A])}),[]),j=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],J={placement:"bottom",modifiers:[],strategy:"absolute"};function R(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}var B={passive:!0};function W(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function U(t){return 0<=["top","bottom"].indexOf(t)?"x":"y"}function V(t){var e,n=t.reference,o=t.element,r=(t=(r=t.placement)?W(r):null,r?$(r):null),i=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2;switch(t){case T:e={x:i,y:n.y-o.height};break;case x:e={x:i,y:n.y+n.height};break;case E:e={x:n.x+n.width,y:a};break;case N:e={x:n.x-o.width,y:a};break;default:e={x:n.x,y:n.y}}var s=t?U(t):null;if(null!=s){var c="y"===s?"height":"width";switch(r){case q:e[s]=e[s]-(n[c]/2-o[c]/2);break;case A:e[s]=e[s]+(n[c]/2-o[c]/2)}}return e}var z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(t){var e=t.popper,n=t.popperRect,o=t.placement,r=t.offsets,i=t.position,a=t.gpuAcceleration,s=t.adaptive,c=void 0===(f=(h=t.roundOffsets?(l=(d=r).x,u=d.y,d=window.devicePixelRatio||1,{x:Math.round(l*d)/d||0,y:Math.round(u*d)/d||0}):r).x)?0:f,l=void 0===(t=h.y)?0:t,u=r.hasOwnProperty("x"),d=r.hasOwnProperty("y"),f=N,h=T;return t=window,s&&((r=S(e))===p(e)&&(r=y(e)),o===T&&(h=x,l-=r.clientHeight-n.height,l*=a?1:-1),o===N&&(f=E,c-=r.clientWidth-n.width,c*=a?1:-1)),s=Object.assign({position:i},s&&z),a?Object.assign(Object.assign({},s),{},((a={})[h]=d?"0":"",a[f]=u?"0":"",a.transform=(t.devicePixelRatio||1)<2?"translate("+c+"px, "+l+"px)":"translate3d("+c+"px, "+l+"px, 0)",a)):Object.assign(Object.assign({},s),{},((s={})[h]=d?l+"px":"",s[f]=u?c+"px":"",s.transform="",s))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function F(t){return t.replace(/left|right|bottom|top/g,(function(t){return Y[t]}))}var G={start:"end",end:"start"};function X(t){return t.replace(/start|end/g,(function(t){return G[t]}))}function Q(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&((n=n)instanceof p(n).ShadowRoot||n instanceof ShadowRoot)){var o=e;do{if(o&&t.isSameNode(o))return!0}while(o=o.parentNode||o.host)}return!1}function tt(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function et(t,e){return e===P?tt((i=p(r=t),a=y(r),s=i.visualViewport,c=a.clientWidth,l=a.clientHeight,a=i=0,s&&(c=s.width,l=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=s.offsetLeft,a=s.offsetTop)),{width:c,height:l,x:i+v(r),y:a})):_(e)?((o=d(n=e)).top=o.top+n.clientTop,o.left=o.left+n.clientLeft,o.bottom=o.top+n.clientHeight,o.right=o.left+n.clientWidth,o.width=n.clientWidth,o.height=n.clientHeight,o.x=o.left,o.y=o.top,o):tt((r=y(t),a=y(r),e=f(r),n=r.ownerDocument.body,o=Math.max(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),t=Math.max(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-e.scrollLeft+v(r),e=-e.scrollTop,"rtl"===g(n||a).direction&&(r+=Math.max(a.clientWidth,n?n.clientWidth:0)-o),{width:o,height:t,x:r,y:e}));var n,o,r,i,a,s,c,l}function nt(t,e,n){var o,r,i;return e="clippingParents"===e?(r=k(Z(o=t)),h(i=0<=["absolute","fixed"].indexOf(g(o).position)&&_(o)?S(o):o)?r.filter((function(t){return h(t)&&Q(t,i)&&"body"!==m(t)})):[]):[].concat(e),n=(e=[].concat(e,[n]))[0],(n=e.reduce((function(e,n){return n=et(t,n),e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),et(t,n))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function ot(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function rt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function it(t,e){void 0===e&&(e={});var n,o=void 0===(c=e.placement)?t.placement:c,r=void 0===(s=e.boundary)?"clippingParents":s,i=void 0===(l=e.rootBoundary)?P:l,a=void 0===(u=e.elementContext)?D:u,s=void 0!==(c=e.altBoundary)&&c,c=ot("number"!=typeof(u=void 0===(l=e.padding)?0:l)?u:rt(u,L)),l=(e=a===D?"reference":D,t.elements.reference),u=t.rects.popper,p=(r=nt(h(e=t.elements[s?e:a])?e:e.contextElement||y(t.elements.popper),r,i),l=V({reference:i=d(l),element:u,strategy:"absolute",placement:o}),l=tt(Object.assign(Object.assign({},u),l)),i=a===D?l:i,{top:r.top-i.top+c.top,bottom:i.bottom-r.bottom+c.bottom,left:r.left-i.left+c.left,right:i.right-r.right+c.right});return t=t.modifiersData.offset,a===D&&t&&(n=t[o],Object.keys(p).forEach((function(t){var e=0<=[E,x].indexOf(t)?1:-1,o=0<=[T,x].indexOf(t)?"y":"x";p[t]+=n[o]*e}))),p}function at(t,e,n){return Math.max(t,Math.min(e,n))}function st(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ct(t){return[T,E,x,N].some((function(e){return 0<=t[e]}))}function lt(t){return Object.prototype.toString.call(t).match(/\[object (.*?)\]/)[1].toLowerCase()}function ut(t,e){return r("The expected type accepted is "+t+", but the error type currently in use is --\x3e "+e),!1}function dt(t){return void 0===t}function pt(t){return"string"==typeof t||ut("string",lt(t))}function ft(t){return"number"==typeof t||ut("number",lt(t))}function ht(t){return"boolean"==typeof t||ut("boolean",lt(t))}function _t(t,e){return"function"==typeof t?t(e):ut("function",lt(t))}var mt=function(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,o=void 0===(t=t.defaultOptions)?J:t;return function(t,e,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},J),o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(r){var i,a;return d(),s.options=Object.assign(Object.assign(Object.assign({},o),s.options),r),s.scrollParents={reference:h(t)?k(t):t.contextElement?k(t.contextElement):[],popper:k(e)},r=[].concat(n,s.options.modifiers),a=r.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign(Object.assign(Object.assign({},n),e),{},{options:Object.assign(Object.assign({},n.options),e.options),data:Object.assign(Object.assign({},n.data),e.data)}):e,t}),{}),r=Object.keys(a).map((function(t){return a[t]})),i=function(t){var e=new Map,n=new Set,o=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(o){n.has(o)||(o=e.get(o))&&t(o)})),o.push(r)}(t)})),o}(r),r=j.reduce((function(t,e){return t.concat(i.filter((function(t){return t.phase===e})))}),[]),s.orderedModifiers=r.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=void 0===(n=t.options)?{}:n;"function"==typeof(t=t.effect)&&(n=t({state:s,name:e,instance:u,options:n}),c.push(n||function(){}))})),u.update()},forceUpdate:function(){if(!l){var t,e=(t=s.elements).reference;if(R(e,t=t.popper)){s.rects={reference:w(e,S(t),"fixed"===s.options.strategy),popper:C(t)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var n,o,r,i=0;i<s.orderedModifiers.length;i++)!0!==s.reset?(n=(r=s.orderedModifiers[i]).fn,o=void 0===(o=r.options)?{}:o,r=r.name,"function"==typeof n&&(s=n({state:s,options:o,name:r,instance:u})||s)):(s.reset=!1,i=-1)}}},update:(i=function(){return new Promise((function(t){u.forceUpdate(),t(s)}))},function(){return a=a||new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))}),destroy:function(){d(),l=!0}};return R(t,e)&&u.setOptions(r).then((function(t){!l&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u;function d(){c.forEach((function(t){return t()})),c=[]}}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,r=void 0===(t=o.scroll)||t,i=void 0===(o=o.resize)||o,a=p(e.elements.popper),s=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&s.forEach((function(t){t.addEventListener("scroll",n.update,B)})),i&&a.addEventListener("resize",n.update,B),function(){r&&s.forEach((function(t){t.removeEventListener("scroll",n.update,B)})),i&&a.removeEventListener("resize",n.update,B)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;t=t.name,e.modifiersData[t]=V({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=(t=void 0===(n=(o=t.options).gpuAcceleration)||n,void 0===(n=o.adaptive)||n),o=void 0===(o=o.roundOffsets)||o;t={placement:W(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:t},null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),K(Object.assign(Object.assign({},t),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:o})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),K(Object.assign(Object.assign({},t),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];_(r)&&m(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],r=e.attributes[t]||{};t=Object.keys((e.styles.hasOwnProperty(t)?e.styles:n)[t]).reduce((function(t,e){return t[e]="",t}),{}),_(o)&&m(o)&&(Object.assign(o.style,t),Object.keys(r).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,r=void 0===(i=n.offset)?[0,0]:i,i=(t=H.reduce((function(t,n){var o,i,a,s;return t[n]=(o=n,i=e.rects,a=r,s=W(o),n=0<=[N,T].indexOf(s)?-1:1,a=(a=(o="function"==typeof a?a(Object.assign(Object.assign({},i),{},{placement:o})):a)[0])||0,o=((o=o[1])||0)*n,0<=[N,E].indexOf(s)?{x:o,y:a}:{x:a,y:o}),t}),{}),(n=t[e.placement]).x);n=n.y,null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=n),e.modifiersData[o]=t}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=void 0===(a=n.mainAxis)||a,i=void 0===(t=n.altAxis)||t,a=n.fallbackPlacements,s=n.padding,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=void 0===(t=n.flipVariations)||t,p=n.allowedAutoPlacements,f=(n=W(t=e.options.placement),n=a||(n!==t&&d?function(t){if(W(t)===M)return[];var e=F(t);return[X(t),e,X(e)]}(t):[F(t)]),[t].concat(n).reduce((function(t,n){return t.concat(W(n)===M?function(t,e){void 0===e&&(e={});var n=e.placement,o=e.boundary,r=e.rootBoundary,i=e.padding,a=e.flipVariations,s=void 0===(e=e.allowedAutoPlacements)?H:e,c=$(n);0===(a=(n=c?a?I:I.filter((function(t){return $(t)===c})):L).filter((function(t){return 0<=s.indexOf(t)}))).length&&(a=n);var l=a.reduce((function(e,n){return e[n]=it(t,{placement:n,boundary:o,rootBoundary:r,padding:i})[W(n)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}(e,{placement:n,boundary:c,rootBoundary:l,padding:s,flipVariations:d,allowedAutoPlacements:p}):n)}),[])),h=e.rects.reference,_=e.rects.popper,m=new Map,y=!0,v=f[0],g=0;g<f.length;g++){var b=f[g],w=W(b),C=$(b)===q,Z=(O=0<=[T,x].indexOf(w))?"width":"height",k=it(e,{placement:b,boundary:c,rootBoundary:l,altBoundary:u,padding:s}),O=O?C?E:N:C?x:T;if(h[Z]>_[Z]&&(O=F(O)),C=F(O),Z=[],r&&Z.push(k[w]<=0),i&&Z.push(k[O]<=0,k[C]<=0),Z.every((function(t){return t}))){v=b,y=!1;break}m.set(b,Z)}if(y)for(var S=d?3:1;0<S&&"break"!==function(t){var e=f.find((function(e){if(e=m.get(e))return e.slice(0,t).every((function(t){return t}))}));if(e)return v=e,"break"}(S);S--);e.placement!==v&&(e.modifiersData[o]._skip=!0,e.placement=v,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.options,r=t.name,i=void 0===(b=o.mainAxis)||b,a=void 0!==(w=o.altAxis)&&w,s=o.boundary,c=o.rootBoundary,l=o.altBoundary,u=o.padding,d=void 0===(Z=o.tether)||Z,p=o.tetherOffset,f=void 0===p?0:p,h=it(n,{boundary:s,rootBoundary:c,padding:u,altBoundary:l}),_=W(n.placement),m=$(n.placement),y=!m,v=U(_),g="x"===v?"y":"x",b=(t=n.modifiersData.popperOffsets,n.rects.reference),w=n.rects.popper,Z="function"==typeof f?f(Object.assign(Object.assign({},n.rects),{},{placement:n.placement})):f;o={x:0,y:0},t&&(i&&(p="y"===v?T:N,s="y"===v?x:E,c="y"===v?"height":"width",e=t[v],u=t[v]+h[p],l=t[v]-h[s],_=d?-w[c]/2:0,f=(m===q?b:w)[c],i=m===q?-w[c]:-b[c],m=n.elements.arrow,w=d&&m?C(m):{width:0,height:0},p=(m=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[p],s=m[s],w=at(0,b[c],w[c]),p=y?b[c]/2-_-w-p-Z:f-w-p-Z,w=y?-b[c]/2+_+w+s+Z:i+w+s+Z,Z=(s=n.elements.arrow&&S(n.elements.arrow))?"y"===v?s.clientTop||0:s.clientLeft||0:0,s=n.modifiersData.offset?n.modifiersData.offset[n.placement][v]:0,Z=t[v]+p-s-Z,s=t[v]+w-s,l=at(d?Math.min(u,Z):u,e,d?Math.max(l,s):l),t[v]=l,o[v]=l-e),a&&(e="x"===v?T:N,a="x"===v?x:E,a=at((v=t[g])+h[e],v,v-h[a]),t[g]=a,o[g]=a-v),n.modifiersData[r]=o)},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n,o,r=t.state,i=t.name,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=W(r.placement),l=U(c),u=0<=[N,E].indexOf(c)?"height":"width";a&&s&&(e=r.modifiersData[i+"#persistent"].padding,n=C(a),o="y"===l?T:N,t="y"===l?x:E,c=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],s=s[l]-r.rects.reference[l],a=(a=S(a))?"y"===l?a.clientHeight||0:a.clientWidth||0:0,s=c/2-s/2,o=e[o],t=a-n[u]-e[t],t=at(o,s=a/2-n[u]/2+s,t),r.modifiersData[i]=((i={})[l]=t,i.centerOffset=t-s,i))},effect:function(t){var e=t.state,n=t.options,o=t.name;t=void 0===(t=n.element)?"[data-popper-arrow]":t,n=void 0===(n=n.padding)?0:n,null!=t&&("string"!=typeof t||(t=e.elements.popper.querySelector(t)))&&Q(e.elements.popper,t)&&(e.elements.arrow=t,e.modifiersData[o+"#persistent"]={padding:ot("number"!=typeof n?n:rt(n,L))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,a=it(e,{elementContext:"reference"});t=it(e,{altBoundary:!0}),o=st(a,o),t=st(t,r,i),r=ct(o),i=ct(t),e.modifiersData[n]={referenceClippingOffsets:o,popperEscapeOffsets:t,isReferenceHidden:r,hasPopperEscaped:i},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":r,"data-popper-escaped":i})}}]});function yt(t,e){var n,o=void 0!==(a=e.fadeOut)&&a,r=e.clsLeave,i=e.clsEnter,a=void 0===(n=e.duration)?3:n,c=void 0===(n=e.transitionTime)?250:n,l=void 0===(e=e.destroy)||e;if(e=null,o)return u(),void s(t,{inOrOut:"out",enterCls:"rab-fade-in",leaveCls:"rab-fade-out",timeout:250});function u(){setTimeout((function(){l&&(t.remove(),t=null)}),c)}e=setTimeout((function(){u(),s(t,{inOrOut:"out",enterCls:i,leaveCls:r,timeout:c})}),1e3*a),a<=0&&clearTimeout(e)}function vt(t){var e=t.prefixKey,n=t.key;"string"!=typeof n&&(n=null==n?void 0:n.toString()),(e=document.querySelector("["+e+'-key="'+n+'"]'))?yt(e,t):r('The key value is invalid --\x3e "'+n+'"')}function gt(t,e,n){(n?o.qH:o.Hd)(t,e)}function bt(t,e){var n="[Rabbit] Error: ";if(!t)throw(new Error).message=n+'The target element you selected for configuration does not exist --\x3e "'+t+'"';if((t=t.tagName.toLowerCase().replace(/r-/,""))!==e)throw(new Error).message=n+"The configured component was selected incorrectly, it is not a "+e+' component --\x3e "'+t+'"'}function wt(t,e,n,o){return mt(t,e,{placement:n,modifiers:[{name:"computeStyles",options:{gpuAcceleration:!1}},{name:"computeStyles",options:{adaptive:!1}},{name:"offset",options:{offset:[o]}}]})}function Ct(t){var e=t.reference,n=t.popper,r=t.datasetVal,i=t.showCb,a=t.hideCb,s=t.delay,c=t.timer;function l(){n.dataset[r]="show",i&&_t(i)}(0,o.ak)(e,"mouseenter",(function(){c=setTimeout((function(){l()}),s)})),(0,o.ak)(e,"mouseleave",(function(){clearTimeout(c),"show"===n.dataset[r]&&(n.dataset[r]="hide",a&&_t(a)),(0,o.AO)(e,"mouseenter",l)}))}var Zt=n(508);function kt(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-alert",{all:!0}),this._create(this.COMPONENTS)}var Ot=(kt.prototype.config=function(t){var e=(0,o.mh)(t);bt(e,"alert");var n=e.querySelector("."+Zt.Z.alert+"-title"),i=e.querySelector("."+Zt.Z.alert+"-icon");return{get title(){return(0,o.qH)(n)},set title(t){t&&!pt(t)||(0,o.qH)(n,t)},get icon(){return(0,o.qH)(i)},set icon(e){i?e&&!pt(e)||(0,o.qH)(i,e):r('You need to set the "show-icon" attribute to "true" --\x3e "'+t+'"')},events:function(t){var n=t.onClose;(t=e.querySelector("."+Zt.Z.alert+"-close"))&&(0,o.ak)(t,"click",(function(t){return n&&_t(n,t)}))}}},kt.prototype._create=function(t){var e=this;t.forEach((function(t){var n,r,i,a,s,l,u,d;c(t)||(n=(d=e._attrs(t)).icon,r=d.type,i=d.title,a=d.closable,s=d.banner,l=d.showIcon,u=d.closeText,d=t.firstElementChild,e._setMainTemplate(t,i),e._setBanner(t,s),e._setIconType(t,r,l,n,d),e._setDescription(t,d),e._setClosable(t,a,u),e._handleClose(t),(0,o.jc)(t,["title","icon","banner","closable","close-text","show-icon"]))}))},kt.prototype._setMainTemplate=function(t,e){e='\n <div class="'+Zt.Z.alert+'-title">'+e+'</div>\n <div class="'+Zt.Z.alert+'-desc"></div>\n ',(0,o.qH)(t,e)},kt.prototype._setBanner=function(t,e){e&&t.classList.add(Zt.Z.alert+"-with-banner")},kt.prototype._setIconType=function(t,e,n,r,i){if(n){if(t.classList.add(Zt.Z.alert+"-with-icon"),(n=(0,o.Zs)("span")).className=Zt.Z.alert+"-icon",r)(0,o.qH)(n,r);else{var a="information-circle";switch(e){case"success":a="checkmark-circle";break;case"warning":a="alert";break;case"error":a="close-circle"}i&&(a+="-outline"),i='<i class="'+Zt.Z.icon+" "+Zt.Z.icon+"-ios-"+a+'"></i>',(0,o.qH)(n,i)}t.appendChild(n)}},kt.prototype._setDescription=function(t,e){e&&(t.classList.add(Zt.Z.alert+"-with-desc"),t.querySelector("."+Zt.Z.alert+"-desc").appendChild(e))},kt.prototype._setClosable=function(t,e,n){e&&(n='\n <a class="'+Zt.Z.alert+'-close">\n '+(n||' <i class="'+Zt.Z.icon+" "+Zt.Z.icon+'-ios-close"></i>')+"\n </a>",t.insertAdjacentHTML("beforeend",n))},kt.prototype._handleClose=function(t){var e=t.querySelector("."+Zt.Z.alert+"-close");e&&(0,o.ak)(e,"click",(function(){return yt(t,{fadeOut:!0,destroy:!0})}))},kt.prototype._attrs=function(t){return{icon:(0,o._N)(t,"icon",""),type:(0,o._N)(t,"type","info"),title:(0,o._N)(t,"title",""),closeText:(0,o._N)(t,"close-text",""),banner:(0,o.xU)(t,"banner"),closable:(0,o.xU)(t,"closable"),showIcon:(0,o.xU)(t,"show-icon")}},kt);function St(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-avatar",{all:!0}),this._create(this.COMPONENTS)}var Tt=(St.prototype._create=function(t){var e=this;t.forEach((function(t){e._setIcon(t),e._setImage(t),e._setSize(t),e._setCustomContent(t),(0,o.jc)(t,["icon","src","custom-icon"])}))},St.prototype._setIcon=function(t){var e=this._getIcon(t),n=this._getCustmIcon(t);e&&((e||n)&&((0,o.qH)(t,""),t.classList.add(Zt.Z.avatar+"-icon")),n?(0,o.qH)(t,n):((n=(0,o.Zs)("i")).className="rab-icon rab-icon-"+e,t.appendChild(n)))},St.prototype._setImage=function(t){var e,n=this._getSrc(t);n&&((e=(0,o.Zs)("img")).src=n,(0,o.qH)(t,""),t.classList.add(Zt.Z.avatar+"-image"),t.appendChild(e))},St.prototype._setCustomContent=function(t){var e;t.getAttribute("rb-icon")||t.getAttribute("rb-src")||(0,o.qH)(t)&&((e=(0,o.Zs)("span")).className=Zt.Z.avatar+"-string",(0,o.qH)(e,t.innerHTML),(0,o.qH)(t,""),t.appendChild(e),this._setScale(t,e))},St.prototype._setScale=function(t,e){var n=t.getBoundingClientRect().width;n-8<(t=e.offsetWidth)?(t="scale("+(n-8)/t+") translateX(-50%)",(0,o.oJ)(e,"transform","scale("+t+") translateX(-50%)")):(0,o.oJ)(e,"transform","scale(1) translateX(-50%)")},St.prototype._setSize=function(t){var e=this._getSize(t);e&&((0,o.oJ)(t,"width",e+"px"),(0,o.oJ)(t,"height",e+"px"),(0,o.oJ)(t,"lineHeight",e+"px"),40<=e&&t.querySelector(".rab-icon")&&(e=Math.floor(e/2)+"px",(0,o.oJ)(t,"fontSize",e)))},St.prototype._getIcon=function(t){return t.getAttribute("rb-icon")||""},St.prototype._getCustmIcon=function(t){return t.getAttribute("rb-custom-icon")||""},St.prototype._getSrc=function(t){return t.getAttribute("rb-src")||""},St.prototype._getSize=function(t){var e=t.getAttribute("rb-size")||"";if("large"!==e&&"small"!==e){if(t=Number(e))return t;0!==t&&r('You have set an invalid size value for the Avatar component --\x3e "'+e+'"')}},St);function xt(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-back-top",{all:!0}),this._create(this.COMPONENTS)}var Et=(xt.prototype._create=function(t){var e=this;t.forEach((function(t){var n=(a=e._attrs(t)).right,r=a.bottom,i=a.height,a=a.duration;e._setRight(t,n),e._setBottom(t,r),e._setAppearance(t),e._handleScroll(t,i),e._handleClick(t,a),(0,o.jc)(t,["right","bottom","height","duration"])}))},xt.prototype._setRight=function(t,e){(0,o.oJ)(t,"right",e+"px")},xt.prototype._setBottom=function(t,e){(0,o.oJ)(t,"bottom",e+"px")},xt.prototype._setAppearance=function(t){var e;(0,o.qH)(t)&&" "!==(0,o.qH)(t)?(0,o.qH)(t,t.innerHTML):(e='<div class="'+Zt.Z.backtop+'-inner">\n <i class="'+Zt.Z.icon+" "+Zt.Z.icon+'-ios-arrow-up"></i>\n </div>',(0,o.qH)(t,e))},xt.prototype._handleScroll=function(t,e){(0,o.ak)(window,"scroll",(function(){var n;n=window.scrollY,n=Math.floor(n),Math.floor(e)<=n?(0,o.oJ)(t,"display","block"):(0,o.oJ)(t,"display","")}))},xt.prototype._handleClick=function(t,e){var n=this;(0,o.ak)(t,"click",(function(){var t=document.documentElement.scrollTop||document.body.scrollTop;n._scrollTop(window,t,0,e)}))},xt.prototype._scrollTop=function(t,e,n,o){window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)});var r=Math.abs(e-n),i=(o=Math.ceil(r/o*25),function(e,n,o){var r=n<e+o?n:e+o;e<=n&&0==r||(r=e-o<n?n:e-o,t===window?window.scrollTo(r,r):t.scrollTop=r,window.requestAnimationFrame((function(){return i(r,n,o)})))});i(e,n,o)},xt.prototype._attrs=function(t){return{right:(0,o.a4)(t,"right",30),bottom:(0,o.a4)(t,"bottom",30),height:(0,o.a4)(t,"height",400),duration:(0,o.a4)(t,"duration",500)}},xt);function Nt(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-badge",{all:!0}),this._create(this.COMPONENTS)}var Mt=(Nt.prototype.config=function(t){var e=(0,o.mh)(t);bt(e,"badge");var n=e.querySelector("."+Zt.Z.badge+"-count"),i=e.querySelector("."+Zt.Z.badge+"-dot"),a=Nt.prototype,s=a._showZero,c=a._setMaxCount,l=(0,a._getMaxCount)(e),u=s(e);return{get count(){return null==n?void 0:n.textContent},set count(e){n&&ft(e)?l<e?c(n,l):((0,o.Hd)(n,""+e),e<=0&&!u?(0,o.oJ)(n,"display","none"):(0,o.oJ)(n,"display","")):r('The count value of this badge cannot be set --\x3e "'+t+'"')},get text(){return null==n?void 0:n.textContent},set text(e){pt(e)?(0,o.Hd)(n,e):r('The text value of this badge cannot be set --\x3e "'+t+'"')},get dot(){return i},set dot(e){i?ht(e)&&e?(0,o.oJ)(i,"display",""):(0,o.oJ)(i,"display","none"):r('Unable to set this badge to dot --\x3e "'+t+'"')}}},Nt.prototype._create=function(t){var e=this;t.forEach((function(t){e._setCount(t),e._setStatusWithColor(t),(0,o.jc)(t,["count","text","status","color","show-zero","max-count","dot"])}))},Nt.prototype._setCount=function(t){var e=this._getCount(t),n=this._getMaxCount(t),r=(0,o.Zs)("sup");r.className=Zt.Z.badge+"-count",!e&&0!==e||(n<e?this._setMaxCount(r,n):e<=0&&!this._showZero(t)?(0,o.oJ)(r,"display","none"):(0,o.Hd)(r,""+e),this._setDot(t,r)),this._getStatus(t)||this._getColor(t)||(t.appendChild(r),this._setAlone(r)),this._setText(t,r),this._setOffset(t,r)},Nt.prototype._setMaxCount=function(t,e){(0,o.Hd)(t,e+"+")},Nt.prototype._setDot=function(t,e){this._showDot(t)&&((0,o.qH)(e,""),(0,o.oJ)(e,"display",""),e.className=Zt.Z.badge+"-dot")},Nt.prototype._setText=function(t,e){this._getStatus(t)||this._getColor(t)||(t=this._getText(t))&&((0,o.oJ)(e,"display",""),(0,o.Hd)(e,t))},Nt.prototype._setAlone=function(t){t.previousElementSibling||t.classList.add(Zt.Z.badge+"-count-alone")},Nt.prototype._setOffset=function(t,e){t=this._getOffset(t),(0,o.oJ)(e,"marginTop",(null==t?void 0:t.x)+"px"),(0,o.oJ)(e,"marginRight",(null==t?void 0:t.y)+"px")},Nt.prototype._setStatusWithColor=function(t){var e,n,r=this._getStatus(t),i=this._getColor(t),a=this._getText(t);(r||i)&&(e=(0,o.Zs)("span"),n=(0,o.Zs)("span"),(a&&r||a&&i)&&(0,o.Hd)(n,a),a="",r=r?Zt.Z.badge+"-status-"+r:"","blue"===i||"green"===i||"red"===i||"yellow"===i||"magenta"===i||"volcano"===i||"orange"===i||"gold"===i||"lime"===i||"cyan"===i||"geekblue"===i||"purple"===i?a=Zt.Z.badge+"-status-"+i:(0,o.oJ)(e,"backgroundColor",i),e.className=Zt.Z.badge+"-status-dot "+r+" "+a,n.className=Zt.Z.badge+"-status-text",t.append(e,n))},Nt.prototype._getCount=function(t){return Number(t.getAttribute("count"))},Nt.prototype._getMaxCount=function(t){return Number(t.getAttribute("max-count"))||99},Nt.prototype._getOffset=function(t){var e=JSON.parse(t.getAttribute("offset")||"[]");if((t=e).constructor===Array?0<e.length:ut("array",lt(t)))return{x:e[0],y:e[1]}},Nt.prototype._getStatus=function(t){return t.getAttribute("status")||""},Nt.prototype._getColor=function(t){return t.getAttribute("color")||""},Nt.prototype._getText=function(t){return t.getAttribute("text")||""},Nt.prototype._showZero=function(t){return"true"===t.getAttribute("show-zero")},Nt.prototype._showDot=function(t){return"true"===t.getAttribute("dot")},Nt);function Lt(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-breadcrumb",{all:!0}),this._create(this.COMPONENTS)}var qt=(Lt.prototype._create=function(t){var e=this;t.forEach((function(t){var n=e._attrs(t).separator;e._createItem(t,n),(0,o.jc)(t,["separator"])}))},Lt.prototype._createItem=function(t,e){var n=t.children,r=document.createDocumentFragment();Array.from(n).forEach((function(t){var n=(0,o.Zs)("span"),i=(0,o.Zs)("span");i.className=Zt.Z.breadcrumb+"-item-separator",(0,o.qH)(i,""+e),t.classList.add(Zt.Z.breadcrumb+"-item-link"),(0,o.oJ)(t,"display","inline-block"),n.append(t,i),r.appendChild(n)})),t.appendChild(r)},Lt.prototype._attrs=function(t){return{separator:(0,o._N)(t,"separator","/")}},Lt);function At(){this.VERSION="1.0.2",this.COMPONENTS=(0,o.mh)("."+Zt.Z.button,{all:!0}),this._getAllBtns(this.COMPONENTS)}var Pt=(At.prototype.config=function(t){var e="string"==typeof t?(0,o.mh)(t):t;return bt(e,"button"),{get loading(){return!1},set loading(t){var n;ht(t)&&(n=e.querySelector("."+Zt.Z.icon+"-loading-solid"),t?n||(e.classList.add(Zt.Z.button+"-loading"),e.prepend(At.prototype._loadIcon())):(e.classList.remove(Zt.Z.button+"-loading"),n&&n.remove()))}}},At.prototype._getAllBtns=function(t){var e=this;t.forEach((function(t){e._setLoading(t),e._setIcon(t),(0,o.jc)(t,["icon","loading"])}))},At.prototype._setLoading=function(t){this._isLoading(t)&&(""===t.innerHTML&&t.classList.add(Zt.Z.button+"-icon-only"),t.classList.add(Zt.Z.button+"-loading"),t.prepend(this._loadIcon()))},At.prototype._setIcon=function(t){var e;this._getIcon(t)&&(""===t.innerHTML?(e='<i class="'+Zt.Z.icon+" "+Zt.Z.icon+"-"+this._getIcon(t)+'"></i>',t.classList.add(Zt.Z.button+"-icon-only"),(0,o.qH)(t,e)):((e=(0,o.Zs)("i")).className=Zt.Z.icon+" "+Zt.Z.icon+"-"+this._getIcon(t),t.prepend(e)))},At.prototype._isLoading=function(t){return"true"===t.getAttribute("loading")},At.prototype._loadIcon=function(){var t=(0,o.Zs)("i");return t.className="rab-load-loop "+Zt.Z.icon+" "+Zt.Z.icon+"-loading-solid",t},At.prototype._getIcon=function(t){return t.getAttribute("icon")||""},At);function Dt(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-card",{all:!0}),this._create(this.COMPONENTS)}var It=(Dt.prototype.config=function(t){bt(t=(0,o.mh)(t),"card");var e=t.querySelector("."+Zt.Z.card+"-head"),n=t.querySelector("."+Zt.Z.card+"-extra");return{get title(){return(0,o.qH)(e)},set title(t){pt(t)&&(0,o.qH)(e,t)},get extra(){return(0,o.qH)(n)},set extra(t){pt(t)&&(0,o.qH)(n,t)}}},Dt.prototype._create=function(t){var e=this;t.forEach((function(t){e._createCardNodes(t),(0,o.jc)(t,["title","extra","shadow"])}))},Dt.prototype._createCardNodes=function(t){var e=(0,o.Zs)("div"),n=(0,o.Zs)("div"),r=(0,o.Zs)("div");this._setCls(e,n,r),this._setContent(t,r),this._setTitle(t,e),this._setExtra(t,n),this._setShadow(t)},Dt.prototype._setCls=function(t,e,n){t.className=Zt.Z.card+"-head",e.className=Zt.Z.card+"-extra",n.className=Zt.Z.card+"-body"},Dt.prototype._setTitle=function(t,e){var n=this._attrs(t).title;n&&((0,o.qH)(e,n),t.prepend(e))},Dt.prototype._setContent=function(t,e){Array.from(t.children).forEach((function(t){e.appendChild(t)})),t.appendChild(e)},Dt.prototype._setExtra=function(t,e){var n=this._attrs(t).extra;n&&((0,o.qH)(e,n),t.appendChild(e))},Dt.prototype._setShadow=function(t){this._attrs(t).shadow&&t.classList.add(Zt.Z.card+"-shadow")},Dt.prototype._attrs=function(t){return{title:(0,o._N)(t,"title",""),extra:(0,o._N)(t,"extra",""),shadow:(0,o.xU)(t,"shadow")}},Dt);function Ht(){this.VERSION="v1.0",this.COMPONENTS=(0,o.mh)("r-carousel",{all:!0}),this._create(this.COMPONENTS)}var jt=(Ht.prototype.config=function(t){var e=(0,o.mh)(t);bt(e,"carousel");var n=(t=(0,Ht.prototype._attrs)(e)).autoplay,r=t.autoplaySpeed,i=t.hoverPause;return{events:function(t){function a(t,n){n=(o=e.querySelector("."+Zt.Z.carousel+"-item.active"))[t]||n;var o=Number(o.dataset.index);n=Number(n.dataset.index),u&&_t(u,[o,n])}var s,c,l=t.onClick,u=t.onChange,d=e.querySelectorAll("."+Zt.Z.carousel+"-item"),p=e.querySelector("."+Zt.Z.carousel+"-arrow.left"),f=(t=e.querySelector("."+Zt.Z.carousel+"-arrow.right"),d.length-1);(0,o.ak)(p,"click",(function(){return a("previousElementSibling",d[f])})),(0,o.ak)(t,"click",(function(){return a("nextElementSibling",d[0])})),d.forEach((function(t,e){(0,o.ak)(t,"click",(function(){return l&&_t(l,e)}))})),n&&(s=null,(c=function(){s=window.setInterval((function(){a("nextElementSibling",d[0])}),r)})(),"false"!==i&&((0,o.ak)(e,"mouseenter",(function(){return!!s&&window.clearInterval(s)})),(0,o.ak)(e,"mouseleave",c)))}}},Ht.prototype._create=function(t){var e=this;t.forEach((function(t){var n,r,i,a,s,l,u,d,p,f,h;c(t)||(n=t.firstElementChild)&&(r=n.childElementCount,i=(h=e._attrs(t)).dots,a=h.arrow,s=h.effect,l=h.easing,u=h.radiusDot,d=h.trigger,p=h.autoplay,f=h.hoverPause,h=h.autoplaySpeed,e._setMainTemplate(t,i,a),e._setFadeCls(t,s),e._setItem(t,n,r,l),e._setIndicators(t,r,u,d),e._autoPlay(p,t,f,h),e._handleArrowClick(t,a),(0,o.jc)(t,["dots","arrow","effect","easing","trigger","radius-dot","autoplay","hover-pause","autoplay-speed"]))}))},Ht.prototype._setMainTemplate=function(t,e,n){e='\n <button type="button" class="left '+Zt.Z.carousel+"-arrow "+Zt.Z.carousel+"-arrow-"+n+'">\n <i class="'+Zt.Z.icon+" "+Zt.Z.icon+'-ios-arrow-back"></i>\n </button>\n <div class="'+Zt.Z.carousel+'-list"></div>\n <button type="button" class="right '+Zt.Z.carousel+"-arrow "+Zt.Z.carousel+"-arrow-"+n+'">\n <i class="'+Zt.Z.icon+" "+Zt.Z.icon+'-ios-arrow-forward"></i>\n </button>\n <ul class="'+Zt.Z.carousel+"-dots "+Zt.Z.carousel+"-dots-"+e+'"></ul>\n ',(0,o.qH)(t,e)},Ht.prototype._setFadeCls=function(t,e){"fade"===e&&t.classList.add(Zt.Z.carousel+"-"+e)},Ht.prototype._setItem=function(t,e,n,r){t=t.querySelector("."+Zt.Z.carousel+"-list");for(var i=document.createDocumentFragment(),a=Array.from(e.children),s=0;s<n;s++){var c=(0,o.Zs)("div");c.dataset.index=""+s,c.className=Zt.Z.carousel+"-item",c.appendChild(a[s]),this._setEasing(c,r),i.appendChild(c),null!==(c=i.firstElementChild)&&void 0!==c&&c.classList.add("active")}null!=t&&t.appendChild(i)},Ht.prototype._setEasing=function(t,e){e&&(0,o.oJ)(t,"transitionTimingFunction",e)},Ht.prototype._setIndicators=function(t,e,n,r){for(var i=t.querySelector("."+Zt.Z.carousel+"-dots"),a=document.createDocumentFragment(),s=0;s<e;s++){var c=(0,o.Zs)("li");c.dataset.slideTo=""+s,(0,o.qH)(c,'<button type="button" class='+(n?"radius":"")+"></button>"),this._handleDotChange(r,t,c),a.appendChild(c),null!==(c=a.firstElementChild)&&void 0!==c&&c.classList.add(Zt.Z.carousel+"-active")}null!=i&&i.appendChild(a)},Ht.prototype._autoPlay=function(t,e,n,r){var i,a=this;t&&(i=null,(t=function(){var t=r;t<650&&(t=650,console.warn("[Rabbit warn] Please do not set the sliding speed of carousel to less than 650ms. There are known problems with doing so, so it has been reset to 650ms. --\x3e "+r+"ms")),i=window.setInterval((function(){return a._slide("next",e)}),t)})(),"false"!==n&&((0,o.ak)(e,"mouseenter",(function(){return!!i&&window.clearInterval(i)})),(0,o.ak)(e,"mouseleave",t)))},Ht.prototype._handleArrowClick=function(t,e){var n,r=this;"none"!==e&&(n=t.querySelector("."+Zt.Z.carousel+"-arrow.left"),e=t.querySelector("."+Zt.Z.carousel+"-arrow.right"),(0,o.ak)(n,"click",(function(){return r._slide("prev",t)})),(0,o.ak)(e,"click",(function(){return r._slide("next",t)})))},Ht.prototype._handleDotChange=function(t,e,n){function r(){i=Number(n.dataset.slideTo),(a=e.querySelector("."+Zt.Z.carousel+'-item[data-index="'+i+'"]')).classList.contains("active")||(s._dotChange(e,i),s._showActiveItem(a),(0,o.dx)(a).forEach((function(t){return t.classList.contains("active")?s._hideOldActiveItem(t):""})))}var i,a,s=this;"hover"===t?(0,o.ak)(n,"mouseenter",r):(0,o.ak)(n,"click",r)},Ht.prototype._slide=function(t,e){var n,o=this,r="prev"===t?"right":"left",i=(n=e.querySelector("."+Zt.Z.carousel+"-list")).childElementCount-1,a=e.querySelector("."+Zt.Z.carousel+"-item.active"),s=a.previousElementSibling||n.children[i];i=a.nextElementSibling||n.children[0],(n=function(n){return o._change(t,r,e,a,n)})("prev"===t?s:i)},Ht.prototype._change=function(t,e,n,o,r){var i=Number(r.dataset.index);this._dotChange(n,i),this._showActiveItem(r,t,e),this._hideOldActiveItem(o,e)},Ht.prototype._dotChange=function(t,e){(e=t.querySelector("."+Zt.Z.carousel+"-dots").children[e]).classList.add(Zt.Z.carousel+"-active"),(0,o.dx)(e).forEach((function(t){return t.classList.contains(Zt.Z.carousel+"-active")?t.classList.remove(Zt.Z.carousel+"-active"):""}))},Ht.prototype._showActiveItem=function(t,e,n){void 0===e&&(e="next"),void 0===n&&(n="left"),t.classList.add(Zt.Z.carousel+"-item-"+e),setTimeout((function(){return t.classList.add(Zt.Z.carousel+"-item-"+n)}),20),setTimeout((function(){t.classList.add("active"),t.classList.remove(Zt.Z.carousel+"-item-"+e),t.classList.remove(Zt.Z.carousel+"-item-"+n)}),520)},Ht.prototype._hideOldActiveItem=function(t,e){void 0===e&&(e