configs/arch-config/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/dist/js/Aether.js

30 lines
811 KiB
JavaScript
Raw Normal View History

2020-04-16 20:05:57 +02:00
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=511)}([function(e,t,n){"use strict";e.exports=n(505)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(446)),o=l(n(373)),i=l(n(348)),a=l(n(347)),s=l(n(346)),u=l(n(345));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),u=(0,o.default)(e,s);return(0,i.default)(u)};t.default=c},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(492)()},function(e,t,n){"use strict";t.__esModule=!0;t.VERSION="4.7.3",t.PI_2=2*Math.PI,t.RAD_TO_DEG=180/Math.PI,t.DEG_TO_RAD=Math.PI/180,t.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},t.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19},t.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},t.SCALE_MODES={LINEAR:0,NEAREST:1},t.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},t.GC_MODES={AUTO:0,MANUAL:1},t.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,t.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,t.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},t.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},t.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},t.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},t.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},function(e,t,n){"use strict";t.__esModule=!0,t.autoDetectRenderer=t.Application=t.Filter=t.SpriteMaskFilter=t.Quad=t.RenderTarget=t.ObjectRenderer=t.WebGLManager=t.Shader=t.CanvasRenderTarget=t.TextureUvs=t.VideoBaseTexture=t.BaseRenderTexture=t.RenderTexture=t.BaseTexture=t.TextureMatrix=t.Texture=t.Spritesheet=t.CanvasGraphicsRenderer=t.GraphicsRenderer=t.GraphicsData=t.Graphics=t.TextMetrics=t.TextStyle=t.Text=t.SpriteRenderer=t.CanvasTinter=t.CanvasSpriteRenderer=t.Sprite=t.TransformBase=t.TransformStatic=t.Transform=t.Container=t.DisplayObject=t.Bounds=t.glCore=t.WebGLRenderer=t.CanvasRenderer=t.ticker=t.utils=t.settings=void 0;var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(9);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(10);Object.defineProperty(t,"glCore",{enumerable:!0,get:function(){return Y(i).default}});var a=n(60);Object.defineProperty(t,"Bounds",{enumerable:!0,get:function(){return Y(a).default}});var s=n(122);Object.defineProperty(t,"DisplayObject",{enumerable:!0,get:function(){return Y(s).default}});var u=n(30);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return Y(u).default}});var l=n(120);Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return Y(l).default}});var c=n(121);Object.defineProperty(t,"TransformStatic",{enumerable:!0,get:function(){return Y(c).default}});var d=n(58);Object.defineProperty(t,"TransformBase",{enumerable:!0,get:function(){return Y(d).default}});var f=n(56);Object.defineProperty(t,"Sprite",{enumera
/**
* isMobile.js v0.4.1
*
* A simple library to detect Apple phones and tablets,
* Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone),
* and any kind of seven inch device, via user agent sniffing.
*
* @author: Kai Mallea (kmallea@gmail.com)
*
* @license: http://creativecommons.org/publicdomain/zero/1.0/
*/
/**
* isMobile.js v0.4.1
*
* A simple library to detect Apple phones and tablets,
* Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone),
* and any kind of seven inch device, via user agent sniffing.
*
* @author: Kai Mallea (kmallea@gmail.com)
*
* @license: http://creativecommons.org/publicdomain/zero/1.0/
*/
a=void 0,s=/iPhone/i,u=/iPod/i,l=/iPad/i,c=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,d=/Android/i,f=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,p=/Windows Phone/i,y=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,v=/BlackBerry/i,m=/BB10/i,g=/Opera Mini/i,b=/(CriOS|Chrome)(?=.*\bMobile\b)/i,_=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,x=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),w=function(e,t){return e.test(t)},E=function(e){var t=e||navigator.userAgent,n=t.split("[FBAN");if(void 0!==n[1]&&(t=n[0]),void 0!==(n=t.split("Twitter"))[1]&&(t=n[0]),this.apple={phone:w(s,t),ipod:w(u,t),tablet:!w(s,t)&&w(l,t),device:w(s,t)||w(u,t)||w(l,t)},this.amazon={phone:w(f,t),tablet:!w(f,t)&&w(h,t),device:w(f,t)||w(h,t)},this.android={phone:w(f,t)||w(c,t),tablet:!w(f,t)&&!w(c,t)&&(w(h,t)||w(d,t)),device:w(f,t)||w(h,t)||w(c,t)||w(d,t)},this.windows={phone:w(p,t),tablet:w(y,t),device:w(p,t)||w(y,t)},this.other={blackberry:w(v,t),blackberry10:w(m,t),opera:w(g,t),firefox:w(_,t),chrome:w(b,t),device:w(v,t)||w(m,t)||w(g,t)||w(_,t)||w(b,t)},this.seven_inch=w(x,t),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},S=function(){var e=new E;return e.Class=E,e},void 0!==e&&e.exports&&"undefined"==typeof window?e.exports=E:void 0!==e&&e.exports&&"undefined"!=typeof window?e.exports=S():(o=[],r=a.isMobile=S(),void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?r.Rectangle.EMPTY:((e=e||new r.Rectangle(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addQuad=function(e){var t=this.minX,n=this.minY,r=this.maxX,o=this.maxY,i=e[0],a=e[1];t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,i=e[2],a=e[3],t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,i=e[4],a=e[5],t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,i=e[6],a=e[7],t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,this.minX=t,this.minY=n,this.maxX=r,this.maxY=o},e.prototype.addFrame=function(e,t,n,r,o){var i=e.worldTransform,a=i.a,s=i.b,u=i.c,l=i.d,c=i.tx,d=i.ty,f=this.minX,h=this.minY,p=this.maxX,y=this.maxY,v=a*t+u*n+c,m=s*t+l*n+d;f=v<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,m=s*r+l*n+d,f=(v=a*r+u*n+c)<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,m=s*t+l*o+d,f=(v=a*t+u*o+c)<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,m=s*r+l*o+d,f=(v=a*r+u*o+c)<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,this.minX=f,this.minY=h,this.maxX=p,this.maxY=y},e.prototype.addVertices=function(e,t,n,r){for(var o=e.worldTransform,i=o.a,a=o.b,s=o.c,u=o.d,l=o.tx,c=o.ty,d=this.minX,f=this.minY,h=this.maxX,p=this.maxY,y=n;y<r;y+=2){var v=t[y],m=t[y+1],g=i*v+s*m+l,b=u*m+a*v+c;d=g<d?g:d,f=b<f?b:f,h=g>h?g:h,p=b>p?b:p}this.minX=d,this.minY=f,this.maxX=h,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,n=this.minY,r=this.maxX,o=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<n?e.minY:n,this.maxX=e.maxX>r?e.maxX:r,this.maxY=e.maxY>o?e.maxY:o},e.prototype.addBoundsMask=function(e,t){var n=e.minX>t.minX?e.minX:t.minX,r=e.minY>t.minY?e.minY:t.minY,o=e.maxX<t.maxX?e.maxX:t.maxX,i=e.maxY<t.maxY?e.maxY:t.maxY;if(n<=o&&r<=i){var a=this.minX,s=this.minY,u=this.maxX,l=this.maxY;thi
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsReducer=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.addAdditionalSettings=function(e){var t={active:!1,minimized:!1,distro:!0===window.__debug?"src/test/logos/archlinux.png":"/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/logos/archlinux.png",page_zoom:1,avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",avatar_background_enabled:!0,font_scale:1,date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",experimental_stars_enabled:!1,time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,user_switcher_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 0%, 22%, 1)",style_command_icon_color:"hsla(349, 98%, 65%, 1)",style_command_text_color:"hsla(0, 100%, 100%, 1)",style_login_border_color:"hsla(0, 100%, 100%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 100%, 0.22)",style_login_gradient_top_color:"hsla(18, 100%, 61%, 0.66)",style_login_gradient_bottom_color:"hsla(339, 94%, 64%, 1)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},n={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(t)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;n[c]=o.requestSetting(c,t[c])}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return r({},e,{settings:n,cachedSettings:n})};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(77)),i=n(39);t.SettingsReducer=function(e,t){switch(t.type){case"SETTINGS_LOGO_CHANGE":var n=r({},e.settings,{distro:t.path});return r({},e,{settings:n});case"SETTINGS_REJECT":n=r({},e.cachedSettings);return window.notifications.generate("Reverted to previous settings, no changes saved.","success"),(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_APPLY_THEME":n=r({},e.cachedSettings,t.theme);return window.notifications.generate("Loaded "+t.name+" theme. Remember to save!","success"),(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_SAVE":var a=!0,s=!1,u=void 0;try{for(var l,c=Object.keys(e.settings)[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;o.saveSetting(d,e.settings[d])}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}var f=r({},e.settings);return window.notifications.generate("Settings saved.","success"),r({},e,{cachedSettings:f});case"SETTINGS_SET_VALUE":return(n=r({},e.settings))[t.name]=t.value,(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_TOGGLE_ACTIVE":n=r({},e.settings,{active:!e.settings.active});var h=document.getElementById("settings");return!0===n.active?h.className=h.className.replace(" hidden",""):h.className+=" hidden",r({},e,{settings:n});case"SETTINGS_TOG
//# sourceMappingURL=Aether.js.map