native-fn 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +32 -32
- package/dist/native.cjs +1 -1
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/native.umd.js +1 -1
- package/dist/native.umd.min.js +1 -1
- package/dist/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/src/types/native.d.ts +15 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,34 @@ declare interface BadgeInstance {
|
|
|
29
29
|
|
|
30
30
|
declare const Badge: BadgeInstance;
|
|
31
31
|
|
|
32
|
+
declare global {
|
|
33
|
+
interface Navigator {
|
|
34
|
+
getBattery(): Promise<BatteryManager>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
interface BatteryManager extends EventTarget {
|
|
38
|
+
readonly charging: boolean;
|
|
39
|
+
readonly chargingTime: number;
|
|
40
|
+
readonly dischargingTime: number;
|
|
41
|
+
readonly level: number;
|
|
42
|
+
onChange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
43
|
+
onchargingchange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
44
|
+
onchargingtimechange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
45
|
+
ondischargingtimechange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
46
|
+
onlevelchange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
47
|
+
}
|
|
48
|
+
declare interface BatteryInstance {
|
|
49
|
+
get value(): Promise<BatteryManager>;
|
|
50
|
+
get supported(): boolean;
|
|
51
|
+
onChange(listener: (battery: BatteryManager) => void, options?: AddEventListenerOptions): () => void;
|
|
52
|
+
Constants: {};
|
|
53
|
+
Errors: {
|
|
54
|
+
NotSupportedError: typeof NotSupportedError;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare const Battery: BatteryInstance;
|
|
59
|
+
|
|
32
60
|
declare interface ClipboardInstance {
|
|
33
61
|
copy(item: any): Promise<boolean>;
|
|
34
62
|
paste(): Promise<string>;
|
|
@@ -193,10 +221,10 @@ interface NotificationOptions {
|
|
|
193
221
|
requireInteraction?: boolean;
|
|
194
222
|
silent?: boolean | null;
|
|
195
223
|
tag?: string;
|
|
196
|
-
onClick?: ((this: Notification,
|
|
197
|
-
onClose?: ((this: Notification,
|
|
198
|
-
onError?: ((this: Notification,
|
|
199
|
-
onShow?: ((this: Notification,
|
|
224
|
+
onClick?: ((this: Notification, event: Event) => any);
|
|
225
|
+
onClose?: ((this: Notification, event: Event) => any);
|
|
226
|
+
onError?: ((this: Notification, event: Event) => any);
|
|
227
|
+
onShow?: ((this: Notification, event: Event) => any);
|
|
200
228
|
}
|
|
201
229
|
declare interface NotificationInstance {
|
|
202
230
|
send(options: NotificationOptions): Promise<Notification>;
|
|
@@ -707,34 +735,6 @@ declare global {
|
|
|
707
735
|
}
|
|
708
736
|
declare const _default: PipInstance;
|
|
709
737
|
|
|
710
|
-
declare global {
|
|
711
|
-
interface Navigator {
|
|
712
|
-
getBattery(): Promise<BatteryManager>;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
interface BatteryManager extends EventTarget {
|
|
716
|
-
readonly charging: boolean;
|
|
717
|
-
readonly chargingTime: number;
|
|
718
|
-
readonly dischargingTime: number;
|
|
719
|
-
readonly level: number;
|
|
720
|
-
onChange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
721
|
-
onchargingchange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
722
|
-
onchargingtimechange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
723
|
-
ondischargingtimechange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
724
|
-
onlevelchange: ((this: BatteryManager, ev: Event) => any) | null;
|
|
725
|
-
}
|
|
726
|
-
declare interface BatteryInstance {
|
|
727
|
-
get value(): Promise<BatteryManager>;
|
|
728
|
-
get supported(): boolean;
|
|
729
|
-
onChange(listener: (battery: BatteryManager) => void, options?: AddEventListenerOptions): () => void;
|
|
730
|
-
Constants: {};
|
|
731
|
-
Errors: {
|
|
732
|
-
NotSupportedError: typeof NotSupportedError;
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
declare const Battery: BatteryInstance;
|
|
737
|
-
|
|
738
738
|
declare interface NativeInstance {
|
|
739
739
|
version: string;
|
|
740
740
|
appearance: typeof Appearance;
|
package/dist/native.cjs
CHANGED
package/dist/native.min.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t,n="1.1.1",r={matches:!1,media:"not all",onchange:null,addListener:function(){},removeListener:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}};!function(e){e.Unknown="unknown",e.Light="light",e.Dark="dark"}(e||(e={})),t=void 0!==globalThis.matchMedia?globalThis.matchMedia("(prefers-color-scheme: dark)"):r;var o,i,a,l,c=globalThis.document.createElement("canvas").getContext("2d",{willReadFrequently:!0});function s(e,t){for(var n=e.split("."),r=t.split("."),o=Math.max(n.length,r.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<n.length?parseInt(n[i],10):0)>(l=i<r.length?parseInt(r[i],10):0))return 1;if(a<l)return-1}return 0}function u(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function d(e){return void 0===e?"":e.replace(/_/g,".")}!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={}));var p=void 0!==globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",f={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"},g=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","iw","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],v=[[/windows nt (6\.[23]); arm/i,o.Windows,u],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,u],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,u],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,u],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,u],[/windows ce\/?([\d.]*)/i,o.Windows,u],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,d],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,d],[/cfnetwork\/.+darwin/i,o.iOS,d],[/mac os x ?([\w. ]*)/i,o.MacOS,d],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,d],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],h=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],b=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]],m=[],y=[];function w(e){return"function"==typeof e||"object"==typeof e&&null!==e&&"function"==typeof e.handleEvent}function T(e){return"string"==typeof e.media&&"boolean"==typeof e.matches}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r="",o=0;o<t.length-2;o++){var i=t[o];void 0!==i&&(r=r+i.charAt(0).toUpperCase()+i.slice(1))}return r}function S(e,t){if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(t)>-1)return t;if("function"==typeof e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(t)>-1)return t;var n;n=void 0!==C[t]?C[t]:P.test(t)?[t,t.replace(P,k)]:[t];for(var r=0;r<A.length;r++)for(var o=0;o<n.length;o++){var i=A[r]+n[o];if(void 0!==e["on"+i])return i}return t}function E(){this.returnValue=!1}function I(){this.cancelBubble=!0}var x,P=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,A=["","webkit","moz","ms","MS","o","O"],C={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},O={useStd:"function"==typeof globalThis.document.addEventListener,add:function(e,t){if(void 0!==t.type&&void 0!==e){var n=t.callback,r=S(e,t.type),o=t.options;if(T(e)&&"function"==typeof e.addListener)try{var i=function(e,t,n){for(var r=0;r<y.length;r++){var o=y[r];if(o.target===e&&o.type===t&&o.callback===n)return o.wrapper}}(e,r,n);return void 0===i&&function(e,t,n,r){y.push({target:e,type:t,callback:n,wrapper:r})}(e,r,n,i=function(e){return function(t){"function"==typeof e?e.call(this,t):e&&"function"==typeof e.handleEvent&&e.handleEvent(t)}}(n)),e.addListener(i)}catch(e){}if("function"==typeof e.addEventListener)try{if(w(n))return e.addEventListener(r,n,o)}catch(e){}if("function"==typeof e.attachEvent){var a=function(e,t,n){for(var r=0;r<m.length;r++){var o=m[r];if(o.target===e&&o.type===t&&o.callback===n)return o.wrapper}}(e,r,n);if("function"==typeof a)return;i=function(t){if(void 0===t&&(t=globalThis.event),void 0!==t){try{Object.defineProperty(t,"currentTarget",{value:e,configurable:!0})}catch(e){}"function"!=typeof t.preventDefault&&(t.preventDefault=E.bind(t)),"function"!=typeof t.stopPropagation&&(t.stopPropagation=I.bind(t)),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent(t)}};return function(e,t,n,r){m.push({target:e,type:t,callback:n,wrapper:r})}(e,r,n,i),e.attachEvent("on"+r,i)}}},remove:function(e,t){if(void 0!==t.type&&void 0!==e){var n=t.callback,r=S(e,t.type),o=t.options;if(T(e)){if("function"==typeof e.removeListener)try{var i=function(e,t,n){for(var r=0;r<y.length;r++){var o=y[r];if(o.target===e&&o.type===t&&o.callback===n)return y.splice(r,1),o.wrapper}}(e,r,n);if("function"==typeof i)return e.removeListener(i)}catch(e){}}else{if("function"==typeof e.removeEventListener)try{if(w(n))return e.removeEventListener(r,n,o)}catch(e){}if("function"!=typeof e.detachEvent);else{i=function(e,t,n){for(var r=0;r<m.length;r++){var o=m[r];if(o.target===e&&o.type===t&&o.callback===n)return m.splice(r,1),o.wrapper}}(e,r,n);"function"==typeof i&&e.detachEvent("on"+r,i)}}}}},M=p,D=null,N={},L={},U={},F=null,W={},R=null;function G(e,t){return"function"==typeof t?t(e):"string"==typeof t?t:void 0===e?"":e}function q(e){if(null==e)return e;if(0===e.length)return null;if("C"===(e=e.replace(/_/g,"-"))||"posix"===e.toLowerCase())return"en-US";if(-1!==e.indexOf("."))return q(e.split(".")[0]);if(-1!==e.indexOf("@"))return q(e.split("@")[0]);var t=e.split("-");return 0===t.length?null:(t[0]=t[0].toLowerCase(),t.length>1&&2===t[1].length&&(t[1]=t[1].toUpperCase()),t.length>2&&4===t[1].length&&(t[1]=t[1].charAt(0).toUpperCase()+t[1].slice(1).toLowerCase()),t.join("-"))}function j(){return null!==D&&D.userAgent===M?D:D={userAgent:M,os:H(),browser:_(),engine:B()}}function H(){for(var e={name:o.Unknown,version:""},t=0;t<v.length;t++){var n=v[t],r=M.match(n[0]);if(null!==r){e.name=n[1],e.version=G(r[1],n[2]);break}}if(e.name===o.iOS&&0===s(e.version,"18.6")){var i=/\) Version\/([\d.]+)/.exec(M);if(null!==i)parseInt(i[1].split(".")[0],10)>=26&&(e.version=i[1])}return M===p&&(void 0!==N.name&&(e.name=N.name),void 0!==N.version&&(e.version=N.version),e.name===o.MacOS&&void 0!==globalThis.navigator.standalone&&globalThis.navigator.maxTouchPoints>2&&(e.name=o.iOS)),e}function _(){for(var e={name:l.Unknown,version:""},t=0;t<b.length;t++){var n=b[t],r=M.match(n[0]);if(null!==r){e.name=n[1],e.version=G(r[1],n[2]);break}}return M===p&&(void 0!==L.name&&(e.name=L.name),void 0!==L.version&&(e.version=L.version)),e}function B(){for(var e={name:a.Unknown,version:""},t=0;t<h.length;t++){var n=h[t],r=M.match(n[0]);if(null!==r){e.name=n[1],e.version=G(r[1],n[2]);break}}return M===p&&(void 0!==U.name&&(e.name=U.name),void 0!==U.version&&(e.version=U.version)),e}function V(){if(null!==R)return R;var e={language:null,languages:[],timezone:null,offset:0,isRTL:!1},t=null;function n(t){"string"==typeof(t=q(t))&&-1===e.languages.indexOf(t)&&(null===e.language&&(e.language=t),e.languages.push(t))}if("undefined"!=typeof Intl){try{n(Intl.DateTimeFormat().resolvedOptions().locale)}catch(e){}try{e.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}void 0!==globalThis.navigator&&(void 0!==globalThis.navigator.languages&&function(e){for(var t=0;t<e.length;t++)n(e[t])}(globalThis.navigator.languages),void 0!==globalThis.navigator.language&&n(globalThis.navigator.language),void 0!==globalThis.navigator.userLanguage&&n(globalThis.navigator.userLanguage),void 0!==globalThis.navigator.browserLanguage&&n(globalThis.navigator.browserLanguage),void 0!==globalThis.navigator.systemLanguage&&n(globalThis.navigator.systemLanguage));try{e.offset=-1*(new Date).getTimezoneOffset()}catch(e){}if("string"==typeof e.language){if("undefined"!=typeof Intl&&void 0!==Intl.Locale)try{var r=new Intl.Locale(e.language);"function"==typeof r.getTextInfo?t="rtl"===r.getTextInfo().direction:void 0!==r.textInfo&&(t="rtl"===r.textInfo.direction)}catch(e){}if("boolean"!=typeof t){var o=/^([A-Za-z]{1,8})(?:[-_][A-Za-z0-9]{1,8})*$/.exec(e.language);if(null!==o)for(var i=o[1].toLowerCase(),a=0;a<g.length;a++)if(g[a]===i){t=!0;break}}}return"boolean"==typeof t&&(e.isRTL=t),R=e}function z(){return void 0===globalThis.navigator||void 0===globalThis.navigator.userAgentData||void 0===globalThis.navigator.userAgentData.getHighEntropyValues?Promise.resolve():globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){try{for(var t=e.fullVersionList||e.brands||[],n=e.platformVersion,r=e.platform,a=j().browser.name,c=null,s=0;s<t.length;s++){var u=null==(g=t[s])?{brand:"",version:""}:"string"==typeof g?{brand:g,version:""}:{brand:g.brand,version:g.version},d=u.version,p=u.brand;/not.a.brand/i.test(p)||((null===c||/Chrom/.test(c)&&"Chromium"!==p||"Edge"===c&&/WebView2/.test(p))&&(p=f[p]||p,null!==(c=a)&&!/Chrom/.test(c)&&/Chrom/.test(p)||("Chrome"===(a=p)||"Chrome WebView"===a||"Chrome Headless"===a?L.name=l.Chrome:"Edge"===a||"Edge WebView2"===a?L.name=l.Edge:"Opera Mobi"===a&&(L.name=l.Opera),L.version=d),c=p),"Chromium"===p&&(U.version=d))}"string"==typeof n&&(j().os.name===o.Windows?N.version=parseInt(n.split(".")[0],10)>=13?"11":"10":N.version=n),"string"==typeof r&&(/android/i.test(r)?N.name=o.Android:/ios|iphone|ipad/i.test(r)?N.name=o.iOS:/windows|win32/i.test(r)?N.name=o.Windows:/macos|macintel/i.test(r)&&(N.name=o.MacOS)),!0===e.mobile&&(F=i.Mobile),D=null}catch(e){}var g})).catch((function(){}))}function Y(){return void 0===globalThis.navigator||void 0===globalThis.navigator.gpu?Promise.resolve():globalThis.navigator.gpu.requestAdapter().then((function(e){if(null!==e){var t=e.info;W.architecture=t.architecture,W.description=t.description,W.device=t.device,W.vendor=t.vendor}})).catch((function(){}))}x=Promise.all([z(),Y()]).then((function(){})),O.add(globalThis,{type:"languagechange",callback:function(){R=null}});var K={get ready(){return x},get os(){return j().os},get engine(){return j().engine},get browser(){return j().browser},get userAgent(){return M},set userAgent(e){M!==e&&(M=e,D=null,R=null,N={},L={},U={},F=null,W={},e===p&&(x=Promise.all([z(),Y()]).then((function(){}))))},get locale(){return V()},get device(){return function(){if(M===p&&null!==F)return F;var e=j().os.name;return e===o.iOS||e===o.Android?i.Mobile:e===o.Windows||e===o.MacOS?i.Desktop:i.Unknown}()},get gpu(){return{architecture:W.architecture,description:W.description,device:W.device,vendor:W.vendor}},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(M)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return j().os.name===o.iOS?!0===globalThis.navigator.standalone:void 0!==globalThis.matchMedia&&globalThis.matchMedia("(display-mode: standalone)").matches},Constants:{OS:o,Engines:a,Browsers:l,Devices:i},Errors:{}};function Z(e,t){var n=[];function r(e){var r=o(e);-1!==r&&(n.splice(r,1),0===n.length&&t())}function o(e){for(var t=0;t<n.length;t++)if(n[t].fn===e.fn)return t;return-1}return{emit:function(e){for(var t=n.slice(),o=0;o<t.length;o++)t[o].fn(e),t[o].once&&r(t[o])},subscribe:function(t,i){void 0===i&&(i={});var a={fn:t,once:!1};void 0!==i.once&&(a.once=i.once),void 0!==i.signal&&(a.signal=i.signal);var l=o(a);-1===l?(n.push(a),1===n.length&&e()):n[l].once&&!a.once&&(n[l].once=!1);var c=function(){O.remove(a.signal,{type:"abort",callback:c}),r(a)};return void 0!==a.signal&&(a.signal.aborted?r(a):O.add(a.signal,{type:"abort",callback:c})),function(){r(a)}}}}var X=Z((function(){J=te(),O.add(t,{type:"change",callback:ne}),K.browser.name===l.SamsungInternet&&(J=ee(),Q=globalThis.setInterval((function(){var e=ee();e!==J&&(J=e,X.emit(e))}),2e3))}),(function(){J=null,O.remove(t,{type:"change",callback:ne}),K.browser.name===l.SamsungInternet&&(J=null,null!==Q&&(clearInterval(Q),Q=null))})),J=null,Q=null,$={get value(){return K.browser.name===l.SamsungInternet?ee():te()},onChange:X.subscribe,Constants:{Appearances:e},Errors:{}};function ee(){var t=new Image;if(t.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMXYxSDB6Ii8+PC9zdmc+",null===c)return e.Light;c.drawImage(t,0,0);var n=c.getImageData(0,0,1,1).data;return(n[0]&n[1]&n[2])<255?e.Dark:e.Light}function te(){return"not all"===t.media?e.Unknown:t.matches?e.Dark:e.Light}function ne(t){var n;(n=t.matches?e.Dark:e.Light)!==J&&X.emit(J=n)}function re(e,t){var n=e.style;for(var r in t){var o=t[r];void 0!==o&&(n[r]=o)}}function oe(e,t){void 0===t&&(t=!0);var n=globalThis.document.createElement(e);return void 0!==n.width&&(n.width="0"),void 0!==n.height&&(n.height="0"),void 0!==n.border&&(n.border="0"),void 0!==n.frameBorder&&(n.frameBorder="0"),void 0!==n.scrolling&&(n.scrolling="no"),void 0!==n.cellPadding&&(n.cellPadding="0"),void 0!==n.cellSpacing&&(n.cellSpacing="0"),void 0!==n.frame&&(n.frame="void"),void 0!==n.rules&&(n.rules="none"),void 0!==n.noWrap&&(n.noWrap=!0),n.tabIndex=-1,n.setAttribute("role","presentation"),t?re(n,{width:"1px",height:"1px"}):(n.setAttribute("aria-hidden","true"),re(n,{width:"0",height:"0",zIndex:"-9999",display:"none",visibility:"hidden",pointerEvents:"none"})),re(n,{position:"absolute",top:"0",left:"0",padding:"0",margin:"0",border:"none",outline:"hidden",clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap"}),n}var ie,ae={copy:function(e){var t=function(e){if(le(e)){var t=e.textContent;return null!==t?t:""}if(ce(e))return e.toString();if(function(e){return function(e){return null!==e&&"object"==typeof e}(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(t){return""+e}else if("string"!=typeof e)return""+e;return e}(e),n=function(e){var t=null;le(e)&&(t=e.outerHTML);if(ce(e)&&e.rangeCount>0){for(var n=globalThis.document.createElement("div"),r=0;r<e.rangeCount;r++)n.appendChild(e.getRangeAt(r).cloneContents());t=n.innerHTML}if(null===t)return;return t}(e);if(se()&&(void 0!==globalThis.navigator.clipboard.write||void 0!==globalThis.navigator.clipboard.writeText))return function(e,t){try{if(void 0!==globalThis.ClipboardItem&&void 0!==globalThis.navigator.clipboard.write){var n={};return void 0!==t&&(n["text/html"]=new Blob([t],{type:"text/html"})),n["text/plain"]=new Blob([e],{type:"text/plain"}),globalThis.navigator.clipboard.write([new ClipboardItem(n)]).then((function(){return!0})).catch((function(){return!1}))}if(void 0!==globalThis.navigator.clipboard.writeText)return globalThis.navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(t,n).then((function(e){return!!e||ue(t,n)})).catch((function(){return ue(t,n)}));return Promise.resolve(ue(t,n))},paste:function(){if(se()&&(void 0!==globalThis.navigator.clipboard.read||void 0!==globalThis.navigator.clipboard.readText))return function(){try{if(void 0!==globalThis.ClipboardItem&&void 0!==globalThis.navigator.clipboard.read)return globalThis.navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var t=0;t<e.length;t++)for(var n=(o=e[t]).types,r=0;r<n.length;r++)if("text/html"===n[r])return o.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(t=0;t<e.length;t++){var o;for(n=(o=e[t]).types,r=0;r<n.length;r++)if("text/plain"===n[r])return o.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}))}return Promise.resolve(null)})).catch((function(){return null}));if(void 0!==globalThis.navigator.clipboard.readText)return globalThis.navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:de()})).catch((function(){return de()}));return Promise.resolve(de())},Constants:{},Errors:{}};function le(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&(1===e.nodeType&&("string"==typeof e.nodeName&&"function"==typeof e.getAttribute))}function ce(e){return"[object Selection]"===Object.prototype.toString.call(e)}function se(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,t=location.hostname;return"https:"===e||"localhost"===t||"127.0.0.1"===t||"[::1]"===t}()&&void 0!==globalThis.navigator.clipboard}function ue(e,t){return function(e,t){if(void 0===globalThis.getSelection||void 0===globalThis.document.createRange)return!1;var n=oe("div");n.contentEditable="true",void 0!==t?n.innerHTML=t:n.textContent=e,n.style.whiteSpace="pre",n.style.userSelect="text",n.style.setProperty("-webkit-user-select","text"),n.style.setProperty("-moz-user-select","text"),n.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(n);var r=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(n){try{null!==n.clipboardData&&"function"==typeof n.clipboardData.setData&&(n.preventDefault(),void 0!==t&&n.clipboardData.setData("text/html",t),n.clipboardData.setData("text/plain",e))}catch(e){}};O.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===r)return pe(n,r,i),!1;r.removeAllRanges(),o.selectNodeContents(n),r.addRange(o);var a=globalThis.document.execCommand("copy");return pe(n,r,i),a}catch(e){return pe(n,r,i),!1}}(e,t)||function(e,t){var n=globalThis.clipboardData;if(void 0!==n&&"function"==typeof n.setData)try{return void 0!==t&&n.setData("HTML",t),n.setData("Text",e)}catch(e){return!1}return!1}(e,t)}function de(){var e=function(){var e=oe("div");e.contentEditable="true",globalThis.document.body.appendChild(e),e.focus();var t=null,n=function(e){try{if(null!==e.clipboardData&&"function"==typeof e.clipboardData.getData){e.preventDefault();var n=e.clipboardData.getData("text/html"),r=e.clipboardData.getData("text/plain");""!==n&&(t=n),""!==r&&(t=r)}}catch(e){}};O.add(globalThis.document,{type:"paste",callback:n,options:{once:!0,capture:!0}});try{if(!globalThis.document.execCommand("paste")&&null===t){var r=e.innerHTML;if(""!==r)t=r;else{var o=e.textContent;null!==o&&""!==o&&(t=o)}}return fe(e,n),t}catch(t){return fe(e,n),null}}();if(null!==e)return e;var t=function(){var e=globalThis.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{var t=e.getData("Text");return""!==t?t:null}catch(e){return null}return null}();return null!==t?t:""}function pe(e,t,n){null!==t&&t.removeAllRanges(),globalThis.document.body.removeChild(e),O.remove(globalThis.document,{type:"copy",callback:n})}function fe(e,t){globalThis.document.body.removeChild(e),O.remove(globalThis.document,{type:"paste",callback:t})}!function(e){e.Portrait="portrait",e.Landscape="landscape",e.Unknown="unknown"}(ie||(ie={}));var ge,ve={"safe-area-inset":{top:"safe-area-inset-top",right:"safe-area-inset-right",bottom:"safe-area-inset-bottom",left:"safe-area-inset-left"},"safe-area-max-inset":{top:"safe-area-max-inset-top",right:"safe-area-max-inset-right",bottom:"safe-area-max-inset-bottom",left:"safe-area-max-inset-left"},"titlebar-area":{x:"titlebar-area-x",y:"titlebar-area-y",width:"titlebar-area-width",height:"titlebar-area-height"},"keyboard-inset":{top:"keyboard-inset-top",right:"keyboard-inset-right",bottom:"keyboard-inset-bottom",left:"keyboard-inset-left",width:"keyboard-inset-width",height:"keyboard-inset-height"},"viewport-segment":{width:"viewport-segment-width",height:"viewport-segment-height",top:"viewport-segment-top",right:"viewport-segment-right",bottom:"viewport-segment-bottom",left:"viewport-segment-left"}},he={innerWidth:-1,innerHeight:-1,outerWidth:-1,outerHeight:-1,scale:1,orientation:ie.Unknown};function be(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function me(){}function ye(e){if("keyboard-inset"===e&&void 0!==globalThis.navigator.virtualKeyboard)return function(){var e=Z((function(){O.add(globalThis.navigator.virtualKeyboard,{type:"geometrychange",callback:t,options:{passive:!0}})}),(function(){O.remove(globalThis.navigator.virtualKeyboard,{type:"geometrychange",callback:t,options:{passive:!0}})}));function t(){e.emit(n())}function n(){var e=globalThis.navigator.virtualKeyboard.boundingRect,t=e.x,n=e.y,r=e.width,o=e.height;return{top:n,right:0===r?0:Math.max(0,globalThis.innerWidth-(t+r)),bottom:0===o?0:Math.max(0,globalThis.innerHeight-(n+o)),left:t,width:r,height:o}}return{get:n,onChange:e.subscribe}}();var t=ve[e],n=be(t),r=function(){if(void 0!==globalThis.CSS&&"function"==typeof globalThis.CSS.supports){if(globalThis.CSS.supports("x: env(x)"))return"env";if(globalThis.CSS.supports("x: constant(x)"))return"constant"}return}(),o=[],i=Z((function(){if(void 0===r)return;null===c&&v()}),(function(){h()})),a={},l=void 0,c=null,s=!1,u=null;try{var d=Object.defineProperty({},"passive",{get:function(){l={passive:!0}}});O.add(globalThis,{type:"test",callback:me,options:d})}catch(e){}function p(){var e;s||(s=!0,e=function(){s=!1;var e=m();null!==u&&function(e,t){for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return!1}return!0}(u,e)||(u=e,i.emit(e))},void 0===globalThis.queueMicrotask?"function"!=typeof globalThis.Promise?globalThis.setTimeout(e,0):Promise.resolve().then(e):globalThis.queueMicrotask(e))}function f(e){if(void 0!==e)o.push(e);else for(var t=0;t<o.length;t++)o[t]()}function g(e,n){var o=t[n],i=globalThis.document.createElement("div"),c=globalThis.document.createElement("div"),s=globalThis.document.createElement("div"),u=globalThis.document.createElement("div"),d={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"("+o+")"};re(i,d),re(c,d),re(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),re(u,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),c.appendChild(u),e.appendChild(i),e.appendChild(c),f((function(){i.scrollTop=c.scrollTop=1e4;var e=i.scrollTop,t=c.scrollTop;function n(){var n;n=this===i?e:t,this.scrollTop!==n&&(i.scrollTop=c.scrollTop=1e4,e=i.scrollTop,t=c.scrollTop,p())}O.add(i,{type:"scroll",callback:n,options:l}),O.add(c,{type:"scroll",callback:n,options:l})}));var g=globalThis.getComputedStyle(i);Object.defineProperty(a,n,{configurable:!0,get:function(){return globalThis.parseFloat(g.paddingBottom)}})}function v(){if(void 0!==r){a={},(c=globalThis.document.createElement("div")).setAttribute("data-"+e+"-observer",""),re(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"});for(t=0;t<n.length;t++)g(c,n[t]);globalThis.document.body.appendChild(c),u=m(),f()}else for(var t=0;t<n.length;t++)a[n[t]]=0}function h(){null!==c&&(null!==c.parentNode&&c.parentNode.removeChild(c),c=null),o.length=0,a={},u=null}function b(e){return a[e]}function m(){for(var e={},t=0;t<n.length;t++){var r=n[t];e[r]=b(r)}return e}return{get:function(){if(null!==c)return m();v();var e=m();return h(),e},onChange:function(e,t){return void 0===t&&(t={}),void 0===r?me:i.subscribe(e,t)}}}ge=void 0!==globalThis.matchMedia?globalThis.matchMedia("(orientation: portrait)"):r;var we=ye("safe-area-inset"),Te=ye("safe-area-max-inset"),ke=ye("keyboard-inset"),Se=ye("titlebar-area"),Ee=ye("viewport-segment"),Ie=Z((function(){xe=Ce(),O.add(globalThis,{type:"resize",callback:Oe}),"function"==typeof globalThis.screen.orientation.addEventListener?O.add(globalThis.screen.orientation,{type:"change",callback:Oe}):void 0!==globalThis.orientation?O.add(globalThis,{type:"orientationChange",callback:Oe}):"not all"!==ge.media&&O.add(ge,{type:"change",callback:Oe})}),(function(){xe=null,O.remove(globalThis,{type:"resize",callback:Oe}),"function"==typeof globalThis.screen.orientation.removeEventListener?O.remove(globalThis.screen.orientation,{type:"change",callback:Oe}):void 0!==globalThis.orientation?O.remove(globalThis,{type:"orientationChange",callback:Oe}):"not all"!==ge.media&&O.remove(ge,{type:"change",callback:Oe})})),xe=null,Pe={get value(){return Ce()},environment:{safeAreaInset:{get value(){return we.get()},onChange:we.onChange},safeAreaMaxInset:{get value(){return Te.get()},onChange:Te.onChange},keyboardInset:{get value(){return ke.get()},onChange:ke.onChange},titlebarArea:{get value(){return Se.get()},onChange:Se.onChange},viewportSegment:{get value(){return Ee.get()},onChange:Ee.onChange}},onChange:Ie.subscribe,Constants:{Orientation:ie},Errors:{}};function Ae(){if(void 0!==globalThis.screen)switch(globalThis.screen.orientation.type){case"portrait-primary":case"portrait-secondary":return ie.Portrait;case"landscape-primary":case"landscape-secondary":return ie.Landscape}if(void 0!==globalThis.orientation)switch(globalThis.orientation){case 0:case 180:return ie.Portrait;case 90:case 270:return ie.Landscape}return"not all"===ge.media?ie.Unknown:ge.matches?ie.Portrait:ie.Landscape}function Ce(){return void 0!==globalThis.innerWidth?{innerWidth:globalThis.innerWidth,innerHeight:globalThis.innerHeight,outerWidth:globalThis.outerWidth,outerHeight:globalThis.outerHeight,scale:void 0!==globalThis.devicePixelRatio?globalThis.devicePixelRatio:-1,orientation:Ae()}:he}function Oe(){var e=Ce();null!==xe&&e.innerWidth===xe.innerWidth&&e.innerHeight===xe.innerHeight&&e.outerWidth===xe.outerWidth&&e.outerHeight===xe.outerHeight&&e.scale===xe.scale&&e.orientation===xe.orientation||Ie.emit(xe=e)}function Me(e,t){function n(r){if(!(this instanceof n))return new n(r);var o=new t(void 0===r?"":r);if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==r&&(o.message=r),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var i=new t;i.stack&&(o.stack=i.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}var De=Me("NotSupportedError"),Ne=Symbol("fsBridged"),Le={standard:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",events:{change:"fullscreenchange",error:"fullscreenerror"}},webkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",events:{change:"webkitfullscreenchange",error:"webkitfullscreenerror"}},moz:{enabled:"mozFullScreenEnabled",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",events:{change:"mozfullscreenchange",error:"mozfullscreenerror"}},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",events:{change:"MSFullscreenChange",error:"MSFullscreenError"}}},Ue=function(){var e=globalThis.document.documentElement;if(void 0!==globalThis.document.fullscreenEnabled||void 0!==globalThis.document.exitFullscreen)return Le.standard;for(var t=["webkit","moz","ms"],n=0;n<t.length;n++){var r=t[n],o=Le[r];if(void 0!==globalThis.document[o.enabled]||void 0!==globalThis.document[o.element]||void 0!==globalThis.document[o.exit])return"webkit"===r&&void 0!==e.webkitRequestFullScreen&&(o.request="webkitRequestFullScreen"),o}return null}();var Fe,We,Re=function(){var e=null,t=!1,n=null,r=[],i="exit",a=Z((function(){for(var e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],t=0;t<e.length;t++)O.add(globalThis.document,{type:e[t],callback:a.emit,options:!1})}),(function(){for(var e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],t=0;t<e.length;t++)O.remove(globalThis.document,{type:e[t],callback:a.emit,options:!1})})),l=Z((function(){for(var e=["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],t=0;t<e.length;t++)O.add(globalThis.document,{type:e[t],callback:l.emit,options:!1})}),(function(){for(var e=["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],t=0;t<e.length;t++)O.remove(globalThis.document,{type:e[t],callback:l.emit,options:!1})}));function c(){void 0!==globalThis.document&&globalThis.document.querySelectorAll("video").forEach((function(e){!0===e[Ne]||void 0===e.webkitEnterFullscreen&&void 0===e.onwebkitbeginfullscreen||(O.add(e,{type:"webkitbeginfullscreen",callback:a.emit,options:!1}),O.add(e,{type:"webkitendfullscreen",callback:a.emit,options:!1}),e[Ne]=!0)}))}function s(){if(null===Ue)return null!==e&&!0===e.webkitDisplayingFullscreen?e:null;var t=globalThis.document[Ue.element];return void 0!==t?t:null}function u(){var e,t=r.shift();void 0!==t?(e="request"===t.operation?f(t.target,t.options):g(),n=e.then((function(){t.resolve(),u()})).catch((function(e){t.reject(e),u()}))):n=null}function d(e,t){if(i="request",null===n){var o=f(e,t);return n=o.then(u).catch(u),o}return new Promise((function(n,o){r.push({operation:"request",target:e,options:t,resolve:n,reject:o})}))}function p(){if(i="exit",null===n){var e=g();return n=e.then(u).catch(u),e}return new Promise((function(e,t){r.push({operation:"exit",target:void 0,options:void 0,resolve:e,reject:t})}))}function f(t,n){return new Promise((function(r,i){if(void 0===t&&(t=function(){if(K.os.name===o.iOS){var e=globalThis.document.querySelector("video");if(null===e)return;return e}return globalThis.document.documentElement}()),void 0===t)return i(new De("Failed to enter fullscreen mode."));var a=t.tagName.toLowerCase();function l(){if(K.os.name===o.iOS&&void 0!==t&&"VIDEO"===t.tagName.toUpperCase()){var n=t;if(!0===n.webkitSupportsFullscreen&&"function"==typeof n.webkitEnterFullscreen)return e=n,c(),n.webkitEnterFullscreen(),r()}i(new De('The "'+a+'" element does not support fullscreen requests.'))}if(null!==Ue){var s=t[Ue.request];if("function"==typeof s){var u=s.call(t,n);return void 0!==u&&"function"==typeof u.then?void u.then(r).catch((function(){if(K.os.name!==o.iOS)return i(new De('The "'+a+'" element does not support fullscreen requests.'));l()})):r()}}l()}))}function g(){return new Promise((function(t,n){if(null===s()&&null===e)return t();function r(){if(K.os.name===o.iOS){var r=void 0;r=null!==e?[e]:globalThis.document.querySelectorAll("video");for(var i=0;i<r.length;i++){var a=r[i];if("function"==typeof a.webkitExitFullscreen&&!0===a.webkitDisplayingFullscreen)return a.webkitExitFullscreen(),e=null,t()}}n(new De("Failed to exit fullscreen mode."))}if(null!==Ue){var i=globalThis.document[Ue.exit];if("function"==typeof i){var a=i.call(globalThis.document);return void 0!==a&&"function"==typeof a.then?void a.then(t).catch((function(){if(K.os.name!==o.iOS)return n(new De("Failed to exit fullscreen mode."));r()})):t()}}r()}))}return t||(t=!0,K.os.name===o.iOS&&(c(),void 0!==globalThis.MutationObserver&&new MutationObserver((function(){c()})).observe(globalThis.document.documentElement,{childList:!0,subtree:!0}))),{get supported(){return null===Ue?K.os.name===o.iOS&&!0===globalThis.HTMLVideoElement.prototype.webkitSupportsFullscreen:!0===globalThis.document[Ue.enabled]},get element(){return s()},get isFullscreen(){return null!==s()},request:d,exit:p,toggle:function(e,t){return"request"===i?p():d(e,t)},onChange:a.subscribe,onError:l.subscribe,Constants:{},Errors:{NotSupportedError:De}}}();!function(e){e.Notification="notifications",e.Geolocation="geolocation",e.Camera="camera",e.Microphone="microphone",e.MIDI="midi"}(Fe||(Fe={})),function(e){e.Grant="grant",e.Denied="denied",e.Prompt="prompt",e.Unsupported="unsupported"}(We||(We={}));var Ge=function(){if(void 0!==globalThis.navigator.mediaDevices&&void 0!==globalThis.navigator.mediaDevices.getUserMedia)return globalThis.navigator.mediaDevices.getUserMedia.bind(globalThis.navigator.mediaDevices);var e=void 0!==globalThis.navigator.getUserMedia?globalThis.navigator.getUserMedia:void 0!==globalThis.navigator.webkitGetUserMedia?globalThis.navigator.webkitGetUserMedia:void 0!==globalThis.navigator.mozGetUserMedia?globalThis.navigator.mozGetUserMedia:void 0!==globalThis.navigator.msGetUserMedia?globalThis.navigator.msGetUserMedia:void 0;return void 0!==e?function(t){return void 0===t&&(t={}),new Promise((function(n,r){e.call(globalThis.navigator,t,n,r)}))}:void 0}(),qe={request:function(e){var t=this;return new Promise((function(n){function r(){t.check(e).then(n)}t.check(e).then((function(t){if(t===We.Grant)return n(t);switch(e){case Fe.Notification:if(void 0===globalThis.Notification)return n(We.Unsupported);globalThis.Notification.requestPermission().then((function(e){switch(e){case"default":return n(We.Prompt);case"granted":return n(We.Grant);case"denied":return n(We.Denied);default:r()}}));break;case Fe.Geolocation:if(void 0===globalThis.navigator.geolocation)return n(We.Unsupported);globalThis.navigator.geolocation.getCurrentPosition(r,r);break;case Fe.Microphone:case Fe.Camera:if(void 0===Ge)return n(We.Unsupported);Ge({video:e===Fe.Camera,audio:e===Fe.Microphone}).then((function(e){for(var t=e.getTracks(),n=0;n<t.length;n++)t[n].stop();r()})).catch(r);break;case Fe.MIDI:if(void 0===globalThis.navigator.requestMIDIAccess)return n(We.Unsupported);globalThis.navigator.requestMIDIAccess().then(r).catch(r);break;default:return n(We.Unsupported)}}))}))},check:function(e){return new Promise((function(t){if(void 0===globalThis.navigator.permissions)return t(We.Unsupported);globalThis.navigator.permissions.query({name:e}).then((function(e){switch(e.state){case"prompt":return t(We.Prompt);case"granted":return t(We.Grant);case"denied":return t(We.Denied);default:return t(We.Unsupported)}}))}))},Constants:{PermissionType:Fe,PermissionState:We},Errors:{}};var je=Me("PermissionNotGrantedError");var He,_e,Be,Ve,ze,Ye,Ke,Ze,Xe,Je,Qe,$e=Z((function(){if(!nt())return;qe.request(Fe.Geolocation).then((function(e){e===We.Grant&&(et=globalThis.navigator.geolocation.watchPosition((function(e){var t;t=e.coords,$e.emit(t)})))}))}),(function(){if(!nt()||null===et)return;globalThis.navigator.geolocation.clearWatch(et)})),et=null,tt={get value(){return new Promise((function(e,t){function n(n){(function(e){return new Promise((function(t,n){var r;(r="http://ip-api.com/json?fields=lat,lon",new Promise((function(e){var t={},n=void 0;if(void 0===globalThis.fetch){if("undefined"!=typeof XMLHttpRequest){var o=new XMLHttpRequest;o.open("GET",r,!0);for(var i=be(t),a=0;a<i.length;a++){var l=i[a];o.setRequestHeader(l,t[l])}return o.onreadystatechange=function(){if(4===o.readyState)if(o.status>=200&&o.status<300)try{e(JSON.parse(o.responseText))}catch(t){e(void 0)}else e(void 0)},o.onerror=function(){e(void 0)},void o.send(n)}e(void 0)}else fetch(r,{method:"GET",headers:t,body:n}).then((function(t){return t.ok?t.json().then((function(t){e(t)})).catch((function(){e(void 0)})):(e(void 0),Promise.resolve())})).catch((function(){e(void 0)}))}))).then((function(r){if(void 0!==r){var o={latitude:r.lat,longitude:r.lon,accuracy:-1,altitude:null,altitudeAccuracy:null,heading:null,speed:null};t(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object(e[0]),r=1;r<e.length;r++){var o=e[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(n[i]=o[i])}return n}(o,{toJSON:function(){return o}}))}else n(e)})).catch((function(){n(e)}))}))})(n).then(e).catch(t)}if(!nt())return n(new De("'navigator.geolocation' does not supported."));qe.request(Fe.Geolocation).then((function(t){if(t!==We.Grant)return n(new je("'geolocation' permission is not granted."));globalThis.navigator.geolocation.getCurrentPosition((function(t){e(t.coords)}),(function(e){return n(function(e){switch(e.code){case GeolocationPositionError.PERMISSION_DENIED:return new je("'geolocation' permission is not granted.");case GeolocationPositionError.POSITION_UNAVAILABLE:return new De("The acquisition of the geolocation failed because at least one internal source of position returned an internal error.");case GeolocationPositionError.TIMEOUT:return new De("The time allowed to acquire the geolocation was reached before the information was obtained.");default:return new De("Unknown error.")}}(e))}))}))}))},get supported(){return nt()},onChange:$e.subscribe,Constants:{},Errors:{NotSupportedError:De,PermissionNotGrantedError:je}};function nt(){return void 0!==globalThis.navigator.geolocation}!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(Ye||(Ye={})),function(e){e.General="general",e.Network="network",e.Display="display",e.Appearance="appearance",e.Accessibility="accessibility",e.Battery="battery",e.Datetime="datetime",e.Language="language",e.Accounts="accounts",e.Storage="storage"}(Ke||(Ke={})),function(e){e.Image="image",e.Video="video"}(Ze||(Ze={})),function(e){e.User="user",e.Environment="environment"}(Xe||(Xe={})),function(e){e.Desktop="desktop",e.Documents="documents",e.Downloads="downloads",e.Music="music",e.Pictures="pictures",e.Videos="videos"}(Je||(Je={})),function(e){e.Read="read",e.ReadWrite="readwrite"}(Qe||(Qe={}));var rt=((He={})[o.Android]=((_e={})[Ke.General]="intent:#Intent;action=android.settings.SETTINGS;end",_e[Ke.Network]="intent:#Intent;action=android.settings.WIFI_SETTINGS;end",_e[Ke.Display]="intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end",_e[Ke.Appearance]="intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end",_e[Ke.Accessibility]="intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end",_e[Ke.Battery]="intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end",_e[Ke.Datetime]="intent:#Intent;action=android.settings.DATE_SETTINGS;end",_e[Ke.Language]="intent:#Intent;action=android.settings.LOCALE_SETTINGS;end",_e[Ke.Accounts]="intent:#Intent;action=android.settings.SYNC_SETTINGS;end",_e[Ke.Storage]="intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end",_e),He[o.Windows]=((Be={})[Ke.General]="ms-settings:system",Be[Ke.Network]="ms-settings:network",Be[Ke.Display]="ms-settings:display",Be[Ke.Appearance]="ms-settings:colors",Be[Ke.Accessibility]="ms-settings:easeofaccess",Be[Ke.Battery]="ms-settings:batterysaver",Be[Ke.Datetime]="ms-settings:dateandtime",Be[Ke.Language]="ms-settings:regionlanguage",Be[Ke.Accounts]="ms-settings:emailandaccounts",Be[Ke.Storage]="ms-settings:storagesense",Be),He[o.MacOS]=((Ve={})[Ke.General]="x-apple.systempreferences:",Ve[Ke.Network]="x-apple.systempreferences:com.apple.preference.network",Ve[Ke.Display]="x-apple.systempreferences:com.apple.preference.displays",Ve[Ke.Appearance]="x-apple.systempreferences:com.apple.preference.general",Ve[Ke.Accessibility]="x-apple.systempreferences:com.apple.preference.universalaccess",Ve[Ke.Battery]="x-apple.systempreferences:com.apple.preference.energysaver",Ve[Ke.Datetime]="x-apple.systempreferences:com.apple.preference.datetime",Ve[Ke.Language]="x-apple.systempreferences:com.apple.Localization",Ve[Ke.Accounts]="x-apple.systempreferences:com.apple.preferences.internetaccounts",Ve[Ke.Storage]="x-apple.systempreferences:",Ve),He["MacOS13+"]=((ze={})[Ke.General]="x-apple.systempreferences:com.apple.General-Settings.extension",ze[Ke.Network]="x-apple.systempreferences:com.apple.Network-Settings.extension",ze[Ke.Display]="x-apple.systempreferences:com.apple.Displays-Settings.extension",ze[Ke.Appearance]="x-apple.systempreferences:com.apple.Appearance-Settings.extension",ze[Ke.Accessibility]="x-apple.systempreferences:com.apple.Accessibility-Settings.extension",ze[Ke.Battery]="x-apple.systempreferences:com.apple.Battery-Settings.extension",ze[Ke.Datetime]="x-apple.systempreferences:com.apple.Date-Time-Settings.extension",ze[Ke.Language]="x-apple.systempreferences:com.apple.Localization-Settings.extension",ze[Ke.Accounts]="x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension",ze[Ke.Storage]="x-apple.systempreferences:com.apple.settings.Storage",ze),He);function ot(){try{if(null!==globalThis.top&&globalThis.top!==globalThis.window)return globalThis.top.location.href,globalThis.top}catch(e){}return window}function it(e,t){var n;void 0===t&&(t=window);try{n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:t})}catch(e){(n=globalThis.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,t,0,0,0,0,0,!1,!1,!1,!1,0,null)}e.dispatchEvent(n)}function at(e){for(var t="",n=(new Date).getTime(),r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt((n=(9301*n+49297)%233280)%62);return t}function lt(e,t,n){return t|=0,"string"!=typeof e&&(e=String(e)),e.length>=t?e:((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e)}var ct=Me("URLOpenError"),st=Me("UserCancelledError"),ut={app:function(e){var t,n=K.os.name,r=[],i=[],a={};if(n===o.Android){var l=function(e){return void 0!==e[o.Android]?e[o.Android]:e.android}(e);if(void 0===l)return Promise.reject(Dt(i));if(t=l.timeout,a.scheme=Ot(l.scheme),a.intent=Ot(l.intent),a.packageName=l.packageName,a.fallback=Ot(l.fallback),a.appStore=gt(a.packageName,o.Android),a.webStore=vt(a.packageName,o.Android),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore,void 0!==a.intent&&(void 0===a.scheme||void 0===a.packageName||void 0===a.fallback)){var c=function(e){for(var t={},n=e.split("#Intent;"),r=n[0].substring(9),o=n[1],i=o.substring(0,o.length-4).split(";"),a={},l=0;l<i.length;l++){var c=i[l],s=c.indexOf("=");-1!==s&&(a[c.substring(0,s)]=c.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+r);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(a.intent);void 0!==c.scheme&&void 0===a.scheme&&(a.scheme=c.scheme),void 0!==c.packageName&&void 0===a.packageName&&(a.packageName=c.packageName),void 0!==c.fallback&&void 0===a.fallback&&(a.fallback=c.fallback)}void 0!==a.scheme&&void 0===a.intent&&(a.intent=function(e,t,n){var r=e.split("://"),i=r[0],a=r[1],l="intent://";void 0!==a&&(l+=a);l+="#Intent;scheme="+i+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(l+="package="+t+";");void 0!==n&&"string"==typeof n?l+="S.browser_fallback_url="+globalThis.encodeURIComponent(n)+";":void 0!==t&&(l+="S.browser_fallback_url="+globalThis.encodeURIComponent(gt(t,o.Android))+";");return l+"end"}(a.scheme,a.packageName,a.fallback))}else if(n===o.iOS){l=function(e){return void 0!==e[o.iOS]?e[o.iOS]:e.ios}(e);if(void 0===l)return Promise.reject(Dt(i));t=l.timeout,a.scheme=Ot(l.scheme),a.bundleId=l.bundleId,a.trackId=l.trackId,a.universal=Ot(l.universal),a.fallback=Ot(l.fallback),a.appStore=gt(a.trackId,o.iOS),a.webStore=vt(a.trackId,o.iOS),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore,void 0!==a.bundleId&&void 0===a.trackId&&(a.trackId=ft(a.bundleId))}else if(n===o.Windows){l=function(e){return void 0!==e[o.Windows]?e[o.Windows]:e.windows}(e);if(void 0===l)return Promise.reject(Dt(i));t=l.timeout,a.scheme=Ot(l.scheme),a.productId=l.productId,a.fallback=Ot(l.fallback),a.appStore=gt(a.productId,o.Windows),a.webStore=vt(a.productId,o.Windows),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore}else if(n===o.MacOS){l=function(e){return void 0!==e[o.MacOS]?e[o.MacOS]:e.macos}(e);if(void 0===l)return Promise.reject(Dt(i));t=l.timeout,a.scheme=Ot(l.scheme),a.bundleId=l.bundleId,a.trackId=l.trackId,a.fallback=Ot(l.fallback),a.appStore=gt(a.trackId,o.MacOS),a.webStore=vt(a.trackId,o.MacOS),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore,void 0!==a.bundleId&&void 0===a.trackId&&(a.trackId=ft(a.bundleId))}St(r,a.intent,Ye.Intent,bt()),St(r,a.universal,Ye.Universal,mt()),St(r,a.scheme,Ye.Scheme,!0),St(r,a.fallback,Ye.Fallback,!0),St(r,a.appStore,Ye.Store,a.allowAppStore),St(r,a.webStore,Ye.Store,a.allowWebStore),void 0===t&&(t=ht(n));return new Promise((function(e,n){return function o(a){if(void 0===a&&(a=0),a>=r.length)return n(Dt(i));var l=r[a],c=l[0],s=l[1];if("string"==typeof s)return i[a]=s,Rt(s,a,t).then((function(){e(c)})).catch((function(){o(a+1)}));i[a]="[function fallback]",s(),e(c)}()}))},telephone:function(e){return Gt(e,"tel")},message:function(e){return Gt(e,"sms")},mail:function(e){return Gt(e,"mailto")},file:function(e){if(void 0!==globalThis.showOpenFilePicker){var t={};if(void 0!==e&&(void 0!==e.multiple&&(t.multiple=e.multiple),void 0!==e.id&&(t.id=e.id),void 0!==e.startIn&&(t.startIn=e.startIn),void 0!==e.accept)){var n={};t.excludeAcceptAllOption=!0,t.types=[{description:"",accept:n}];for(var r=0;r<e.accept.length;r++){var o=e.accept[r];/^\.\w+/i.test(o)?(void 0===n["application/octet-stream"]&&(n["application/octet-stream"]=[]),n["application/octet-stream"].push(o)):/^\w+\/\w+$/i.test(o)&&(n[o]=[])}}return Ft(globalThis.showOpenFilePicker(t))}var i=oe("input");i.type="file",void 0!==e&&(void 0!==e.multiple&&(i.multiple=e.multiple),void 0!==e.accept&&(i.accept=Et(e.accept)));return Ft(i)},directory:function(e){if(!wt())return Promise.reject(new De("'window.showDirectoryPicker' and 'HTMLInputElement.prototype.webkitdirectory' does not supported."));if(void 0!==globalThis.showDirectoryPicker){var t={};return void 0!==e&&(void 0!==e.id&&(t.id=e.id),void 0!==e.startIn&&(t.startIn=e.startIn),void 0!==e.mode&&(t.mode=e.mode)),Wt(globalThis.showDirectoryPicker(t))}var n=oe("input");return n.type="file",n.webkitdirectory=!0,Wt(n)},setting:function(e){var t=K.os.name,n=K.os.version;if(!yt())return Promise.reject(Dt([]));var r=[];switch(t){case o.Android:e!==Ke.General&&(e===Ke.Accessibility&&s(n,"1.6")>=0?r.push(rt.Android[Ke.Accessibility]):e===Ke.Battery&&s(n,"5.1")>=0?r.push(rt.Android[Ke.Battery]):e===Ke.Accounts&&s(n,"1.5")>=0?r.push(rt.Android[Ke.Accounts]):e===Ke.Storage&&s(n,"3.0")>=0?r.push(rt.Android[Ke.Storage]):r.push(rt.Android[e])),r.push(rt.Android[Ke.General]);break;case o.Windows:r.push(rt.Windows[e]);break;case o.MacOS:if(e===Ke.Appearance&&s(n,"10.14")<0){r.push(rt.MacOS[Ke.General]);break}s(n,"13.0")<0?r.push(rt.MacOS[e]):r.push(rt["MacOS13+"][e])}return new Promise((function(e,t){return function n(o){return void 0===o&&(o=0),o>=r.length?t(Dt([])):Rt(r[o],o,750).then((function(){e()})).catch((function(){n(o+1)}))}()}))},camera:function(e){var t=oe("input");t.type="file",t.accept="image/*;capture=camera",t.capture="environment",void 0!==e&&(void 0!==e.type&&(e.type===Ze.Image?t.accept="image/*;capture=camera":t.accept="video/*;capture=camcorder"),void 0!==e.capture&&(e.capture===Xe.Environment?t.capture="environment":t.capture="user"));return Ft(t)},contact:function(e){return new Promise((function(t,n){if(!Tt())return n(new De("'navigator.contacts' does not supported."));var r=!1;void 0!==e&&void 0!==e.multiple&&(r=e.multiple),globalThis.navigator.contacts.getProperties().then((function(e){globalThis.navigator.contacts.select(e,{multiple:r}).then((function(e){t(e)}))}))}))},share:function(e){return new Promise((function(t,n){return kt()?globalThis.navigator.canShare(e)?void globalThis.navigator.share(e).then((function(){t()})).catch((function(e){return"AbortError"===e.name?n(new st("User cancelled the operation.")):n(new De(e.message))})):n(new De("The provided data cannot be shared on this device.")):n(new De("'navigator.share' does not supported."))}))},calendar:function(e){var t="function"==typeof Date.now?Date.now():(new Date).getTime(),n="BEGIN:VCALENDAR\r\nVERSION:2.0\r\n";""!==globalThis.document.title?n+=Ct("PRODID:-//"+Pt(globalThis.document.title)+"//EN")+"\r\n":n+=Ct("PRODID:-//"+Pt(globalThis.location.host)+"//EN")+"\r\n";n+="BEGIN:VEVENT\r\nUID:"+t+"-"+at(10)+"\r\nDTSTAMP:"+Mt(new Date)+"\r\n",!0===e.allDay?n+="DTSTART;VALUE=DATE:"+Mt(e.startDate,!0)+"\r\nDTEND;VALUE=DATE:"+Mt(e.endDate,!0)+"\r\n":n+="DTSTART:"+Mt(e.startDate)+"\r\nDTEND:"+Mt(e.endDate)+"\r\n";void 0!==e.title&&(n+=Ct("SUMMARY:"+Pt(e.title))+"\r\n");void 0!==e.description&&(n+=Ct("DESCRIPTION:"+Pt(e.description))+"\r\n");void 0!==e.location&&(n+=Ct("LOCATION:"+Pt(e.location))+"\r\n");if(void 0!==e.recur){var r="FREQ="+e.recur.frequency;void 0!==e.recur.interval&&e.recur.interval>1&&(r+=";INTERVAL="+String(e.recur.interval)),void 0!==e.recur.count&&(r+=";COUNT="+String(e.recur.count)),void 0!==e.recur.until&&(r+=";UNTIL="+Mt(e.recur.until)),void 0!==e.recur.byMonth&&e.recur.byMonth.length>0&&(r+=";BYMONTH="+Et(e.recur.byMonth)),void 0!==e.recur.byWeekNo&&e.recur.byWeekNo.length>0&&(r+=";BYWEEKNO="+Et(e.recur.byWeekNo)),void 0!==e.recur.byYearDay&&e.recur.byYearDay.length>0&&(r+=";BYYEARDAY="+Et(e.recur.byYearDay)),void 0!==e.recur.byMonthDay&&e.recur.byMonthDay.length>0&&(r+=";BYMONTHDAY="+Et(e.recur.byMonthDay)),void 0!==e.recur.byDay&&e.recur.byDay.length>0&&(r+=";BYDAY="+Et(e.recur.byDay)),void 0!==e.recur.byHour&&e.recur.byHour.length>0&&(r+=";BYHOUR="+Et(e.recur.byHour)),void 0!==e.recur.byMinute&&e.recur.byMinute.length>0&&(r+=";BYMINUTE="+Et(e.recur.byMinute)),void 0!==e.recur.bySecond&&e.recur.bySecond.length>0&&(r+=";BYSECOND="+Et(e.recur.bySecond)),void 0!==e.recur.bySetPos&&e.recur.bySetPos.length>0&&(r+=";BYSETPOS="+Et(e.recur.bySetPos)),void 0!==e.recur.weekStart&&"MO"!==e.recur.weekStart&&(r+=";WKST="+e.recur.weekStart),n+=Ct("RRULE:"+r)+"\r\n"}if(void 0!==e.alarm)for(var o=0;o<e.alarm.length;o++){var i=e.alarm[o];if(n+="BEGIN:VALARM\r\nACTION:DISPLAY\r\n",void 0!==i.datetime)n+="TRIGGER;VALUE=DATE-TIME:"+Mt(i.datetime)+"\r\n";else{var a="";if((void 0===i.before||i.before)&&(a+="-"),a+="P",void 0!==i.weeks&&i.weeks>0)a+=String(i.weeks)+"W";else{void 0!==i.days&&i.days>0&&(a+=String(i.days)+"D");var l=void 0!==i.hours&&i.hours>0,c=void 0!==i.minutes&&i.minutes>0,s=void 0!==i.seconds&&i.seconds>0;(l||c||s)&&(a+="T",l&&(a+=String(i.hours)+"H"),c&&(a+=String(i.minutes)+"M"),s&&(a+=String(i.seconds)+"S"))}n+="TRIGGER:"+a+"\r\n"}void 0!==i.description?n+=Ct("DESCRIPTION:"+Pt(i.description))+"\r\n":n+="DESCRIPTION:Reminder\r\n",void 0===i.datetime&&void 0!==i.repeat&&void 0!==i.repeatDuration&&(n+="REPEAT:"+String(i.repeat)+"\r\n",n+="DURATION:PT"+String(i.repeatDuration)+"M\r\n"),n+="END:VALARM\r\n"}n+="END:VEVENT\r\nEND:VCALENDAR";var u=oe("a");u.href="data:text/calendar;charset=utf-8,"+globalThis.encodeURIComponent(n),u.download="event-"+t+".ics",it(u)},supported:{get intent(){return bt()},get universal(){return mt()},get setting(){return yt()},get directory(){return wt()},get camera(){return function(){var e=K.os.name,t=K.os.version;return!K.isWebview&&(e===o.iOS&&0===s(t,"10.3.1")||e===o.Android&&s(t,"3.0")>=0)}()},get contact(){return Tt()},get share(){return kt()},get calendar(){return K.os.name===o.iOS&&s(K.os.version,"15.0")>=0&&K.browser.name===l.Safari&&!K.isWebview}},Constants:{AppOpenState:Ye,SettingType:Ke,CameraType:Ze,CaptureType:Xe},Errors:{URLOpenError:ct,NotSupportedError:De,UserCancelledError:st}},dt=void 0;function pt(){var e=ot(),t=e.document,n={},r={},i=void 0!==globalThis.cordova,a=K.os.name===o.iOS,l=a&&s(K.os.version,"8.0")>=0,c=a&&!l,u=O.useStd;return i?(n.focus="resume",n.blur="pause",r.focus=t,r.blur=t):l?(n.visibilitychange="visibilitychange",r.visibilitychange=t):c?(n.focus="pageshow",n.blur="pagehide",r.focus=e,r.blur=e):u?(n.focus="focus",n.blur="blur",n.visibilitychange="visibilitychange",r.focus=e,r.blur=e,r.visibilitychange=t):(n.focus="focus",n.blur="blur",n.visibilitychange="visibilitychange",r.focus=t,r.blur=t,r.visibilitychange=t),{type:n,target:r}}function ft(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{return function(e){if(void 0===e.results)return;var t=e.results;if(0===t.length)return;var n=t[0];return void 0===n?void 0:""+n.trackId}(JSON.parse(t.response))}catch(e){return}return}catch(e){return}}function gt(e,t){if(void 0!==e)switch(t){case o.Android:return"market://details?id="+e;case o.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case o.Windows:return"ms-windows-store://pdp/?ProductId="+e;case o.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new ct('Unsupported OS: "'+K.userAgent+'"')}}function vt(e,t){if(void 0!==e)switch(t){case o.Android:return"https://play.google.com/store/apps/details?id="+e;case o.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case o.Windows:return"https://apps.microsoft.com/detail/"+e;case o.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new ct('Unsupported OS: "'+K.userAgent+'"')}}function ht(e){switch(e){case o.iOS:return 2e3;case o.Android:return 1e3;default:return 750}}function bt(){if(K.os.name!==o.Android)return!1;var e=K.browser.version;return!(K.browser.name===l.SamsungInternet&&s(e,"17.0.1.69")>=0&&s(e,"17.0.7.34")<0)&&(!(K.browser.name===l.Firefox&&s(e,"41.0")<0)&&(!(K.browser.name===l.Firefox&&s(e,"59.0")>=0&&s(e,"68.11.0")<0)&&(!(K.browser.name===l.Firefox&&s(e,"80.0")>=0&&s(e,"82.0")<0)&&(!(K.browser.name===l.Firefox&&s(e,"96.0")>=0&&s(e,"107.0")<0)&&(!(K.browser.name===l.Opera&&s(e,"14.0")<0)&&!(/(?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/[\w.]+;/i.test(K.userAgent)||/instagram[\/ ][-\w.]+/i.test(K.userAgent)||/micromessenger\/([\w.]+)/i.test(K.userAgent)||/musical_ly(?:.+app_?version\/|_)[\w.]+/i.test(K.userAgent)||/ultralite app_version\/[\w.]+/i.test(K.userAgent)))))))}function mt(){return K.os.name===o.iOS&&s(K.os.version,"9.0")>=0}function yt(){var e=K.os.name,t=K.os.version;return e!==o.Unknown&&(!(e===o.Android&&!bt())&&(e!==o.iOS&&((e!==o.Windows||!("Vista"===t||"XP"===t||"2000"===t||"NT 4.0"===t||"NT 3.11"===t||"ME"===t||s(t,"10")<0))&&!(e===o.MacOS&&s(t,"10.10")<0))))}function wt(){return void 0!==globalThis.showDirectoryPicker||void 0!==oe("input").webkitdirectory}function Tt(){return void 0!==globalThis.navigator.contacts}function kt(){return void 0!==globalThis.navigator.share}function St(e,t,n,r){void 0===r&&(r=!1),"function"!=typeof t&&"string"!=typeof t||!r||e.push([n,t])}function Et(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=",");for(var r=e.length,o="",i=0;i<r;i++)0!==i&&(o+=n),o+=void 0!==t?t(e[i]):e[i];return o}function It(e){return globalThis.encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function xt(e){return It(e).replace(/%22/g,'"').replace(/%40/g,"@").replace(/%2C/gi,",")}function Pt(e){return e.replace(/\\/g,"\\\\").replace(/;/g,"\\;").replace(/,/g,"\\,").replace(/\r\n|\n|\r/g,"\\n")}function At(e){return void 0!==globalThis.TextEncoder?(new TextEncoder).encode(e).length:globalThis.unescape(globalThis.encodeURIComponent(e)).length}function Ct(e){if(At(e)<=75)return e;for(var t="",n="",r=0,o=0;o<e.length;o++){var i=e[o],a=At(e[o]);""!==n&&r+a>75?(t+=n+"\r\n ",n=i,r=a):(n+=i,r+=a)}return t+=n}function Ot(e){return e instanceof URL?e.toString():e}function Mt(e,t){return void 0===t&&(t=!1),t?e.getUTCFullYear()+lt(e.getUTCMonth()+1,2,"0")+lt(e.getUTCDate(),2,"0"):e.getUTCFullYear()+lt(e.getUTCMonth()+1,2,"0")+lt(e.getUTCDate(),2,"0")+"T"+lt(e.getUTCHours(),2,"0")+lt(e.getUTCMinutes(),2,"0")+lt(e.getUTCSeconds(),2,"0")+"Z"}function Dt(e){for(var t="",n=0;n<e.length;n++)t+="\n"+(n+1)+": "+e[n];return t.length>0&&(t="\n"+t+"\n"),new ct("Failed to open any of the provided URLs: "+t)}function Nt(){var e=ot().document;return"hidden"===e.visibilityState||("hidden"===e.webkitVisibilityState||("hidden"===e.mozVisibilityState||("hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus()))))}function Lt(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function Ut(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function Ft(e){if("[object Promise]"===Object.prototype.toString.call(e)){var t=e;return new Promise((function(e,n){t.then((function(t){for(var r=[],o=0;o<t.length;o++)r[o]=t[o].getFile();Promise.all(r).then(e).catch(n)})).catch((function(e){return"AbortError"===e.name?n(new st("User cancelled the operation.")):n(new De(e.message))}))}))}var n=e,r=pt(),o=ot().document;return new Promise((function(e,t){var i=!1;function a(a){if(!i){i=!0;var u=n.files,d=[];if(null===u)return e(d);for(var p=0;p<u.length;p++)d.push(u[p]);!function(){dt=void 0;try{O.remove(r.target.focus,{type:r.type.focus,callback:l}),O.remove(r.target.visibilitychange,{type:r.type.visibilitychange,callback:c}),O.remove(o,{type:"click",callback:s})}catch(e){}}(),a?e(d):t(new st("User cancelled the operation."))}}function l(){globalThis.setTimeout((function(){n.value.length>0?a(!0):a(!1)}),1e3)}function c(){Nt()||l()}function s(){a(!1)}n.onchange=function(){a(!0)},void 0!==dt&&dt(),void 0!==n.oncancel?n.oncancel=function(){a(!1)}:n.onclick=function(){O.add(r.target.visibilitychange,{type:r.type.visibilitychange,callback:c}),O.add(r.target.focus,{type:r.type.focus,callback:l}),globalThis.setTimeout((function(){O.add(o,{type:"click",callback:s})}),100),dt=function(){a(!1)}},it(n)}))}function Wt(e){if("[object Promise]"===Object.prototype.toString.call(e)){var t=e;return new Promise((function(e,n){t.then((function(t){var r=[],o=[];(function e(t,n){return void 0===n&&(n=""),new Promise((function(i,a){var l=t.entries();!function t(){l.next().then((function(a){if(a.done)return i();var l,c=a.value[0],s=a.value[1];l=""===n?c:n+"/"+c,"file"===s.kind?r.push(s.getFile().then((function(e){o.push({file:e,relativePath:l})}))):r.push(e(s,l)),t()})).catch(a)}()}))})(t,t.name).then((function(){Promise.all(r).then((function(){e(o)})).catch(n)})).catch(n)})).catch((function(e){return"AbortError"===e.name?n(new st("User cancelled the operation.")):n(new De(e.message))}))}))}var n=e;return new Promise((function(e,t){Ft(n).then((function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push({file:o,relativePath:o.webkitRelativePath})}e(n)})).catch(t)}))}function Rt(e,t,n){var r=pt(),o=ot().document,i=void 0,a=void 0;return new Promise((function(l,c){var s,u=!1;function d(e){u||(u=!0,function(){void 0!==s&&(clearTimeout(s),s=void 0);try{O.remove(r.target.blur,{type:r.type.blur,callback:p}),O.remove(r.target.focus,{type:r.type.focus,callback:f}),O.remove(r.target.visibilitychange,{type:r.type.visibilitychange,callback:g})}catch(e){}if(void 0!==i)try{o.body.removeChild(i)}catch(e){}if(void 0!==a)try{o.body.removeChild(a)}catch(e){}}(),e?l():c())}function p(){void 0!==s&&(clearTimeout(s),s=void 0),O.remove(r.target.blur,{type:r.type.blur,callback:p}),O.add(r.target.focus,{type:r.type.focus,callback:f})}function f(){d(!0)}function g(){Nt()?p():f()}s=globalThis.setTimeout((function(){d(!1)}),n),O.add(r.target.blur,{type:r.type.blur,callback:p}),O.add(r.target.visibilitychange,{type:r.type.visibilitychange,callback:g}),Lt(o)||function(){var e=ot(),t=e.document;if(Ut(e),Lt(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),Ut(t.body),Lt(t))return!0;var n=void 0;try{if(void 0===(n=oe("input")))return!1;n.type="text",n.readOnly=!0,t.body.appendChild(n),Ut(n);try{n.select()}catch(e){}if(Lt(t))return!0}catch(e){}finally{if(null!=n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}Lt(t)}();try{void 0!==globalThis.cordova?globalThis.open(e,"_system"):(i=function(e,t){var n=ot(),r=n.document,o=void 0;try{return 0===t?void(n.location.href=e):((o=oe("a")).href=e,r.body.appendChild(o),it(o,n),o)}catch(e){}finally{if(void 0!==o)try{r.body.removeChild(o)}catch(e){}}}(e,t),a=function(e){var t=ot().document,n=void 0;try{if(void 0===(n=oe("iframe")))return;n.src=e,t.body.appendChild(n),globalThis.setTimeout((function(){if(void 0!==n)try{t.body.removeChild(n)}catch(e){}}),500)}catch(e){}return n}(e))}catch(e){d(!1)}}))}function Gt(e,t){"string"==typeof e.to&&(e.to=xt(e.to)),"string"==typeof e.cc&&(e.cc=xt(e.cc)),"string"==typeof e.bcc&&(e.bcc=xt(e.bcc)),"string"==typeof e.subject&&(e.subject=It(e.subject)),"string"==typeof e.body&&(e.body=It(e.body)),"object"==typeof e.to&&(e.to=Et(e.to,xt)),"object"==typeof e.cc&&(e.cc=Et(e.cc,xt)),"object"==typeof e.bcc&&(e.bcc=Et(e.bcc,xt));var n=[],r=t+":";return"string"==typeof e.to&&(r+=e.to),"string"==typeof e.cc&&n.push("cc="+e.cc),"string"==typeof e.bcc&&n.push("bcc="+e.bcc),"string"==typeof e.subject&&n.push("subject="+e.subject),"string"==typeof e.body&&n.push("body="+e.body),Rt(r+"?"+Et(n,void 0,"&"),0,ht(K.os.name))}var qt=/iemobile/i.test(K.userAgent),jt=/windows phone/i.test(K.userAgent),Ht=null,_t={get value(){return function(){var e=Vt();if(!e)return;var t=e.getAttribute("content");return"string"==typeof t?t:void 0}()},set value(e){var t;void 0===e?(t=Vt())&&(t.remove(),Ht=null):function(e){var t=Vt();null===t&&(t=function(){var e=globalThis.document.createElement("meta");return e.setAttribute("name",Bt()),globalThis.document.head.prepend(e),Ht=e}());t.setAttribute("content",e)}(e)},Constants:{},Errors:{}};function Bt(){return qt?"msapplication-navbutton-color":jt?"msapplication-TileColor":"theme-color"}function Vt(){return null!==Ht&&Ht.isConnected?Ht:Ht=globalThis.document.querySelector('meta[name="'+Bt()+'"]')}var zt={run:function(e){if(Yt())return globalThis.navigator.vibrate(e);throw new De("'navigator.vibrate' does not supported.")},stop:function(){return this.run(0)},get supported(){return Yt()},Constants:{},Errors:{NotSupportedError:De}};function Yt(){return void 0!==globalThis.navigator.vibrate}var Kt=Symbol("pipBridged"),Zt="picture-in-picture",Xt="inline";function Jt(){return void 0!==globalThis.document.pictureInPictureEnabled}var Qt=function(){var e=null,t=!1,n=null,r=[],o="exit",i=Z((function(){if(Jt()){for(var e=["enterpictureinpicture","leavepictureinpicture"],t=0;t<e.length;t++)O.add(globalThis.document,{type:e[t],callback:i.emit,options:!1});return}s()}),(function(){if(Jt()){for(var e=["enterpictureinpicture","leavepictureinpicture"],t=0;t<e.length;t++)O.remove(globalThis.document,{type:e[t],callback:i.emit,options:!1});return}globalThis.document.querySelectorAll("video").forEach((function(e){O.remove(e,{type:"webkitpresentationmodechanged",callback:c,options:!1});try{delete e[Kt]}catch(t){e[Kt]=void 0}}))})),a=Z((function(){O.add(globalThis.document,{type:"pictureinpictureerror",callback:a.emit,options:!1})}),(function(){O.remove(globalThis.document,{type:"pictureinpictureerror",callback:a.emit,options:!1})}));function l(){var t=globalThis.document.pictureInPictureElement;return null!=t?t:null!==e&&e.webkitPresentationMode===Zt?e:null}function c(t){(this.webkitPresentationMode===Zt||this.webkitPresentationMode===Xt&&e===this)&&i.emit(t)}function s(){void 0!==globalThis.document&&globalThis.document.querySelectorAll("video").forEach((function(e){!0===e[Kt]||void 0===e.webkitSetPresentationMode&&void 0===e.onwebkitpresentationmodechanged||(O.add(e,{type:"webkitpresentationmodechanged",callback:c,options:!1}),e[Kt]=!0)}))}function u(){var e,t=r.shift();void 0!==t?(e="request"===t.operation?f(t.target):g(),n=e.then((function(){t.resolve(),u()})).catch((function(e){t.reject(e),u()}))):n=null}function d(e){if(o="request",null===n){var t=f(e);return n=t.then(u).catch(u),t}return new Promise((function(t,n){r.push({operation:"request",target:e,resolve:t,reject:n})}))}function p(){if(o="exit",null===n){var e=g();return n=e.then(u).catch(u),e}return new Promise((function(e,t){r.push({operation:"exit",target:void 0,resolve:e,reject:t})}))}function f(t){return new Promise((function(n,r){if(void 0===t&&(t=function(){var e=globalThis.document.querySelector("video");if(null!==e)return e}()),void 0===t)return r(new De("Failed to enter Picture-in-Picture mode."));var o=t.tagName.toLowerCase();if("video"!==o)return r(new De('The "'+o+'" element does not support Picture-in-Picture requests.'));function i(){if(void 0!==t&&"function"==typeof t.webkitSupportsPresentationMode&&t.webkitSupportsPresentationMode(Zt)&&"function"==typeof t.webkitSetPresentationMode)return t.disablePictureInPicture?r(new De("Picture-in-Picture is disabled on this video element.")):(e=t,s(),t.webkitSetPresentationMode(Zt),n());r(new De('The "'+o+'" element does not support Picture-in-Picture requests.'))}var a=t.requestPictureInPicture;if("function"==typeof a){var l=a.call(t);return void 0!==l&&"function"==typeof l.then?void l.then((function(){n()})).catch((function(){i()})):n()}i()}))}function g(){return new Promise((function(t,n){if(null===l()&&null===e)return t();function r(){var r;r=null!==e&&e.webkitPresentationMode===Zt?[e]:globalThis.document.querySelectorAll("video");for(var o=0;o<r.length;o++){var i=r[o];if("function"==typeof i.webkitSetPresentationMode&&i.webkitPresentationMode===Zt)return i.webkitSetPresentationMode(Xt),e=null,t()}if(null===l())return t();n(new De("Failed to exit Picture-in-Picture mode."))}var o=globalThis.document.exitPictureInPicture;if("function"==typeof o){var i=o.call(globalThis.document);return void 0!==i&&"function"==typeof i.then?void i.then(t).catch((function(){r()})):t()}r()}))}return t||(t=!0,Jt()||(s(),void 0!==globalThis.MutationObserver&&new MutationObserver((function(){s()})).observe(globalThis.document.documentElement,{childList:!0,subtree:!0}))),{get supported(){return function(){if("boolean"==typeof globalThis.document.pictureInPictureEnabled)return globalThis.document.pictureInPictureEnabled;if("undefined"==typeof HTMLVideoElement)return!1;for(var e=globalThis.document.querySelectorAll("video"),t=0;t<e.length;t++){var n=e[t];if("function"==typeof n.webkitSupportsPresentationMode&&n.webkitSupportsPresentationMode(Zt))return!0}return!1}()},get element(){return l()},get isPip(){return null!==l()},request:d,exit:p,toggle:function(e){return"request"===o?p():d(e)},onChange:i.subscribe,onError:a.subscribe,Constants:{},Errors:{NotSupportedError:De}}}(),$t={set:function(e){return en()?globalThis.navigator.setAppBadge(e):Promise.reject(new De("'navigator.setAppBadge' does not supported."))},clear:function(){return this.set(0)},get supported(){return en()},Constants:{},Errors:{NotSupportedError:De}};function en(){return void 0!==globalThis.navigator.setAppBadge}var tn={send:function(e){return new Promise((function(t,n){if(!nn())return n(new De("'window.Notification' does not supported."));qe.request(Fe.Notification).then((function(r){if(r===We.Grant){var o={badge:e.badge,body:e.body,data:e.data,dir:e.dir,icon:e.icon,lang:e.lang,requireInteraction:e.requireInteraction,silent:e.silent,tag:e.tag},i=new globalThis.Notification(e.title,o);void 0!==e.onClick&&(i.onclick=e.onClick),void 0!==e.onShow&&(i.onshow=e.onShow),void 0!==e.onClose&&(i.onclose=e.onClose),void 0!==e.onError&&(i.onerror=e.onError),t(i)}else n(new je("'notification' permission is not granted."))}))}))},get supported(){return nn()},Constants:{},Errors:{NotSupportedError:De,PermissionNotGrantedError:je}};function nn(){return void 0!==globalThis.Notification}var rn=Z((function(){if(!cn())return;globalThis.navigator.getBattery().then((function(e){on=e,O.add(e,{type:"chargingchange",callback:ln}),O.add(e,{type:"levelchange",callback:ln}),O.add(e,{type:"chargingtimechange",callback:ln}),O.add(e,{type:"dischargingtimechange",callback:ln})}))}),(function(){if(!cn()||null===on)return;O.remove(on,{type:"chargingchange",callback:ln}),O.remove(on,{type:"levelchange",callback:ln}),O.remove(on,{type:"chargingtimechange",callback:ln}),O.remove(on,{type:"dischargingtimechange",callback:ln}),on=null})),on=null,an={get value(){return new Promise((function(e,t){if(!cn())return t(new De("'navigator.getBattery' does not supported."));globalThis.navigator.getBattery().then(e)}))},get supported(){return cn()},onChange:rn.subscribe,Constants:{},Errors:{NotSupportedError:De}};function ln(){rn.emit(on)}function cn(){return void 0!==globalThis.navigator.getBattery}!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var e=__getGlobalThis__;Object.defineProperty(e,"globalThis",{value:e,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var sn={version:n,appearance:$,badge:$t,battery:an,clipboard:ae,dimension:Pe,fullscreen:Re,geolocation:tt,notification:tn,open:ut,permission:qe,pip:Qt,platform:K,theme:_t,vibration:zt};module.exports=sn;
|
|
1
|
+
"use strict";var e,t,n="1.1.2",r={matches:!1,media:"not all",onchange:null,addListener:function(){},removeListener:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}};!function(e){e.Unknown="unknown",e.Light="light",e.Dark="dark"}(e||(e={})),t=void 0!==globalThis.matchMedia?globalThis.matchMedia("(prefers-color-scheme: dark)"):r;var o,i,a,l,c=globalThis.document.createElement("canvas").getContext("2d",{willReadFrequently:!0});function s(e,t){for(var n=e.split("."),r=t.split("."),o=Math.max(n.length,r.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<n.length?parseInt(n[i],10):0)>(l=i<r.length?parseInt(r[i],10):0))return 1;if(a<l)return-1}return 0}function u(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function d(e){return void 0===e?"":e.replace(/_/g,".")}!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={}));var p=void 0!==globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",f={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"},g=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","iw","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],v=[[/windows nt (6\.[23]); arm/i,o.Windows,u],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,u],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,u],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,u],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,u],[/windows ce\/?([\d.]*)/i,o.Windows,u],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,d],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,d],[/cfnetwork\/.+darwin/i,o.iOS,d],[/mac os x ?([\w. ]*)/i,o.MacOS,d],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,d],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],h=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],b=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]],m=[],y=[];function w(e){return"function"==typeof e||"object"==typeof e&&null!==e&&"function"==typeof e.handleEvent}function T(e){return"string"==typeof e.media&&"boolean"==typeof e.matches}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r="",o=0;o<t.length-2;o++){var i=t[o];void 0!==i&&(r=r+i.charAt(0).toUpperCase()+i.slice(1))}return r}function S(e,t){if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(t)>-1)return t;if("function"==typeof e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(t)>-1)return t;var n;n=void 0!==C[t]?C[t]:P.test(t)?[t,t.replace(P,k)]:[t];for(var r=0;r<A.length;r++)for(var o=0;o<n.length;o++){var i=A[r]+n[o];if(void 0!==e["on"+i])return i}return t}function E(){this.returnValue=!1}function I(){this.cancelBubble=!0}var x,P=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,A=["","webkit","moz","ms","MS","o","O"],C={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},O={useStd:"function"==typeof globalThis.document.addEventListener,add:function(e,t){if(void 0!==t.type&&void 0!==e){var n=t.callback,r=S(e,t.type),o=t.options;if(T(e)&&"function"==typeof e.addListener)try{var i=function(e,t,n){for(var r=0;r<y.length;r++){var o=y[r];if(o.target===e&&o.type===t&&o.callback===n)return o.wrapper}}(e,r,n);return void 0===i&&function(e,t,n,r){y.push({target:e,type:t,callback:n,wrapper:r})}(e,r,n,i=function(e){return function(t){"function"==typeof e?e.call(this,t):e&&"function"==typeof e.handleEvent&&e.handleEvent(t)}}(n)),e.addListener(i)}catch(e){}if("function"==typeof e.addEventListener)try{if(w(n))return e.addEventListener(r,n,o)}catch(e){}if("function"==typeof e.attachEvent){var a=function(e,t,n){for(var r=0;r<m.length;r++){var o=m[r];if(o.target===e&&o.type===t&&o.callback===n)return o.wrapper}}(e,r,n);if("function"==typeof a)return;i=function(t){if(void 0===t&&(t=globalThis.event),void 0!==t){try{Object.defineProperty(t,"currentTarget",{value:e,configurable:!0})}catch(e){}"function"!=typeof t.preventDefault&&(t.preventDefault=E.bind(t)),"function"!=typeof t.stopPropagation&&(t.stopPropagation=I.bind(t)),"function"==typeof n?n.call(e,t):n&&"function"==typeof n.handleEvent&&n.handleEvent(t)}};return function(e,t,n,r){m.push({target:e,type:t,callback:n,wrapper:r})}(e,r,n,i),e.attachEvent("on"+r,i)}}},remove:function(e,t){if(void 0!==t.type&&void 0!==e){var n=t.callback,r=S(e,t.type),o=t.options;if(T(e)){if("function"==typeof e.removeListener)try{var i=function(e,t,n){for(var r=0;r<y.length;r++){var o=y[r];if(o.target===e&&o.type===t&&o.callback===n)return y.splice(r,1),o.wrapper}}(e,r,n);if("function"==typeof i)return e.removeListener(i)}catch(e){}}else{if("function"==typeof e.removeEventListener)try{if(w(n))return e.removeEventListener(r,n,o)}catch(e){}if("function"!=typeof e.detachEvent);else{i=function(e,t,n){for(var r=0;r<m.length;r++){var o=m[r];if(o.target===e&&o.type===t&&o.callback===n)return m.splice(r,1),o.wrapper}}(e,r,n);"function"==typeof i&&e.detachEvent("on"+r,i)}}}}},M=p,D=null,N={},L={},U={},F=null,W={},R=null;function G(e,t){return"function"==typeof t?t(e):"string"==typeof t?t:void 0===e?"":e}function q(e){if(null==e)return e;if(0===e.length)return null;if("C"===(e=e.replace(/_/g,"-"))||"posix"===e.toLowerCase())return"en-US";if(-1!==e.indexOf("."))return q(e.split(".")[0]);if(-1!==e.indexOf("@"))return q(e.split("@")[0]);var t=e.split("-");return 0===t.length?null:(t[0]=t[0].toLowerCase(),t.length>1&&2===t[1].length&&(t[1]=t[1].toUpperCase()),t.length>2&&4===t[1].length&&(t[1]=t[1].charAt(0).toUpperCase()+t[1].slice(1).toLowerCase()),t.join("-"))}function j(){return null!==D&&D.userAgent===M?D:D={userAgent:M,os:H(),browser:_(),engine:B()}}function H(){for(var e={name:o.Unknown,version:""},t=0;t<v.length;t++){var n=v[t],r=M.match(n[0]);if(null!==r){e.name=n[1],e.version=G(r[1],n[2]);break}}if(e.name===o.iOS&&0===s(e.version,"18.6")){var i=/\) Version\/([\d.]+)/.exec(M);if(null!==i)parseInt(i[1].split(".")[0],10)>=26&&(e.version=i[1])}return M===p&&(void 0!==N.name&&(e.name=N.name),void 0!==N.version&&(e.version=N.version),e.name===o.MacOS&&void 0!==globalThis.navigator.standalone&&globalThis.navigator.maxTouchPoints>2&&(e.name=o.iOS)),e}function _(){for(var e={name:l.Unknown,version:""},t=0;t<b.length;t++){var n=b[t],r=M.match(n[0]);if(null!==r){e.name=n[1],e.version=G(r[1],n[2]);break}}return M===p&&(void 0!==L.name&&(e.name=L.name),void 0!==L.version&&(e.version=L.version)),e}function B(){for(var e={name:a.Unknown,version:""},t=0;t<h.length;t++){var n=h[t],r=M.match(n[0]);if(null!==r){e.name=n[1],e.version=G(r[1],n[2]);break}}return M===p&&(void 0!==U.name&&(e.name=U.name),void 0!==U.version&&(e.version=U.version)),e}function V(){if(null!==R)return R;var e={language:null,languages:[],timezone:null,offset:0,isRTL:!1},t=null;function n(t){"string"==typeof(t=q(t))&&-1===e.languages.indexOf(t)&&(null===e.language&&(e.language=t),e.languages.push(t))}if("undefined"!=typeof Intl){try{n(Intl.DateTimeFormat().resolvedOptions().locale)}catch(e){}try{e.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}void 0!==globalThis.navigator&&(void 0!==globalThis.navigator.languages&&function(e){for(var t=0;t<e.length;t++)n(e[t])}(globalThis.navigator.languages),void 0!==globalThis.navigator.language&&n(globalThis.navigator.language),void 0!==globalThis.navigator.userLanguage&&n(globalThis.navigator.userLanguage),void 0!==globalThis.navigator.browserLanguage&&n(globalThis.navigator.browserLanguage),void 0!==globalThis.navigator.systemLanguage&&n(globalThis.navigator.systemLanguage));try{e.offset=-1*(new Date).getTimezoneOffset()}catch(e){}if("string"==typeof e.language){if("undefined"!=typeof Intl&&void 0!==Intl.Locale)try{var r=new Intl.Locale(e.language);"function"==typeof r.getTextInfo?t="rtl"===r.getTextInfo().direction:void 0!==r.textInfo&&(t="rtl"===r.textInfo.direction)}catch(e){}if("boolean"!=typeof t){var o=/^([A-Za-z]{1,8})(?:[-_][A-Za-z0-9]{1,8})*$/.exec(e.language);if(null!==o)for(var i=o[1].toLowerCase(),a=0;a<g.length;a++)if(g[a]===i){t=!0;break}}}return"boolean"==typeof t&&(e.isRTL=t),R=e}function z(){return void 0===globalThis.navigator||void 0===globalThis.navigator.userAgentData||void 0===globalThis.navigator.userAgentData.getHighEntropyValues?Promise.resolve():globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){try{for(var t=e.fullVersionList||e.brands||[],n=e.platformVersion,r=e.platform,a=j().browser.name,c=null,s=0;s<t.length;s++){var u=null==(g=t[s])?{brand:"",version:""}:"string"==typeof g?{brand:g,version:""}:{brand:g.brand,version:g.version},d=u.version,p=u.brand;/not.a.brand/i.test(p)||((null===c||/Chrom/.test(c)&&"Chromium"!==p||"Edge"===c&&/WebView2/.test(p))&&(p=f[p]||p,null!==(c=a)&&!/Chrom/.test(c)&&/Chrom/.test(p)||("Chrome"===(a=p)||"Chrome WebView"===a||"Chrome Headless"===a?L.name=l.Chrome:"Edge"===a||"Edge WebView2"===a?L.name=l.Edge:"Opera Mobi"===a&&(L.name=l.Opera),L.version=d),c=p),"Chromium"===p&&(U.version=d))}"string"==typeof n&&(j().os.name===o.Windows?N.version=parseInt(n.split(".")[0],10)>=13?"11":"10":N.version=n),"string"==typeof r&&(/android/i.test(r)?N.name=o.Android:/ios|iphone|ipad/i.test(r)?N.name=o.iOS:/windows|win32/i.test(r)?N.name=o.Windows:/macos|macintel/i.test(r)&&(N.name=o.MacOS)),!0===e.mobile&&(F=i.Mobile),D=null}catch(e){}var g})).catch((function(){}))}function Y(){return void 0===globalThis.navigator||void 0===globalThis.navigator.gpu?Promise.resolve():globalThis.navigator.gpu.requestAdapter().then((function(e){if(null!==e){var t=e.info;W.architecture=t.architecture,W.description=t.description,W.device=t.device,W.vendor=t.vendor}})).catch((function(){}))}x=Promise.all([z(),Y()]).then((function(){})),O.add(globalThis,{type:"languagechange",callback:function(){R=null}});var K={get ready(){return x},get os(){return j().os},get engine(){return j().engine},get browser(){return j().browser},get userAgent(){return M},set userAgent(e){M!==e&&(M=e,D=null,R=null,N={},L={},U={},F=null,W={},e===p&&(x=Promise.all([z(),Y()]).then((function(){}))))},get locale(){return V()},get device(){return function(){if(M===p&&null!==F)return F;var e=j().os.name;return e===o.iOS||e===o.Android?i.Mobile:e===o.Windows||e===o.MacOS?i.Desktop:i.Unknown}()},get gpu(){return{architecture:W.architecture,description:W.description,device:W.device,vendor:W.vendor}},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(M)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return j().os.name===o.iOS?!0===globalThis.navigator.standalone:void 0!==globalThis.matchMedia&&globalThis.matchMedia("(display-mode: standalone)").matches},Constants:{OS:o,Engines:a,Browsers:l,Devices:i},Errors:{}};function Z(e,t){var n=[];function r(e){var r=o(e);-1!==r&&(n.splice(r,1),0===n.length&&t())}function o(e){for(var t=0;t<n.length;t++)if(n[t].fn===e.fn)return t;return-1}return{emit:function(e){for(var t=n.slice(),o=0;o<t.length;o++)t[o].fn(e),t[o].once&&r(t[o])},subscribe:function(t,i){void 0===i&&(i={});var a={fn:t,once:!1};void 0!==i.once&&(a.once=i.once),void 0!==i.signal&&(a.signal=i.signal);var l=o(a);-1===l?(n.push(a),1===n.length&&e()):n[l].once&&!a.once&&(n[l].once=!1);var c=function(){O.remove(a.signal,{type:"abort",callback:c}),r(a)};return void 0!==a.signal&&(a.signal.aborted?r(a):O.add(a.signal,{type:"abort",callback:c})),function(){r(a)}}}}var X=Z((function(){J=te(),O.add(t,{type:"change",callback:ne}),K.browser.name===l.SamsungInternet&&(J=ee(),Q=globalThis.setInterval((function(){var e=ee();e!==J&&(J=e,X.emit(e))}),2e3))}),(function(){J=null,O.remove(t,{type:"change",callback:ne}),K.browser.name===l.SamsungInternet&&(J=null,null!==Q&&(clearInterval(Q),Q=null))})),J=null,Q=null,$={get value(){return K.browser.name===l.SamsungInternet?ee():te()},onChange:X.subscribe,Constants:{Appearances:e},Errors:{}};function ee(){var t=new Image;if(t.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMXYxSDB6Ii8+PC9zdmc+",null===c)return e.Light;c.drawImage(t,0,0);var n=c.getImageData(0,0,1,1).data;return(n[0]&n[1]&n[2])<255?e.Dark:e.Light}function te(){return"not all"===t.media?e.Unknown:t.matches?e.Dark:e.Light}function ne(t){var n;(n=t.matches?e.Dark:e.Light)!==J&&X.emit(J=n)}function re(e,t){var n=e.style;for(var r in t){var o=t[r];void 0!==o&&(n[r]=o)}}function oe(e,t){void 0===t&&(t=!0);var n=globalThis.document.createElement(e);return void 0!==n.width&&(n.width="0"),void 0!==n.height&&(n.height="0"),void 0!==n.border&&(n.border="0"),void 0!==n.frameBorder&&(n.frameBorder="0"),void 0!==n.scrolling&&(n.scrolling="no"),void 0!==n.cellPadding&&(n.cellPadding="0"),void 0!==n.cellSpacing&&(n.cellSpacing="0"),void 0!==n.frame&&(n.frame="void"),void 0!==n.rules&&(n.rules="none"),void 0!==n.noWrap&&(n.noWrap=!0),n.tabIndex=-1,n.setAttribute("role","presentation"),t?re(n,{width:"1px",height:"1px"}):(n.setAttribute("aria-hidden","true"),re(n,{width:"0",height:"0",zIndex:"-9999",display:"none",visibility:"hidden",pointerEvents:"none"})),re(n,{position:"absolute",top:"0",left:"0",padding:"0",margin:"0",border:"none",outline:"hidden",clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap"}),n}var ie,ae={copy:function(e){var t=function(e){if(le(e)){var t=e.textContent;return null!==t?t:""}if(ce(e))return e.toString();if(function(e){return function(e){return null!==e&&"object"==typeof e}(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(t){return""+e}else if("string"!=typeof e)return""+e;return e}(e),n=function(e){var t=null;le(e)&&(t=e.outerHTML);if(ce(e)&&e.rangeCount>0){for(var n=globalThis.document.createElement("div"),r=0;r<e.rangeCount;r++)n.appendChild(e.getRangeAt(r).cloneContents());t=n.innerHTML}if(null===t)return;return t}(e);if(se()&&(void 0!==globalThis.navigator.clipboard.write||void 0!==globalThis.navigator.clipboard.writeText))return function(e,t){try{if(void 0!==globalThis.ClipboardItem&&void 0!==globalThis.navigator.clipboard.write){var n={};return void 0!==t&&(n["text/html"]=new Blob([t],{type:"text/html"})),n["text/plain"]=new Blob([e],{type:"text/plain"}),globalThis.navigator.clipboard.write([new ClipboardItem(n)]).then((function(){return!0})).catch((function(){return!1}))}if(void 0!==globalThis.navigator.clipboard.writeText)return globalThis.navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(t,n).then((function(e){return!!e||ue(t,n)})).catch((function(){return ue(t,n)}));return Promise.resolve(ue(t,n))},paste:function(){if(se()&&(void 0!==globalThis.navigator.clipboard.read||void 0!==globalThis.navigator.clipboard.readText))return function(){try{if(void 0!==globalThis.ClipboardItem&&void 0!==globalThis.navigator.clipboard.read)return globalThis.navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var t=0;t<e.length;t++)for(var n=(o=e[t]).types,r=0;r<n.length;r++)if("text/html"===n[r])return o.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(t=0;t<e.length;t++){var o;for(n=(o=e[t]).types,r=0;r<n.length;r++)if("text/plain"===n[r])return o.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}))}return Promise.resolve(null)})).catch((function(){return null}));if(void 0!==globalThis.navigator.clipboard.readText)return globalThis.navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:de()})).catch((function(){return de()}));return Promise.resolve(de())},Constants:{},Errors:{}};function le(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&(1===e.nodeType&&("string"==typeof e.nodeName&&"function"==typeof e.getAttribute))}function ce(e){return"[object Selection]"===Object.prototype.toString.call(e)}function se(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,t=location.hostname;return"https:"===e||"localhost"===t||"127.0.0.1"===t||"[::1]"===t}()&&void 0!==globalThis.navigator.clipboard}function ue(e,t){return function(e,t){if(void 0===globalThis.getSelection||void 0===globalThis.document.createRange)return!1;var n=oe("div");n.contentEditable="true",void 0!==t?n.innerHTML=t:n.textContent=e,n.style.whiteSpace="pre",n.style.userSelect="text",n.style.setProperty("-webkit-user-select","text"),n.style.setProperty("-moz-user-select","text"),n.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(n);var r=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(n){try{null!==n.clipboardData&&"function"==typeof n.clipboardData.setData&&(n.preventDefault(),void 0!==t&&n.clipboardData.setData("text/html",t),n.clipboardData.setData("text/plain",e))}catch(e){}};O.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===r)return pe(n,r,i),!1;r.removeAllRanges(),o.selectNodeContents(n),r.addRange(o);var a=globalThis.document.execCommand("copy");return pe(n,r,i),a}catch(e){return pe(n,r,i),!1}}(e,t)||function(e,t){var n=globalThis.clipboardData;if(void 0!==n&&"function"==typeof n.setData)try{return void 0!==t&&n.setData("HTML",t),n.setData("Text",e)}catch(e){return!1}return!1}(e,t)}function de(){var e=function(){var e=oe("div");e.contentEditable="true",globalThis.document.body.appendChild(e),e.focus();var t=null,n=function(e){try{if(null!==e.clipboardData&&"function"==typeof e.clipboardData.getData){e.preventDefault();var n=e.clipboardData.getData("text/html"),r=e.clipboardData.getData("text/plain");""!==n&&(t=n),""!==r&&(t=r)}}catch(e){}};O.add(globalThis.document,{type:"paste",callback:n,options:{once:!0,capture:!0}});try{if(!globalThis.document.execCommand("paste")&&null===t){var r=e.innerHTML;if(""!==r)t=r;else{var o=e.textContent;null!==o&&""!==o&&(t=o)}}return fe(e,n),t}catch(t){return fe(e,n),null}}();if(null!==e)return e;var t=function(){var e=globalThis.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{var t=e.getData("Text");return""!==t?t:null}catch(e){return null}return null}();return null!==t?t:""}function pe(e,t,n){null!==t&&t.removeAllRanges(),globalThis.document.body.removeChild(e),O.remove(globalThis.document,{type:"copy",callback:n})}function fe(e,t){globalThis.document.body.removeChild(e),O.remove(globalThis.document,{type:"paste",callback:t})}!function(e){e.Portrait="portrait",e.Landscape="landscape",e.Unknown="unknown"}(ie||(ie={}));var ge,ve={"safe-area-inset":{top:"safe-area-inset-top",right:"safe-area-inset-right",bottom:"safe-area-inset-bottom",left:"safe-area-inset-left"},"safe-area-max-inset":{top:"safe-area-max-inset-top",right:"safe-area-max-inset-right",bottom:"safe-area-max-inset-bottom",left:"safe-area-max-inset-left"},"titlebar-area":{x:"titlebar-area-x",y:"titlebar-area-y",width:"titlebar-area-width",height:"titlebar-area-height"},"keyboard-inset":{top:"keyboard-inset-top",right:"keyboard-inset-right",bottom:"keyboard-inset-bottom",left:"keyboard-inset-left",width:"keyboard-inset-width",height:"keyboard-inset-height"},"viewport-segment":{width:"viewport-segment-width",height:"viewport-segment-height",top:"viewport-segment-top",right:"viewport-segment-right",bottom:"viewport-segment-bottom",left:"viewport-segment-left"}},he={innerWidth:-1,innerHeight:-1,outerWidth:-1,outerHeight:-1,scale:1,orientation:ie.Unknown};function be(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function me(){}function ye(e){if("keyboard-inset"===e&&void 0!==globalThis.navigator.virtualKeyboard)return function(){var e=Z((function(){O.add(globalThis.navigator.virtualKeyboard,{type:"geometrychange",callback:t,options:{passive:!0}})}),(function(){O.remove(globalThis.navigator.virtualKeyboard,{type:"geometrychange",callback:t,options:{passive:!0}})}));function t(){e.emit(n())}function n(){var e=globalThis.navigator.virtualKeyboard.boundingRect,t=e.x,n=e.y,r=e.width,o=e.height;return{top:n,right:0===r?0:Math.max(0,globalThis.innerWidth-(t+r)),bottom:0===o?0:Math.max(0,globalThis.innerHeight-(n+o)),left:t,width:r,height:o}}return{get:n,onChange:e.subscribe}}();var t=ve[e],n=be(t),r=function(){if(void 0!==globalThis.CSS&&"function"==typeof globalThis.CSS.supports){if(globalThis.CSS.supports("x: env(x)"))return"env";if(globalThis.CSS.supports("x: constant(x)"))return"constant"}return}(),o=[],i=Z((function(){if(void 0===r)return;null===c&&v()}),(function(){h()})),a={},l=void 0,c=null,s=!1,u=null;try{var d=Object.defineProperty({},"passive",{get:function(){l={passive:!0}}});O.add(globalThis,{type:"test",callback:me,options:d})}catch(e){}function p(){var e;s||(s=!0,e=function(){s=!1;var e=m();null!==u&&function(e,t){for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return!1}return!0}(u,e)||(u=e,i.emit(e))},void 0===globalThis.queueMicrotask?"function"!=typeof globalThis.Promise?globalThis.setTimeout(e,0):Promise.resolve().then(e):globalThis.queueMicrotask(e))}function f(e){if(void 0!==e)o.push(e);else for(var t=0;t<o.length;t++)o[t]()}function g(e,n){var o=t[n],i=globalThis.document.createElement("div"),c=globalThis.document.createElement("div"),s=globalThis.document.createElement("div"),u=globalThis.document.createElement("div"),d={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"("+o+")"};re(i,d),re(c,d),re(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),re(u,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),c.appendChild(u),e.appendChild(i),e.appendChild(c),f((function(){i.scrollTop=c.scrollTop=1e4;var e=i.scrollTop,t=c.scrollTop;function n(){var n;n=this===i?e:t,this.scrollTop!==n&&(i.scrollTop=c.scrollTop=1e4,e=i.scrollTop,t=c.scrollTop,p())}O.add(i,{type:"scroll",callback:n,options:l}),O.add(c,{type:"scroll",callback:n,options:l})}));var g=globalThis.getComputedStyle(i);Object.defineProperty(a,n,{configurable:!0,get:function(){return globalThis.parseFloat(g.paddingBottom)}})}function v(){if(void 0!==r){a={},(c=globalThis.document.createElement("div")).setAttribute("data-"+e+"-observer",""),re(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"});for(t=0;t<n.length;t++)g(c,n[t]);globalThis.document.body.appendChild(c),u=m(),f()}else for(var t=0;t<n.length;t++)a[n[t]]=0}function h(){null!==c&&(null!==c.parentNode&&c.parentNode.removeChild(c),c=null),o.length=0,a={},u=null}function b(e){return a[e]}function m(){for(var e={},t=0;t<n.length;t++){var r=n[t];e[r]=b(r)}return e}return{get:function(){if(null!==c)return m();v();var e=m();return h(),e},onChange:function(e,t){return void 0===t&&(t={}),void 0===r?me:i.subscribe(e,t)}}}ge=void 0!==globalThis.matchMedia?globalThis.matchMedia("(orientation: portrait)"):r;var we=ye("safe-area-inset"),Te=ye("safe-area-max-inset"),ke=ye("keyboard-inset"),Se=ye("titlebar-area"),Ee=ye("viewport-segment"),Ie=Z((function(){xe=Ce(),O.add(globalThis,{type:"resize",callback:Oe}),"function"==typeof globalThis.screen.orientation.addEventListener?O.add(globalThis.screen.orientation,{type:"change",callback:Oe}):void 0!==globalThis.orientation?O.add(globalThis,{type:"orientationChange",callback:Oe}):"not all"!==ge.media&&O.add(ge,{type:"change",callback:Oe})}),(function(){xe=null,O.remove(globalThis,{type:"resize",callback:Oe}),"function"==typeof globalThis.screen.orientation.removeEventListener?O.remove(globalThis.screen.orientation,{type:"change",callback:Oe}):void 0!==globalThis.orientation?O.remove(globalThis,{type:"orientationChange",callback:Oe}):"not all"!==ge.media&&O.remove(ge,{type:"change",callback:Oe})})),xe=null,Pe={get value(){return Ce()},environment:{safeAreaInset:{get value(){return we.get()},onChange:we.onChange},safeAreaMaxInset:{get value(){return Te.get()},onChange:Te.onChange},keyboardInset:{get value(){return ke.get()},onChange:ke.onChange},titlebarArea:{get value(){return Se.get()},onChange:Se.onChange},viewportSegment:{get value(){return Ee.get()},onChange:Ee.onChange}},onChange:Ie.subscribe,Constants:{Orientation:ie},Errors:{}};function Ae(){if(void 0!==globalThis.screen)switch(globalThis.screen.orientation.type){case"portrait-primary":case"portrait-secondary":return ie.Portrait;case"landscape-primary":case"landscape-secondary":return ie.Landscape}if(void 0!==globalThis.orientation)switch(globalThis.orientation){case 0:case 180:return ie.Portrait;case 90:case 270:return ie.Landscape}return"not all"===ge.media?ie.Unknown:ge.matches?ie.Portrait:ie.Landscape}function Ce(){return void 0!==globalThis.innerWidth?{innerWidth:globalThis.innerWidth,innerHeight:globalThis.innerHeight,outerWidth:globalThis.outerWidth,outerHeight:globalThis.outerHeight,scale:void 0!==globalThis.devicePixelRatio?globalThis.devicePixelRatio:-1,orientation:Ae()}:he}function Oe(){var e=Ce();null!==xe&&e.innerWidth===xe.innerWidth&&e.innerHeight===xe.innerHeight&&e.outerWidth===xe.outerWidth&&e.outerHeight===xe.outerHeight&&e.scale===xe.scale&&e.orientation===xe.orientation||Ie.emit(xe=e)}function Me(e,t){function n(r){if(!(this instanceof n))return new n(r);var o=new t(void 0===r?"":r);if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(o,n.prototype):o.__proto__=n.prototype,o.name=e,void 0!==r&&(o.message=r),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(o,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(o,n);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(o,n);else try{var i=new t;i.stack&&(o.stack=i.stack)}catch(e){}return o}void 0===t&&(t=Error),n.prototype=Object.create(t.prototype,{constructor:{value:n,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(n.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{n.prototype.name=e}catch(e){}}try{Object.defineProperty(n,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return n}var De=Me("NotSupportedError"),Ne=Symbol("fsBridged"),Le={standard:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",events:{change:"fullscreenchange",error:"fullscreenerror"}},webkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",events:{change:"webkitfullscreenchange",error:"webkitfullscreenerror"}},moz:{enabled:"mozFullScreenEnabled",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",events:{change:"mozfullscreenchange",error:"mozfullscreenerror"}},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",events:{change:"MSFullscreenChange",error:"MSFullscreenError"}}},Ue=function(){var e=globalThis.document.documentElement;if(void 0!==globalThis.document.fullscreenEnabled||void 0!==globalThis.document.exitFullscreen)return Le.standard;for(var t=["webkit","moz","ms"],n=0;n<t.length;n++){var r=t[n],o=Le[r];if(void 0!==globalThis.document[o.enabled]||void 0!==globalThis.document[o.element]||void 0!==globalThis.document[o.exit])return"webkit"===r&&void 0!==e.webkitRequestFullScreen&&(o.request="webkitRequestFullScreen"),o}return null}();var Fe,We,Re=function(){var e=null,t=!1,n=null,r=[],i="exit",a=Z((function(){for(var e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],t=0;t<e.length;t++)O.add(globalThis.document,{type:e[t],callback:a.emit,options:!1})}),(function(){for(var e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],t=0;t<e.length;t++)O.remove(globalThis.document,{type:e[t],callback:a.emit,options:!1})})),l=Z((function(){for(var e=["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],t=0;t<e.length;t++)O.add(globalThis.document,{type:e[t],callback:l.emit,options:!1})}),(function(){for(var e=["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],t=0;t<e.length;t++)O.remove(globalThis.document,{type:e[t],callback:l.emit,options:!1})}));function c(){void 0!==globalThis.document&&globalThis.document.querySelectorAll("video").forEach((function(e){!0===e[Ne]||void 0===e.webkitEnterFullscreen&&void 0===e.onwebkitbeginfullscreen||(O.add(e,{type:"webkitbeginfullscreen",callback:a.emit,options:!1}),O.add(e,{type:"webkitendfullscreen",callback:a.emit,options:!1}),e[Ne]=!0)}))}function s(){if(null===Ue)return null!==e&&!0===e.webkitDisplayingFullscreen?e:null;var t=globalThis.document[Ue.element];return void 0!==t?t:null}function u(){var e,t=r.shift();void 0!==t?(e="request"===t.operation?f(t.target,t.options):g(),n=e.then((function(){t.resolve(),u()})).catch((function(e){t.reject(e),u()}))):n=null}function d(e,t){if(i="request",null===n){var o=f(e,t);return n=o.then(u).catch(u),o}return new Promise((function(n,o){r.push({operation:"request",target:e,options:t,resolve:n,reject:o})}))}function p(){if(i="exit",null===n){var e=g();return n=e.then(u).catch(u),e}return new Promise((function(e,t){r.push({operation:"exit",target:void 0,options:void 0,resolve:e,reject:t})}))}function f(t,n){return new Promise((function(r,i){if(void 0===t&&(t=function(){if(K.os.name===o.iOS){var e=globalThis.document.querySelector("video");if(null===e)return;return e}return globalThis.document.documentElement}()),void 0===t)return i(new De("Failed to enter fullscreen mode."));var a=t.tagName.toLowerCase();function l(){if(K.os.name===o.iOS&&void 0!==t&&"VIDEO"===t.tagName.toUpperCase()){var n=t;if(!0===n.webkitSupportsFullscreen&&"function"==typeof n.webkitEnterFullscreen)return e=n,c(),n.webkitEnterFullscreen(),r()}i(new De('The "'+a+'" element does not support fullscreen requests.'))}if(null!==Ue){var s=t[Ue.request];if("function"==typeof s){var u=s.call(t,n);return void 0!==u&&"function"==typeof u.then?void u.then(r).catch((function(){if(K.os.name!==o.iOS)return i(new De('The "'+a+'" element does not support fullscreen requests.'));l()})):r()}}l()}))}function g(){return new Promise((function(t,n){if(null===s()&&null===e)return t();function r(){if(K.os.name===o.iOS){var r=void 0;r=null!==e?[e]:globalThis.document.querySelectorAll("video");for(var i=0;i<r.length;i++){var a=r[i];if("function"==typeof a.webkitExitFullscreen&&!0===a.webkitDisplayingFullscreen)return a.webkitExitFullscreen(),e=null,t()}}n(new De("Failed to exit fullscreen mode."))}if(null!==Ue){var i=globalThis.document[Ue.exit];if("function"==typeof i){var a=i.call(globalThis.document);return void 0!==a&&"function"==typeof a.then?void a.then(t).catch((function(){if(K.os.name!==o.iOS)return n(new De("Failed to exit fullscreen mode."));r()})):t()}}r()}))}return t||(t=!0,K.os.name===o.iOS&&(c(),void 0!==globalThis.MutationObserver&&new MutationObserver((function(){c()})).observe(globalThis.document.documentElement,{childList:!0,subtree:!0}))),{get supported(){return null===Ue?K.os.name===o.iOS&&!0===globalThis.HTMLVideoElement.prototype.webkitSupportsFullscreen:!0===globalThis.document[Ue.enabled]},get element(){return s()},get isFullscreen(){return null!==s()},request:d,exit:p,toggle:function(e,t){return"request"===i?p():d(e,t)},onChange:a.subscribe,onError:l.subscribe,Constants:{},Errors:{NotSupportedError:De}}}();!function(e){e.Notification="notifications",e.Geolocation="geolocation",e.Camera="camera",e.Microphone="microphone",e.MIDI="midi"}(Fe||(Fe={})),function(e){e.Grant="grant",e.Denied="denied",e.Prompt="prompt",e.Unsupported="unsupported"}(We||(We={}));var Ge=function(){if(void 0!==globalThis.navigator.mediaDevices&&void 0!==globalThis.navigator.mediaDevices.getUserMedia)return globalThis.navigator.mediaDevices.getUserMedia.bind(globalThis.navigator.mediaDevices);var e=void 0!==globalThis.navigator.getUserMedia?globalThis.navigator.getUserMedia:void 0!==globalThis.navigator.webkitGetUserMedia?globalThis.navigator.webkitGetUserMedia:void 0!==globalThis.navigator.mozGetUserMedia?globalThis.navigator.mozGetUserMedia:void 0!==globalThis.navigator.msGetUserMedia?globalThis.navigator.msGetUserMedia:void 0;return void 0!==e?function(t){return void 0===t&&(t={}),new Promise((function(n,r){e.call(globalThis.navigator,t,n,r)}))}:void 0}(),qe={request:function(e){var t=this;return new Promise((function(n){function r(){t.check(e).then(n)}t.check(e).then((function(t){if(t===We.Grant)return n(t);switch(e){case Fe.Notification:if(void 0===globalThis.Notification)return n(We.Unsupported);globalThis.Notification.requestPermission().then((function(e){switch(e){case"default":return n(We.Prompt);case"granted":return n(We.Grant);case"denied":return n(We.Denied);default:r()}}));break;case Fe.Geolocation:if(void 0===globalThis.navigator.geolocation)return n(We.Unsupported);globalThis.navigator.geolocation.getCurrentPosition(r,r);break;case Fe.Microphone:case Fe.Camera:if(void 0===Ge)return n(We.Unsupported);Ge({video:e===Fe.Camera,audio:e===Fe.Microphone}).then((function(e){for(var t=e.getTracks(),n=0;n<t.length;n++)t[n].stop();r()})).catch(r);break;case Fe.MIDI:if(void 0===globalThis.navigator.requestMIDIAccess)return n(We.Unsupported);globalThis.navigator.requestMIDIAccess().then(r).catch(r);break;default:return n(We.Unsupported)}}))}))},check:function(e){return new Promise((function(t){if(void 0===globalThis.navigator.permissions)return t(We.Unsupported);globalThis.navigator.permissions.query({name:e}).then((function(e){switch(e.state){case"prompt":return t(We.Prompt);case"granted":return t(We.Grant);case"denied":return t(We.Denied);default:return t(We.Unsupported)}}))}))},Constants:{PermissionType:Fe,PermissionState:We},Errors:{}};var je=Me("PermissionNotGrantedError");var He,_e,Be,Ve,ze,Ye,Ke,Ze,Xe,Je,Qe,$e=Z((function(){if(!nt())return;qe.request(Fe.Geolocation).then((function(e){e===We.Grant&&(et=globalThis.navigator.geolocation.watchPosition((function(e){var t;t=e.coords,$e.emit(t)})))}))}),(function(){if(!nt()||null===et)return;globalThis.navigator.geolocation.clearWatch(et)})),et=null,tt={get value(){return new Promise((function(e,t){function n(n){(function(e){return new Promise((function(t,n){var r;(r="http://ip-api.com/json?fields=lat,lon",new Promise((function(e){var t={},n=void 0;if(void 0===globalThis.fetch){if("undefined"!=typeof XMLHttpRequest){var o=new XMLHttpRequest;o.open("GET",r,!0);for(var i=be(t),a=0;a<i.length;a++){var l=i[a];o.setRequestHeader(l,t[l])}return o.onreadystatechange=function(){if(4===o.readyState)if(o.status>=200&&o.status<300)try{e(JSON.parse(o.responseText))}catch(t){e(void 0)}else e(void 0)},o.onerror=function(){e(void 0)},void o.send(n)}e(void 0)}else fetch(r,{method:"GET",headers:t,body:n}).then((function(t){return t.ok?t.json().then((function(t){e(t)})).catch((function(){e(void 0)})):(e(void 0),Promise.resolve())})).catch((function(){e(void 0)}))}))).then((function(r){if(void 0!==r){var o={latitude:r.lat,longitude:r.lon,accuracy:-1,altitude:null,altitudeAccuracy:null,heading:null,speed:null};t(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object(e[0]),r=1;r<e.length;r++){var o=e[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(n[i]=o[i])}return n}(o,{toJSON:function(){return o}}))}else n(e)})).catch((function(){n(e)}))}))})(n).then(e).catch(t)}if(!nt())return n(new De("'navigator.geolocation' does not supported."));qe.request(Fe.Geolocation).then((function(t){if(t!==We.Grant)return n(new je("'geolocation' permission is not granted."));globalThis.navigator.geolocation.getCurrentPosition((function(t){e(t.coords)}),(function(e){return n(function(e){switch(e.code){case GeolocationPositionError.PERMISSION_DENIED:return new je("'geolocation' permission is not granted.");case GeolocationPositionError.POSITION_UNAVAILABLE:return new De("The acquisition of the geolocation failed because at least one internal source of position returned an internal error.");case GeolocationPositionError.TIMEOUT:return new De("The time allowed to acquire the geolocation was reached before the information was obtained.");default:return new De("Unknown error.")}}(e))}))}))}))},get supported(){return nt()},onChange:$e.subscribe,Constants:{},Errors:{NotSupportedError:De,PermissionNotGrantedError:je}};function nt(){return void 0!==globalThis.navigator.geolocation}!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(Ye||(Ye={})),function(e){e.General="general",e.Network="network",e.Display="display",e.Appearance="appearance",e.Accessibility="accessibility",e.Battery="battery",e.Datetime="datetime",e.Language="language",e.Accounts="accounts",e.Storage="storage"}(Ke||(Ke={})),function(e){e.Image="image",e.Video="video"}(Ze||(Ze={})),function(e){e.User="user",e.Environment="environment"}(Xe||(Xe={})),function(e){e.Desktop="desktop",e.Documents="documents",e.Downloads="downloads",e.Music="music",e.Pictures="pictures",e.Videos="videos"}(Je||(Je={})),function(e){e.Read="read",e.ReadWrite="readwrite"}(Qe||(Qe={}));var rt=((He={})[o.Android]=((_e={})[Ke.General]="intent:#Intent;action=android.settings.SETTINGS;end",_e[Ke.Network]="intent:#Intent;action=android.settings.WIFI_SETTINGS;end",_e[Ke.Display]="intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end",_e[Ke.Appearance]="intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end",_e[Ke.Accessibility]="intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end",_e[Ke.Battery]="intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end",_e[Ke.Datetime]="intent:#Intent;action=android.settings.DATE_SETTINGS;end",_e[Ke.Language]="intent:#Intent;action=android.settings.LOCALE_SETTINGS;end",_e[Ke.Accounts]="intent:#Intent;action=android.settings.SYNC_SETTINGS;end",_e[Ke.Storage]="intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end",_e),He[o.Windows]=((Be={})[Ke.General]="ms-settings:system",Be[Ke.Network]="ms-settings:network",Be[Ke.Display]="ms-settings:display",Be[Ke.Appearance]="ms-settings:colors",Be[Ke.Accessibility]="ms-settings:easeofaccess",Be[Ke.Battery]="ms-settings:batterysaver",Be[Ke.Datetime]="ms-settings:dateandtime",Be[Ke.Language]="ms-settings:regionlanguage",Be[Ke.Accounts]="ms-settings:emailandaccounts",Be[Ke.Storage]="ms-settings:storagesense",Be),He[o.MacOS]=((Ve={})[Ke.General]="x-apple.systempreferences:",Ve[Ke.Network]="x-apple.systempreferences:com.apple.preference.network",Ve[Ke.Display]="x-apple.systempreferences:com.apple.preference.displays",Ve[Ke.Appearance]="x-apple.systempreferences:com.apple.preference.general",Ve[Ke.Accessibility]="x-apple.systempreferences:com.apple.preference.universalaccess",Ve[Ke.Battery]="x-apple.systempreferences:com.apple.preference.energysaver",Ve[Ke.Datetime]="x-apple.systempreferences:com.apple.preference.datetime",Ve[Ke.Language]="x-apple.systempreferences:com.apple.Localization",Ve[Ke.Accounts]="x-apple.systempreferences:com.apple.preferences.internetaccounts",Ve[Ke.Storage]="x-apple.systempreferences:",Ve),He["MacOS13+"]=((ze={})[Ke.General]="x-apple.systempreferences:com.apple.General-Settings.extension",ze[Ke.Network]="x-apple.systempreferences:com.apple.Network-Settings.extension",ze[Ke.Display]="x-apple.systempreferences:com.apple.Displays-Settings.extension",ze[Ke.Appearance]="x-apple.systempreferences:com.apple.Appearance-Settings.extension",ze[Ke.Accessibility]="x-apple.systempreferences:com.apple.Accessibility-Settings.extension",ze[Ke.Battery]="x-apple.systempreferences:com.apple.Battery-Settings.extension",ze[Ke.Datetime]="x-apple.systempreferences:com.apple.Date-Time-Settings.extension",ze[Ke.Language]="x-apple.systempreferences:com.apple.Localization-Settings.extension",ze[Ke.Accounts]="x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension",ze[Ke.Storage]="x-apple.systempreferences:com.apple.settings.Storage",ze),He);function ot(){try{if(null!==globalThis.top&&globalThis.top!==globalThis.window)return globalThis.top.location.href,globalThis.top}catch(e){}return window}function it(e,t){var n;void 0===t&&(t=window);try{n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:t})}catch(e){(n=globalThis.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,t,0,0,0,0,0,!1,!1,!1,!1,0,null)}e.dispatchEvent(n)}function at(e){for(var t="",n=(new Date).getTime(),r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt((n=(9301*n+49297)%233280)%62);return t}function lt(e,t,n){return t|=0,"string"!=typeof e&&(e=String(e)),e.length>=t?e:((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e)}var ct=Me("URLOpenError"),st=Me("UserCancelledError"),ut={app:function(e){var t,n=K.os.name,r=[],i=[],a={};if(n===o.Android){var l=function(e){return void 0!==e[o.Android]?e[o.Android]:e.android}(e);if(void 0===l)return Promise.reject(Dt(i));if(t=l.timeout,a.scheme=Ot(l.scheme),a.intent=Ot(l.intent),a.packageName=l.packageName,a.fallback=Ot(l.fallback),a.appStore=gt(a.packageName,o.Android),a.webStore=vt(a.packageName,o.Android),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore,void 0!==a.intent&&(void 0===a.scheme||void 0===a.packageName||void 0===a.fallback)){var c=function(e){for(var t={},n=e.split("#Intent;"),r=n[0].substring(9),o=n[1],i=o.substring(0,o.length-4).split(";"),a={},l=0;l<i.length;l++){var c=i[l],s=c.indexOf("=");-1!==s&&(a[c.substring(0,s)]=c.substring(s+1))}void 0!==a.scheme&&(t.scheme=a.scheme+"://"+r);void 0!==a.package&&(t.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(t.fallback=a["S.browser_fallback_url"]);return t}(a.intent);void 0!==c.scheme&&void 0===a.scheme&&(a.scheme=c.scheme),void 0!==c.packageName&&void 0===a.packageName&&(a.packageName=c.packageName),void 0!==c.fallback&&void 0===a.fallback&&(a.fallback=c.fallback)}void 0!==a.scheme&&void 0===a.intent&&(a.intent=function(e,t,n){var r=e.split("://"),i=r[0],a=r[1],l="intent://";void 0!==a&&(l+=a);l+="#Intent;scheme="+i+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==t&&(l+="package="+t+";");void 0!==n&&"string"==typeof n?l+="S.browser_fallback_url="+globalThis.encodeURIComponent(n)+";":void 0!==t&&(l+="S.browser_fallback_url="+globalThis.encodeURIComponent(gt(t,o.Android))+";");return l+"end"}(a.scheme,a.packageName,a.fallback))}else if(n===o.iOS){l=function(e){return void 0!==e[o.iOS]?e[o.iOS]:e.ios}(e);if(void 0===l)return Promise.reject(Dt(i));t=l.timeout,a.scheme=Ot(l.scheme),a.bundleId=l.bundleId,a.trackId=l.trackId,a.universal=Ot(l.universal),a.fallback=Ot(l.fallback),a.appStore=gt(a.trackId,o.iOS),a.webStore=vt(a.trackId,o.iOS),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore,void 0!==a.bundleId&&void 0===a.trackId&&(a.trackId=ft(a.bundleId))}else if(n===o.Windows){l=function(e){return void 0!==e[o.Windows]?e[o.Windows]:e.windows}(e);if(void 0===l)return Promise.reject(Dt(i));t=l.timeout,a.scheme=Ot(l.scheme),a.productId=l.productId,a.fallback=Ot(l.fallback),a.appStore=gt(a.productId,o.Windows),a.webStore=vt(a.productId,o.Windows),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore}else if(n===o.MacOS){l=function(e){return void 0!==e[o.MacOS]?e[o.MacOS]:e.macos}(e);if(void 0===l)return Promise.reject(Dt(i));t=l.timeout,a.scheme=Ot(l.scheme),a.bundleId=l.bundleId,a.trackId=l.trackId,a.fallback=Ot(l.fallback),a.appStore=gt(a.trackId,o.MacOS),a.webStore=vt(a.trackId,o.MacOS),a.allowAppStore=l.allowAppStore,a.allowWebStore=l.allowWebStore,void 0!==a.bundleId&&void 0===a.trackId&&(a.trackId=ft(a.bundleId))}St(r,a.intent,Ye.Intent,bt()),St(r,a.universal,Ye.Universal,mt()),St(r,a.scheme,Ye.Scheme,!0),St(r,a.fallback,Ye.Fallback,!0),St(r,a.appStore,Ye.Store,a.allowAppStore),St(r,a.webStore,Ye.Store,a.allowWebStore),void 0===t&&(t=ht(n));return new Promise((function(e,n){return function o(a){if(void 0===a&&(a=0),a>=r.length)return n(Dt(i));var l=r[a],c=l[0],s=l[1];if("string"==typeof s)return i[a]=s,Rt(s,a,t).then((function(){e(c)})).catch((function(){o(a+1)}));i[a]="[function fallback]",s(),e(c)}()}))},telephone:function(e){return Gt(e,"tel")},message:function(e){return Gt(e,"sms")},mail:function(e){return Gt(e,"mailto")},file:function(e){if(void 0!==globalThis.showOpenFilePicker){var t={};if(void 0!==e&&(void 0!==e.multiple&&(t.multiple=e.multiple),void 0!==e.id&&(t.id=e.id),void 0!==e.startIn&&(t.startIn=e.startIn),void 0!==e.accept)){var n={};t.excludeAcceptAllOption=!0,t.types=[{description:"",accept:n}];for(var r=0;r<e.accept.length;r++){var o=e.accept[r];/^\.\w+/i.test(o)?(void 0===n["application/octet-stream"]&&(n["application/octet-stream"]=[]),n["application/octet-stream"].push(o)):/^\w+\/\w+$/i.test(o)&&(n[o]=[])}}return Ft(globalThis.showOpenFilePicker(t))}var i=oe("input");i.type="file",void 0!==e&&(void 0!==e.multiple&&(i.multiple=e.multiple),void 0!==e.accept&&(i.accept=Et(e.accept)));return Ft(i)},directory:function(e){if(!wt())return Promise.reject(new De("'window.showDirectoryPicker' and 'HTMLInputElement.prototype.webkitdirectory' does not supported."));if(void 0!==globalThis.showDirectoryPicker){var t={};return void 0!==e&&(void 0!==e.id&&(t.id=e.id),void 0!==e.startIn&&(t.startIn=e.startIn),void 0!==e.mode&&(t.mode=e.mode)),Wt(globalThis.showDirectoryPicker(t))}var n=oe("input");return n.type="file",n.webkitdirectory=!0,Wt(n)},setting:function(e){var t=K.os.name,n=K.os.version;if(!yt())return Promise.reject(Dt([]));var r=[];switch(t){case o.Android:e!==Ke.General&&(e===Ke.Accessibility&&s(n,"1.6")>=0?r.push(rt.Android[Ke.Accessibility]):e===Ke.Battery&&s(n,"5.1")>=0?r.push(rt.Android[Ke.Battery]):e===Ke.Accounts&&s(n,"1.5")>=0?r.push(rt.Android[Ke.Accounts]):e===Ke.Storage&&s(n,"3.0")>=0?r.push(rt.Android[Ke.Storage]):r.push(rt.Android[e])),r.push(rt.Android[Ke.General]);break;case o.Windows:r.push(rt.Windows[e]);break;case o.MacOS:if(e===Ke.Appearance&&s(n,"10.14")<0){r.push(rt.MacOS[Ke.General]);break}s(n,"13.0")<0?r.push(rt.MacOS[e]):r.push(rt["MacOS13+"][e])}return new Promise((function(e,t){return function n(o){return void 0===o&&(o=0),o>=r.length?t(Dt([])):Rt(r[o],o,750).then((function(){e()})).catch((function(){n(o+1)}))}()}))},camera:function(e){var t=oe("input");t.type="file",t.accept="image/*;capture=camera",t.capture="environment",void 0!==e&&(void 0!==e.type&&(e.type===Ze.Image?t.accept="image/*;capture=camera":t.accept="video/*;capture=camcorder"),void 0!==e.capture&&(e.capture===Xe.Environment?t.capture="environment":t.capture="user"));return Ft(t)},contact:function(e){return new Promise((function(t,n){if(!Tt())return n(new De("'navigator.contacts' does not supported."));var r=!1;void 0!==e&&void 0!==e.multiple&&(r=e.multiple),globalThis.navigator.contacts.getProperties().then((function(e){globalThis.navigator.contacts.select(e,{multiple:r}).then((function(e){t(e)}))}))}))},share:function(e){return new Promise((function(t,n){return kt()?globalThis.navigator.canShare(e)?void globalThis.navigator.share(e).then((function(){t()})).catch((function(e){return"AbortError"===e.name?n(new st("User cancelled the operation.")):n(new De(e.message))})):n(new De("The provided data cannot be shared on this device.")):n(new De("'navigator.share' does not supported."))}))},calendar:function(e){var t="function"==typeof Date.now?Date.now():(new Date).getTime(),n="BEGIN:VCALENDAR\r\nVERSION:2.0\r\n";""!==globalThis.document.title?n+=Ct("PRODID:-//"+Pt(globalThis.document.title)+"//EN")+"\r\n":n+=Ct("PRODID:-//"+Pt(globalThis.location.host)+"//EN")+"\r\n";n+="BEGIN:VEVENT\r\nUID:"+t+"-"+at(10)+"\r\nDTSTAMP:"+Mt(new Date)+"\r\n",!0===e.allDay?n+="DTSTART;VALUE=DATE:"+Mt(e.startDate,!0)+"\r\nDTEND;VALUE=DATE:"+Mt(e.endDate,!0)+"\r\n":n+="DTSTART:"+Mt(e.startDate)+"\r\nDTEND:"+Mt(e.endDate)+"\r\n";void 0!==e.title&&(n+=Ct("SUMMARY:"+Pt(e.title))+"\r\n");void 0!==e.description&&(n+=Ct("DESCRIPTION:"+Pt(e.description))+"\r\n");void 0!==e.location&&(n+=Ct("LOCATION:"+Pt(e.location))+"\r\n");if(void 0!==e.recur){var r="FREQ="+e.recur.frequency;void 0!==e.recur.interval&&e.recur.interval>1&&(r+=";INTERVAL="+String(e.recur.interval)),void 0!==e.recur.count&&(r+=";COUNT="+String(e.recur.count)),void 0!==e.recur.until&&(r+=";UNTIL="+Mt(e.recur.until)),void 0!==e.recur.byMonth&&e.recur.byMonth.length>0&&(r+=";BYMONTH="+Et(e.recur.byMonth)),void 0!==e.recur.byWeekNo&&e.recur.byWeekNo.length>0&&(r+=";BYWEEKNO="+Et(e.recur.byWeekNo)),void 0!==e.recur.byYearDay&&e.recur.byYearDay.length>0&&(r+=";BYYEARDAY="+Et(e.recur.byYearDay)),void 0!==e.recur.byMonthDay&&e.recur.byMonthDay.length>0&&(r+=";BYMONTHDAY="+Et(e.recur.byMonthDay)),void 0!==e.recur.byDay&&e.recur.byDay.length>0&&(r+=";BYDAY="+Et(e.recur.byDay)),void 0!==e.recur.byHour&&e.recur.byHour.length>0&&(r+=";BYHOUR="+Et(e.recur.byHour)),void 0!==e.recur.byMinute&&e.recur.byMinute.length>0&&(r+=";BYMINUTE="+Et(e.recur.byMinute)),void 0!==e.recur.bySecond&&e.recur.bySecond.length>0&&(r+=";BYSECOND="+Et(e.recur.bySecond)),void 0!==e.recur.bySetPos&&e.recur.bySetPos.length>0&&(r+=";BYSETPOS="+Et(e.recur.bySetPos)),void 0!==e.recur.weekStart&&"MO"!==e.recur.weekStart&&(r+=";WKST="+e.recur.weekStart),n+=Ct("RRULE:"+r)+"\r\n"}if(void 0!==e.alarm)for(var o=0;o<e.alarm.length;o++){var i=e.alarm[o];if(n+="BEGIN:VALARM\r\nACTION:DISPLAY\r\n",void 0!==i.datetime)n+="TRIGGER;VALUE=DATE-TIME:"+Mt(i.datetime)+"\r\n";else{var a="";if((void 0===i.before||i.before)&&(a+="-"),a+="P",void 0!==i.weeks&&i.weeks>0)a+=String(i.weeks)+"W";else{void 0!==i.days&&i.days>0&&(a+=String(i.days)+"D");var l=void 0!==i.hours&&i.hours>0,c=void 0!==i.minutes&&i.minutes>0,s=void 0!==i.seconds&&i.seconds>0;(l||c||s)&&(a+="T",l&&(a+=String(i.hours)+"H"),c&&(a+=String(i.minutes)+"M"),s&&(a+=String(i.seconds)+"S"))}n+="TRIGGER:"+a+"\r\n"}void 0!==i.description?n+=Ct("DESCRIPTION:"+Pt(i.description))+"\r\n":n+="DESCRIPTION:Reminder\r\n",void 0===i.datetime&&void 0!==i.repeat&&void 0!==i.repeatDuration&&(n+="REPEAT:"+String(i.repeat)+"\r\n",n+="DURATION:PT"+String(i.repeatDuration)+"M\r\n"),n+="END:VALARM\r\n"}n+="END:VEVENT\r\nEND:VCALENDAR";var u=oe("a");u.href="data:text/calendar;charset=utf-8,"+globalThis.encodeURIComponent(n),u.download="event-"+t+".ics",it(u)},supported:{get intent(){return bt()},get universal(){return mt()},get setting(){return yt()},get directory(){return wt()},get camera(){return function(){var e=K.os.name,t=K.os.version;return!K.isWebview&&(e===o.iOS&&0===s(t,"10.3.1")||e===o.Android&&s(t,"3.0")>=0)}()},get contact(){return Tt()},get share(){return kt()},get calendar(){return K.os.name===o.iOS&&s(K.os.version,"15.0")>=0&&K.browser.name===l.Safari&&!K.isWebview}},Constants:{AppOpenState:Ye,SettingType:Ke,CameraType:Ze,CaptureType:Xe},Errors:{URLOpenError:ct,NotSupportedError:De,UserCancelledError:st}},dt=void 0;function pt(){var e=ot(),t=e.document,n={},r={},i=void 0!==globalThis.cordova,a=K.os.name===o.iOS,l=a&&s(K.os.version,"8.0")>=0,c=a&&!l,u=O.useStd;return i?(n.focus="resume",n.blur="pause",r.focus=t,r.blur=t):l?(n.visibilitychange="visibilitychange",r.visibilitychange=t):c?(n.focus="pageshow",n.blur="pagehide",r.focus=e,r.blur=e):u?(n.focus="focus",n.blur="blur",n.visibilitychange="visibilitychange",r.focus=e,r.blur=e,r.visibilitychange=t):(n.focus="focus",n.blur="blur",n.visibilitychange="visibilitychange",r.focus=t,r.blur=t,r.visibilitychange=t),{type:n,target:r}}function ft(e){try{var t=new XMLHttpRequest;if(t.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),200===t.status)try{return function(e){if(void 0===e.results)return;var t=e.results;if(0===t.length)return;var n=t[0];return void 0===n?void 0:""+n.trackId}(JSON.parse(t.response))}catch(e){return}return}catch(e){return}}function gt(e,t){if(void 0!==e)switch(t){case o.Android:return"market://details?id="+e;case o.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case o.Windows:return"ms-windows-store://pdp/?ProductId="+e;case o.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new ct('Unsupported OS: "'+K.userAgent+'"')}}function vt(e,t){if(void 0!==e)switch(t){case o.Android:return"https://play.google.com/store/apps/details?id="+e;case o.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case o.Windows:return"https://apps.microsoft.com/detail/"+e;case o.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new ct('Unsupported OS: "'+K.userAgent+'"')}}function ht(e){switch(e){case o.iOS:return 2e3;case o.Android:return 1e3;default:return 750}}function bt(){if(K.os.name!==o.Android)return!1;var e=K.browser.version;return!(K.browser.name===l.SamsungInternet&&s(e,"17.0.1.69")>=0&&s(e,"17.0.7.34")<0)&&(!(K.browser.name===l.Firefox&&s(e,"41.0")<0)&&(!(K.browser.name===l.Firefox&&s(e,"59.0")>=0&&s(e,"68.11.0")<0)&&(!(K.browser.name===l.Firefox&&s(e,"80.0")>=0&&s(e,"82.0")<0)&&(!(K.browser.name===l.Firefox&&s(e,"96.0")>=0&&s(e,"107.0")<0)&&(!(K.browser.name===l.Opera&&s(e,"14.0")<0)&&!(/(?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/[\w.]+;/i.test(K.userAgent)||/instagram[\/ ][-\w.]+/i.test(K.userAgent)||/micromessenger\/([\w.]+)/i.test(K.userAgent)||/musical_ly(?:.+app_?version\/|_)[\w.]+/i.test(K.userAgent)||/ultralite app_version\/[\w.]+/i.test(K.userAgent)))))))}function mt(){return K.os.name===o.iOS&&s(K.os.version,"9.0")>=0}function yt(){var e=K.os.name,t=K.os.version;return e!==o.Unknown&&(!(e===o.Android&&!bt())&&(e!==o.iOS&&((e!==o.Windows||!("Vista"===t||"XP"===t||"2000"===t||"NT 4.0"===t||"NT 3.11"===t||"ME"===t||s(t,"10")<0))&&!(e===o.MacOS&&s(t,"10.10")<0))))}function wt(){return void 0!==globalThis.showDirectoryPicker||void 0!==oe("input").webkitdirectory}function Tt(){return void 0!==globalThis.navigator.contacts}function kt(){return void 0!==globalThis.navigator.share}function St(e,t,n,r){void 0===r&&(r=!1),"function"!=typeof t&&"string"!=typeof t||!r||e.push([n,t])}function Et(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=",");for(var r=e.length,o="",i=0;i<r;i++)0!==i&&(o+=n),o+=void 0!==t?t(e[i]):e[i];return o}function It(e){return globalThis.encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function xt(e){return It(e).replace(/%22/g,'"').replace(/%40/g,"@").replace(/%2C/gi,",")}function Pt(e){return e.replace(/\\/g,"\\\\").replace(/;/g,"\\;").replace(/,/g,"\\,").replace(/\r\n|\n|\r/g,"\\n")}function At(e){return void 0!==globalThis.TextEncoder?(new TextEncoder).encode(e).length:globalThis.unescape(globalThis.encodeURIComponent(e)).length}function Ct(e){if(At(e)<=75)return e;for(var t="",n="",r=0,o=0;o<e.length;o++){var i=e[o],a=At(e[o]);""!==n&&r+a>75?(t+=n+"\r\n ",n=i,r=a):(n+=i,r+=a)}return t+=n}function Ot(e){return e instanceof URL?e.toString():e}function Mt(e,t){return void 0===t&&(t=!1),t?e.getUTCFullYear()+lt(e.getUTCMonth()+1,2,"0")+lt(e.getUTCDate(),2,"0"):e.getUTCFullYear()+lt(e.getUTCMonth()+1,2,"0")+lt(e.getUTCDate(),2,"0")+"T"+lt(e.getUTCHours(),2,"0")+lt(e.getUTCMinutes(),2,"0")+lt(e.getUTCSeconds(),2,"0")+"Z"}function Dt(e){for(var t="",n=0;n<e.length;n++)t+="\n"+(n+1)+": "+e[n];return t.length>0&&(t="\n"+t+"\n"),new ct("Failed to open any of the provided URLs: "+t)}function Nt(){var e=ot().document;return"hidden"===e.visibilityState||("hidden"===e.webkitVisibilityState||("hidden"===e.mozVisibilityState||("hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus()))))}function Lt(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function Ut(e){try{e.focus({preventScroll:!0})}catch(t){try{e.focus()}catch(e){}}}function Ft(e){if("[object Promise]"===Object.prototype.toString.call(e)){var t=e;return new Promise((function(e,n){t.then((function(t){for(var r=[],o=0;o<t.length;o++)r[o]=t[o].getFile();Promise.all(r).then(e).catch(n)})).catch((function(e){return"AbortError"===e.name?n(new st("User cancelled the operation.")):n(new De(e.message))}))}))}var n=e,r=pt(),o=ot().document;return new Promise((function(e,t){var i=!1;function a(a){if(!i){i=!0;var u=n.files,d=[];if(null===u)return e(d);for(var p=0;p<u.length;p++)d.push(u[p]);!function(){dt=void 0;try{O.remove(r.target.focus,{type:r.type.focus,callback:l}),O.remove(r.target.visibilitychange,{type:r.type.visibilitychange,callback:c}),O.remove(o,{type:"click",callback:s})}catch(e){}}(),a?e(d):t(new st("User cancelled the operation."))}}function l(){globalThis.setTimeout((function(){n.value.length>0?a(!0):a(!1)}),1e3)}function c(){Nt()||l()}function s(){a(!1)}n.onchange=function(){a(!0)},void 0!==dt&&dt(),void 0!==n.oncancel?n.oncancel=function(){a(!1)}:n.onclick=function(){O.add(r.target.visibilitychange,{type:r.type.visibilitychange,callback:c}),O.add(r.target.focus,{type:r.type.focus,callback:l}),globalThis.setTimeout((function(){O.add(o,{type:"click",callback:s})}),100),dt=function(){a(!1)}},it(n)}))}function Wt(e){if("[object Promise]"===Object.prototype.toString.call(e)){var t=e;return new Promise((function(e,n){t.then((function(t){var r=[],o=[];(function e(t,n){return void 0===n&&(n=""),new Promise((function(i,a){var l=t.entries();!function t(){l.next().then((function(a){if(a.done)return i();var l,c=a.value[0],s=a.value[1];l=""===n?c:n+"/"+c,"file"===s.kind?r.push(s.getFile().then((function(e){o.push({file:e,relativePath:l})}))):r.push(e(s,l)),t()})).catch(a)}()}))})(t,t.name).then((function(){Promise.all(r).then((function(){e(o)})).catch(n)})).catch(n)})).catch((function(e){return"AbortError"===e.name?n(new st("User cancelled the operation.")):n(new De(e.message))}))}))}var n=e;return new Promise((function(e,t){Ft(n).then((function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push({file:o,relativePath:o.webkitRelativePath})}e(n)})).catch(t)}))}function Rt(e,t,n){var r=pt(),o=ot().document,i=void 0,a=void 0;return new Promise((function(l,c){var s,u=!1;function d(e){u||(u=!0,function(){void 0!==s&&(clearTimeout(s),s=void 0);try{O.remove(r.target.blur,{type:r.type.blur,callback:p}),O.remove(r.target.focus,{type:r.type.focus,callback:f}),O.remove(r.target.visibilitychange,{type:r.type.visibilitychange,callback:g})}catch(e){}if(void 0!==i)try{o.body.removeChild(i)}catch(e){}if(void 0!==a)try{o.body.removeChild(a)}catch(e){}}(),e?l():c())}function p(){void 0!==s&&(clearTimeout(s),s=void 0),O.remove(r.target.blur,{type:r.type.blur,callback:p}),O.add(r.target.focus,{type:r.type.focus,callback:f})}function f(){d(!0)}function g(){Nt()?p():f()}s=globalThis.setTimeout((function(){d(!1)}),n),O.add(r.target.blur,{type:r.type.blur,callback:p}),O.add(r.target.visibilitychange,{type:r.type.visibilitychange,callback:g}),Lt(o)||function(){var e=ot(),t=e.document;if(Ut(e),Lt(t))return!0;if(t.body.tabIndex<0&&(t.body.tabIndex=-1),Ut(t.body),Lt(t))return!0;var n=void 0;try{if(void 0===(n=oe("input")))return!1;n.type="text",n.readOnly=!0,t.body.appendChild(n),Ut(n);try{n.select()}catch(e){}if(Lt(t))return!0}catch(e){}finally{if(null!=n){try{n.blur()}catch(e){}try{t.body.removeChild(n)}catch(e){}}}Lt(t)}();try{void 0!==globalThis.cordova?globalThis.open(e,"_system"):(i=function(e,t){var n=ot(),r=n.document,o=void 0;try{return 0===t?void(n.location.href=e):((o=oe("a")).href=e,r.body.appendChild(o),it(o,n),o)}catch(e){}finally{if(void 0!==o)try{r.body.removeChild(o)}catch(e){}}}(e,t),a=function(e){var t=ot().document,n=void 0;try{if(void 0===(n=oe("iframe")))return;n.src=e,t.body.appendChild(n),globalThis.setTimeout((function(){if(void 0!==n)try{t.body.removeChild(n)}catch(e){}}),500)}catch(e){}return n}(e))}catch(e){d(!1)}}))}function Gt(e,t){"string"==typeof e.to&&(e.to=xt(e.to)),"string"==typeof e.cc&&(e.cc=xt(e.cc)),"string"==typeof e.bcc&&(e.bcc=xt(e.bcc)),"string"==typeof e.subject&&(e.subject=It(e.subject)),"string"==typeof e.body&&(e.body=It(e.body)),"object"==typeof e.to&&(e.to=Et(e.to,xt)),"object"==typeof e.cc&&(e.cc=Et(e.cc,xt)),"object"==typeof e.bcc&&(e.bcc=Et(e.bcc,xt));var n=[],r=t+":";return"string"==typeof e.to&&(r+=e.to),"string"==typeof e.cc&&n.push("cc="+e.cc),"string"==typeof e.bcc&&n.push("bcc="+e.bcc),"string"==typeof e.subject&&n.push("subject="+e.subject),"string"==typeof e.body&&n.push("body="+e.body),Rt(r+"?"+Et(n,void 0,"&"),0,ht(K.os.name))}var qt=/iemobile/i.test(K.userAgent),jt=/windows phone/i.test(K.userAgent),Ht=null,_t={get value(){return function(){var e=Vt();if(!e)return;var t=e.getAttribute("content");return"string"==typeof t?t:void 0}()},set value(e){var t;void 0===e?(t=Vt())&&(t.remove(),Ht=null):function(e){var t=Vt();null===t&&(t=function(){var e=globalThis.document.createElement("meta");return e.setAttribute("name",Bt()),globalThis.document.head.prepend(e),Ht=e}());t.setAttribute("content",e)}(e)},Constants:{},Errors:{}};function Bt(){return qt?"msapplication-navbutton-color":jt?"msapplication-TileColor":"theme-color"}function Vt(){return null!==Ht&&Ht.isConnected?Ht:Ht=globalThis.document.querySelector('meta[name="'+Bt()+'"]')}var zt={run:function(e){if(Yt())return globalThis.navigator.vibrate(e);throw new De("'navigator.vibrate' does not supported.")},stop:function(){return this.run(0)},get supported(){return Yt()},Constants:{},Errors:{NotSupportedError:De}};function Yt(){return void 0!==globalThis.navigator.vibrate}var Kt=Symbol("pipBridged"),Zt="picture-in-picture",Xt="inline";function Jt(){return void 0!==globalThis.document.pictureInPictureEnabled}var Qt=function(){var e=null,t=!1,n=null,r=[],o="exit",i=Z((function(){if(Jt()){for(var e=["enterpictureinpicture","leavepictureinpicture"],t=0;t<e.length;t++)O.add(globalThis.document,{type:e[t],callback:i.emit,options:!1});return}s()}),(function(){if(Jt()){for(var e=["enterpictureinpicture","leavepictureinpicture"],t=0;t<e.length;t++)O.remove(globalThis.document,{type:e[t],callback:i.emit,options:!1});return}globalThis.document.querySelectorAll("video").forEach((function(e){O.remove(e,{type:"webkitpresentationmodechanged",callback:c,options:!1});try{delete e[Kt]}catch(t){e[Kt]=void 0}}))})),a=Z((function(){O.add(globalThis.document,{type:"pictureinpictureerror",callback:a.emit,options:!1})}),(function(){O.remove(globalThis.document,{type:"pictureinpictureerror",callback:a.emit,options:!1})}));function l(){var t=globalThis.document.pictureInPictureElement;return null!=t?t:null!==e&&e.webkitPresentationMode===Zt?e:null}function c(t){(this.webkitPresentationMode===Zt||this.webkitPresentationMode===Xt&&e===this)&&i.emit(t)}function s(){void 0!==globalThis.document&&globalThis.document.querySelectorAll("video").forEach((function(e){!0===e[Kt]||void 0===e.webkitSetPresentationMode&&void 0===e.onwebkitpresentationmodechanged||(O.add(e,{type:"webkitpresentationmodechanged",callback:c,options:!1}),e[Kt]=!0)}))}function u(){var e,t=r.shift();void 0!==t?(e="request"===t.operation?f(t.target):g(),n=e.then((function(){t.resolve(),u()})).catch((function(e){t.reject(e),u()}))):n=null}function d(e){if(o="request",null===n){var t=f(e);return n=t.then(u).catch(u),t}return new Promise((function(t,n){r.push({operation:"request",target:e,resolve:t,reject:n})}))}function p(){if(o="exit",null===n){var e=g();return n=e.then(u).catch(u),e}return new Promise((function(e,t){r.push({operation:"exit",target:void 0,resolve:e,reject:t})}))}function f(t){return new Promise((function(n,r){if(void 0===t&&(t=function(){var e=globalThis.document.querySelector("video");if(null!==e)return e}()),void 0===t)return r(new De("Failed to enter Picture-in-Picture mode."));var o=t.tagName.toLowerCase();if("video"!==o)return r(new De('The "'+o+'" element does not support Picture-in-Picture requests.'));function i(){if(void 0!==t&&"function"==typeof t.webkitSupportsPresentationMode&&t.webkitSupportsPresentationMode(Zt)&&"function"==typeof t.webkitSetPresentationMode)return t.disablePictureInPicture?r(new De("Picture-in-Picture is disabled on this video element.")):(e=t,s(),t.webkitSetPresentationMode(Zt),n());r(new De('The "'+o+'" element does not support Picture-in-Picture requests.'))}var a=t.requestPictureInPicture;if("function"==typeof a){var l=a.call(t);return void 0!==l&&"function"==typeof l.then?void l.then((function(){n()})).catch((function(){i()})):n()}i()}))}function g(){return new Promise((function(t,n){if(null===l()&&null===e)return t();function r(){var r;r=null!==e&&e.webkitPresentationMode===Zt?[e]:globalThis.document.querySelectorAll("video");for(var o=0;o<r.length;o++){var i=r[o];if("function"==typeof i.webkitSetPresentationMode&&i.webkitPresentationMode===Zt)return i.webkitSetPresentationMode(Xt),e=null,t()}if(null===l())return t();n(new De("Failed to exit Picture-in-Picture mode."))}var o=globalThis.document.exitPictureInPicture;if("function"==typeof o){var i=o.call(globalThis.document);return void 0!==i&&"function"==typeof i.then?void i.then(t).catch((function(){r()})):t()}r()}))}return t||(t=!0,Jt()||(s(),void 0!==globalThis.MutationObserver&&new MutationObserver((function(){s()})).observe(globalThis.document.documentElement,{childList:!0,subtree:!0}))),{get supported(){return function(){if("boolean"==typeof globalThis.document.pictureInPictureEnabled)return globalThis.document.pictureInPictureEnabled;if("undefined"==typeof HTMLVideoElement)return!1;for(var e=globalThis.document.querySelectorAll("video"),t=0;t<e.length;t++){var n=e[t];if("function"==typeof n.webkitSupportsPresentationMode&&n.webkitSupportsPresentationMode(Zt))return!0}return!1}()},get element(){return l()},get isPip(){return null!==l()},request:d,exit:p,toggle:function(e){return"request"===o?p():d(e)},onChange:i.subscribe,onError:a.subscribe,Constants:{},Errors:{NotSupportedError:De}}}(),$t={set:function(e){return en()?globalThis.navigator.setAppBadge(e):Promise.reject(new De("'navigator.setAppBadge' does not supported."))},clear:function(){return this.set(0)},get supported(){return en()},Constants:{},Errors:{NotSupportedError:De}};function en(){return void 0!==globalThis.navigator.setAppBadge}var tn={send:function(e){return new Promise((function(t,n){if(!nn())return n(new De("'window.Notification' does not supported."));qe.request(Fe.Notification).then((function(r){if(r===We.Grant){var o={badge:e.badge,body:e.body,data:e.data,dir:e.dir,icon:e.icon,lang:e.lang,requireInteraction:e.requireInteraction,silent:e.silent,tag:e.tag},i=new globalThis.Notification(e.title,o);void 0!==e.onClick&&(i.onclick=e.onClick),void 0!==e.onShow&&(i.onshow=e.onShow),void 0!==e.onClose&&(i.onclose=e.onClose),void 0!==e.onError&&(i.onerror=e.onError),t(i)}else n(new je("'notification' permission is not granted."))}))}))},get supported(){return nn()},Constants:{},Errors:{NotSupportedError:De,PermissionNotGrantedError:je}};function nn(){return void 0!==globalThis.Notification}var rn=Z((function(){if(!cn())return;globalThis.navigator.getBattery().then((function(e){on=e,O.add(e,{type:"chargingchange",callback:ln}),O.add(e,{type:"levelchange",callback:ln}),O.add(e,{type:"chargingtimechange",callback:ln}),O.add(e,{type:"dischargingtimechange",callback:ln})}))}),(function(){if(!cn()||null===on)return;O.remove(on,{type:"chargingchange",callback:ln}),O.remove(on,{type:"levelchange",callback:ln}),O.remove(on,{type:"chargingtimechange",callback:ln}),O.remove(on,{type:"dischargingtimechange",callback:ln}),on=null})),on=null,an={get value(){return new Promise((function(e,t){if(!cn())return t(new De("'navigator.getBattery' does not supported."));globalThis.navigator.getBattery().then(e)}))},get supported(){return cn()},onChange:rn.subscribe,Constants:{},Errors:{NotSupportedError:De}};function ln(){rn.emit(on)}function cn(){return void 0!==globalThis.navigator.getBattery}!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var e=__getGlobalThis__;Object.defineProperty(e,"globalThis",{value:e,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var sn={version:n,appearance:$,badge:$t,battery:an,clipboard:ae,dimension:Pe,fullscreen:Re,geolocation:tt,notification:tn,open:ut,permission:qe,pip:Qt,platform:K,theme:_t,vibration:zt};module.exports=sn;
|