ghost 5.37.0 → 5.38.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/components/{tryghost-adapter-cache-memory-ttl-5.37.0.tgz → tryghost-adapter-cache-memory-ttl-5.38.0.tgz} +0 -0
- package/components/tryghost-adapter-cache-redis-5.38.0.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.37.0.tgz → tryghost-adapter-manager-5.38.0.tgz} +0 -0
- package/components/{tryghost-api-framework-5.37.0.tgz → tryghost-api-framework-5.38.0.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.37.0.tgz → tryghost-api-version-compatibility-service-5.38.0.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.38.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.38.0.tgz +0 -0
- package/components/{tryghost-constants-5.37.0.tgz → tryghost-constants-5.38.0.tgz} +0 -0
- package/components/tryghost-custom-theme-settings-service-5.38.0.tgz +0 -0
- package/components/{tryghost-data-generator-5.37.0.tgz → tryghost-data-generator-5.38.0.tgz} +0 -0
- package/components/tryghost-domain-events-5.38.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.38.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.38.0.tgz +0 -0
- package/components/{tryghost-email-analytics-service-5.37.0.tgz → tryghost-email-analytics-service-5.38.0.tgz} +0 -0
- package/components/tryghost-email-content-generator-5.38.0.tgz +0 -0
- package/components/tryghost-email-events-5.38.0.tgz +0 -0
- package/components/tryghost-email-service-5.38.0.tgz +0 -0
- package/components/{tryghost-email-suppression-list-5.37.0.tgz → tryghost-email-suppression-list-5.38.0.tgz} +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.38.0.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.37.0.tgz → tryghost-express-dynamic-redirects-5.38.0.tgz} +0 -0
- package/components/tryghost-external-media-inliner-5.38.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.38.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.38.0.tgz +0 -0
- package/components/tryghost-i18n-5.38.0.tgz +0 -0
- package/components/{tryghost-importer-handler-content-files-5.37.0.tgz → tryghost-importer-handler-content-files-5.38.0.tgz} +0 -0
- package/components/tryghost-importer-revue-5.38.0.tgz +0 -0
- package/components/tryghost-job-manager-5.38.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.38.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.38.0.tgz +0 -0
- package/components/{tryghost-link-tracking-5.37.0.tgz → tryghost-link-tracking-5.38.0.tgz} +0 -0
- package/components/{tryghost-magic-link-5.37.0.tgz → tryghost-magic-link-5.38.0.tgz} +0 -0
- package/components/tryghost-mailgun-client-5.38.0.tgz +0 -0
- package/components/tryghost-member-attribution-5.38.0.tgz +0 -0
- package/components/tryghost-member-events-5.38.0.tgz +0 -0
- package/components/tryghost-members-api-5.38.0.tgz +0 -0
- package/components/tryghost-members-csv-5.38.0.tgz +0 -0
- package/components/{tryghost-members-events-service-5.37.0.tgz → tryghost-members-events-service-5.38.0.tgz} +0 -0
- package/components/{tryghost-members-importer-5.37.0.tgz → tryghost-members-importer-5.38.0.tgz} +0 -0
- package/components/tryghost-members-offers-5.38.0.tgz +0 -0
- package/components/tryghost-members-payments-5.38.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.38.0.tgz +0 -0
- package/components/{tryghost-members-stripe-service-5.37.0.tgz → tryghost-members-stripe-service-5.38.0.tgz} +0 -0
- package/components/tryghost-milestones-5.38.0.tgz +0 -0
- package/components/tryghost-minifier-5.38.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.38.0.tgz +0 -0
- package/components/{tryghost-mw-cache-control-5.37.0.tgz → tryghost-mw-cache-control-5.38.0.tgz} +0 -0
- package/components/tryghost-mw-error-handler-5.38.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.38.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.38.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.38.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.38.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.38.0.tgz +0 -0
- package/components/tryghost-package-json-5.38.0.tgz +0 -0
- package/components/{tryghost-referrers-5.37.0.tgz → tryghost-referrers-5.38.0.tgz} +0 -0
- package/components/tryghost-security-5.38.0.tgz +0 -0
- package/components/tryghost-session-service-5.38.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.38.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.38.0.tgz +0 -0
- package/components/tryghost-staff-service-5.38.0.tgz +0 -0
- package/components/tryghost-stats-service-5.38.0.tgz +0 -0
- package/components/tryghost-tiers-5.38.0.tgz +0 -0
- package/components/{tryghost-update-check-service-5.37.0.tgz → tryghost-update-check-service-5.38.0.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.38.0.tgz +0 -0
- package/components/{tryghost-version-notifications-data-service-5.37.0.tgz → tryghost-version-notifications-data-service-5.38.0.tgz} +0 -0
- package/components/tryghost-webmentions-5.38.0.tgz +0 -0
- package/core/boot.js +11 -4
- package/core/built/admin/assets/{chunk.143.27cd10a38f877e715b35.js → chunk.143.c6802c882a911797ce4f.js} +6 -6
- package/core/built/admin/assets/{chunk.178.dd6cf17fb0986acf19d6.js → chunk.178.09faefd4027fcba4113d.js} +4 -4
- package/core/built/admin/assets/{chunk.652.bb618bc5abf23bed4e87.js → chunk.220.9ca2950240aba3fced21.js} +1836 -1774
- package/core/built/admin/assets/{chunk.79.4a959c324df25480b90e.js → chunk.79.acb7dd01e1c785f4920c.js} +12 -11
- package/core/built/admin/assets/{ghost-2948791640be026b987b88f89034bc85.js → ghost-35103ff053c43f1dfa7f35821c3c2412.js} +29 -29
- package/core/built/admin/assets/{ghost-efbe4dcc249d119a955b038aae5c980d.css → ghost-a9307c9cfe26a4bc621e02cd3bae421a.css} +1 -1
- package/core/built/admin/assets/{ghost-dark-6ea4b338f17a43c204b7c1e207b90cd7.css → ghost-dark-f309cf445255344e4861a95ecb8f1920.css} +1 -1
- package/core/built/admin/assets/vendor-b982e3bf1020bff77b2a3c44d5f59e55.js +269 -269
- package/core/built/admin/index.html +5 -5
- package/core/frontend/helpers/ghost_head.js +4 -1
- package/core/frontend/services/routing/StaticPagesRouter.js +1 -1
- package/core/frontend/services/sitemap/base-generator.js +5 -1
- package/core/server/adapters/storage/LocalImagesStorage.js +1 -1
- package/core/server/api/endpoints/email-previews.js +2 -43
- package/core/server/api/endpoints/emails.js +1 -22
- package/core/server/api/endpoints/utils/serializers/output/mappers/emails.js +14 -8
- package/core/server/data/importer/import-manager.js +8 -1
- package/core/server/data/migrations/versions/4.9/05-fix-missed-mobiledoc-url-transforms.js +1 -1
- package/core/server/lib/common/events.js +16 -23
- package/core/server/models/base/plugins/relations.js +5 -3
- package/core/server/models/index.js +5 -0
- package/core/server/services/comments/emails.js +2 -2
- package/core/server/services/email-service/wrapper.js +2 -0
- package/core/server/services/link-tracking/LinkClickRepository.js +1 -1
- package/core/server/services/media-inliner/service.js +49 -3
- package/core/server/services/mentions/service.js +6 -1
- package/core/server/services/posts/posts-service.js +3 -14
- package/core/server/services/staff/index.js +2 -0
- package/core/server/services/url/Urls.js +10 -2
- package/core/shared/labs.js +0 -1
- package/package.json +138 -138
- package/yarn.lock +267 -259
- package/components/tryghost-adapter-cache-redis-5.37.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.37.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.37.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.37.0.tgz +0 -0
- package/components/tryghost-domain-events-5.37.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.37.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.37.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.37.0.tgz +0 -0
- package/components/tryghost-email-events-5.37.0.tgz +0 -0
- package/components/tryghost-email-service-5.37.0.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.37.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.37.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.37.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.37.0.tgz +0 -0
- package/components/tryghost-i18n-5.37.0.tgz +0 -0
- package/components/tryghost-importer-revue-5.37.0.tgz +0 -0
- package/components/tryghost-job-manager-5.37.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.37.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.37.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.37.0.tgz +0 -0
- package/components/tryghost-member-attribution-5.37.0.tgz +0 -0
- package/components/tryghost-member-events-5.37.0.tgz +0 -0
- package/components/tryghost-members-api-5.37.0.tgz +0 -0
- package/components/tryghost-members-csv-5.37.0.tgz +0 -0
- package/components/tryghost-members-offers-5.37.0.tgz +0 -0
- package/components/tryghost-members-payments-5.37.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.37.0.tgz +0 -0
- package/components/tryghost-milestones-5.37.0.tgz +0 -0
- package/components/tryghost-minifier-5.37.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.37.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.37.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.37.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.37.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.37.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.37.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.37.0.tgz +0 -0
- package/components/tryghost-package-json-5.37.0.tgz +0 -0
- package/components/tryghost-security-5.37.0.tgz +0 -0
- package/components/tryghost-session-service-5.37.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.37.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.37.0.tgz +0 -0
- package/components/tryghost-staff-service-5.37.0.tgz +0 -0
- package/components/tryghost-stats-service-5.37.0.tgz +0 -0
- package/components/tryghost-tiers-5.37.0.tgz +0 -0
- package/components/tryghost-verification-trigger-5.37.0.tgz +0 -0
- package/components/tryghost-webmentions-5.37.0.tgz +0 -0
- package/core/server/services/bulk-email/bulk-email-processor.js +0 -289
- package/core/server/services/bulk-email/index.js +0 -1
- package/core/server/services/mega/email-preview.js +0 -54
- package/core/server/services/mega/feedback-buttons.js +0 -66
- package/core/server/services/mega/index.js +0 -14
- package/core/server/services/mega/mega.js +0 -626
- package/core/server/services/mega/post-email-serializer.js +0 -559
- package/core/server/services/mega/segment-parser.js +0 -20
- package/core/server/services/mega/template.js +0 -1319
- /package/core/built/admin/assets/{chunk.652.bb618bc5abf23bed4e87.js.LICENSE.txt → chunk.220.9ca2950240aba3fced21.js.LICENSE.txt} +0 -0
|
@@ -5653,32 +5653,32 @@ return!1}}
|
|
|
5653
5653
|
function c(e){return h.isWrapped(e)?e=l.call(e):h.isNode(e)&&(e=[e]),e}var d,h={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&h.isNumber(e.length)&&!h.isString(e)&&!h.isFunction(e)&&!h.isNode(e)&&(0===e.length||h.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1
|
|
5654
5654
|
return!0}},p=!1
|
|
5655
5655
|
if(e.fn&&e.fn.jquery?(d=e,p=!0):d=t.Velocity.Utilities,o<=8&&!p)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.")
|
|
5656
|
-
if(!(o<=7)){var f=
|
|
5657
|
-
d.each(
|
|
5658
|
-
r[5]={resume:!1}}})),d.each(
|
|
5659
|
-
d.each(
|
|
5660
|
-
r[5]&&(r[5].resume=!0)}})),d.each(
|
|
5661
|
-
t.pageYOffset!==n?(
|
|
5662
|
-
var
|
|
5656
|
+
if(!(o<=7)){var f="swing",m={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:r.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:400,easing:f,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){d.data(e,"velocity",{isSVG:h.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime()
|
|
5657
|
+
d.each(m.State.calls,(function(t,r){if(r){if(e!==n&&(r[2].queue!==e||!1===r[2].queue))return!0
|
|
5658
|
+
r[5]={resume:!1}}})),d.each(m.State.delayedElements,(function(e,r){r&&E(r,t)}))},resumeAll:function(e){var t=(new Date).getTime()
|
|
5659
|
+
d.each(m.State.calls,(function(t,r){if(r){if(e!==n&&(r[2].queue!==e||!1===r[2].queue))return!0
|
|
5660
|
+
r[5]&&(r[5].resume=!0)}})),d.each(m.State.delayedElements,(function(e,r){r&&w(r,t)}))}}
|
|
5661
|
+
t.pageYOffset!==n?(m.State.scrollAnchor=t,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop")
|
|
5662
|
+
var g=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,n){var i={x:t.x+n.dx*r,v:t.v+n.dv*r,tension:t.tension,friction:t.friction}
|
|
5663
5663
|
return{dx:i.v,dv:e(i)}}function r(r,n){var i={dx:r.v,dv:e(r)},o=t(r,.5*n,i),a=t(r,.5*n,o),s=t(r,n,a),l=1/6*(i.dx+2*(o.dx+a.dx)+s.dx),u=1/6*(i.dv+2*(o.dv+a.dv)+s.dv)
|
|
5664
5664
|
return r.x=r.x+l*n,r.v=r.v+u*n,r}return function e(t,n,i){var o,a,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4
|
|
5665
5665
|
for(t=parseFloat(t)||500,n=parseFloat(n)||20,i=i||null,l.tension=t,l.friction=n,a=(o=null!==i)?(c=e(t,n))/i*.016:.016;s=r(s||l,a),u.push(1+s.x),c+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return o?function(e){return u[e*(u.length-1)|0]}:c}}()
|
|
5666
|
-
|
|
5667
|
-
var
|
|
5668
|
-
|
|
5669
|
-
if(o)for(r in
|
|
5670
|
-
var a=n[1].match(
|
|
5671
|
-
"Color"===i[0]&&(i.push(i.shift()),a.push(a.shift()),
|
|
5672
|
-
|
|
5666
|
+
m.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(e,t){m.Easings[t[0]]=O.apply(null,t[1])}))
|
|
5667
|
+
var v=m.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<v.Lists.colors.length;e++){var t="color"===v.Lists.colors[e]?"0 0 0 1":"255 255 255 1"
|
|
5668
|
+
v.Hooks.templates[v.Lists.colors[e]]=["Red Green Blue Alpha",t]}var r,n,i
|
|
5669
|
+
if(o)for(r in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(r)){i=(n=v.Hooks.templates[r])[0].split(" ")
|
|
5670
|
+
var a=n[1].match(v.RegEx.valueSplit)
|
|
5671
|
+
"Color"===i[0]&&(i.push(i.shift()),a.push(a.shift()),v.Hooks.templates[r]=[i.join(" "),a.join(" ")])}for(r in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(r))for(var s in i=(n=v.Hooks.templates[r])[0].split(" "))if(i.hasOwnProperty(s)){var l=r+i[s],u=s
|
|
5672
|
+
v.Hooks.registered[l]=[r,u]}},getRoot:function(e){var t=v.Hooks.registered[e]
|
|
5673
5673
|
return t?t[0]:e},getUnit:function(e,t){var r=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||""
|
|
5674
|
-
return r&&u(
|
|
5674
|
+
return r&&u(v.Lists.units)?r:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,(function(e,t,r){return v.Lists.colorNames.hasOwnProperty(r)?(t||"rgba(")+v.Lists.colorNames[r]+(t?"":",1)"):t+r}))},cleanRootPropertyValue:function(e,t){return v.RegEx.valueUnwrap.test(t)&&(t=t.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(t)&&(t=v.Hooks.templates[e][1]),t},extractValue:function(e,t){var r=v.Hooks.registered[e]
|
|
5675
5675
|
if(r){var n=r[0],i=r[1]
|
|
5676
|
-
return(t=
|
|
5676
|
+
return(t=v.Hooks.cleanRootPropertyValue(n,t)).toString().match(v.RegEx.valueSplit)[i]}return t},injectValue:function(e,t,r){var n=v.Hooks.registered[e]
|
|
5677
5677
|
if(n){var i,o=n[0],a=n[1]
|
|
5678
|
-
return(i=(r=
|
|
5678
|
+
return(i=(r=v.Hooks.cleanRootPropertyValue(o,r)).toString().match(v.RegEx.valueSplit))[a]=t,i.join(" ")}return r}},Normalizations:{registered:{clip:function(e,t,r){switch(e){case"name":return"clip"
|
|
5679
5679
|
case"extract":var n
|
|
5680
|
-
return n=
|
|
5681
|
-
case"inject":return"rect("+r+")"}},blur:function(e,t,r){switch(e){case"name":return
|
|
5680
|
+
return n=v.RegEx.wrappedValueAlreadyExtracted.test(r)?r:(n=r.toString().match(v.RegEx.valueUnwrap))?n[1].replace(/,(\s+)?/g," "):r
|
|
5681
|
+
case"inject":return"rect("+r+")"}},blur:function(e,t,r){switch(e){case"name":return m.State.isFirefox?"filter":"-webkit-filter"
|
|
5682
5682
|
case"extract":var n=parseFloat(r)
|
|
5683
5683
|
if(!n&&0!==n){var i=r.toString().match(/blur\(([0-9]+[A-z]+)\)/i)
|
|
5684
5684
|
n=i?i[1]:0}return n
|
|
@@ -5686,30 +5686,30 @@ case"inject":return parseFloat(r)?"blur("+r+")":"none"}},opacity:function(e,t,r)
|
|
|
5686
5686
|
case"extract":var n=r.toString().match(/alpha\(opacity=(.*)\)/i)
|
|
5687
5687
|
return r=n?n[1]/100:1
|
|
5688
5688
|
case"inject":return t.style.zoom=1,parseFloat(r)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity"
|
|
5689
|
-
case"extract":case"inject":return r}}},register:function(){o&&!(o>9)||
|
|
5690
|
-
for(var e=0;e<
|
|
5691
|
-
|
|
5692
|
-
case"extract":return
|
|
5689
|
+
case"extract":case"inject":return r}}},register:function(){o&&!(o>9)||m.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D))
|
|
5690
|
+
for(var e=0;e<v.Lists.transformsBase.length;e++)(function(){var t=v.Lists.transformsBase[e]
|
|
5691
|
+
v.Normalizations.registered[t]=function(e,r,i){switch(e){case"name":return"transform"
|
|
5692
|
+
case"extract":return k(r)===n||k(r).transformCache[t]===n?/^scale/i.test(t)?1:0:k(r).transformCache[t].replace(/[()]/g,"")
|
|
5693
5693
|
case"inject":var o=!1
|
|
5694
5694
|
switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(i)
|
|
5695
5695
|
break
|
|
5696
|
-
case"scal":case"scale":
|
|
5696
|
+
case"scal":case"scale":m.State.isAndroid&&k(r).transformCache[t]===n&&i<1&&(i=1),o=!/(\d)$/i.test(i)
|
|
5697
5697
|
break
|
|
5698
|
-
case"skew":case"rotate":o=!/(deg|\d)$/i.test(i)}return o||(
|
|
5699
|
-
for(var t=0;t<
|
|
5700
|
-
|
|
5698
|
+
case"skew":case"rotate":o=!/(deg|\d)$/i.test(i)}return o||(k(r).transformCache[t]="("+i+")"),k(r).transformCache[t]}}})()
|
|
5699
|
+
for(var t=0;t<v.Lists.colors.length;t++)(function(){var e=v.Lists.colors[t]
|
|
5700
|
+
v.Normalizations.registered[e]=function(t,r,i){switch(t){case"name":return e
|
|
5701
5701
|
case"extract":var a
|
|
5702
|
-
if(
|
|
5703
|
-
else{var s,l={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?s=l[i]!==n?l[i]:l.black:
|
|
5702
|
+
if(v.RegEx.wrappedValueAlreadyExtracted.test(i))a=i
|
|
5703
|
+
else{var s,l={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?s=l[i]!==n?l[i]:l.black:v.RegEx.isHex.test(i)?s="rgb("+v.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(s=l.black),a=(s||i).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!o||o>8)&&3===a.split(" ").length&&(a+=" 1"),a
|
|
5704
5704
|
case"inject":return/^rgb/.test(i)?i:(o<=8?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(o<=8?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}})()
|
|
5705
|
-
function r(e,t,r){if("border-box"===
|
|
5706
|
-
for(n=0;n<s.length;n++)i=parseFloat(
|
|
5705
|
+
function r(e,t,r){if("border-box"===v.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(r||!1)){var n,i,o=0,a="width"===e?["Left","Right"]:["Top","Bottom"],s=["padding"+a[0],"padding"+a[1],"border"+a[0]+"Width","border"+a[1]+"Width"]
|
|
5706
|
+
for(n=0;n<s.length;n++)i=parseFloat(v.getPropertyValue(t,s[n])),isNaN(i)||(o+=i)
|
|
5707
5707
|
return r?-o:o}return 0}function i(e,t){return function(n,i,o){switch(n){case"name":return e
|
|
5708
5708
|
case"extract":return parseFloat(o)+r(e,i,t)
|
|
5709
|
-
case"inject":return parseFloat(o)-r(e,i,t)+"px"}}}
|
|
5710
|
-
return(o||
|
|
5709
|
+
case"inject":return parseFloat(o)-r(e,i,t)+"px"}}}v.Normalizations.registered.innerWidth=i("width",!0),v.Normalizations.registered.innerHeight=i("height",!0),v.Normalizations.registered.outerWidth=i("width"),v.Normalizations.registered.outerHeight=i("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2"
|
|
5710
|
+
return(o||m.State.isAndroid&&!m.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(m.State.prefixMatches[e])return[m.State.prefixMatches[e],!0]
|
|
5711
5711
|
for(var t=["","Webkit","Moz","ms","O"],r=0,n=t.length;r<n;r++){var i
|
|
5712
|
-
if(i=0===r?e:t[r]+e.replace(/^\w/,(function(e){return e.toUpperCase()})),h.isString(
|
|
5712
|
+
if(i=0===r?e:t[r]+e.replace(/^\w/,(function(e){return e.toUpperCase()})),h.isString(m.State.prefixElement.style[i]))return m.State.prefixMatches[e]=i,[i,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t
|
|
5713
5713
|
return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,n){return t+t+r+r+n+n})),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase()
|
|
5714
5714
|
return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t)
|
|
5715
5715
|
else if(h.isString(e.className))e.className+=(e.className.length?" ":"")+t
|
|
@@ -5719,97 +5719,97 @@ else if(h.isString(e.className))e.className=e.className.toString().replace(new R
|
|
|
5719
5719
|
else{var r=e.getAttribute(o<=7?"className":"class")||""
|
|
5720
5720
|
e.setAttribute("class",r.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,r,i,a){function s(e,r){var i=0
|
|
5721
5721
|
if(o<=8)i=d.css(e,r)
|
|
5722
|
-
else{var l=!1;/^(width|height)$/.test(r)&&0===
|
|
5723
|
-
var u,c=function(){l&&
|
|
5724
|
-
if(!a){if("height"===r&&"border-box"!==
|
|
5725
|
-
return c(),h}if("width"===r&&"border-box"!==
|
|
5726
|
-
return c(),p}}u=
|
|
5727
|
-
if(
|
|
5728
|
-
i===n&&(i=
|
|
5729
|
-
"transform"!==(h=
|
|
5730
|
-
if(f&&f.isSVG&&
|
|
5731
|
-
else l=s(e,
|
|
5722
|
+
else{var l=!1;/^(width|height)$/.test(r)&&0===v.getPropertyValue(e,"display")&&(l=!0,v.setPropertyValue(e,"display",v.Values.getDisplayType(e)))
|
|
5723
|
+
var u,c=function(){l&&v.setPropertyValue(e,"display","none")}
|
|
5724
|
+
if(!a){if("height"===r&&"border-box"!==v.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var h=e.offsetHeight-(parseFloat(v.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(e,"paddingBottom"))||0)
|
|
5725
|
+
return c(),h}if("width"===r&&"border-box"!==v.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(v.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(e,"paddingRight"))||0)
|
|
5726
|
+
return c(),p}}u=k(e)===n?t.getComputedStyle(e,null):k(e).computedStyle?k(e).computedStyle:k(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),""!==(i=9===o&&"filter"===r?u.getPropertyValue(r):u[r])&&null!==i||(i=e.style[r]),c()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(r)){var f=s(e,"position");("fixed"===f||"absolute"===f&&/top|left/i.test(r))&&(i=d(e).position()[r]+"px")}return i}var l
|
|
5727
|
+
if(v.Hooks.registered[r]){var u=r,c=v.Hooks.getRoot(u)
|
|
5728
|
+
i===n&&(i=v.getPropertyValue(e,v.Names.prefixCheck(c)[0])),v.Normalizations.registered[c]&&(i=v.Normalizations.registered[c]("extract",e,i)),l=v.Hooks.extractValue(u,i)}else if(v.Normalizations.registered[r]){var h,p
|
|
5729
|
+
"transform"!==(h=v.Normalizations.registered[r]("name",e))&&(p=s(e,v.Names.prefixCheck(h)[0]),v.Values.isCSSNullValue(p)&&v.Hooks.templates[r]&&(p=v.Hooks.templates[r][1])),l=v.Normalizations.registered[r]("extract",e,p)}if(!/^[\d-]/.test(l)){var f=k(e)
|
|
5730
|
+
if(f&&f.isSVG&&v.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(g){l=0}else l=e.getAttribute(r)
|
|
5731
|
+
else l=s(e,v.Names.prefixCheck(r)[0])}return v.Values.isCSSNullValue(l)&&(l=0),m.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,n,i,a){var s=r
|
|
5732
5732
|
if("scroll"===r)a.container?a.container["scroll"+a.direction]=n:"Left"===a.direction?t.scrollTo(n,a.alternateValue):t.scrollTo(a.alternateValue,n)
|
|
5733
|
-
else if(
|
|
5734
|
-
else{if(
|
|
5735
|
-
i=i||
|
|
5736
|
-
c&&c.isSVG&&
|
|
5737
|
-
if((o||
|
|
5738
|
-
d.each(
|
|
5739
|
-
d.each(
|
|
5740
|
-
9===o&&"rotateZ"===r&&(r="rotate"),t+=r+a+" "})),s&&(t="perspective"+s+" "+t)}
|
|
5741
|
-
|
|
5742
|
-
return e=c(e),d.each(e,(function(e,o){if(
|
|
5743
|
-
else{var a=
|
|
5744
|
-
"transform"===a[0]&&
|
|
5745
|
-
var
|
|
5746
|
-
function i(){return o?
|
|
5747
|
-
h.isWrapped(this)?(o=!1,s=0,l=this,a=this):(o=!0,s=1,l=
|
|
5748
|
-
var
|
|
5749
|
-
if(o&&
|
|
5750
|
-
if(!/^(stop|finish|finishAll|pause|resume)$/i.test(p)&&!d.isPlainObject(
|
|
5751
|
-
for(var
|
|
5752
|
-
break
|
|
5753
|
-
case"reverse":
|
|
5754
|
-
break
|
|
5755
|
-
case"pause":var
|
|
5756
|
-
return d.each(l,(function(e,t){
|
|
5757
|
-
t&&d.each(t[1],(function(e,i){var o=
|
|
5758
|
-
return!0!==o&&t[2].queue!==o&&(
|
|
5759
|
-
case"resume":return d.each(l,(function(e,t){
|
|
5760
|
-
t&&d.each(t[1],(function(e,i){var o=
|
|
5761
|
-
return!0!==o&&t[2].queue!==o&&(
|
|
5762
|
-
case"finish":case"finishAll":case"stop":d.each(l,(function(e,t){
|
|
5763
|
-
var
|
|
5764
|
-
return d.each(
|
|
5765
|
-
if(!0!==o&&t[2].queue!==o&&(
|
|
5766
|
-
d.each(l,(function(r,n){if(n===i)if((!0===
|
|
5767
|
-
a&&a.tweensContainer&&(!0===o||""===o)&&d.each(a.tweensContainer,(function(e,t){t.endValue=t.currentValue})),
|
|
5768
|
-
default:if(!d.isPlainObject(p)||h.isEmptyObject(p)){if(h.isString(p)&&
|
|
5769
|
-
return!0===e.backwards&&(l=d.extend(!0,[],l).reverse()),d.each(l,(function(t,r){parseFloat(e.stagger)?e.delay=
|
|
5770
|
-
return
|
|
5771
|
-
d.each(l,(function(e,i){h.isNode(i)&&function(e,i){var o,a,s=d.extend({},
|
|
5772
|
-
switch(
|
|
5773
|
-
|
|
5774
|
-
var n=
|
|
5775
|
-
|
|
5776
|
-
var i,o=(i=n,function(){
|
|
5777
|
-
|
|
5778
|
-
break
|
|
5779
|
-
case"normal":s.duration=
|
|
5733
|
+
else if(v.Normalizations.registered[r]&&"transform"===v.Normalizations.registered[r]("name",e))v.Normalizations.registered[r]("inject",e,n),s="transform",n=k(e).transformCache[r]
|
|
5734
|
+
else{if(v.Hooks.registered[r]){var l=r,u=v.Hooks.getRoot(r)
|
|
5735
|
+
i=i||v.getPropertyValue(e,u),n=v.Hooks.injectValue(l,n,i),r=u}if(v.Normalizations.registered[r]&&(n=v.Normalizations.registered[r]("inject",e,n),r=v.Normalizations.registered[r]("name",e)),s=v.Names.prefixCheck(r)[0],o<=8)try{e.style[s]=n}catch(d){m.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else{var c=k(e)
|
|
5736
|
+
c&&c.isSVG&&v.Names.SVGAttribute(r)?e.setAttribute(r,n):e.style[s]=n}m.debug>=2&&console.log("Set "+r+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){var t="",r=k(e)
|
|
5737
|
+
if((o||m.State.isAndroid&&!m.State.isChrome)&&r&&r.isSVG){var n=function(t){return parseFloat(v.getPropertyValue(e,t))},i={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]}
|
|
5738
|
+
d.each(k(e).transformCache,(function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(t+=e+"("+i[e].join(" ")+") ",delete i[e])}))}else{var a,s
|
|
5739
|
+
d.each(k(e).transformCache,(function(r){if(a=k(e).transformCache[r],"transformPerspective"===r)return s=a,!0
|
|
5740
|
+
9===o&&"rotateZ"===r&&(r="rotate"),t+=r+a+" "})),s&&(t="perspective"+s+" "+t)}v.setPropertyValue(e,"transform",t)}}
|
|
5741
|
+
v.Hooks.register(),v.Normalizations.register(),m.hook=function(e,t,r){var i
|
|
5742
|
+
return e=c(e),d.each(e,(function(e,o){if(k(o)===n&&m.init(o),r===n)i===n&&(i=v.getPropertyValue(o,t))
|
|
5743
|
+
else{var a=v.setPropertyValue(o,t,r)
|
|
5744
|
+
"transform"===a[0]&&m.CSS.flushTransformCache(o),i=a}})),i}
|
|
5745
|
+
var b=function(){var e
|
|
5746
|
+
function i(){return o?y.promise||null:a}var o,a,s,l,p,f,g=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||h.isString(arguments[0].properties))
|
|
5747
|
+
h.isWrapped(this)?(o=!1,s=0,l=this,a=this):(o=!0,s=1,l=g?arguments[0].elements||arguments[0].e:arguments[0])
|
|
5748
|
+
var y={promise:null,resolver:null,rejecter:null}
|
|
5749
|
+
if(o&&m.Promise&&(y.promise=new m.Promise((function(e,t){y.resolver=e,y.rejecter=t}))),g?(p=arguments[0].properties||arguments[0].p,f=arguments[0].options||arguments[0].o):(p=arguments[s],f=arguments[s+1]),l=c(l)){var _,x=l.length,O=0
|
|
5750
|
+
if(!/^(stop|finish|finishAll|pause|resume)$/i.test(p)&&!d.isPlainObject(f)){f={}
|
|
5751
|
+
for(var P=s+1;P<arguments.length;P++)h.isArray(arguments[P])||!/^(fast|normal|slow)$/i.test(arguments[P])&&!/^\d/.test(arguments[P])?h.isString(arguments[P])||h.isArray(arguments[P])?f.easing=arguments[P]:h.isFunction(arguments[P])&&(f.complete=arguments[P]):f.duration=arguments[P]}switch(p){case"scroll":_="scroll"
|
|
5752
|
+
break
|
|
5753
|
+
case"reverse":_="reverse"
|
|
5754
|
+
break
|
|
5755
|
+
case"pause":var M=(new Date).getTime()
|
|
5756
|
+
return d.each(l,(function(e,t){E(t,M)})),d.each(m.State.calls,(function(e,t){var r=!1
|
|
5757
|
+
t&&d.each(t[1],(function(e,i){var o=f===n?"":f
|
|
5758
|
+
return!0!==o&&t[2].queue!==o&&(f!==n||!1!==t[2].queue)||(d.each(l,(function(e,n){if(n===i)return t[5]={resume:!1},r=!0,!1})),!r&&void 0)}))})),i()
|
|
5759
|
+
case"resume":return d.each(l,(function(e,t){w(t)})),d.each(m.State.calls,(function(e,t){var r=!1
|
|
5760
|
+
t&&d.each(t[1],(function(e,i){var o=f===n?"":f
|
|
5761
|
+
return!0!==o&&t[2].queue!==o&&(f!==n||!1!==t[2].queue)||(!t[5]||(d.each(l,(function(e,n){if(n===i)return t[5].resume=!0,r=!0,!1})),!r&&void 0))}))})),i()
|
|
5762
|
+
case"finish":case"finishAll":case"stop":d.each(l,(function(e,t){k(t)&&k(t).delayTimer&&(clearTimeout(k(t).delayTimer.setTimeout),k(t).delayTimer.next&&k(t).delayTimer.next(),delete k(t).delayTimer),"finishAll"!==p||!0!==f&&!h.isString(f)||(d.each(d.queue(t,h.isString(f)?f:""),(function(e,t){h.isFunction(t)&&t()})),d.queue(t,h.isString(f)?f:"",[]))}))
|
|
5763
|
+
var A=[]
|
|
5764
|
+
return d.each(m.State.calls,(function(e,t){t&&d.each(t[1],(function(r,i){var o=f===n?"":f
|
|
5765
|
+
if(!0!==o&&t[2].queue!==o&&(f!==n||!1!==t[2].queue))return!0
|
|
5766
|
+
d.each(l,(function(r,n){if(n===i)if((!0===f||h.isString(f))&&(d.each(d.queue(n,h.isString(f)?f:""),(function(e,t){h.isFunction(t)&&t(null,!0)})),d.queue(n,h.isString(f)?f:"",[])),"stop"===p){var a=k(n)
|
|
5767
|
+
a&&a.tweensContainer&&(!0===o||""===o)&&d.each(a.tweensContainer,(function(e,t){t.endValue=t.currentValue})),A.push(e)}else"finish"!==p&&"finishAll"!==p||(t[2].duration=1)}))}))})),"stop"===p&&(d.each(A,(function(e,t){T(t,!0)})),y.promise&&y.resolver(l)),i()
|
|
5768
|
+
default:if(!d.isPlainObject(p)||h.isEmptyObject(p)){if(h.isString(p)&&m.Redirects[p]){var R=(e=d.extend({},f)).duration,j=e.delay||0
|
|
5769
|
+
return!0===e.backwards&&(l=d.extend(!0,[],l).reverse()),d.each(l,(function(t,r){parseFloat(e.stagger)?e.delay=j+parseFloat(e.stagger)*t:h.isFunction(e.stagger)&&(e.delay=j+e.stagger.call(r,t,x)),e.drag&&(e.duration=parseFloat(R)||(/^(callout|transition)/.test(p)?1e3:400),e.duration=Math.max(e.duration*(e.backwards?1-t/x:(t+1)/x),.75*e.duration,200)),m.Redirects[p].call(r,r,e||{},t,x,l,y.promise?y:n)})),i()}var D="Velocity: First argument ("+p+") was not a property map, a known action, or a registered redirect. Aborting."
|
|
5770
|
+
return y.promise?y.rejecter(new Error(D)):t.console&&console.log(D),i()}_="start"}var I={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},N=[]
|
|
5771
|
+
d.each(l,(function(e,i){h.isNode(i)&&function(e,i){var o,a,s=d.extend({},m.defaults,f),c={}
|
|
5772
|
+
switch(k(e)===n&&m.init(e),parseFloat(s.delay)&&!1!==s.queue&&d.queue(e,s.queue,(function(t,r){if(!0===r)return!0
|
|
5773
|
+
m.velocityQueueEntryFlag=!0
|
|
5774
|
+
var n=m.State.delayedElements.count++
|
|
5775
|
+
m.State.delayedElements[n]=e
|
|
5776
|
+
var i,o=(i=n,function(){m.State.delayedElements[i]=!1,t()})
|
|
5777
|
+
k(e).delayBegin=(new Date).getTime(),k(e).delay=parseFloat(s.delay),k(e).delayTimer={setTimeout:setTimeout(t,parseFloat(s.delay)),next:o}})),s.duration.toString().toLowerCase()){case"fast":s.duration=200
|
|
5778
|
+
break
|
|
5779
|
+
case"normal":s.duration=400
|
|
5780
5780
|
break
|
|
5781
5781
|
case"slow":s.duration=600
|
|
5782
5782
|
break
|
|
5783
|
-
default:s.duration=parseFloat(s.duration)||1}function
|
|
5784
|
-
if(s.begin&&0===
|
|
5785
|
-
s.container?h.isWrapped(s.container)||h.isNode(s.container)?(s.container=s.container[0]||s.container,
|
|
5786
|
-
if(!
|
|
5787
|
-
for(var A in"none"===
|
|
5788
|
-
|
|
5783
|
+
default:s.duration=parseFloat(s.duration)||1}function g(a){var g,b
|
|
5784
|
+
if(s.begin&&0===O)try{s.begin.call(l,l)}catch(G){setTimeout((function(){throw G}),1)}if("scroll"===_){var E,w,T,P=/^x$/i.test(s.axis)?"Left":"Top",M=parseFloat(s.offset)||0
|
|
5785
|
+
s.container?h.isWrapped(s.container)||h.isNode(s.container)?(s.container=s.container[0]||s.container,T=(E=s.container["scroll"+P])+d(e).position()[P.toLowerCase()]+M):s.container=null:(E=m.State.scrollAnchor[m.State["scrollProperty"+P]],w=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===P?"Top":"Left")]],T=d(e).offset()[P.toLowerCase()]+M),c={scroll:{rootPropertyValue:!1,startValue:E,currentValue:E,endValue:T,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:P,alternateValue:w}},element:e},m.debug&&console.log("tweensContainer (scroll): ",c.scroll,e)}else if("reverse"===_){if(!(g=k(e)))return
|
|
5786
|
+
if(!g.tweensContainer)return void d.dequeue(e,s.queue)
|
|
5787
|
+
for(var A in"none"===g.opts.display&&(g.opts.display="auto"),"hidden"===g.opts.visibility&&(g.opts.visibility="visible"),g.opts.loop=!1,g.opts.begin=null,g.opts.complete=null,f.easing||delete s.easing,f.duration||delete s.duration,s=d.extend({},g.opts,s),b=d.extend(!0,{},g?g.tweensContainer:null))if(b.hasOwnProperty(A)&&"element"!==A){var R=b[A].startValue
|
|
5788
|
+
b[A].startValue=b[A].currentValue=b[A].endValue,b[A].endValue=R,h.isEmptyObject(f)||(b[A].easing=s.easing),m.debug&&console.log("reverse tweensContainer ("+A+"): "+JSON.stringify(b[A]),e)}c=b}else if("start"===_){(g=k(e))&&g.tweensContainer&&!0===g.isAnimating&&(b=g.tweensContainer)
|
|
5789
5789
|
var j=function(t,r){var n,o,a
|
|
5790
|
-
return h.isFunction(t)&&(t=t.call(e,i,
|
|
5791
|
-
if(
|
|
5790
|
+
return h.isFunction(t)&&(t=t.call(e,i,x)),h.isArray(t)?(n=t[0],!h.isArray(t[1])&&/^[\d-]/.test(t[1])||h.isFunction(t[1])||v.RegEx.isHex.test(t[1])?a=t[1]:h.isString(t[1])&&!v.RegEx.isHex.test(t[1])&&m.Easings[t[1]]||h.isArray(t[1])?(o=r?t[1]:C(t[1],s.duration),a=t[2]):a=t[1]||t[2]):n=t,r||(o=o||s.easing),h.isFunction(n)&&(n=n.call(e,i,x)),h.isFunction(a)&&(a=a.call(e,i,x)),[n||0,o,a]},D=function(i,a){var l,u=v.Hooks.getRoot(i),p=!1,f=a[0],y=a[1],_=a[2]
|
|
5791
|
+
if(g&&g.isSVG||"tween"===u||!1!==v.Names.prefixCheck(u)[1]||v.Normalizations.registered[u]!==n){(s.display!==n&&null!==s.display&&"none"!==s.display||s.visibility!==n&&"hidden"!==s.visibility)&&/opacity|filter/.test(i)&&!_&&0!==f&&(_=0),s._cacheValues&&b&&b[i]?(_===n&&(_=b[i].endValue+b[i].unitType),p=g.rootPropertyValueCache[u]):v.Hooks.registered[i]?_===n?(p=v.getPropertyValue(e,u),_=v.getPropertyValue(e,i,p)):p=v.Hooks.templates[u][1]:_===n&&(_=v.getPropertyValue(e,i))
|
|
5792
5792
|
var k,E,w,x=!1,O=function(e,t){var r,n
|
|
5793
|
-
return n=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(e){return r=e,""})),r||(r=
|
|
5794
|
-
if(_!==
|
|
5793
|
+
return n=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(e){return r=e,""})),r||(r=v.Values.getUnitType(e)),[n,r]}
|
|
5794
|
+
if(_!==f&&h.isString(_)&&h.isString(f)){l=""
|
|
5795
5795
|
var C=0,S=0,T=[],P=[],M=0,A=0,R=0
|
|
5796
|
-
for(_=
|
|
5797
|
-
if(/[\d\.-]/.test(j)&&/[\d\.-]/.test(D)){for(var
|
|
5796
|
+
for(_=v.Hooks.fixColors(_),f=v.Hooks.fixColors(f);C<_.length&&S<f.length;){var j=_[C],D=f[S]
|
|
5797
|
+
if(/[\d\.-]/.test(j)&&/[\d\.-]/.test(D)){for(var N=j,L=D,F=".",z=".";++C<_.length;){if((j=_[C])===F)F=".."
|
|
5798
5798
|
else if(!/\d/.test(j))break
|
|
5799
|
-
|
|
5799
|
+
N+=j}for(;++S<f.length;){if((D=f[S])===z)z=".."
|
|
5800
5800
|
else if(!/\d/.test(D))break
|
|
5801
|
-
L+=D}var B=
|
|
5802
|
-
if(C+=B.length,S+=H.length,B===H)
|
|
5803
|
-
else{var U=parseFloat(
|
|
5801
|
+
L+=D}var B=v.Hooks.getUnit(_,C),H=v.Hooks.getUnit(f,S)
|
|
5802
|
+
if(C+=B.length,S+=H.length,B===H)N===L?l+=N+B:(l+="{"+T.length+(A?"!":"")+"}"+B,T.push(parseFloat(N)),P.push(parseFloat(L)))
|
|
5803
|
+
else{var U=parseFloat(N),V=parseFloat(L)
|
|
5804
5804
|
l+=(M<5?"calc":"")+"("+(U?"{"+T.length+(A?"!":"")+"}":"0")+B+" + "+(V?"{"+(T.length+(U?1:0))+(A?"!":"")+"}":"0")+H+")",U&&(T.push(U),P.push(0)),V&&(T.push(0),P.push(V))}}else{if(j!==D){M=0
|
|
5805
|
-
break}l+=j,C++,S++,0===M&&"c"===j||1===M&&"a"===j||2===M&&"l"===j||3===M&&"c"===j||M>=4&&"("===j?M++:(M&&M<5||M>=4&&")"===j&&--M<5)&&(M=0),0===A&&"r"===j||1===A&&"g"===j||2===A&&"b"===j||3===A&&"a"===j||A>=3&&"("===j?(3===A&&"a"===j&&(R=1),A++):R&&","===j?++R>3&&(A=R=0):(R&&A<(R?5:4)||A>=(R?4:3)&&")"===j&&--A<(R?5:4))&&(A=R=0)}}C===_.length&&S===
|
|
5806
|
-
else if(w!==E&&0!==_)if(0===
|
|
5807
|
-
else{o=o||function(){var n={myParent:e.parentNode||r.body,position:
|
|
5808
|
-
|
|
5805
|
+
break}l+=j,C++,S++,0===M&&"c"===j||1===M&&"a"===j||2===M&&"l"===j||3===M&&"c"===j||M>=4&&"("===j?M++:(M&&M<5||M>=4&&")"===j&&--M<5)&&(M=0),0===A&&"r"===j||1===A&&"g"===j||2===A&&"b"===j||3===A&&"a"===j||A>=3&&"("===j?(3===A&&"a"===j&&(R=1),A++):R&&","===j?++R>3&&(A=R=0):(R&&A<(R?5:4)||A>=(R?4:3)&&")"===j&&--A<(R?5:4))&&(A=R=0)}}C===_.length&&S===f.length||(m.debug&&console.error('Trying to pattern match mis-matched strings ["'+f+'", "'+_+'"]'),l=n),l&&(T.length?(m.debug&&console.log('Pattern found "'+l+'" -> ',T,P,"["+_+","+f+"]"),_=T,f=P,E=w=""):l=n)}if(l||(_=(k=O(i,_))[0],w=k[1],f=(k=O(i,f))[0].replace(/^([+-\/*])=/,(function(e,t){return x=t,""})),E=k[1],_=parseFloat(_)||0,f=parseFloat(f)||0,"%"===E&&(/^(fontSize|lineHeight)$/.test(i)?(f/=100,E="em"):/^scale/.test(i)?(f/=100,E=""):/(Red|Green|Blue)$/i.test(i)&&(f=f/100*255,E=""))),/[\/*]/.test(x))E=w
|
|
5806
|
+
else if(w!==E&&0!==_)if(0===f)E=w
|
|
5807
|
+
else{o=o||function(){var n={myParent:e.parentNode||r.body,position:v.getPropertyValue(e,"position"),fontSize:v.getPropertyValue(e,"fontSize")},i=n.position===I.lastPosition&&n.myParent===I.lastParent,o=n.fontSize===I.lastFontSize
|
|
5808
|
+
I.lastParent=n.myParent,I.lastPosition=n.position,I.lastFontSize=n.fontSize
|
|
5809
5809
|
var a=100,s={}
|
|
5810
|
-
if(o&&i)s.emToPx=
|
|
5811
|
-
else{var l=
|
|
5812
|
-
|
|
5810
|
+
if(o&&i)s.emToPx=I.lastEmToPx,s.percentToPxWidth=I.lastPercentToPxWidth,s.percentToPxHeight=I.lastPercentToPxHeight
|
|
5811
|
+
else{var l=g&&g.isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div")
|
|
5812
|
+
m.init(l),n.myParent.appendChild(l),d.each(["overflow","overflowX","overflowY"],(function(e,t){m.CSS.setPropertyValue(l,t,"hidden")})),m.CSS.setPropertyValue(l,"position",n.position),m.CSS.setPropertyValue(l,"fontSize",n.fontSize),m.CSS.setPropertyValue(l,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(e,t){m.CSS.setPropertyValue(l,t,a+"%")})),m.CSS.setPropertyValue(l,"paddingLeft",a+"em"),s.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(l,"width",null,!0))||1)/a,s.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(l,"height",null,!0))||1)/a,s.emToPx=I.lastEmToPx=(parseFloat(v.getPropertyValue(l,"paddingLeft"))||1)/a,n.myParent.removeChild(l)}return null===I.remToPx&&(I.remToPx=parseFloat(v.getPropertyValue(r.body,"fontSize"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(t.innerWidth)/100,I.vhToPx=parseFloat(t.innerHeight)/100),s.remToPx=I.remToPx,s.vwToPx=I.vwToPx,s.vhToPx=I.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(s),e),s}()
|
|
5813
5813
|
var q=/margin|padding|left|right|width|text|word|letter/i.test(i)||/X$/.test(i)||"x"===i?"x":"y"
|
|
5814
5814
|
switch(w){case"%":_*="x"===q?o.percentToPxWidth:o.percentToPxHeight
|
|
5815
5815
|
break
|
|
@@ -5817,37 +5817,37 @@ case"px":break
|
|
|
5817
5817
|
default:_*=o[w+"ToPx"]}switch(E){case"%":_*=1/("x"===q?o.percentToPxWidth:o.percentToPxHeight)
|
|
5818
5818
|
break
|
|
5819
5819
|
case"px":break
|
|
5820
|
-
default:_*=1/o[E+"ToPx"]}}switch(x){case"+":
|
|
5821
|
-
break
|
|
5822
|
-
case"-":
|
|
5823
|
-
break
|
|
5824
|
-
case"*":
|
|
5825
|
-
break
|
|
5826
|
-
case"/":
|
|
5827
|
-
for(var
|
|
5828
|
-
if(u(
|
|
5829
|
-
if(
|
|
5830
|
-
H&&K.push(H),$!==n&&K.push($[W]),D(F+V[W],K)}continue}}D(F,z)}c.element=e}c.element&&(
|
|
5831
|
-
|
|
5832
|
-
var
|
|
5833
|
-
|
|
5834
|
-
else d.queue(e,s.queue,(function(e,t){if(!0===t)return
|
|
5835
|
-
|
|
5836
|
-
""!==s.queue&&"fx"!==s.queue||"inprogress"===d.queue(e)[0]||d.dequeue(e)}(i,e)})),(e=d.extend({},
|
|
5837
|
-
var
|
|
5838
|
-
if(e.loop)for(var
|
|
5839
|
-
|
|
5840
|
-
var
|
|
5841
|
-
if(!
|
|
5842
|
-
|
|
5843
|
-
l.display===n&&(l.display="Down"===t?"inline"===
|
|
5844
|
-
var n=
|
|
5820
|
+
default:_*=1/o[E+"ToPx"]}}switch(x){case"+":f=_+f
|
|
5821
|
+
break
|
|
5822
|
+
case"-":f=_-f
|
|
5823
|
+
break
|
|
5824
|
+
case"*":f*=_
|
|
5825
|
+
break
|
|
5826
|
+
case"/":f=_/f}c[i]={rootPropertyValue:p,startValue:_,currentValue:_,endValue:f,unitType:E,easing:y},l&&(c[i].pattern=l),m.debug&&console.log("tweensContainer ("+i+"): "+JSON.stringify(c[i]),e)}else m.debug&&console.log("Skipping ["+u+"] due to a lack of browser support.")}
|
|
5827
|
+
for(var L in p)if(p.hasOwnProperty(L)){var F=v.Names.camelCase(L),z=j(p[L])
|
|
5828
|
+
if(u(v.Lists.colors)){var B=z[0],H=z[1],U=z[2]
|
|
5829
|
+
if(v.RegEx.isHex.test(B)){for(var V=["Red","Green","Blue"],q=v.Values.hexToRgb(B),$=U?v.Values.hexToRgb(U):n,W=0;W<V.length;W++){var K=[q[W]]
|
|
5830
|
+
H&&K.push(H),$!==n&&K.push($[W]),D(F+V[W],K)}continue}}D(F,z)}c.element=e}c.element&&(v.Values.addClass(e,"velocity-animating"),N.push(c),(g=k(e))&&(""===s.queue&&(g.tweensContainer=c,g.opts=s),g.isAnimating=!0),O===x-1?(m.State.calls.push([N,l,s,null,y.resolver,null,0]),!1===m.State.isTicking&&(m.State.isTicking=!0,S())):O++)}if(!1!==m.mock&&(!0===m.mock?s.duration=s.delay=1:(s.duration*=parseFloat(m.mock)||1,s.delay*=parseFloat(m.mock)||1)),s.easing=C(s.easing,s.duration),s.begin&&!h.isFunction(s.begin)&&(s.begin=null),s.progress&&!h.isFunction(s.progress)&&(s.progress=null),s.complete&&!h.isFunction(s.complete)&&(s.complete=null),s.display!==n&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=m.CSS.Values.getDisplayType(e))),s.visibility!==n&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&m.State.isMobile&&!m.State.isGingerbread,!1===s.queue)if(s.delay){var b=m.State.delayedElements.count++
|
|
5831
|
+
m.State.delayedElements[b]=e
|
|
5832
|
+
var E=(a=b,function(){m.State.delayedElements[a]=!1,g()})
|
|
5833
|
+
k(e).delayBegin=(new Date).getTime(),k(e).delay=parseFloat(s.delay),k(e).delayTimer={setTimeout:setTimeout(g,parseFloat(s.delay)),next:E}}else g()
|
|
5834
|
+
else d.queue(e,s.queue,(function(e,t){if(!0===t)return y.promise&&y.resolver(l),!0
|
|
5835
|
+
m.velocityQueueEntryFlag=!0,g()}))
|
|
5836
|
+
""!==s.queue&&"fx"!==s.queue||"inprogress"===d.queue(e)[0]||d.dequeue(e)}(i,e)})),(e=d.extend({},m.defaults,f)).loop=parseInt(e.loop,10)
|
|
5837
|
+
var L=2*e.loop-1
|
|
5838
|
+
if(e.loop)for(var F=0;F<L;F++){var z={delay:e.delay,progress:e.progress}
|
|
5839
|
+
F===L-1&&(z.display=e.display,z.visibility=e.visibility,z.complete=e.complete),b(l,"reverse",z)}return i()}y.promise&&(p&&f&&!1===f.promiseRejectEmpty?y.resolver():y.rejecter())};(m=d.extend(b,m)).animate=b
|
|
5840
|
+
var y=t.requestAnimationFrame||a
|
|
5841
|
+
if(!m.State.isMobile&&r.hidden!==n){var _=function(){r.hidden?(y=function(e){return setTimeout((function(){e(!0)}),16)},S()):y=t.requestAnimationFrame||a}
|
|
5842
|
+
_(),r.addEventListener("visibilitychange",_)}return e.Velocity=m,e!==t&&(e.fn.velocity=b,e.fn.velocity.defaults=m.defaults),d.each(["Down","Up"],(function(e,t){m.Redirects["slide"+t]=function(e,r,i,o,a,s){var l=d.extend({},r),u=l.begin,c=l.complete,h={},p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""}
|
|
5843
|
+
l.display===n&&(l.display="Down"===t?"inline"===m.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){for(var r in 0===i&&u&&u.call(a,a),p)if(p.hasOwnProperty(r)){h[r]=e.style[r]
|
|
5844
|
+
var n=v.getPropertyValue(e,r)
|
|
5845
5845
|
p[r]="Down"===t?[n,0]:[0,n]}h.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in h)h.hasOwnProperty(t)&&(e.style[t]=h[t])
|
|
5846
|
-
i===o-1&&(c&&c.call(a,a),s&&s.resolver(a))},
|
|
5847
|
-
0!==i&&(l.begin=null),l.complete=i!==o-1?null:function(){u&&u.call(a,a),s&&s.resolver(a)},l.display===n&&(l.display="In"===t?"auto":"none"),
|
|
5848
|
-
return null===t?n:t}function
|
|
5849
|
-
r&&r.delayTimer&&!r.delayPaused&&(r.delayRemaining=r.delay-t+r.delayBegin,r.delayPaused=!0,clearTimeout(r.delayTimer.setTimeout))}function
|
|
5850
|
-
r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function
|
|
5846
|
+
i===o-1&&(c&&c.call(a,a),s&&s.resolver(a))},m(e,p,l)}})),d.each(["In","Out"],(function(e,t){m.Redirects["fade"+t]=function(e,r,i,o,a,s){var l=d.extend({},r),u=l.complete,c={opacity:"In"===t?1:0}
|
|
5847
|
+
0!==i&&(l.begin=null),l.complete=i!==o-1?null:function(){u&&u.call(a,a),s&&s.resolver(a)},l.display===n&&(l.display="In"===t?"auto":"none"),m(this,c,l)}})),m}function k(e){var t=d.data(e,"velocity")
|
|
5848
|
+
return null===t?n:t}function E(e,t){var r=k(e)
|
|
5849
|
+
r&&r.delayTimer&&!r.delayPaused&&(r.delayRemaining=r.delay-t+r.delayBegin,r.delayPaused=!0,clearTimeout(r.delayTimer.setTimeout))}function w(e,t){var r=k(e)
|
|
5850
|
+
r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function x(e){return function(t){return Math.round(t*e)*(1/e)}}function O(e,r,n,i){var o=4,a=.001,s=1e-7,l=10,u=11,c=1/(u-1),d="Float32Array"in t
|
|
5851
5851
|
if(4!==arguments.length)return!1
|
|
5852
5852
|
for(var h=0;h<4;++h)if("number"!=typeof arguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1
|
|
5853
5853
|
e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0)
|
|
@@ -5862,38 +5862,38 @@ return a}(t,r,r+c)}var _=!1
|
|
|
5862
5862
|
function k(){_=!0,e===r&&n===i||function(){for(var t=0;t<u;++t)p[t]=v(t*c,e,n)}()}var E=function(t){return _||k(),e===r&&n===i?t:0===t?0:1===t?1:v(y(t),r,i)}
|
|
5863
5863
|
E.getControlPoints=function(){return[{x:e,y:r},{x:n,y:i}]}
|
|
5864
5864
|
var w="generateBezier("+[e,r,n,i]+")"
|
|
5865
|
-
return E.toString=function(){return w},E}function
|
|
5866
|
-
return h.isString(e)?
|
|
5867
|
-
r>1e4&&(
|
|
5868
|
-
i&&n.push(i)}return n}(
|
|
5869
|
-
for(var i=0;i<r;i++)if(
|
|
5870
|
-
if(c||(c=
|
|
5871
|
-
c=a[3]=Math.round(t-
|
|
5872
|
-
for(var
|
|
5873
|
-
if(
|
|
5874
|
-
if(u.display!==n&&null!==u.display&&"none"!==u.display){if("flex"===u.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(e,t){
|
|
5875
|
-
if(h.isString(A.pattern)){var j=1===
|
|
5876
|
-
return r?Math.round(n):n}:function(e,t,r){var n=A.startValue[t],i=A.endValue[t]-n,o=n+i*R(
|
|
5865
|
+
return E.toString=function(){return w},E}function C(e,t){var r=e
|
|
5866
|
+
return h.isString(e)?m.Easings[e]||(r=!1):r=h.isArray(e)&&1===e.length?x.apply(null,e):h.isArray(e)&&2===e.length?g.apply(null,e.concat([t])):!(!h.isArray(e)||4!==e.length)&&O.apply(null,e),!1===r&&(r=m.Easings[m.defaults.easing]?m.defaults.easing:f),r}function S(e){if(e){var t=m.timestamp&&!0!==e?e:s.now(),r=m.State.calls.length
|
|
5867
|
+
r>1e4&&(m.State.calls=function(e){for(var t=-1,r=e?e.length:0,n=[];++t<r;){var i=e[t]
|
|
5868
|
+
i&&n.push(i)}return n}(m.State.calls),r=m.State.calls.length)
|
|
5869
|
+
for(var i=0;i<r;i++)if(m.State.calls[i]){var a=m.State.calls[i],l=a[0],u=a[2],c=a[3],p=!c,f=null,g=a[5],b=a[6]
|
|
5870
|
+
if(c||(c=m.State.calls[i][3]=t-16),g){if(!0!==g.resume)continue
|
|
5871
|
+
c=a[3]=Math.round(t-b-16),a[5]=null}b=a[6]=t-c
|
|
5872
|
+
for(var _=Math.min(b/u.duration,1),E=0,w=l.length;E<w;E++){var x=l[E],O=x.element
|
|
5873
|
+
if(k(O)){var C=!1
|
|
5874
|
+
if(u.display!==n&&null!==u.display&&"none"!==u.display){if("flex"===u.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(e,t){v.setPropertyValue(O,"display",t)}))}v.setPropertyValue(O,"display",u.display)}for(var P in u.visibility!==n&&"hidden"!==u.visibility&&v.setPropertyValue(O,"visibility",u.visibility),x)if(x.hasOwnProperty(P)&&"element"!==P){var M,A=x[P],R=h.isString(A.easing)?m.Easings[A.easing]:A.easing
|
|
5875
|
+
if(h.isString(A.pattern)){var j=1===_?function(e,t,r){var n=A.endValue[t]
|
|
5876
|
+
return r?Math.round(n):n}:function(e,t,r){var n=A.startValue[t],i=A.endValue[t]-n,o=n+i*R(_,u,i)
|
|
5877
5877
|
return r?Math.round(o):o}
|
|
5878
|
-
M=A.pattern.replace(/{(\d+)(!)?}/g,j)}else if(1===
|
|
5878
|
+
M=A.pattern.replace(/{(\d+)(!)?}/g,j)}else if(1===_)M=A.endValue
|
|
5879
5879
|
else{var D=A.endValue-A.startValue
|
|
5880
|
-
M=A.startValue+D*R(
|
|
5881
|
-
if(A.currentValue=M,"tween"===
|
|
5880
|
+
M=A.startValue+D*R(_,u,D)}if(!p&&M===A.currentValue)continue
|
|
5881
|
+
if(A.currentValue=M,"tween"===P)f=M
|
|
5882
5882
|
else{var I
|
|
5883
|
-
if(
|
|
5884
|
-
var N=
|
|
5885
|
-
N&&(A.rootPropertyValue=N)}var L=
|
|
5886
|
-
|
|
5887
|
-
for(var r=
|
|
5888
|
-
t||o.loop||("none"===o.display&&
|
|
5889
|
-
var h=
|
|
5883
|
+
if(v.Hooks.registered[P]){I=v.Hooks.getRoot(P)
|
|
5884
|
+
var N=k(O).rootPropertyValueCache[I]
|
|
5885
|
+
N&&(A.rootPropertyValue=N)}var L=v.setPropertyValue(O,P,A.currentValue+(o<9&&0===parseFloat(M)?"":A.unitType),A.rootPropertyValue,A.scrollData)
|
|
5886
|
+
v.Hooks.registered[P]&&(v.Normalizations.registered[I]?k(O).rootPropertyValueCache[I]=v.Normalizations.registered[I]("extract",null,L[1]):k(O).rootPropertyValueCache[I]=L[1]),"transform"===L[0]&&(C=!0)}}u.mobileHA&&k(O).transformCache.translate3d===n&&(k(O).transformCache.translate3d="(0px, 0px, 0px)",C=!0),C&&v.flushTransformCache(O)}}u.display!==n&&"none"!==u.display&&(m.State.calls[i][2].display=!1),u.visibility!==n&&"hidden"!==u.visibility&&(m.State.calls[i][2].visibility=!1),u.progress&&u.progress.call(a[1],a[1],_,Math.max(0,c+u.duration-t),c,f),1===_&&T(i)}}m.State.isTicking&&y(S)}function T(e,t){if(!m.State.calls[e])return!1
|
|
5887
|
+
for(var r=m.State.calls[e][0],i=m.State.calls[e][1],o=m.State.calls[e][2],a=m.State.calls[e][4],s=!1,l=0,u=r.length;l<u;l++){var c=r[l].element
|
|
5888
|
+
t||o.loop||("none"===o.display&&v.setPropertyValue(c,"display",o.display),"hidden"===o.visibility&&v.setPropertyValue(c,"visibility",o.visibility))
|
|
5889
|
+
var h=k(c)
|
|
5890
5890
|
if(!0!==o.loop&&(d.queue(c)[1]===n||!/\.velocityQueueEntryFlag/i.test(d.queue(c)[1]))&&h){h.isAnimating=!1,h.rootPropertyValueCache={}
|
|
5891
5891
|
var p=!1
|
|
5892
|
-
d.each(
|
|
5893
|
-
h.transformCache[t]!==n&&new RegExp("^\\("+r+"[^.]").test(i)&&(p=!0,delete h.transformCache[t])})),o.mobileHA&&(p=!0,delete h.transformCache.translate3d),p&&
|
|
5894
|
-
t.startValue=t.endValue,t.endValue=r}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)})),
|
|
5895
|
-
for(var f=0,m
|
|
5896
|
-
break}!1===s&&(
|
|
5892
|
+
d.each(v.Lists.transforms3D,(function(e,t){var r=/^scale/.test(t)?1:0,i=h.transformCache[t]
|
|
5893
|
+
h.transformCache[t]!==n&&new RegExp("^\\("+r+"[^.]").test(i)&&(p=!0,delete h.transformCache[t])})),o.mobileHA&&(p=!0,delete h.transformCache.translate3d),p&&v.flushTransformCache(c),v.Values.removeClass(c,"velocity-animating")}if(!t&&o.complete&&!o.loop&&l===u-1)try{o.complete.call(i,i)}catch(b){setTimeout((function(){throw b}),1)}a&&!0!==o.loop&&a(i),h&&!0===o.loop&&!t&&(d.each(h.tweensContainer,(function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var r=t.startValue
|
|
5894
|
+
t.startValue=t.endValue,t.endValue=r}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)})),m(c,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&d.dequeue(c,o.queue)}m.State.calls[e]=!1
|
|
5895
|
+
for(var f=0,g=m.State.calls.length;f<g;f++)if(!1!==m.State.calls[f]){s=!0
|
|
5896
|
+
break}!1===s&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}))),define("velocity",[],(function(){"use strict"
|
|
5897
5897
|
return{default:self.Velocity||self.jQuery&&self.jQuery.Velocity||function(){}}})),"undefined"==typeof FastBoot&&(/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
|
|
5898
5898
|
window.matchMedia||(window.matchMedia=function(){"use strict"
|
|
5899
5899
|
var e=window.styleMedia||window.media
|
|
@@ -6662,7 +6662,9 @@ return r(i,o)}))}}
|
|
|
6662
6662
|
var i=["data-md-text-align"]
|
|
6663
6663
|
e.VALID_ATTRIBUTES=i})),define("mobiledoc-kit/models/_markerable",["exports","mobiledoc-kit/utils/array-utils","mobiledoc-kit/utils/set","mobiledoc-kit/utils/linked-list","mobiledoc-kit/models/_section","mobiledoc-kit/utils/assert"],(function(e,t,r,n,i,o){"use strict"
|
|
6664
6664
|
var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6665
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6665
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6666
|
+
function s(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t]
|
|
6667
|
+
return r}return Array.from(e)}var l=function(e){function i(e,t){var r=this,a=arguments.length<=2||void 0===arguments[2]?[]:arguments[2];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,i),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6666
6668
|
n=!1,null===i&&(i=Function.prototype)
|
|
6667
6669
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6668
6670
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6670,9 +6672,7 @@ var l=s.get
|
|
|
6670
6672
|
if(void 0===l)return
|
|
6671
6673
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6672
6674
|
if(null===u)return
|
|
6673
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6674
|
-
function l(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t]
|
|
6675
|
-
return r}return Array.from(e)}var u=function(e){function i(e,t){var r=this,a=arguments.length<=2||void 0===arguments[2]?[]:arguments[2];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,i),s(Object.getPrototypeOf(i.prototype),"constructor",this).call(this,e),this.isMarkerable=!0,this.tagName=t,this.markers=new n.default({adoptItem:function(e){(0,o.default)("Can only insert markers and atoms into markerable (was: "+e.type+")",e.isMarker||e.isAtom),e.section=e.parent=r},freeItem:function(e){return e.section=e.parent=null}}),a.forEach((function(e){return r.markers.append(e)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6675
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(i.prototype),"constructor",this).call(this,e),this.isMarkerable=!0,this.tagName=t,this.markers=new n.default({adoptItem:function(e){(0,o.default)("Can only insert markers and atoms into markerable (was: "+e.type+")",e.isMarker||e.isAtom),e.section=e.parent=r},freeItem:function(e){return e.section=e.parent=null}}),a.forEach((function(e){return r.markers.append(e)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6676
6676
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),a(i,[{key:"canJoin",value:function(e){return e.isMarkerable&&e.type===this.type&&e.tagName===this.tagName}},{key:"clone",value:function(){var e=this.markers.map((function(e){return e.clone()}))
|
|
6677
6677
|
return this.builder.createMarkerableSection(this.type,this.tagName,e)}},{key:"textUntil",value:function(e){(0,o.default)("Cannot get textUntil for a position not in this section",e.section===this)
|
|
6678
6678
|
for(var t=e.marker,r=e.offsetInMarker,n="",i=this.markers.head;i;){if(i===t){n+=i.textUntil(r)
|
|
@@ -6684,7 +6684,7 @@ var d})),[e,r]}},{key:"splitAtMarker",value:function(){(0,o.default)("splitAtMar
|
|
|
6684
6684
|
var t=void 0,r=0,n=this.markers.head,i={added:[],removed:[]}
|
|
6685
6685
|
if(n)for(;n&&(r+=n.length)!==e;){if(r>e){var a
|
|
6686
6686
|
t=n.length-(r-e)
|
|
6687
|
-
var
|
|
6687
|
+
var l=n.splitAtOffset(t);(a=i.added).push.apply(a,s(l)),i.removed.push(n),this.markers.splice(n,1,l)
|
|
6688
6688
|
break}n=n.next}else{var u=this.builder.createMarker()
|
|
6689
6689
|
this.markers.prepend(u),i.added.push(u)}return i}},{key:"splitAtPosition",value:function(e){var t=e.marker,r=e.offsetInMarker
|
|
6690
6690
|
return this.splitAtMarker(t,r)}},{key:"markerBeforeOffset",value:function(e){for(var t=0,r=this.markers.head;r;){if((t+=r.length)===e)return r;(0,o.default)("markerBeforeOffset called with sectionOffset not between markers",t<e),r=r.next}}},{key:"markerPositionAtOffset",value:function(e){var t=0,r=void 0,n=e
|
|
@@ -6695,9 +6695,10 @@ return this._markersInRange(e,(function(e){e.markups.forEach((function(e){return
|
|
|
6695
6695
|
for(var i=r.offset,a=n.offset,s=0,l=0,u=this.markers.head;u;){if((l+=u.length)>i&&s<a){var c=Math.max(i-s,0),d=u.length-Math.max(l-a,0)
|
|
6696
6696
|
t(u,{markerHead:c,markerTail:d,isContained:0===c&&d===u.length})}if(s+=u.length,u=u.next,s>a)break}}},{key:"join",value:function(e){var t=this,r=this.markers.tail,n=null
|
|
6697
6697
|
return e.markers.forEach((function(e){e.isBlank||(e=e.clone(),t.markers.append(e),n||(n=e))})),{beforeMarker:r,afterMarker:n}}},{key:"isBlank",get:function(){return!this.markers.length||this.markers.every((function(e){return e.isBlank}))}},{key:"text",get:function(){return(0,t.reduce)(this.markers,(function(e,t){return e+t.value}),"")}},{key:"length",get:function(){return(0,t.reduce)(this.markers,(function(e,t){return e+t.length}),0)}}]),i}(i.default)
|
|
6698
|
-
e.default=
|
|
6698
|
+
e.default=l})),define("mobiledoc-kit/models/_section",["exports","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/linked-item","mobiledoc-kit/utils/assert","mobiledoc-kit/utils/cursor/position"],(function(e,t,r,n,i){"use strict"
|
|
6699
6699
|
var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6700
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6700
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6701
|
+
function a(e,t){(0,n.default)("`"+e+"()` must be implemented by "+t.constructor.name,!1)}var s=function(e){function r(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6701
6702
|
n=!1,null===i&&(i=Function.prototype)
|
|
6702
6703
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6703
6704
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6705,13 +6706,12 @@ var l=s.get
|
|
|
6705
6706
|
if(void 0===l)return
|
|
6706
6707
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6707
6708
|
if(null===u)return
|
|
6708
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6709
|
-
|
|
6710
|
-
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),o(r,[{key:"isValidTagName",value:function(){s("isValidTagName",this)}},{key:"clone",value:function(){s("clone",this)}},{key:"canJoin",value:function(){s("canJoin",this)}},{key:"headPosition",value:function(){return this.toPosition(0)}},{key:"tailPosition",value:function(){return this.toPosition(this.length)}},{key:"toPosition",value:function(e){return(0,n.default)("Must pass number to `toPosition`","number"==typeof e),(0,n.default)("Cannot call `toPosition` with offset > length",e<=this.length),new i.default(this,e)}},{key:"toRange",value:function(){return this.headPosition().toRange(this.tailPosition())}},{key:"join",value:function(){s("join",this)}},{key:"textUntil",value:function(){return""}},{key:"splitMarkerAtOffset",value:function(){return{added:[],removed:[]}}},{key:"nextLeafSection",value:function(){var e=this.next
|
|
6709
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),(0,n.default)("Cannot create section without type",!!e),this.type=e,this.isSection=!0,this.isMarkerable=!1,this.isNested=!1,this.isSection=!0,this.isLeafSection=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6710
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),o(r,[{key:"isValidTagName",value:function(){a("isValidTagName",this)}},{key:"clone",value:function(){a("clone",this)}},{key:"canJoin",value:function(){a("canJoin",this)}},{key:"headPosition",value:function(){return this.toPosition(0)}},{key:"tailPosition",value:function(){return this.toPosition(this.length)}},{key:"toPosition",value:function(e){return(0,n.default)("Must pass number to `toPosition`","number"==typeof e),(0,n.default)("Cannot call `toPosition` with offset > length",e<=this.length),new i.default(this,e)}},{key:"toRange",value:function(){return this.headPosition().toRange(this.tailPosition())}},{key:"join",value:function(){a("join",this)}},{key:"textUntil",value:function(){return""}},{key:"splitMarkerAtOffset",value:function(){return{added:[],removed:[]}}},{key:"nextLeafSection",value:function(){var e=this.next
|
|
6711
6711
|
return e?e.items?e.items.head:e:this.isNested?this.parent.nextLeafSection():void 0}},{key:"immediatelyNextMarkerableSection",value:function(){for(var e=this.nextLeafSection();e&&!e.isMarkerable;)e=e.nextLeafSection()
|
|
6712
6712
|
return e}},{key:"previousLeafSection",value:function(){var e=this.prev
|
|
6713
|
-
return e?e.items?e.items.tail:e:this.isNested?this.parent.previousLeafSection():void 0}},{key:"tagName",set:function(e){var r=(0,t.normalizeTagName)(e);(0,n.default)("Cannot set section tagName to "+e,this.isValidTagName(r)),this._tagName=r},get:function(){return this._tagName}},{key:"length",get:function(){return 0}},{key:"isBlank",get:function(){
|
|
6714
|
-
e.default=
|
|
6713
|
+
return e?e.items?e.items.tail:e:this.isNested?this.parent.previousLeafSection():void 0}},{key:"tagName",set:function(e){var r=(0,t.normalizeTagName)(e);(0,n.default)("Cannot set section tagName to "+e,this.isValidTagName(r)),this._tagName=r},get:function(){return this._tagName}},{key:"length",get:function(){return 0}},{key:"isBlank",get:function(){a("isBlank",this)}}]),r}(r.default)
|
|
6714
|
+
e.default=s})),define("mobiledoc-kit/models/atom-node",["exports","mobiledoc-kit/utils/assert"],(function(e,t){"use strict"
|
|
6715
6715
|
var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6716
6716
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6717
6717
|
var n=function(){function e(t,r,n,i,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.editor=t,this.atom=r,this.model=n,this.atomOptions=o,this.element=i,this._teardownCallback=null,this._rendered=null}return r(e,[{key:"render",value:function(){if(!this._rendered){var e=this.atomOptions,t=this.env,r=this.model,n=r.value,i=r.payload
|
|
@@ -6720,7 +6720,8 @@ return{name:this.atom.name,onTeardown:function(t){return e._teardownCallback=t},
|
|
|
6720
6720
|
e.model.value=t,e.model.payload=r,e.editor._postDidChange(),e.teardown(),e.render()}}}}]),e}()
|
|
6721
6721
|
e.default=n})),define("mobiledoc-kit/models/atom",["exports","mobiledoc-kit/models/types","mobiledoc-kit/utils/mixin","mobiledoc-kit/utils/markuperable","mobiledoc-kit/utils/linked-item","mobiledoc-kit/utils/assert"],(function(e,t,r,n,i,o){"use strict"
|
|
6722
6722
|
var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6723
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6723
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6724
|
+
var s=function(e){function r(e,n,i){var a=this,s=arguments.length<=3||void 0===arguments[3]?[]:arguments[3];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6724
6725
|
n=!1,null===i&&(i=Function.prototype)
|
|
6725
6726
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6726
6727
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6728,14 +6729,13 @@ var l=s.get
|
|
|
6728
6729
|
if(void 0===l)return
|
|
6729
6730
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6730
6731
|
if(null===u)return
|
|
6731
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6732
|
-
var l=1,u=function(e){function r(e,n,i){var a=this,l=arguments.length<=3||void 0===arguments[3]?[]:arguments[3];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),s(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),this.name=e,this.value=n,this.text="",(0,o.default)("Atom must have value",null!=n),this.payload=i,this.type=t.ATOM_TYPE,this.isMarker=!1,this.isAtom=!0,this.markups=[],l.forEach((function(e){return a.addMarkup(e)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6732
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),this.name=e,this.value=n,this.text="",(0,o.default)("Atom must have value",null!=n),this.payload=i,this.type=t.ATOM_TYPE,this.isMarker=!1,this.isAtom=!0,this.markups=[],s.forEach((function(e){return a.addMarkup(e)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6733
6733
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),a(r,[{key:"clone",value:function(){var e=this.markups.slice()
|
|
6734
6734
|
return this.builder.createAtom(this.name,this.value,this.payload,e)}},{key:"canJoin",value:function(){return!1}},{key:"textUntil",value:function(){return""}},{key:"split",value:function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],t=arguments.length<=1||void 0===arguments[1]?e:arguments[1]
|
|
6735
6735
|
return function(){var r=[]
|
|
6736
|
-
return 0===t&&r.push(this.builder.createMarker("",this.markups.slice())),r.push(this.clone()),e
|
|
6736
|
+
return 0===t&&r.push(this.builder.createMarker("",this.markups.slice())),r.push(this.clone()),1===e&&r.push(this.builder.createMarker("",this.markups.slice())),r}.apply(this,arguments)}},{key:"splitAtOffset",value:function(e){(0,o.default)("Cannot split a marker at an offset > its length",e<=this.length)
|
|
6737
6737
|
var t=this.builder,r=this.clone(),n=t.createMarker(""),i=void 0,a=void 0
|
|
6738
|
-
return 0===e?(i=n,a=r):e
|
|
6738
|
+
return 0===e?(i=n,a=r):1===e?(i=r,a=n):(0,o.default)('Invalid offset given to Atom#splitAtOffset: "'+e+'"',!1),this.markups.forEach((function(e){i.addMarkup(e),a.addMarkup(e)})),[i,a]}},{key:"isBlank",get:function(){return!1}},{key:"length",get:function(){return 1}}]),r}(i.default);(0,r.default)(s,n.default),e.default=s})),define("mobiledoc-kit/models/card-node",["exports","mobiledoc-kit/utils/assert"],(function(e,t){"use strict"
|
|
6739
6739
|
var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6740
6740
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6741
6741
|
var n=function(){function e(t,r,n,i,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.editor=t,this.card=r,this.section=n,this.element=i,this.options=o,this.mode=null,this._teardownCallback=null,this._rendered=null}return r(e,[{key:"render",value:function(e){if(this.mode!==e){this.teardown(),this.mode=e
|
|
@@ -6748,7 +6748,10 @@ return{name:this.card.name,isInEditor:!0,onTeardown:function(t){return e._teardo
|
|
|
6748
6748
|
e.section.payload=t,e.editor._postDidChange(),r&&e.display()},cancel:function(){return e.display()},remove:function(){return e.remove()},postModel:this.section}}}]),e}()
|
|
6749
6749
|
e.default=n})),define("mobiledoc-kit/models/card",["exports","mobiledoc-kit/models/_section","mobiledoc-kit/models/types","mobiledoc-kit/utils/copy"],(function(e,t,r,n){"use strict"
|
|
6750
6750
|
var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6751
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6751
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6752
|
+
var o={DISPLAY:"display",EDIT:"edit"}
|
|
6753
|
+
e.CARD_MODES=o
|
|
6754
|
+
var a=o.DISPLAY,s=function(e){function t(e,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6752
6755
|
n=!1,null===i&&(i=Function.prototype)
|
|
6753
6756
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6754
6757
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6756,15 +6759,13 @@ var l=s.get
|
|
|
6756
6759
|
if(void 0===l)return
|
|
6757
6760
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6758
6761
|
if(null===u)return
|
|
6759
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6760
|
-
var a={DISPLAY:"display",EDIT:"edit"}
|
|
6761
|
-
e.CARD_MODES=a
|
|
6762
|
-
var s=a.DISPLAY,l=function(e){function t(e,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,r.CARD_TYPE),this.name=e,this.payload=n,this.setInitialMode(s),this.isCardSection=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6762
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,r.CARD_TYPE),this.name=e,this.payload=n,this.setInitialMode(a),this.isCardSection=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6763
6763
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"canJoin",value:function(){return!1}},{key:"clone",value:function(){var e=(0,n.shallowCopyObject)(this.payload),t=this.builder.createCardSection(this.name,e),r=this._initialMode
|
|
6764
6764
|
return this.renderNode&&this.renderNode.cardNode&&(r=this.renderNode.cardNode.mode),t.setInitialMode(r),t}},{key:"setInitialMode",value:function(e){this._initialMode=e}},{key:"isBlank",get:function(){return!1}},{key:"length",get:function(){return 1}}]),t}(t.default)
|
|
6765
|
-
e.default=
|
|
6765
|
+
e.default=s})),define("mobiledoc-kit/models/image",["exports","mobiledoc-kit/models/types","mobiledoc-kit/models/_section"],(function(e,t,r){"use strict"
|
|
6766
6766
|
var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6767
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6767
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6768
|
+
var i=function(e){function r(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6768
6769
|
n=!1,null===i&&(i=Function.prototype)
|
|
6769
6770
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6770
6771
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6772,10 +6773,9 @@ var l=s.get
|
|
|
6772
6773
|
if(void 0===l)return
|
|
6773
6774
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6774
6775
|
if(null===u)return
|
|
6775
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6776
|
-
var o=function(e){function r(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),i(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,t.IMAGE_SECTION_TYPE),this.src=null}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6776
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,t.IMAGE_SECTION_TYPE),this.src=null}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6777
6777
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),n(r,[{key:"canJoin",value:function(){return!1}},{key:"isBlank",get:function(){return!1}},{key:"length",get:function(){return 1}}]),r}(r.default)
|
|
6778
|
-
e.default=
|
|
6778
|
+
e.default=i})),define("mobiledoc-kit/models/lifecycle-callbacks",["exports","mobiledoc-kit/utils/assert"],(function(e,t){"use strict"
|
|
6779
6779
|
var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6780
6780
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6781
6781
|
var n=function(){function e(){var t=this,r=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.callbackQueues={},this.removalQueues={},r.forEach((function(e){t.callbackQueues[e]=[],t.removalQueues[e]=[]}))}return r(e,[{key:"runCallbacks",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],r=this._getQueue(e)
|
|
@@ -6784,7 +6784,10 @@ return r}return Array.from(e)}(t))})),this.removalQueues[e].forEach((function(e)
|
|
|
6784
6784
|
return(0,t.default)('No queue found for "'+e+'"',!!r),r}}]),e}()
|
|
6785
6785
|
e.default=n})),define("mobiledoc-kit/models/list-item",["exports","mobiledoc-kit/models/_markerable","mobiledoc-kit/models/types","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/array-utils"],(function(e,t,r,n,i){"use strict"
|
|
6786
6786
|
var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6787
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6787
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6788
|
+
var a=["li"].map(n.normalizeTagName)
|
|
6789
|
+
e.VALID_LIST_ITEM_TAGNAMES=a
|
|
6790
|
+
var s=function(e){function t(e){var n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6788
6791
|
n=!1,null===i&&(i=Function.prototype)
|
|
6789
6792
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6790
6793
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6792,18 +6795,20 @@ var l=s.get
|
|
|
6792
6795
|
if(void 0===l)return
|
|
6793
6796
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6794
6797
|
if(null===u)return
|
|
6795
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6796
|
-
var
|
|
6797
|
-
e.VALID_LIST_ITEM_TAGNAMES=s
|
|
6798
|
-
var l=function(e){function t(e){var n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,r.LIST_ITEM_TYPE,e,n),this.isListItem=!0,this.isNested=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6799
|
-
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"isValidTagName",value:function(e){return(0,i.contains)(s,e)}},{key:"splitAtMarker",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=!this.next,n=!e&&0===t&&r,i=this.builder.createListItem(),o=n?this.builder.createMarkupSection():this.builder.createListItem()
|
|
6798
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,r.LIST_ITEM_TYPE,e,n),this.isListItem=!0,this.isNested=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6799
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"isValidTagName",value:function(e){return(0,i.contains)(a,e)}},{key:"splitAtMarker",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=!this.next,n=!e&&0===t&&r,i=this.builder.createListItem(),o=n?this.builder.createMarkupSection():this.builder.createListItem()
|
|
6800
6800
|
return this._redistributeMarkers(i,o,e,t)}},{key:"post",get:function(){return this.section.post}}]),t}(t.default)
|
|
6801
|
-
e.default=
|
|
6801
|
+
e.default=s})),define("mobiledoc-kit/models/list-section",["exports","mobiledoc-kit/models/types","mobiledoc-kit/models/_section","mobiledoc-kit/models/_attributable","mobiledoc-kit/utils/linked-list","mobiledoc-kit/utils/array-utils","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/assert","mobiledoc-kit/utils/object-utils"],(function(e,t,r,n,i,o,a,s,l){"use strict"
|
|
6802
6802
|
var u=function(e,t){if(Array.isArray(e))return e
|
|
6803
6803
|
if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0
|
|
6804
6804
|
try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){i=!0,o=l}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t)
|
|
6805
6805
|
throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6806
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6806
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6807
|
+
var d=["ul","ol"].map(a.normalizeTagName)
|
|
6808
|
+
e.VALID_LIST_SECTION_TAGNAMES=d
|
|
6809
|
+
var h=d[0]
|
|
6810
|
+
e.DEFAULT_TAG_NAME=h
|
|
6811
|
+
var p=function(e){function r(){var e=arguments.length<=0||void 0===arguments[0]?h:arguments[0],o=this,a=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],c=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6807
6812
|
n=!1,null===i&&(i=Function.prototype)
|
|
6808
6813
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6809
6814
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6811,21 +6816,21 @@ var l=s.get
|
|
|
6811
6816
|
if(void 0===l)return
|
|
6812
6817
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6813
6818
|
if(null===u)return
|
|
6814
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6815
|
-
var h=["ul","ol"].map(a.normalizeTagName)
|
|
6816
|
-
e.VALID_LIST_SECTION_TAGNAMES=h
|
|
6817
|
-
var p=h[0]
|
|
6818
|
-
e.DEFAULT_TAG_NAME=p
|
|
6819
|
-
var f=function(e){function r(){var e=arguments.length<=0||void 0===arguments[0]?p:arguments[0],o=this,a=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],c=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),d(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,t.LIST_SECTION_TYPE),this.tagName=e,this.isListSection=!0,this.isLeafSection=!1,(0,n.attributable)(this),(0,l.entries)(c).forEach((function(e){var t=u(e,2),r=t[0],n=t[1]
|
|
6819
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,t.LIST_SECTION_TYPE),this.tagName=e,this.isListSection=!0,this.isLeafSection=!1,(0,n.attributable)(this),(0,l.entries)(c).forEach((function(e){var t=u(e,2),r=t[0],n=t[1]
|
|
6820
6820
|
return o.setAttribute(r,n)})),this.items=new i.default({adoptItem:function(e){(0,s.default)("Cannot insert non-list-item to list (is: "+e.type+")",e.isListItem),e.section=e.parent=o},freeItem:function(e){return e.section=e.parent=null}}),this.sections=this.items,a.forEach((function(e){return o.items.append(e)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6821
|
-
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),c(r,[{key:"canJoin",value:function(){return!1}},{key:"isValidTagName",value:function(e){return(0,o.contains)(
|
|
6821
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),c(r,[{key:"canJoin",value:function(){return!1}},{key:"isValidTagName",value:function(e){return(0,o.contains)(d,e)}},{key:"headPosition",value:function(){return this.items.head.headPosition()}},{key:"tailPosition",value:function(){return this.items.tail.tailPosition()}},{key:"clone",value:function(){var e=this.builder.createListSection(this.tagName)
|
|
6822
6822
|
return(0,o.forEach)(this.items,(function(t){return e.items.append(t.clone())})),e}},{key:"join",value:function(e){var t=this
|
|
6823
6823
|
if(e.isListSection)e.items.forEach((function(e){return t.join(e)}))
|
|
6824
6824
|
else if(e.isMarkerable){var r=this.builder.createListItem()
|
|
6825
6825
|
r.join(e),this.items.append(r)}}},{key:"isBlank",get:function(){return this.items.isEmpty}}]),r}(r.default)
|
|
6826
|
-
e.default=
|
|
6826
|
+
e.default=p})),define("mobiledoc-kit/models/marker",["exports","mobiledoc-kit/models/types","mobiledoc-kit/utils/mixin","mobiledoc-kit/utils/markuperable","mobiledoc-kit/utils/linked-item","mobiledoc-kit/utils/assert","mobiledoc-kit/utils/array-utils"],(function(e,t,r,n,i,o,a){"use strict"
|
|
6827
6827
|
var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6828
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6828
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6829
|
+
var l=[55296,56319]
|
|
6830
|
+
e.HIGH_SURROGATE_RANGE=l
|
|
6831
|
+
var u=[56320,57343]
|
|
6832
|
+
e.LOW_SURROGATE_RANGE=u
|
|
6833
|
+
var c=function(e){function r(){var e=this,n=arguments.length<=0||void 0===arguments[0]?"":arguments[0],i=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6829
6834
|
n=!1,null===i&&(i=Function.prototype)
|
|
6830
6835
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6831
6836
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6833,26 +6838,28 @@ var l=s.get
|
|
|
6833
6838
|
if(void 0===l)return
|
|
6834
6839
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6835
6840
|
if(null===u)return
|
|
6836
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6837
|
-
var u=[55296,56319]
|
|
6838
|
-
e.HIGH_SURROGATE_RANGE=u
|
|
6839
|
-
var c=[56320,57343]
|
|
6840
|
-
e.LOW_SURROGATE_RANGE=c
|
|
6841
|
-
var d=function(e){function r(){var e=this,n=arguments.length<=0||void 0===arguments[0]?"":arguments[0],i=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,r),l(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),this.value=n,(0,o.default)("Marker must have value",null!=n),this.markups=[],this.type=t.MARKER_TYPE,this.isMarker=!0,this.isAtom=!1,i.forEach((function(t){return e.addMarkup(t)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6841
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),this.value=n,(0,o.default)("Marker must have value",null!=n),this.markups=[],this.type=t.MARKER_TYPE,this.isMarker=!0,this.isAtom=!1,i.forEach((function(t){return e.addMarkup(t)}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6842
6842
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),s(r,[{key:"clone",value:function(){var e=this.markups.slice()
|
|
6843
6843
|
return this.builder.createMarker(this.value,e)}},{key:"charAt",value:function(e){return this.value.slice(e,e+1)}},{key:"deleteValueAtOffset",value:function(e){(0,o.default)("Cannot delete value at offset outside bounds",e>=0&&e<=this.length)
|
|
6844
6844
|
var t=1,r=this.value.charCodeAt(e)
|
|
6845
|
-
r>=
|
|
6845
|
+
r>=l[0]&&r<=l[1]?t=2:r>=u[0]&&r<=u[1]&&(t=2,e-=1)
|
|
6846
6846
|
var n=this.value.slice(0,e),i=this.value.slice(e+t)
|
|
6847
6847
|
return this.value=n+i,t}},{key:"canJoin",value:function(e){return e&&e.isMarker&&(0,a.isArrayEqual)(this.markups,e.markups)}},{key:"textUntil",value:function(e){return this.value.slice(0,e)}},{key:"split",value:function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],t=arguments.length<=1||void 0===arguments[1]?this.length:arguments[1],r=[this.builder.createMarker(this.value.substring(0,e)),this.builder.createMarker(this.value.substring(e,t)),this.builder.createMarker(this.value.substring(t))]
|
|
6848
6848
|
return this.markups.forEach((function(e){return r.forEach((function(t){return t.addMarkup(e)}))})),r}},{key:"splitAtOffset",value:function(e){(0,o.default)("Cannot split a marker at an offset > its length",e<=this.length)
|
|
6849
6849
|
var t=this.value,r=this.builder,n=r.createMarker(t.substring(0,e)),i=r.createMarker(t.substring(e))
|
|
6850
|
-
return this.markups.forEach((function(e){n.addMarkup(e),i.addMarkup(e)})),[n,i]}},{key:"isEmpty",get:function(){return this.isBlank}},{key:"isBlank",get:function(){return 0===this.length}},{key:"text",get:function(){return this.value}},{key:"length",get:function(){return this.value.length}}]),r}(i.default);(0,r.default)(
|
|
6850
|
+
return this.markups.forEach((function(e){n.addMarkup(e),i.addMarkup(e)})),[n,i]}},{key:"isEmpty",get:function(){return this.isBlank}},{key:"isBlank",get:function(){return 0===this.length}},{key:"text",get:function(){return this.value}},{key:"length",get:function(){return this.value.length}}]),r}(i.default);(0,r.default)(c,n.default),e.default=c})),define("mobiledoc-kit/models/markup-section",["exports","mobiledoc-kit/models/_markerable","mobiledoc-kit/models/_attributable","mobiledoc-kit/models/types","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/array-utils","mobiledoc-kit/utils/object-utils"],(function(e,t,r,n,i,o,a){"use strict"
|
|
6851
6851
|
var s=function(e,t){if(Array.isArray(e))return e
|
|
6852
6852
|
if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0
|
|
6853
6853
|
try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){i=!0,o=l}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t)
|
|
6854
6854
|
throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6855
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6855
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6856
|
+
var u=["aside","blockquote","h1","h2","h3","h4","h5","h6","p"].map(i.normalizeTagName)
|
|
6857
|
+
e.VALID_MARKUP_SECTION_TAGNAMES=u
|
|
6858
|
+
var c=["aside","blockquote","h1","h2","h3","h4","h5","h6","p"].map(i.normalizeTagName)
|
|
6859
|
+
e.MARKUP_SECTION_ELEMENT_NAMES=c
|
|
6860
|
+
var d=u[8]
|
|
6861
|
+
e.DEFAULT_TAG_NAME=d
|
|
6862
|
+
var h=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?d:arguments[0],i=this,o=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],l=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6856
6863
|
n=!1,null===i&&(i=Function.prototype)
|
|
6857
6864
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6858
6865
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6860,18 +6867,11 @@ var l=s.get
|
|
|
6860
6867
|
if(void 0===l)return
|
|
6861
6868
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6862
6869
|
if(null===u)return
|
|
6863
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6864
|
-
var c=["aside","blockquote","h1","h2","h3","h4","h5","h6","p"].map(i.normalizeTagName)
|
|
6865
|
-
e.VALID_MARKUP_SECTION_TAGNAMES=c
|
|
6866
|
-
var d=["aside","blockquote","h1","h2","h3","h4","h5","h6","p"].map(i.normalizeTagName)
|
|
6867
|
-
e.MARKUP_SECTION_ELEMENT_NAMES=d
|
|
6868
|
-
var h=c[8]
|
|
6869
|
-
e.DEFAULT_TAG_NAME=h
|
|
6870
|
-
var p=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?h:arguments[0],i=this,o=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],l=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,n.MARKUP_SECTION_TYPE,e,o),(0,r.attributable)(this),(0,a.entries)(l).forEach((function(e){var t=s(e,2),r=t[0],n=t[1]
|
|
6870
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,n.MARKUP_SECTION_TYPE,e,o),(0,r.attributable)(this),(0,a.entries)(l).forEach((function(e){var t=s(e,2),r=t[0],n=t[1]
|
|
6871
6871
|
return i.setAttribute(r,n)})),this.isMarkupSection=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6872
|
-
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"isValidTagName",value:function(e){return(0,o.contains)(
|
|
6872
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"isValidTagName",value:function(e){return(0,o.contains)(u,e)}},{key:"splitAtMarker",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=this.builder.createMarkupSection(this.tagName,[],!1,this.attributes),n=this.builder.createMarkupSection()
|
|
6873
6873
|
return this._redistributeMarkers(r,n,e,t)}}]),t}(t.default)
|
|
6874
|
-
e.default=
|
|
6874
|
+
e.default=h})),define("mobiledoc-kit/models/markup",["exports","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/array-utils","mobiledoc-kit/models/types","mobiledoc-kit/utils/assert"],(function(e,t,r,n,i){"use strict"
|
|
6875
6875
|
var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6876
6876
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6877
6877
|
var a=["a","b","code","em","i","s","strong","sub","sup","u"].map(t.normalizeTagName)
|
|
@@ -6923,7 +6923,8 @@ u=r.createMarkupSection(c)}var d=e.trimTo(i);(0,n.forEach)(i.markersFor(d.headSe
|
|
|
6923
6923
|
s&&s.sections.append(u)})),t}},{key:"isBlank",get:function(){return this.sections.isEmpty}},{key:"hasContent",get:function(){return this.sections.length>1||1===this.sections.length&&!this.sections.head.isBlank}}]),e}()
|
|
6924
6924
|
e.default=l})),define("mobiledoc-kit/models/render-node",["exports","mobiledoc-kit/utils/linked-item","mobiledoc-kit/utils/linked-list","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/assert"],(function(e,t,r,n,i){"use strict"
|
|
6925
6925
|
var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6926
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6926
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6927
|
+
var a=function(e){function t(e,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
6927
6928
|
n=!1,null===i&&(i=Function.prototype)
|
|
6928
6929
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
6929
6930
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -6931,12 +6932,11 @@ var l=s.get
|
|
|
6931
6932
|
if(void 0===l)return
|
|
6932
6933
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
6933
6934
|
if(null===u)return
|
|
6934
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
6935
|
-
var s=function(e){function t(e,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.parent=null,this.isDirty=!0,this.isRemoved=!1,this.postNode=e,this._childNodes=null,this._element=null,this._cursorElement=null,this.renderTree=r,this.markupElement=null,this.headTextNode=null,this.tailTextNode=null,this.atomNode=null,this.cardNode=null}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6935
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.parent=null,this.isDirty=!0,this.isRemoved=!1,this.postNode=e,this._childNodes=null,this._element=null,this._cursorElement=null,this.renderTree=r,this.markupElement=null,this.headTextNode=null,this.tailTextNode=null,this.atomNode=null,this.cardNode=null}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
6936
6936
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"isAttached",value:function(){return(0,i.default)("Cannot check if a renderNode is attached without an element.",!!this.element),(0,n.containsNode)(this.renderTree.rootElement,this.element)}},{key:"scheduleForRemoval",value:function(){this.isRemoved=!0,this.parent&&this.parent.markDirty()}},{key:"markDirty",value:function(){this.isDirty=!0,this.parent&&this.parent.markDirty()}},{key:"markClean",value:function(){this.isDirty=!1}},{key:"destroy",value:function(){this.element=null,this.parent=null,this.postNode=null,this.renderTree=null}},{key:"reparsesMutationOfChildNode",value:function(e){return this.postNode.isCardSection?!(0,n.containsNode)(this.cardNode.element,e):!this.postNode.isAtom||!(0,n.containsNode)(this.atomNode.element,e)}},{key:"childNodes",get:function(){var e=this
|
|
6937
6937
|
return this._childNodes||(this._childNodes=new r.default({adoptItem:function(t){return t.parent=e},freeItem:function(e){return e.destroy()}})),this._childNodes}},{key:"isRendered",get:function(){return!!this.element}},{key:"element",set:function(e){var t=this._element
|
|
6938
6938
|
this._element=e,t&&this.renderTree.removeElementRenderNode(t),e&&this.renderTree.setElementRenderNode(e,this)},get:function(){return this._element}},{key:"cursorElement",set:function(e){this._cursorElement=e},get:function(){return this._cursorElement||this.element}}]),t}(t.default)
|
|
6939
|
-
e.default=
|
|
6939
|
+
e.default=a})),define("mobiledoc-kit/models/render-tree",["exports","mobiledoc-kit/models/render-node","mobiledoc-kit/utils/element-map"],(function(e,t,r){"use strict"
|
|
6940
6940
|
var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
6941
6941
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
6942
6942
|
var i=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._rootNode=this.buildRenderNode(t),this._elements=new r.default}return n(e,[{key:"getElementRenderNode",value:function(e){return this._elements.get(e)}},{key:"setElementRenderNode",value:function(e,t){this._elements.set(e,t)}},{key:"removeElementRenderNode",value:function(e){this._elements.remove(e)}},{key:"findRenderNodeFromElement",value:function(e){for(var t=arguments.length<=1||void 0===arguments[1]?function(){return!0}:arguments[1],r=void 0;e;){if((r=this.getElementRenderNode(e))&&t(r))return r
|
|
@@ -7409,30 +7409,22 @@ var a=(0,t.comparePosition)(e),s=a.headNode,l=a.headOffset,u=a.tailNode,c=a.tail
|
|
|
7409
7409
|
return new i.default(h,p,d)}},{key:"selection",get:function(){return window.getSelection()}},{key:"_selectionRange",get:function(){var e=this.selection
|
|
7410
7410
|
return 0===e.rangeCount?null:e.getRangeAt(0)}}]),e}()
|
|
7411
7411
|
e.default=s})),define("mobiledoc-kit/utils/cursor/position",["exports","mobiledoc-kit/utils/dom-utils","mobiledoc-kit/utils/assert","mobiledoc-kit/models/marker","mobiledoc-kit/utils/selection-utils","mobiledoc-kit/utils/key","mobiledoc-kit/utils/cursor/range"],(function(e,t,r,n,i,o,a){"use strict"
|
|
7412
|
-
var s=function(e,t
|
|
7413
|
-
n=!1,null===i&&(i=Function.prototype)
|
|
7414
|
-
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
7415
|
-
if(void 0!==s){if("value"in s)return s.value
|
|
7416
|
-
var l=s.get
|
|
7417
|
-
if(void 0===l)return
|
|
7418
|
-
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
7419
|
-
if(null===u)return
|
|
7420
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}},l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
7412
|
+
var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
7421
7413
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
7422
|
-
function
|
|
7423
|
-
function
|
|
7424
|
-
return r&&r.postNode}var f
|
|
7425
|
-
|
|
7426
|
-
|
|
7414
|
+
function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=o.DIRECTION.FORWARD,c=o.DIRECTION.BACKWARD,d=/[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևְ-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࢠ-ࢴࣣ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣲ-ꣷꣻꣽꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]|[0-9]|_|:/
|
|
7415
|
+
function h(e,t){var r=e.findRenderNodeFromElement(t,(function(e){return e.postNode.isSection}))
|
|
7416
|
+
return r&&r.postNode}var p,f=void 0
|
|
7417
|
+
p=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],i=!(arguments.length<=2||void 0===arguments[2])&&arguments[2]
|
|
7418
|
+
l(this,e),i||((0,r.default)("Position must have a section that is addressable by the cursor",t&&t.isLeafSection),(0,r.default)("Position must have numeric offset","number"==typeof n)),this.section=t,this.offset=n,this.isBlank=i}return s(e,[{key:"toRange",value:function(){var e=arguments.length<=0||void 0===arguments[0]?this:arguments[0],t=arguments.length<=1||void 0===arguments[1]?null:arguments[1]
|
|
7427
7419
|
return new a.default(this,e,t)}},{key:"markerIn",value:function(e){if(this.isMarkerable){var t=this.marker,r=this.offsetInMarker
|
|
7428
|
-
if(t)return r>0&&r<t.length?t:0===r?e===
|
|
7420
|
+
if(t)return r>0&&r<t.length?t:0===r?e===c?t:t.prev:r===t.length?e===u?t.next:t:void 0}}},{key:"isEqual",value:function(e){return this.section===e.section&&this.offset===e.offset}},{key:"isHeadOfPost",value:function(){return this.move(c).isEqual(this)}},{key:"isTailOfPost",value:function(){return this.move(u).isEqual(this)}},{key:"isHead",value:function(){return this.isEqual(this.section.headPosition())}},{key:"isTail",value:function(){return this.isEqual(this.section.tailPosition())}},{key:"move",value:function(e){return(0,r.default)("Must pass integer to Position#move","number"==typeof e),e<0?this.moveLeft().move(++e):e>0?this.moveRight().move(--e):this}},{key:"moveWord",value:function(e){if(e===c?this.isHeadOfPost():this.isTailOfPost())return this
|
|
7429
7421
|
if(!this.isMarkerable)return this.move(e)
|
|
7430
|
-
var t=this,r=function(e,t){return t===
|
|
7431
|
-
return t.charAt(r)},i=function(e,t){return n(t===
|
|
7422
|
+
var t=this,r=function(e,t){return t===c?e.isHead():e.isTail()},n=function(e){var t=e.marker,r=e.offsetInMarker
|
|
7423
|
+
return t.charAt(r)},i=function(e,t){return n(t===c?e.move(c):e)},o=function(e,t){return!(t!==c||!e.isTail()||!e.marker.isAtom)||(t===c?e.move(c).marker.isAtom:e.marker.isAtom)}
|
|
7432
7424
|
if(r(t,e))return t.move(e).moveWord(e)
|
|
7433
|
-
for(var a=function(t){return!r(t,e)&&!o(t,e)&&!
|
|
7425
|
+
for(var a=function(t){return!r(t,e)&&!o(t,e)&&!d.test(i(t,e))};a(t);)t=t.move(e)
|
|
7434
7426
|
if(o(t,e))return t.move(e)
|
|
7435
|
-
for(var s=function(t){return!r(t,e)&&!o(t,e)&&
|
|
7427
|
+
for(var s=function(t){return!r(t,e)&&!o(t,e)&&d.test(i(t,e))};s(t);)t=t.move(e)
|
|
7436
7428
|
return t}},{key:"moveLeft",value:function(){if(this.isHead()){var t=this.section.previousLeafSection()
|
|
7437
7429
|
return t?t.tailPosition():this}var r=this.offset-1
|
|
7438
7430
|
if(this.isMarkerable&&this.marker){var i=this.marker.value.charCodeAt(r)
|
|
@@ -7442,19 +7434,27 @@ if(this.isMarkerable&&this.marker){var i=this.marker.value.charCodeAt(r-1)
|
|
|
7442
7434
|
i>=n.HIGH_SURROGATE_RANGE[0]&&i<=n.HIGH_SURROGATE_RANGE[1]&&(r+=1)}return new e(this.section,r)}},{key:"leafSectionIndex",get:function(){var e=this,t=this.section.post,r=void 0
|
|
7443
7435
|
return t.walkAllLeafSections((function(t,n){t===e.section&&(r=n)})),r}},{key:"isMarkerable",get:function(){return this.section&&this.section.isMarkerable}},{key:"marker",get:function(){return this.isMarkerable&&this.markerPosition.marker}},{key:"offsetInMarker",get:function(){return this.markerPosition.offset}},{key:"markerPosition",get:function(){return(0,r.default)("Cannot get markerPosition without a section",!!this.section),(0,r.default)("cannot get markerPosition of a non-markerable",!!this.section.isMarkerable),this.section.markerPositionAtOffset(this.offset)}}],[{key:"atPoint",value:function(r,n,o){var a=o._renderTree,s=o.element,l=document.elementFromPoint(r,n)
|
|
7444
7436
|
if((0,t.containsNode)(s,l)){var u=(0,i.findOffsetInNode)(l,{left:r,top:n}),c=u.node,d=u.offset
|
|
7445
|
-
return e.fromNode(a,c,d)}}},{key:"blankPosition",value:function(){return new
|
|
7437
|
+
return e.fromNode(a,c,d)}}},{key:"blankPosition",value:function(){return new f}},{key:"fromNode",value:function(r,n,i){return(0,t.isTextNode)(n)?e.fromTextNode(r,n,i):e.fromElementNode(r,n,i)}},{key:"fromTextNode",value:function(t,n,i){var o=t.getElementRenderNode(n),a=void 0,s=void 0
|
|
7446
7438
|
if(o){var l=o.postNode
|
|
7447
|
-
a=l.section,(0,r.default)('Could not find parent section for mapped text node "'+n.textContent+'"',!!a),s=a.offsetOfMarker(l,i)}else a=
|
|
7439
|
+
a=l.section,(0,r.default)('Could not find parent section for mapped text node "'+n.textContent+'"',!!a),s=a.offsetOfMarker(l,i)}else a=h(t,n),(0,r.default)('Could not find parent section for un-mapped text node "'+n.textContent+'"',!!a),s=function(e,t,n){return e.isMarkerable?function(e,t,r){for(var n=0,i=e.markers.head;i;){if(i.renderNode.element===t)return n+r
|
|
7448
7440
|
if(i.isAtom){if(i.renderNode.headTextNode===t)return n
|
|
7449
7441
|
if(i.renderNode.tailTextNode===t)return n+1}n+=i.length,i=i.next}return n}(e,t,n):((0,r.default)("findOffsetInSection must be called with markerable or card section",e.isCardSection),t===e.renderNode.element.lastChild?1:0)}(a,n,i)
|
|
7450
7442
|
return new e(a,s)}},{key:"fromElementNode",value:function(t,n,i){var o=void 0
|
|
7451
7443
|
if(n===t.rootElement){var a=t.rootNode.postNode
|
|
7452
|
-
o=0===i?a.headPosition():a.tailPosition()}else{var s=
|
|
7444
|
+
o=0===i?a.headPosition():a.tailPosition()}else{var s=h(t,n)
|
|
7453
7445
|
if((0,r.default)("Could not find parent section from element node",!!s),s.isCardSection)o=i<2?s.headPosition():s.tailPosition()
|
|
7454
7446
|
else{var l=t.getElementRenderNode(n),u=l&&l.postNode
|
|
7455
7447
|
if(u&&u.isAtom){var c=s.offsetOfMarker(u)
|
|
7456
|
-
i>1&&(c+=u.length),o=new e(s,c)}else o=i>=n.childNodes.length?s.tailPosition():s.headPosition()}}return o}}]),e}(),
|
|
7457
|
-
|
|
7448
|
+
i>1&&(c+=u.length),o=new e(s,c)}else o=i>=n.childNodes.length?s.tailPosition():s.headPosition()}}return o}}]),e}(),f=function(e){function t(){l(this,t),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
7449
|
+
n=!1,null===i&&(i=Function.prototype)
|
|
7450
|
+
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
7451
|
+
if(void 0!==s){if("value"in s)return s.value
|
|
7452
|
+
var l=s.get
|
|
7453
|
+
if(void 0===l)return
|
|
7454
|
+
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
7455
|
+
if(null===u)return
|
|
7456
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,null,0,!0)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
7457
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"isEqual",value:function(e){return e&&e.isBlank}},{key:"toRange",value:function(){return a.default.blankRange()}},{key:"isHeadOfPost",value:function(){return!1}},{key:"isTailOfPost",value:function(){return!1}},{key:"isHead",value:function(){return!1}},{key:"isTail",value:function(){return!1}},{key:"move",value:function(){return this}},{key:"moveWord",value:function(){return this}},{key:"leafSectionIndex",get:function(){(0,r.default)("must implement get leafSectionIndex",!1)}},{key:"isMarkerable",get:function(){return!1}},{key:"marker",get:function(){return!1}},{key:"markerPosition",get:function(){return{}}}]),t}(p),e.default=p})),define("mobiledoc-kit/utils/cursor/range",["exports","mobiledoc-kit/utils/cursor/position","mobiledoc-kit/utils/key","mobiledoc-kit/utils/assert"],(function(e,t,r,n){"use strict"
|
|
7458
7458
|
var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
7459
7459
|
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
7460
7460
|
var o=function(){function e(t){var r=arguments.length<=1||void 0===arguments[1]?t:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2]
|
|
@@ -7633,7 +7633,10 @@ e.default=function(e){if((0,n.default)('Must pass non-blank object to "toRange"'
|
|
|
7633
7633
|
if(e instanceof r.default)return e.toRange();(0,n.default)("Incorrect structure for rangeLike: "+e,!1)}})),define("mobiledoc-kit/version",["exports"],(function(e){"use strict"
|
|
7634
7634
|
e.default="0.12.5-ghost.2"})),define("mobiledoc-kit/views/tooltip",["exports","mobiledoc-kit/views/view","mobiledoc-kit/utils/element-utils"],(function(e,t,r){"use strict"
|
|
7635
7635
|
var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
|
|
7636
|
-
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
7636
|
+
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()
|
|
7637
|
+
var i=function(e){function t(e){var n=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t)
|
|
7638
|
+
var i=e.rootElement,o=void 0
|
|
7639
|
+
e.classNames=["__mobiledoc-tooltip"],function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r
|
|
7637
7640
|
n=!1,null===i&&(i=Function.prototype)
|
|
7638
7641
|
var s=Object.getOwnPropertyDescriptor(i,o)
|
|
7639
7642
|
if(void 0!==s){if("value"in s)return s.value
|
|
@@ -7641,17 +7644,14 @@ var l=s.get
|
|
|
7641
7644
|
if(void 0===l)return
|
|
7642
7645
|
return l.call(a)}var u=Object.getPrototypeOf(i)
|
|
7643
7646
|
if(null===u)return
|
|
7644
|
-
e=u,t=o,r=a,n=!0,s=u=void 0}}
|
|
7645
|
-
|
|
7646
|
-
var a=e.rootElement,s=void 0
|
|
7647
|
-
e.classNames=["__mobiledoc-tooltip"],i(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.addEventListener(a,"mouseover",(function(t){var i=(0,r.getEventTargetMatchingTag)(e.showForTag,t.target,a)
|
|
7648
|
-
i&&i.isContentEditable&&(s=setTimeout((function(){n.showLink(i.href,i)}),o))})),this.addEventListener(a,"mouseout",(function(e){clearTimeout(s),n.elementObserver&&n.elementObserver.cancel()
|
|
7647
|
+
e=u,t=o,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.addEventListener(i,"mouseover",(function(t){var a=(0,r.getEventTargetMatchingTag)(e.showForTag,t.target,i)
|
|
7648
|
+
a&&a.isContentEditable&&(o=setTimeout((function(){n.showLink(a.href,a)}),200))})),this.addEventListener(i,"mouseout",(function(e){clearTimeout(o),n.elementObserver&&n.elementObserver.cancel()
|
|
7649
7649
|
var t=e.toElement||e.relatedTarget
|
|
7650
7650
|
t&&t.className!==n.element.className&&n.hide()}))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
|
|
7651
7651
|
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"showMessage",value:function(e,t){var n=this.element
|
|
7652
7652
|
n.innerHTML=e,this.show(),(0,r.positionElementCenteredBelow)(n,t)}},{key:"showLink",value:function(e,t){var n=this,i='<a href="'+e+'" target="_blank">'+e+"</a>"
|
|
7653
7653
|
this.showMessage(i,t),this.elementObserver=(0,r.whenElementIsNotInDOM)(t,(function(){return n.hide()}))}}]),t}(t.default)
|
|
7654
|
-
e.default=
|
|
7654
|
+
e.default=i})),define("mobiledoc-kit/views/view",["exports","mobiledoc-kit/utils/dom-utils"],(function(e,t){"use strict"
|
|
7655
7655
|
var r=function(e,t){if(Array.isArray(e))return e
|
|
7656
7656
|
if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0
|
|
7657
7657
|
try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){i=!0,o=l}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t)
|