this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="23Y4")}({"1ZqX":function(t,n){!function(){t.exports=this.wp.data}()},"23Y4":function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),e.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return O})),e.d(r,"__experimentalGetAnnotationsForRichText",(function(){return m})),e.d(r,"__experimentalGetAnnotations",(function(){return x}));var o={};e.r(o),e.d(o,"__experimentalAddAnnotation",(function(){return A})),e.d(o,"__experimentalRemoveAnnotation",(function(){return j})),e.d(o,"__experimentalUpdateAnnotationRange",(function(){return _})),e.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return T}));var a=e("1ZqX"),i=e("rePB"),u=e("KQm4"),c=e("vpQ4"),f=e("YLtl");function l(t,n){var e=t.filter(n);return t.length===e.length?t:e}function s(t){return Object(f.isNumber)(t.start)&&Object(f.isNumber)(t.end)&&t.start<=t.end}var p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":var e=n.blockClientId,r={id:n.id,blockClientId:e,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===r.selector&&!s(r.range))return t;var o=Object(f.get)(t,e,[]);return Object(c.a)({},t,Object(i.a)({},e,[].concat(Object(u.a)(o),[r])));case"ANNOTATION_REMOVE":return Object(f.mapValues)(t,(function(t){return l(t,(function(t){return t.id!==n.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(f.mapValues)(t,(function(t){var e=!1,r=t.map((function(t){return t.id===n.annotationId?(e=!0,Object(c.a)({},t,{range:{start:n.start,end:n.end}})):t}));return e?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(f.mapValues)(t,(function(t){return l(t,(function(t){return t.source!==n.source}))}))}return t},d=e("Ff2n"),v=e("pPDe"),b=[],g=Object(v.a)((function(t,n){return Object(f.get)(t,n,[]).filter((function(t){return"block"===t.selector}))}),(function(t,n){return[Object(f.get)(t,n,b)]})),O=function(t,n){return Object(f.get)(t,n,b)},m=Object(v.a)((function(t,n,e){return Object(f.get)(t,n,[]).filter((function(t){return"range"===t.selector&&e===t.richTextIdentifier})).map((function(t){var n=t.range,e=Object(d.a)(t,["range"]);return Object(c.a)({},n,e)}))}),(function(t,n){return[Object(f.get)(t,n,b)]}));function x(t){return Object(f.flatMap)(t,(function(t){return t}))}var y=e("xk4V"),h=e.n(y);function A(t){var n=t.blockClientId,e=t.richTextIdentifier,r=void 0===e?null:e,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,l=t.id,s={type:"ANNOTATION_ADD",id:void 0===l?h()():l,blockClientId:n,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(s.range=a),s}function j(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function _(t,n,e){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:n,end:e}}function T(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:p,selectors:r,actions:o});var N=e("qRz9"),w=e("4eJC"),I=e.n(w),E=e("l3Sj");var R=I()((function(t){var n=t.annotations;return function(t,e){if(0===n.length)return t;var r={formats:t,text:e};return(r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+n.source,a="annotation-text-"+n.id;t=Object(N.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}})),P=I()((function(t){return{annotations:t}})),k={name:"core/annotation",title:Object(E.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,n){var e=n.richTextIdentifier,r=n.blockClientId;return P(t("core/annotations").__experimentalGetAnnotationsForRichText(r,e))},__experimentalCreatePrepareEditableTree:R,__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},S=k.name,C=Object(d.a)(k,["name"]);Object(N.registerFormatType)(S,C);var D=e("g56x");Object(D.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).join(" ")}}))(t)}))},"25BE":function(t,n,e){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}e.d(n,"a",(function(){return r}))},"4eJC":function(t,n,e){t.exports=function(t,n){var e,r,o,a=0;function i(){var n,i,u=r,c=arguments.length;t:for(;u;){if(u.args.length===arguments.length){for(i=0;i>>((3&n)<<3)&255;return o}}},Ff2n:function(t,n,e){"use strict";function r(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},a=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},I2ZF:function(t,n){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},KQm4:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e("25BE");function o(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n