UNPKG

iobroker.backitup

Version:

ioBroker.backitup allows you to backup and restore your ioBroker installation and other systems, such as databases, Zigbee, scripts and many more.

2 lines (1 loc) 3.19 kB
function C(r){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=r(n)),e[n]}}function y(r){for(var e=0,n,t=0,a=r.length;a>=4;++t,a-=4)n=r.charCodeAt(t)&255|(r.charCodeAt(++t)&255)<<8|(r.charCodeAt(++t)&255)<<16|(r.charCodeAt(++t)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(r.charCodeAt(t+2)&255)<<16;case 2:e^=(r.charCodeAt(t+1)&255)<<8;case 1:e^=r.charCodeAt(t)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var w={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A=/[A-Z]|^ms/g,S=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return e.charCodeAt(1)===45},h=function(e){return e!=null&&typeof e!="boolean"},x=C(function(r){return p(r)?r:r.replace(A,"-$&").toLowerCase()}),v=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(S,function(t,a,f){return c={name:a,styles:f,next:c},a})}return w[e]!==1&&!p(e)&&typeof n=="number"&&n!==0?n+"px":n};function d(r,e,n){if(n==null)return"";var t=n;if(t.__emotion_styles!==void 0)return t;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return c={name:a.name,styles:a.styles,next:c},a.name;var f=n;if(f.styles!==void 0){var o=f.next;if(o!==void 0)for(;o!==void 0;)c={name:o.name,styles:o.styles,next:c},o=o.next;var i=f.styles+";";return i}return O(r,e,n)}case"function":{if(r!==void 0){var u=c,l=n(r);return c=u,d(r,e,l)}break}}var s=n;if(e==null)return s;var m=e[s];return m!==void 0?m:s}function O(r,e,n){var t="";if(Array.isArray(n))for(var a=0;a<n.length;a++)t+=d(r,e,n[a])+";";else for(var f in n){var o=n[f];if(typeof o!="object"){var i=o;e!=null&&e[i]!==void 0?t+=f+"{"+e[i]+"}":h(i)&&(t+=x(f)+":"+v(f,i)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var u=0;u<o.length;u++)h(o[u])&&(t+=x(f)+":"+v(f,o[u])+";");else{var l=d(r,e,o);switch(f){case"animation":case"animationName":{t+=x(f)+":"+l+";";break}default:t+=f+"{"+l+"}"}}}return t}var b=/label:\s*([^\s;{]+)\s*(;|$)/g,c;function R(r,e,n){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var t=!0,a="";c=void 0;var f=r[0];if(f==null||f.raw===void 0)t=!1,a+=d(n,e,f);else{var o=f;a+=o[0]}for(var i=1;i<r.length;i++)if(a+=d(n,e,r[i]),t){var u=f;a+=u[i]}b.lastIndex=0;for(var l="",s;(s=b.exec(a))!==null;)l+="-"+s[1];var m=y(a)+l;return{name:m,styles:a,next:c}}export{C as m,R as s};