travel/admin/node_modules/tui-editor/dist/tui-editor-Editor-full.min.js

36 lines
1.3 MiB
JavaScript
Raw Normal View History

2024-06-24 11:28:18 +08:00
/*!
* tui-editor
* @version 1.3.3
* @author NHN Ent. FE Development Lab <dl_javascript@nhnent.com> (https://nhnent.github.io/tui.editor/)
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Editor=t():(e.tui=e.tui||{},e.tui.Editor=t())}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="dist/",t(t.s=289)}([function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object String]"===r(e)}function a(e,t){return E.call(e,t)}function o(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function l(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function c(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function u(e,t){var n=0;return a(T,t)?T[t]:35===t.charCodeAt(0)&&x.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(n))?c(n):e}function d(e){return e.indexOf("\\")<0?e:e.replace(C,"$1")}function p(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(w,function(e,t,n){return t||u(e,n)})}function f(e){return M[e]}function m(e){return k.test(e)?e.replace(N,f):e}function g(e){return e.replace(O,"\\$&")}function h(e){switch(e){case 9:case 32:return!0}return!1}function v(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function _(e){return A.test(e)}function b(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function y(e){return e.trim().replace(/\s+/g," ").toUpperCase()}var E=Object.prototype.hasOwnProperty,C=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,S=/&([a-z#][a-z0-9]{1,31});/gi,w=new RegExp(C.source+"|"+S.source,"gi"),x=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,T=n(15),k=/[&<>"]/,N=/[&<>"]/g,M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},O=/[.?*+^$[\]\\(){}|-]/g,A=n(8);t.lib={},t.lib.mdurl=n(16),t.lib.ucmicro=n(42),t.assign=o,t.isString=i,t.has=a,t.unescapeMd=d,t.unescapeAll=p,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=m,t.arrayReplaceAt=s,t.isSpace=h,t.isWhiteSpace=v,t.isMdAsciiPunct=b,t.isPunctChar=_,t.escapeRE=g,t.normalizeReference=y},function(e,t,n){var r,i;/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2018-01-20T17:24Z
*/
!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,a){"use strict";function o(e,t,n){t=t||ue;var r,i=t.createElement("script");if(i.text=e,n)for(r in we)n[r]&&(i[r]=n[r]);t.head.appendChild(i).parentNode.removeChild(i)}function s(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?he[ve.call(e)]||"object":typeof e}function l(e){var t=!!e&&"length"in e&&e.length,n=s(e);return!Ce(e)&&!Se(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function c(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function u(e,t,n){return Ce(t)?xe.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?xe.grep(e,function(e){return e===t!==n}):"string"!=typeof t?xe.grep(e,function(e){return ge.call(t,e)>-1!==n}):xe.filter(t,e,n)}function d(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function p(e){var t={};return xe.each(e.match(Pe)||[],function(e,n){t[n]=!0}),t}function f(e){return e}function m(e){throw e}function g(e,t,n,r){var i;try{e&&Ce(i=e.promise)?i.call(e).done(t).fail(n):e&&Ce(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function h(){ue.removeEventListener("DOMContentLoaded",h),n.removeEventListener("load",h),xe.ready()}function v(e,t){return t.toUpperCase()}function _(e){return e.replace(qe,"ms-").replace(He,v)}function b(){this.expando=xe.expando+b.uid++}function y(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:We.test(e)?JSON.parse(e):e)}function E(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(je,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=y(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function C(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return xe.css(e,t,"")},l=s(),c=n&&n[3]||(xe.cssNumber[t]?"":"px"),u=(xe.cssNumber[t]||"px"!==c&&+l)&&Ke.exec(xe.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)xe.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,xe.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}function S(e){var t,n=e.ownerDocument,r=e.nodeName,i=Xe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=xe.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Xe[r]=i,i)}function w(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?("none"===n&&(i[a]=ze.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&Qe(r)&&(i[a]=S(r))):"none"!==n&&(i[a]="none",ze.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}function x(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&c(e,t)?xe.merge([e],n):n}function T(e,t){for(var n=0,r=e.length;n<r;n++)ze.set(e[n],"globalEval",!t||ze.get(t[n],"globalEval"))}function k(e,t,n,r,i){for(var a,o,l,c,u,d,p=t.createDocumentFragment(),f=[],m=0,g=e.length;m<g;m++)if((a=e[m])||0===a)if("object"===s(a))xe.merge(f,a.nodeType?[a]:a);else if(rt.test(a)){for(o=o||p.appendChild(t.createElement("div")),l=(et.exec(a)||["",""])[1].toLowerCase(),c=nt[l]||nt._default,o.innerHTML=c[1]+xe.htmlPrefilter(a)+c[2],d=c[0];d--;)o=o.lastChild;xe.merge(f,o.childNodes),o=p.firstChild,o.textContent=""}else f.push(t.createTextNode(a));for(p.textContent="",m=0;a=f[m++];)if(r&&xe.inArray(a,r)>-1)i&&i.push(a);else if(u=xe.contains(a.ownerDocument,a),o=x(p.appendChild(a),"script"),u&&T(o),n)for(d=0;a=o[d++];)tt.test(a.type||"")&&n.push(a);return p}function N(){return!0}function M(){return!1}function O(){try{return ue.activeElement}catch(e){}}function A(e,t,n,r,i,a){var o,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)A(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=M;el
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(e){function t(e,t,n,r){var i,a,o,s,l,u,p,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!r&&((t?t.ownerDocument||t:U)!==A&&O(t),t=t||A,L)){if(11!==m&&(l=ge.exec(e)))if(i=l[1]){if(9===m){if(!(o=t.getElementById(i)))return n;if(o.id===i)return n.push(o),n}else if(f&&(o=f.getElementById(i))&&B(t,o)&&o.id===i)return n.push(o),n}else{if(l[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&y.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(i)),n}if(y.qsa&&!$[e+" "]&&(!I||!I.test(e))){if(1!==m)f=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,ye):t.setAttribute("id",s=F),u=w(e),a=u.length;a--;)u[a]="#"+s+" "+d(u[a]);p=u.join(","),f=he.test(e)&&c(t.parentNode)||t}if(p)try{return Q.apply(n,f.querySelectorAll(p)),n}catch(e){}finally{s===F&&t.removeAttribute("id")}}}return T(e.replace(ae,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>E.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=n.length;r--;)E.attrHandle[n[r]]=t}function o(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=H++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,d,p=[q,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(d=t[F]||(t[F]={}),u=d[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===q&&c[1]===s)return p[2]=c[2];if(u[a]=p,p[2]=e(t,n,l))return!0}return!1}}function f(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,a=n.length;i<a;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),c&&t.push(s)));return o}function h(e,t,n,i,a,o){return i&&!i[F]&&(i=h(i)),a&&!a[F]&&(a=h(a,o)),r(function(r,o,s,l){var c,u,d,p=[],f=[],h=o.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),_=!e||!r&&t?v:g(v,p,e,s,l),b=n?a||(r?e:h||i)?[]:o:_;if(n&&n(_,b,s,l),i)for(c=g(b,f),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(b[f[u]]=!(_[f[u]]=d));if(r){if(a||e){if(a){for(c=[],u=b.length;u--;)(d=b[u])&&c.push(_[u]=d);a(null,b=[],c,l)}for(u=b.length;u--;)(d=b[u])&&(c=a?X(r,d):p[u])>-1&&(r[c]=!(o[c]=d))}}else b=g(b===o?b.splice(h,b.length):b),a?a(null,o,b,l):Q.apply(o,b)})}function v(e){for(var t,n,r,i=e.length,a=E.relative[e[0].type],o=a||E.relative[" "],s=a?1:0,l=p(function(e){return e===t},o,!0),c=p(function(e){return X(t,e)>-1},o,!0),u=[function(e,n,r){var i=!a&&(r||n!==k)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];s<i;s++)if(n=E.relative[e[s].type])u=[p(f(u),n)];else{if(n=E.filter[e[s].type].apply(null,e[s].matches),n[F]){for(r=++s;r<i&&!E.relative[e[r].type];r++);return h(s>1&&f(u),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&d(e))}u.push(n)}return f(u)}function _(e,n){var i=n.length>0,a=e.length>0,o=function(r,o,s,l,c){var u,d,p,f=0,m="0",h=r&&[],v=[],_=k,b=r||a&&E.find.TAG("*",c),y=q
* tui-code-snippet.js
* @version 1.5.0
* @author NHNEnt FE Development Lab <dl_javascript@nhnent.com>
* @license MIT
*/
!function(t,n){e.exports=n()}(0,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="dist",t(0)}([function(e,t,n){"use strict";var r={},i=n(1),a=i.extend;a(r,i),a(r,n(3)),a(r,n(2)),a(r,n(4)),a(r,n(5)),a(r,n(6)),a(r,n(7)),a(r,n(8)),a(r,n(9)),r.browser=n(10),r.popup=n(11),r.formatDate=n(12),r.defineClass=n(13),r.defineModule=n(14),r.defineNamespace=n(15),r.CustomEvents=n(16),r.Enum=n(17),r.ExMap=n(18),r.HashMap=n(20),r.Map=n(19),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r,i,a,o=Object.prototype.hasOwnProperty;for(i=1,a=arguments.length;i<a;i+=1){n=arguments[i];for(r in n)o.call(n,r)&&(e[r]=n[r])}return e}function i(e){return e.__fe_id||(f+=1,e.__fe_id=f),e.__fe_id}function a(e){return d.isExisty(u(e,"__fe_id"))}function o(){f=0}function s(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t);return n}function l(e){var t=arguments.length,n=1;if(t<1)return!0;for(;n<t;n+=1)if(!c(e,arguments[n]))return!1;return!0}function c(e,t){var n,r=[],i=[];if(isNaN(e)&&isNaN(t)&&d.isNumber(e)&&d.isNumber(t))return!0;if(e===t)return!0;if(d.isFunction(e)&&d.isFunction(t)||e instanceof Date&&t instanceof Date||e instanceof RegExp&&t instanceof RegExp||e instanceof String&&t instanceof String||e instanceof Number&&t instanceof Number)return e.toString()===t.toString();if(!(e instanceof Object&&t instanceof Object))return!1;if(e.isPrototypeOf(t)||t.isPrototypeOf(e)||e.constructor!==t.constructor||e.prototype!==t.prototype)return!1;if(p.inArray(e,r)>-1||p.inArray(t,i)>-1)return!1;for(n in t){if(t.hasOwnProperty(n)!==e.hasOwnProperty(n))return!1;if(typeof t[n]!=typeof e[n])return!1}for(n in e){if(t.hasOwnProperty(n)!==e.hasOwnProperty(n))return!1;if(typeof t[n]!=typeof e[n])return!1;if("object"==typeof e[n]||"function"==typeof e[n]){if(r.push(e),i.push(t),!c(e[n],t[n]))return!1;r.pop(),i.pop()}else if(e[n]!==t[n])return!1}return!0}function u(e,t){for(var n=arguments,r=n[0],i=1,a=n.length;i<a;i+=1){if(d.isUndefined(r)||d.isNull(r))return;r=r[n[i]]}return r}var d=n(2),p=n(3),f=0;e.exports={extend:r,stamp:i,hasStamp:a,resetLastId:o,keys:Object.prototype.keys||s,compareJSON:l,pick:u}},function(e,t){"use strict";function n(e){return!r(e)&&!i(e)}function r(e){return void 0===e}function i(e){return null===e}function a(e){return n(e)&&!1!==e}function o(e){return!a(e)}function s(e){return n(e)&&("[object Arguments]"===k.call(e)||!!e.callee)}function l(e){return e instanceof Array}function c(e){return e===Object(e)}function u(e){return e instanceof Function}function d(e){return"number"==typeof e||e instanceof Number}function p(e){return"string"==typeof e||e instanceof String}function f(e){return"boolean"==typeof e||e instanceof Boolean}function m(e){return"[object Array]"===k.call(e)}function g(e){return"[object Function]"===k.call(e)}function h(e){return"[object Number]"===k.call(e)}function v(e){return"[object String]"===k.call(e)}function _(e){return"[object Boolean]"===k.call(e)}function b(e){return"object"==typeof HTMLElement?e&&(e instanceof HTMLElement||!!e.nodeType):!(!e||!e.nodeType)}function y(e){return"object"==typeof HTMLElement?e&&e instanceof HTMLElement:!(!e||!e.nodeType||1!==e.nodeType)}function E(e){return!(n(e)&&!C(e))||(l(e)||s(e)?0===e.length:!(c(e)&&!u(e))||!S(e))}function C(e){return p(e)&&""===e}function S(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function w(e){return!E(e)}function x(e){return e instanceof Date}function T(e){return"[object Date]"===k.call(e)}var k=Object.prototype.toString;e.exports={isExisty:n,isUndefined:r,isNull:i,isTruthy:a,isFalsy:o,isArguments:s,isArray:l,isArraySafe:m,isObject:c,isFunction:u,isFunctionSafe:g,isNumber:d,isNumberSafe:h,isDate:x,isDateSafe:T,isString:p,isStringSafe:v,isBoolean:f,isBooleanSafe:_,isHTMLNode:b,isHTMLTag:y,isEmpty:E,isNotEmpty:w}},function(e,t,n){"use strict";var r,i=n(4),a=n(2),o=Array.prototype.slice,s=function(e,t,n){var r,i=[];for(a.isUndefined(t)&&(t=e||0,e=0),n=n||1,r=n<0?-1:1,t*=r