mycpen-blog 0.0.0-ejccazbfuo → 0.0.0-ejddukaglq
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index.css +1 -1
- package/js/APlayer.js +1 -1
- package/js/Meting.js +1 -1
- package/js/ali_font.js +1 -1
- package/js/custom.js +1 -1
- package/js/fcircle.js +1 -1
- package/js/fcircle_manage_panel.js +3 -13
- package/js/home_page_swiper.js +1 -1
- package/js/main.js +1 -1
- package/js/people.js +1 -1
- package/js/random.js +1 -1
- package/js/random_friends_post.js +1 -1
- package/js/search/algolia.js +1 -1
- package/js/search/local-search.js +1 -1
- package/js/tianli_gpt.js +1 -1
- package/js/ua_parser.js +1 -1
- package/js/utils.js +1 -1
- package/js/waterfall.js +1 -1
- package/lib/hbe.js +1 -1
- package/manifest.json +1 -1
- package/music1/js/APlayer.min.js +1 -1
- package/music1/js/Meting2.min.js +1 -1
- package/music1/js/main.js +1 -1
- package/music1/main.css +1 -1
- package/music1/manifest.json +2 -2
- package/package.json +1 -1
- package/wechatOA/main.css +1 -1
- package/wechatOA/main.js +1 -1
package/js/ua_parser.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(i,e){"use strict";function o(i){for(var e={},o=0;o<i.length;o++)e[i[o].toUpperCase()]=i[o];return e}function a(i,e){return typeof i===u&&-1!==$(e).indexOf($(i))}function r(i,e){if(typeof i===u)return i=i.replace(/^\s\s*/,w),typeof e==l?i:i.substring(0,350)}function t(i,o){for(var a,r,t,n,s,b=0;b<o.length&&!n;){for(var w=o[b],l=o[b+1],u=a=0;u<w.length&&!n&&w[u];)if(n=w[u++].exec(i))for(r=0;r<l.length;r++)s=n[++a],typeof(t=l[r])===c&&0<t.length?2===t.length?typeof t[1]==d?this[t[0]]=t[1].call(this,s):this[t[0]]=t[1]:3===t.length?typeof t[1]!==d||t[1].exec&&t[1].test?this[t[0]]=s?s.replace(t[1],t[2]):e:this[t[0]]=s?t[1].call(this,s,t[2]):e:4===t.length&&(this[t[0]]=s?t[3].call(this,s.replace(t[1],t[2])):e):this[t]=s||e;b+=2}}function n(i,o){for(var r in o)if(typeof o[r]===c&&0<o[r].length){for(var t=0;t<o[r].length;t++)if(a(o[r][t],i))return"?"===r?e:r}else if(a(o[r],i))return"?"===r?e:r;return i}function s(o,a){if(typeof o===c&&(a=o,o=e),!(this instanceof s))return new s(o,a).getResult();var n=typeof i!=l&&i.navigator?i.navigator:e,b=o||(n&&n.userAgent?n.userAgent:w),k=n&&n.userAgentData?n.userAgentData:e,T=a?function(i,e){var o,a={};for(o in i)e[o]&&e[o].length%2==0?a[o]=e[o].concat(i[o]):a[o]=i[o];return a}(K,a):K,S=n&&n.userAgent==b;return this.getBrowser=function(){var i,o={};return o[h]=e,o[v]=e,t.call(o,b,T.browser),o[p]=typeof(i=o[v])===u?i.replace(/[^\d\.]/g,w).split(".")[0]:e,S&&n&&n.brave&&typeof n.brave.isBrave==d&&(o[h]="Brave"),o},this.getCPU=function(){var i={};return i[x]=e,t.call(i,b,T.cpu),i},this.getDevice=function(){var i={};return i[g]=e,i[m]=e,i[f]=e,t.call(i,b,T.device),S&&!i[f]&&k&&k.mobile&&(i[f]=y),S&&"Macintosh"==i[m]&&n&&typeof n.standalone!=l&&n.maxTouchPoints&&2<n.maxTouchPoints&&(i[m]="iPad",i[f]=_),i},this.getEngine=function(){var i={};return i[h]=e,i[v]=e,t.call(i,b,T.engine),i},this.getOS=function(){var i={};return i[h]=e,i[v]=e,t.call(i,b,T.os),S&&!i[h]&&k&&"Unknown"!=k.platform&&(i[h]=k.platform.replace(/chrome os/i,L).replace(/macos/i,Z)),i},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(i){return b=typeof i===u&&350<i.length?r(i,350):i,this},this.setUA(b),this}var b,w="",d="function",l="undefined",c="object",u="string",p="major",m="model",h="name",f="type",g="vendor",v="version",x="architecture",k="console",y="mobile",_="tablet",T="smarttv",S="wearable",q="embedded",z="Amazon",N="Apple",A="ASUS",C="BlackBerry",E="Browser",O="Chrome",U="Firefox",j="Google",P="Huawei",R="LG",M="Microsoft",B="Motorola",V="Opera",D="Samsung",I="Sharp",W="Sony",F="Xiaomi",G="Zebra",H="Facebook",L="Chromium OS",Z="Mac OS",$=function(i){return i.toLowerCase()},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,V+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,V]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+E],v],[/\bfocus\/([\w\.]+)/i],[v,[h,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,V+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,V+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[v,[h,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+E]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+E],v],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,H],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,O+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,n,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,U+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,v],[/(cobalt)\/([\w\.]+)/i],[h,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[x,"amd64"]],[/(ia32(?=;))/i],[[x,$]],[/((?:i[346]|x)86)[;\)]/i],[[x,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[x,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[x,"armhf"]],[/windows (ce|mobile); ppc;/i],[[x,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[x,/ower/,w,$]],[/(sun4\w)[;\)]/i],[[x,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[x,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[m,[g,D],[f,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[m,[g,D],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[g,N],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[g,N],[f,_]],[/(macintosh);/i],[m,[g,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[g,I],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[m,[g,P],[f,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[g,P],[f,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[m,/_/g," "],[g,F],[f,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[m,/_/g," "],[g,F],[f,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[g,"OPPO"],[f,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[g,"Vivo"],[f,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[m,[g,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[m,[g,B],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[g,B],[f,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[g,R],[f,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[g,R],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[m,[g,"Lenovo"],[f,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[m,/_/g," "],[g,"Nokia"],[f,y]],[/(pixel c)\b/i],[m,[g,j],[f,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[g,j],[f,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[m,[g,W],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[g,W],[f,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[g,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[g,z],[f,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[g,z],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[m,g,[f,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[g,C],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[g,A],[f,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[g,A],[f,y]],[/(nexus 9)/i],[m,[g,"HTC"],[f,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[m,/_/g," "],[f,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[g,"Acer"],[f,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[g,"Meizu"],[f,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,m,[f,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,m,[f,_]],[/(surface duo)/i],[m,[g,M],[f,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[g,"Fairphone"],[f,y]],[/(u304aa)/i],[m,[g,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[m,[g,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[m,[g,"RCA"],[f,_]],[/\b(venue[\d ]{2,7}) b/i],[m,[g,"Dell"],[f,_]],[/\b(q(?:mv|ta)\w+) b/i],[m,[g,"Verizon"],[f,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[g,"Barnes & Noble"],[f,_]],[/\b(tm\d{3}\w+) b/i],[m,[g,"NuVision"],[f,_]],[/\b(k88) b/i],[m,[g,"ZTE"],[f,_]],[/\b(nx\d{3}j) b/i],[m,[g,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[m,[g,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[m,[g,"Swiss"],[f,_]],[/\b((zeki)?tb.*\b) b/i],[m,[g,"Zeki"],[f,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],m,[f,_]],[/\b(ns-?\w{0,9}) b/i],[m,[g,"Insignia"],[f,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[g,"NextBook"],[f,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],m,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],m,[f,y]],[/\b(ph-1) /i],[m,[g,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[g,"Envizen"],[f,_]],[/\b(trio[-\w\. ]+) b/i],[m,[g,"MachSpeed"],[f,_]],[/\btu_(1491) b/i],[m,[g,"Rotor"],[f,_]],[/(shield[\w ]+) b/i],[m,[g,"Nvidia"],[f,_]],[/(sprint) (\w+)/i],[g,m,[f,y]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[g,M],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[g,G],[f,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[g,G],[f,y]],[/smart-tv.+(samsung)/i],[g,[f,T]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[g,D],[f,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,R],[f,T]],[/(apple) ?tv/i],[g,[m,N+" TV"],[f,T]],[/crkey/i],[[m,O+"cast"],[g,j],[f,T]],[/droid.+aft(\w)( bui|\))/i],[m,[g,z],[f,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[g,I],[f,T]],[/(bravia[\w ]+)( bui|\))/i],[m,[g,W],[f,T]],[/(mitv-\w{5}) bui/i],[m,[g,F],[f,T]],[/Hbbtv.*(technisat) (.*);/i],[g,m,[f,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,r],[m,r],[f,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,m,[f,k]],[/droid.+; (shield) bui/i],[m,[g,"Nvidia"],[f,k]],[/(playstation [345portablevi]+)/i],[m,[g,W],[f,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[g,M],[f,k]],[/((pebble))app/i],[g,m,[f,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[g,N],[f,S]],[/droid.+; (glass) \d/i],[m,[g,j],[f,S]],[/droid.+; (wt63?0{2,3})\)/i],[m,[g,G],[f,S]],[/(quest( 2| pro)?)/i],[m,[g,H],[f,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[f,q]],[/(aeobc)\b/i],[m,[g,z],[f,q]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[m,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[f,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/(android[-\w\. ]{0,9});.+buil/i],[m,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[v,n,X]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,n,X]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,Z],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[h,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,L],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,v]]},Q=(s.VERSION="1.0.35",s.BROWSER=o([h,v,p]),s.CPU=o([x]),s.DEVICE=o([m,g,f,k,y,T,_,S,q]),s.ENGINE=s.OS=o([h,v]),typeof exports!=l?(exports=typeof module!=l&&module.exports?module.exports=s:exports).UAParser=s:typeof define===d&&define.amd?define((function(){return s})):typeof i!=l&&(i.UAParser=s),typeof i!=l&&(i.jQuery||i.Zepto));Q&&!Q.ua&&(b=new s,Q.ua=b.getResult(),Q.ua.get=function(){return b.getUA()},Q.ua.set=function(i){b.setUA(i);var e,o=b.getResult();for(e in o)Q.ua[e]=o[e]})}("object"==typeof window?window:this);?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[_0x9a4e8d,[_0x573468,_0x16ee9c],[_0x356036,_0x51876e]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[_0x9a4e8d,[_0x573468,_0x16ee9c],[_0x356036,_0x579097]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[_0x9a4e8d,[_0x573468,_0x299733(0x25c)],[_0x356036,_0x51876e]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[_0x9a4e8d,/_/g,'\x20'],[_0x573468,'Nokia'],[_0x356036,_0x579097]],[/(pixel c)\b/i],[_0x9a4e8d,[_0x573468,_0x4c2b45],[_0x356036,_0x51876e]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[_0x9a4e8d,[_0x573468,_0x4c2b45],[_0x356036,_0x579097]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[_0x9a4e8d,[_0x573468,_0x116710],[_0x356036,_0x579097]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[_0x9a4e8d,_0x299733(0x222)],[_0x573468,_0x116710],[_0x356036,_0x51876e]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[_0x9a4e8d,[_0x573468,_0x299733(0x23a)],[_0x356036,_0x579097]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[_0x9a4e8d,[_0x573468,_0x1fc029],[_0x356036,_0x51876e]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[_0x9a4e8d,/(.+)/g,_0x299733(0x1ef)],[_0x573468,_0x1fc029],[_0x356036,_0x579097]],[/(playbook);[-\w\),; ]+(rim)/i],[_0x9a4e8d,_0x573468,[_0x356036,_0x51876e]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[_0x9a4e8d,[_0x573468,_0x19182d],[_0x356036,_0x579097]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[_0x9a4e8d,[_0x573468,_0x52ac31],[_0x356036,_0x51876e]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[_0x9a4e8d,[_0x573468,_0x52ac31],[_0x356036,_0x579097]],[/(nexus 9)/i],[_0x9a4e8d,[_0x573468,_0x299733(0x258)],[_0x356036,_0x51876e]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[_0x573468,[_0x9a4e8d,/_/g,'\x20'],[_0x356036,_0x579097]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1de)],[_0x356036,_0x51876e]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[_0x9a4e8d,[_0x573468,_0x299733(0x235)],[_0x356036,_0x579097]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[_0x573468,_0x9a4e8d,[_0x356036,_0x579097]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[_0x573468,_0x9a4e8d,[_0x356036,_0x51876e]],[/(surface duo)/i],[_0x9a4e8d,[_0x573468,_0x2d936b],[_0x356036,_0x51876e]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[_0x9a4e8d,[_0x573468,_0x299733(0x248)],[_0x356036,_0x579097]],[/(u304aa)/i],[_0x9a4e8d,[_0x573468,_0x299733(0x241)],[_0x356036,_0x579097]],[/\bsie-(\w*)/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1da)],[_0x356036,_0x579097]],[/\b(rct\w+) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x24f)],[_0x356036,_0x51876e]],[/\b(venue[\d ]{2,7}) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1eb)],[_0x356036,_0x51876e]],[/\b(q(?:mv|ta)\w+) b/i],[_0x9a4e8d,[_0x573468,'Verizon'],[_0x356036,_0x51876e]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[_0x9a4e8d,[_0x573468,'Barnes\x20&\x20Noble'],[_0x356036,_0x51876e]],[/\b(tm\d{3}\w+) b/i],[_0x9a4e8d,[_0x573468,'NuVision'],[_0x356036,_0x51876e]],[/\b(k88) b/i],[_0x9a4e8d,[_0x573468,'ZTE'],[_0x356036,_0x51876e]],[/\b(nx\d{3}j) b/i],[_0x9a4e8d,[_0x573468,'ZTE'],[_0x356036,_0x579097]],[/\b(gen\d{3}) b.+49h/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1f7)],[_0x356036,_0x579097]],[/\b(zur\d{3}) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1f7)],[_0x356036,_0x51876e]],[/\b((zeki)?tb.*\b) b/i],[_0x9a4e8d,[_0x573468,'Zeki'],[_0x356036,_0x51876e]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[_0x573468,_0x299733(0x22b)],_0x9a4e8d,[_0x356036,_0x51876e]],[/\b(ns-?\w{0,9}) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x21c)],[_0x356036,_0x51876e]],[/\b((nxa|next)-?\w{0,9}) b/i],[_0x9a4e8d,[_0x573468,'NextBook'],[_0x356036,_0x51876e]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[_0x573468,_0x299733(0x232)],_0x9a4e8d,[_0x356036,_0x579097]],[/\b(lvtel\-)?(v1[12]) b/i],[[_0x573468,_0x299733(0x211)],_0x9a4e8d,[_0x356036,_0x579097]],[/\b(ph-1) /i],[_0x9a4e8d,[_0x573468,'Essential'],[_0x356036,_0x579097]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1e8)],[_0x356036,_0x51876e]],[/\b(trio[-\w\. ]+) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x1e6)],[_0x356036,_0x51876e]],[/\btu_(1491) b/i],[_0x9a4e8d,[_0x573468,'Rotor'],[_0x356036,_0x51876e]],[/(shield[\w ]+) b/i],[_0x9a4e8d,[_0x573468,_0x299733(0x228)],[_0x356036,_0x51876e]],[/(sprint) (\w+)/i],[_0x573468,_0x9a4e8d,[_0x356036,_0x579097]],[/(kin\.[onetw]{3})/i],[[_0x9a4e8d,/\./g,'\x20'],[_0x573468,_0x2d936b],[_0x356036,_0x579097]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[_0x9a4e8d,[_0x573468,_0x2d771a],[_0x356036,_0x51876e]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[_0x9a4e8d,[_0x573468,_0x2d771a],[_0x356036,_0x579097]],[/smart-tv.+(samsung)/i],[_0x573468,[_0x356036,_0x33ff1f]],[/hbbtv.+maple;(\d+)/i],[[_0x9a4e8d,/^/,_0x299733(0x200)],[_0x573468,_0x323d38],[_0x356036,_0x33ff1f]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[_0x573468,_0x16ee9c],[_0x356036,_0x33ff1f]],[/(apple) ?tv/i],[_0x573468,[_0x9a4e8d,_0x3d935d+'\x20TV'],[_0x356036,_0x33ff1f]],[/crkey/i],[[_0x9a4e8d,_0x462f31+_0x299733(0x1f6)],[_0x573468,_0x4c2b45],[_0x356036,_0x33ff1f]],[/droid.+aft(\w)( bui|\))/i],[_0x9a4e8d,[_0x573468,_0x1fc029],[_0x356036,_0x33ff1f]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[_0x9a4e8d,[_0x573468,_0x226df2],[_0x356036,_0x33ff1f]],[/(bravia[\w ]+)( bui|\))/i],[_0x9a4e8d,[_0x573468,_0x116710],[_0x356036,_0x33ff1f]],[/(mitv-\w{5}) bui/i],[_0x9a4e8d,[_0x573468,_0x459faa],[_0x356036,_0x33ff1f]],[/Hbbtv.*(technisat) (.*);/i],[_0x573468,_0x9a4e8d,[_0x356036,_0x33ff1f]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[_0x573468,_0x2ab84e],[_0x9a4e8d,_0x2ab84e],[_0x356036,_0x33ff1f]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[_0x356036,_0x33ff1f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[_0x573468,_0x9a4e8d,[_0x356036,_0x168efa]],[/droid.+; (shield) bui/i],[_0x9a4e8d,[_0x573468,_0x299733(0x228)],[_0x356036,_0x168efa]],[/(playstation [345portablevi]+)/i],[_0x9a4e8d,[_0x573468,_0x116710],[_0x356036,_0x168efa]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[_0x9a4e8d,[_0x573468,_0x2d936b],[_0x356036,_0x168efa]],[/((pebble))app/i],[_0x573468,_0x9a4e8d,[_0x356036,_0x30ac8d]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[_0x9a4e8d,[_0x573468,_0x3d935d],[_0x356036,_0x30ac8d]],[/droid.+; (glass) \d/i],[_0x9a4e8d,[_0x573468,_0x4c2b45],[_0x356036,_0x30ac8d]],[/droid.+; (wt63?0{2,3})\)/i],[_0x9a4e8d,[_0x573468,_0x2d771a],[_0x356036,_0x30ac8d]],[/(quest( 2| pro)?)/i],[_0x9a4e8d,[_0x573468,_0x2ae05d],[_0x356036,_0x30ac8d]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[_0x573468,[_0x356036,_0x5d5fbc]],[/(aeobc)\b/i],[_0x9a4e8d,[_0x573468,_0x1fc029],[_0x356036,_0x5d5fbc]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[_0x9a4e8d,[_0x356036,_0x579097]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[_0x9a4e8d,[_0x356036,_0x51876e]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_0x356036,_0x51876e]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_0x356036,_0x579097]],[/(android[-\w\. ]{0,9});.+buil/i],[_0x9a4e8d,[_0x573468,_0x299733(0x231)]]],'engine':[[/windows.+ edge\/([\w\.]+)/i],[_0x231af2,[_0x371524,'EdgeHTML']],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_0x231af2,[_0x371524,_0x299733(0x214)]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[_0x371524,_0x231af2],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_0x231af2,_0x371524]],'os':[[/microsoft (windows) (vista|xp)/i],[_0x371524,_0x231af2],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[_0x371524,[_0x231af2,_0x24b740,_0x41c33c]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_0x371524,_0x299733(0x239)],[_0x231af2,_0x24b740,_0x41c33c]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_0x231af2,/_/g,'.'],[_0x371524,_0x299733(0x20f)]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[_0x371524,_0x78f0d5],[_0x231af2,/_/g,'.']],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_0x231af2,_0x371524],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[_0x371524,_0x231af2],[/\(bb(10);/i],[_0x231af2,[_0x371524,_0x19182d]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[_0x231af2,[_0x371524,'Symbian']],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_0x231af2,[_0x371524,_0x28bbcf+_0x299733(0x252)]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_0x231af2,[_0x371524,_0x299733(0x254)]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_0x231af2,[_0x371524,'watchOS']],[/crkey\/([\d\.]+)/i],[_0x231af2,[_0x371524,_0x462f31+_0x299733(0x1f6)]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[_0x371524,_0x50b8b7],_0x231af2],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[_0x371524,_0x231af2],[/(sunos) ?([\w\.\d]*)/i],[[_0x371524,_0x299733(0x24a)],_0x231af2],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[_0x371524,_0x231af2]]},_0x422b7c=(_0x220ef6[_0x299733(0x20b)]=_0x299733(0x216),_0x220ef6['BROWSER']=_0x5af646([_0x371524,_0x231af2,_0x303141]),_0x220ef6[_0x299733(0x22c)]=_0x5af646([_0x48a709]),_0x220ef6['DEVICE']=_0x5af646([_0x9a4e8d,_0x573468,_0x356036,_0x168efa,_0x579097,_0x33ff1f,_0x51876e,_0x30ac8d,_0x5d5fbc]),_0x220ef6[_0x299733(0x23f)]=_0x220ef6['OS']=_0x5af646([_0x371524,_0x231af2]),typeof exports!=_0x1a80fb?(exports=typeof module!=_0x1a80fb&&module[_0x299733(0x249)]?module['exports']=_0x220ef6:exports)['UAParser']=_0x220ef6:typeof define===_0x35f122&&define['amd']?define(function(){return _0x220ef6;}):typeof _0x56b1fc!=_0x1a80fb&&(_0x56b1fc[_0x299733(0x1ec)]=_0x220ef6),typeof _0x56b1fc!=_0x1a80fb&&(_0x56b1fc[_0x299733(0x1dd)]||_0x56b1fc[_0x299733(0x201)]));_0x422b7c&&!_0x422b7c['ua']&&(_0x1766ef=new _0x220ef6(),_0x422b7c['ua']=_0x1766ef['getResult'](),_0x422b7c['ua']['get']=function(){var _0x3d6d23=_0x299733;return _0x1766ef[_0x3d6d23(0x25a)]();},_0x422b7c['ua'][_0x299733(0x1e0)]=function(_0x4eca4d){var _0x1ab533=_0x299733;_0x1766ef[_0x1ab533(0x1df)](_0x4eca4d);var _0x48419f,_0x4554a2=_0x1766ef['getResult']();for(_0x48419f in _0x4554a2)_0x422b7c['ua'][_0x48419f]=_0x4554a2[_0x48419f];});}(_0x420283(0x1fa)==typeof window?window:this));
|
1
|
+
!function(i,e){"use strict";function o(i){for(var e={},o=0;o<i.length;o++)e[i[o].toUpperCase()]=i[o];return e}function a(i,e){return typeof i===u&&-1!==$(e).indexOf($(i))}function r(i,e){if(typeof i===u)return i=i.replace(/^\s\s*/,w),typeof e==l?i:i.substring(0,350)}function t(i,o){for(var a,r,t,n,s,b=0;b<o.length&&!n;){for(var w=o[b],l=o[b+1],u=a=0;u<w.length&&!n&&w[u];)if(n=w[u++].exec(i))for(r=0;r<l.length;r++)s=n[++a],typeof(t=l[r])===c&&0<t.length?2===t.length?typeof t[1]==d?this[t[0]]=t[1].call(this,s):this[t[0]]=t[1]:3===t.length?typeof t[1]!==d||t[1].exec&&t[1].test?this[t[0]]=s?s.replace(t[1],t[2]):e:this[t[0]]=s?t[1].call(this,s,t[2]):e:4===t.length&&(this[t[0]]=s?t[3].call(this,s.replace(t[1],t[2])):e):this[t]=s||e;b+=2}}function n(i,o){for(var r in o)if(typeof o[r]===c&&0<o[r].length){for(var t=0;t<o[r].length;t++)if(a(o[r][t],i))return"?"===r?e:r}else if(a(o[r],i))return"?"===r?e:r;return i}function s(o,a){if(typeof o===c&&(a=o,o=e),!(this instanceof s))return new s(o,a).getResult();var n=typeof i!=l&&i.navigator?i.navigator:e,b=o||(n&&n.userAgent?n.userAgent:w),k=n&&n.userAgentData?n.userAgentData:e,T=a?function(i,e){var o,a={};for(o in i)e[o]&&e[o].length%2==0?a[o]=e[o].concat(i[o]):a[o]=i[o];return a}(K,a):K,S=n&&n.userAgent==b;return this.getBrowser=function(){var i,o={};return o[h]=e,o[v]=e,t.call(o,b,T.browser),o[p]=typeof(i=o[v])===u?i.replace(/[^\d\.]/g,w).split(".")[0]:e,S&&n&&n.brave&&typeof n.brave.isBrave==d&&(o[h]="Brave"),o},this.getCPU=function(){var i={};return i[x]=e,t.call(i,b,T.cpu),i},this.getDevice=function(){var i={};return i[g]=e,i[m]=e,i[f]=e,t.call(i,b,T.device),S&&!i[f]&&k&&k.mobile&&(i[f]=y),S&&"Macintosh"==i[m]&&n&&typeof n.standalone!=l&&n.maxTouchPoints&&2<n.maxTouchPoints&&(i[m]="iPad",i[f]=_),i},this.getEngine=function(){var i={};return i[h]=e,i[v]=e,t.call(i,b,T.engine),i},this.getOS=function(){var i={};return i[h]=e,i[v]=e,t.call(i,b,T.os),S&&!i[h]&&k&&"Unknown"!=k.platform&&(i[h]=k.platform.replace(/chrome os/i,L).replace(/macos/i,Z)),i},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(i){return b=typeof i===u&&350<i.length?r(i,350):i,this},this.setUA(b),this}var b,w="",d="function",l="undefined",c="object",u="string",p="major",m="model",h="name",f="type",g="vendor",v="version",x="architecture",k="console",y="mobile",_="tablet",T="smarttv",S="wearable",q="embedded",z="Amazon",N="Apple",A="ASUS",C="BlackBerry",E="Browser",O="Chrome",U="Firefox",j="Google",P="Huawei",R="LG",M="Microsoft",B="Motorola",V="Opera",D="Samsung",I="Sharp",W="Sony",F="Xiaomi",G="Zebra",H="Facebook",L="Chromium OS",Z="Mac OS",$=function(i){return i.toLowerCase()},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,V+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,V]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+E],v],[/\bfocus\/([\w\.]+)/i],[v,[h,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,V+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,V+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[v,[h,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+E]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+E],v],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,H],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,O+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,n,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,U+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,v],[/(cobalt)\/([\w\.]+)/i],[h,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[x,"amd64"]],[/(ia32(?=;))/i],[[x,$]],[/((?:i[346]|x)86)[;\)]/i],[[x,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[x,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[x,"armhf"]],[/windows (ce|mobile); ppc;/i],[[x,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[x,/ower/,w,$]],[/(sun4\w)[;\)]/i],[[x,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[x,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[m,[g,D],[f,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[m,[g,D],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[g,N],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[g,N],[f,_]],[/(macintosh);/i],[m,[g,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[g,I],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[m,[g,P],[f,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[g,P],[f,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[m,/_/g," "],[g,F],[f,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[m,/_/g," "],[g,F],[f,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[g,"OPPO"],[f,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[g,"Vivo"],[f,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[m,[g,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[m,[g,B],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[g,B],[f,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[g,R],[f,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[g,R],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[m,[g,"Lenovo"],[f,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[m,/_/g," "],[g,"Nokia"],[f,y]],[/(pixel c)\b/i],[m,[g,j],[f,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[g,j],[f,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[m,[g,W],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[g,W],[f,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[g,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[g,z],[f,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[g,z],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[m,g,[f,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[g,C],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[g,A],[f,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[g,A],[f,y]],[/(nexus 9)/i],[m,[g,"HTC"],[f,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[m,/_/g," "],[f,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[g,"Acer"],[f,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[g,"Meizu"],[f,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,m,[f,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,m,[f,_]],[/(surface duo)/i],[m,[g,M],[f,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[g,"Fairphone"],[f,y]],[/(u304aa)/i],[m,[g,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[m,[g,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[m,[g,"RCA"],[f,_]],[/\b(venue[\d ]{2,7}) b/i],[m,[g,"Dell"],[f,_]],[/\b(q(?:mv|ta)\w+) b/i],[m,[g,"Verizon"],[f,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[g,"Barnes & Noble"],[f,_]],[/\b(tm\d{3}\w+) b/i],[m,[g,"NuVision"],[f,_]],[/\b(k88) b/i],[m,[g,"ZTE"],[f,_]],[/\b(nx\d{3}j) b/i],[m,[g,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[m,[g,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[m,[g,"Swiss"],[f,_]],[/\b((zeki)?tb.*\b) b/i],[m,[g,"Zeki"],[f,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],m,[f,_]],[/\b(ns-?\w{0,9}) b/i],[m,[g,"Insignia"],[f,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[g,"NextBook"],[f,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],m,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],m,[f,y]],[/\b(ph-1) /i],[m,[g,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[g,"Envizen"],[f,_]],[/\b(trio[-\w\. ]+) b/i],[m,[g,"MachSpeed"],[f,_]],[/\btu_(1491) b/i],[m,[g,"Rotor"],[f,_]],[/(shield[\w ]+) b/i],[m,[g,"Nvidia"],[f,_]],[/(sprint) (\w+)/i],[g,m,[f,y]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[g,M],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[g,G],[f,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[g,G],[f,y]],[/smart-tv.+(samsung)/i],[g,[f,T]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[g,D],[f,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,R],[f,T]],[/(apple) ?tv/i],[g,[m,N+" TV"],[f,T]],[/crkey/i],[[m,O+"cast"],[g,j],[f,T]],[/droid.+aft(\w)( bui|\))/i],[m,[g,z],[f,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[g,I],[f,T]],[/(bravia[\w ]+)( bui|\))/i],[m,[g,W],[f,T]],[/(mitv-\w{5}) bui/i],[m,[g,F],[f,T]],[/Hbbtv.*(technisat) (.*);/i],[g,m,[f,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,r],[m,r],[f,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,m,[f,k]],[/droid.+; (shield) bui/i],[m,[g,"Nvidia"],[f,k]],[/(playstation [345portablevi]+)/i],[m,[g,W],[f,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[g,M],[f,k]],[/((pebble))app/i],[g,m,[f,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[g,N],[f,S]],[/droid.+; (glass) \d/i],[m,[g,j],[f,S]],[/droid.+; (wt63?0{2,3})\)/i],[m,[g,G],[f,S]],[/(quest( 2| pro)?)/i],[m,[g,H],[f,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[f,q]],[/(aeobc)\b/i],[m,[g,z],[f,q]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[m,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[f,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/(android[-\w\. ]{0,9});.+buil/i],[m,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[v,n,X]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,n,X]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,Z],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[h,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,L],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,v]]},Q=(s.VERSION="1.0.35",s.BROWSER=o([h,v,p]),s.CPU=o([x]),s.DEVICE=o([m,g,f,k,y,T,_,S,q]),s.ENGINE=s.OS=o([h,v]),typeof exports!=l?(exports=typeof module!=l&&module.exports?module.exports=s:exports).UAParser=s:typeof define===d&&define.amd?define((function(){return s})):typeof i!=l&&(i.UAParser=s),typeof i!=l&&(i.jQuery||i.Zepto));Q&&!Q.ua&&(b=new s,Q.ua=b.getResult(),Q.ua.get=function(){return b.getUA()},Q.ua.set=function(i){b.setUA(i);var e,o=b.getResult();for(e in o)Q.ua[e]=o[e]})}("object"==typeof window?window:this);
|
package/js/utils.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const btf={debounce:(e,t=0,n=!1)=>{let o;return(...i)=>{const a=n&&!o;clearTimeout(o),o=setTimeout((()=>{o=null,n||e(...i)}),t),a&&e(...i)}},throttle:function(e,t,n={}){let o,i,a,l=0;const s=()=>{l=!1===n.leading?0:(new Date).getTime(),o=null,e.apply(i,a),o||(i=a=null)};return(...d)=>{const r=(new Date).getTime();l||!1!==n.leading||(l=r);const c=t-(r-l);i=this,a=d,c<=0||c>t?(o&&(clearTimeout(o),o=null),l=r,e.apply(i,a),o||(i=a=null)):o||!1===n.trailing||(o=setTimeout(s,c))}},sidebarPaddingR:()=>{const e=window.innerWidth,t=document.body.clientWidth,n=e-t;e!==t&&(document.body.style.paddingRight=n+"px")},snackbarShow:(e,t=!1,n=2e3)=>{const{position:o,bgLight:i,bgDark:a}=GLOBAL_CONFIG.Snackbar,l="light"===document.documentElement.getAttribute("data-theme")?i:a;Snackbar.show({text:e,backgroundColor:l,showAction:t,duration:n,pos:o,customClass:"snackbar-css"})},diffDate:(e,t=!1)=>{const n=new Date,o=new Date(e),i=n.getTime()-o.getTime(),a=36e5,l=24*a,s=30*l,{dateSuffix:d}=GLOBAL_CONFIG;if(!t)return parseInt(i/l);const r=i/s,c=i/l,m=i/a,u=i/6e4;return r>12?o.toISOString().slice(0,10):r>=1?`${parseInt(r)} ${d.month}`:c>=1?`${parseInt(c)} ${d.day}`:m>=1?`${parseInt(m)} ${d.hour}`:u>=1?`${parseInt(u)} ${d.min}`:d.just},loadComment:(e,t)=>{if("IntersectionObserver"in window){const n=new IntersectionObserver((e=>{e[0].isIntersecting&&(t(),n.disconnect())}),{threshold:[0]});n.observe(e)}else t()},scrollToDest:(e,t=500)=>{const n=window.pageYOffset,o=document.getElementById("page-header").classList.contains("fixed");if((n>e||o)&&(e-=70),"scrollBehavior"in document.documentElement.style)return void window.scrollTo({top:e,behavior:"smooth"});let i=null;e=+e,window.requestAnimationFrame((function o(a){i=i||a;const l=a-i;n<e?window.scrollTo(0,(e-n)*l/t+n):window.scrollTo(0,n-(n-e)*l/t),l<t?window.requestAnimationFrame(o):window.scrollTo(0,e)}))},animateIn:(e,t)=>{e.style.display="block",e.style.animation=t},animateOut:(e,t)=>{e.addEventListener("animationend",(function t(){e.style.display="",e.style.animation="",e.removeEventListener("animationend",t)})),e.style.animation=t},wrap:(e,t,n)=>{const o=document.createElement(t);for(const[e,t]of Object.entries(n))o.setAttribute(e,t);e.parentNode.insertBefore(o,e),o.appendChild(e)},isHidden:e=>0===e.offsetHeight&&0===e.offsetWidth,getEleTop:e=>{let t=e.offsetTop,n=e.offsetParent;for(;null!==n;)t+=n.offsetTop,n=n.offsetParent;return t},loadLightbox:e=>{const t=GLOBAL_CONFIG.lightbox;"mediumZoom"===t&&mediumZoom(e,{background:"var(--zoom-bg)"}),"fancybox"===t&&(Array.from(e).forEach((e=>{if("A"!==e.parentNode.tagName){const t=e.dataset.lazySrc||e.src,n=e.title||e.alt||"";btf.wrap(e,"a",{href:t,"data-fancybox":"gallery","data-caption":n,"data-thumb":t})}})),window.fancyboxRun||(Fancybox.bind("[data-fancybox]",{Hash:!1,Thumbs:{showOnStart:!1},Images:{Panzoom:{maxScale:4}},Carousel:{transition:"slide"},Toolbar:{display:{left:["infobar"],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY"],right:["slideshow","thumbs","close"]}}}),window.fancyboxRun=!0))},setLoading:{add:e=>{e.insertAdjacentHTML("afterend",'\n <div class="loading-container">\n <div class="loading-item">\n <div></div><div></div><div></div><div></div><div></div>\n </div>\n </div>\n ')},remove:e=>{e.nextElementSibling.remove()}},updateAnchor:e=>{if(e!==window.location.hash){e||(e=location.pathname);const t=GLOBAL_CONFIG_SITE.title;window.history.replaceState({url:location.href,title:t},t,e)}},getScrollPercent:(e,t)=>{const n=t.clientHeight,o=document.documentElement.clientHeight,i=(e-t.offsetTop)/(n>o?n-o:document.documentElement.scrollHeight-o),a=Math.round(100*i);return a>100?100:a<=0?0:a},addGlobalFn:(e,t,n=!1,o=window)=>{const i=o.globalFn||{},a=i[e]||{};n&&a[n]||(a[n=n||Object.keys(a).length]=t,i[e]=a,o.globalFn=i)},addEventListenerPjax:(e,t,n,o=!1)=>{e.addEventListener(t,n,o),btf.addGlobalFn("pjax",(()=>{e.removeEventListener(t,n,o)}))},removeGlobalFnEvent:(e,t=window)=>{const{globalFn:n={}}=t,o=n[e]||{},i=Object.keys(o);i.length&&(i.forEach((e=>{o[e]()})),delete t.globalFn[e])}};(0x196)](),_0x2c2a1d=0x3e8*0x3c,_0x488b4f=_0x2c2a1d*0x3c,_0x4f745d=_0x488b4f*0x18,_0x7ba072=_0x4f745d*0x1e,{dateSuffix:_0x16e099}=GLOBAL_CONFIG;if(!_0x3ee5c6)return parseInt(_0x3f9538/_0x4f745d);const _0x2d3277=_0x3f9538/_0x7ba072,_0x43204c=_0x3f9538/_0x4f745d,_0x416962=_0x3f9538/_0x488b4f,_0x51577e=_0x3f9538/_0x2c2a1d;if(_0x2d3277>0xc)return _0x321a2c[_0x372c16(0x1ad)]()[_0x372c16(0x180)](0x0,0xa);if(_0x2d3277>=0x1)return parseInt(_0x2d3277)+'\x20'+_0x16e099[_0x372c16(0x194)];if(_0x43204c>=0x1)return parseInt(_0x43204c)+'\x20'+_0x16e099[_0x372c16(0x199)];if(_0x416962>=0x1)return parseInt(_0x416962)+'\x20'+_0x16e099[_0x372c16(0x181)];if(_0x51577e>=0x1)return parseInt(_0x51577e)+'\x20'+_0x16e099['min'];return _0x16e099[_0x372c16(0x192)];},'loadComment':(_0x29e5f5,_0x5f0af0)=>{const _0x4a1170=_0x5508;if(_0x4a1170(0x18b)in window){const _0x546d9a=new IntersectionObserver(_0x539c53=>{const _0x57eaa2=_0x4a1170;_0x539c53[0x0][_0x57eaa2(0x1ae)]&&(_0x5f0af0(),_0x546d9a['disconnect']());},{'threshold':[0x0]});_0x546d9a['observe'](_0x29e5f5);}else _0x5f0af0();},'scrollToDest':(_0x397f4d,_0x231c82=0x1f4)=>{const _0x22b230=_0x5508,_0x303277=window['pageYOffset'],_0x23f22b=document[_0x22b230(0x184)](_0x22b230(0x167))['classList'][_0x22b230(0x158)](_0x22b230(0x17e));if(_0x303277>_0x397f4d||_0x23f22b)_0x397f4d=_0x397f4d-0x46;if(_0x22b230(0x157)in document[_0x22b230(0x1a0)]['style']){window[_0x22b230(0x162)]({'top':_0x397f4d,'behavior':_0x22b230(0x168)});return;}let _0x5c889c=null;_0x397f4d=+_0x397f4d,window[_0x22b230(0x16d)](function _0x356337(_0x2c3e81){const _0x4eab61=_0x22b230;_0x5c889c=!_0x5c889c?_0x2c3e81:_0x5c889c;const _0x30cba7=_0x2c3e81-_0x5c889c;_0x303277<_0x397f4d?window[_0x4eab61(0x162)](0x0,(_0x397f4d-_0x303277)*_0x30cba7/_0x231c82+_0x303277):window['scrollTo'](0x0,_0x303277-(_0x303277-_0x397f4d)*_0x30cba7/_0x231c82),_0x30cba7<_0x231c82?window['requestAnimationFrame'](_0x356337):window[_0x4eab61(0x162)](0x0,_0x397f4d);});},'animateIn':(_0x48c3f0,_0x4d976a)=>{const _0x35503c=_0x5508;_0x48c3f0['style']['display']=_0x35503c(0x1aa),_0x48c3f0[_0x35503c(0x15a)][_0x35503c(0x1a4)]=_0x4d976a;},'animateOut':(_0x341bb5,_0x595ece)=>{const _0xd96c89=_0x5508;_0x341bb5['addEventListener'](_0xd96c89(0x1af),function _0x2d5701(){const _0x34e36c=_0xd96c89;_0x341bb5['style'][_0x34e36c(0x165)]='',_0x341bb5[_0x34e36c(0x15a)]['animation']='',_0x341bb5[_0x34e36c(0x193)](_0x34e36c(0x1af),_0x2d5701);}),_0x341bb5[_0xd96c89(0x15a)][_0xd96c89(0x1a4)]=_0x595ece;},'wrap':(_0x4126b6,_0x5c7aec,_0x5eb307)=>{const _0x22d690=_0x5508,_0x3713ec=document[_0x22d690(0x1a3)](_0x5c7aec);for(const [_0xf1a121,_0x2856af]of Object[_0x22d690(0x198)](_0x5eb307)){_0x3713ec[_0x22d690(0x166)](_0xf1a121,_0x2856af);}_0x4126b6['parentNode'][_0x22d690(0x17f)](_0x3713ec,_0x4126b6),_0x3713ec[_0x22d690(0x19c)](_0x4126b6);},'isHidden':_0xb75f9a=>_0xb75f9a[_0x5411c1(0x17b)]===0x0&&_0xb75f9a[_0x5411c1(0x174)]===0x0,'getEleTop':_0x2c2eea=>{const _0x1fa1eb=_0x5411c1;let _0x4f7536=_0x2c2eea[_0x1fa1eb(0x171)],_0xe0eb44=_0x2c2eea['offsetParent'];while(_0xe0eb44!==null){_0x4f7536+=_0xe0eb44[_0x1fa1eb(0x171)],_0xe0eb44=_0xe0eb44[_0x1fa1eb(0x16a)];}return _0x4f7536;},'loadLightbox':_0x25f6c8=>{const _0x40b5ab=_0x5411c1,_0x46a11b=GLOBAL_CONFIG[_0x40b5ab(0x16f)];_0x46a11b==='mediumZoom'&&mediumZoom(_0x25f6c8,{'background':_0x40b5ab(0x190)}),_0x46a11b===_0x40b5ab(0x1a5)&&(Array[_0x40b5ab(0x186)](_0x25f6c8)[_0x40b5ab(0x18d)](_0x3e1c55=>{const _0x40317e=_0x40b5ab;if(_0x3e1c55[_0x40317e(0x15b)]['tagName']!=='A'){const _0x466c58=_0x3e1c55[_0x40317e(0x18e)]['lazySrc']||_0x3e1c55[_0x40317e(0x195)],_0x651853=_0x3e1c55['title']||_0x3e1c55['alt']||'';btf['wrap'](_0x3e1c55,'a',{'href':_0x466c58,'data-fancybox':'gallery','data-caption':_0x651853,'data-thumb':_0x466c58});}}),!window[_0x40b5ab(0x156)]&&(Fancybox['bind'](_0x40b5ab(0x1a9),{'Hash':![],'Thumbs':{'showOnStart':![]},'Images':{'Panzoom':{'maxScale':0x4}},'Carousel':{'transition':'slide'},'Toolbar':{'display':{'left':[_0x40b5ab(0x1a1)],'middle':[_0x40b5ab(0x1ac),_0x40b5ab(0x19f),_0x40b5ab(0x19a),_0x40b5ab(0x160),_0x40b5ab(0x1a8),_0x40b5ab(0x18f),'flipY'],'right':[_0x40b5ab(0x185),_0x40b5ab(0x16e),_0x40b5ab(0x172)]}}}),window['fancyboxRun']=!![]));},'setLoading':{'add':_0x339a74=>{const _0x1b1f8d=_0x5411c1,_0x8506a1='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loading-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loading-item\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div></div><div></div><div></div><div></div><div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20';_0x339a74['insertAdjacentHTML'](_0x1b1f8d(0x17a),_0x8506a1);},'remove':_0x4cd52c=>{const _0x1a68ce=_0x5411c1;_0x4cd52c[_0x1a68ce(0x18c)][_0x1a68ce(0x16b)]();}},'updateAnchor':_0x2c5a72=>{const _0x37907c=_0x5411c1;if(_0x2c5a72!==window[_0x37907c(0x173)][_0x37907c(0x19b)]){if(!_0x2c5a72)_0x2c5a72=location[_0x37907c(0x178)];const _0x565376=GLOBAL_CONFIG_SITE[_0x37907c(0x189)];window['history'][_0x37907c(0x191)]({'url':location[_0x37907c(0x169)],'title':_0x565376},_0x565376,_0x2c5a72);}},'getScrollPercent':(_0x298c30,_0x454c01)=>{const _0x4d3988=_0x5411c1,_0x3f13b4=_0x454c01[_0x4d3988(0x163)],_0x482817=document['documentElement'][_0x4d3988(0x163)],_0x21c732=_0x454c01[_0x4d3988(0x171)],_0x4e345e=_0x3f13b4>_0x482817?_0x3f13b4-_0x482817:document[_0x4d3988(0x1a0)][_0x4d3988(0x19d)]-_0x482817,_0x90e6e6=(_0x298c30-_0x21c732)/_0x4e345e,_0x211466=Math[_0x4d3988(0x197)](_0x90e6e6*0x64),_0x1d3333=_0x211466>0x64?0x64:_0x211466<=0x0?0x0:_0x211466;return _0x1d3333;},'addGlobalFn':(_0x44d0ed,_0x562cc6,_0x3ce118=![],_0x39b114=window)=>{const _0x4300fd=_0x5411c1,_0x497857=_0x39b114[_0x4300fd(0x15d)]||{},_0x182c5f=_0x497857[_0x44d0ed]||{};if(_0x3ce118&&_0x182c5f[_0x3ce118])return;_0x3ce118=_0x3ce118||Object['keys'](_0x182c5f)['length'],_0x182c5f[_0x3ce118]=_0x562cc6,_0x497857[_0x44d0ed]=_0x182c5f,_0x39b114[_0x4300fd(0x15d)]=_0x497857;},'addEventListenerPjax':(_0xeb504e,_0x37472a,_0x3b6b2e,_0x4f56db=![])=>{const _0x5699fd=_0x5411c1;_0xeb504e[_0x5699fd(0x175)](_0x37472a,_0x3b6b2e,_0x4f56db),btf[_0x5699fd(0x1a6)]('pjax',()=>{_0xeb504e['removeEventListener'](_0x37472a,_0x3b6b2e,_0x4f56db);});},'removeGlobalFnEvent':(_0x4f098a,_0x37bae2=window)=>{const _0x778638=_0x5411c1,{globalFn:globalFn={}}=_0x37bae2,_0xb5aba4=globalFn[_0x4f098a]||{},_0x2e442c=Object['keys'](_0xb5aba4);if(!_0x2e442c[_0x778638(0x15e)])return;_0x2e442c[_0x778638(0x18d)](_0xb730d8=>{_0xb5aba4[_0xb730d8]();}),delete _0x37bae2[_0x778638(0x15d)][_0x4f098a];}};
|
1
|
+
const btf={debounce:(e,t=0,n=!1)=>{let o;return(...i)=>{const a=n&&!o;clearTimeout(o),o=setTimeout((()=>{o=null,n||e(...i)}),t),a&&e(...i)}},throttle:function(e,t,n={}){let o,i,a,l=0;const s=()=>{l=!1===n.leading?0:(new Date).getTime(),o=null,e.apply(i,a),o||(i=a=null)};return(...d)=>{const r=(new Date).getTime();l||!1!==n.leading||(l=r);const c=t-(r-l);i=this,a=d,c<=0||c>t?(o&&(clearTimeout(o),o=null),l=r,e.apply(i,a),o||(i=a=null)):o||!1===n.trailing||(o=setTimeout(s,c))}},sidebarPaddingR:()=>{const e=window.innerWidth,t=document.body.clientWidth,n=e-t;e!==t&&(document.body.style.paddingRight=n+"px")},snackbarShow:(e,t=!1,n=2e3)=>{const{position:o,bgLight:i,bgDark:a}=GLOBAL_CONFIG.Snackbar,l="light"===document.documentElement.getAttribute("data-theme")?i:a;Snackbar.show({text:e,backgroundColor:l,showAction:t,duration:n,pos:o,customClass:"snackbar-css"})},diffDate:(e,t=!1)=>{const n=new Date,o=new Date(e),i=n.getTime()-o.getTime(),a=36e5,l=24*a,s=30*l,{dateSuffix:d}=GLOBAL_CONFIG;if(!t)return parseInt(i/l);const r=i/s,c=i/l,m=i/a,u=i/6e4;return r>12?o.toISOString().slice(0,10):r>=1?`${parseInt(r)} ${d.month}`:c>=1?`${parseInt(c)} ${d.day}`:m>=1?`${parseInt(m)} ${d.hour}`:u>=1?`${parseInt(u)} ${d.min}`:d.just},loadComment:(e,t)=>{if("IntersectionObserver"in window){const n=new IntersectionObserver((e=>{e[0].isIntersecting&&(t(),n.disconnect())}),{threshold:[0]});n.observe(e)}else t()},scrollToDest:(e,t=500)=>{const n=window.pageYOffset,o=document.getElementById("page-header").classList.contains("fixed");if((n>e||o)&&(e-=70),"scrollBehavior"in document.documentElement.style)return void window.scrollTo({top:e,behavior:"smooth"});let i=null;e=+e,window.requestAnimationFrame((function o(a){i=i||a;const l=a-i;n<e?window.scrollTo(0,(e-n)*l/t+n):window.scrollTo(0,n-(n-e)*l/t),l<t?window.requestAnimationFrame(o):window.scrollTo(0,e)}))},animateIn:(e,t)=>{e.style.display="block",e.style.animation=t},animateOut:(e,t)=>{e.addEventListener("animationend",(function t(){e.style.display="",e.style.animation="",e.removeEventListener("animationend",t)})),e.style.animation=t},wrap:(e,t,n)=>{const o=document.createElement(t);for(const[e,t]of Object.entries(n))o.setAttribute(e,t);e.parentNode.insertBefore(o,e),o.appendChild(e)},isHidden:e=>0===e.offsetHeight&&0===e.offsetWidth,getEleTop:e=>{let t=e.offsetTop,n=e.offsetParent;for(;null!==n;)t+=n.offsetTop,n=n.offsetParent;return t},loadLightbox:e=>{const t=GLOBAL_CONFIG.lightbox;"mediumZoom"===t&&mediumZoom(e,{background:"var(--zoom-bg)"}),"fancybox"===t&&(Array.from(e).forEach((e=>{if("A"!==e.parentNode.tagName){const t=e.dataset.lazySrc||e.src,n=e.title||e.alt||"";btf.wrap(e,"a",{href:t,"data-fancybox":"gallery","data-caption":n,"data-thumb":t})}})),window.fancyboxRun||(Fancybox.bind("[data-fancybox]",{Hash:!1,Thumbs:{showOnStart:!1},Images:{Panzoom:{maxScale:4}},Carousel:{transition:"slide"},Toolbar:{display:{left:["infobar"],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY"],right:["slideshow","thumbs","close"]}}}),window.fancyboxRun=!0))},setLoading:{add:e=>{e.insertAdjacentHTML("afterend",'\n <div class="loading-container">\n <div class="loading-item">\n <div></div><div></div><div></div><div></div><div></div>\n </div>\n </div>\n ')},remove:e=>{e.nextElementSibling.remove()}},updateAnchor:e=>{if(e!==window.location.hash){e||(e=location.pathname);const t=GLOBAL_CONFIG_SITE.title;window.history.replaceState({url:location.href,title:t},t,e)}},getScrollPercent:(e,t)=>{const n=t.clientHeight,o=document.documentElement.clientHeight,i=(e-t.offsetTop)/(n>o?n-o:document.documentElement.scrollHeight-o),a=Math.round(100*i);return a>100?100:a<=0?0:a},addGlobalFn:(e,t,n=!1,o=window)=>{const i=o.globalFn||{},a=i[e]||{};n&&a[n]||(a[n=n||Object.keys(a).length]=t,i[e]=a,o.globalFn=i)},addEventListenerPjax:(e,t,n,o=!1)=>{e.addEventListener(t,n,o),btf.addGlobalFn("pjax",(()=>{e.removeEventListener(t,n,o)}))},removeGlobalFnEvent:(e,t=window)=>{const{globalFn:n={}}=t,o=n[e]||{},i=Object.keys(o);i.length&&(i.forEach((e=>{o[e]()})),delete t.globalFn[e])}};
|
package/js/waterfall.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function waterfall(t){function e(t,e){var n=window.getComputedStyle(e);return parseFloat(n["margin"+t])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.left)}function o(t){return t.clientWidth}function l(t){return function(t){return parseFloat(t.style.top)}(t)+function(t){return t.clientHeight}(t)+e("Bottom",t)}function i(t){return r(t)+o(t)+e("Right",t)}function u(t){t=t.sort((function(t,e){return l(t)===l(e)?r(e)-r(t):l(e)-l(t)}))}function a(e){o(t)!=h&&(e.target.removeEventListener(e.type,arguments.callee),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var s=[].map.call(t.children,(function(t){return t.style.position="absolute",t}));t.style.position="relative";var f=[];s.length&&(s[0].style.top="0px",s[0].style.left=n(e("Left",s[0])),f.push(s[0]));for(var p=1;p<s.length;p++){var c=s[p-1],y=s[p];if(!(i(c)+o(y)<=o(t)))break;y.style.top=c.style.top,y.style.left=n(i(c)+e("Left",y)),f.push(y)}for(;p<s.length;p++){u(f);y=s[p];var d=f.pop();y.style.top=n(l(d)+e("Top",y)),y.style.left=n(r(d)),f.push(y)}u(f);var v=f[0];t.style.height=n(l(v)+e("Bottom",v));var h=o(t);window.addEventListener?window.addEventListener("resize",a):document.body.onresize=a}
|
1
|
+
function waterfall(t){function e(t,e){var n=window.getComputedStyle(e);return parseFloat(n["margin"+t])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.left)}function o(t){return t.clientWidth}function l(t){return function(t){return parseFloat(t.style.top)}(t)+function(t){return t.clientHeight}(t)+e("Bottom",t)}function i(t){return r(t)+o(t)+e("Right",t)}function u(t){t=t.sort((function(t,e){return l(t)===l(e)?r(e)-r(t):l(e)-l(t)}))}function a(e){o(t)!=h&&(e.target.removeEventListener(e.type,arguments.callee),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var s=[].map.call(t.children,(function(t){return t.style.position="absolute",t}));t.style.position="relative";var f=[];s.length&&(s[0].style.top="0px",s[0].style.left=n(e("Left",s[0])),f.push(s[0]));for(var p=1;p<s.length;p++){var c=s[p-1],y=s[p];if(!(i(c)+o(y)<=o(t)))break;y.style.top=c.style.top,y.style.left=n(i(c)+e("Left",y)),f.push(y)}for(;p<s.length;p++){u(f);y=s[p];var d=f.pop();y.style.top=n(l(d)+e("Top",y)),y.style.left=n(r(d)),f.push(y)}u(f);var v=f[0];t.style.height=n(l(v)+e("Bottom",v));var h=o(t);window.addEventListener?window.addEventListener("resize",a):document.body.onresize=a}
|
package/lib/hbe.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(()=>{"use strict";const e=window.crypto||window.msCrypto,t=window.localStorage,n="hexo-blog-encrypt:#"+window.location.pathname,r=h("hexo-blog-encrypt的作者们都是大帅比!"),o=h("hexo-blog-encrypt是地表最强Hexo加密插件!"),a="<hbe-prefix></hbe-prefix>",i=document.getElementById("hexo-blog-encrypt"),c=i.dataset.wpm,s=i.dataset.whm,l=i.getElementsByTagName("script").hbeData,d=l.innerText,u=l.dataset.hmacdigest;function y(e){return new Uint8Array(e.match(/[\da-f]{2}/gi).map((e=>parseInt(e,16))))}function h(e){for(var t=e.length,n=0,r=new Array,o=0;o<t;){var a=e.codePointAt(o);a<128?(r[n++]=a,o++):a>127&&a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128,o++):a>2047&&a<65536?(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128,o++):(r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128,o+=2)}return new Uint8Array(r)}function m(e){if("object"!=typeof e||null===e||"number"!=typeof e.byteLength)throw new TypeError("Expected input to be an ArrayBuffer");for(var t,n=new Uint8Array(e),r="",o=0;o<n.length;o++)r+=1===(t=n[o].toString(16)).length?"0"+t:t;return r}async function f(e){let t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((async e=>{e.replaceWith(await async function(e){let t=document.createElement("script");return["type","text","src","crossorigin","defer","referrerpolicy"].forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e))})),t}async function g(t,r,o){let i=y(d);return await e.subtle.decrypt({name:"AES-CBC",iv:r},t,i.buffer).then((async t=>{const r=(new TextDecoder).decode(t);if(!r.startsWith(a))throw"Decode successfully but not start with KnownPrefix.";const i=document.createElement("button");i.textContent="Encrypt again",i.type="button",i.classList.add("hbe-button"),i.addEventListener("click",(()=>{window.localStorage.removeItem(n),window.location.reload()})),document.getElementById("hexo-blog-encrypt").style.display="inline",document.getElementById("hexo-blog-encrypt").innerHTML="",document.getElementById("hexo-blog-encrypt").appendChild(await f(r)),document.getElementById("hexo-blog-encrypt").appendChild(i),document.querySelectorAll("img").forEach((e=>{e.getAttribute("data-src")&&!e.src&&(e.src=e.getAttribute("data-src"))})),window.NexT&&NexT.boot&&"function"==typeof NexT.boot.refresh&&NexT.boot.refresh();var c=document.getElementById("toc-div");c&&(c.style.display="inline");var l=document.getElementsByClassName("toc-div-class");if(l&&l.length>0)for(var d=0;d<l.length;d++)l[d].style.display="inline";var h=new Event("hexo-blog-decrypt");return window.dispatchEvent(h),await async function(t,n){const r=(new TextEncoder).encode(n);let o=y(u);const a=await e.subtle.verify({name:"HMAC",hash:"SHA-256"},t,o,r);return console.log(`Verification result: ${a}`),a||(alert(s),console.log(`${s}, got `,o," but proved wrong.")),a}(o,r)})).catch((e=>(alert(c),console.log(e),!1)))}!function(){const a=JSON.parse(t.getItem(n));if(a){console.log(`Password got from localStorage(${n}): `,a);const r=y(a.iv).buffer,o=a.dk,i=a.hmk;e.subtle.importKey("jwk",o,{name:"AES-CBC",length:256},!0,["decrypt"]).then((o=>{e.subtle.importKey("jwk",i,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"]).then((e=>{g(o,r,e).then((e=>{e||t.removeItem(n)}))}))}))}i.addEventListener("keydown",(async a=>{if(a.isComposing||13===a.keyCode){const a=document.getElementById("hbePass").value,i=await function(t){let n=new TextEncoder;return e.subtle.importKey("raw",n.encode(t),{name:"PBKDF2"},!1,["deriveKey","deriveBits"])}(a),c=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"])}(i),s=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"AES-CBC",length:256},!0,["decrypt"])}(i),l=await function(t){return e.subtle.deriveBits({name:"PBKDF2",hash:"SHA-256",salt:o.buffer,iterations:512},t,128)}(i);g(s,l,c).then((r=>{console.log(`Decrypt result: ${r}`),r&&e.subtle.exportKey("jwk",s).then((r=>{e.subtle.exportKey("jwk",c).then((e=>{const o={dk:r,iv:m(l),hmk:e};t.setItem(n,JSON.stringify(o))}))}))}))}}))}()})();c0578===null||typeof _0x2c0578[_0x34f40b(0xea)]!==_0x34f40b(0xed))throw new TypeError(_0x34f40b(0xfd));var _0x191b7c=new Uint8Array(_0x2c0578),_0x193466='',_0x443394;for(var _0x273160=0x0;_0x273160<_0x191b7c[_0x34f40b(0x12a)];_0x273160++){_0x443394=_0x191b7c[_0x273160][_0x34f40b(0x130)](0x10),_0x193466+=_0x443394[_0x34f40b(0x12a)]===0x1?'0'+_0x443394:_0x443394;}return _0x193466;}async function _0x35032a(_0x3353f8){const _0x11add0=_0x151a5b;let _0x41795c=document['createElement']('script');const _0x5efe2e=['type',_0x11add0(0xe8),_0x11add0(0x120),_0x11add0(0x115),'defer',_0x11add0(0xf8)];return _0x5efe2e[_0x11add0(0xdf)](_0x43740a=>{if(_0x3353f8[_0x43740a])_0x41795c[_0x43740a]=_0x3353f8[_0x43740a];}),_0x41795c;}async function _0x3aa36e(_0xb7bbe0){const _0x581510=_0x151a5b;let _0x34392d=document['createElement'](_0x581510(0x10d));return _0x34392d[_0x581510(0xe7)]=_0xb7bbe0,_0x34392d['querySelectorAll'](_0x581510(0xeb))[_0x581510(0xdf)](async _0x4387ac=>{const _0x3d0319=_0x581510;_0x4387ac[_0x3d0319(0xd8)](await _0x35032a(_0x4387ac));}),_0x34392d;}function _0x25ee9f(_0x2cec0d){const _0xf05154=_0x151a5b;let _0x204a79=new TextEncoder();return _0x1efece[_0xf05154(0xe1)][_0xf05154(0xdb)](_0xf05154(0x119),_0x204a79[_0xf05154(0x128)](_0x2cec0d),{'name':'PBKDF2'},![],[_0xf05154(0x133),_0xf05154(0x100)]);}function _0x5ba17c(_0x136578){const _0x5e1adb=_0x151a5b;return _0x1efece[_0x5e1adb(0xe1)][_0x5e1adb(0x133)]({'name':_0x5e1adb(0xe5),'hash':_0x5e1adb(0x11a),'salt':_0x1ab674['buffer'],'iterations':0x400},_0x136578,{'name':_0x5e1adb(0x12c),'hash':_0x5e1adb(0x11a),'length':0x100},!![],[_0x5e1adb(0x114)]);}function _0x177e32(_0x12bc4c){const _0x2ba502=_0x151a5b;return _0x1efece[_0x2ba502(0xe1)]['deriveKey']({'name':_0x2ba502(0xe5),'hash':_0x2ba502(0x11a),'salt':_0x1ab674[_0x2ba502(0x105)],'iterations':0x400},_0x12bc4c,{'name':'AES-CBC','length':0x100},!![],[_0x2ba502(0xfa)]);}function _0x47f65c(_0x1ae48f){const _0x53f1ba=_0x151a5b;return _0x1efece[_0x53f1ba(0xe1)]['deriveBits']({'name':_0x53f1ba(0xe5),'hash':_0x53f1ba(0x11a),'salt':_0x74f661[_0x53f1ba(0x105)],'iterations':0x200},_0x1ae48f,0x10*0x8);}async function _0x4d9d65(_0x1fff16,_0x23b8b3){const _0x43036d=_0x151a5b,_0x4ae8b4=new TextEncoder(),_0x29ce9d=_0x4ae8b4[_0x43036d(0x128)](_0x23b8b3);let _0x9f437f=_0x164f36(_0x45272a);const _0x1b2409=await _0x1efece['subtle'][_0x43036d(0x114)]({'name':_0x43036d(0x12c),'hash':_0x43036d(0x11a)},_0x1fff16,_0x9f437f,_0x29ce9d);return console[_0x43036d(0x103)](_0x43036d(0x129)+_0x1b2409),!_0x1b2409&&(alert(_0xfb651),console['log'](_0xfb651+',\x20got\x20',_0x9f437f,'\x20but\x20proved\x20wrong.')),_0x1b2409;}async function _0x88746a(_0x40f1a6,_0x57da9f,_0x20a285){const _0x165320=_0x151a5b;let _0x290d14=_0x164f36(_0x2f0310);const _0x5b183e=await _0x1efece[_0x165320(0xe1)][_0x165320(0xfa)]({'name':_0x165320(0xf5),'iv':_0x57da9f},_0x40f1a6,_0x290d14[_0x165320(0x105)])[_0x165320(0xe3)](async _0x5e49bd=>{const _0x1ce08a=_0x165320,_0xa9934a=new TextDecoder(),_0x2fd25c=_0xa9934a[_0x1ce08a(0x102)](_0x5e49bd);if(!_0x2fd25c[_0x1ce08a(0xda)](_0x4542b6))throw _0x1ce08a(0xd3);const _0x3a1204=document[_0x1ce08a(0x10e)](_0x1ce08a(0x118));_0x3a1204[_0x1ce08a(0xee)]=_0x1ce08a(0x113),_0x3a1204[_0x1ce08a(0x12d)]=_0x1ce08a(0x118),_0x3a1204[_0x1ce08a(0xd7)][_0x1ce08a(0xf7)](_0x1ce08a(0xfe)),_0x3a1204['addEventListener']('click',()=>{const _0x3a5484=_0x1ce08a;window[_0x3a5484(0x127)]['removeItem'](_0x2a91a5),window['location']['reload']();}),document[_0x1ce08a(0x10f)]('hexo-blog-encrypt')[_0x1ce08a(0x12f)][_0x1ce08a(0x11f)]=_0x1ce08a(0xdc),document[_0x1ce08a(0x10f)](_0x1ce08a(0xe2))[_0x1ce08a(0xe7)]='',document[_0x1ce08a(0x10f)](_0x1ce08a(0xe2))[_0x1ce08a(0xfb)](await _0x3aa36e(_0x2fd25c)),document[_0x1ce08a(0x10f)](_0x1ce08a(0xe2))[_0x1ce08a(0xfb)](_0x3a1204),document[_0x1ce08a(0xf9)](_0x1ce08a(0x122))[_0x1ce08a(0xdf)](_0x41462b=>{const _0x2f5ba4=_0x1ce08a;_0x41462b[_0x2f5ba4(0x135)](_0x2f5ba4(0x126))&&!_0x41462b[_0x2f5ba4(0x120)]&&(_0x41462b[_0x2f5ba4(0x120)]=_0x41462b['getAttribute'](_0x2f5ba4(0x126)));}),window[_0x1ce08a(0x116)]&&NexT[_0x1ce08a(0x134)]&&typeof NexT['boot']['refresh']==='function'&&NexT[_0x1ce08a(0x134)]['refresh']();var _0xe28773=document['getElementById']('toc-div');_0xe28773&&(_0xe28773[_0x1ce08a(0x12f)][_0x1ce08a(0x11f)]='inline');var _0x550b81=document[_0x1ce08a(0x11e)]('toc-div-class');if(_0x550b81&&_0x550b81[_0x1ce08a(0x12a)]>0x0)for(var _0x101613=0x0;_0x101613<_0x550b81[_0x1ce08a(0x12a)];_0x101613++){_0x550b81[_0x101613]['style'][_0x1ce08a(0x11f)]=_0x1ce08a(0xdc);}var _0x4a9a87=new Event(_0x1ce08a(0x109));return window[_0x1ce08a(0x106)](_0x4a9a87),await _0x4d9d65(_0x20a285,_0x2fd25c);})[_0x165320(0xd5)](_0x502296=>{const _0x3832b3=_0x165320;return alert(_0x96eab0),console[_0x3832b3(0x103)](_0x502296),![];});return _0x5b183e;}function _0x3bd263(){const _0x2bfac5=_0x151a5b,_0x5cedf7=JSON[_0x2bfac5(0xe9)](_0x4bdea4[_0x2bfac5(0xdd)](_0x2a91a5));if(_0x5cedf7){console[_0x2bfac5(0x103)](_0x2bfac5(0xe4)+_0x2a91a5+_0x2bfac5(0x131),_0x5cedf7);const _0xad4ec3=_0x164f36(_0x5cedf7['iv'])[_0x2bfac5(0x105)],_0x40c5f7=_0x5cedf7['dk'],_0x8a485=_0x5cedf7[_0x2bfac5(0xd9)];_0x1efece[_0x2bfac5(0xe1)][_0x2bfac5(0xdb)](_0x2bfac5(0x121),_0x40c5f7,{'name':_0x2bfac5(0xf5),'length':0x100},!![],['decrypt'])[_0x2bfac5(0xe3)](_0x290695=>{const _0x2b8e90=_0x2bfac5;_0x1efece[_0x2b8e90(0xe1)][_0x2b8e90(0xdb)]('jwk',_0x8a485,{'name':'HMAC','hash':_0x2b8e90(0x11a),'length':0x100},!![],[_0x2b8e90(0x114)])[_0x2b8e90(0xe3)](_0x23b678=>{const _0x14027d=_0x2b8e90;_0x88746a(_0x290695,_0xad4ec3,_0x23b678)[_0x14027d(0xe3)](_0x35bf9d=>{const _0xfffa5=_0x14027d;!_0x35bf9d&&_0x4bdea4[_0xfffa5(0xd6)](_0x2a91a5);});});});}_0x10976a[_0x2bfac5(0x112)]('keydown',async _0x4ec91e=>{const _0xbfdd2=_0x2bfac5;if(_0x4ec91e[_0xbfdd2(0x11b)]||_0x4ec91e[_0xbfdd2(0xf4)]===0xd){const _0x4da642=document[_0xbfdd2(0x10f)]('hbePass')['value'],_0x1c547e=await _0x25ee9f(_0x4da642),_0x18f57f=await _0x5ba17c(_0x1c547e),_0x50c03b=await _0x177e32(_0x1c547e),_0x1c97df=await _0x47f65c(_0x1c547e);_0x88746a(_0x50c03b,_0x1c97df,_0x18f57f)[_0xbfdd2(0xe3)](_0x31b5ad=>{const _0x33b1a6=_0xbfdd2;console['log'](_0x33b1a6(0x10b)+_0x31b5ad),_0x31b5ad&&_0x1efece[_0x33b1a6(0xe1)][_0x33b1a6(0x132)](_0x33b1a6(0x121),_0x50c03b)[_0x33b1a6(0xe3)](_0x20e1be=>{const _0x2075c3=_0x33b1a6;_0x1efece[_0x2075c3(0xe1)]['exportKey'](_0x2075c3(0x121),_0x18f57f)[_0x2075c3(0xe3)](_0x4c9386=>{const _0x3b91c5=_0x2075c3,_0x4b6d87={'dk':_0x20e1be,'iv':_0x5e3c56(_0x1c97df),'hmk':_0x4c9386};_0x4bdea4[_0x3b91c5(0x110)](_0x2a91a5,JSON[_0x3b91c5(0x10a)](_0x4b6d87));});});});}});}_0x3bd263();})()));
|
1
|
+
(()=>{"use strict";const e=window.crypto||window.msCrypto,t=window.localStorage,n="hexo-blog-encrypt:#"+window.location.pathname,r=h("hexo-blog-encrypt的作者们都是大帅比!"),o=h("hexo-blog-encrypt是地表最强Hexo加密插件!"),a="<hbe-prefix></hbe-prefix>",i=document.getElementById("hexo-blog-encrypt"),c=i.dataset.wpm,s=i.dataset.whm,l=i.getElementsByTagName("script").hbeData,d=l.innerText,u=l.dataset.hmacdigest;function y(e){return new Uint8Array(e.match(/[\da-f]{2}/gi).map((e=>parseInt(e,16))))}function h(e){for(var t=e.length,n=0,r=new Array,o=0;o<t;){var a=e.codePointAt(o);a<128?(r[n++]=a,o++):a>127&&a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128,o++):a>2047&&a<65536?(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128,o++):(r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128,o+=2)}return new Uint8Array(r)}function m(e){if("object"!=typeof e||null===e||"number"!=typeof e.byteLength)throw new TypeError("Expected input to be an ArrayBuffer");for(var t,n=new Uint8Array(e),r="",o=0;o<n.length;o++)r+=1===(t=n[o].toString(16)).length?"0"+t:t;return r}async function f(e){let t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((async e=>{e.replaceWith(await async function(e){let t=document.createElement("script");return["type","text","src","crossorigin","defer","referrerpolicy"].forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e))})),t}async function g(t,r,o){let i=y(d);return await e.subtle.decrypt({name:"AES-CBC",iv:r},t,i.buffer).then((async t=>{const r=(new TextDecoder).decode(t);if(!r.startsWith(a))throw"Decode successfully but not start with KnownPrefix.";const i=document.createElement("button");i.textContent="Encrypt again",i.type="button",i.classList.add("hbe-button"),i.addEventListener("click",(()=>{window.localStorage.removeItem(n),window.location.reload()})),document.getElementById("hexo-blog-encrypt").style.display="inline",document.getElementById("hexo-blog-encrypt").innerHTML="",document.getElementById("hexo-blog-encrypt").appendChild(await f(r)),document.getElementById("hexo-blog-encrypt").appendChild(i),document.querySelectorAll("img").forEach((e=>{e.getAttribute("data-src")&&!e.src&&(e.src=e.getAttribute("data-src"))})),window.NexT&&NexT.boot&&"function"==typeof NexT.boot.refresh&&NexT.boot.refresh();var c=document.getElementById("toc-div");c&&(c.style.display="inline");var l=document.getElementsByClassName("toc-div-class");if(l&&l.length>0)for(var d=0;d<l.length;d++)l[d].style.display="inline";var h=new Event("hexo-blog-decrypt");return window.dispatchEvent(h),await async function(t,n){const r=(new TextEncoder).encode(n);let o=y(u);const a=await e.subtle.verify({name:"HMAC",hash:"SHA-256"},t,o,r);return console.log(`Verification result: ${a}`),a||(alert(s),console.log(`${s}, got `,o," but proved wrong.")),a}(o,r)})).catch((e=>(alert(c),console.log(e),!1)))}!function(){const a=JSON.parse(t.getItem(n));if(a){console.log(`Password got from localStorage(${n}): `,a);const r=y(a.iv).buffer,o=a.dk,i=a.hmk;e.subtle.importKey("jwk",o,{name:"AES-CBC",length:256},!0,["decrypt"]).then((o=>{e.subtle.importKey("jwk",i,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"]).then((e=>{g(o,r,e).then((e=>{e||t.removeItem(n)}))}))}))}i.addEventListener("keydown",(async a=>{if(a.isComposing||13===a.keyCode){const a=document.getElementById("hbePass").value,i=await function(t){let n=new TextEncoder;return e.subtle.importKey("raw",n.encode(t),{name:"PBKDF2"},!1,["deriveKey","deriveBits"])}(a),c=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"HMAC",hash:"SHA-256",length:256},!0,["verify"])}(i),s=await function(t){return e.subtle.deriveKey({name:"PBKDF2",hash:"SHA-256",salt:r.buffer,iterations:1024},t,{name:"AES-CBC",length:256},!0,["decrypt"])}(i),l=await function(t){return e.subtle.deriveBits({name:"PBKDF2",hash:"SHA-256",salt:o.buffer,iterations:512},t,128)}(i);g(s,l,c).then((r=>{console.log(`Decrypt result: ${r}`),r&&e.subtle.exportKey("jwk",s).then((r=>{e.subtle.exportKey("jwk",c).then((e=>{const o={dk:r,iv:m(l),hmk:e};t.setItem(n,JSON.stringify(o))}))}))}))}}))}()})();
|
package/manifest.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Mycpen","short_name":"Mycpen","theme_color":"#ffffff","background_color":"#ffffff","display":"standalone","scope":"/","start_url":"/","icons":[{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-
|
1
|
+
{"name":"Mycpen","short_name":"Mycpen","theme_color":"#ffffff","background_color":"#ffffff","display":"standalone","scope":"/","start_url":"/","icons":[{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/36.png","sizes":"36x36","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/48.png","sizes":"48x48","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/72.png","sizes":"72x72","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/96.png","sizes":"96x96","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/144.png","sizes":"144x144","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/192.png","sizes":"192x192","type":"image/png"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/196.png","sizes":"196x196","type":"image/png","purpose":"any maskable"},{"src":"https://cdn.cbd.int/mycpen-blog@0.0.0-ejddukaglq/img/pwa/512.png","sizes":"512x512","type":"image/png"}]}
|