mirror of
https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
synced 2024-11-14 20:33:55 +00:00
2 lines
133 KiB
JavaScript
2 lines
133 KiB
JavaScript
|
/*! UIkit 3.15.12 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(ue,de){typeof exports=="object"&&typeof module<"u"?module.exports=de():typeof define=="function"&&define.amd?define("uikit",de):(ue=typeof globalThis<"u"?globalThis:ue||self,ue.UIkit=de())})(this,function(){"use strict";const{hasOwnProperty:ue,toString:de}=Object.prototype;function Bt(t,e){return ue.call(t,e)}const uo=/\B([A-Z])/g,Xt=ft(t=>t.replace(uo,"-$1").toLowerCase()),fo=/-(\w)/g,fe=ft(t=>t.replace(fo,us)),St=ft(t=>t.length?us(null,t.charAt(0))+t.slice(1):"");function us(t,e){return e?e.toUpperCase():""}function lt(t,e){return t==null||t.startsWith==null?void 0:t.startsWith(e)}function Gt(t,e){return t==null||t.endsWith==null?void 0:t.endsWith(e)}function p(t,e){return t==null||t.includes==null?void 0:t.includes(e)}function bt(t,e){return t==null||t.findIndex==null?void 0:t.findIndex(e)}const{isArray:Q,from:xi}=Array,{assign:xt}=Object;function mt(t){return typeof t=="function"}function Tt(t){return t!==null&&typeof t=="object"}function yt(t){return de.call(t)==="[object Object]"}function Jt(t){return Tt(t)&&t===t.window}function De(t){return $i(t)===9}function yi(t){return $i(t)>=1}function Kt(t){return $i(t)===1}function $i(t){return!Jt(t)&&Tt(t)&&t.nodeType}function Me(t){return typeof t=="boolean"}function D(t){return typeof t=="string"}function Zt(t){return typeof t=="number"}function Dt(t){return Zt(t)||D(t)&&!isNaN(t-parseFloat(t))}function pe(t){return!(Q(t)?t.length:Tt(t)?Object.keys(t).length:!1)}function R(t){return t===void 0}function ki(t){return Me(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Ct(t){const e=Number(t);return isNaN(e)?!1:e}function v(t){return parseFloat(t)||0}function j(t){return y(t)[0]}function y(t){return t&&(yi(t)?[t]:Array.from(t).filter(yi))||[]}function Mt(t){var e;if(Jt(t))return t;t=j(t);const i=De(t)?t:(e=t)==null?void 0:e.ownerDocument;return(i==null?void 0:i.defaultView)||window}function ge(t,e){return t===e||Tt(t)&&Tt(e)&&Object.keys(t).length===Object.keys(e).length&&$t(t,(i,s)=>i===e[s])}function Si(t,e,i){return t.replace(new RegExp(e+"|"+i,"g"),s=>s===e?i:e)}function Qt(t){return t[t.length-1]}function $t(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Ne(t,e){return t.slice().sort((i,s)=>{let{[e]:n=0}=i,{[e]:o=0}=s;return n>o?1:o>n?-1:0})}function ds(t,e){const i=new Set;return t.filter(s=>{let{[e]:n}=s;return i.has(n)?!1:i.add(n)})}function U(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),Math.min(Math.max(Ct(t)||0,e),i)}function T(){}function Ti(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return[["bottom","top"],["right","left"]].every(s=>{let[n,o]=s;return Math.min(...e.map(r=>{let{[n]:a}=r;return a}))-Math.max(...e.map(r=>{let{[o]:a}=r;return a}))>0})}function ze(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Ci(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function fs(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Ci(t,i,e[i]):t;return t}function po(t,e){t=fs(t,e);for(const i in t)t=t[i]<e[i]?Ci(t,i,e[i]):t;return t}const Fe={ratio:Ci,contain:fs,cover:po};function Ut(t,e,i,s){i===void 0&&(i=0),s===void 0&&(s=!1),e=y(e);const{length:n}=e;return n?(t=Dt(t)?Ct(t):t==="next"?i+1:t==="previous"?i-1:e.indexOf(j(t)),s?U(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function ft(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}class He{constructor(){this.promise=new Promise((e,i)=>{this.reject=i,this.resolve=e})}}function w(t,e,i){if(Tt(e)){for(const n in e)w(t,n,e[n]);return}if(R(i)){var s;return(s=j(t))==null?void 0:s.getAttribute(e)}else for(const n of y(t))mt(i)&&(i=i.call(n,w(n,e))),i===null?me(n,e):n.setAttribute(e,i)}function It(t,e){return y(t).some(i=>i.hasAttribute(e))}function me(t,e){const i=y(t);for(const s of e.split(" "))for(const n of i)n.removeAttribute(s)}function ot(t,e){for(const i of[e,"data-"+e])if(It(t,i))return w(t,i)}const go={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menui
|