| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 var bt=Object.create;var T=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var _t=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,Ut=Object.prototype.hasOwnProperty;var c=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ot=(t,e,a,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of _t(e))!Ut.call(t,o)&&o!==a&&T(t,o,{get:()=>e[o],enumerable:!(r=vt(e,o))||r.enumerable});return t};var n=(t,e,a)=>(a=t!=null?bt(xt(t)):{},Ot(e||!t||!t.__esModule?T(a,"default",{value:t,enumerable:!0}):a,t));var _=c((Wt,L)=>{L.exports=window.wp.i18n});var k=c((Yt,D)=>{D.exports=window.wp.patterns});var M=c(($t,F)=>{F.exports=window.wp.privateApis});var S=c((te,z)=>{z.exports=window.ReactJSXRuntime});var ut=c((ce,x)=>{var ft={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",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ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},st=Object.keys(ft).join("|"),zt=new RegExp(st,"g"),Ht=new RegExp(st,"");function qt(t){return ft[t]}var lt=function(t){return t.replace(zt,qt)},Zt=function(t){return!!t.match(Ht)};x.exports=lt;x.exports.has=Zt;x.exports.remove=lt});var nt=c((ye,it)=>{it.exports=window.wp.blob});var mt=c((he,dt)=>{dt.exports=window.wp.primitives});var ct=c((ve,pt)=>{pt.exports=window.wp.htmlEntities});var H=n(_(),1),q=n(k(),1);var N=n(M(),1),{lock:Kt,unlock:V}=(0,N.__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/core-actions");var Z=n(S(),1),{CreatePatternModalContents:At,useDuplicatePatternProps:Et}=V(q.privateApis),St={isEligible:t=>t.type!=="wp_template_part",RenderModal:({items:t,closeModal:e})=>{let[a]=t,r=Et({pattern:a,onSuccess:()=>e?.()});return(0,Z.jsx)(At,{onClose:e,confirmLabel:(0,H._x)("Duplicate","action label"),...r})}},G=St;var g=function(){return g=Object.assign||function(e){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f])}return e},g.apply(this,arguments)};function X(t){return t.toLowerCase()}var It=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],jt=/[^A-Z0-9]+/gi;function W(t,e){e===void 0&&(e={});for(var a=e.splitRegexp,r=a===void 0?It:a,o=e.stripRegexp,f=o===void 0?jt:o,l=e.transform,u=l===void 0?X:l,m=e.delimiter,p=m===void 0?" ":m,i=J(J(t,r,"$1\0$2"),f,"\0"),s=0,h=i.length;i.charAt(s)==="\0";)s++;for(;i.charAt(h-1)==="\0";)h--;return i.slice(s,h).split("\0").map(u).join(p)}function J(t,e,a){return e instanceof RegExp?t.replace(e,a):e.reduce(function(r,o){return r.replace(o,a)},t)}function Y(t,e){return e===void 0&&(e={}),W(t,g({delimiter:"."},e))}function I(t,e){return e===void 0&&(e={}),Y(t,g({delimiter:"-"},e))}"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(t,e,a){let r=Number(0xffffffffn&e),o=Number(e>>32n);this.setUint32(t+(a?0:4),r,a),this.setUint32(t+(a?4:0),o,a)}});var b=t=>new DataView(new ArrayBuffer(t)),d=t=>new Uint8Array(t.buffer||t),w=t=>new TextEncoder().encode(String(t)),y=t=>Math.min(4294967295,Number(t)),$=t=>Math.min(65535,Number(t));function Pt(t,e){if(e===void 0||e instanceof Date||(e=new Date(e)),t instanceof File)return{isFile:1,t:e||new Date(t.lastModified),i:t.stream()};if(t instanceof Response)return{isFile:1,t:e||new Date(t.headers.get("Last-Modified")||Date.now()),i:t.body};if(e===void 0)e=new Date;else if(isNaN(e))throw new Error("Invalid modification date.");if(t===void 0)return{isFile:0,t:e};if(typeof t=="string")return{isFile:1,t:e,i:w(t)};if(t instanceof Blob)return{isFile:1,t:e,i:t.stream()};if(t instanceof Uint8Array||t instanceof ReadableStream)return{isFile:1,t:e,i:t};if(t instanceof ArrayBuffer||ArrayBuffer.isView(t))return{isFile:1,t:e,i:d(t)};if(Symbol.asyncIterator in t)return{isFile:1,t:e,i:Q(t[Symbol.asyncIterator]())};throw new TypeError("Unsupported input format.")}function Q(t,e=t){return new ReadableStream({async pull(a){let r=0;for(;a.desiredSize>r;){let o=await t.next();if(!o.value){a.close();break}{let f=Rt(o.value);a.enqueue(f),r+=f.byteLength}}},cancel(a){e.throw?.(a)}})}function Rt(t){return typeof t=="string"?w(t):t instanceof Uint8Array?t:d(t)}function tt(t,e,a){let[r,o]=(function(f){return f?f instanceof Uint8Array?[f,1]:ArrayBuffer.isView(f)||f instanceof ArrayBuffer?[d(f),1]:[w(f),0]:[void 0,0]})(e);if(t instanceof File)return{o:j(r||w(t.name)),u:BigInt(t.size),l:o};if(t instanceof Response){let f=t.headers.get("content-disposition"),l=f&&f.match(/;\s*filename\*?=["']?(.*?)["']?$/i),u=l&&l[1]||t.url&&new URL(t.url).pathname.split("/").findLast(Boolean),m=u&&decodeURIComponent(u),p=a||+t.headers.get("content-length");return{o:j(r||w(m)),u:BigInt(p),l:o}}return r=j(r,t!==void 0||a!==void 0),typeof t=="string"?{o:r,u:BigInt(w(t).length),l:o}:t instanceof Blob?{o:r,u:BigInt(t.size),l:o}:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?{o:r,u:BigInt(t.byteLength),l:o}:{o:r,u:Bt(t,a),l:o}}function Bt(t,e){return e>-1?BigInt(e):t?void 0:0n}function j(t,e=1){if(!t||t.every((a=>a===47)))throw new Error("The file must have a name.");if(e)for(;t[t.length-1]===47;)t=t.subarray(0,-1);else t[t.length-1]!==47&&(t=new Uint8Array([...t,47]));return t}var et=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let a=0;a<8;++a)e=e>>>1^(1&e&&3988292384);et[t]=e}function K(t,e=0){e^=-1;for(var a=0,r=t.length;a<r;a++)e=e>>>8^et[255&e^t[a]];return(-1^e)>>>0}function at(t,e,a=0){let r=t.getSeconds()>>1|t.getMinutes()<<5|t.getHours()<<11,o=t.getDate()|t.getMonth()+1<<5|t.getFullYear()-1980<<9;e.setUint16(a,r,1),e.setUint16(a+2,o,1)}function Ct({o:t,l:e},a){return 8*(!e||(a??(function(r){try{Tt.decode(r)}catch{return 0}return 1})(t)))}var Tt=new TextDecoder("utf8",{fatal:1});function Lt(t,e=0){let a=b(30);return a.setUint32(0,1347093252),a.setUint32(4,754976768|e),at(t.t,a,10),a.setUint16(26,t.o.length,1),d(a)}async function*Dt(t){let{i:e}=t;if("then"in e&&(e=await e),e instanceof Uint8Array)yield e,t.m=K(e,0),t.u=BigInt(e.length);else{t.u=0n;let a=e.getReader();for(;;){let{value:r,done:o}=await a.read();if(o)break;t.m=K(r,t.m),t.u+=BigInt(r.length),yield r}}}function kt(t,e){let a=b(16+(e?8:0));return a.setUint32(0,1347094280),a.setUint32(4,t.isFile?t.m:0,1),e?(a.setBigUint64(8,t.u,1),a.setBigUint64(16,t.u,1)):(a.setUint32(8,y(t.u),1),a.setUint32(12,y(t.u),1)),d(a)}function Ft(t,e,a=0,r=0){let o=b(46);return o.setUint32(0,1347092738),o.setUint32(4,755182848),o.setUint16(8,2048|a),at(t.t,o,12),o.setUint32(16,t.isFile?t.m:0,1),o.setUint32(20,y(t.u),1),o.setUint32(24,y(t.u),1),o.setUint16(28,t.o.length,1),o.setUint16(30,r,1),o.setUint16(40,t.isFile?33204:16893,1),o.setUint32(42,y(e),1),d(o)}function Mt(t,e,a){let r=b(a);return r.setUint16(0,1,1),r.setUint16(2,a-4,1),16&a&&(r.setBigUint64(4,t.u,1),r.setBigUint64(12,t.u,1)),r.setBigUint64(a-8,e,1),d(r)}function rt(t){return t instanceof File||t instanceof Response?[[t],[t]]:[[t.input,t.name,t.size],[t.input,t.lastModified]]}var Nt=t=>(function(e){let a=BigInt(22),r=0n,o=0;for(let f of e){if(!f.o)throw new Error("Every file must have a non-empty name.");if(f.u===void 0)throw new Error(`Missing size for file "$new TextDecoder().decode(f.o)}".`);let l=f.u>=0xffffffffn,u=r>=0xffffffffn;r+=BigInt(46+f.o.length+(l&&8))+f.u,a+=BigInt(f.o.length+46+(12*u|28*l)),o||(o=l)}return(o||r>=0xffffffffn)&&(a+=BigInt(76)),a+r})((function*(e){for(let a of e)yield tt(...rt(a)[0])})(t));function ot(t,e={}){let a={"Content-Type":"application/zip","Content-Disposition":"attachment"};return(typeof e.length=="bigint"||Number.isInteger(e.length))&&e.length>0&&(a["Content-Length"]=String(e.length)),e.metadata&&(a["Content-Length"]=String(Nt(e.metadata))),new Response(Vt(t,e),{headers:a})}function Vt(t,e={}){let a=(function(r){let o=r[Symbol.iterator in r?Symbol.iterator:Symbol.asyncIterator]();return{async next(){let f=await o.next();if(f.done)return f;let[l,u]=rt(f.value);return{done:0,value:Object.assign(Pt(...u),tt(...l))}},throw:o.throw?.bind(o),[Symbol.asyncIterator](){return this}}})(t);return Q((async function*(r,o){let f=[],l=0n,u=0n,m=0;for await(let s of r){let h=Ct(s,o.buffersAreUTF8);yield Lt(s,h),yield new Uint8Array(s.o),s.isFile&&(yield*Dt(s));let v=s.u>=0xffffffffn,E=12*(l>=0xffffffffn)|28*v;yield kt(s,v),f.push(Ft(s,l,h,E)),f.push(s.o),E&&f.push(Mt(s,l,E)),v&&(l+=8n),u++,l+=BigInt(46+s.o.length)+s.u,m||(m=v)}let p=0n;for(let s of f)yield s,p+=BigInt(s.length);if(m||l>=0xffffffffn){let s=b(76);s.setUint32(0,1347094022),s.setBigUint64(4,BigInt(44),1),s.setUint32(12,755182848),s.setBigUint64(24,u,1),s.setBigUint64(32,u,1),s.setBigUint64(40,p,1),s.setBigUint64(48,l,1),s.setUint32(56,1347094023),s.setBigUint64(64,l+p,1),s.setUint32(72,1,1),yield d(s)}let i=b(22);i.setUint32(0,1347093766),i.setUint16(8,$(u),1),i.setUint16(10,$(u),1),i.setUint32(12,y(p),1),i.setUint32(16,y(l),1),yield d(i)})(a,e),a)}var B=n(ut(),1),C=n(nt(),1),gt=n(_(),1);var U=n(mt(),1),P=n(S(),1),R=(0,P.jsx)(U.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,P.jsx)(U.Path,{d:"M12 3V16M6 10.5L12 16L17.5 10.5M4.75 15V19.25H19.25V15"})});var O=n(ct(),1),yt=n(_(),1);function A(t,e=(0,yt.__)("(no title)")){let a="";return typeof t.title=="string"?a=(0,O.decodeEntities)(t.title):t.title&&"rendered"in t.title?a=(0,O.decodeEntities)(t.title.rendered):t.title&&"raw"in t.title&&(a=(0,O.decodeEntities)(t.title.raw)),a||e}function ht(t){return JSON.stringify({__file:t.type,title:A(t),content:typeof t.content=="string"?t.content:t.content?.raw,syncStatus:t.wp_pattern_sync_status},null,2)}var Gt={icon:R,isEligible:t=>t.type==="wp_block",callback:async t=>{if(t.length===1)return(0,C.downloadBlob)(`$I((0,B.default)(A(t[0])||t[0].slug))}.json`,ht(t[0]),"application/json");let e={},a=t.map(r=>{let o=I((0,B.default)(A(r)||r.slug));return e[o]=(e[o]||0)+1,{name:`$o+(e[o]>1?"-"+(e[o]-1):"")}.json`,lastModified:new Date,input:ht(r)}});return(0,C.downloadBlob)((0,gt.__)("patterns-export")+".zip",await ot(a).blob(),"application/zip")}},wt=Gt;var Xt={"duplicate-pattern":G,"export-pattern":wt},je=Xt;export{je as default};
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Oct 21 08:20:34 2026 | Cross-referenced by PHPXref |