UNPKG

@whitesev/pops

Version:

弹窗库,包含了alert、confirm、prompt、drawer、folder、loading、iframe、panel、tooltip、searchSuggestion、rightClickMenu组件

1 lines 381 kB
const t={config:{},setGlobalConfig(e){Reflect.ownKeys(e).forEach(n=>{Reflect.set(t.config,n,Reflect.get(e,n))})},getGlobalConfig(){const e={};return Object.keys(t.config).forEach(n=>{const o=Reflect.get(t.config,n);if("style"===n){const t=null==o?"":"function"==typeof o?o():o;"string"==typeof t&&(e.style=t)}else if("zIndex"===n)e.zIndex=()=>{let t=null==o?"":"function"==typeof o?o():o;if("string"==typeof t){const e=t=Number(t);if(!Number.isNaN(e))return e}else if(!Number.isNaN(t))return t;return 0};else if("mask"===n){const n=null==t.config.mask?{}:t.config.mask;"object"==typeof n&&null!=n&&(e.mask=n)}else Reflect.set(e,n,o)}),e}};class e{[Symbol.toStringTag]="EventEmiter";type;data=new Map;constructor(t){this.type=t}on(t,e){const n=this.data.get(t)??[];return n.push({type:this.type,time:Date.now(),callback:e}),this.data.set(t,n),{off:()=>{this.off(t,e)},emit:(...e)=>{this.emit(t,...e)}}}off(t,e){const n=this.data.get(t)??[];let o=!1;for(let t=n.length-1;t>=0;t--)n[t].callback===e&&(o=!0,n.splice(t,1));0===n.length?this.data.delete(t):o&&this.data.set(t,n)}async emit(t,...e){const n=this.data.get(t)??[];for(const t of n)await t.callback(...e)}offAll(t){"string"==typeof t?this.data.delete(t):this.data.clear()}getAllEvents(t){return"string"==typeof t?this.data.get(t):Array.from(this.data.values())}}const n={$data:{min:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="min">\r\n <path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>\r\n</svg>\r\n',mise:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="mise">\r\n <path\r\n fill="currentColor"\r\n d="M885.333333 85.333333H330.410667a53.333333 53.333333 0 0 0-53.333334 53.333334v106.666666H138.666667A53.333333 53.333333 0 0 0 85.333333 298.666667v586.666666a53.333333 53.333333 0 0 0 53.333334 53.333334H725.333333a53.333333 53.333333 0 0 0 53.333334-53.333334V746.154667h106.666666c29.44 0 53.333333-23.893333 53.333334-53.333334V138.666667A53.333333 53.333333 0 0 0 885.333333 85.333333zM725.333333 692.821333v192.512H138.666667V298.666667H725.333333v394.154666z m157.866667 0H778.666667V298.666667a53.333333 53.333333 0 0 0-53.333334-53.333334H330.410667v-106.666666h554.922666l-2.133333 554.154666z"></path>\r\n</svg>\r\n',max:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="max">\r\n <path\r\n fill="currentColor"\r\n d="m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"></path>\r\n</svg>\r\n',close:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="close">\r\n\t<path\r\n\t\tfill="currentColor"\r\n\t\td="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path>\r\n</svg>\r\n',edit:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="edit">\r\n <path\r\n fill="currentColor"\r\n d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"></path>\r\n <path\r\n fill="currentColor"\r\n d="m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"></path>\r\n</svg>\r\n',share:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="share">\r\n <path\r\n fill="currentColor"\r\n d="m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"></path>\r\n</svg>\r\n',delete:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="delete">\r\n <path\r\n fill="currentColor"\r\n d="M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"></path>\r\n</svg>\r\n',search:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="search">\r\n <path\r\n fill="currentColor"\r\n d="m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"></path>\r\n</svg>\r\n',upload:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="upload">\r\n <path\r\n fill="currentColor"\r\n d="M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"></path>\r\n</svg>\r\n',loading:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="loading">\r\n <path\r\n fill="currentColor"\r\n d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"></path>\r\n</svg>\r\n',next:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="next">\r\n <path\r\n fill="currentColor"\r\n d="M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"></path>\r\n</svg>\r\n',prev:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="prev">\r\n <path\r\n fill="currentColor"\r\n d="M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"></path>\r\n</svg>\r\n',eleme:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="eleme">\r\n <path\r\n fill="currentColor"\r\n d="M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"></path>\r\n</svg>\r\n',elemePlus:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="elemePlus">\r\n <path\r\n d="M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"\r\n fill="currentColor"></path>\r\n</svg>\r\n',chromeFilled:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" xml:space="preserve" data-type="chromeFilled">\r\n\t<path\r\n\t\td="M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"\r\n\t\tfill="currentColor"></path>\r\n\t<path\r\n\t\td="M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z"\r\n\t\tfill="currentColor"></path>\r\n\t<path\r\n\t\td="M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zM512.01 938.68H512zM414.76 701.95a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"\r\n\t\tfill="currentColor"></path>\r\n</svg>\r\n',cpu:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="cpu">\r\n <path\r\n fill="currentColor"\r\n d="M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"></path>\r\n <path\r\n fill="currentColor"\r\n d="M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"></path>\r\n</svg>\r\n',videoPlay:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="videoPlay">\r\n <path\r\n fill="currentColor"\r\n d="M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"></path>\r\n</svg>\r\n',videoPause:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="videoPause">\r\n <path\r\n fill="currentColor"\r\n d="M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"></path>\r\n</svg>\r\n',headset:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="headset">\r\n <path\r\n fill="currentColor"\r\n d="M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"></path>\r\n</svg>\r\n',monitor:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="monitor">\r\n <path\r\n fill="currentColor"\r\n d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"></path>\r\n</svg>\r\n',documentCopy:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="documentCopy">\r\n <path\r\n fill="currentColor"\r\n d="M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"></path>\r\n</svg>\r\n',picture:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-type="picture">\r\n <path\r\n fill="currentColor"\r\n d="M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"></path>\r\n <path\r\n fill="currentColor"\r\n d="M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"></path>\r\n</svg>\r\n',circleClose:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" data-type="circleClose">\r\n\t<path\r\n\t\tfill="currentColor"\r\n\t\td="m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"></path>\r\n\t<path\r\n\t\tfill="currentColor"\r\n\t\td="M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"></path>\r\n</svg>\r\n',view:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" data-type="view">\r\n <path\r\n fill="currentColor"\r\n d="M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"></path>\r\n</svg>\r\n',hide:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" data-type="hide">\r\n <path\r\n fill="currentColor"\r\n d="M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"></path>\r\n <path\r\n fill="currentColor"\r\n d="M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"></path>\r\n</svg>\r\n',keyboard:'<svg viewBox="0 0 1123 1024" xmlns="http://www.w3.org/2000/svg" data-type="keyboard">\r\n <path\r\n d="M1014.122186 1024H109.753483A109.753483 109.753483 0 0 1 0 914.246517V392.917471a109.753483 109.753483 0 0 1 109.753483-109.753484h904.368703a109.753483 109.753483 0 0 1 109.753484 109.753484v521.329046a109.753483 109.753483 0 0 1-109.753484 109.753483zM109.753483 370.966774a21.950697 21.950697 0 0 0-21.950696 21.950697v521.329046a21.950697 21.950697 0 0 0 21.950696 21.950696h904.368703a21.950697 21.950697 0 0 0 21.950697-21.950696V392.917471a21.950697 21.950697 0 0 0-21.950697-21.950697z"></path>\r\n <path\r\n d="M687.056806 891.198285H307.309753a43.901393 43.901393 0 0 1 0-87.802787h379.747053a43.901393 43.901393 0 0 1 0 87.802787zM175.605573 803.395498a43.901393 43.901393 0 1 0 43.901394 43.901394 43.901393 43.901393 0 0 0-43.901394-43.901394zM432.428725 414.868167a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM561.937835 414.868167a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM690.349411 414.868167a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM818.760986 414.868167a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM947.172562 414.868167a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM175.605573 546.572347a43.901393 43.901393 0 1 0 43.901394 43.901394 43.901393 43.901393 0 0 0-43.901394-43.901394zM304.017149 546.572347a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM432.428725 546.572347a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM561.937835 546.572347a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM690.349411 546.572347a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM818.760986 546.572347a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM818.760986 803.395498a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM175.605573 678.276527a43.901393 43.901393 0 1 0 43.901394 43.901394 43.901393 43.901393 0 0 0-43.901394-43.901394zM304.017149 678.276527a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM432.428725 678.276527a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM561.937835 678.276527a43.901393 43.901393 0 1 0 43.901393 43.901394 43.901393 43.901393 0 0 0-43.901393-43.901394zM948.270096 803.395498a43.901393 43.901393 0 1 0 43.901394 43.901394 43.901393 43.901393 0 0 0-43.901394-43.901394z"></path>\r\n <path\r\n d="M881.320472 766.079314H689.251876a43.901393 43.901393 0 0 1 0-87.802787h192.068596a21.950697 21.950697 0 0 0 21.950696-21.950696v-65.85209a43.901393 43.901393 0 0 1 87.802787 0v65.85209a109.753483 109.753483 0 0 1-109.753483 109.753483zM305.114684 502.670954H175.605573a43.901393 43.901393 0 0 1 0-87.802787h129.509111a43.901393 43.901393 0 0 1 0 87.802787zM563.03537 365.4791a43.901393 43.901393 0 0 1-43.901394-43.901394v-105.363344A109.753483 109.753483 0 0 1 628.88746 106.460879h61.461951a21.950697 21.950697 0 0 0 21.950696-21.950697V43.901393a43.901393 43.901393 0 0 1 87.802787 0v40.608789a109.753483 109.753483 0 0 1-109.753483 109.753484h-61.461951a21.950697 21.950697 0 0 0-21.950697 21.950696v105.363344a43.901393 43.901393 0 0 1-43.901393 43.901394z"></path>\r\n</svg>\r\n',arrowRight:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" data-type="arrowRight">\r\n\t<path\r\n\t\td="M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"></path>\r\n</svg>\r\n',arrowLeft:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" data-type="arrowLeft">\r\n\t<path\r\n\t\td="M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"></path>\r\n</svg>\r\n'},hasIcon:t=>Object.keys(n.$data).includes(t),getIcon:t=>n.$data[t],deleteIcon:t=>Reflect.deleteProperty(n.$data,t),setIcon(t,e){Reflect.set(n.$data,t,e)}},o={flexCenter:"pops-flex-items-center",flexYCenter:"pops-flex-y-center",flexXCenter:"pops-flex-x-center",hide:"pops-hide",hideImportant:"pops-hide-important",noBorder:"pops-no-border",noBorderImportant:"pops-no-border-important",userSelectNone:"pops-user-select-none",lineHeightCenter:"pops-line-height-center",widthFill:"pops-width-fill",textIsDisabled:"pops-text-is-disabled",textIsDisabledImportant:"pops-text-is-disabled-important"},a={Object:{defineProperty:Object.defineProperty,defineProperties:Object.defineProperties}},i={document:document,window:window,globalThis:globalThis,self:self,setTimeout:globalThis.setTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis)},s=Object.assign({},i),l={init(t){t||(t=Object.assign({},i)),Object.assign(s,t)},get document(){return s.document},get window(){return s.window},get globalThis(){return s.globalThis},get self(){return s.self},get setTimeout(){return s.setTimeout},get setInterval(){return s.setInterval},get clearTimeout(){return s.clearTimeout},get clearInterval(){return s.clearInterval}},r={getSafeHTML(t){if(window.trustedTypes){return window.trustedTypes.createPolicy("safe-innerHTML",{createHTML:t=>t}).createHTML(t)}return t},setSafeHTML(t,e){t.innerHTML=this.getSafeHTML(e)}},p="clientX",c="clientY",d="start",u="cancel",m="end",f={4:"start",5:"move",1:"end",3:"cancel"};function h(t){return f[t]}function b(t,e,n){const o={1:{0:{move:4},4:{move:5,end:1,cancel:3},5:{move:5,end:1,cancel:3}},0:{4:{move:2,end:1,cancel:3},5:{start:2,move:2,end:1,cancel:3}}}[Number(t)][e];return void 0!==o&&o[n]||0}function g(t){[1,3,2].includes(t.state)&&(t.state=0)}function v(t){return[5,1,3].includes(t)}function x(t){if(t.disabled)return t.state=0,!0}function y(t,e){return Object.assign(Object.assign(Object.assign({},t),e),{state:0,disabled:!1})}function w(t){return Math.round(100*t)/100}var A=t=>Math.sqrt(t.x*t.x+t.y*t.y),C=t=>t/Math.PI*180,$=(t,e)=>{var n=((t,e)=>{var n=A(t)*A(e);if(0===n)return 0;var o=((t,e)=>t.x*e.x+t.y*e.y)(t,e)/n;return o>1&&(o=1),Math.acos(o)})(t,e);return((t,e)=>t.x*e.y-e.x*t.y)(t,e)>0&&(n*=-1),C(n)},S=(t,e)=>{if(0!==t||0!==e)return Math.abs(t)>=Math.abs(e)?0<t?"right":"left":0<e?"down":"up"};function k(){let t=0,e=0;return function(n,o){const{prevVecotr:a,startVecotr:i,activeVecotr:s}=o;return s&&(e=Math.round($(s,a)),t=Math.round($(s,i))),{angle:t,deltaAngle:e}}}function E(){return function(t){const{prevInput:e}=t;let n=0,o=0,a=0;if(void 0!==e&&(n=t.x-e.x,o=t.y-e.y,0!==n||0!==o)){const t=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));a=Math.round(C(Math.acos(Math.abs(n)/t)))}return{deltaX:n,deltaY:o,deltaXYAngle:a}}}function I(){let t,e=0,n=0,o=0,a=0,i=0;return function(s){const{phase:l,startInput:r}=s;return d===l?(e=0,n=0,o=0,a=0,i=0):"move"===l&&(e=Math.round(s.points[0][p]-r.points[0][p]),n=Math.round(s.points[0][c]-r.points[0][c]),o=Math.abs(e),a=Math.abs(n),i=Math.round(A({x:o,y:a})),t=S(e,n)),{displacementX:e,displacementY:n,distanceX:o,distanceY:a,distance:i,overallDirection:t}}}function T(){let t=1;return function(e,n){let o=1;const{prevVecotr:a,startVecotr:i,activeVecotr:s}=n;return s&&(o=w(A(s)/A(a)),t=w(A(s)/A(i))),{scale:t,deltaScale:o}}}function M(){let t,e,n=0,o=0,a=0,i=0;return function(s){if(void 0!==s){e=e||s.startInput;const l=s.timestamp-e.timestamp;if(16<l){const r=s.x-e.x,p=s.y-e.y;a=Math.round(r/l*100)/100,i=Math.round(p/l*100)/100,n=Math.abs(a),o=Math.abs(i),t=S(r,p),e=s}}return{velocityX:n,velocityY:o,speedX:a,speedY:i,direction:t}}}function B(){let t=0;return function(e){const{phase:n}=e;return d===n&&(t=e.pointLength),{maxPointLength:t}}}function L(t){return{x:t.points[1][p]-t.points[0][p],y:t.points[1][c]-t.points[0][c]}}function z(){let t,e,n;return function(o){const{prevInput:a,startMultiInput:i}=o;return void 0!==i&&void 0!==a&&o.id!==i.id&&1<a.pointLength&&1<o.pointLength?(t=L(i),e=L(a),n=L(o)):n=void 0,{startVecotr:t,prevVecotr:e,activeVecotr:n}}}const N={name:"tap",pointLength:1,tapTimes:1,waitNextTapTime:300,maxDistance:2,maxDistanceFromPrevTap:9,maxPressTime:250};function D(t,e){const n=y(N,e);let o,a,i,s=0;function l(){s=0,o=void 0,a=void 0}return t.compute([I,B],e=>{if(x(n))return;const{phase:r,x:p,y:c}=e;m===r&&(n.state=0,function(){const{startInput:t,pointLength:o,timestamp:a}=e,i=a-t.timestamp,{distance:s,maxPointLength:l}=e;return l===n.pointLength&&0===o&&n.maxDistance>=s&&n.maxPressTime>i}()?(clearTimeout(i),function(t,e){if(void 0!==o){const n=A({x:t.x-o.x,y:t.y-o.y});return o=t,e.maxDistanceFromPrevTap>=n}return o=t,!0}({x:p,y:c},n)&&function(t){const e=performance.now();if(void 0===a)return a=e,!0;{const n=e-a;return a=e,n<t}}(n.waitNextTapTime)?s++:s=1,0==s%n.tapTimes?(n.state=1,t.emit2(n.name,e,n),l()):i=setTimeout(()=>{n.state=2,l()},n.waitNextTapTime)):(l(),n.state=2))}),n}function R(t){t.use(D,{name:"doubletap",tapTimes:2});const e=t.get("doubletap");let n;return t.beforeEach((t,o)=>{"tap"===t?(clearTimeout(n),n=setTimeout(()=>{[0,2].includes(e.state)&&o()},300)):o()}),e}class P{constructor(){this.__map={}}beforeEach(t){this.__interceptor=t}on(t,e){const n=Array.isArray(t)?t:[t];for(const t of n){this.__map[t]=this.__map[t]||[];const n=this.__map[t];n&&n.push(e)}return this}emit(t,e,n){void 0!==this.__interceptor?this.__interceptor(t,()=>{this.__emit(t,e),n&&n()}):(this.__emit(t,e),n&&n())}__emit(t,e){const n=this.__map[t];if(Array.isArray(n)&&(null==n?void 0:n.length))for(const o of n)o(e,t);this.event=e}off(t,e){const n=this.__map[t];if(void 0!==n)if(void 0===e)delete this.__map[t];else{const t=n.findIndex(t=>t===e);n.splice(t,1)}}destroy(){this.__map={}}}function H(){let t,e,n,o,a=0;return function(i){if(t=e,void 0!==i){a=Number.MAX_SAFE_INTEGER>a?++a:1;const s=function(t,e){const{phase:n,points:o,changedPoints:a,nativeEvent:i}=t,s=o.length,l=d===n,r=m===n&&0===s||u===n,p=Date.now(),{x:c,y:f}=O(o)||O(a),{currentTarget:h}=i;return Object.assign(t,{id:e,x:c,y:f,timestamp:p,isStart:l,isEnd:r,pointLength:s,currentTarget:h,getOffset(t=h){const e=t.getBoundingClientRect();return{x:c-Math.round(e.left),y:f-Math.round(e.top)}}})}(i,a);e=s;const{isStart:l,pointLength:r}=s;return l&&(n=s,t=void 0,o=1<r?s:void 0),Object.assign(Object.assign({},s),{prevInput:t,startMultiInput:o,startInput:n})}}}function O(t){const{length:e}=t;if(0<e){if(1===e){const{clientX:e,clientY:n}=t[0];return{x:Math.round(e),y:Math.round(n)}}const n=t.reduce((t,e)=>(t.x+=e[p],t.y+=e[c],t),{x:0,y:0});return{x:Math.round(n.x/e),y:Math.round(n.y/e)}}}function _(t,e,n,o){const a={};for(const t in n)["target","currentTarget","type"].includes(t)||(a[t]=n[t]);let i;return document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(t,null==o?void 0:o.bubbles,null==o?void 0:o.cancelable)):i=new Event(t,o),Object.assign(i,a,{match:()=>n.targets&&0<n.targets.length&&n.targets.every(t=>i.currentTarget.contains(t))}),e.dispatchEvent(i)}const U=["touchstart","touchmove","touchend","touchcancel","mousedown"],V=["mousemove","mouseup"],F={domEvents:{bubbles:!0,cancelable:!0},preventDefault:t=>{if(t.target&&"tagName"in t.target){const{tagName:e}=t.target;return!/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(e)}return!1}};class K extends P{constructor(t,e){super(),this.v="2.1.3",this.__computeFunctionList=[],this.__computeFunctionCreatorList=[],this.__pluginContexts=[],this.__isIgnoreMouse=!1,this.el=t,this.c={},this.__options=Object.assign(Object.assign({},F),e);const n=function(t){const e=H();return function(n){const o=[],a=[];Array.from(n.touches).forEach(({clientX:e,clientY:n,target:i})=>{(null==t?void 0:t.contains(i))&&(o.push(i),a.push({clientX:e,clientY:n,target:i}))});const i=Array.from(n.changedTouches).map(({clientX:t,clientY:e,target:n})=>({clientX:t,clientY:e,target:n}));return e({phase:n.type.replace("touch",""),changedPoints:i,points:a,nativeEvent:n,target:n.target,targets:o})}}(this.el),o=function(){let t,e=!1,n=null;const o=H();return function(a){const{clientX:i,clientY:s,type:l,button:r,target:p}=a;let c,d=[{clientX:i,clientY:s,target:p}];if("mousedown"===l&&0===r)n=p,e=!0,c="start";else{if(!e)return;"mousemove"===l?c="move":"mouseup"===l&&(d=[],c="end",e=!1)}const u=t||[{clientX:i,clientY:s,target:p}];if(t=[{clientX:i,clientY:s,target:p}],void 0!==c)return o({phase:c,changedPoints:u,points:d,target:n,targets:[n],nativeEvent:a})}}();if(this.__inputCreatorMap={touchstart:n,touchmove:n,touchend:n,touchcancel:n,mousedown:o,mousemove:o,mouseup:o},this.on("at:after",t=>{const{target:e,__type:n}=t,{domEvents:o}=this.__options;o&&void 0!==this.el&&e&&(_(n,e,t,o),_("at:after",e,t,o))}),void 0!==t){t.style.webkitTapHighlightColor="rgba(0,0,0,0)";let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("_",()=>{},t)}catch(t){}this.on("u",function(t,e,n){return U.forEach(o=>{t.addEventListener(o,e,n)}),V.forEach(t=>{window.addEventListener(t,e,n)}),()=>{U.forEach(n=>{t.removeEventListener(n,e)}),V.forEach(t=>{window.removeEventListener(t,e)})}}(t,this.catchEvent.bind(this),!1===this.__options.preventDefault&&e?{passive:!0}:{passive:!1}))}}use(t,e){this.__pluginContexts.push(t(this,e))}catchEvent(t){const e=this.__inputCreatorMap[t.type](t);if(void 0!==e){const n=()=>t.stopPropagation(),o=()=>t.stopImmediatePropagation(),a=()=>t.preventDefault();if(function(t,e){const{preventDefault:n}=e;return o=n,"[object Function]"===Object.prototype.toString.call(o)?n(t):!!n;var o}(t,this.__options))a();else if("touchstart"===t.type?this.__isIgnoreMouse=!0:"touchmove"===t.type&&(this.__isIgnoreMouse=!1),this.__isIgnoreMouse&&t.type.startsWith("mouse"))return void("mouseup"===t.type&&(this.__isIgnoreMouse=!1));this.emit("input",e),this.emit2(`at:${e.phase}`,e,{});const i={};this.__computeFunctionList.forEach(t=>{const n=t(e,i);if(void 0!==n)for(const t in n)i[t]=n[t]}),this.emit("computed",Object.assign(Object.assign(Object.assign({},e),i),{stopPropagation:n,stopImmediatePropagation:o,preventDefault:a}))}}compute(t,e){for(const e of t)this.__computeFunctionCreatorList.includes(e)||(this.__computeFunctionCreatorList.push(e),this.__computeFunctionList.push(e()));this.on("computed",e)}beforeEach(t){super.beforeEach((e,n)=>{var o;(null===(o=this.c)||void 0===o?void 0:o.name)?t(e,n):n()})}get(t){return this.__pluginContexts.find(e=>t===e.name)}set(t){this.__options=Object.assign(Object.assign({},this.__options),t)}emit2(t,e,n){this.c=n,this.emit(t,Object.assign(Object.assign({},e),{type:t}),()=>{this.emit("at:after",Object.assign(Object.assign({},e),{name:t,__type:t}))})}destroy(){this.emit("u"),super.destroy()}}const Y={name:"pan",threshold:10,pointLength:1};function j(t,e){const n=y(Y,e);return t.compute([M,I,E],e=>{if(g(n),x(n))return;const o=function(){const{pointLength:t,distance:o}=e;return n.pointLength===t&&n.threshold<=o}();if(n.state=b(o,n.state,e.phase),o||v(n.state)){const{name:o}=n;t.emit2(o,e,n),t.emit2(o+h(n.state),e,n),![m,u].includes(e.phase)&&e.direction&&t.emit2(o+e.direction,e,n)}}),n}const G={name:"swipe",threshold:10,velocity:.3,pointLength:1};function Q(t,e){const n=y(G,e);return t.compute([I,M,B],e=>{if(n.state=0,!n.disabled&&function(){if(m!==e.phase)return!1;const{velocityX:t,velocityY:o,distance:a,maxPointLength:i}=e;return i===n.pointLength&&0===e.points.length&&n.threshold<a&&n.velocity<Math.max(t,o)}()){const{name:o}=n;n.state=1,t.emit2(o,e,n),t.emit2(o+e.direction,e,n)}}),n}const X={name:"press",pointLength:1,maxDistance:9,minPressTime:251};function W(t,e){const n=y(X,e);let o=0;return t.compute([I],e=>{if(x(n))return;const{phase:a,startInput:i,pointLength:s}=e;if(d===a&&n.pointLength===s)g(n),clearTimeout(o),o=setTimeout(()=>{n.state=1,t.emit2(n.name,e,n)},n.minPressTime);else if(m===a&&1===n.state)t.emit2(`${n.name}up`,e,n);else if(1!==n.state){const t=e.timestamp-i.timestamp;(!function(){const{distance:t}=e;return t&&n.maxDistance>t}()||n.minPressTime>t&&[m,u].includes(a))&&(clearTimeout(o),n.state=2)}}),n}const q={name:"pinch",threshold:0,pointLength:2};function J(t,e){const n=y(q,e);return t.compute([z,T],e=>{if(g(n),x(n))return;const o=function(){const{pointLength:t,scale:o,deltaScale:a,phase:i}=e;return n.pointLength===t&&n.threshold<Math.abs(o-1)}();n.state=b(o,n.state,e.phase);const{name:a}=n;if(o||v(n.state)){t.emit2(a,e,n);const{deltaScale:o}=e;1!==o&&t.emit2(a+(1<o?"in":"out"),e,n)}const i=h(n.state);i&&t.emit2(a+i,e,n)}),n}const Z={name:"rotate",threshold:0,pointLength:2};function tt(t,e){const n=y(Z,e);return t.compute([z,k],e=>{if(x(n))return;g(n);const o=function(){const{pointLength:t,angle:o}=e;return n.pointLength===t&&n.threshold<Math.abs(o)}();n.state=b(o,n.state,e.phase);const{name:a}=n;(o||v(n.state))&&t.emit2(a,e,n);const i=h(n.state);i&&t.emit2(a+i,e,n)}),n}class et extends K{constructor(t,e){super(t,e),this.use(D),this.use(j),this.use(Q),this.use(W),this.use(J),this.use(tt)}}et.STATE_POSSIBLE=0,et.STATE_START=4,et.STATE_MOVE=5,et.STATE_END=1,et.STATE_CANCELLED=3,et.STATE_FAILED=2,et.STATE_RECOGNIZED=1,et.tap=D,et.pan=j,et.swipe=Q,et.press=W,et.rotate=tt,et.pinch=J,et.doubletap=R;const nt=new class{sleep(t){return new Promise(e=>{setTimeout(()=>{e(!0)},t)})}isWin(t){return"object"==typeof t&&(!(t instanceof Node)&&(t===globalThis||(t===window||(t===self||(t===l.globalThis||(t===l.window||(t===l.self||("undefined"!=typeof unsafeWindow&&t===unsafeWindow||"[object Math]"===t?.Math?.toString()))))))))}isDOM(t){return t instanceof Node}isNodeList(t){return Array.isArray(t)||t instanceof NodeList}delete(t,e){"object"==typeof Reflect&&"function"==typeof Reflect.deleteProperty?Reflect.deleteProperty(t,e):delete t[e]}assign(t={},n={},o=!1){const a=this;if(Array.isArray(n)){if(!n.filter(t=>"object"==typeof t).length)return n}if(null==n)return t;let i;null==t&&(t={}),i=o?n:t;for(const s in i){if(!o&&!(s in n))continue;const i=Reflect.get(t,s),l=Reflect.get(n,s);if("object"!=typeof l||null==l||!(s in t)||a.isDOM(l)||l instanceof e)Reflect.set(t,s,l);else{let e;Array.isArray(l)?(Array.isArray(i)&&(i.length=0),e=l):e=a.assign(i,l,o),Reflect.set(t,s,e)}}return t}getRandomGUID(){return"function"==typeof l.globalThis?.crypto?.randomUUID?l.globalThis.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}contains(...t){const[e,n]=t;if(1===t.length)return this.contains(l.document.body||l.document.documentElement,t[0]);if(null==n)return!1;if("function"==typeof n[Symbol.iterator]){let t=!0;for(const o of n)if(!e.contains(o)){t=!1;break}return t}return e.contains(n)}formatTime(t=new Date,e="yyyy-MM-dd HH:mm:ss"){const n=null==t?new Date:new Date(t);function o(t){return t<10?"0"+t:t}const a={yyyy:n.getFullYear(),MM:o(n.getMonth()+1),dd:o(n.getDate()),HH:o(n.getHours()),hh:o((i=n.getHours(),i>12?i-12:i)),mm:o(n.getMinutes()),ss:o(n.getSeconds())};var i;return Object.keys(a).forEach(function(t){const n=new RegExp(t,"g");e=e.replace(n,a[t])}),e}formatByteToSize(t,e=!0){if(t=parseInt(t.toString()),isNaN(t))throw new TypeError("Utils.formatByteToSize 参数 byteSize 格式不正确");let n=0,o="KB";const a={B:1,KB:1024};a.MB=a.KB*a.KB,a.GB=a.MB*a.KB,a.TB=a.GB*a.KB,a.PB=a.TB*a.KB,a.EB=a.PB*a.KB,a.ZB=a.EB*a.KB,a.YB=a.ZB*a.KB,a.BB=a.YB*a.KB,a.NB=a.BB*a.KB,a.DB=a.NB*a.KB;for(const e in a)if(n=t/a[e],o=e,a.KB>=n)break;return n=n.toFixed(2),n=e?n+o.toString():parseFloat(n.toString()),n}AnyTouch=()=>et;AnyTouchDoubleTapPlugin=()=>R;isPhone(t=l.globalThis.navigator.userAgent){return Boolean(/(iPhone|iPad|iPod|iOS|Android)/i.test(t))}setTimeout(t,e=0){return l.setTimeout(t,e)}clearTimeout(t){return l.clearTimeout(t)}setInterval(t,e=0){return l.setInterval(t,e)}clearInterval(t){return l.clearInterval(t)}setArray(t,e,n){if(null==t)return;if(!Array.isArray(n))return;const o=t[e];Array.isArray(t[e])?o.length=0:t[e]=[],t[e]=n}getMaxZIndexNodeInfoFromPoint(t,e){"function"==typeof t&&(t=t()),"number"==typeof t&&(e=t,t=void 0),("number"!=typeof e||Number.isNaN(e))&&(e=10);const n=2*Math.pow(10,9),o=[],a=globalThis.innerWidth,i=globalThis.innerHeight;for(let t=0;t<8;t++)for(let e=0;e<8;e++){const n={x:globalThis.innerWidth*(t/8)+10,y:globalThis.innerHeight*(e/8)+10};n.x>a&&(n.x=a),n.y>i&&(n.y=i),o.push(n)}const s=o;t&&(s.length=0,Array.isArray(t)?s.push(...t):s.push(t));const l=s.map(t=>{let o,a,i;if(t instanceof HTMLElement){o=t;const e=t.getBoundingClientRect();a=e.x+e.width/2,i=e.y+e.height/2}else o=document.elementFromPoint(t.x,t.y),a=t.x,i=t.y;const s=o?.shadowRoot;if(s&&(o=s.elementFromPoint(a,i)),!(o instanceof HTMLElement))return;let l=o,r=0,p=null,c={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};for(;l;){const t=globalThis.getComputedStyle(l),e=parseInt(t.zIndex);"static"===t.position||isNaN(e)||e>r&&(r=e,p=l),l=l.parentElement}if(p){const t=p.getBoundingClientRect();c={x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}}const d=r+e;return d>=n?void 0:{zIndex:d,originZIndex:r,node:p,positionNode:o,positionX:a,positionY:i,rect:c}}).filter(t=>null!=t);return l.sort((t,e)=>t.zIndex<e.zIndex?1:t.zIndex>e.zIndex?-1:0),l}},ot={domEventSymbol:Symbol("events_"+(65536*(1+Math.random())|0).toString(16).substring(1))},at={isWin:nt.isWin.bind(nt),delete:nt.delete.bind(nt),isNodeList:nt.isNodeList.bind(nt)};class it{get windowApi(){return l.window}on(t,e,n,o,i){const s=function(t,e,n){const o=t[e];if("boolean"==typeof o)n.capture=o,"boolean"==typeof t[e+1]&&(n.once=t[e+1]),"boolean"==typeof t[e+2]&&(n.passive=t[e+2]);else if(o&&"object"==typeof o)for(const t in n)Reflect.has(o,t)&&Reflect.set(n,t,o[t]);return n},l=this,r=arguments;if("string"==typeof t&&(t=l.selectorAll(t)),null==t)return{off(){},emit(){}};let p=[];t instanceof NodeList||Array.isArray(t)?p=p.concat(Array.from(t)):p.push(t);let c=[];Array.isArray(e)?c=c.concat(e.filter(t=>"string"==typeof t&&""!==t.toString())):"string"==typeof e&&(c=c.concat(e.split(" ").filter(t=>""!==t)));let d=[];Array.isArray(n)?d=d.concat(n.filter(t=>"string"==typeof t&&""!==t.toString())):"string"==typeof n&&d.push(n);let u=o,m={capture:!1,once:!1,passive:!1,isComposedPath:!1,overrideTarget:!0};return"function"==typeof n?(u=n,m=s(r,3,m)):m=s(r,4,m),p.forEach(t=>{const e=at.isWin(t);c.forEach(s=>{const r=()=>{m.once&&this.off(t,s,n,o,i)},p=function(n){let o,i,s;m.isPreventEvent&&l.preventEvent(n);let p=!1;if(d.length){let r;if(m.isComposedPath){const t=n.composedPath();!t.length&&n.target&&t.push(n.target),r=t[0]}else r=n.target;const c=e?l.windowApi.document.documentElement:t;if(d.find(t=>{if(l.matches(r,t))return!0;const e=l.closest(r,t);return!(!e||!c?.contains?.(e))&&(r=e,!0)})){if(m.overrideTarget)try{const t=n.target;a.Object.defineProperties(n,{target:{get:()=>r},originTarget:{get:()=>t}})}catch{}p=!0,o=r,i=n,s=r}}else p=!0,o=t,i=n;if(p){const t=u.call(o,i,s);if(r(),"boolean"==typeof t&&!t)return!1}};t.addEventListener(s,p,m);const c=Reflect.get(t,ot.domEventSymbol)||{};c[s]=c[s]||[],c[s].push({selector:d,option:m,handlerCallBack:p,callback:u}),Reflect.set(t,ot.domEventSymbol,c)})}),{off:t=>{l.off(p,c,d,u,m,t)},emit:(t,e)=>{l.emit(p,c,t,e)}}}off(t,e,n,o,a,i){const s=function(t,e,n){const o=t[e];return"boolean"==typeof o?n.capture=o:o&&"object"==typeof o&&"capture"in o&&(n.capture=o.capture),n},l=arguments;if("string"==typeof t&&(t=this.selectorAll(t)),null==t)return;let r=[];t instanceof NodeList||Array.isArray(t)?r=r.concat(Array.from(t)):r.push(t);let p=[];Array.isArray(e)?p=p.concat(e.filter(t=>"string"==typeof t&&""!==t.toString())):"string"==typeof e&&(p=p.concat(e.split(" ").filter(t=>""!==t)));let c=[];Array.isArray(n)?c=c.concat(n.filter(t=>"string"==typeof t&&""!==t.toString())):"string"==typeof n&&c.push(n);let d=o,u={capture:!1};"function"==typeof n?(d=n,u=s(l,3,u)):u=s(l,4,u),5===l.length&&"function"==typeof l[4]&&"function"!=typeof i&&(i=a),r.forEach(t=>{const n=Reflect.get(t,ot.domEventSymbol)||{};p.forEach(o=>{const a=n[o]||[],s="function"==typeof i?a.filter(i):a;for(let e=0;e<s.length;e++){const n=s[e];let i=!0;if(i&&d&&n.callback!==d&&(i=!1),i&&c.length&&Array.isArray(n.selector)&&JSON.stringify(n.selector)!==JSON.stringify(c)&&(i=!1),i&&"boolean"==typeof n.option.capture&&u.capture!==n.option.capture&&(i=!1),i){t.removeEventListener(o,n.handlerCallBack,n.option);for(let t=a.length-1;t>=0;t--)a[t]===n&&a.splice(t,1)}}0===a.length&&(at.delete(n,e),0===Object.keys(n).length&&at.delete(t,ot.domEventSymbol))}),Reflect.set(t,ot.domEventSymbol,n)})}offAll(t,e){if("string"==typeof t&&(t=this.selectorAll(t)),null==t)return;let n=[];t instanceof NodeList||Array.isArray(t)?n=n.concat(Array.from(t)):n.push(t);let o=[];Array.isArray(e)?o=o.concat(e):"string"==typeof e&&(o=o.concat(e.split(" "))),n.forEach(t=>{[...new Set([...Object.getOwnPropertySymbols(t),ot.domEventSymbol])].forEach(e=>{if(!e.toString().startsWith("Symbol(events_"))return;const n=Reflect.get(t,e)||{};(o.length?o:Object.keys(n)).forEach(o=>{const a=n[o];if(!a)return;for(const e of a)t.removeEventListener(o,e.handlerCallBack,{capture:e.option.capture});const i=Reflect.get(t,e);at.delete(i,o),0===Object.keys(i).length&&at.delete(t,e)})})})}onReady(t){const e=this;if("function"!=typeof t)return;function n(){!function(){for(let t=0;t<o.length;t++){const n=o[t];e.off(n.target,n.eventType,n.callback)}}(),t()}const o=[{target:l.document,eventType:"DOMContentLoaded",callback:n},{target:l.window,eventType:"load",callback:n}];!function(){try{return"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll}catch{return!1}}()?function(){for(let t=0;t<o.length;t++){const n=o[t];e.on(n.target,n.eventType,n.callback)}}():nt.setTimeout(t,0)}emit(t,e,n,o=!0){if("string"==typeof t&&(t=this.selectorAll(t)),null==t)return;let a=[];t instanceof NodeList||Array.isArray(t)?a=a.concat(Array.from(t)):a.push(t);const i=(t,e)=>{if(t instanceof Event&&"object"==typeof e&&null!=e&&!Array.isArray(e)){Object.keys(e).forEach(n=>{const o=Reflect.get(e,n);Reflect.set(t,n,o)})}};let s=[],l=null;Array.isArray(e)?s=e.filter(t=>"string"==typeof t&&""!==t.trim()):"string"==typeof e?s=e.split(" "):e instanceof Event&&(l=e,i(l,n)),a.forEach(t=>{const e=Reflect.get(t,ot.domEventSymbol)||{},a=(n,a)=>{0==o&&a in e?e[a].forEach(t=>{t.handlerCallBack(n)}):t.dispatchEvent(n)};if(l){const t=l,e=t.type;a(t,e)}else s.forEach(t=>{const e=new Event(t);i(e,n),a(e,t)})})}onKeyup(t,e,n){const o=this;if(null!=t){if("string"==typeof t&&(t=o.selectorAll(t)),at.isNodeList(t)){const a=[];return t.forEach(t=>{const i=o.onKeyup(t,e,n);a.push(i)}),{off(){a.forEach(t=>{t&&t.off()})}}}return o.on(t,"keyup",null,e,n)}}onKeydown(t,e,n){const o=this;if(null!=t){if("string"==typeof t&&(t=o.selectorAll(t)),at.isNodeList(t)){const a=[];return t.forEach(t=>{const i=o.onKeydown(t,e,n);a.push(i)}),{off(){a.forEach(t=>{t&&t.off()})}}}return o.on(t,"keydown",null,e,n)}}preventEvent(...t){const e=(t,e)=>{if(t?.stopPropagation(),t?.stopImmediatePropagation(),"boolean"!=typeof e||!e)return t?.preventDefault(),!1};if(t[0]instanceof Event){const n=t[1];return e(t[0],n)}{const n=t[0];let o,a,i=t[1],s=!1,l=!1;if("string"==typeof i&&(i=[i]),2===t.length);else if("string"==typeof t[2]||Array.isArray(t[2]))o=t[2],"object"==typeof t[3]&&null!=t[3]&&(a=t[3]);else{if("object"!=typeof t[2]||null==t[2]||Array.isArray(t[2]))throw new TypeError("Invalid argument");a=t[2]}a&&(s=Boolean(a.capture),l=Boolean(a.onlyStopPropagation));return this.on(n,i,o,t=>e(t,l),{capture:s})}}selector(t){return this.selectorAll(t)[0]}selectorAll(t){if((t=t.trim()).match(/[^\s]{1}:empty$/gi))return t=t.replace(/:empty$/gi,""),Array.from(l.document.querySelectorAll(t)).filter(t=>""===t?.innerHTML?.trim());if(t.match(/[^\s]{1}:contains\("(.*)"\)$/i)||t.match(/[^\s]{1}:contains\('(.*)'\)$/i)){const e=t.match(/:contains\(("|')(.*)("|')\)$/i)[2];return t=t.replace(/:contains\(("|')(.*)("|')\)$/gi,""),Array.from(l.document.querySelectorAll(t)).filter(t=>(t?.textContent||t?.innerText)?.includes(e))}if(t.match(/[^\s]{1}:regexp\("(.*)"\)$/i)||t.match(/[^\s]{1}:regexp\('(.*)'\)$/i)){let e=t.match(/:regexp\(("|')(.*)("|')\)$/i)[2];const n=e.match(/("|'),[\s]*("|')([igm]{0,3})$/i);let o="";n&&(e=e.replace(/("|'),[\s]*("|')([igm]{0,3})$/gi,""),o=n[3]);const a=new RegExp(e,o);return t=t.replace(/:regexp\(("|')(.*)("|')\)$/gi,""),Array.from(l.document.querySelectorAll(t)).filter(t=>Boolean((t?.textContent||t?.innerText)?.match(a)))}return Array.from(l.document.querySelectorAll(t))}matches(t,e){if(e=e.trim(),null==t)return!1;if(e.match(/[^\s]{1}:empty$/gi))return e=e.replace(/:empty$/gi,""),t.matches(e)&&""===t?.innerHTML?.trim();if(e.match(/[^\s]{1}:contains\("(.*)"\)$/i)||e.match(/[^\s]{1}:contains\('(.*)'\)$/i)){const n=e.match(/:contains\(("|')(.*)("|')\)$/i)[2];e=e.replace(/:contains\(("|')(.*)("|')\)$/gi,"");let o=t?.textContent||t?.innerText;return"string"!=typeof o&&(o=""),t.matches(e)&&o?.includes(n)}if(e.match(/[^\s]{1}:regexp\("(.*)"\)$/i)||e.match(/[^\s]{1}:regexp\('(.*)'\)$/i)){let n=e.match(/:regexp\(("|')(.*)("|')\)$/i)[2];const o=n.match(/("|'),[\s]*("|')([igm]{0,3})$/i);let a="";o&&(n=n.replace(/("|'),[\s]*("|')([igm]{0,3})$/gi,""),a=o[3]);const i=new RegExp(n,a);e=e.replace(/:regexp\(("|')(.*)("|')\)$/gi,"");let s=t?.textContent||t?.innerText;return"string"!=typeof s&&(s=""),t.matches(e)&&Boolean(s?.match(i))}return t.matches(e)}closest(t,e){if((e=e.trim()).match(/[^\s]{1}:empty$/gi)){e=e.replace(/:empty$/gi,"");const n=t?.closest(e);return n&&""===n?.innerHTML?.trim()?n:null}if(e.match(/[^\s]{1}:contains\("(.*)"\)$/i)||e.match(/[^\s]{1}:contains\('(.*)'\)$/i)){const n=e.match(/:contains\(("|')(.*)("|')\)$/i)[2];e=e.replace(/:contains\(("|')(.*)("|')\)$/gi,"");const o=t?.closest(e);if(o){const e=t?.textContent||t?.innerText;if("string"==typeof e&&e.includes(n))return o}return null}if(e.match(/[^\s]{1}:regexp\("(.*)"\)$/i)||e.match(/[^\s]{1}:regexp\('(.*)'\)$/i)){let n=e.match(/:regexp\(("|')(.*)("|')\)$/i)[2];const o=n.match(/("|'),[\s]*("|')([igm]{0,3})$/i);let a="";o&&(n=n.replace(/("|'),[\s]*("|')([igm]{0,3})$/gi,""),a=o[3]);const i=new RegExp(n,a);e=e.replace(/:regexp\(("|')(.*)("|')\)$/gi,"");const s=t?.closest(e);if(s){const e=t?.textContent||t?.innerText;if("string"==typeof e&&e.match(i))return s}return null}{const n=t?.closest(e);return n}}onInput(t,e,n){let o=!1;const a=this.on(t,"input",async t=>{o||await e(t)},n),i=this.on(t,"compositionstart",()=>{o=!0},n),s=this.on(t,"compositionend",()=>{o=!1,this.emit(t,"input",{isComposite:o})},n);return{off:()=>{a.off(),i.off(),s.off()}}}}const st=new class extends it{getAnimationEndNameList(){return["webkitAnimationEnd","mozAnimationEnd","MSAnimationEnd","oanimationend","animationend"]}getTransitionEndNameList(){return["webkitTransitionEnd","mozTransitionEnd","MSTransitionEnd","otransitionend","transitionend"]}offset(t,e=!0){const n=t.getBoundingClientRect(),o=t.ownerDocument.defaultView;return new DOMRect(e?parseFloat((n.left+(o?.pageXOffset||0)).toString()):n.left,e?parseFloat((n.top+(o?.pageYOffset||0)).toString()):n.top,n.width,n.height)}width(t,e=!1,n){const o=this;if("string"==typeof t&&(t=this.selector(t)),null!=t){if(nt.isWin(t))return l.window.document.documentElement.clientWidth;if(9===t.nodeType)return Math.max(t.body.scrollWidth,t.documentElement.scrollWidth,t.body.offsetWidth,t.documentElement.offsetWidth,t.documentElement.clientWidth);if(e||!e&&st.isShow(t)){if(parseFloat(st.getStyleValue(t,"width").toString())>0)return parseFloat(st.getStyleValue(t,"width").toString());if(t.offsetWidth>0){const e=st.getStyleValue(t,"borderLeftWidth"),n=st.getStyleValue(t,"borderRightWidth"),o=st.getStyleValue(t,"paddingLeft"),a=st.getStyleValue(t,"paddingRight"),i=parseFloat(t.offsetWidth.toString())-parseFloat(e.toString())-parseFloat(n.toString())-parseFloat(o.toString())-parseFloat(a.toString());return parseFloat(i.toString())}return 0}{const{cloneNode:e,recovery:a}=st.showElement(t,n),i=o.width(e,!0,n);return a(),i}}}height(t,e=!1,n){const o=this;if(nt.isWin(t))return l.window.document.documentElement.clientHeight;if("string"==typeof t&&(t=this.selector(t)),null!=t){if(9===t.nodeType)return Math.max(t.body.scrollHeight,t.documentElement.scrollHeight,t.body.offsetHeight,t.documentElement.offsetHeight,t.documentElement.clientHeight);if(e||!e&&st.isShow(t)){if(parseFloat(st.getStyleValue(t,"height").toString())>0)return parseFloat(st.getStyleValue(t,"height").toString());if(t.offsetHeight>0){const e=st.getStyleValue(t,"borderTopWidth"),n=st.getStyleValue(t,"borderBottomWidth"),o=st.getStyleValue(t,"paddingTop"),a=st.getStyleValue(t,"paddingBottom"),i=parseFloat(t.offsetHeight.toString())-parseFloat(e.toString())-parseFloat(n.toString())-parseFloat(o.toString())-parseFloat(a.toString());return parseFloat(i.toString())}return 0}{const{cloneNode:e,recovery:a}=st.showElement(t,n),i=o.height(e,!0,n);return a(),i}}}outerWidth(t,e=!1,n){const o=this;if(nt.isWin(t))return l.window