3 lines
56 KiB
JavaScript
3 lines
56 KiB
JavaScript
/*! This file is auto-generated */
|
|||
|
|
var wp;(wp||={}).theme=(()=>{var ao=Object.create;var Le=Object.defineProperty;var no=Object.getOwnPropertyDescriptor;var so=Object.getOwnPropertyNames;var io=Object.getPrototypeOf,lo=Object.prototype.hasOwnProperty;var Ve=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fo=(t,e)=>{for(var r in e)Le(t,r,{get:e[r],enumerable:!0})},Nt=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of so(e))!lo.call(t,a)&&a!==r&&Le(t,a,{get:()=>e[a],enumerable:!(o=no(e,a))||o.enumerable});return t};var de=(t,e,r)=>(r=t!=null?ao(io(t)):{},Nt(e||!t||!t.__esModule?Le(r,"default",{value:t,enumerable:!0}):r,t)),co=t=>Nt(Le({},"__esModule",{value:!0}),t);var Pt=Ve((ya,Bt)=>{Bt.exports=window.wp.privateApis});var Re=Ve((va,Ft)=>{Ft.exports=window.wp.element});var Ur=Ve((Mf,Kr)=>{Kr.exports=window.ReactJSXRuntime});var wa={};fo(wa,{privateApis:()=>At});var Ht=de(Pt(),1),{lock:$t,unlock:Sa}=(0,Ht.__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 Ue=de(Re(),1);var jt=de(Re(),1),Ie=(0,jt.createContext)({resolvedSettings:{color:{}}});function et(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function M(t,e,r=[0,0,0]){let o=et(t,e[0]),a=et(t,e[1]),s=et(t,e[2]);return r[0]=o,r[1]=a,r[2]=s,r}function Ae(t){return ee(t)==="string"}function ee(t){return(Object.prototype.toString.call(t).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Oe(t,{precision:e=16,unit:r}){return L(t)?"none":(t=+tt(t,e),t+(r??""))}function L(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 a=10**(e-o);return Math.floor(t*a+.5)/a}function rt(t,e,r){return isNaN(t)?e:isNaN(e)?t:t+(e-t)*r}function uo(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],uo(t[0],t[1],r))}function Te(t,e,r){return Math.max(Math.min(r,e),t)}function Ee(t,e){return Math.sign(t)===Math.sign(e)?t:-t}function O(t,e){return Ee(Math.abs(t)**e,t)}function at(t,e){return e===0?0:t/e}function Gt(t,e,r=0,o=t.length){for(;r<o;){let a=r+o>>1;t[a]<e?r=a+1:o=a}return r}function ie(t,e){if(t instanceof e)return!0;let r=e.name;for(;t;){let o=Object.getPrototypeOf(t),a=o?.constructor?.name;if(a===r)return!0;if(!a||a==="Object")return!1;t=o}return!1}var le=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:a,max:s}=o.groups;(a||s)&&(this.range=[+a,+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,a=this.unit;return e=ot(this.coordRange,o,e),Oe(e,{unit:a,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 ie(e,this)?e:new this(e,r)}};var nt=Symbol("instance"),fe=class t{type;name;spaceCoords;coords;id;alpha;constructor(e,r=e.space){e[nt]=this,this.type="function",this.name="color",Object.assign(this,e),this.space=r,this.type!=="custom"&&(this.spaceCoords=Object.values(r.coords),this.coords||(this.coords=this.spaceCoords.map(o=>{let a=["<number>","<percentage>"];return o.type==="angle"&&a.push("<angle>"),a})),this.coords=this.coords.map((o,a)=>{let s=this.spaceCoords[a
|