var
/
www
/
html
/
servotec-doerpen
/
wp-includes
/
js
/
dist
| uid:33
annotations.min.js
[X]
/*! This file is auto-generated */ var wp;(wp||={}).annotations=(()=>{var X=Object.create;var l=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_=(t,e)=>{for(var n in e)l(t,n,{get:e[n],enumerable:!0})},S=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of z(e))!K.call(t,o)&&o!==n&&l(t,o,{get:()=>e[o],enumerable:!(r=q(e,o))||r.enumerable});return t};var s=(t,e,n)=>(n=t!=null?X(J(t)):{},S(e||!t||!t.__esModule?l(n,"default",{value:t,enumerable:!0}):n,t)),Q=t=>S(l({},"__esModule",{value:!0}),t);var g=m((Nt,D)=>{D.exports=window.wp.richText});var M=m((Tt,C)=>{C.exports=window.wp.i18n});var F=m((Ot,G)=>{G.exports=window.wp.hooks});var d=m((ht,B)=>{B.exports=window.wp.data});var _t={};_(_t,{store:()=>b});var k=s(g(),1);var P=s(M(),1),T=s(g(),1);var p="core/annotations";var E="core/annotation",N="annotation-text-";function Z(t,e=[]){return e.forEach(n=>{let{start:r,end:o}=n;r>t.text.length&&(r=t.text.length),o>t.text.length&&(o=t.text.length);let i=N+n.source,u=N+n.id;t=(0,T.applyFormat)(t,{type:E,attributes:{className:i,id:u}},r,o)}),t}function $(t){let e={};return t.forEach((n,r)=>{n=n||[],n=n.filter(o=>o.type===E),n.forEach(o=>{let{id:i}=o.attributes;i=i.replace(N,""),e.hasOwnProperty(i)||(e[i]={start:r}),e[i].end=r+1})}),e}function tt(t,e,{removeAnnotation:n,updateAnnotationRange:r}){t.forEach(o=>{let i=e[o.id];if(!i){n(o.id);return}let{start:u,end:x}=o;(u!==i.start||x!==i.end)&&r(o.id,i.start,i.end)})}var V={name:E,title:(0,P.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit(){return null},__experimentalGetPropsForEditableTreePreparation(t,{richTextIdentifier:e,blockClientId:n}){return{annotations:t(p).__experimentalGetAnnotationsForRichText(n,e)}},__experimentalCreatePrepareEditableTree({annotations:t}){return(e,n)=>{if(t.length===0)return e;let r={formats:e,text:n};return r=Z(r,t),r.formats}},__experimentalGetPropsForEditableTreeChangeHandler(t){return{removeAnnotation:t(p).__experimentalRemoveAnnotation,updateAnnotationRange:t(p).__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue(t){return e=>{let n=$(e),{removeAnnotation:r,updateAnnotationRange:o,annotations:i}=t;tt(i,n,{removeAnnotation:r,updateAnnotationRange:o})}}};var{name:et,...nt}=V;(0,k.registerFormatType)(et,nt);var j=s(F(),1),H=s(d(),1);var rt=t=>(0,H.withSelect)((e,{clientId:n,className:r})=>({className:e(p).__experimentalGetAnnotationsForBlock(n).map(i=>"is-annotated-by-"+i.source).concat(r).filter(Boolean).join(" ")}))(t);(0,j.addFilter)("editor.BlockListBlock","core/annotations",rt);var f=s(d(),1);function L(t,e){let n=t.filter(e);return t.length===n.length?t:n}var v=(t,e)=>Object.entries(t).reduce((n,[r,o])=>({...n,[r]:e(o)}),{});function ot(t){return typeof t.start=="number"&&typeof t.end=="number"&&t.start<=t.end}function it(t={},e){switch(e.type){case"ANNOTATION_ADD":let n=e.blockClientId,r={id:e.id,blockClientId:n,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if(r.selector==="range"&&!ot(r.range))return t;let o=t?.[n]??[];return{...t,[n]:[...o,r]};case"ANNOTATION_REMOVE":return v(t,i=>L(i,u=>u.id!==e.annotationId));case"ANNOTATION_UPDATE_RANGE":return v(t,i=>{let u=!1,x=i.map(A=>A.id===e.annotationId?(u=!0,{...A,range:{start:e.start,end:e.end}}):A);return u?x:i});case"ANNOTATION_REMOVE_SOURCE":return v(t,i=>L(i,u=>u.source!==e.source))}return t}var W=it;var O={};_(O,{__experimentalGetAllAnnotationsForBlock:()=>ut,__experimentalGetAnnotations:()=>st,__experimentalGetAnnotationsForBlock:()=>at,__experimentalGetAnnotationsForRichText:()=>pt});var R=s(d(),1),y=[],at=(0,R.createSelector)((t,e)=>(t?.[e]??[]).filter(n=>n.selector==="block"),(t,e)=>[t?.[e]??y]);function ut(t,e){return t?.[e]??y}var pt=(0,R.createSelector)((t,e,n)=>(t?.[e]??[]).filter(r=>r.selector==="range"&&n===r.richTextIdentifier).map(r=>{let{range:o,...i}=r;return{...o,...i}}),(t,e)=>[t?.[e]??y]);function st(t){return Object.values(t).flat()}var U={};_(U,{__experimentalAddAnnotation:()=>ct,__experimentalRemoveAnnotation:()=>ft,__experimentalRemoveAnnotationsBySource:()=>At,__experimentalUpdateAnnotationRange:()=>xt});var c,lt=new Uint8Array(16);function h(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(lt)}var a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function Y(t,e=0){return a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]}var mt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),I={randomUUID:mt};function dt(t,e,n){if(I.randomUUID&&!e&&!t)return I.randomUUID();t=t||{};let r=t.random||(t.rng||h)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let o=0;o<16;++o)e[n+o]=r[o];return e}return Y(r)}var w=dt;function ct({blockClientId:t,richTextIdentifier:e=null,range:n=null,selector:r="range",source:o="default",id:i=w()}){let u={type:"ANNOTATION_ADD",id:i,blockClientId:t,richTextIdentifier:e,source:o,selector:r};return r==="range"&&(u.range=n),u}function ft(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function xt(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function At(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}var b=(0,f.createReduxStore)(p,{reducer:W,selectors:O,actions:U});(0,f.register)(b);return Q(_t);})();
development/
-
O
R
D
script-modules/
-
O
R
D
vendor/
-
O
R
D
a11y.js
5.5K
V
E
R
D
a11y.min.js
2.4K
V
E
R
D
annotations.min.js
5.6K
V
E
R
D
api-fetch.js
17.5K
V
E
R
D
api-fetch.min.js
6.3K
V
E
R
D
autop.js
9.7K
V
E
R
D
autop.min.js
5.5K
V
E
R
D
base-styles.js
48
V
E
R
D
base-styles.min.js
75
V
E
R
D
blob.js
2.3K
V
E
R
D
blob.min.js
1.2K
V
E
R
D
block-directory.js
55.7K
V
E
R
D
block-directory.min.js
22K
V
E
R
D
block-editor.min.js
1M
V
E
R
D
block-library.js
2.6M
V
E
R
D
block-library.min.js
1.1M
V
E
R
D
block-serialization-default-parser.js
6.5K
V
E
R
D
block-serialization-default-parser.min.js
2.4K
V
E
R
D
block-serialization-spec-parser.js
50.5K
V
E
R
D
block-serialization-spec-parser.min.js
10.4K
V
E
R
D
blocks.js
381.1K
V
E
R
D
blocks.min.js
180.6K
V
E
R
D
commands.js
151.7K
V
E
R
D
commands.min.js
63.1K
V
E
R
D
components.js
3.8M
V
E
R
D
components.min.js
786.3K
V
E
R
D
compose.js
80.8K
V
E
R
D
compose.min.js
28.2K
V
E
R
D
core-commands.js
28.7K
V
E
R
D
core-commands.min.js
11.9K
V
E
R
D
core-data.js
612K
V
E
R
D
core-data.min.js
210.5K
V
E
R
D
customize-widgets.min.js
36.6K
V
E
R
D
data-controls.min.js
1.8K
V
E
R
D
date.js
176.3K
V
E
R
D
date.min.js
141.2K
V
E
R
D
deprecated.js
3K
V
E
R
D
deprecated.min.js
1.3K
V
E
R
D
dom-ready.js
1.5K
V
E
R
D
dom-ready.min.js
818
V
E
R
D
dom.js
34.6K
V
E
R
D
dom.min.js
12.7K
V
E
R
D
edit-site.js
1.7M
V
E
R
D
edit-site.min.js
684.5K
V
E
R
D
element.js
27.9K
V
E
R
D
element.min.js
12.2K
V
E
R
D
escape-html.js
2.3K
V
E
R
D
escape-html.min.js
1.1K
V
E
R
D
format-library.js
73.3K
V
E
R
D
format-library.min.js
28.9K
V
E
R
D
hooks.js
12K
V
E
R
D
hooks.min.js
4.9K
V
E
R
D
html-entities.js
1.6K
V
E
R
D
html-entities.min.js
879
V
E
R
D
i18n.js
15.3K
V
E
R
D
i18n.min.js
5.6K
V
E
R
D
is-shallow-equal.js
2.7K
V
E
R
D
is-shallow-equal.min.js
1.1K
V
E
R
D
keyboard-shortcuts.js
9.7K
V
E
R
D
keyboard-shortcuts.min.js
3.4K
V
E
R
D
list-reusable-blocks.js
13.1K
V
E
R
D
list-reusable-blocks.min.js
5.2K
V
E
R
D
media-utils.js
637.1K
V
E
R
D
media-utils.min.js
237.6K
V
E
R
D
notices.js
10.1K
V
E
R
D
notices.min.js
4.4K
V
E
R
D
nux.js
10.3K
V
E
R
D
nux.min.js
4K
V
E
R
D
plugins.min.js
4.8K
V
E
R
D
preferences-persistence.js
17.2K
V
E
R
D
preferences-persistence.min.js
5.5K
V
E
R
D
preferences.js
21.1K
V
E
R
D
preferences.min.js
7.7K
V
E
R
D
primitives.js
5.1K
V
E
R
D
primitives.min.js
2K
V
E
R
D
private-apis.js
4.1K
V
E
R
D
private-apis.min.js
2.7K
V
E
R
D
react-i18n.js
3.9K
V
E
R
D
react-i18n.min.js
1.5K
V
E
R
D
redux-routine.js
24.7K
V
E
R
D
redux-routine.min.js
9.6K
V
E
R
D
reusable-blocks.js
20.5K
V
E
R
D
reusable-blocks.min.js
7.2K
V
E
R
D
rich-text.js
97K
V
E
R
D
rich-text.min.js
39.9K
V
E
R
D
router.js
36.1K
V
E
R
D
router.min.js
14.1K
V
E
R
D
style-engine.js
17.6K
V
E
R
D
style-engine.min.js
6.4K
V
E
R
D
theme.min.js
56.1K
V
E
R
D
token-list.js
6.1K
V
E
R
D
token-list.min.js
1.6K
V
E
R
D
undo-manager.js
5.3K
V
E
R
D
undo-manager.min.js
1.7K
V
E
R
D
upload-media.js
55.7K
V
E
R
D
upload-media.min.js
23.1K
V
E
R
D
url.js
23.4K
V
E
R
D
url.min.js
10.1K
V
E
R
D
viewport.js
6.6K
V
E
R
D
viewport.min.js
2.2K
V
E
R
D
warning.js
1.5K
V
E
R
D
warning.min.js
755
V
E
R
D
widgets.js
50.1K
V
E
R
D
widgets.min.js
20.8K
V
E
R
D
wordcount.js
6.9K
V
E
R
D
wordcount.min.js
2.4K
V
E
R
D