sirius-press/wordpress/wp-includes/js/dist/theme.min.js

6 lines
60 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
(function() {
var wp;(wp||={}).theme=(()=>{var po=Object.create;var Le=Object.defineProperty;var go=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty;var ge=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Co=(t,e)=>{for(var r in e)Le(t,r,{get:e[r],enumerable:!0})},zt=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ho(e))!wo.call(t,n)&&n!==r&&Le(t,n,{get:()=>e[n],enumerable:!(o=go(e,n))||o.enumerable});return t};var V=(t,e,r)=>(r=t!=null?po(bo(t)):{},zt(e||!t||!t.__esModule?Le(r,"default",{value:t,enumerable:!0}):r,t)),yo=t=>zt(Le({},"__esModule",{value:!0}),t);var Ht=ge((Tn,Bt)=>{Bt.exports=window.wp.deprecated});var $t=ge((_n,Ft)=>{Ft.exports=window.wp.privateApis});var Ae=ge((Pn,qt)=>{qt.exports=window.wp.element});var Yt=ge((Nn,Wt)=>{Wt.exports=window.wp.compose});var oo=ge((wl,ro)=>{ro.exports=window.ReactJSXRuntime});var En={};Co(En,{ThemeProvider:()=>Ve,privateApis:()=>Ot});var io=V(Ht(),1);var jt=V($t(),1),{lock:Gt,unlock:In}=(0,jt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/theme");var Ke=V(Ae(),1),no=V(Yt(),1);var Xt=V(Ae(),1),Ee=(0,Xt.createContext)({resolvedSettings:{color:{},cursor:void 0,cornerRadius:void 0}});function et(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,r=[0,0,0]){let o=et(t,e[0]),n=et(t,e[1]),s=et(t,e[2]);return r[0]=o,r[1]=n,r[2]=s,r}function Oe(t){return Q(t)==="string"}function Q(t){return(Object.prototype.toString.call(t).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Te(t,{precision:e=16,unit:r}){return R(t)?"none":(t=+tt(t,e),t+(r??""))}function R(t){return t===null}function tt(t,e){if(t===0)return 0;let r=~~t,o=0;r&&e&&(o=~~Math.log10(Math.abs(r))+1);let n=10**(e-o);return Math.floor(t*n+.5)/n}function rt(t,e,r){return isNaN(t)?e:isNaN(e)?t:t+(e-t)*r}function vo(t,e,r){return(r-t)/(e-t)}function ot(t,e,r){return!t||!e||t===e||t[0]===e[0]&&t[1]===e[1]||isNaN(r)||r===null?r:rt(e[0],e[1],vo(t[0],t[1],r))}function _e(t,e,r){return Math.max(Math.min(r,e),t)}function Ie(t,e){return Math.sign(t)===Math.sign(e)?t:-t}function O(t,e){return Ie(Math.abs(t)**e,t)}function nt(t,e){return e===0?0:t/e}function Jt(t,e,r=0,o=t.length){for(;r<o;){let n=r+o>>1;t[n]<e?r=n+1:o=n}return r}function se(t,e){if(t instanceof e)return!0;let r=e.name;for(;t;){let o=Object.getPrototypeOf(t),n=o?.constructor?.name;if(n===r)return!0;if(!n||n==="Object")return!1;t=o}return!1}var ie=class{type;coordMeta;coordRange;range;constructor(e,r){if(typeof e=="object"&&(this.coordMeta=e),r&&(this.coordMeta=r,this.coordRange=r.range??r.refRange),typeof e=="string"){let o=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!o)throw new TypeError(`Cannot parse ${e} as a type definition.`);this.type=o.groups.type;let{min:n,max:s}=o.groups;(n||s)&&(this.range=[+n,+s])}}get computedRange(){return this.range?this.range:this.type==="<percentage>"?this.percentageRange():this.type==="<angle>"?[0,360]:null}get unit(){return this.type==="<percentage>"?"%":this.type==="<angle>"?"deg":""}resolve(e){if(this.type==="<angle>")return e;let r=this.computedRange,o=this.coordRange;return this.type==="<percentage>"&&(o??=this.percentageRange()),ot(r,o,e)}serialize(e,r){let o=this.type==="<percentage>"?this.percentageRange(100):this.computedRange,n=this.unit;return e=ot(this.coordRange,o,e),Te(e,{unit:n,precision:r})}toString(){let e=this.type;if(this.range){let[r="",o=""]=this.range;e+=`[${r},${o}]`}return e}percentageRange(e=1){let r;return this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?r=[0,1]:r=[-1,1],[r[0]*e,r[1]*e]}static get(e,r){return se(e,this)?e:new this(e,r)}};var at=Symbol("instance"),ce=class t{type;name;spaceCoords;coords;id;alpha;constructor(e,r=e.space){e[at]=this,this.type="function",this.name="color",Object.assign(this,e),this.space=r,this.type!=="custom"&&(this.spaceCoords=Object.values(r.coords),this.coor
(window.wp ||= {}).theme = wp.theme;
})();