UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 1.16 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3024ce9c"],{"0342":function(e,t,n){},"07d1":function(e,t,n){n("94ce")},3154:function(e,t,n){n("f034")},"3ad8":function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}var o=function(){},i=function(e){return function(){return e}},u=function(e){return e},a=function(e){return function(){throw new Error(e)}},c=i(!1),s=i(!0),l=function(){return f},f=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:c,isSome:c,isNone:s,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:n,orThunk:t,map:l,each:o,bind:l,exists:c,forall:s,filter:l,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return r}(),d=function(e){var t=i(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:s,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return d(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:f},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,(function(t){return n(e,t)}))}};return o},m=function(e){return null===e||void 0===e?f:d(e)},g={some:d,none:l,from:m},h=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},p=function(e){return function(t){return h(t)===e}},v=p("string"),b=p("object"),y=p("array"),w=Array.prototype.slice,x=Array.prototype.indexOf,C=function(e,t){return x.call(e,t)},S=function(e,t){return C(e,t)>-1},k=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},T=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},O=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},E=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},A=function(e,t,n){return O(e,(function(e){n=t(n,e)})),n},D=function(e,t,n){return T(e,(function(e){n=t(n,e)})),n},_=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return g.some(i);if(n(i,r))break}return g.none()},R=function(e,t){return _(e,t,c)},z=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},M=function(e,t){var n=w.call(e,0);return n.sort(t),n},B=function(e,t){return t>=0&&t<e.length?g.some(e[t]):g.none()},N=function(e){return B(e,0)},P=Object.keys,I=Object.hasOwnProperty,L=function(e,t){return I.call(e,t)},H=function(e){if(!y(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return T(e,(function(r,o){var i=P(r);if(1!==i.length)throw new Error("one and only one name per case");var u=i[0],a=r[u];if(void 0!==n[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!y(a))throw new Error("case arguments must be an array");t.push(u),n[u]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==a.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+a.length+" ("+a+"), got "+i);var c=function(e){var r=P(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=z(t,(function(e){return S(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[u].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:c,log:function(e){console.log(e,{constructors:t,constructor:u,params:n})}}}})),n},F={generate:H},V=(F.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(e){var t=[],n=[];return T(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}}),U=function(e){var t=function(t){return e===t},n=function(t){return U(e)},r=function(t){return U(e)},o=function(t){return U(t(e))},u=function(t){return U(e)},a=function(t){t(e)},l=function(t){return t(e)},f=function(t,n){return n(e)},d=function(t){return t(e)},m=function(t){return t(e)},h=function(){return g.some(e)};return{is:t,isValue:s,isError:c,getOr:i(e),getOrThunk:i(e),getOrDie:i(e),or:n,orThunk:r,fold:f,map:o,mapError:u,each:a,bind:l,exists:d,forall:m,toOptional:h}},j=function(e){var t=function(e){return e()},n=function(){return a(String(e))()},r=function(e){return e},i=function(e){return e()},l=function(t){return j(e)},f=function(t){return j(t(e))},d=function(t){return j(e)},m=function(t,n){return t(e)};return{is:c,isValue:c,isError:s,getOr:u,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:m,map:l,mapError:f,each:o,bind:d,exists:c,forall:s,toOptional:g.none}},W=function(e,t){return e.fold((function(){return j(t)}),U)},q={value:U,error:j,fromOption:W},G=function(e){return"inline-command"===e.type||"inline-format"===e.type},X=function(e){return"block-command"===e.type||"block-format"===e.type},$=function(e){return M(e,(function(e,t){return e.start.length===t.start.length?0:e.start.length>t.start.length?-1:1}))},K=function(e){var t=function(t){return q.error({message:t,pattern:e})},n=function(n,r,o){if(void 0!==e.format){var i=void 0;if(y(e.format)){if(!z(e.format,v))return t(n+" pattern has non-string items in the `format` array");i=e.format}else{if(!v(e.format))return t(n+" pattern has non-string `format` parameter");i=[e.format]}return q.value(r(i))}return void 0!==e.cmd?v(e.cmd)?q.value(o(e.cmd,e.value)):t(n+" pattern has non-string `cmd` parameter"):t(n+" pattern is missing both `format` and `cmd` parameters")};if(!b(e))return t("Raw pattern is not an object");if(!v(e.start))return t("Raw pattern is missing `start` parameter");if(void 0!==e.end){if(!v(e.end))return t("Inline pattern has non-string `end` parameter");if(0===e.start.length&&0===e.end.length)return t("Inline pattern has empty `start` and `end` parameters");var r=e.start,o=e.end;return 0===o.length&&(o=r,r=""),n("Inline",(function(e){return{type:"inline-format",start:r,end:o,format:e}}),(function(e,t){return{type:"inline-command",start:r,end:o,cmd:e,value:t}}))}return void 0!==e.replacement?v(e.replacement)?0===e.start.length?t("Replacement pattern has empty `start` parameter"):q.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):t("Replacement pattern has non-string `replacement` parameter"):0===e.start.length?t("Block pattern has empty `start` parameter"):n("Block",(function(t){return{type:"block-format",start:e.start,format:t[0]}}),(function(t,n){return{type:"block-command",start:e.start,cmd:t,value:n}}))},Y=function(e){return"block-command"===e.type?{start:e.start,cmd:e.cmd,value:e.value}:"block-format"===e.type?{start:e.start,format:e.format}:"inline-command"===e.type?"mceInsertContent"===e.cmd&&""===e.start?{start:e.end,replacement:e.value}:{start:e.start,end:e.end,cmd:e.cmd,value:e.value}:"inline-format"===e.type?{start:e.start,end:e.end,format:1===e.format.length?e.format[0]:e.format}:void 0},J=function(e){return{inlinePatterns:E(e,G),blockPatterns:$(E(e,X))}},Z=function(e){var t=function(t){var n=V(k(t,K));if(n.errors.length>0){var r=n.errors[0];throw new Error(r.message+":\n"+JSON.stringify(r.pattern,null,2))}e.set(J(n.values))},n=function(){return r(k(e.get().inlinePatterns,Y),k(e.get().blockPatterns,Y))};return{setPatterns:t,getPatterns:n}},Q="undefined"!==typeof window?window:Function("return this;")(),ee=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Q.console;n&&(n.error?n.error.apply(n,e):n.log.apply(n,e))},te=[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}],ne=function(e){var t=e.getParam("textpattern_patterns",te,"array");if(!y(t))return ee("The setting textpattern_patterns should be an array"),{inlinePatterns:[],blockPatterns:[]};var n=V(k(t,K));return T(n.errors,(function(e){return ee(e.message,e.pattern)})),J(n.values)},re=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},oe=tinymce.util.Tools.resolve("tinymce.util.Delay"),ie=tinymce.util.Tools.resolve("tinymce.util.VK"),ue="\ufeff",ae=" ",ce=tinymce.util.Tools.resolve("tinymce.util.Tools"),se=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),le=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),fe=function(e,t){return{container:e,offset:t}},de=function(e){return e.nodeType===Node.TEXT_NODE},me=function(e,t,n){if(t&&e.isEmpty(t)&&!n(t)){var r=t.parentNode;e.remove(t),me(e,r,n)}},ge=function(e,t,n,r){void 0===r&&(r=!0);var o=t.startContainer.parentNode,i=t.endContainer.parentNode;t.deleteContents(),r&&!n(t.startContainer)&&(de(t.startContainer)&&0===t.startContainer.data.length&&e.remove(t.startContainer),de(t.endContainer)&&0===t.endContainer.data.length&&e.remove(t.endContainer),me(e,o,n),o!==i&&me(e,i,n))},he=function(e,t){var n=t.get(e);return y(n)&&N(n).exists((function(e){return L(e,"block")}))},pe=function(e){return 0===e.start.length},ve=function(e,t){var n=g.from(e.dom.getParent(t.startContainer,e.dom.isBlock));return""===re(e)?n.orThunk((function(){return g.some(e.getBody())})):n},be=se.DOM,ye=function(e){return function(t){return e===t?-1:0}},we=function(e){return function(t){return e.isBlock(t)||S(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)}},xe=function(e,t,n){if(de(e)&&t>=0)return g.some(fe(e,t));var r=le(be);return g.from(r.backwards(e,t,ye(e),n)).map((function(e){return fe(e.container,e.container.data.length)}))},Ce=function(e,t,n){if(de(e)&&t>=e.length)return g.some(fe(e,t));var r=le(be);return g.from(r.forwards(e,t,ye(e),n)).map((function(e){return fe(e.container,0)}))},Se=function(e,t,n){if(!de(e))return g.none();var r=e.textContent;if(t>=0&&t<=r.length)return g.some(fe(e,t));var o=le(be);return g.from(o.backwards(e,t,ye(e),n)).bind((function(e){var r=e.container.data;return Se(e.container,t+r.length,n)}))},ke=function(e,t,n){if(!de(e))return g.none();var r=e.textContent;if(t<=r.length)return g.some(fe(e,t));var o=le(be);return g.from(o.forwards(e,t,ye(e),n)).bind((function(e){return ke(e.container,t-r.length,n)}))},Te=function(e,t,n,r,o){var i=le(e,we(e));return g.from(i.backwards(t,n,r,o))},Oe=function(e,t,n){if(de(t)&&(n<0||n>t.data.length))return[];var r=[n],o=t;while(o!==e&&o.parentNode){for(var i=o.parentNode,u=0;u<i.childNodes.length;u++)if(i.childNodes[u]===o){r.push(u);break}o=i}return o===e?r.reverse():[]},Ee=function(e,t,n,r,o){var i=Oe(e,t,n),u=Oe(e,r,o);return{start:i,end:u}},Ae=function(e,t){var n=t.slice(),r=n.pop(),o=D(n,(function(e,t){return e.bind((function(e){return g.from(e.childNodes[t])}))}),g.some(e));return o.bind((function(e){return de(e)&&(r<0||r>e.data.length)?g.none():g.some({node:e,offset:r})}))},De=function(e,t){return Ae(e,t.start).bind((function(n){var r=n.node,o=n.offset;return Ae(e,t.end).map((function(e){var t=e.node,n=e.offset,i=document.createRange();return i.setStart(r,o),i.setEnd(t,n),i}))}))},_e=function(e,t){return Ee(e,t.startContainer,t.startOffset,t.endContainer,t.endOffset)},Re=function(e,t,n){var r=Ce(t,0,t);r.each((function(r){var o=r.container;ke(o,n.start.length,t).each((function(n){var r=e.createRng();r.setStart(o,0),r.setEnd(n.container,n.offset),ge(e,r,(function(e){return e===t}))}))}))},ze=function(e,t){var n=e.dom,r=t.pattern,o=De(n.getRoot(),t.range).getOrDie("Unable to resolve path range");return ve(e,o).each((function(t){"block-format"===r.type?he(r.format,e.formatter)&&e.undoManager.transact((function(){Re(e.dom,t,r),e.formatter.apply(r.format)})):"block-command"===r.type&&e.undoManager.transact((function(){Re(e.dom,t,r),e.execCommand(r.cmd,!1,r.value)}))})),!0},Me=function(e,t){var n=t.replace(ae," ");return R(e,(function(e){return 0===t.indexOf(e.start)||0===n.indexOf(e.start)}))},Be=function(e,t){var n=e.dom,r=e.selection.getRng();return ve(e,r).filter((function(t){var r=re(e),o=""===r&&n.is(t,"body")||n.is(t,r);return null!==t&&o})).bind((function(e){var r=e.textContent,o=Me(t,r);return o.map((function(t){return ce.trim(r).length===t.start.length?[]:[{pattern:t,range:Ee(n.getRoot(),e,0,e,0)}]}))})).getOr([])},Ne=function(e,t){if(0!==t.length){var n=e.selection.getBookmark();T(t,(function(t){return ze(e,t)})),e.selection.moveToBookmark(n)}},Pe=0,Ie=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Pe++,e+"_"+r+Pe+String(n)},Le=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},He=function(e,t){return Le(e,t,e.length-t.length)},Fe=function(e,t){return e.create("span",{"data-mce-type":"bookmark",id:t})},Ve=function(e,t){var n=e.createRng();return n.setStartAfter(t.start),n.setEndBefore(t.end),n},Ue=function(e,t,n){var r=De(e.getRoot(),n).getOrDie("Unable to resolve path range"),o=r.startContainer,i=r.endContainer,u=0===r.endOffset?i:i.splitText(r.endOffset),a=0===r.startOffset?o:o.splitText(r.startOffset);return{prefix:t,end:u.parentNode.insertBefore(Fe(e,t+"-end"),u),start:a.parentNode.insertBefore(Fe(e,t+"-start"),a)}},je=function(e,t,n){me(e,e.get(t.prefix+"-end"),n),me(e,e.get(t.prefix+"-start"),n)},We=function(e,t,n){return function(e,t){var r=e.data,o=r.substring(0,t),i=o.lastIndexOf(n.charAt(n.length-1)),u=o.lastIndexOf(n);return-1!==u?u+n.length:-1!==i?i+1:-1}},qe=function(e,t,n,r){var o=t.start,i=Te(e,r.container,r.offset,We(e,n,o),n);return i.bind((function(r){if(r.offset>=o.length){var i=e.createRng();return i.setStart(r.container,r.offset-o.length),i.setEnd(r.container,r.offset),g.some(i)}var u=r.offset-o.length;return Se(r.container,u,n).map((function(t){var n=e.createRng();return n.setStart(t.container,t.offset),n.setEnd(r.container,r.offset),n})).filter((function(e){return e.toString()===o})).orThunk((function(){return qe(e,t,n,fe(r.container,0))}))}))},Ge=function(e,t,n,r,o,i){if(void 0===i&&(i=!1),0===t.start.length&&!i){var u=e.createRng();return u.setStart(n,r),u.setEnd(n,r),g.some(u)}return xe(n,r,o).bind((function(n){var r=qe(e,t,o,n);return r.bind((function(e){if(i){if(e.endContainer===n.container&&e.endOffset===n.offset)return g.none();if(0===n.offset&&e.endContainer.textContent.length===e.endOffset)return g.none()}return g.some(e)}))}))},Xe=function(e,t,n){var r=e.dom,o=r.getRoot(),i=n.pattern,u=n.position.container,a=n.position.offset;return Se(u,a-n.pattern.end.length,t).bind((function(c){var s=Ee(o,c.container,c.offset,u,a);if(pe(i))return g.some({matches:[{pattern:i,startRng:s,endRng:s}],position:c});var l=$e(e,n.remainingPatterns,c.container,c.offset,t),f=l.getOr({matches:[],position:c}),d=f.position,m=Ge(r,i,d.container,d.offset,t,l.isNone());return m.map((function(e){var t=_e(o,e);return{matches:f.matches.concat([{pattern:i,startRng:t,endRng:s}]),position:fe(e.startContainer,e.startOffset)}}))}))},$e=function(e,t,n,r,o){var i=e.dom;return xe(n,r,i.getRoot()).bind((function(u){var a=i.createRng();a.setStart(o,0),a.setEnd(n,r);for(var c=a.toString(),s=0;s<t.length;s++){var l=t[s];if(He(c,l.end)){var f=t.slice();f.splice(s,1);var d=Xe(e,o,{pattern:l,remainingPatterns:f,position:u});if(d.isSome())return d}}return g.none()}))},Ke=function(e,t,n){e.selection.setRng(n),"inline-format"===t.type?T(t.format,(function(t){e.formatter.apply(t)})):e.execCommand(t.cmd,!1,t.value)},Ye=function(e,t,n,r){var o=Ve(e.dom,n);ge(e.dom,o,r),Ke(e,t,o)},Je=function(e,t,n,r,o){var i=e.dom,u=Ve(i,r),a=Ve(i,n);ge(i,a,o),ge(i,u,o);var c={prefix:n.prefix,start:n.end,end:r.start},s=Ve(i,c);Ke(e,t,s)},Ze=function(e,t){var r=Ie("mce_textpattern"),o=A(t,(function(t,o){var i=Ue(e,r+"_end"+t.length,o.endRng);return t.concat([n(n({},o),{endMarker:i})])}),[]);return A(o,(function(t,i){var u=o.length-t.length-1,a=pe(i.pattern)?i.endMarker:Ue(e,r+"_start"+u,i.startRng);return t.concat([n(n({},i),{startMarker:a})])}),[])},Qe=function(e,t,n){var r=e.selection.getRng();return!1===r.collapsed?[]:ve(e,r).bind((function(o){var i=r.startOffset-(n?1:0);return $e(e,t,r.startContainer,i,o)})).fold((function(){return[]}),(function(e){return e.matches}))},et=function(e,t){if(0!==t.length){var n=e.dom,r=e.selection.getBookmark(),o=Ze(n,t);T(o,(function(t){var r=n.getParent(t.startMarker.start,n.isBlock),o=function(e){return e===r};pe(t.pattern)?Ye(e,t.pattern,t.endMarker,o):Je(e,t.pattern,t.startMarker,t.endMarker,o),je(n,t.endMarker,o),je(n,t.startMarker,o)})),e.selection.moveToBookmark(r)}},tt=function(e,t){if(!e.selection.isCollapsed())return!1;var n=Qe(e,t.inlinePatterns,!1),r=Be(e,t.blockPatterns);return(r.length>0||n.length>0)&&(e.undoManager.add(),e.undoManager.extra((function(){e.execCommand("mceInsertNewLine")}),(function(){e.insertContent(ue),et(e,n),Ne(e,r);var t=e.selection.getRng(),o=xe(t.startContainer,t.startOffset,e.dom.getRoot());e.execCommand("mceInsertNewLine"),o.each((function(t){var n=t.container;n.data.charAt(t.offset-1)===ue&&(n.deleteData(t.offset-1,1),me(e.dom,n.parentNode,(function(t){return t===e.dom.getRoot()})))}))})),!0)},nt=function(e,t){var n=Qe(e,t.inlinePatterns,!0);n.length>0&&e.undoManager.transact((function(){et(e,n)}))},rt=function(e,t,n){for(var r=0;r<e.length;r++)if(n(e[r],t))return!0},ot=function(e,t){return rt(e,t,(function(e,t){return e===t.keyCode&&!1===ie.modifierPressed(t)}))},it=function(e,t){return rt(e,t,(function(e,t){return e.charCodeAt(0)===t.charCode}))},ut=function(e,t){var n=[",",".",";",":","!","?"],r=[32];e.on("keydown",(function(n){13!==n.keyCode||ie.modifierPressed(n)||tt(e,t.get())&&n.preventDefault()}),!0),e.on("keyup",(function(n){ot(r,n)&&nt(e,t.get())})),e.on("keypress",(function(r){it(n,r)&&oe.setEditorTimeout(e,(function(){nt(e,t.get())}))}))};function at(){t.add("textpattern",(function(t){var n=e(ne(t));return ut(t,n),Z(n)}))}at()})()},4237:function(e,t,n){n("be7f")},"4ea8":function(e,t,n){n("cdd9")},"5ac8":function(e,t,n){"use strict";var r=function(){var e=this,t=e._self._c;return t("div",[t("attach-list",{ref:"attachList",attrs:{hiddenBtn:!0},on:{change:e.addImg}}),t("aiTs",{ref:"tsAi",attrs:{disabled:e.disabled,value:e.htmlContext,type:"html",lang:e.lang,loadding:e.aiTsUpdate,hiddenIcon:!0},on:{"update:value":function(t){e.htmlContext=t},"update:loadding":function(t){e.aiTsUpdate=t}}}),t("textarea",{attrs:{id:"tinymceId"}})],1)},o=[],i=n("5530"),u=n("c7eb"),a=n("1da1"),c=(n("99af"),n("2f62")),s=n("50af"),l=n("fb04"),f=n("e562"),d=n.n(f);n("0342"),n("ec27"),n("fd8a"),n("4ea8"),n("4237"),n("64d8"),n("07d1"),n("3154"),n("78e4");n("7abb"),n("c019"),n("d03a");var m={name:"VDitor",components:{AttachList:l["a"],aiTs:s["a"]},computed:Object(i["a"])({},Object(c["c"])({shopId:"shopId",Lang:"lang"})),data:function(){return{contentEditorEdit:null,contentEditor:null,vditorToolbar:[],tinymceVal:"",einit:{height:300},aiTsUpdate:!1,htmlContext:"",langs:{"zh-CN":"zh-CN","fr-FR":"fr-FR","de-DE":"de-DE","en-US":"en-US"}}},props:{value:"",good_id:null,lang:"",disabled:{default:!1}},mounted:function(){var e=this;setTimeout((function(){e.contentEditorEdit=null,e.edinit(e.value)}),100)},beforeDestroy:function(){this.contentEditor&&this.contentEditor.remove()},watch:{value:function(e){this.edinit(this.value)},aiTsUpdate:function(){this.$emit("update:updateStatus",this.aiTsUpdate),this.aiTsUpdate?this.contentEditor.setMode("readonly"):(this.edinit(this.htmlContext),this.contentEditor.setMode("design"))},disabled:function(){this.disabled?this.contentEditor.setMode("readonly"):this.contentEditor.setMode("design")}},created:function(){},methods:{clickAttachList:function(){var e=this;this.$nextTick((function(){return e.$refs.attachList.openAttachList()}))},edinit:function(e){var t=this;t.contentEditor=d.a.get("tinymceId"),t.contentEditor||(d.a.init({selector:"#tinymceId",plugins:"code fullscreen image link table textpattern",toolbar1:"code fullscreen undo redo restoredraft | alignleft aligncenter alignright | link table | bold italic forecolor backcolor",toolbar2:"styleselect | image | myImageButton AIts",height:500,language:t.langs[t.Lang]||"en",toolbar_drawer:"sliding",toolbar_sticky:!0,convert_urls:!1,content_css:"/cp/tiny-grid.min.css",setup:function(e){e.ui.registry.addIcon("IRobotones",'<svg width="24" height="24" viewBox="0 0 48 48" fill="none"><rect x="9" y="18" width="30" height="24" rx="2" fill="none" stroke="'.concat(t.disabled?"rgba(34,47,62,.5)":"#333",'" stroke-width="4"></rect><circle cx="17" cy="26" r="2" fill="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'"></circle><circle cx="31" cy="26" r="2" fill="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'"></circle><path d="M20 32C18.8954 32 18 32.8954 18 34C18 35.1046 18.8954 36 20 36V32ZM28 36C29.1046 36 30 35.1046 30 34C30 32.8954 29.1046 32 28 32V36ZM20 36H28V32H20V36Z" fill="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'"></path><path d="M24 10V18" stroke="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4 26V34" stroke="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M44 26V34" stroke="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><circle cx="24" cy="8" r="2" stroke="').concat(t.disabled?"rgba(34,47,62,.5)":"#333",'" stroke-width="4"></circle></svg>')),e.ui.registry.addButton("myImageButton",{icon:"upload",tooltip:t.$t("view.test.form.add.message.uploadButton"),onAction:function(){t.$refs.attachList.openAttachList()}}),e.ui.registry.addButton("AIts",{icon:"IRobotones",tooltip:t.$t("view.test.form.add.message.aiButton"),onAction:function(){var e=Object(a["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.contentEditor.getContent();case 2:t.htmlContext=e.sent,setTimeout((function(){t.$refs.tsAi.translate()}),500);case 4:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},textpattern_patterns:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"row2",replacement:'<div class="row"><div class="col-lg-6 col-md-6">This is a column</div><div class= "col-lg-6 col-md-6"> This is another column</div></div>'},{start:"row3",replacement:'<div class="row"><div class="col-lg-4 col-md-4">This is a column</div><div class= "col-lg-4 col-md-4"> This is another column</div><div class= "col-lg-4 col-md-4"> This is another column</div></div>'},{start:"roww2*2",replacement:'<div class="row"><div class="col-lg-6 col-md-6 "><div>This is a column</div></div><div class= "col-lg-6 col-md-6 "> This is another column</div><div class= "col-lg-6 col-md-6 "> This is another column</div><div class= "col-lg-6 col-md-6"> This is another column</div></div>'},{start:"row4",replacement:'<div class="row"><div class="col-lg-3 col-md-3 "><div>This is a column</div></div><div class= "col-lg-3 col-md-3 "> This is another column</div><div class= "col-lg-3 col-md-3 "> This is another column</div><div class= "col-lg-3 col-md-3"> This is another column</div></div>'},{start:"row2-text-image",replacement:'<div class="row"><div class="col-lg-6 col-md-6">This is a column</div><div class= "col-lg-6 col-md-6"> <img src="https://img.alicdn.com/imgextra/i3/20841398/TB2Si6IgRDH8KJjy1zeXXXjepXa-20841398.png" style="width: 100%;" /></div></div>'},{start:"row3-image",replacement:'<div class="row"><div class= "col-lg-4 col-md-4"> <img src="https://img.alicdn.com/imgextra/i3/20841398/TB2Si6IgRDH8KJjy1zeXXXjepXa-20841398.png" style="width: 100%;" /></div><div class= "col-lg-4 col-md-4"> <img src="https://img.alicdn.com/imgextra/i3/20841398/TB2Si6IgRDH8KJjy1zeXXXjepXa-20841398.png" style="width: 100%;" /></div><div class= "col-lg-4 col-md-4"> <img src="https://img.alicdn.com/imgextra/i3/20841398/TB2Si6IgRDH8KJjy1zeXXXjepXa-20841398.png" style="width: 100%;" /></div></div>'}]}),t.contentEditor=d.a.get("tinymceId")),t.contentEditor&&(t.contentEditor.setContent(e),this.disabled&&t.contentEditor.setMode("readonly"))},addImg:function(e){var t=e[0],n='<img src="'.concat(t,'" style="width: 100%;"/> ');this.contentEditor&&this.contentEditor.insertContent(n)},getValue1:function(){var e;this.contentEditor&&(e=this.contentEditor.getContent()),this.$emit("update:value",e)}}},g=Object(i["a"])({},m),h=g,p=n("2877"),v=Object(p["a"])(h,r,o,!1,null,null,null);t["a"]=v.exports},"64d8":function(e,t,n){n("ef1f")},"78e4":function(e,t,n){n("3ad8")},"7abb":function(e,t,n){"use strict";n.r(t);var r=n("e562"),o=n.n(r);o.a.addI18n("fr-FR",{Redo:"Rétablir",Undo:"Annuler",Cut:"Couper",Copy:"Copier",Paste:"Coller","Select all":"Sélectionner tout","New document":"Nouveau document",Ok:"OK",Cancel:"Annuler","Visual aids":"Aides visuelles",Bold:"Gras",Italic:"Italique",Underline:"Souligné",Strikethrough:"Barré",Superscript:"Exposant",Subscript:"Indice","Clear formatting":"Effacer la mise en forme",Remove:"Retiré","Align left":"Aligner à gauche","Align center":"Centrer","Align right":"Aligner à droite","No alignment":"Aucun alignement",Justify:"Justifier","Bullet list":"Liste à puces","Numbered list":"Liste numérotée","Decrease indent":"Réduire le retrait","Increase indent":"Augmenter le retrait",Close:"Fermer",Formats:"Formats","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"Votre navigateur ne supporte pas l’accès direct au presse-papiers. Merci d'utiliser les raccourcis clavier Ctrl+X/C/V.",Headings:"Titres","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Preformatted:"Préformaté",Div:"Div",Pre:"Préformaté",Code:"Code",Paragraph:"Paragraphe",Blockquote:"Bloc de citation",Inline:"En ligne",Blocks:"Blocs","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"Le collage est maintenant en mode texte brut. Les contenus seront collés sans retenir les formatages jusqu'à ce que vous désactivez cette option.",Fonts:"Polices","Font sizes":"Tailles de police",Class:"Classe","Browse for an image":"Rechercher une image",OR:"OU","Drop an image here":"Déposer une image ici",Upload:"Télécharger","Uploading image":"Téléversement d'une image",Block:"Bloc",Align:"Aligner",Default:"Par défaut",Circle:"Cercle",Disc:"Disque",Square:"Carré","Lower Alpha":"Alphabet en minuscules","Lower Greek":"Alphabet grec en minuscules","Lower Roman":"Chiffre romain inférieur","Upper Alpha":"Alphabet en majuscules","Upper Roman":"Chiffre romain supérieur","Anchor...":"Ancre...",Anchor:"Ancre",Name:"Nom",ID:"ID","ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"L'ID doit commencer par une lettre, suivie uniquement par des lettres, numéros, tirets, points, deux-points et underscores.","You have unsaved changes are you sure you want to navigate away?":"Vous avez des modifications non enregistrées, êtes-vous sûr de vouloir quitter la page ?","Restore last draft":"Restaurer le dernier brouillon","Special character...":"Caractère spécial...","Special Character":"Caractère spécial","Source code":"Code source","Insert/Edit code sample":"Insérer / modifier un bloc de code",Language:"Langue","Code sample...":"Exemple de code...","Left to right":"De gauche à droite","Right to left":"De droite à gauche",Title:"Titre",Fullscreen:"Plein écran",Action:"Action",Shortcut:"Raccourci",Help:"Aide",Address:"Adresse","Focus to menubar":"Mettre le focus sur la barre de menu","Focus to toolbar":"Mettre le focus sur la barre d'outils","Focus to element path":"Mettre le focus sur le chemin vers l'élément","Focus to contextual toolbar":"Mettre le focus sur la barre d'outils contextuelle","Insert link (if link plugin activated)":"Insérer un lien (si le plug-in link est activé)","Save (if save plugin activated)":"Enregistrer (si le plug-in save est activé)","Find (if searchreplace plugin activated)":"Rechercher (si le plug-in searchreplace est activé)","Plugins installed ({0}):":"Plug-ins installés ({0}) :","Premium plugins:":"Plug-ins premium :","Learn more...":"En savoir plus...","You are using {0}":"Vous utilisez {0}",Plugins:"Plug-ins","Handy Shortcuts":"Raccourcis utiles","Horizontal line":"Ligne horizontale","Insert/edit image":"Insérer/modifier image","Alternative description":"Description alternative",Accessibility:"Accessibilité","Image is decorative":"L'image est décorative",Source:"Source",Dimensions:"Dimensions","Constrain proportions":"Limiter les proportions",General:"Général",Advanced:"Options avancées",Style:"Style","Vertical space":"Espace vertical","Horizontal space":"Espace horizontal",Border:"Bordure","Insert image":"Insérer une image","Image...":"Image...","Image list":"Liste des images",Resize:"Redimensionner","Insert date/time":"Insérer date/heure","Date/time":"Date/heure","Insert/edit link":"Insérer/modifier lien","Text to display":"Texte à afficher",Url:"URL","Open link in...":"Ouvrir le lien dans...","Current window":"Fenêtre active",None:"Aucun","New window":"Nouvelle fenêtre","Open link":"Ouvrir le lien","Remove link":"Enlever le lien",Anchors:"Ancres","Link...":"Lien...","Paste or type a link":"Coller ou taper un lien","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"L'URL que vous avez saisi semble être une adresse e-mail. Souhaitez-vous y ajouter le préfixe requis mailto: ?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"L'URL que vous avez saisi semble être un lien externe. Souhaitez-vous y ajouter le préfixe requis mailto: ?","The URL you entered seems to be an external link. Do you want to add the required https:// prefix?":"L'URL que vous avez saisie semble être un lien externe. Voulez-vous ajouter le préfixe https:// requis ?","Link list":"Liste des liens","Insert video":"Insérer une vidéo","Insert/edit video":"Insérer/modifier une vidéo","Insert/edit media":"Insérer/modifier un média","Alternative source":"Source alternative","Alternative source URL":"URL de la source alternative","Media poster (Image URL)":"Affiche de média (URL de l'image)","Paste your embed code below:":"Collez votre code incorporé ci-dessous :",Embed:"Incorporer","Media...":"Média...","Nonbreaking space":"Espace insécable","Page break":"Saut de page","Paste as text":"Coller comme texte",Preview:"Aperçu",Print:"Imprimer","Print...":"Imprimer...",Save:"Enregistrer",Find:"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer","Replace all":"Remplacer tout",Previous:"Précédente",Next:"Suivante","Find and Replace":"Trouver et remplacer","Find and replace...":"Trouver et remplacer...","Could not find the specified string.":"Impossible de trouver la chaîne spécifiée.","Match case":"Respecter la casse","Find whole words only":"Mot entier","Find in selection":"Trouver dans la sélection","Insert table":"Insérer un tableau","Table properties":"Propriétés du tableau","Delete table":"Supprimer le tableau",Cell:"Cellule",Row:"Ligne",Column:"Colonne","Cell properties":"Propriétés de la cellule","Merge cells":"Fusionner les cellules","Split cell":"Diviser la cellule","Insert row before":"Insérer une ligne avant","Insert row after":"Insérer une ligne après","Delete row":"Supprimer la ligne","Row properties":"Propriétés de la ligne","Cut row":"Couper la ligne","Cut column":"Couper la colonne","Copy row":"Copier la ligne","Copy column":"Copier la colonne","Paste row before":"Coller la ligne avant","Paste column before":"Coller la colonne avant","Paste row after":"Coller la ligne après","Paste column after":"Coller la colonne après","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Delete column":"Supprimer la colonne",Cols:"Colonnes",Rows:"Lignes",Width:"Largeur",Height:"Hauteur","Cell spacing":"Espacement entre les cellules","Cell padding":"Marge intérieure des cellules","Row clipboard actions":"Actions du presse-papiers des lignes","Column clipboard actions":"Actions du presse-papiers des colonnes","Table styles":"Style tableau","Cell styles":"Type de cellule","Column header":"En-tête de colonne","Row header":"En-tête de ligne","Table caption":"Légende de tableau",Caption:"Légende","Show caption":"Afficher une légende",Left:"Gauche",Center:"Centre",Right:"Droite","Cell type":"Type de cellule",Scope:"Étendue",Alignment:"Alignement","Horizontal align":"Alignement horizontal","Vertical align":"Alignement vertical",Top:"En haut",Middle:"Au milieu",Bottom:"En bas","Header cell":"Cellule d'en-tête","Row group":"Groupe de lignes","Column group":"Groupe de colonnes","Row type":"Type de ligne",Header:"En-tête",Body:"Corps",Footer:"Pied de page","Border color":"Couleur de bordure",Solid:"Trait continu",Dotted:"Pointillé",Dashed:"Tirets",Double:"Deux traits continus",Groove:"Sculpté",Ridge:"Extrudé",Inset:"Incrusté",Outset:"Relief",Hidden:"Masqué","Insert template...":"Insérer un modèle...",Templates:"Modèles",Template:"Modèle","Insert Template":"Insérer le modèle","Text color":"Couleur du texte","Background color":"Couleur d'arrière-plan","Custom...":"Personnalisée...","Custom color":"Couleur personnalisée","No color":"Aucune couleur","Remove color":"Supprimer la couleur","Show blocks":"Afficher les blocs","Show invisible characters":"Afficher les caractères invisibles","Word count":"Nombre de mots",Count:"Total",Document:"Document",Selection:"Sélection",Words:"Mots","Words: {0}":"Mots : {0}","{0} words":"{0} mots",File:"Fichier",Edit:"Modifier",Insert:"Insérer",View:"Afficher",Format:"Format",Table:"Tableau",Tools:"Outils","Powered by {0}":"Avec {0}","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"Zone de Texte Riche. Appuyez sur ALT-F9 pour le menu. Appuyez sur ALT-F10 pour la barre d'outils. Appuyez sur ALT-0 pour l'aide","Image title":"Titre d'image","Border width":"Épaisseur de la bordure","Border style":"Style de la bordure",Error:"Erreur",Warn:"Avertir",Valid:"Valide","To open the popup, press Shift+Enter":"Pour ouvrir la popup, appuyez sur Maj+Entrée","Rich Text Area":"Zone de Texte Riche","Rich Text Area. Press ALT-0 for help.":"Zone de Texte Riche. Appuyez sur ALT-0 pour l'aide.","System Font":"Police système","Failed to upload image: {0}":"Échec d'envoi de l'image : {0}","Failed to load plugin: {0} from url {1}":"Échec de chargement du plug-in : {0} à partir de l’URL {1}","Failed to load plugin url: {0}":"Échec de chargement de l'URL du plug-in : {0}","Failed to initialize plugin: {0}":"Échec d'initialisation du plug-in : {0}",example:"exemple",Search:"Rechercher",All:"Tout",Currency:"Devise",Text:"Texte",Quotations:"Citations",Mathematical:"Opérateurs mathématiques","Extended Latin":"Latin étendu",Symbols:"Symboles",Arrows:"Flèches","User Defined":"Défini par l'utilisateur","dollar sign":"Symbole dollar","currency sign":"Symbole devise","euro-currency sign":"Symbole euro","colon sign":"Symbole colón","cruzeiro sign":"Symbole cruzeiro","french franc sign":"Symbole franc français","lira sign":"Symbole lire","mill sign":"Symbole millième","naira sign":"Symbole naira","peseta sign":"Symbole peseta","rupee sign":"Symbole roupie","won sign":"Symbole won","new sheqel sign":"Symbole nouveau chékel","dong sign":"Symbole dong","kip sign":"Symbole kip","tugrik sign":"Symbole tougrik","drachma sign":"Symbole drachme","german penny symbol":"Symbole pfennig","peso sign":"Symbole peso","guarani sign":"Symbole guarani","austral sign":"Symbole austral","hryvnia sign":"Symbole hryvnia","cedi sign":"Symbole cedi","livre tournois sign":"Symbole livre tournois","spesmilo sign":"Symbole spesmilo","tenge sign":"Symbole tenge","indian rupee sign":"Symbole roupie indienne","turkish lira sign":"Symbole lire turque","nordic mark sign":"Symbole du mark nordique","manat sign":"Symbole manat","ruble sign":"Symbole rouble","yen character":"Sinogramme Yen","yuan character":"Sinogramme Yuan","yuan character, in hong kong and taiwan":"Sinogramme Yuan, Hong Kong et Taiwan","yen/yuan character variant one":"Sinogramme Yen/Yuan, première variante",Emojis:"Émojis","Emojis...":"Émojis...","Loading emojis...":"Chargement des emojis...","Could not load emojis":"Impossible de charger les emojis",People:"Personnes","Animals and Nature":"Animaux & nature","Food and Drink":"Nourriture & boissons",Activity:"Activité","Travel and Places":"Voyages & lieux",Objects:"Objets",Flags:"Drapeaux",Characters:"Caractères","Characters (no spaces)":"Caractères (espaces non compris)","{0} characters":"{0} caractères","Error: Form submit field collision.":"Erreur : conflit de champs lors de la soumission du formulaire.","Error: No form element found.":"Erreur : aucun élément de formulaire trouvé.","Color swatch":"Échantillon de couleurs","Color Picker":"Sélecteur de couleurs","Invalid hex color code: {0}":"Code couleur hexadécimal invalide : {0}","Invalid input":"Entrée invalide",R:"R","Red component":"Composant rouge",G:"V","Green component":"Composant vert",B:"B","Blue component":"Composant bleu","#":"#","Hex color code":"Code couleur hexadécimal","Range 0 to 255":"Plage de 0 à 255",Turquoise:"Turquoise",Green:"Vert",Blue:"Bleu",Purple:"Violet","Navy Blue":"Bleu marine","Dark Turquoise":"Turquoise foncé","Dark Green":"Vert foncé","Medium Blue":"Bleu moyen","Medium Purple":"Violet moyen","Midnight Blue":"Bleu de minuit",Yellow:"Jaune",Orange:"Orange",Red:"Rouge","Light Gray":"Gris clair",Gray:"Gris","Dark Yellow":"Jaune foncé","Dark Orange":"Orange foncé","Dark Red":"Rouge foncé","Medium Gray":"Gris moyen","Dark Gray":"Gris foncé","Light Green":"Vert clair","Light Yellow":"Jaune clair","Light Red":"Rouge clair","Light Purple":"Violet clair","Light Blue":"Bleu clair","Dark Purple":"Violet foncé","Dark Blue":"Bleu foncé",Black:"Noir",White:"Blanc","Switch to or from fullscreen mode":"Passer en ou quitter le mode plein écran","Open help dialog":"Ouvrir la boîte de dialogue d'aide",history:"historique",styles:"styles",formatting:"mise en forme",alignment:"alignement",indentation:"retrait",Font:"Police",Size:"Taille","More...":"Plus...","Select...":"Sélectionner...",Preferences:"Préférences",Yes:"Oui",No:"Non","Keyboard Navigation":"Navigation au clavier",Version:"Version","Code view":"Affichage du code","Open popup menu for split buttons":"Ouvrir le menu contextuel pour les boutons partagés","List Properties":"Propriétés de la liste","List properties...":"Lister les propriétés...","Start list at number":"Liste de départ au numéro","Line height":"Hauteur de la ligne","Dropped file type is not supported":"Le type de fichier déposé n'est pas pris en charge","Loading...":"Chargement...","ImageProxy HTTP error: Rejected request":"Erreur HTTP d'ImageProxy : Requête rejetée","ImageProxy HTTP error: Could not find Image Proxy":"Erreur HTTP d'ImageProxy : Impossible de trouver ImageProxy","ImageProxy HTTP error: Incorrect Image Proxy URL":"Erreur HTTP d'ImageProxy : URL de ImageProxy incorrecte","ImageProxy HTTP error: Unknown ImageProxy error":"Erreur HTTP d'ImageProxy : Erreur ImageProxy inconnue"})},"94ce":function(e,t){(function(){"use strict";var e=function(){},t=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},n=function(e,t){return function(n){return e(t(n))}},r=function(e){return function(){return e}},o=function(e){return e};function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var u=function(e){return function(t){return!e(t)}},a=function(e){return function(){throw new Error(e)}},c=r(!1),s=r(!0),l=function(){return f},f=function(){var t=function(e){return e.isNone()},n=function(e){return e()},o=function(e){return e},i={fold:function(e,t){return e()},is:c,isSome:c,isNone:s,getOr:o,getOrThunk:n,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:o,orThunk:n,map:l,each:e,bind:l,exists:c,forall:s,filter:l,equals:t,equals_:t,toArray:function(){return[]},toString:r("none()")};return i}(),d=function(e){var t=r(e),n=function(){return i},o=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:s,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return d(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?i:f},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,(function(t){return n(e,t)}))}};return i},m=function(e){return null===e||void 0===e?f:d(e)},g={some:d,none:l,from:m},h=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},p=function(e){return function(t){return h(t)===e}},v=function(e){return function(t){return typeof t===e}},b=function(e){return function(t){return e===t}},y=p("string"),w=p("object"),x=p("array"),C=v("boolean"),S=b(void 0),k=function(e){return null===e||void 0===e},T=function(e){return!k(e)},O=v("function"),E=v("number"),A=Array.prototype.slice,D=Array.prototype.indexOf,_=Array.prototype.push,R=function(e,t){return D.call(e,t)},z=function(e,t){return R(e,t)>-1},M=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},B=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},N=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},P=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},I=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},L=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var u=e[o],a=t(u,o)?n:r;a.push(u)}return{pass:n,fail:r}},H=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},F=function(e,t,n){return I(e,(function(e){n=t(n,e)})),n},V=function(e,t,n){return P(e,(function(e){n=t(n,e)})),n},U=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return g.some(i);if(n(i,r))break}return g.none()},j=function(e,t){return U(e,t,c)},W=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return g.some(n)}return g.none()},q=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!x(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t},G=function(e,t){return q(N(e,t))},X=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},$=function(e){var t=A.call(e,0);return t.reverse(),t},K=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},Y=function(e){return[e]},J=function(e,t){var n=A.call(e,0);return n.sort(t),n},Z=function(e,t){return t>=0&&t<e.length?g.some(e[t]):g.none()},Q=function(e){return Z(e,0)},ee=function(e){return Z(e,e.length-1)},te=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return g.none()},ne=function(){return ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ne.apply(this,arguments)};function re(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}var oe=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},ie=function(e,t,n,o){var i=e.isiOS()&&!0===/ipad/i.test(n),u=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),c=a||o("(pointer:coarse)"),s=i||!u&&a&&o("(min-device-width:768px)"),l=u||a&&!s,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!s&&!f;return{isiPad:r(i),isiPhone:r(u),isTablet:r(s),isPhone:r(l),isTouch:r(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:r(f),isDesktop:r(d)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ae=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return le(r(1),r(2))},ce=function(e,t){var n=String(t).toLowerCase();return 0===e.length?se():ae(e,n)},se=function(){return le(0,0)},le=function(e,t){return{major:e,minor:t}},fe={nu:le,detect:ce,unknown:se},de=function(e,t){var n=String(t).toLowerCase();return j(e,(function(e){return e.search(n)}))},me=function(e,t){return de(e,t).map((function(e){var n=fe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ge=function(e,t){return de(e,t).map((function(e){var n=fe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},he={detectBrowser:me,detectOs:ge},pe=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ve=function(e,t){return-1!==e.indexOf(t)},be=function(e,t){return pe(e,t,0)},ye=function(e,t){return pe(e,t,e.length-t.length)},we=function(e){return function(t){return t.replace(e,"")}},xe=we(/^\s+|\s+$/g),Ce=function(e){return e.length>0},Se=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ke=function(e){return function(t){return ve(t,e)}},Te=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ve(e,"edge/")&&ve(e,"chrome")&&ve(e,"safari")&&ve(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Se],search:function(e){return ve(e,"chrome")&&!ve(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ve(e,"msie")||ve(e,"trident")}},{name:"Opera",versionRegexes:[Se,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ke("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ke("firefox")},{name:"Safari",versionRegexes:[Se,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ve(e,"safari")||ve(e,"mobile/"))&&ve(e,"applewebkit")}}],Oe=[{name:"Windows",search:ke("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ve(e,"iphone")||ve(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ke("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ke("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ke("linux"),versionRegexes:[]},{name:"Solaris",search:ke("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ke("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ke("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ee={browsers:r(Te),oses:r(Oe)},Ae="Edge",De="Chrome",_e="IE",Re="Opera",ze="Firefox",Me="Safari",Be=function(){return Ne({current:void 0,version:fe.unknown()})},Ne=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ae),isChrome:r(De),isIE:r(_e),isOpera:r(Re),isFirefox:r(ze),isSafari:r(Me)}},Pe={unknown:Be,nu:Ne,edge:r(Ae),chrome:r(De),ie:r(_e),opera:r(Re),firefox:r(ze),safari:r(Me)},Ie="Windows",Le="iOS",He="Android",Fe="Linux",Ve="OSX",Ue="Solaris",je="FreeBSD",We="ChromeOS",qe=function(){return Ge({current:void 0,version:fe.unknown()})},Ge=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ie),isiOS:r(Le),isAndroid:r(He),isOSX:r(Ve),isLinux:r(Fe),isSolaris:r(Ue),isFreeBSD:r(je),isChromeOS:r(We)}},Xe={unknown:qe,nu:Ge,windows:r(Ie),ios:r(Le),android:r(He),linux:r(Fe),osx:r(Ve),solaris:r(Ue),freebsd:r(je),chromeos:r(We)},$e=function(e,t){var n=Ee.browsers(),r=Ee.oses(),o=he.detectBrowser(n,e).fold(Pe.unknown,Pe.nu),i=he.detectOs(r,e).fold(Xe.unknown,Xe.nu),u=ie(i,o,e,t);return{browser:o,os:i,deviceType:u}},Ke={detect:$e},Ye=function(e){return window.matchMedia(e).matches},Je=oe((function(){return Ke.detect(navigator.userAgent,Ye)})),Ze=function(){return Je()},Qe=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},et=function(e,t){return Qe(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},tt=8,nt=9,rt=11,ot=1,it=3,ut=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root nod