2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[67794],{19675:function(x,C,c){"use strict";c.d(C,{Z:function(){return f}});var d=c(28991),n=c(67294),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},S=b,w=c(27029),g=function(L,O){return n.createElement(w.Z,(0,d.Z)((0,d.Z)({},L),{},{ref:O,icon:S}))};g.displayName="CaretDownOutlined";var f=n.forwardRef(g)},28612:function(x,C,c){"use strict";c.d(C,{Z:function(){return f}});var d=c(28991),n=c(67294),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},S=b,w=c(27029),g=function(L,O){return n.createElement(w.Z,(0,d.Z)((0,d.Z)({},L),{},{ref:O,icon:S}))};g.displayName="CaretUpOutlined";var f=n.forwardRef(g)},8212:function(x,C,c){"use strict";c.d(C,{Z:function(){return f}});var d=c(28991),n=c(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},S=b,w=c(27029),g=function(L,O){return n.createElement(w.Z,(0,d.Z)((0,d.Z)({},L),{},{ref:O,icon:S}))};g.displayName="EditOutlined";var f=n.forwardRef(g)},64317:function(x,C,c){"use strict";var d=c(28991),n=c(81253),b=c(85893),S=c(22270),w=c(67294),g=c(66758),f=c(47869),_=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],L=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],O=w.forwardRef(function(h,D){var B=h.fieldProps,U=h.children,A=h.params,K=h.proFieldProps,H=h.mode,W=h.valueEnum,V=h.request,Z=h.showSearch,z=h.options,F=(0,n.Z)(h,_),G=(0,w.useContext)(g.Z);return(0,b.jsx)(f.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,S.h)(W),request:V,params:A,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({options:z,mode:H,showSearch:Z,getPopupContainer:G.getPopupContainer},B),ref:D,proFieldProps:K},F),{},{children:U}))}),k=w.forwardRef(function(h,D){var B=h.fieldProps,U=h.children,A=h.params,K=h.proFieldProps,H=h.mode,W=h.valueEnum,V=h.request,Z=h.options,z=(0,n.Z)(h,L),F=(0,d.Z)({options:Z,mode:H||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},B),G=(0,w.useContext)(g.Z);return(0,b.jsx)(f.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,S.h)(W),request:V,params:A,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({getPopupContainer:G.getPopupContainer},F),ref:D,proFieldProps:K},z),{},{children:U}))}),P=O,m=k,T=P;T.SearchSelect=m,T.displayName="ProFormComponent",C.Z=T},5966:function(x,C,c){"use strict";var d=c(28991),n=c(81253),b=c(85893),S=c(47869),w=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],f="text",_=function(P){var m=P.fieldProps,T=P.proFieldProps,h=(0,n.Z)(P,w);return(0,b.jsx)(S.Z,(0,d.Z)({valueType:f,fieldProps:m,filedConfig:{valueType:f},proFieldProps:T},h))},L=function(P){var m=P.fieldProps,T=P.proFieldProps,h=(0,n.Z)(P,g);return(0,b.jsx)(S.Z,(0,d.Z)({valueType:"password",fieldProps:m,proFieldProps:T,filedConfig:{valueType:f}},h))},O=_;O.Password=L,O.displayName="ProFormComponent",C.Z=O},84587:function(x,C,c){"use strict";c.d(C,{M:function(){return G}});var d=c(67294),n=c(45697),b=function(){return b=Object.assign||function(r){for(var t,o=1,e=arguments.length;o<e;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},b.apply(this,arguments)},S={onActivate:n.func,onAddUndo:n.func,onBeforeAddUndo:n.func,onBeforeExecCommand:n.func,onBeforeGetContent:n.func,onBeforeRenderUI:n.func,onBeforeSetContent:n.func,onBeforePaste:n.func,onBlur:n.func,onChange:n.func,onClearUndos:n.func,onClick:n.func,onContextMenu:n.func,onCommentChange:n.func,onCopy:n.func,onCut:n.func,onDblclick:n.func,onDeactivate:n.func,onDirty:n.func,onDrag:n.func,onDragDrop:n.func,onDragEnd:n.func,onDragGesture:n.func,onDragOver:n.func,onDrop:n.func,onExecCommand:n.func,onFocus:n.func,onFocusIn:n.func,onFocusOut:n.func,onGetContent:n.func,onHide:n.func,onInit:n.func,onKeyDown:n.func,onKeyPress:n.func,onKeyUp:n.func,onLoadContent:n.func,onMouseDown:n.func,onMouseEnter:n.func,onMouseLeave:n.func,onMouseMove:n.func,onMouseOut:n.func,onMouseOver:n.func,onMouseUp:n.func,onNodeChange:n.func,onObjectResizeStart:n.func,onObjectResized:n.func,onObjectSelected:n.func,onPaste:n.func,onPostProcess:n.func,onPostRender:n.func,onPreProcess:n.func,onProgressState:n.func,onRedo:n.func,onRemove:n.func,onReset:n.func,onSaveContent:n.func,onSelectionChange:n.func,onSetAttrib:n.func,onSetContent:n.func,onShow:n.func,onSubmit:n.func,onUndo:n.func,onVisualAid:n.func,onSkinLoadError:n.func,onThemeLoadError:n.func,onModelLoadError:n.func,onPluginLoadError:n.func,onIconsLoadError:n.func,onLanguageLoadError:n.func,onScriptsLoad:n.func,onScriptsLoadError:n.func},w=b({apiKey:n.string,id:n.string,inline:n.bool,init:n.object,initialValue:n.string,onEditorChange:n.func,value:n.string,tagName:n.string,cloudChannel:n.string,plugins:n.oneOfType([n.string,n.array]),toolbar:n.oneOfType([n.string,n.array]),disabled:n.bool,textareaName:n.string,tinymceScriptSrc:n.oneOfType([n.string,n.arrayOf(n.string),n.arrayOf(n.shape({src:n.string,async:n.bool,defer:n.bool}))]),rollback:n.oneOfType([n.number,n.oneOf([!1])]),scriptLoading:n.shape({async:n.bool,defer:n.bool,delay:n.number})},S),g=function(r){return typeof r=="function"},f=function(r){return r in S},_=function(r){return r.substr(2)},L=function(r,t,o,e,i,s,u){var a=Object.keys(i).filter(f),l=Object.keys(s).filter(f),p=a.filter(function(v){return s[v]===void 0}),y=l.filter(function(v){return i[v]===void 0});p.forEach(function(v){var E=_(v),M=u[E];o(E,M),delete u[E]}),y.forEach(function(v){var E=e(r,v),M=_(v);u[M]=E,t(M,E)})},O=function(r,t,o,e,i){return L(i,r.on.bind(r),r.off.bind(r),function(s,u){return function(a){var l;return(l=s(u))===null||l===void 0?void 0:l(a,r)}},t,o,e)},k=0,P=function(r){var t=Date.now(),o=Math.floor(Math.random()*1e9);return k++,r+"_"+o+k+String(t)},m=function(r){return r!==null&&(r.tagName.toLowerCase()==="textarea"||r.tagName.toLowerCase()==="input")},T=function(r){return typeof r=="undefined"||r===""?[]:Array.isArray(r)?r:r.split(" ")},h=function(r,t){return T(r).concat(T(t))},D=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},B=function(r){if(!("isConnected"in Node.prototype)){for(var t=r,o=r.parentNode;o!=null;)t=o,o=t.parentNode;return t===r.ownerDocument}return r.isConnected},U=function(r,t){r!==void 0&&(r.mode!=null&&typeof r.mode=="object"&&typeof r.mode.set=="function"?r.mode.set(t):r.setMode(t))},A=function(){return A=Object.assign||function(r){for(var t,o=1,e=arguments.length;o<e;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},A.apply(this,arguments)},K=function(r,t,o){var e,i,s=r.createElement("script");s.referrerPolicy="origin",s.type="application/javascript",s.id=t.id,s.src=t.src,s.async=(e=t.async)!==null&&e!==void 0?e:!1,s.defer=(i=t.defer)!==null&&i!==void 0?i:!1;var u=function(){s.removeEventListener("load",u),s.removeEventListener("error",a),o(t.src)},a=function(l){s.removeEventListener("load",u),s.removeEventListener("error",a),o(t.src,l)};s.addEventListener("load",u),s.addEventListener("error",a),r.head&&r.head.appendChild(s)},H=function(r){var t={},o=function(u,a){var l=t[u];l.done=!0,l.error=a;for(var p=0,y=l.handlers;p<y.length;p++){var v=y[p];v(u,a)}l.handlers=[]},e=function(u,a,l){var p=function(J){return l!==void 0?l(J):console.error(J)};if(u.length===0){p(new Error("At least one script must be provided"));return}for(var y=0,v=!1,E=function(J,X){v||(X?(v=!0,p(X)):++y===u.length&&a())},M=0,I=u;M<I.length;M++){var R=I[M],j=t[R.src];if(j)j.done?E(R.src,j.error):j.handlers.push(E);else{var N=P("tiny-");t[R.src]={id:N,src:R.src,done:!1,error:null,handlers:[E]},K(r,A({id:N},R),o)}}},i=function(){for(var u,a=0,l=Object.values(t);a<l.length;a++){var p=l[a],y=r.getElementById(p.id);y!=null&&y.tagName==="SCRIPT"&&((u=y.parentNode)===null||u===void 0||u.removeChild(y))}t={}},s=function(){return r};return{loadScripts:e,deleteScripts:i,getDocument:s}},W=function(){var r=[],t=function(i){var s=r.find(function(u){return u.getDocument()===i});return s===void 0&&(s=H(i),r.push(s)),s},o=function(i,s,u,a,l){var p=function(){return t(i).loadScripts(s,a,l)};u>0?setTimeout(p,u):p()},e=function(){for(var i=r.pop();i!=null;i=r.pop())i.deleteScripts()};return{loadList:o,reinitialize:e}},V=W(),Z=function(r){var t=r;return t&&t.tinymce?t.tinymce:null},z=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function e(){this.constructor=t}t.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}(),F=function(){return F=Object.assign||function(r){for(var t,o=1,e=arguments.length;o<e;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},F.apply(this,arguments)},G=function(r){z(t,r);function t(o){var e=this,i,s,u;return e=r.call(this,o)||this,e.rollbackTimer=void 0,e.valueCursor=void 0,e.rollbackChange=function(){var a=e.editor,l=e.props.value;a&&l&&l!==e.currentContent&&a.undoManager.ignore(function(){if(a.setContent(l),e.valueCursor&&(!e.inline||a.hasFocus()))try{a.selection.moveToBookmark(e.valueCursor)}catch(p){}}),e.rollbackTimer=void 0},e.handleBeforeInput=function(a){if(e.props.value!==void 0&&e.props.value===e.currentContent&&e.editor&&(!e.inline||e.editor.hasFocus()))try{e.valueCursor=e.editor.selection.getBookmark(3)}catch(l){}},e.handleBeforeInputSpecial=function(a){(a.key==="Enter"||a.key==="Backspace"||a.key==="Delete")&&e.handleBeforeInput(a)},e.handleEditorChange=function(a){var l=e.editor;if(l&&l.initialized){var p=l.getContent();e.props.value!==void 0&&e.props.value!==p&&e.props.rollback!==!1&&(e.rollbackTimer||(e.rollbackTimer=window.setTimeout(e.rollbackChange,typeof e.props.rollback=="number"?e.props.rollback:200))),p!==e.currentContent&&(e.currentContent=p,g(e.props.onEditorChange)&&e.props.onEditorChange(p,l))}},e.handleEditorChangeSpecial=function(a){(a.key==="Backspace"||a.key==="Delete")&&e.handleEditorChange(a)},e.initialise=function(a){var l,p,y;a===void 0&&(a=0);var v=e.elementRef.current;if(!!v){if(!B(v)){if(a===0)setTimeout(function(){return e.initialise(1)},1);else if(a<100)setTimeout(function(){return e.initialise(a+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var E=Z(e.view);if(!E)throw new Error("tinymce should have been loaded into global scope");var M=F(F({},e.props.init),{selector:void 0,target:v,readonly:e.props.disabled,inline:e.inline,plugins:h((l=e.props.init)===null||l===void 0?void 0:l.plugins,e.props.plugins),toolbar:(p=e.props.toolbar)!==null&&p!==void 0?p:(y=e.props.init)===null||y===void 0?void 0:y.toolbar,setup:function(I){e.editor=I,e.bindHandlers({}),e.inline&&!m(v)&&I.once("PostRender",function(R){I.setContent(e.getInitialValue(),{no_events:!0})}),e.props.init&&g(e.props.init.setup)&&e.props.init.setup(I)},init_instance_callback:function(I){var R,j,N=e.getInitialValue();e.currentContent=(R=e.currentContent)!==null&&R!==void 0?R:I.getContent(),e.currentContent!==N&&(e.currentContent=N,I.setContent(N),I.undoManager.clear(),I.undoManager.add(),I.setDirty(!1));var J=(j=e.props.disabled)!==null&&j!==void 0?j:!1;U(e.editor,J?"readonly":"design"),e.props.init&&g(e.props.init.init_instance_callback)&&e.props.init.init_instance_callback(I)}});e.inline||(v.style.visibility=""),m(v)&&(v.value=e.getInitialValue()),E.init(M)}},e.id=e.props.id||P("tiny-react"),e.elementRef=d.createRef(),e.inline=(u=(i=e.props.inline)!==null&&i!==void 0?i:(s=e.props.init)===null||s===void 0?void 0:s.inline)!==null&&u!==void 0?u:!1,e.boundHandlers={},e}return Object.defineProperty(t.prototype,"view",{get:function(){var o,e;return(e=(o=this.elementRef.current)===null||o===void 0?void 0:o.ownerDocument.defaultView)!==null&&e!==void 0?e:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(o){var e=this,i,s;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(o),this.editor.initialized)){if(this.currentContent=(i=this.currentContent)!==null&&i!==void 0?i:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==o.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var u=this.editor;u.undoManager.transact(function(){var l;if(!e.inline||u.hasFocus())try{l=u.selection.getBookmark(3)}catch(M){}var p=e.valueCursor;if(u.setContent(e.props.value),!e.inline||u.hasFocus())for(var y=0,v=[l,p];y<v.length;y++){var E=v[y];if(E)try{u.selection.moveToBookmark(E),e.valueCursor=E;break}catch(M){}}})}if(this.props.disabled!==o.disabled){var a=(s=this.props.disabled)!==null&&s!==void 0?s:!1;U(this.editor,a?"readonly":"design")}}},t.prototype.componentDidMount=function(){var o=this,e,i,s,u,a;if(Z(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(i=(e=this.props).onScriptsLoadError)===null||i===void 0||i.call(e,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if((s=this.elementRef.current)===null||s===void 0?void 0:s.ownerDocument){var l=function(){var y,v;(v=(y=o.props).onScriptsLoad)===null||v===void 0||v.call(y),o.initialise()},p=function(y){var v,E;(E=(v=o.props).onScriptsLoadError)===null||E===void 0||E.call(v,y)};V.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(a=(u=this.props.scriptLoading)===null||u===void 0?void 0:u.delay)!==null&&a!==void 0?a:0,l,p)}},t.prototype.componentWillUnmount=function(){var o=this,e=this.editor;e&&(e.off(this.changeEvents(),this.handleEditorChange),e.off(this.beforeInputEvent(),this.handleBeforeInput),e.off("keypress",this.handleEditorChangeSpecial),e.off("keydown",this.handleBeforeInputSpecial),e.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(i){e.off(i,o.boundHandlers[i])}),this.boundHandlers={},e.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.changeEvents=function(){var o,e,i,s=(i=(e=(o=Z(this.view))===null||o===void 0?void 0:o.Env)===null||e===void 0?void 0:e.browser)===null||i===void 0?void 0:i.isIE();return s?"change keyup compositionend setcontent CommentChange":"change input compositionend setcontent CommentChange"},t.prototype.beforeInputEvent=function(){return D()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var o=this.props.tagName,e=o===void 0?"div":o;return d.createElement(e,{ref:this.elementRef,id:this.id})},t.prototype.renderIframe=function(){return d.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id})},t.prototype.getScriptSources=function(){var o,e,i=(o=this.props.scriptLoading)===null||o===void 0?void 0:o.async,s=(e=this.props.scriptLoading)===null||e===void 0?void 0:e.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:i,defer:s}]:this.props.tinymceScriptSrc.map(function(p){return typeof p=="string"?{src:p,async:i,defer:s}:p});var u=this.props.cloudChannel,a=this.props.apiKey?this.props.apiKey:"no-api-key",l="https://cdn.tiny.cloud/1/".concat(a,"/tinymce/").concat(u,"/tinymce.min.js");return[{src:l,async:i,defer:s}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(o){var e=this;if(this.editor!==void 0){O(this.editor,o,this.props,this.boundHandlers,function(a){return e.props[a]});var i=function(a){return a.onEditorChange!==void 0||a.value!==void 0},s=i(o),u=i(this.props);!s&&u?(this.editor.on(this.changeEvents(),this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):s&&!u&&(this.editor.off(this.changeEvents(),this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=w,t.defaultProps={cloudChannel:"6"},t}(d.Component)},19273:function(x,C,c){"use strict";c.d(C,{Z:function(){return d}});function d(n){if(n==null)throw new TypeError("Cannot destructure undefined")}},20640:function(x,C,c){"use strict";var d=c(11742),n={"text/plain":"Text","text/html":"Url",default:"Text"},b="Copy to clipboard: #{key}, Enter";function S(g){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,f)}function w(g,f){var _,L,O,k,P,m,T=!1;f||(f={}),_=f.debug||!1;try{O=d(),k=document.createRange(),P=document.getSelection(),m=document.createElement("span"),m.textContent=g,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(D){if(D.stopPropagation(),f.format)if(D.preventDefault(),typeof D.clipboardData=="undefined"){_&&console.warn("unable to use e.clipboardData"),_&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var B=n[f.format]||n.default;window.clipboardData.setData(B,g)}else D.clipboardData.clearData(),D.clipboardData.setData(f.format,g);f.onCopy&&(D.preventDefault(),f.onCopy(D.clipboardData))}),document.body.appendChild(m),k.selectNodeContents(m),P.addRange(k);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");T=!0}catch(D){_&&console.error("unable to copy using execCommand: ",D),_&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",g),f.onCopy&&f.onCopy(window.clipboardData),T=!0}catch(B){_&&console.error("unable to copy using clipboardData: ",B),_&&console.error("falling back to prompt"),L=S("message"in f?f.message:b),window.prompt(L,g)}}finally{P&&(typeof P.removeRange=="function"?P.removeRange(k):P.removeAllRanges()),m&&document.body.removeChild(m),O()}return T}x.exports=w},11742:function(x){x.exports=function(){var C=document.getSelection();if(!C.rangeCount)return function(){};for(var c=document.activeElement,d=[],n=0;n<C.rangeCount;n++)d.push(C.getRangeAt(n));switch(c.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":c.blur();break;default:c=null;break}return C.removeAllRanges(),function(){C.type==="Caret"&&C.removeAllRanges(),C.rangeCount||d.forEach(function(b){C.addRange(b)}),c&&c.focus()}}}}]);
|