@rnacanvas/forms.edit 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Field.d.ts CHANGED
@@ -3,5 +3,10 @@ export declare class Field {
3
3
  readonly name: string;
4
4
  readonly domNode: HTMLLabelElement;
5
5
  constructor(name: string, inputElement: HTMLInputElement);
6
+ /**
7
+ * A URL with information about what the field controls.
8
+ */
9
+ get infoLink(): string;
10
+ set infoLink(infoLink: string);
6
11
  }
7
12
  //# sourceMappingURL=Field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../src/Field.ts"],"names":[],"mappings":"AAEA,qBAAa,KAAK;;IAKJ,QAAQ,CAAC,IAAI,EAAE,MAAM;IAJjC,QAAQ,CAAC,OAAO,mBAAmC;gBAI9B,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB;CAWlE"}
1
+ {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../src/Field.ts"],"names":[],"mappings":"AAEA,qBAAa,KAAK;;IAOJ,QAAQ,CAAC,IAAI,EAAE,MAAM;IANjC,QAAQ,CAAC,OAAO,mBAAmC;gBAM9B,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB;IAgBjE;;OAEG;IACH,IAAI,QAAQ,WAEX;IAED,IAAI,QAAQ,CAAC,QAAQ,QAAA,EAQpB;CACF"}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["forms.edit"]=t():e["forms.edit"]=t()}(this,(()=>(()=>{var e={56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],a=0;a<e.length;a++){var d=e[a],c=r.base?d[0]+r.base:d[0],l=s[c]||0,u="".concat(c," ").concat(l);s[c]=l+1;var h=n(u),f={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==h)t[h].references++,t[h].updater(f);else{var p=o(f,r);r.byIndex=a,t.splice(a,0,{identifier:u,updater:p,references:1})}i.push(u)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var d=r(e,o),c=0;c<s.length;c++){var l=n(s[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=d}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},139:function(e){var t;t=()=>(()=>{"use strict";var e={826:(e,t,n)=>{n.d(t,{A:()=>d,y:()=>a});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const d=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var d=this[a][0];null!=d&&(i[d]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&i[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],a=0;a<e.length;a++){var d=e[a],c=r.base?d[0]+r.base:d[0],l=s[c]||0,u="".concat(c," ").concat(l);s[c]=l+1;var h=n(u),f={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==h)t[h].references++,t[h].updater(f);else{var p=o(f,r);r.byIndex=a,t.splice(a,0,{identifier:u,updater:p,references:1})}i.push(u)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var d=r(e,o),c=0;c<s.length;c++){var l=n(s[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=d}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};n.r(r),n.d(r,{DragTranslater:()=>y});var o=n(72),s=n.n(o),i=n(825),a=n.n(i),d=n(659),c=n.n(d),l=n(56),u=n.n(l),h=n(540),f=n.n(h),p=n(113),m=n.n(p),v=n(826),w={};w.styleTagTransform=m(),w.setAttributes=u(),w.insert=c().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=f(),s()(v.A,w),v.A&&v.A.locals&&v.A.locals;class y{constructor(e){this.targetForm=e,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(e=>this.handleMouseDown(e))),window.addEventListener("mousemove",(e=>this.handleMouseMove(e))),window.addEventListener("mouseup",(e=>this.handleMouseUp(e))),e.addEventListener("mouseover",(t=>{t.target!==e||e.classList.add(v.y)})),e.addEventListener("mouseout",(t=>{t.target!==e||e.classList.remove(v.y)}))}get currentTranslation(){let e=this.targetForm.getBoundingClientRect(),t=e.x,n=e.y,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let o=this.targetForm.getBoundingClientRect(),s=o.x,i=o.y;return this.targetForm.style.translate=r,{x:t-s,y:n-i}}set currentTranslation(e){this.targetForm.style.translate=`${e.x}px ${e.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(e){this.lastMouseDown=e,this.mouseIsDown=!0}handleMouseMove(e){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let t=this.currentTranslation;this.currentTranslation={x:t.x+e.movementX,y:t.y+e.movementY}}handleMouseUp(e){this.mouseIsDown=!1}}return r})(),e.exports=t()},169:function(e){e.exports=(()=>{var e={986:function(e){e.exports=(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){var t=0;return e.forEach((function(e){return t+=e})),t}function r(e){return n(e)/e.length}function o(e){e.sort((function(e,t){return e-t}))}e.r(t),e.d(t,{areWithin:()=>h,average:()=>r,isBetweenExclusive:()=>u,isBetweenInclusive:()=>l,max:()=>c,mean:()=>r,median:()=>a,min:()=>d,sortNumbers:()=>o,sortNumbersAscending:()=>o,sortNumbersDescending:()=>f,sortedNumbers:()=>i,sortedNumbersAscending:()=>i,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function i(e){var t=s([],e,!0);return o(t),t}function a(e){if(0==e.length)return NaN;var t=i(e);if(t.length%2!=0)return t[Math.floor(t.length/2)];var n=t.length/2,o=n-1;return r([t[n],t[o]])}function d(e){if(0==e.length)return 1/0;var t=e[0];return e.slice(1).forEach((function(e){t=Math.min(t,e)})),t}function c(e){if(0==e.length)return-1/0;var t=e[0];return e.slice(1).forEach((function(e){t=Math.max(t,e)})),t}function l(e,t,n){return e>=t&&e<=n}function u(e,t,n){return e>t&&e<n}function h(e,t,n){return Math.abs(e-t)<=n}function f(e){o(e),e.reverse()}function p(e){var t=i(e);return t.reverse(),t}return t})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function e(e){if(0==e.length)throw new Error("The array of values is empty.");if(1==new Set(e).size)return e[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusValue:()=>e,mostCommonValue:()=>s});var t=n(986);class o{static of(e){return{in:t=>{let n=new Set([e]);return t.filter((e=>n.has(e)))}}}}function s(e){if(0==e.length)throw new Error("The array of values is empty.");let n=[...new Set(e)],r=n.map((t=>o.of(t).in(e).length)),s=(0,t.max)(r),i=n.findIndex((t=>o.of(t).in(e).length==s));if(i<0)throw new Error("Unable to find the most common value.");return n[i]}})(),r})()},290:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,_:()=>a});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const d=i},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var d=this[a][0];null!=d&&(i[d]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&i[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},419:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,P:()=>a});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 85px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const d=i},420:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,KQ:()=>a,UJ:()=>c,wx:()=>d});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 349px;\n height: 528px;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: #f4f5ff;\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 35px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 25px 0px 0px 25px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",d="Y7tezdMOsnQfs2CQtMUR",c="blLx0TnwxHwlX8qvUigb";const l=i},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},633:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,IU:()=>d,lf:()=>a});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,'.dimGBV0h2P1QB3V_Zhmc {\n display: flex;\n flex-direction: column;\n}\n\n.WOjw8GKoS54KQAOlumMa {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",d="WOjw8GKoS54KQAOlumMa";const c=i},659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,Z:()=>a});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,'.rIHrsark1WbeRGC9M1ZY {\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: text;\n\n pointer-events: auto;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY";const d=i},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Ie});var e=n(72),t=n.n(e),o=n(825),s=n.n(o),i=n(659),a=n.n(i),d=n(56),c=n.n(d),l=n(540),u=n.n(l),h=n(113),f=n.n(h),p=n(420),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=u(),t()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var v=n(633),w={};w.styleTagTransform=f(),w.setAttributes=c(),w.insert=a().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=u(),t()(v.Ay,w),v.Ay&&v.Ay.locals&&v.Ay.locals;var y=n(419),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=a().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u(),t()(y.A,g),y.A&&y.A.locals&&y.A.locals;var b,x;class N{constructor(e){b.add(this),this.props=e,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(y.P),this.domNode.addEventListener("blur",(()=>function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}(this,b,"m",x).call(this))),this.domNode.addEventListener("keydown",(e=>{"enter"==e.key.toLowerCase()&&this.domNode.blur()}))}}b=new WeakSet,x=function(){var e;(null===(e=this.props)||void 0===e?void 0:e.onSubmit)&&this.props.onSubmit()};var M=n(678),E={};E.styleTagTransform=f(),E.setAttributes=c(),E.insert=a().bind(null,"head"),E.domAPI=s(),E.insertStyleElement=u(),t()(M.A,E),M.A&&M.A.locals&&M.A.locals;var k;class T{constructor(e,t){this.name=e,this.domNode=document.createElement("label"),k.set(this,void 0),this.domNode.classList.add(M.Z),function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?o.call(e,n):o?o.value=n:t.set(e,n)}(this,k,t,"f");let n=document.createElement("span");n.textContent=e,n.style.marginLeft="8px",this.domNode.append(t,n)}}k=new WeakMap;var A,S,W,C,L,P,O,j,I,D,F,B,_,Q,U,z,R,H,K,G,V,X,q,J,Z,Y,$,ee,te,ne,re,oe,se,ie,ae,de,ce,le,ue,he,fe,pe=n(169),me=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},ve=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class we{constructor(e){A.add(this),this.domNode=document.createElement("div"),S.set(this,void 0),W.set(this,void 0),C.set(this,void 0),L.set(this,void 0),P.set(this,void 0),O.set(this,void 0),j.set(this,void 0),I.set(this,void 0),this.domNode.classList.add(v.lf),me(this,S,new ye(e),"f"),this.domNode.append(ve(this,S,"f").domNode),me(this,W,new ge(e),"f"),this.domNode.append(ve(this,W,"f").domNode),me(this,C,new be(e),"f"),this.domNode.append(ve(this,C,"f").domNode),me(this,L,new xe(e),"f"),this.domNode.append(ve(this,L,"f").domNode),me(this,P,new Ne(e),"f"),this.domNode.append(ve(this,P,"f").domNode),me(this,O,new Me(e),"f"),this.domNode.append(ve(this,O,"f").domNode),me(this,j,new Ee(e),"f"),this.domNode.append(ve(this,j,"f").domNode),me(this,I,new ke(e),"f"),this.domNode.append(ve(this,I,"f").domNode)}refresh(){ve(this,A,"a",D).forEach((e=>e.refresh()))}}S=new WeakMap,W=new WeakMap,C=new WeakMap,L=new WeakMap,P=new WeakMap,O=new WeakMap,j=new WeakMap,I=new WeakMap,A=new WeakSet,D=function(){return[ve(this,S,"f"),ve(this,W,"f"),ve(this,P,"f"),ve(this,O,"f")]};class ye{constructor(e){F.set(this,void 0),this.domNode=document.createElement("p"),B.set(this,document.createElement("span")),_.set(this,document.createElement("span")),me(this,F,e,"f"),this.domNode.classList.add(v.IU),ve(this,B,"f").style.fontWeight="700",this.domNode.append(ve(this,B,"f"),ve(this,_,"f")),ve(this,F,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let e=[...ve(this,F,"f").selectedBases].length;ve(this,B,"f").textContent=`${e}`,ve(this,_,"f").textContent=1==e?" base is selected.":" bases are selected."}}F=new WeakMap,B=new WeakMap,_=new WeakMap;class ge{constructor(e){Q.add(this),U.set(this,void 0),z.set(this,new N({onSubmit:()=>ve(this,Q,"m",H).call(this)})),R.set(this,void 0),me(this,U,e,"f"),me(this,R,new T("Text Content",ve(this,z,"f").domNode),"f"),this.domNode.style.marginTop="15px",ve(this,U,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ve(this,U,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return ve(this,R,"f").domNode}refresh(){let e=[...ve(this,U,"f").selectedBases];try{ve(this,z,"f").domNode.value=(0,pe.consensusValue)(e.map((e=>{var t;return null!==(t=e.textContent)&&void 0!==t?t:""})))}catch(e){ve(this,z,"f").domNode.value=""}}}U=new WeakMap,z=new WeakMap,R=new WeakMap,Q=new WeakSet,H=function(){var e;let t=null!==(e=ve(this,z,"f").domNode.value)&&void 0!==e?e:"";if(t=t.trim(),!t)return void this.refresh();let n=[...ve(this,U,"f").selectedBases];0==n.length||n.every((e=>e.textContent===t))||(ve(this,U,"f").pushUndoStack(),n.forEach((e=>e.maintainingCenterPoint((()=>e.textContent=t))))),this.refresh()};class be{constructor(e){K.set(this,void 0),G.set(this,void 0),V.set(this,void 0),me(this,K,e,"f"),me(this,G,new Te(e,"fill"),"f"),me(this,V,new T("Fill",ve(this,G,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ve(this,V,"f").domNode}refresh(){ve(this,G,"f").refresh()}}K=new WeakMap,G=new WeakMap,V=new WeakMap;class xe{constructor(e){X.set(this,void 0),q.set(this,void 0),J.set(this,void 0),me(this,X,e,"f"),me(this,q,new Te(e,"font-family"),"f"),me(this,J,new T("Font Family",ve(this,q,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ve(this,J,"f").domNode}refresh(){ve(this,q,"f").refresh()}}X=new WeakMap,q=new WeakMap,J=new WeakMap;class Ne{constructor(e){Z.set(this,void 0),Y.set(this,void 0),$.set(this,void 0),me(this,Z,e,"f"),me(this,Y,new Te(e,"font-size"),"f"),me(this,$,new T("Font Size",ve(this,Y,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ve(this,$,"f").domNode}refresh(){ve(this,Y,"f").refresh()}}Z=new WeakMap,Y=new WeakMap,$=new WeakMap;class Me{constructor(e){ee.set(this,void 0),te.set(this,void 0),ne.set(this,void 0),me(this,ee,e,"f"),me(this,te,new Te(e,"font-weight"),"f"),me(this,ne,new T("Font Weight",ve(this,te,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ve(this,ne,"f").domNode}refresh(){ve(this,te,"f").refresh()}}ee=new WeakMap,te=new WeakMap,ne=new WeakMap;class Ee{constructor(e){re.set(this,void 0),oe.set(this,void 0),se.set(this,void 0),me(this,re,e,"f"),me(this,oe,new Te(e,"font-style"),"f"),me(this,se,new T("Font Style",ve(this,oe,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ve(this,se,"f").domNode}refresh(){ve(this,oe,"f").refresh()}}re=new WeakMap,oe=new WeakMap,se=new WeakMap;class ke{constructor(e){ie.set(this,void 0),ae.set(this,void 0),de.set(this,void 0),me(this,ie,e,"f"),me(this,ae,new Te(e,"text-decoration"),"f"),me(this,de,new T("Text Decoration",ve(this,ae,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ve(this,de,"f").domNode}refresh(){ve(this,ae,"f").refresh()}}ie=new WeakMap,ae=new WeakMap,de=new WeakMap;class Te{constructor(e,t){ce.add(this),le.set(this,void 0),ue.set(this,void 0),he.set(this,new N({onSubmit:()=>ve(this,ce,"m",fe).call(this)})),me(this,le,e,"f"),me(this,ue,t,"f"),ve(this,le,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ve(this,le,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return ve(this,he,"f").domNode}refresh(){let e=[...ve(this,le,"f").selectedBases];try{ve(this,he,"f").domNode.value=(0,pe.consensusValue)(e.map((e=>{var t;return null!==(t=e.getAttribute(ve(this,ue,"f")))&&void 0!==t?t:""})))}catch(e){ve(this,he,"f").domNode.value=""}}}le=new WeakMap,ue=new WeakMap,he=new WeakMap,ce=new WeakSet,fe=function(){let e=ve(this,he,"f").domNode.value,t=[...ve(this,le,"f").selectedBases];0==t.length||t.every((t=>t.getAttribute(ve(this,ue,"f"))===e))||(ve(this,le,"f").pushUndoStack(),t.forEach((t=>t.maintainingCenterPoint((()=>t.setAttribute(ve(this,ue,"f"),e)))))),this.refresh()};var Ae=n(290),Se={};Se.styleTagTransform=f(),Se.setAttributes=c(),Se.insert=a().bind(null,"head"),Se.domAPI=s(),Se.insertStyleElement=u(),t()(Ae.A,Se),Ae.A&&Ae.A.locals&&Ae.A.locals;var We,Ce,Le,Pe=n(139),Oe=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},je=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Ie{constructor(e){We.set(this,void 0),this.domNode=document.createElement("div"),Ce.set(this,void 0),Le.set(this,void 0),Oe(this,We,e,"f"),this.domNode.classList.add(p.KQ);let t=document.createElement("p");t.classList.add(p.wx),t.textContent="Edit",this.domNode.append(t);let n=document.createElement("div");n.classList.add(p.UJ),this.domNode.append(n),Oe(this,Ce,new we(e),"f"),n.append(je(this,Ce,"f").domNode);let r=function(){let e=document.createElement("p");return e.classList.add(Ae._),e.textContent="Close",e}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),Oe(this,Le,new Pe.DragTranslater(this.domNode),"f")}appendTo(e){this.refresh(),this.reposition(),e.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){je(this,Ce,"f").refresh()}reposition(){je(this,Le,"f").untranslate()}}We=new WeakMap,Ce=new WeakMap,Le=new WeakMap})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["forms.edit"]=t():e["forms.edit"]=t()}(this,(()=>(()=>{var e={56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var s={},i=[],a=0;a<e.length;a++){var d=e[a],c=o.base?d[0]+o.base:d[0],l=s[c]||0,h="".concat(c," ").concat(l);s[c]=l+1;var f=n(h),u={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)t[f].references++,t[f].updater(u);else{var p=r(u,o);o.byIndex=a,t.splice(a,0,{identifier:h,updater:p,references:1})}i.push(h)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var s=o(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var d=o(e,r),c=0;c<s.length;c++){var l=n(s[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=d}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},139:function(e){var t;t=()=>(()=>{"use strict";var e={826:(e,t,n)=>{n.d(t,{A:()=>d,y:()=>a});var o=n(601),r=n.n(o),s=n(314),i=n.n(s)()(r());i.push([e.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const d=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var a=0;a<this.length;a++){var d=this[a][0];null!=d&&(i[d]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);o&&i[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var s={},i=[],a=0;a<e.length;a++){var d=e[a],c=o.base?d[0]+o.base:d[0],l=s[c]||0,h="".concat(c," ").concat(l);s[c]=l+1;var f=n(h),u={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(-1!==f)t[f].references++,t[f].updater(u);else{var p=r(u,o);o.byIndex=a,t.splice(a,0,{identifier:h,updater:p,references:1})}i.push(h)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var s=o(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var d=o(e,r),c=0;c<s.length;c++){var l=n(s[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}s=d}}},659:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={id:o,exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};n.r(o),n.d(o,{DragTranslater:()=>y});var r=n(72),s=n.n(r),i=n(825),a=n.n(i),d=n(659),c=n.n(d),l=n(56),h=n.n(l),f=n(540),u=n.n(f),p=n(113),m=n.n(p),v=n(826),w={};w.styleTagTransform=m(),w.setAttributes=h(),w.insert=c().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=u(),s()(v.A,w),v.A&&v.A.locals&&v.A.locals;class y{constructor(e){this.targetForm=e,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(e=>this.handleMouseDown(e))),window.addEventListener("mousemove",(e=>this.handleMouseMove(e))),window.addEventListener("mouseup",(e=>this.handleMouseUp(e))),e.addEventListener("mouseover",(t=>{t.target!==e||e.classList.add(v.y)})),e.addEventListener("mouseout",(t=>{t.target!==e||e.classList.remove(v.y)}))}get currentTranslation(){let e=this.targetForm.getBoundingClientRect(),t=e.x,n=e.y,o=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let r=this.targetForm.getBoundingClientRect(),s=r.x,i=r.y;return this.targetForm.style.translate=o,{x:t-s,y:n-i}}set currentTranslation(e){this.targetForm.style.translate=`${e.x}px ${e.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(e){this.lastMouseDown=e,this.mouseIsDown=!0}handleMouseMove(e){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let t=this.currentTranslation;this.currentTranslation={x:t.x+e.movementX,y:t.y+e.movementY}}handleMouseUp(e){this.mouseIsDown=!1}}return o})(),e.exports=t()},169:function(e){e.exports=(()=>{var e={986:function(e){e.exports=(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){var t=0;return e.forEach((function(e){return t+=e})),t}function o(e){return n(e)/e.length}function r(e){e.sort((function(e,t){return e-t}))}e.r(t),e.d(t,{areWithin:()=>f,average:()=>o,isBetweenExclusive:()=>h,isBetweenInclusive:()=>l,max:()=>c,mean:()=>o,median:()=>a,min:()=>d,sortNumbers:()=>r,sortNumbersAscending:()=>r,sortNumbersDescending:()=>u,sortedNumbers:()=>i,sortedNumbersAscending:()=>i,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,s=t.length;r<s;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function i(e){var t=s([],e,!0);return r(t),t}function a(e){if(0==e.length)return NaN;var t=i(e);if(t.length%2!=0)return t[Math.floor(t.length/2)];var n=t.length/2,r=n-1;return o([t[n],t[r]])}function d(e){if(0==e.length)return 1/0;var t=e[0];return e.slice(1).forEach((function(e){t=Math.min(t,e)})),t}function c(e){if(0==e.length)return-1/0;var t=e[0];return e.slice(1).forEach((function(e){t=Math.max(t,e)})),t}function l(e,t,n){return e>=t&&e<=n}function h(e,t,n){return e>t&&e<n}function f(e,t,n){return Math.abs(e-t)<=n}function u(e){r(e),e.reverse()}function p(e){var t=i(e);return t.reverse(),t}return t})()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";function e(e){if(0==e.length)throw new Error("The array of values is empty.");if(1==new Set(e).size)return e[0];throw new Error("Not all values are the same.")}n.r(o),n.d(o,{consensusValue:()=>e,mostCommonValue:()=>s});var t=n(986);class r{static of(e){return{in:t=>{let n=new Set([e]);return t.filter((e=>n.has(e)))}}}}function s(e){if(0==e.length)throw new Error("The array of values is empty.");let n=[...new Set(e)],o=n.map((t=>r.of(t).in(e).length)),s=(0,t.max)(o),i=n.findIndex((t=>r.of(t).in(e).length==s));if(i<0)throw new Error("Unable to find the most common value.");return n[i]}})(),o})()},290:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,_:()=>a});var o=n(601),r=n.n(o),s=n(314),i=n.n(s)()(r());i.push([e.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const d=i},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var a=0;a<this.length;a++){var d=this[a][0];null!=d&&(i[d]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);o&&i[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},419:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,P:()=>a});var o=n(601),r=n.n(o),s=n(314),i=n.n(s)()(r());i.push([e.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 85px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const d=i},420:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,KQ:()=>a,UJ:()=>c,wx:()=>d});var o=n(601),r=n.n(o),s=n(314),i=n.n(s)()(r());i.push([e.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 349px;\n height: 528px;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: #f4f5ff;\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 35px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 25px 0px 0px 25px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",d="Y7tezdMOsnQfs2CQtMUR",c="blLx0TnwxHwlX8qvUigb";const l=i},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},633:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,IU:()=>d,lf:()=>a});var o=n(601),r=n.n(o),s=n(314),i=n.n(s)()(r());i.push([e.id,'.dimGBV0h2P1QB3V_Zhmc {\n display: flex;\n flex-direction: column;\n}\n\n.WOjw8GKoS54KQAOlumMa {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",d="WOjw8GKoS54KQAOlumMa";const c=i},659:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},678:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,ZZ:()=>a,o3:()=>d});var o=n(601),r=n.n(o),s=n(314),i=n.n(s)()(r());i.push([e.id,'.rIHrsark1WbeRGC9M1ZY {\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: text;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",d="P5PJGaHxnhsEaezm8Nhg";const c=i},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={id:o,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};return(()=>{"use strict";n.r(o),n.d(o,{EditingForm:()=>De});var e=n(72),t=n.n(e),r=n(825),s=n.n(r),i=n(659),a=n.n(i),d=n(56),c=n.n(d),l=n(540),h=n.n(l),f=n(113),u=n.n(f),p=n(420),m={};m.styleTagTransform=u(),m.setAttributes=c(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=h(),t()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var v=n(633),w={};w.styleTagTransform=u(),w.setAttributes=c(),w.insert=a().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=h(),t()(v.Ay,w),v.Ay&&v.Ay.locals&&v.Ay.locals;var y=n(419),g={};g.styleTagTransform=u(),g.setAttributes=c(),g.insert=a().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),t()(y.A,g),y.A&&y.A.locals&&y.A.locals;var b,x;class N{constructor(e){b.add(this),this.props=e,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(y.P),this.domNode.addEventListener("blur",(()=>function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)}(this,b,"m",x).call(this))),this.domNode.addEventListener("keydown",(e=>{"enter"==e.key.toLowerCase()&&this.domNode.blur()}))}}b=new WeakSet,x=function(){var e;(null===(e=this.props)||void 0===e?void 0:e.onSubmit)&&this.props.onSubmit()};var M=n(678),k={};k.styleTagTransform=u(),k.setAttributes=c(),k.insert=a().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=h(),t()(M.Ay,k),M.Ay&&M.Ay.locals&&M.Ay.locals;var E,S,T=function(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n},A=function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)};class W{constructor(e,t){this.name=e,this.domNode=document.createElement("label"),E.set(this,void 0),S.set(this,void 0),this.domNode.classList.add(M.ZZ),T(this,E,t,"f"),T(this,S,document.createElement("a"),"f"),A(this,S,"f").textContent=e,A(this,S,"f").target="_blank",A(this,S,"f").rel="noopener noreferrer",A(this,S,"f").style.marginLeft="8px",this.domNode.append(t,A(this,S,"f"))}get infoLink(){return A(this,S,"f").href}set infoLink(e){A(this,S,"f").href=e,e?A(this,S,"f").classList.add(M.o3):A(this,S,"f").classList.remove(M.o3)}}E=new WeakMap,S=new WeakMap;var L,P,C,O,j,I,U,z,D,F,B,_,Q,G,V,H,R,K,J,X,Z,q,Y,$,ee,te,ne,oe,re,se,ie,ae,de,ce,le,he,fe,ue,pe,me,ve,we=n(169),ye=function(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n},ge=function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)};class be{constructor(e){L.add(this),this.domNode=document.createElement("div"),P.set(this,void 0),C.set(this,void 0),O.set(this,void 0),j.set(this,void 0),I.set(this,void 0),U.set(this,void 0),z.set(this,void 0),D.set(this,void 0),this.domNode.classList.add(v.lf),ye(this,P,new xe(e),"f"),this.domNode.append(ge(this,P,"f").domNode),ye(this,C,new Ne(e),"f"),this.domNode.append(ge(this,C,"f").domNode),ye(this,O,new Me(e),"f"),this.domNode.append(ge(this,O,"f").domNode),ye(this,j,new ke(e),"f"),this.domNode.append(ge(this,j,"f").domNode),ye(this,I,new Ee(e),"f"),this.domNode.append(ge(this,I,"f").domNode),ye(this,U,new Se(e),"f"),this.domNode.append(ge(this,U,"f").domNode),ye(this,z,new Te(e),"f"),this.domNode.append(ge(this,z,"f").domNode),ye(this,D,new Ae(e),"f"),this.domNode.append(ge(this,D,"f").domNode)}refresh(){ge(this,L,"a",F).forEach((e=>e.refresh()))}}P=new WeakMap,C=new WeakMap,O=new WeakMap,j=new WeakMap,I=new WeakMap,U=new WeakMap,z=new WeakMap,D=new WeakMap,L=new WeakSet,F=function(){return[ge(this,P,"f"),ge(this,C,"f"),ge(this,I,"f"),ge(this,U,"f")]};class xe{constructor(e){B.set(this,void 0),this.domNode=document.createElement("p"),_.set(this,document.createElement("span")),Q.set(this,document.createElement("span")),ye(this,B,e,"f"),this.domNode.classList.add(v.IU),ge(this,_,"f").style.fontWeight="700",this.domNode.append(ge(this,_,"f"),ge(this,Q,"f")),ge(this,B,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let e=[...ge(this,B,"f").selectedBases].length;ge(this,_,"f").textContent=`${e}`,ge(this,Q,"f").textContent=1==e?" base is selected.":" bases are selected."}}B=new WeakMap,_=new WeakMap,Q=new WeakMap;class Ne{constructor(e){G.add(this),V.set(this,void 0),H.set(this,new N({onSubmit:()=>ge(this,G,"m",K).call(this)})),R.set(this,void 0),ye(this,V,e,"f"),ye(this,R,new W("Text Content",ge(this,H,"f").domNode),"f"),ge(this,R,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="15px",ge(this,V,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ge(this,V,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return ge(this,R,"f").domNode}refresh(){let e=[...ge(this,V,"f").selectedBases];try{ge(this,H,"f").domNode.value=(0,we.consensusValue)(e.map((e=>{var t;return null!==(t=e.textContent)&&void 0!==t?t:""})))}catch(e){ge(this,H,"f").domNode.value=""}}}V=new WeakMap,H=new WeakMap,R=new WeakMap,G=new WeakSet,K=function(){var e;let t=null!==(e=ge(this,H,"f").domNode.value)&&void 0!==e?e:"";if(t=t.trim(),!t)return void this.refresh();let n=[...ge(this,V,"f").selectedBases];0==n.length||n.every((e=>e.textContent===t))||(ge(this,V,"f").pushUndoStack(),n.forEach((e=>e.maintainingCenterPoint((()=>e.textContent=t))))),this.refresh()};class Me{constructor(e){J.set(this,void 0),X.set(this,void 0),Z.set(this,void 0),ye(this,J,e,"f"),ye(this,X,new We(e,"fill"),"f"),ye(this,Z,new W("Fill",ge(this,X,"f").domNode),"f"),ge(this,Z,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ge(this,Z,"f").domNode}refresh(){ge(this,X,"f").refresh()}}J=new WeakMap,X=new WeakMap,Z=new WeakMap;class ke{constructor(e){q.set(this,void 0),Y.set(this,void 0),$.set(this,void 0),ye(this,q,e,"f"),ye(this,Y,new We(e,"font-family"),"f"),ye(this,$,new W("Font Family",ge(this,Y,"f").domNode),"f"),ge(this,$,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ge(this,$,"f").domNode}refresh(){ge(this,Y,"f").refresh()}}q=new WeakMap,Y=new WeakMap,$=new WeakMap;class Ee{constructor(e){ee.set(this,void 0),te.set(this,void 0),ne.set(this,void 0),ye(this,ee,e,"f"),ye(this,te,new We(e,"font-size"),"f"),ye(this,ne,new W("Font Size",ge(this,te,"f").domNode),"f"),ge(this,ne,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ge(this,ne,"f").domNode}refresh(){ge(this,te,"f").refresh()}}ee=new WeakMap,te=new WeakMap,ne=new WeakMap;class Se{constructor(e){oe.set(this,void 0),re.set(this,void 0),se.set(this,void 0),ye(this,oe,e,"f"),ye(this,re,new We(e,"font-weight"),"f"),ye(this,se,new W("Font Weight",ge(this,re,"f").domNode),"f"),ge(this,se,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ge(this,se,"f").domNode}refresh(){ge(this,re,"f").refresh()}}oe=new WeakMap,re=new WeakMap,se=new WeakMap;class Te{constructor(e){ie.set(this,void 0),ae.set(this,void 0),de.set(this,void 0),ye(this,ie,e,"f"),ye(this,ae,new We(e,"font-style"),"f"),ye(this,de,new W("Font Style",ge(this,ae,"f").domNode),"f"),ge(this,de,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ge(this,de,"f").domNode}refresh(){ge(this,ae,"f").refresh()}}ie=new WeakMap,ae=new WeakMap,de=new WeakMap;class Ae{constructor(e){ce.set(this,void 0),le.set(this,void 0),he.set(this,void 0),ye(this,ce,e,"f"),ye(this,le,new We(e,"text-decoration"),"f"),ye(this,he,new W("Text Decoration",ge(this,le,"f").domNode),"f"),ge(this,he,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",this.domNode.style.marginTop="12px",this.refresh()}get domNode(){return ge(this,he,"f").domNode}refresh(){ge(this,le,"f").refresh()}}ce=new WeakMap,le=new WeakMap,he=new WeakMap;class We{constructor(e,t){fe.add(this),ue.set(this,void 0),pe.set(this,void 0),me.set(this,new N({onSubmit:()=>ge(this,fe,"m",ve).call(this)})),ye(this,ue,e,"f"),ye(this,pe,t,"f"),ge(this,ue,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ge(this,ue,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return ge(this,me,"f").domNode}refresh(){let e=[...ge(this,ue,"f").selectedBases];try{ge(this,me,"f").domNode.value=(0,we.consensusValue)(e.map((e=>{var t;return null!==(t=e.getAttribute(ge(this,pe,"f")))&&void 0!==t?t:""})))}catch(e){ge(this,me,"f").domNode.value=""}}}ue=new WeakMap,pe=new WeakMap,me=new WeakMap,fe=new WeakSet,ve=function(){let e=ge(this,me,"f").domNode.value,t=[...ge(this,ue,"f").selectedBases];0==t.length||t.every((t=>t.getAttribute(ge(this,pe,"f"))===e))||(ge(this,ue,"f").pushUndoStack(),t.forEach((t=>t.maintainingCenterPoint((()=>t.setAttribute(ge(this,pe,"f"),e)))))),this.refresh()};var Le=n(290),Pe={};Pe.styleTagTransform=u(),Pe.setAttributes=c(),Pe.insert=a().bind(null,"head"),Pe.domAPI=s(),Pe.insertStyleElement=h(),t()(Le.A,Pe),Le.A&&Le.A.locals&&Le.A.locals;var Ce,Oe,je,Ie=n(139),Ue=function(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n},ze=function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)};class De{constructor(e){Ce.set(this,void 0),this.domNode=document.createElement("div"),Oe.set(this,void 0),je.set(this,void 0),Ue(this,Ce,e,"f"),this.domNode.classList.add(p.KQ);let t=document.createElement("p");t.classList.add(p.wx),t.textContent="Edit",this.domNode.append(t);let n=document.createElement("div");n.classList.add(p.UJ),this.domNode.append(n),Ue(this,Oe,new be(e),"f"),n.append(ze(this,Oe,"f").domNode);let o=function(){let e=document.createElement("p");return e.classList.add(Le._),e.textContent="Close",e}();o.addEventListener("click",(()=>this.close())),this.domNode.append(o),Ue(this,je,new Ie.DragTranslater(this.domNode),"f")}appendTo(e){this.refresh(),this.reposition(),e.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){ze(this,Oe,"f").refresh()}reposition(){ze(this,je,"f").untranslate()}}Ce=new WeakMap,Oe=new WeakMap,je=new WeakMap})(),o})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnacanvas/forms.edit",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "description": "The Editing form",
5
5
  "repository": {
6
6
  "type": "git",