unpoly-rails 3.14.2 → 3.15.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +317 -0
- data/README.md +61 -40
- data/assets/unpoly/unpoly-bootstrap3.css.map +1 -0
- data/assets/unpoly/unpoly-bootstrap3.js.map +1 -0
- data/assets/unpoly/unpoly-bootstrap3.min.css.map +1 -0
- data/assets/unpoly/unpoly-bootstrap3.min.js.map +1 -0
- data/assets/unpoly/unpoly-bootstrap4.css.map +1 -0
- data/assets/unpoly/unpoly-bootstrap4.js.map +1 -0
- data/assets/unpoly/unpoly-bootstrap4.min.css.map +1 -0
- data/assets/unpoly/unpoly-bootstrap4.min.js.map +1 -0
- data/assets/unpoly/unpoly-bootstrap5.css.map +1 -0
- data/assets/unpoly/unpoly-bootstrap5.js.map +1 -0
- data/assets/unpoly/unpoly-bootstrap5.min.css.map +1 -0
- data/assets/unpoly/unpoly-bootstrap5.min.js.map +1 -0
- data/assets/unpoly/unpoly-migrate.js +228 -149
- data/assets/unpoly/unpoly-migrate.js.map +1 -0
- data/assets/unpoly/unpoly-migrate.min.js +1 -1
- data/assets/unpoly/unpoly-migrate.min.js.map +1 -0
- data/assets/unpoly/unpoly.css.map +1 -0
- data/assets/unpoly/unpoly.es6.js +666 -430
- data/assets/unpoly/unpoly.es6.js.map +1 -0
- data/assets/unpoly/unpoly.es6.min.js +1 -1
- data/assets/unpoly/unpoly.es6.min.js.map +1 -0
- data/assets/unpoly/unpoly.js +2167 -1990
- data/assets/unpoly/unpoly.js.map +1 -0
- data/assets/unpoly/unpoly.min.css.map +1 -0
- data/assets/unpoly/unpoly.min.js +1 -1
- data/assets/unpoly/unpoly.min.js.map +1 -0
- data/lib/unpoly/rails/change/cache.rb +4 -4
- data/lib/unpoly/rails/change/layer.rb +3 -0
- data/lib/unpoly/rails/change.rb +35 -8
- data/lib/unpoly/rails/controller.rb +3 -2
- data/lib/unpoly/rails/engine.rb +7 -0
- data/lib/unpoly/rails/request_echo_headers.rb +10 -3
- data/lib/unpoly/rails/util.rb +38 -0
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +31 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpoly-migrate.min.js","mappings":"kBAKAA,GAAGC,QAAQC,SAAW,YAAYC,GAEhC,OADAH,GAAGI,QAAQC,WAAW,wBAAyB,yBACxCL,GAAGM,QAAQJ,YAAYC,EAChC,EAEAH,GAAGC,QAAQM,YAAc,YAAYJ,GAEnC,OADAH,GAAGI,QAAQC,WAAW,2BAA4B,8BAC3CL,GAAGQ,UAAUD,eAAeJ,EACrC,C,QCbAH,GAAGS,OAAOC,UAAUC,MAAQ,SAASA,GACnC,IAAIC,EAAUD,EAAME,KAAKC,KAAMA,MAC/BF,IACAG,SAASC,iBAAiB,qBAAsBJ,EAClD,C,QCaAZ,GAAGiB,MAAMP,UAAUQ,OAAS,WAE1B,OADAlB,GAAGI,QAAQC,WAAW,oBAAqB,sBACpCS,KAAKK,SACd,EAeAnB,GAAGiB,MAAMP,UAAUU,SAAW,WAE5B,OADApB,GAAGI,QAAQC,WAAW,sBAAuB,wBACrCS,KAAKK,SACf,C,QCtCAnB,GAAGI,QAAQiB,gBACTrB,GAAGsB,UAAUZ,UACb,UACA,gBACA,CAAEa,QAAS,4E,QCJbvB,GAAGI,QAAQiB,gBACTrB,GAAGwB,aAAad,UAChB,UACA,gBACA,CAAEa,QAAS,+E,QCiBbvB,GAAGyB,QAAQC,MAAQ,YAAYvB,GAE7B,OADAH,GAAGI,QAAQC,WAAW,qBAAsB,oBACrCL,GAAGyB,QAAQE,OAAOxB,EAC3B,EAEAH,GAAGyB,QAAQG,eAAiB,YAAYzB,GAEtC,OADAH,GAAGI,QAAQC,WAAW,8BAA+B,+BAC9CL,GAAGyB,QAAQI,kBAAkB1B,EACtC,EAeAH,GAAGyB,QAAQK,OAAS,SAASL,GAE3B,OADAzB,GAAGI,Q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B,GAEhC,OADAH,GAAGI,QAAQC,WAAW,wBAAyB,qBACxCL,GAAGiZ,SAAStX,OAAOxB,EAC5B,EAoCAH,GAAGiZ,SAASlR,OAAS,SAASkR,EAAUC,EAAK7S,EAAU,CAAC,GAKtD,OAJArG,GAAGI,QAAQC,WAAW,cAAe,uBAErC4Y,EAAWjZ,GAAGiD,SAAStB,IAAIsX,EAAU5S,IAC5B8S,SAAS,OAAD,wBAAM9S,GAAO,CAAE6S,SACzBlZ,GAAGI,QAAQmQ,cAAc,cAClC,EAEAvQ,GAAG+H,OAAS/H,GAAGiZ,SAASlR,M,GCzEpBqR,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAzZ,GAAGQ,UAAUoZ,iBACb,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,IACR,EAAQ,KACR,EAAQ,IACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,IACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR,EAAQ,KACR5Z,GAAGQ,UAAUqZ,e","sources":["webpack://unpoly/./src/unpoly-migrate/browser.js","webpack://unpoly/./src/unpoly-migrate/classes/config.js","webpack://unpoly/./src/unpoly-migrate/classes/layer/base.js","webpack://unpoly/./src/unpoly-migrate/classes/render_job.js","webpack://unpoly/./src/unpoly-migrate/classes/render_result.js","webpack://unpoly/./src/unpoly-migrate/element.js","webpack://unpoly/./src/unpoly-migrate/error.js","webpack://unpoly/./src/unpoly-migrate/event.js","webpack://unpoly/./src/unpoly-migrate/form.js","webpack://unpoly/./src/unpoly-migrate/fragment.js","webpack://unpoly/./src/unpoly-migrate/framework.js","webpack://unpoly/./src/unpoly-migrate/history.js","webpack://unpoly/./src/unpoly-migrate/layer.js","webpack://unpoly/./src/unpoly-migrate/link.js","webpack://unpoly/./src/unpoly-migrate/migrate.js","webpack://unpoly/./src/unpoly-migrate/modal.js","webpack://unpoly/./src/unpoly-migrate/motion.js","webpack://unpoly/./src/unpoly-migrate/network.js","webpack://unpoly/./src/unpoly-migrate/popup.js","webpack://unpoly/./src/unpoly-migrate/protocol.js","webpack://unpoly/./src/unpoly-migrate/radio.js","webpack://unpoly/./src/unpoly-migrate/script.js","webpack://unpoly/./src/unpoly-migrate/status.js","webpack://unpoly/./src/unpoly-migrate/tooltip.js","webpack://unpoly/./src/unpoly-migrate/util.js","webpack://unpoly/./src/unpoly-migrate/viewport.js","webpack://unpoly/webpack/bootstrap","webpack://unpoly/./src/unpoly-migrate.js"],"sourcesContent":["/*-\n@module up.browser\n@internal\n*/\n\nup.browser.loadPage = function(...args) {\n up.migrate.deprecated('up.browser.loadPage()', 'up.network.loadPage()')\n return up.network.loadPage(...args)\n}\n\nup.browser.isSupported = function(...args) {\n up.migrate.deprecated('up.browser.isSupported()', 'up.framework.isSupported()')\n return up.framework.isSupported(...args)\n}\n\n","up.Config.prototype.patch = function(patch) {\n let doPatch = patch.bind(this, this)\n doPatch()\n document.addEventListener('up:framework:reset', doPatch)\n}\n","/*-\n@class up.Layer\n*/\n\n/*-\nReturns whether this layer is still part of the [layer stack](/api/up.layer.stack).\n\nA layer is considered \"closed\" immediately after it has been [dismissed](/api/up.Layer.prototype.dismiss)\nor [accepted](/api/up.Layer.prototype.accept). If the closing is animated, a layer may be considered \"closed\" while\nthe closing animation is still playing.\n\n@function up.Layer#isOpen\n@return {boolean}\n Whether this layer is still open.\n@deprecated\n Use `up.Layer#isAlive()` instead.\n*/\nup.Layer.prototype.isOpen = function() {\n up.migrate.deprecated('up.Layer#isOpen()', 'up.Layer#isAlive()')\n return this.isAlive()\n}\n\n/*-\nReturns whether this layer is no longer part of the [layer stack](/api/up.layer.stack).\n\nA layer is considered \"closed\" immediately after it has been [dismissed](/api/up.Layer.prototype.dismiss)\nor [accepted](/api/up.Layer.prototype.accept). If the closing is animated, a layer may be considered \"closed\" while\nthe closing animation is still playing.\n\n@function up.Layer#isClosed\n@return {boolean}\n Whether this layer has been closed.\n@deprecated\n Use `!up.Layer#isAlive()` instead.\n*/\nup.Layer.prototype.isClosed = function() {\n up.migrate.deprecated('up.Layer#isClosed()', '!up.Layer#isAlive()')\n return !this.isAlive()\n}\n","up.migrate.renamedProperty(\n up.RenderJob.prototype,\n 'options',\n 'renderOptions',\n { warning: 'up.RenderJob: Property { options } has been renamed to { renderOptions }' }\n)\n","up.migrate.renamedProperty(\n up.RenderResult.prototype,\n 'options',\n 'renderOptions',\n { warning: 'up.RenderResult: Property { options } has been renamed to { renderOptions }' }\n)\n","/*-\n@module up.element\n*/\n\n/*-\nReturns the first descendant element matching the given selector.\n\n@function up.element.first\n@param {Element} [parent=document]\n The parent element whose descendants to search.\n\n If omitted, all elements in the `document` will be searched.\n@param {string} selector\n The CSS selector to match.\n@return {Element|undefined|null}\n The first element matching the selector.\n\n Returns `null` or `undefined` if no element macthes.\n@deprecated\n Use `up.element.get()` instead.\n*/\nup.element.first = function(...args) {\n up.migrate.deprecated('up.element.first()', 'up.element.get()')\n return up.element.get(...args)\n}\n\nup.element.createFromHtml = function(...args) {\n up.migrate.deprecated('up.element.createFromHtml()', 'up.element.createFromHTML()')\n return up.element.createFromHTML(...args)\n}\n\n/*-\nRemoves the given element from the DOM tree.\n\n> [IMPORTANT]\n> This function does *not* run [destructor functions](/learn/enhancing-elements#destructor)\n> on the removed elements. For this use `up.destroy()`.\n\n@function up.element.remove\n@param {Element} element\n The element to remove.\n@deprecated\n Use [`Element#remove()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) instead.\n*/\nup.element.remove = function(element) {\n up.migrate.deprecated('up.element.remove()', 'Element#remove()')\n return element.remove()\n}\n\n/*-\nReturns whether the given element matches the given CSS selector.\n\nTo match against a non-standard selector like `:main`,\nuse `up.fragment.matches()` instead.\n\n@function up.element.matches\n@param {Element} element\n The element to check.\n@param {string} selector\n The CSS selector to match.\n@return {boolean}\n Whether `element` matches `selector`.\n@deprecated\n Use [`Element#matches()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches) instead.\n*/\nup.element.matches = function(element, selector) {\n up.migrate.deprecated('up.element.matches()', 'Element#matches()')\n return element.matches(selector)\n}\n\n/*-\nReturns the first element that matches the selector by testing the element itself\nand traversing up through its ancestors in the DOM tree.\n\n@function up.element.closest\n@param {Element} element\n The element on which to start the search.\n@param {string} selector\n The CSS selector to match.\n@return {Element|null|undefined} element\n The matching element.\n\n Returns `null` or `undefined` if no element matches.\n@deprecated\n Use [`Element#closest()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest) instead.\n*/\nup.element.closest = function(element, selector) {\n up.migrate.deprecated('up.element.closest()', 'Element#closest()')\n return element.closest(selector)\n}\n\n/*-\nReplaces the given old element with the given new element.\n\nThe old element will be removed from the DOM tree.\n\n@function up.element.replace\n@param {Element} oldElement\n@param {Element} newElement\n@deprecated\n Use [`Element#replaceWith()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith) instead.\n*/\nup.element.replace = function(oldElement, newElement) {\n up.migrate.deprecated('up.element.replace()', 'Element#replaceWith()')\n return oldElement.replaceWith(newElement)\n}\n\n/*-\nReturns all descendant elements matching the given selector.\n\n@function up.element.all\n@param {Element} [parent=document]\n The parent element whose descendants to search.\n\n If omitted, all elements in the `document` will be searched.\n@param {string} selector\n The CSS selector to match.\n@return {List<Element>}\n A list of all elements matching the selector.\n\n Returns an empty list if there are no matches.\n@deprecated\n Use [`Document#querySelectorAll()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll) or\n [`Element#querySelectorAll()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll) instead\n*/\nup.element.all = function(...args) {\n up.migrate.deprecated('up.element.all()', 'Document#querySelectorAll() or Element#querySelectorAll()')\n const selector = args.pop()\n const root = args[0] || document\n return root.querySelectorAll(selector)\n}\n\n/*-\nAdds or removes the given class from the given element.\n\n@function up.element.toggleClass\n@param {Element} element\n The element for which to add or remove the class.\n@param {string} className\n The class which should be added or removed.\n@param {Boolean} [newPresent]\n Pass `true` to add the class to the element or `false` to remove it.\n\n If omitted, the class will be added if missing and removed if present.\n@deprecated\n Use [`Element#classList.toggle(className)`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList) instead.\n*/\nup.element.toggleClass = function(element, klass, newPresent) {\n up.migrate.deprecated('up.element.toggleClass()', 'element.classList.toggle()')\n const list = element.classList\n if (newPresent == null) { newPresent = !list.contains(klass) }\n if (newPresent) {\n return list.add(klass)\n } else {\n return list.remove(klass)\n }\n}\n\n/*-\nReturns a CSS selector that matches the given element as good as possible.\n\nAlias for `up.fragment.toTarget()`.\n\n@function up.element.toSelector\n@param {string|Element|jQuery} element\n The element for which to create a selector.\n@deprecated\n Use `up.fragment.toTarget()` instead.\n*/\nup.element.toSelector = function(...args) {\n up.migrate.deprecated('up.element.toSelector()', 'up.fragment.toTarget()')\n return up.fragment.toTarget(...args)\n}\n\n/*-\nReturns whether the given element is attached to the DOM tree.\n\nSee also `up.element.isDetached()`.\n\n@function up.element.isAttached\n@param {Element} element\n@return {boolean}\n@deprecated\n Use `element.isConnected` instead.\n*/\nup.element.isAttached = function(element) {\n up.migrate.deprecated('up.element.isAttached()', 'element.isConnected')\n return document.contains(element)\n}\n\n/*-\nReturns whether the given element has been removed from the DOM tree.\n\n@function up.element.isDetached\n@param {Element} element\n@return {boolean}\n@deprecated\n Use `!element.isConnected` instead.\n*/\nup.element.isDetached = function(element) {\n up.migrate.deprecated('up.element.isDetached()', '!element.isConnected')\n return !up.element.isAttached(element)\n}\n\n","class DeprecatedCannotCompile extends up.Error {\n get [Symbol.toStringTag]() { return 'up.CannotCompile' }\n}\n\nObject.defineProperty(up, 'CannotCompile', { get: function() {\n up.migrate.warn('The error up.CannotCompile is no longer thrown. Compiler errors now emit an \"error\" event on window, but no longer crash the render pass.')\n return DeprecatedCannotCompile\n} })\n","/*-\n@module up.event\n*/\n\nup.migrate.renamedPackage('bus', 'event')\n\n/*-\n[Emits an event](/api/up.emit) and returns whether no listener\nhas prevented the default action.\n\n### Example\n\n```javascript\nif (up.event.nobodyPrevents('disk:erase')) {\n Disk.erase()\n})\n```\n\n@function up.event.nobodyPrevents\n@param {string} eventType\n@param {Object} eventProps\n@return {boolean}\n whether no listener has prevented the default action\n@deprecated\n Use `!up.emit(type).defaultPrevented` instead.\n*/\nup.event.nobodyPrevents = function(...args) {\n up.migrate.deprecated('up.event.nobodyPrevents(type)', '!up.emit(type).defaultPrevented')\n const event = up.emit(...args)\n return !event.defaultPrevented\n}\n\n/*-\nListens to an event on `document` or a given element.\nThe event handler is called with the event target as a\n[jQuery collection](https://learn.jquery.com/using-jquery-core/jquery-object/).\n\nIf you're not using jQuery, use `up.on()` instead, which calls\nevent handlers with a native element.\n\n### Example\n\n```\nup.$on('click', 'a', function(event, $link) {\n console.log(\"Click on a link with destination %s\", $link.attr('href'))\n})\n```\n\n@function up.$on\n@param {Element|jQuery} [element=document]\n The element on which to register the event listener.\n\n If no element is given, the listener is registered on the `document`.\n@param {string} events\n A space-separated list of types names to bind to.\n@param {string} [selector]\n The selector of an element on which the event must be triggered.\n Omit the selector to listen to all events with that name, regardless\n of the event target.\n@param {boolean} [options.passive=false]\n Whether to register a [passive event listener](https://developers.google.com/web/updates/2016/06/passive-event-listeners).\n\n A passive event listener may not call `event.preventDefault()`.\n This in particular may improve the frame rate when registering\n `touchstart` and `touchmove` events.\n@param {Function(event, [element], [data])} listener\n The listener function that should be called.\n\n The function takes the event as the first argument and the observed element as the second argument.\n The element's [attached data](/learn/data) is passed as a third argument.\n@return {Function()}\n A function that unbinds the event listeners when called.\n@deprecated\n Use `up.on()` with a callback that wraps the given native element in a jQuery collection.\n*/\nup.$on = function(...definitionArgs) {\n up.migrate.warn('up.$on() has been deprecated. Instead use up.on() with a callback that wraps the given native element in a jQuery collection.')\n let callback = definitionArgs.pop()\n\n callback.upNativeCallback = function(event, element, data) {\n let $element = jQuery(element)\n callback.call($element, event, $element, data)\n }\n return up.on(...definitionArgs, callback.upNativeCallback)\n}\n\nup.$off = function(...definitionArgs) {\n up.migrate.deprecated('up.$off()', 'up.off()')\n let $callback = definitionArgs.pop()\n let nativeCallback = $callback.upNativeCallback\n\n if (!nativeCallback) {\n up.fail('The callback passed to up.$off() was never registered with up.$on()')\n }\n\n return up.off(...definitionArgs, nativeCallback)\n}\n","/*-\n@module up.form\n*/\n\nup.form.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'fields', 'fieldSelectors', { label: 'up.form.config' })\n up.migrate.renamedProperty(config, 'submitButtons', 'submitButtonSelectors', { label: 'up.form.config' })\n up.migrate.renamedProperty(config, 'validateTargets', 'groupSelectors', { label: 'up.form.config' })\n up.migrate.renamedProperty(config, 'observeDelay', 'watchInputDelay', { label: 'up.form.config' })\n up.migrate.renamedProperty(config, 'genericButtonSelectors', 'anyButtonSelectors', { label: 'up.form.config' })\n})\n\nup.migrate.migratedFormGroupSelectors = function() {\n return up.form.config.groupSelectors.map((originalSelector) => {\n let migratedSelector = originalSelector.replace(/:has\\((:origin|&)\\)$/, '')\n if (originalSelector !== migratedSelector) {\n up.migrate.warn('Selectors in up.form.config.groupSelectors must not contain \":has(:origin)\". The suffix is added automatically where required. Found in \"%s\".', originalSelector)\n }\n return migratedSelector\n })\n}\n\n\n// An old implementation allowed [up-switch] to be set on individual radio buttons\n// instead of on a container for the radio group. Each button got its own up.Switcher.\n// The old implementation also listened to `change`, which has a weird caveat for radio\n// buttons that happens to make individual Switchers work: It only fires when the radio\n// button gets checked, not when it gets unchecked.\n// The new implementation uses up.watch(), which only works for a group of radio buttons.\nup.migrate.watchForSwitch = function(root, callback) {\n if (root.matches('input[type=radio]')) {\n up.migrate.warn('Using [up-switch] on an individual radio button is deprecated (%o). Use [up-switch] on the container of a radio group instead.', root)\n return up.on(root, 'change', callback)\n }\n}\n\n/*-\nWatches form fields and runs a callback when a value changes.\n\nOnly fields with a `[name]` attribute can be watched.\n\n## Example\n\nThe following logs a message whenever the `<input>` changes:\n\n```html\n<input name=\"query\" up-observe=\"console.log('New value', value)\">\n```\n\n## Callback context\n\nThe script given to `[up-observe]` runs with the following context:\n\n| Name | Type | Description |\n| -------- | --------- | ------------------------------------- |\n| `this` | `Element` | The changed form field |\n| `name` | `string` | The `[name]` of the changed field |\n| `value` | `string` | The new value of the changed field |\n\n## Watching multiple fields\n\nYou can set `[up-observe]` on any element to observe all contained fields.\nThe `name` argument contains the name of the field that was changed.\n\n@selector [up-observe]\n@param up-observe\n The code to run when any field's value changes.\n@deprecated\n Use `[up-watch]` instead.\n*/\nup.migrate.renamedAttribute('up-observe', 'up-watch')\n\n/*-\nMarks this element as a from group, which (usually) contains a label, input and error message.\n\nYou are not required to use form groups to [submit forms through Unpoly](/learn/submitting-forms).\nHowever, structuring your form into groups will help Unpoly to make smaller changes to the DOM when\nworking with complex form. For instance, when [validating](/api/up-validate) a field,\nUnpoly will re-render the [closest](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest)\nform group around that field.\n\nBy default Unpoly will also consider a `<fieldset>` or `<label>` around a field to be a form group.\nYou can configure this in `up.form.config.groupSelectors`.\n\n@selector [up-fieldset]\n@deprecated\n Use `[up-form-group]` instead.\n*/\n\nup.migrate.renamedAttribute('up-fieldset', 'up-form-group')\n\nup.migrate.renamedAttribute('up-delay', 'up-watch-delay', { scope: '[up-autosubmit]' })\n\nup.migrate.renamedAttribute('up-delay', 'up-watch-delay', { scope: '[up-watch]' })\n\n/*-\nObserves form fields and runs a callback when a value changes.\n\n## Example\n\nThe following would print to the console whenever an input field changes:\n\n```js\nup.observe('input.query', function(value) {\n console.log('Query is now %o', value)\n})\n```\n\n@function up.observe\n@param {string|Element|Array<Element>|jQuery} elements\n The form fields that will be observed.\n\n You can pass one or more fields, a `<form>` or any container that contains form fields.\n The callback will be run if any of the given fields change.\n@param {boolean} [options.batch=false]\n If set to `true`, the `onChange` callback will receive multiple\n detected changes in a single diff object as its argument.\n@param {number} [options.delay=up.form.config.observeDelay]\n The number of milliseconds to wait before executing the callback\n after the input value changes. Use this to limit how often the callback\n will be invoked for a fast typist.\n@param {Function(value, name): string} onChange\n The callback to run when the field's value changes.\n\n If given as a function, it receives two arguments (`value`, `name`).\n `value` is a string with the new field value and `name` is the name\n of the form field that changed. If given as a string, it will be evaled as\n JavaScript code in a context where (`value`, `name`) are set.\n\n A long-running callback function may return a promise that settles when\n the callback completes. In this case the callback will not be called again while\n it is already running.\n@return {Function()}\n A destructor function that removes the observe watch when called.\n@deprecated\n Use `up.watch()` instead.\n*/\nup.observe = function(...args) {\n up.migrate.deprecated('up.observe()', 'up.watch()')\n\n if (up.util.isList(args[0]) && args[0].length > 1) {\n let list = args.shift()\n up.migrate.warn('Calling up.observe() with a list of multiple elements is no longer supported by up.watch()')\n let unwatchFns = up.util.map(list, (firstArg) => up.watch(firstArg, ...args))\n return up.util.sequence(unwatchFns)\n }\n\n return up.watch(...args)\n}\n","const u = up.util\n\n/*-\n@module up.fragment\n*/\n\nup.migrate.renamedPackage('flow', 'fragment')\nup.migrate.renamedPackage('dom', 'fragment')\n\nup.fragment.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'fallbacks', 'mainTargets', { label: 'up.fragment.config' })\n})\n\n// Names the call site of a render pass in a warning about its options.\nconst renderOptionsSource = (options) => ({ label: 'render options', detail: options.origin || options.url || options.target })\n\nup.migrate.handleResponseDocOptions = (docOptions) => up.migrate.fixKey(docOptions, 'html', 'document', renderOptionsSource(docOptions))\n\nup.fragment.config.patch(function(config) {\n let matchAroundOriginDeprecated = () => up.migrate.deprecated('up.fragment.config.matchAroundOrigin', 'up.fragment.config.match')\n Object.defineProperty(config, 'matchAroundOrigin', {\n configurable: true,\n get: function() {\n matchAroundOriginDeprecated()\n return this.match === 'region'\n },\n set: function(value) {\n matchAroundOriginDeprecated()\n this.match = value ? 'region' : 'first'\n }\n })\n})\n\n/*-\nReplaces elements on the current page with corresponding elements\nfrom a new page fetched from the server.\n\n@function up.replace\n@param {string|Element|jQuery} target\n The CSS selector to update. You can also pass a DOM element or jQuery element\n here, in which case a selector will be inferred from the element's class and ID.\n@param {string} url\n The URL to fetch from the server.\n@param {Object} [options]\n See `options` for `up.render()`.\n@return {Promise}\n A promise that fulfills when the page has been updated.\n@deprecated\n Use `up.render()` or `up.navigate()` instead.\n*/\nup.replace = function(target, url, options) {\n up.migrate.deprecated('up.replace(target, url)', 'up.navigate(target, { url })')\n return up.navigate({ ...options, target, url })\n}\n\n/*-\nUpdates a selector on the current page with the\nsame selector from the given HTML string.\n\n### Example\n\nLet's say your current HTML looks like this:\n\n <div class=\"one\">old one</div>\n <div class=\"two\">old two</div>\n\nWe now replace the second `<div>`, using an HTML string\nas the source:\n\n html = '<div class=\"one\">new one</div>' +\n '<div class=\"two\">new two</div>'\n\n up.extract('.two', html)\n\nUnpoly looks for the selector `.two` in the strings and updates its\ncontents in the current page. The current page now looks like this:\n\n <div class=\"one\">old one</div>\n <div class=\"two\">new two</div>\n\nNote how only `.two` has changed. The update for `.one` was\ndiscarded, since it didn't match the selector.\n\n@function up.extract\n@param {string|Element|jQuery} target\n@param {string} html\n@param {Object} [options]\n See options for [`up.render()`](/api/up.render).\n@return {Promise}\n A promise that will be fulfilled when the selector was updated.\n@deprecated\n Use `up.render()` or `up.navigate()` instead.\n*/\nup.extract = function(target, document, options) {\n up.migrate.deprecated('up.extract(target, document)', 'up.navigate(target, { document })')\n return up.navigate({ ...options, target, document })\n}\n\n/*-\nReturns the first element matching the given selector, but\nignores elements that are being [destroyed](/api/up.destroy) or that are being\nremoved by a [transition](/api/up.morph).\n\nReturns `undefined` if no element matches these conditions.\n\n@function up.fragment.first\n@param {Element|jQuery} [root=document]\n The root element for the search. Only the root's descendants will be matched.\n\n May be omitted to search through all elements in the current `document`.\n@param {string} selector\n The selector to match\n@param {string} [options.layer='current']\n The layer in which to find the element.\n\n See [[targeting-other-layers]].\n@param {string|Element|jQuery} [options.origin]\n A second element or selector that can be referenced as `:origin` in the first selector.\n@return {Element|undefined}\n The first element that is not being destroyed,\n or `undefined` if no such element was found.\n@deprecated\n Use `up.fragment.get()` instead.\n*/\nup.fragment.first = function(...args) {\n up.migrate.deprecated('up.fragment.first()', 'up.fragment.get()')\n return up.fragment.get(...args)\n}\n\nup.first = up.fragment.first\n\nup.migrate.preprocessRenderOptions = function(options) {\n // Rewrite deprecated { history: URLString } option\n if (u.isString(options.history) && (options.history !== 'auto')) {\n up.migrate.warn(\"Passing a URL as { history } option is deprecated. Pass it as { location } instead.\")\n options.location = options.history\n // Also the URL in { history } is truthy, keeping a value in there would also inherit to failOptions,\n // where it would be expanded to { failLocation }.\n options.history = 'auto'\n }\n\n // Rewrite deprecated { target: jQuery } option\n // Rewrite deprecated { origin: jQuery } option\n for (let prop of ['target', 'origin']) {\n if (u.isJQuery(options[prop])) {\n up.migrate.warn('Passing a jQuery collection as { %s } is deprecated. Pass it as a native element instead.', prop)\n options[prop] = up.element.get(options[prop])\n }\n }\n\n // Rewrite deprecated { fail: 'auto' } option\n if (options.fail === 'auto') {\n up.migrate.warn(\"The option { fail: 'auto' } is deprecated. Omit the option instead.\")\n delete options.fail\n }\n\n let solo = u.pluckKey(options, 'solo')\n if (u.isString(solo)) {\n // Old { solo } option did not accept a string, but some users were passing a string as a truthy value.\n // This would break the { abort } option, where a string is parsed a CSS selector.\n up.migrate.warn(\"The up.render() option { solo } has been replaced with { abort } and { abort } no longer accepts a URL pattern. Check if you can use { abort: 'target'} or use up.network.abort(pattern) instead.\")\n options.abort = (options) => up.network.abort(solo, options)\n } else if (u.isFunction(solo)) {\n up.migrate.warn(\"The up.render() option { solo } has been replaced with { abort } and { abort } no longer accepts a Function(up.Request): boolean. Check if you can use { abort: 'target'} or use up.network.abort(fn) instead.\")\n options.abort = (options) => { up.network.abort(solo, options) }\n } else if (solo === true) {\n up.migrate.deprecated('Option { solo: true }', \"{ abort: 'all' }\")\n options.abort = 'all'\n } else if (solo === false) {\n up.migrate.deprecated('Option { solo: false }', \"{ abort: false }\")\n up.migrate.warn('Unpoly 3+ only aborts requests targeting the same fragment. Setting { solo: false } may no longer be necessary.')\n options.abort = false\n }\n\n up.migrate.fixKey(options, 'failOnFinished', 'onFailFinished', renderOptionsSource(options))\n up.migrate.fixKey(options, 'badResponseTime', 'lateDelay', renderOptionsSource(options))\n\n // Rewrite deprecated { reveal } option (it had multiple variants)\n if (u.isString(options.reveal)) {\n up.migrate.deprecated(`Option { reveal: '${options.reveal}' }`, `{ scroll: '${options.reveal}' }`)\n options.scroll = options.reveal\n } else if (options.reveal === true) {\n up.migrate.deprecated('Option { reveal: true }', \"{ scroll: 'target' }\")\n options.scroll = 'target'\n } else if (options.reveal === false) {\n up.migrate.deprecated('Option { reveal: false }', \"{ scroll: false }\")\n options.scroll = false\n }\n\n // Rewrite deprecated { resetScroll } option\n if (options.resetScroll === true) {\n up.migrate.deprecated('Option { resetScroll: true }', \"{ scroll: 'top' }\")\n options.scroll = 'top'\n } if (options.resetScroll === false) {\n up.migrate.deprecated('Option { resetScroll: false }', \"{ scroll: false }\")\n options.scroll = false\n }\n\n // Rewrite deprecated { restoreScroll } option\n if (options.restoreScroll === true) {\n up.migrate.deprecated('Option { restoreScroll: true }', \"{ scroll: 'restore' }\")\n options.scroll = 'restore'\n } if (options.restoreScroll === false) {\n up.migrate.deprecated('Option { restoreScroll: false }', \"{ scroll: false }\")\n options.scroll = false\n }\n\n // Rewrite deprecated { scroll } option values\n if (options.scroll === 'reset') {\n up.migrate.deprecated(\"Option { scroll: 'reset' }\", \"{ scroll: 'top' }\")\n options.scroll = 'top'\n }\n\n}\n\nup.migrate.postprocessReloadOptions = function(options) {\n let lastModified = options.headers?.['If-Modified-Since']\n let legacyHeader\n if (lastModified) {\n legacyHeader = Math.floor(new Date(lastModified) * 0.001).toString()\n } else {\n legacyHeader = '0'\n }\n\n options.headers[up.protocol.headerize('reloadFromTime')] = legacyHeader\n}\n\n// Modern versions only support \":origin\". This legacy implementation\n// also supports the old shorthand \"&\".\nup.migrate.resolveOrigin = function(target, { origin } = {}) {\n // We skip over attribute selector values, which may contain an ampersand, e.g. 'a[href=\"/notes?page=2&order=created\"]'\n let pattern = /\"[^\"]*\"|'[^']*'|&|:origin\\b/g\n\n return target.replace(pattern, function(variant) {\n if (variant === ':origin' || variant === '&') {\n if (variant === '&') {\n // We only explain the changed :origin of form submissions when the origin is a form element.\n // Validation origins also get the hint, which we accept as noise.\n let formHint = origin?.form ? \"A form submission's :origin is now the button or changed field, not the form. To target the form, use form:has(:origin). \" : ''\n up.migrate.warn(\"Origin shorthand '&' has been deprecated. Use :origin instead. \" + formHint + \"Found in %s (origin %o).\", target, origin)\n }\n if (origin) {\n return up.fragment.toTarget(origin)\n } else {\n up.fail('Missing { origin } element to resolve \"%s\" reference (found in %s)', variant, target)\n }\n } else {\n // Skip over quoted attribute selector values, which may contain an ampersand\n return variant\n }\n })\n}\n\nup.fragment.config.patch(function() {\n Object.defineProperty(this, 'runScripts', {\n configurable: true,\n get() {\n up.migrate.deprecated('up.fragment.config.runScripts', 'up.script.config.scriptElementPolicy = \"auto\"')\n switch(up.script.config.scriptElementPolicy) {\n case 'auto': return true\n case 'pass': return true\n case 'block': return false\n case 'nonce': return (script) => !!script.nonce\n }\n },\n set(value) {\n if (value === true) {\n up.migrate.deprecated('up.fragment.config.runScripts = true', 'up.script.config.scriptElementPolicy = \"auto\"')\n up.script.config.scriptElementPolicy = 'auto'\n } else if (value === false) {\n up.migrate.deprecated('up.fragment.config.runScripts = false', 'up.script.config.scriptElementPolicy = \"block\"')\n up.script.config.scriptElementPolicy = 'block'\n } else if (u.isFunction(value)) {\n up.migrate.warn('up.fragment.config.runScripts has been replaced by up.script.config.scriptElementPolicy, but no longer supports a function value.')\n up.script.config.scriptElementPolicy = 'block'\n }\n }\n })\n})\n\n// up.compiler('[up-keep]:not([up-keep=true]):not([up-keep=\"\"])', function(element) {\nup.compiler('[up-keep]', function(element) {\n let selector = up.element.booleanOrStringAttr(element, 'up-keep')\n if (u.isString(selector) && /[.[#]/.test(selector)) {\n up.migrate.warn('The [up-keep] attribute no longer supports a selector value (found in %o). Elements will be matched by their derived target. You may prevent keeping with [up-on-keep=\"if(condition) event.preventDefault()\"].', element)\n // The best we can do here is prevent matching of the old and new element if the new element\n // does not match the selector.\n element.addEventListener('up:fragment:keep', function(event) {\n if (event.target === element && !event.newFragment.matches(selector)) {\n event.preventDefault()\n }\n })\n element.setAttribute('up-keep', '')\n }\n})\n","/*-\n@module up.framework\n*/\n\n// The up:app:booted event has never been public API, but people have been using it as it was visible in the log.\nup.migrate.renamedEvent('up:app:booted', 'up:framework:booted')\n\nif (document.querySelector('script[up-boot=manual]')) {\n // We cannot make any migration changes here, because this line is evaled too late.\n // unpoly.js has already tested whether a manual boot is required.\n up.migrate.warn('The [up-boot=\"manual\"] attribute must be set on the <html> element')\n}\n","/*-\n@module up.history\n*/\n\nup.history.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'popTargets', 'restoreTargets', { label: 'up.history.config' })\n})\n\n/*-\nReturns a normalized URL for the current history entry.\n\n@function up.history.url\n@return {string}\n@deprecated Use the `up.history.location` property instead.\n*/\nup.history.url = function() {\n up.migrate.deprecated('up.history.url()', 'up.history.location')\n return up.history.location\n}\n\nup.migrate.renamedEvent('up:history:push', 'up:location:changed')\nup.migrate.renamedEvent('up:history:pushed', 'up:location:changed')\nup.migrate.renamedEvent('up:history:restore', 'up:location:changed')\nup.migrate.renamedEvent('up:history:restored', 'up:location:changed')\n// There was never an up:history:replace (present tense) event\nup.migrate.renamedEvent('up:history:replaced', 'up:location:changed')\n\nup.migrate.prepareLocationChangedEvent = function(event) {\n up.migrate.renamedProperty(event, 'url', 'location', { warning: 'Property event.url of up:location:changed has been renamed to event.location' })\n // up.migrate.removedProperty(event, 'reason')\n}\n\n\nup.history.config.patch(function() {\n Object.defineProperty(this, 'updateMetaTags', {\n configurable: true,\n get() {\n return up.history.isEnabled('metaTags')\n },\n set(value) {\n // Apps used to set { updateMetaTags: true } to silence an old warning.\n // Since that is the default, we only ask to remove the line.\n if (value) {\n up.migrate.warn('up.history.config.updateMetaTags has been removed. Meta tags are updated by default.')\n return\n }\n\n // (1) This changes up.history.config.enabled once.\n // (2) When the app sets up.history.config.enabled afterwards, meta tags are updated again\n // if the new value includes them. We accept this, and point to the array in the deprecation.\n up.migrate.deprecated('up.history.config.updateMetaTags = false', \"an array of aspects without 'metaTags' in up.history.config.enabled\")\n let { enabled } = this\n if (enabled === true) enabled = ['location', 'title', 'lang']\n if (up.util.isArray(enabled)) this.enabled = enabled.filter((aspect) => aspect !== 'metaTags')\n }\n })\n})\n\n// up.compiler('[up-hungry]')\n\nup.migrate.warnOfHungryMetaTags = function(metaTags) {\n // Meta tags are not updated automatically when up.history.config.enabled excludes them.\n if (!up.history.isEnabled('metaTags')) return\n\n let fullHungrySelector = up.radio.config.selector('hungrySelectors')\n let hungryMetaTags = up.util.filter(metaTags, (meta) => meta.matches(fullHungrySelector))\n if (hungryMetaTags.length) {\n up.migrate.warn('Meta tags in the <head> are now updated automatically. Remove the [up-hungry] attribute from %o.', hungryMetaTags)\n }\n}\n","/*-\n@module up.layer\n*/\n\n// Renamed keys and values that may be passed as layer options or set in a layer config object.\nfunction fixRenamedLayerKeys(object, source) {\n up.migrate.fixKey(object, 'closable', 'dismissible', source)\n up.migrate.fixKey(object, 'dismissable', 'dismissible', source)\n up.migrate.fixKey(object, 'closeLabel', 'dismissLabel', source)\n up.migrate.fixKey(object, 'dismissAriaLabel', 'dismissARIALabel', source)\n up.migrate.fixKey(object, 'historyVisible', 'history', source)\n splitPosition(object)\n}\n\n// Popups used to combine their position and alignment in a single value like 'bottom-right'.\n// We split it before the layer is built, so the layer and its element see the modern { position, align }.\nfunction splitPosition(object) {\n if (!up.util.isString(object.position)) return\n\n const [position, align] = object.position.split('-')\n\n if (align) {\n up.migrate.warn('The position value %o is deprecated. Use %o instead.', object.position, { position, align })\n object.position = position\n object.align = align\n }\n}\n\nup.migrate.handleLayerOptions = function(options) {\n // Only options can have a { flavor }, since a config object belongs to a mode.\n // We name the opening call site in warnings.\n const source = { label: 'layer options', detail: options.origin || options.url }\n up.migrate.fixKey(options, 'flavor', 'mode', source)\n fixRenamedLayerKeys(options, source)\n\n for (let dimensionKey of ['width', 'maxWidth', 'height']) {\n if (options[dimensionKey]) {\n up.migrate.warn(`Layer option { ${dimensionKey} } has been removed. Use { size } or { class } instead.`)\n }\n }\n\n if (options.sticky) {\n up.migrate.warn('Layer option { sticky } has been removed. Give links an [up-peel=false] attribute to prevent layer dismissal on click.')\n }\n\n if (options.template) {\n up.migrate.warn('Layer option { template } has been removed. Use { class } or modify the layer HTML on up:layer:open.')\n }\n\n if (options.layer === 'page') {\n up.migrate.warn(\"Option { layer: 'page' } has been renamed to { layer: 'root' }.\")\n options.layer = 'root'\n }\n\n if ((options.layer === 'modal') || (options.layer === 'popup')) {\n up.migrate.warn(`Option { layer: '${options.layer}' } has been removed. Did you mean { layer: 'overlay' }?`)\n options.layer = 'overlay'\n }\n\n if (up.util.isMissing(options.layer) && up.util.isGiven(options.mode)) {\n up.migrate.warn('Opening a layer with only a { mode } option is deprecated. Pass { layer: \"new\", mode } instead.')\n options.layer = 'new'\n }\n\n}\n\n/*-\nWhen this element is clicked, closes a currently open overlay.\n\nDoes nothing if no overlay is currently open.\n\nTo make a link that closes the current overlay, but follows to\na fallback destination on the root layer:\n\n <a href=\"/fallback\" up-close>Okay</a>\n\n@selector [up-close]\n@deprecated\n Use `[up-dismiss]` instead.\n*/\nup.migrate.registerLayerCloser = (layer) => // <a up-close>Close</a> (legacy close attribute)\nlayer.registerAttrCloser('up-close', (value, closeOptions) => {\n up.migrate.deprecated('[up-close]', '[up-dismiss]')\n layer.dismiss(value, closeOptions)\n})\n\n// Apps usually configure layers before Unpoly boots, so we check all mode configs once at boot.\nup.migrate.fixLayerConfigs = function() {\n for (let [mode, modeConfig] of Object.entries(up.layer.config)) {\n if (up.util.isOptions(modeConfig)) {\n fixRenamedLayerKeys(modeConfig, { label: `up.layer.config.${mode}` })\n }\n }\n}\n\nup.on('up:framework:boot', up.migrate.fixLayerConfigs)\n\n// The app may still set a renamed key after booting, so we also check the mode configs for every new layer.\n// Since the warning names the config object, it is only printed once per key and config object.\nup.migrate.handleLayerConfig = function(modeConfig) {\n let [mode] = Object.entries(up.layer.config).find(([_mode, value]) => value === modeConfig)\n fixRenamedLayerKeys(modeConfig, { label: `up.layer.config.${mode}` })\n}\n\nObject.defineProperty(up.Layer.prototype, 'historyVisible', { get: function() {\n up.migrate.deprecated('up.Layer#historyVisible', 'up.Layer#history')\n return this.history\n} })\n\n","/*-\n@module up.link\n*/\n\nconst followSelectorFn = up.link.config.selectorFn('followSelectors')\nconst submitSelectorFn = up.form.config.selectorFn('submitSelectors')\nconst preloadSelectorFn = up.link.config.selectorFn('preloadSelectors')\n\n// Links and forms can open overlays, so old layer attributes are translated on both.\nconst layerOpenerSelectorFn = () => [followSelectorFn(), submitSelectorFn()].join()\n\nup.migrate.renamedAttribute('up-flavor', 'up-mode', { scope: layerOpenerSelectorFn })\nup.migrate.renamedAttribute('up-closable', 'up-dismissible', { scope: layerOpenerSelectorFn })\nup.migrate.renamedAttribute('up-dismissable', 'up-dismissible', { scope: layerOpenerSelectorFn })\nup.migrate.removedAttribute('up-width', { scope: layerOpenerSelectorFn, replacement: '[up-size] or [up-class]' })\nup.migrate.removedAttribute('up-height', { scope: layerOpenerSelectorFn, replacement: '[up-size] or [up-class]' })\nup.migrate.renamedAttribute('up-history-visible', 'up-history', { scope: layerOpenerSelectorFn })\nup.migrate.renamedAttribute('up-clear-cache', 'up-expire-cache', { scope: layerOpenerSelectorFn })\nup.migrate.renamedAttribute('up-bad-response-time', 'up-late-delay')\n\nup.migrate.transformAttribute('up-solo', function(link, solo) {\n switch (solo) {\n case '':\n up.migrate.warn('Attribute [up-solo] has been replaced with [up-abort=\"all\"] (found in %o)', link)\n link.setAttribute('up-abort', 'all')\n break\n case 'true':\n up.migrate.warn('Attribute [up-solo=\"true\"] has been replaced with [up-abort=\"all\"] (found in %o)', link)\n link.setAttribute('up-abort', 'all')\n break\n case 'false':\n up.migrate.warn('Attribute [up-solo=\"false\"] has been replaced with [up-abort=\"false\"] (found in %o)', link)\n up.migrate.warn('Unpoly 3+ only aborts requests targeting the same fragment. Setting [up-solo=\"false\"] may no longer be necessary.')\n link.setAttribute('up-abort', 'false')\n break\n default:\n up.migrate.warn('Attribute [up-solo] has been renamed to [up-abort] and [up-abort] no longer accepts a URL pattern (found in %o). Check if you can use [up-abort=\"target\"] instead.', link)\n link.setAttribute('up-abort', 'target')\n }\n})\n\nup.migrate.transformAttribute('up-reveal', function(link, reveal) {\n switch (reveal) {\n case '':\n up.migrate.warn('Attribute [up-reveal] has been replaced with [up-scroll=\"target\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'target')\n break\n case 'true':\n up.migrate.warn('Attribute [up-reveal=\"true\"] has been replaced with [up-scroll=\"target\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'target')\n break\n case 'false':\n up.migrate.warn('Attribute [up-reveal=\"false\"] has been replaced with [up-scroll=\"false\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'false')\n break\n default:\n up.migrate.warn('Attribute [up-reveal=\"%s\"] has been replaced with [up-scroll=\"%s\"] (found in %o)', reveal, reveal, link)\n link.setAttribute('up-scroll', reveal)\n }\n})\n\nup.migrate.transformAttribute('up-reset-scroll', function(link, resetScroll) {\n switch (resetScroll) {\n case '':\n up.migrate.warn('Attribute [up-reset-scroll] has been replaced with [up-scroll=\"top\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'top')\n break\n case 'true':\n up.migrate.warn('Attribute [up-reset-scroll=\"true\"] has been replaced with [up-scroll=\"top\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'top')\n break\n case 'false':\n up.migrate.warn('Attribute [up-reset-scroll=\"false\"] has been replaced with [up-scroll=\"false\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'false')\n break\n }\n})\n\nup.migrate.transformAttribute('up-restore-scroll', function(link, restoreScroll) {\n switch (restoreScroll) {\n case '':\n up.migrate.warn('Attribute [up-restore-scroll] has been replaced with [up-scroll=\"restore\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'restore')\n break\n case 'true':\n up.migrate.warn('Attribute [up-restore-scroll=\"true\"] has been replaced with [up-scroll=\"restore\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'restore')\n break\n case 'false':\n up.migrate.warn('Attribute [up-restore-scroll=\"false\"] has been replaced with [up-scroll=\"false\"] (found in %o)', link)\n link.setAttribute('up-scroll', 'false')\n break\n }\n})\n\n/*-\n[Follows](/api/up.follow) this link as fast as possible.\n\nThis is done by:\n\n- [Following the link](/api/up-follow) without a full page load\n- [Preloading the link's destination URL](/learn/preloading)\n- [Triggering the link on `mousedown`](/api/up-instant) instead of on `click`\n\n## Example\n\nUse `[up-dash]` like this:\n\n <a href=\"/users\" up-dash=\".main\">User list</a>\n\nThis is shorthand for:\n\n <a href=\"/users\" up-target=\".main\" up-instant up-preload>User list</a>\n\n@selector [up-dash]\n@param [up-dash='body']\n The CSS selector to replace\n\n Inside the CSS selector you may refer to this link as `:origin`.\n@deprecated\n To accelerate all links use `up.link.config.instantSelectors` and `up.link.config.preloadSelectors`.\n*/\nup.migrate.targetMacro('up-dash', { 'up-preload': '', 'up-instant': '' }, 'up.link.config.instantSelectors and up.link.config.preloadSelectors')\n\nup.migrate.renamedAttribute('up-delay', 'up-preload-delay', { scope: preloadSelectorFn })\n\nlet preloadEnabledRef\nup.link.config.patch(function(config) {\n preloadEnabledRef = up.migrate.removedProperty(config, 'preloadEnabled', { value: true, warning: 'The configuration up.link.config.preloadEnabled has been removed. To disable preloading, prevent up:link:preload instead.' })\n})\n\nup.on('up:link:preload', function(event) {\n if (!preloadEnabledRef[0]) {\n event.preventDefault()\n }\n})\n\n/*-\nMakes any element [behave like a hyperlink](/learn/faux-interactive-elements).\n\n## Example\n\nThe following `<span>` element will [navigate](/api/up-follow) to `/details` when clicked:\n\n```html\n<span up-href=\"/details\">Read more</span>\n```\n\n@selector [up-href]\n@param [up-href]\n The URL to load when activated.\n@params-note\n All modifying attributes for `[up-follow]` may also be used.\n@deprecated\n Following an element with only an `[up-href]` attribute is deprecated.\n Also set an `[up-follow]` attribute on the same element.\n*/\n\nconst LEGACY_UP_HREF_FOLLOW_SELECTOR = '[up-href]:not([up-follow], [up-poll], [up-defer], [up-expand])'\n\n// We set [up-follow] instead of adding our selector to up.link.config, so core and unpoly-migrate\n// agree which elements are followable.\n//\n// The priority runs this macro before [up-back] (-100). That macro sets an [up-href] that the app never wrote,\n// and only adds [up-follow] when the link isn't already followable, e.g. through [up-target].\n// We also run before [up-clickable] (-200), which needs to see the [up-follow] attribute.\nup.macro(LEGACY_UP_HREF_FOLLOW_SELECTOR, { priority: -50 }, function(element) {\n // A link like <a up-href up-target> is already followable through another attribute.\n if (up.link.isFollowable(element)) return\n\n up.migrate.warn('Following links with only [up-href] has been deprecated. You must now also set an [up-follow] on the same link (found in %o).', element)\n element.setAttribute('up-follow', '')\n})\n\n// We used to follow links with just an [up-instant] attribute.\n// Now that [up-instant] is also a way to make generic clickable elements \"act on press\"\n// we require users to set an [up-follow] attribute.\n// We don't need to match [up-href] elements, since the macro above gives them [up-follow].\nconst LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR = 'a[href][up-instant]'\n\nup.link.config.patch(function(config) {\n config.followSelectors.push(LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR)\n})\n\n// Only warn about links that the legacy selector alone makes followable.\nfunction isFollowableWithoutLegacyInstant(element) {\n let { followSelectors, noFollowSelectors } = up.link.config\n let modernFollowSelectors = followSelectors.filter((selector) => selector !== LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR)\n return element.matches(up.element.unionSelector(modernFollowSelectors, noFollowSelectors))\n}\n\nup.compiler(LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR, function(element) {\n if (up.link.isFollowable(element) && !isFollowableWithoutLegacyInstant(element)) {\n up.migrate.warn('Following links with only [up-instant] has been deprecated. You must now also set an [up-follow] on the same link (found in %o).', element)\n }\n})\n","const u = up.util\n\n/*-\n@module up.migrate\n@internal\n*/\nup.migrate = (function() {\n\n const config = new up.Config('up.migrate.config', () => ({\n logLevel: 'error'\n }))\n\n // Pass a { label } like 'up.form.config' to name the object in the warning.\n // Without a label we print the object itself.\n function renamedProperty(object, oldKey, newKey, { label, warning } = {}) {\n // We memoize the warning to prevent infinite recursion. The `found in %o` will access the getter\n // to print the object, which will call the warning, which will access the getter, etc.\n const doWarn = u.memoize(function() {\n if (warning) {\n warn(warning)\n } else if (label) {\n warn('Property %s.%s has been renamed to %s.%s', label, oldKey, label, newKey)\n } else {\n warn('Property { %s } has been renamed to { %s } (found in %o)', oldKey, newKey, object)\n }\n })\n\n Object.defineProperty(object, oldKey, {\n configurable: true,\n get() {\n doWarn()\n return this[newKey]\n },\n set(newValue) {\n doWarn()\n this[newKey] = newValue\n }\n })\n }\n\n // Pass a { label } like 'up.form.config' to name the object in the warning.\n // Without a label we print the object itself.\n //\n // Pass a { value } to set an initial value without a warning.\n // It is restored when up.framework.reset() runs the config patch again.\n function removedProperty(object, key, { label, warning, value } = {}) {\n // We memoize the warning to prevent infinite recursion. The `found in %o` will access the getter\n // to print the object, which will call the warning, which will access the getter, etc.\n const doWarn = u.memoize(function() {\n if (warning) {\n warn(warning)\n } else if (label) {\n warn('Property %s.%s has been removed without replacement', label, key)\n } else {\n warn('Property { %s } has been removed without replacement (found in %o)', key, object)\n }\n })\n\n // We only keep an existing data value. When up.framework.reset() runs a config patch again,\n // reading object[key] would call the getter from the previous definition, which warns and keeps the old value.\n // We return the reference so a polyfill can honor a value that the app sets.\n let valueRef = [value ?? Object.getOwnPropertyDescriptor(object, key)?.value]\n\n Object.defineProperty(object, key, {\n configurable: true,\n // The key usually exists as an enumerable data property, and redefining it would keep it enumerable.\n // Then any script that enumerates the object would trigger the warning, e.g. when we print\n // the object with %o in another warning, or an analytics script walking window.up.\n enumerable: false,\n get() {\n doWarn()\n return valueRef[0]\n },\n set(newValue) {\n doWarn()\n valueRef[0] = newValue\n }\n })\n\n return valueRef\n }\n\n function transformAttribute(oldAttr, ...args) {\n let transformer = u.extractCallback(args)\n let { scope } = u.extractOptions(args)\n\n // Scope may be a selector string OR a function\n let selector = scope || `[${oldAttr}]`\n up.macro(selector, { priority: -1000 }, function(element) {\n // If scope is given as a function it does not select for the attribute\n if (element.hasAttribute(oldAttr)) {\n let value = element.getAttribute(oldAttr)\n transformer(element, value)\n }\n })\n }\n\n function renamedAttribute(oldAttr, newAttr, { scope, mapValue } = {}) {\n transformAttribute(oldAttr, { scope }, function(element, value) {\n warn('Attribute [%s] has been renamed to [%s] (found in %o)', oldAttr, newAttr, element)\n if (mapValue) {\n value = u.evalOption(mapValue, value)\n }\n element.setAttribute(newAttr, value)\n })\n }\n\n function removedAttribute(oldAttr, { scope, replacement } = {}) {\n transformAttribute(oldAttr, { scope }, function(element, _value) {\n if (replacement) {\n warn('Attribute [%s] has been removed (found in %o). Use %s instead.', oldAttr, element, replacement)\n } else {\n warn('Attribute [%s] has been removed without replacement (found in %o)', oldAttr, element)\n }\n })\n }\n\n // Pass a { label } like 'up.layer.config.modal' or 'render options' to name the object in the warning.\n // Without a label we print the object itself, which is hard to read for large or circular objects.\n // A labeled warning also has the same text for every object, so we only print it once.\n //\n // Pass a { detail } like an origin element or URL to name the call site, e.g. 'render options for <a href=\"/foo\">'.\n // Since warnings are deduplicated by their text, this prints the warning once per call site.\n function fixKey(object, oldKey, newKey, { label, detail } = {}) {\n if (u.isDefined(object[oldKey])) {\n if (label && detail) {\n warn('Property { %s } has been renamed to { %s } (found in %s for %o)', oldKey, newKey, label, detail)\n } else if (label) {\n warn('Property { %s } has been renamed to { %s } (found in %s)', oldKey, newKey, label)\n } else {\n warn('Property { %s } has been renamed to { %s } (found in %o)', oldKey, newKey, object)\n }\n u.renameKey(object, oldKey, newKey)\n }\n }\n\n // Maps old event type to new event type\n const renamedEvents = {}\n\n function renamedEvent(oldType, newType) {\n renamedEvents[oldType] = newType\n }\n\n // Maps old event type to new event type\n const removedEvents = {}\n\n function removedEvent(type, replacementExpression = null) {\n removedEvents[type] = replacementExpression\n }\n\n function fixEventType(eventType) {\n let newEventType = renamedEvents[eventType]\n if (newEventType) {\n warn(`Event ${eventType} has been renamed to ${newEventType}`)\n return newEventType\n } else if (eventType in removedEvents) {\n let message = `Event ${eventType} has been removed`\n let replacementExpression = removedEvents[eventType]\n if (replacementExpression) {\n message += `. Use ${replacementExpression} instead.`\n }\n warn(message)\n return eventType\n } else {\n return eventType\n }\n }\n\n function fixEventTypes(eventTypes) {\n // Remove duplicates as e.g. up:history:pushed and up:history:replaced\n // both map to up:location:changed.\n return u.uniq(u.map(eventTypes, fixEventType))\n }\n\n function renamedPackage(oldName, newName) {\n Object.defineProperty(up, oldName, {\n configurable: true,\n get() {\n warn(`up.${oldName} has been renamed to up.${newName}`)\n return up[newName]\n }\n })\n }\n\n let warnedMessages = {}\n\n function reset() {\n warnedMessages = {}\n }\n\n const warn = up.mockable((message, ...args) => {\n const formattedMessage = u.sprintf(message, ...args)\n const logLevel = config.logLevel\n if (logLevel !== 'none' && !warnedMessages[formattedMessage]) {\n warnedMessages[formattedMessage] = true\n up.log[logLevel]('unpoly-migrate', message, ...args)\n }\n })\n\n function deprecated(deprecatedExpression, replacementExpression) {\n warn(`${deprecatedExpression} has been deprecated. Use ${replacementExpression} instead.`)\n }\n\n // Returns a resolved promise that prints a warning when #then() is called.\n function formerlyAsync(label) {\n const promise = Promise.resolve()\n const oldThen = promise.then\n promise.then = function() {\n warn(`${label} is now sync and no longer returns a promise`)\n return oldThen.apply(this, arguments)\n }\n return promise\n }\n\n const CSS_LENGTH_PROPS = [\n 'top', 'right', 'bottom', 'left',\n 'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left',\n 'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left',\n 'border-width', 'border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width',\n 'width', 'height',\n 'max-width', 'max-height',\n 'min-width', 'min-height',\n ]\n\n function fixStylePropName(prop) {\n if (/[A-Z]/.test(prop)) {\n warn(`CSS property names must be in kebab-case, but got camelCase \"${prop}\"`)\n return u.camelToKebabCase(prop)\n } else {\n return prop\n }\n }\n\n function fixStylePropValue(prop, value, unit) {\n if (!unit && CSS_LENGTH_PROPS.includes(prop) && /^[\\d.]+$/.test(value)) {\n warn(`CSS length values must have a unit, but got \"${prop}: ${value}\". Use \"${prop}: ${value}px\" instead.`)\n return value + \"px\"\n } else {\n return value\n }\n }\n\n function fixGetStyleProps(keyOrKeys) {\n let transformed\n\n if (u.isString(keyOrKeys)) {\n transformed = fixStylePropName(keyOrKeys)\n } else if (u.isArray(keyOrKeys)) {\n transformed = keyOrKeys.map(fixStylePropName)\n } else {\n // Unsupported case. Behave neutrally.\n transformed = keyOrKeys\n }\n\n return transformed\n }\n\n function fixSetStyleProps(props, unit) {\n let transformed\n\n if (u.isObject(props)) {\n transformed = {}\n for (let name in props) {\n let value = props[name]\n name = fixStylePropName(name)\n value = fixStylePropValue(name, value, unit)\n transformed[name] = value\n }\n } else {\n // Leave a string unchanged\n transformed = props\n }\n\n return transformed\n }\n\n function defineThrowingProps(object, forbiddenPrototype, errorMessage) {\n let complain = () => { throw new TypeError(errorMessage) }\n\n for (const propName of Object.getOwnPropertyNames(forbiddenPrototype)) {\n if (!(propName in object)) {\n Object.defineProperty(object, propName, {\n get: complain,\n set: complain,\n enumerable: false,\n configurable: false,\n })\n }\n }\n }\n\n up.on('up:framework:reset', reset)\n\n return {\n deprecated,\n renamedPackage,\n renamedProperty,\n removedProperty,\n defineThrowingProps,\n transformAttribute,\n renamedAttribute,\n removedAttribute,\n formerlyAsync,\n renamedEvent,\n removedEvent,\n fixGetStyleProps,\n fixSetStyleProps,\n fixEventTypes,\n fixKey,\n warn,\n loaded: true,\n config,\n }\n})()\n","/*-\n@module up.layer\n*/\n\nconst FLAVORS_ERROR = new Error('up.modal.flavors has been removed without direct replacement. You may give new layers a { class } or modify layer elements on up:layer:open.')\n\nup.modal = {\n\n /*-\n Opens a modal overlay for the given URL.\n\n @function up.modal.visit\n @param {string} url\n The URL to load.\n @param {Object} options\n See options for `up.render()`.\n @deprecated\n Use `up.layer.open({ url, mode: \"modal\" })` instead.\n */\n visit(url, options = {}) {\n up.migrate.deprecated('up.modal.visit(url)', 'up.layer.open({ url, mode: \"modal\" })')\n return up.layer.open({ ...options, url, mode: 'modal' })\n },\n\n /*-\n Opens the given link's destination in a modal overlay.\n\n @function up.modal.follow\n @param {Element|jQuery|string} linkOrSelector\n The link to follow.\n @param {string} [options]\n See options for `up.render()`.\n @return {Promise}\n A promise that will be fulfilled when the modal has been opened.\n @deprecated\n Use `up.follow(link, { layer: \"new modal\" })` instead.\n */\n follow(link, options = {}) {\n up.migrate.deprecated('up.modal.follow(link)', 'up.follow(link, { layer: \"new modal\" })')\n return up.follow(link, { ...options, layer: 'new', mode: 'modal' })\n },\n\n /*-\n [Extracts](/api/up.extract) the given CSS selector from the given HTML string and\n opens the results in a modal overlay.\n\n @function up.modal.extract\n @param {string} selector\n The CSS selector to extract from the HTML.\n @param {string} document\n The HTML containing the modal content.\n @param {Object} options\n See options for [`up.modal.follow()`](/api/up.modal.follow).\n @return {Promise}\n A promise that will be fulfilled when the modal has been opened.\n @deprecated\n Use `up.layer.open({ document, mode: \"modal\" })` instead.\n */\n extract(target, html, options = {}) {\n up.migrate.deprecated('up.modal.extract(target, document)', 'up.layer.open({ document, mode: \"modal\" })')\n return up.layer.open({ ...options, target, document: html, layer: 'new', mode: 'modal' })\n },\n\n /*-\n Closes a currently open overlay.\n\n @function up.modal.close\n @param {Object} options\n @return {Promise}\n @deprecated\n Use `up.layer.dismiss()` instead.\n */\n close(options = {}) {\n up.migrate.deprecated('up.modal.close()', 'up.layer.dismiss()')\n up.layer.dismiss(null, options)\n return up.migrate.formerlyAsync('up.layer.dismiss()')\n },\n\n /*-\n Returns the location URL of the fragment displayed in the current overlay.\n\n @function up.modal.url\n @return {string}\n @deprecated\n Use `up.layer.location` instead.\n */\n url() {\n up.migrate.deprecated('up.modal.url()', 'up.layer.location')\n return up.layer.location\n },\n\n /*-\n Returns the location URL of the layer behind the current overlay.\n\n @function up.modal.coveredUrl\n @return {string}\n @deprecated\n Use `up.layer.parent.location` instead.\n */\n coveredUrl() {\n up.migrate.deprecated('up.modal.coveredUrl()', 'up.layer.parent.location')\n return up.layer.parent?.location\n },\n\n /*-\n Sets default options for future modal overlays.\n\n @property up.modal.config\n @deprecated\n Use `up.layer.config.modal` instead.\n */\n get config() {\n up.migrate.deprecated('up.modal.config', 'up.layer.config.modal')\n return up.layer.config.modal\n },\n\n /*-\n Returns whether the given element or selector is contained\n within the current layer.\n\n @function up.modal.contains\n @param {string} elementOrSelector\n The element to test\n @return {boolean}\n @deprecated\n Use `up.layer.contains()` instead.\n */\n contains(element) {\n up.migrate.deprecated('up.modal.contains()', 'up.layer.contains()')\n return up.layer.contains(element)\n },\n\n /*-\n Returns whether an overlay is currently open.\n\n @function up.modal.isOpen\n @return {boolean}\n @deprecated\n Use `up.layer.isOverlay()` instead.\n */\n isOpen() {\n up.migrate.deprecated('up.modal.isOpen()', 'up.layer.isOverlay()')\n return up.layer.isOverlay()\n },\n\n get flavors() {\n throw FLAVORS_ERROR\n },\n\n flavor() {\n throw FLAVORS_ERROR\n }\n}\n\n// Don't warn when a script enumerates up.modal. Getters in an object literal are enumerable.\nObject.defineProperty(up.modal, 'config', { enumerable: false })\n\nup.migrate.renamedEvent('up:modal:open', 'up:layer:open')\nup.migrate.renamedEvent('up:modal:opened', 'up:layer:opened')\nup.migrate.renamedEvent('up:modal:close', 'up:layer:dismiss')\nup.migrate.renamedEvent('up:modal:closed', 'up:layer:dismissed')\n\n/*-\nClicking this link will load the destination and open\nthe given selector in a modal overlay.\n\n@selector [up-modal]\n@params-note\n All modifying attributes for `[up-layer=new]` may also be used.\n@param {string} up-modal\n The CSS selector that will be extracted from the response and displayed in a modal overlay.\n@deprecated\n Use `[up-layer=\"new modal\"]` instead.\n*/\nup.migrate.targetMacro('up-modal', { 'up-layer': 'new modal' }, '[up-layer=\"new modal\"]')\n\n/*-\nClicking this link will load the destination and open\nthe given selector in a drawer overlay that slides in from the edge of the screen.\n\n@selector [up-drawer]\n@params-note\n All modifying attributes for `[up-layer=new]` may also be used.\n@param {string} up-drawer\n The CSS selector that will be extracted from the response and displayed in a drawer overlay.\n@deprecated\n Use `[up-layer=\"new drawer\"]` instead.\n*/\nup.migrate.targetMacro('up-drawer', { 'up-layer': 'new drawer' }, '[up-layer=\"new drawer\"]')\n","/*-\n@module up.motion\n*/\n\n// up.motion.finish() already returns up.migrate.formerlyAsync() from core.\n\n/*-\nReturns whether Unpoly will perform animations and transitions.\n\nSet [`up.motion.config.enabled = false`](/api/up.motion.config#config.enabled) in order to disable animations globally.\n\n@function up.motion.isEnabled\n@return {boolean}\n Whether animation is enabled.\n@deprecated\n Use `up.motion.config.enabled` instead.\n*/\nup.motion.isEnabled = function() {\n up.migrate.deprecated('up.motion.isEnabled()', 'up.motion.config.enabled')\n return up.motion.config.enabled\n}\n","const u = up.util\n\n/*-\n@module up.network\n*/\n\nup.migrate.renamedPackage('proxy', 'network')\nup.migrate.renamedEvent('up:proxy:load', 'up:request:load') // renamed in 1.0.0\nup.migrate.renamedEvent('up:proxy:received', 'up:request:loaded') // renamed in 0.50.0\nup.migrate.renamedEvent('up:proxy:loaded', 'up:request:loaded') // renamed in 1.0.0\nup.migrate.renamedEvent('up:proxy:fatal', 'up:request:offline') // renamed in 1.0.0\nup.migrate.renamedEvent('up:request:fatal', 'up:request:offline') // renamed in 3.0.0\nup.migrate.renamedEvent('up:proxy:aborted', 'up:request:aborted') // renamed in 1.0.0\nup.migrate.renamedEvent('up:proxy:slow', 'up:network:late') // renamed in 1.0.0\nup.migrate.renamedEvent('up:proxy:recover', 'up:network:recover') // renamed in 1.0.0\nup.migrate.renamedEvent('up:request:late', 'up:network:late') // renamed in 3.0.0\nup.migrate.renamedEvent('up:request:recover', 'up:network:recover') // renamed in 3.0.0\n\n// The `config.preloadDelay` configuration was defined on up.proxy in V1. It was moved to up.link in V2.\nup.network.config.patch(function(config) {\n const preloadDelayMoved = () => up.migrate.deprecated('up.proxy.config.preloadDelay', 'up.link.config.preloadDelay')\n Object.defineProperty(config, 'preloadDelay', {\n configurable: true,\n get() {\n preloadDelayMoved()\n return up.link.config.preloadDelay\n },\n set(value) {\n preloadDelayMoved()\n up.link.config.preloadDelay = value\n }\n })\n})\n\nup.network.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'maxRequests', 'concurrency', { label: 'up.network.config' })\n up.migrate.renamedProperty(config, 'slowDelay', 'lateDelay', { label: 'up.network.config' })\n up.migrate.renamedProperty(config, 'cacheExpiry', 'cacheExpireAge', { warning: 'The configuration up.network.config.cacheExpiry has been renamed to up.network.config.cacheExpireAge. Note that Unpoly 3+ automatically reloads cached content after rendering to ensure users always see fresh data (\"cache revalidation\"). Setting a custom expiry may no longer be necessary.' })\n up.migrate.renamedProperty(config, 'clearCache', 'expireCache', { label: 'up.network.config' })\n\n let cacheSize = config.cacheSize\n Object.defineProperty(config, 'cacheSize', {\n configurable: true,\n get() {\n return cacheSize\n },\n set(newValue) {\n if (newValue === 0) {\n up.migrate.deprecated('up.network.config.cacheSize = 0', 'up.network.config.cacheEnabled = false')\n config.cacheEnabled = false\n }\n cacheSize = newValue\n }\n })\n\n // Provide a default for the removed property, in case someone pushes into that.\n up.migrate.removedProperty(config, 'requestMetaKeys', { value: [], warning: 'The configuration up.network.config.requestMetaKeys has been removed. Servers that optimize responses based on request headers should instead set a Vary response header.' })\n})\n\nup.migrate.handleRequestOptions = function(options) {\n up.migrate.fixKey(options, 'clearCache', 'expireCache', { label: 'request options', detail: options.url })\n\n if (options.solo) {\n up.migrate.warn('The option up.request({ solo }) has been removed. Use up.network.abort() or up.fragment.abort() instead.')\n }\n}\n\nup.on('up:request:loaded', function(event) {\n if (event.response.header('X-Up-Expire-Cache') === 'false') {\n up.migrate.warn('The server can no longer prevent cache expiration with an `X-Up-Expire-Cache: false` response header. The header has no effect and can be removed.')\n }\n\n if (event.response.header('X-Up-Evict-Cache') === 'false') {\n up.migrate.warn('The server can no longer prevent cache eviction with an `X-Up-Evict-Cache: false` response header. The header has no effect and can be removed.')\n }\n})\n\n/*-\nMakes a request to the given URL and caches the response.\n\nThe function returns a promise that fulfills with the response text.\n\n### Example\n\n```\nup.ajax('/search', { params: { query: 'sunshine' } }).then(function(text) {\n console.log('The response text is %o', text)\n}).catch(function() {\n console.error('The request failed')\n})\n```\n\n@function up.ajax\n@param {string} [url]\n The requested URL.\n\n Instead of passing the URL as a string argument, you can also pass it as an `{ url }` option.\n@param {Object} [options]\n See options for `up.request()`.\n@return {Promise<string>}\n A promise for the response text.\n@deprecated\n Use `up.request()` instead.\n*/\nup.ajax = function(...args) {\n up.migrate.deprecated('up.ajax()', 'up.request()')\n const pickResponseText = (response) => response.text\n return up.request(...args).then(pickResponseText)\n}\n\n/*-\nExpires all cache entries.\n\n@function up.proxy.clear\n@deprecated\n Use `up.cache.expire()` instead.\n*/\nup.network.clear = function() {\n up.migrate.deprecated('up.proxy.clear()', 'up.cache.expire()')\n up.cache.expire()\n}\n\n/*-\nExpires cache entries.\n\n@function up.cache.clear\n@deprecated\n Use `up.cache.expire()` instead.\n*/\nup.Request.Cache.prototype.clear = function(...args) {\n // up.cache is an up.Request.Cache instance\n up.migrate.deprecated('up.cache.clear()', 'up.cache.expire()')\n this.expire(...args)\n}\n\n/*-\nPreloads the given link.\n\n@function up.proxy.preload\n@param {Element} link\n@deprecated\n Use `up.link.preload()` instead.\n*/\nup.network.preload = function(...args) {\n up.migrate.deprecated('up.proxy.preload(link)', 'up.link.preload(link)')\n return up.link.preload(...args)\n}\n\nup.migrate.preprocessAbortArgs = function(args) {\n if (args.length === 2 && u.isString(args[1])) {\n up.migrate.warn('up.network.abort() no longer takes a reason as a second argument. Pass it as { reason } option instead.')\n args[1] = { reason: args[1] }\n }\n}\n\n/*-\nReturns whether Unpoly is *not* currently loading a [request](/api/up.request).\n\nThe network is also considered [busy](/api/up.network.isBusy) while requests are [loading in the background](/api/up.request#options.background).\n\nSee also `up.network.isBusy()`.\n\n@function up.network.isIdle\n@return {boolean}\n@deprecated\n Use `!up.network.isBusy()` instead.\n*/\nup.network.isIdle = function() {\n up.migrate.deprecated('up.network.isIdle()', '!up.network.isBusy()')\n return !up.network.isBusy()\n}\n\n/*-\n@class up.Request\n*/\n\n/*-\nLoads this request object as a full-page request, replacing the entire browser environment\nwith a new page from the server response.\n\nThe full-page request will be loaded with the [URL](/api/up.Request.prototype.url),\n[method](/api/up.Request.prototype.method) and [params](/api/up.Request.prototype.params)\nfrom this request object.\nProperties that are not possible in a full-page request (such as custom HTTP headers)\nwill be ignored.\n\nAborts all pending requests.\n\n@function up.Request#navigate\n@deprecated\n Use `up.Request#loadPage()` instead.\n*/\nup.Request.prototype.navigate = function() {\n up.migrate.deprecated('up.Request#navigate()', 'up.Request#loadPage()')\n this.loadPage()\n}\n\n/*-\nWhether this request is [preloading](/learn/preloading) content.\n\n@property up.Request#preload\n@param {boolean} [preload=false]\n@deprecated\n Use `up.Request#background` instead.\n*/\nup.migrate.renamedProperty(up.Request.prototype, 'preload', 'background', { warning: 'Property up.Request#preload has been renamed to up.Request#background' })\n\n/*-\nThe number of milliseconds after which this request can cause\nan `up:network:late` event and show the [progress bar](/learn/progress-bar).\n\nDefaults to `up.network.config.lateDelay`.\n\n@property up.Request#badResponseTime\n@param {number} [badResponseTime]\n@deprecated\n Use `up.Request#lateDelay` instead.\n*/\nup.migrate.renamedProperty(up.Request.prototype, 'badResponseTime', 'lateDelay', { warning: 'Property up.Request#badResponseTime has been renamed to up.Request#lateDelay' })\n\n/*-\n@class up.Response\n*/\n\n/*-\nReturns whether the server responded with a 2xx HTTP status.\n\n@function up.Response#isSuccess\n@return {boolean}\n@deprecated\n Use `up.Response#ok` instead.\n*/\nup.Response.prototype.isSuccess = function() {\n up.migrate.deprecated('up.Response#isSuccess()', 'up.Response#ok')\n return this.ok\n}\n\n/*-\nReturns the HTTP header value with the given name.\n\nThe search for the header name is case-insensitive.\n\nReturns `undefined` if the given header name was not included in the response.\n\n@function up.Response#getHeader\n@param {string} name\n@return {string|undefined}\n The value of the header.\n@deprecated\n Use `up.Response#header` instead.\n*/\nup.Response.prototype.getHeader = function(name) {\n up.migrate.deprecated('up.Response#getHeader()', 'up.Response#header()')\n return this.header(name)\n}\n\n/*-\nReturns whether the response was not [successful](/api/up.Response.prototype.ok).\n\n@function up.Response#isError\n@return {boolean}\n@deprecated\n Use `!up.Response#ok` instead.\n*/\nup.Response.prototype.isError = function() {\n up.migrate.deprecated('up.Response#isError()', '!up.Response#ok')\n return !this.ok\n}\n\nfunction mayHaveCustomIndicator() {\n const listeners = up.EventListener.allNonDefault(document)\n return u.find(listeners, (listener) => listener.eventType === 'up:network:late')\n}\n\nconst progressBarDefault = up.network.config.progressBar\nup.network.config.patch(function(config) {\n config.progressBar = function() {\n if (mayHaveCustomIndicator()) {\n up.migrate.warn('Disabled the default progress bar as you may have built a custom loading indicator with your up:network:late listener. Please set up.network.config.progressBar to true or false.')\n return false\n } else {\n return progressBarDefault\n }\n }\n})\n\nup.network.shouldReduceRequests = function() {\n up.migrate.warn('up.network.shouldReduceRequests() has been removed without replacement')\n return false\n}\n\nup.network.config.patch(function(config) {\n up.migrate.removedProperty(config, 'badRTT', { label: 'up.network.config' })\n up.migrate.removedProperty(config, 'badDownlink', { label: 'up.network.config' })\n up.migrate.renamedProperty(config, 'badResponseTime', 'lateDelay', { label: 'up.network.config' })\n})\n","/*-\n@module up.layer\n*/\n\nup.popup = {\n /*-\n Attaches a popup overlay to the given element or selector.\n\n @function up.popup.attach\n @param {Element|jQuery|string} anchor\n The element to which the popup will be attached.\n @param {Object} [options]\n See options for `up.render()`.\n @return {Promise}\n @deprecated\n Use `up.layer.open({ origin, mode: 'popup' })` instead.\n */\n attach(origin, options = {}) {\n origin = up.fragment.get(origin)\n up.migrate.deprecated('up.popup.attach(origin)', \"up.layer.open({ origin, mode: 'popup' })\")\n return up.layer.open({ ...options, origin, layer: 'new', mode: 'popup' })\n },\n\n /*-\n Closes a currently open overlay.\n\n @function up.popup.close\n @param {Object} options\n @return {Promise}\n @deprecated\n Use `up.layer.dismiss()` instead.\n */\n close(options = {}) {\n up.migrate.deprecated('up.popup.close()', 'up.layer.dismiss()')\n up.layer.dismiss(null, options)\n return up.migrate.formerlyAsync('up.layer.dismiss()')\n },\n\n /*-\n Returns the location URL of the fragment displayed in the current overlay.\n\n @function up.popup.url\n @return {string}\n @deprecated\n Use `up.layer.location` instead.\n */\n url() {\n up.migrate.deprecated('up.popup.url()', 'up.layer.location')\n return up.layer.location\n },\n\n /*-\n Returns the location URL of the layer behind the current overlay.\n\n @function up.popup.coveredUrl\n @return {string}\n @deprecated\n Use `up.layer.parent.location` instead.\n */\n coveredUrl() {\n up.migrate.deprecated('up.popup.coveredUrl()', 'up.layer.parent.location')\n return up.layer.parent?.location\n },\n\n /*-\n Sets default options for future popup overlays.\n\n @property up.popup.config\n @deprecated\n Use `up.layer.config.popup` instead.\n */\n get config() {\n up.migrate.deprecated('up.popup.config', 'up.layer.config.popup')\n return up.layer.config.popup\n },\n\n /*-\n Returns whether the given element or selector is contained\n within the current layer.\n\n @function up.popup.contains\n @param {string} elementOrSelector\n The element to test\n @return {boolean}\n @deprecated\n Use `up.layer.contains()` instead.\n */\n contains(element) {\n up.migrate.deprecated('up.popup.contains()', 'up.layer.contains()')\n return up.layer.contains(element)\n },\n\n /*-\n Returns whether an overlay is currently open.\n\n @function up.popup.isOpen\n @return {boolean}\n @deprecated\n Use `up.layer.isOverlay()` instead.\n */\n isOpen() {\n up.migrate.deprecated('up.popup.isOpen()', 'up.layer.isOverlay()')\n return up.layer.isOverlay()\n },\n\n sync() {\n up.migrate.deprecated('up.popup.sync()', 'up.layer.sync()')\n return up.layer.sync()\n }\n}\n\n// Don't warn when a script enumerates up.popup. Getters in an object literal are enumerable.\nObject.defineProperty(up.popup, 'config', { enumerable: false })\n\nup.migrate.renamedEvent('up:popup:open', 'up:layer:open')\nup.migrate.renamedEvent('up:popup:opened', 'up:layer:opened')\nup.migrate.renamedEvent('up:popup:close', 'up:layer:dismiss')\nup.migrate.renamedEvent('up:popup:closed', 'up:layer:dismissed')\n\n/*-\nClicking this link will load the destination and open\nthe given selector in a popup overlay.\n\n@selector [up-popup]\n@params-note\n All modifying attributes for `[up-layer=new]` may also be used.\n@param {string} up-popup\n The CSS selector that will be extracted from the response and displayed in a popup overlay.\n@deprecated\n Use `[up-layer=\"new popup\"]` instead.\n*/\nup.migrate.targetMacro('up-popup', { 'up-layer': 'new popup' }, '[up-layer=\"new popup\"]')\n","/*-\n@module up.protocol\n*/\n\nup.migrate.clearCacheFromXHR = function(xhr) {\n let value = xhr.getResponseHeader('X-Up-Clear-Cache')\n\n if (value) {\n up.migrate.deprecated('X-Up-Clear-Cache', 'X-Up-Expire-Cache')\n\n if (value === 'false') {\n return false\n } else {\n return value\n }\n }\n}\n\n/*-\nThe server may send this optional response header to control which previously cached responses should be [expired](/learn/caching#expiration) after this response.\n\nThe value of this header is a [URL pattern](/api/url-patterns) matching responses that should be expired.\n\nFor example, to expire all responses to URLs starting with `/notes/`:\n\n```http\nX-Up-Clear-Cache: /notes/*\n```\n\n@header X-Up-Clear-Cache\n@deprecated\n Use `X-Up-Expire-Cache` instead.\n*/\n\n// X-Up-Title used to carry a window title as a bare string.\n// We now require it to be a JSON-encoded string so we can escape high-ASCII characters:\n// https://makandracards.com/makandra/536174-http-headers-can-only-transport-us-ascii-characters-safely\nup.migrate.titleFromXHR = function(xhr) {\n let value = xhr.getResponseHeader('X-Up-Title')\n\n if (value) {\n if (value === 'false') {\n return false\n } else if (value[0] !== '\"' && value[0] !== \"'\") {\n up.migrate.warn('X-Up-Title must now be a JSON-encoded string (got %o)', value)\n return value\n }\n }\n}\n\n/*-\nThis request header contains a timestamp of an existing fragment that is being [reloaded](/api/up.reload).\n\nThe timestamp must be explicitly set by the user as an `[up-time]` attribute on the fragment.\nIt should indicate the time when the fragment's underlying data was last changed.\n\nSee `[up-time]` for a detailed example.\n\n### Format\n\nThe time is encoded as the number of seconds elapsed since the [Unix epoch](https://en.wikipedia.org/wiki/Unix_time).\n\nFor instance, a modification date of December 23rd 2020, 1:40:18 PM UTC would produce the following header:\n\n```http\nX-Up-Target: .unread-count\nX-Up-Reload-From-Time: 1608730818\n```\n\nIf no timestamp is known, Unpoly will send a value of zero (`X-Up-Reload-From-Time: 0`).\n\n@header X-Up-Reload-From-Time\n@deprecated\n Read the standard [`If-Modified-Since`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since) request header instead.\n Unpoly sends it when the fragment has a `Last-Modified` time. See [conditional requests](/learn/conditional-requests).\n*/\n\nup.protocol.config.patch(function() {\n const cspNonceMoved = () => up.migrate.deprecated('up.protocol.config.cspNonce', 'up.script.config.cspNonce')\n\n Object.defineProperty(this, 'cspNonce', {\n configurable: true,\n get() {\n cspNonceMoved()\n return up.script.config.cspNonce\n },\n set(value) {\n cspNonceMoved()\n up.script.config.cspNonce = value\n }\n })\n})\n","const e = up.element\n\n/*-\n@module up.radio\n*/\n\nup.radio.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'hungry', 'hungrySelectors', { label: 'up.radio.config' })\n})\n\nlet pollEnabledRef\n\nup.radio.config.patch(function(config) {\n pollEnabledRef = up.migrate.removedProperty(config, 'pollEnabled', { value: true, warning: 'The configuration up.radio.config.pollEnabled has been removed. To disable polling, prevent up:fragment:poll instead.' })\n})\n\nup.on('up:fragment:poll', function(event) {\n if (!pollEnabledRef[0]) {\n event.preventDefault()\n }\n})\n\nup.compiler('[up-hungry][up-if-history]', function(element) {\n let ifHistory = e.booleanAttr(element, 'up-if-history')\n if (!ifHistory) return\n\n up.migrate.warn('Attribute [up-if-history] has been deprecated. Use [up-on-hungry=\"if (!renderOptions.history) event.preventDefault()\"] instead (found in %o).', element)\n\n element.addEventListener('up:fragment:hungry', function(event) {\n if (!event.renderOptions.history) {\n event.preventDefault()\n }\n })\n})\n","/*-\n@module up.script\n*/\n\nconst u = up.util\nconst e = up.element\n\nup.migrate.renamedPackage('syntax', 'script')\n\nup.script.config.patch(function(config) {\n // The 3.14.0 release notes named this setting wrongly, and apps copied the name.\n up.migrate.renamedProperty(config, 'callbackPolicy', 'evalCallbackPolicy', { warning: 'There is no setting up.script.config.callbackPolicy. Use up.script.config.evalCallbackPolicy instead.' })\n})\n\nup.migrate.postCompile = function(elements, compiler) {\n // up.compiler() has a legacy { keep } option that will automatically\n // set [up-keep] on the elements it compiles\n let keepValue\n if (keepValue = compiler.keep) {\n up.migrate.warn('The { keep } option for up.compiler() has been removed. Have the compiler set an [up-keep] attribute instead (found in compiler for \"%s\").', compiler.selector)\n const value = u.isString(keepValue) ? keepValue : ''\n for (let element of elements) {\n element.setAttribute('up-keep', value)\n }\n }\n}\n\nup.migrate.targetMacro = function(queryAttr, fixedResultAttrs, replacement) {\n up.macro(`[${queryAttr}]`, function(link) {\n up.migrate.warn('Attribute [%s] has been deprecated. Use %s instead (found in %o).', queryAttr, replacement, link)\n let optionalTarget\n const resultAttrs = u.copy(fixedResultAttrs)\n if ((optionalTarget = link.getAttribute(queryAttr))) {\n resultAttrs['up-target'] = optionalTarget\n } else {\n resultAttrs['up-follow'] = ''\n }\n e.setMissingAttrs(link, resultAttrs)\n link.removeAttribute(queryAttr)\n })\n}\n\n/*-\nRegisters a function to be called when an element with\nthe given selector is inserted into the DOM. The function is called\nwith each matching element as a\n[jQuery object](https://learn.jquery.com/using-jquery-core/jquery-object/).\n\nIf you're not using jQuery, use `up.compiler()` instead, which calls\nthe compiler function with a native element.\n\n## Example\n\nThis jQuery compiler will insert the current time into a\n`<div class='current-time'></div>`:\n\n```js\nup.$compiler('.current-time', function($element) {\n let now = new Date()\n $element.text(now.toString())\n})\n```\n\n@function up.$compiler\n@param {string} selector\n The selector to match.\n@param {Object} [options]\n See [`options` argument for `up.compiler()`](/api/up.compiler#parameters).\n@param {Function($element, data)} compiler\n @like up.compiler\n@deprecated\n Use `up.compiler()` with a callback that wraps the given native element in a jQuery collection.\n*/\nup.$compiler = function(...definitionArgs) {\n up.migrate.warn('up.$compiler() has been deprecated. Instead use up.compiler() with a callback that wraps the given native element in a jQuery collection.')\n\n let $fn = definitionArgs.pop()\n\n return up.compiler(...definitionArgs, function(element, ...fnArgs) {\n let $element = jQuery(element)\n return $fn($element, ...fnArgs)\n })\n}\n\n\n/*-\nRegisters a [compiler](/api/up.compiler) that is run before all other compilers.\nThe compiler function is called with each matching element as a\n[jQuery object](https://learn.jquery.com/using-jquery-core/jquery-object/).\n\nIf you're not using jQuery, use `up.macro()` instead, which calls\nthe macro function with a native element.\n\n## Example\n\n```js\nup.$macro('[content-link]', function($link) {\n $link.attr({\n 'up-target': '.content',\n 'up-transition': 'cross-fade',\n 'up-duration': '300'\n })\n})\n```\n\n@function up.$macro\n@param {string} selector\n The selector to match.\n@param {Object} options\n See [`options` argument for `up.compiler()`](/api/up.compiler#parameters).\n@param {Function($element, data)} macro\n @like up.macro\n@deprecated\n Use `up.macro()` with a callback that wraps the given native element in a jQuery collection.\n*/\nup.$macro = function(...definitionArgs) {\n up.migrate.warn('up.$macro() has been deprecated. Instead use up.macro() with a callback that wraps the given native element in a jQuery collection.')\n\n let $fn = definitionArgs.pop()\n\n return up.macro(...definitionArgs, function(element, ...fnArgs) {\n let $element = jQuery(element)\n return $fn($element, ...fnArgs)\n })\n}\n\nup.migrate.processHelloMeta = function(meta, response) {\n Object.defineProperty(meta, 'response', { get() {\n up.migrate.warn('Accessing meta.response from a compiler has been deprecated without replacement. Avoid fragments that compile differently for the initial page load vs. subsequent fragment updates.')\n return response\n } })\n}\n\nlet modernHello = up.hello\nlet errorMessage = 'up.hello() is now async and returns a promise'\n\nclass WasElementIsPromise extends Promise {}\nup.migrate.defineThrowingProps(WasElementIsPromise.prototype, Element.prototype, errorMessage)\nup.migrate.defineThrowingProps(WasElementIsPromise.prototype, Node.prototype, errorMessage)\nup.migrate.defineThrowingProps(WasElementIsPromise.prototype, EventTarget.prototype, errorMessage)\n\nup.hello = function(element, ...args) {\n let elementPromise = modernHello(element, ...args)\n return WasElementIsPromise.resolve(elementPromise)\n}\n","/*-\n@module up.status\n*/\n\nup.migrate.renamedPackage('navigation', 'status')\nup.migrate.renamedPackage('feedback', 'status')\n\nup.status.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'navs', 'navSelectors', { label: 'up.status.config' })\n})\n","/*-\nUnpoly used to come with a basic tooltip implementation.\nThis feature is now deprecated.\n\n@module up.tooltip\n@internal\n*/\nup.macro('[up-tooltip]', function(opener) {\n up.migrate.warn('Attribute [up-tooltip] has been deprecated. Use a [title] attribute instead (found in %o).', opener)\n up.element.setMissingAttr(opener, 'title', opener.getAttribute('up-tooltip'))\n})\n","/*-\n@module up.util\n*/\n\n/*-\nReturns a copy of the given object that only contains\nthe given keys.\n\n@function up.util.only\n@param {Object} object\n@param {Array} ...keys\n@deprecated\n Use `up.util.pick()` instead.\n*/\nup.util.only = function(object, ...keys) {\n up.migrate.deprecated('up.util.only(object, ...keys)', 'up.util.pick(object, keys)')\n return up.util.pick(object, keys)\n}\n\n/*-\nReturns a copy of the given object that contains all except\nthe given keys.\n\n@function up.util.except\n@param {Object} object\n@param {Array} ...keys\n@deprecated\n Use `up.util.omit(object, keys)` (with an array argument) instead of `up.util.except(object, ...keys)` (with rest arguments).\n*/\nup.util.except = function(object, ...keys) {\n up.migrate.deprecated('up.util.except(object, ...keys)', 'up.util.omit(object, keys)')\n return up.util.omit(object, keys)\n}\n\nup.util.parseUrl = function(...args) {\n up.migrate.deprecated('up.util.parseUrl()', 'up.util.parseURL()')\n return up.util.parseURL(...args)\n}\n\nup.util.any = function(...args) {\n up.migrate.deprecated('up.util.any()', 'up.util.some()')\n return up.util.some(...args)\n}\n\nup.util.all = function(...args) {\n up.migrate.deprecated('up.util.all()', 'up.util.every()')\n return up.util.every(...args)\n}\n\nup.util.detect = function(...args) {\n up.migrate.deprecated('up.util.detect()', 'up.util.find()')\n return up.util.find(...args)\n}\n\nup.util.select = function(...args) {\n up.migrate.deprecated('up.util.select()', 'up.util.filter()')\n return up.util.filter(...args)\n}\n\nup.util.setTimer = function(...args) {\n up.migrate.deprecated('up.util.setTimer()', 'up.util.timer()')\n return up.util.timer(...args)\n}\n\nup.util.escapeHtml = function(...args) {\n up.migrate.deprecated('up.util.escapeHtml()', 'up.util.escapeHTML()')\n return up.util.escapeHTML(...args)\n}\n\nup.util.selectorForElement = function(...args) {\n up.migrate.deprecated('up.util.selectorForElement()', 'up.fragment.toTarget()')\n return up.fragment.toTarget(...args)\n}\n\nup.util.nextFrame = function(...args) {\n up.migrate.deprecated('up.util.nextFrame()', 'up.util.task()')\n return up.util.task(...args)\n}\n\n/*-\nCalls the given function for the given number of times.\n\n@function up.util.times\n@param {number} count\n@param {Function()} block\n@deprecated\n Use a `for` loop instead.\n*/\nup.util.times = function(count, block) {\n up.migrate.deprecated('up.util.times()', 'a `for` loop')\n for (let i = 0; i < count; i++) {\n block()\n }\n}\n\n/*-\nMerge the own properties of one or more `sources` into the `target` object.\n\n@function up.util.assign\n@param {Object} target\n@param {Array<Object>} ...sources\n@deprecated\n Use [`Object.assign()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) instead.\n*/\nup.util.assign = function(...args) {\n up.migrate.deprecated('up.util.assign()', 'Object.assign()')\n return Object.assign(...args)\n}\n\n/*-\nReturns an array of values of the given object.\n\n@function up.util.values\n@param {Object} object\n@return {Array<string>}\n@deprecated\n Use [`Object.values()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) instead.\n*/\nup.util.values = function(...args) {\n up.migrate.deprecated('up.util.values()', 'Object.values()')\n return Object.values(...args)\n}\n\n/*-\nPushes the given function to the [JavaScript microtask queue](https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/).\n\n@function up.util.microtask\n@param {Function()} task\n@return {Promise}\n A promise that is resolved with the return value of `task`.\n\n If `task` throws an error, the promise is rejected with that error.\n@deprecated\n Use [`queueMicrotask()`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask) instead.\n*/\nup.util.microtask = function(task) {\n up.migrate.deprecated('up.util.microtask()', 'queueMicrotask()')\n return Promise.resolve().then(task)\n}\n\nup.migrate.splitAtOr = function(value) {\n let parts = value.split(/\\s+or\\s+/)\n if (parts.length >= 2) {\n up.migrate.warn(`Separating tokens by \\`or\\` has been deprecated. Use a comma (\\`,\\`) instead. Found in \"${value}\".`)\n return parts\n }\n}\n","/*-\n@module up.viewport\n*/\n\nup.migrate.renamedPackage('layout', 'viewport')\n\nup.viewport.config.patch(function(config) {\n up.migrate.renamedProperty(config, 'viewports', 'viewportSelectors', { label: 'up.viewport.config' })\n up.migrate.renamedProperty(config, 'fixedTop', 'fixedTopSelectors', { label: 'up.viewport.config' })\n up.migrate.renamedProperty(config, 'fixedBottom', 'fixedBottomSelectors', { label: 'up.viewport.config' })\n up.migrate.renamedProperty(config, 'anchoredRight', 'anchoredRightSelectors', { label: 'up.viewport.config' })\n up.migrate.renamedProperty(config, 'snap', 'revealSnap', { label: 'up.viewport.config' })\n up.migrate.removedProperty(config, 'scrollSpeed', { label: 'up.viewport.config' })\n})\n\n/*-\nReturns the scrolling container for the given element.\n\nReturns the [document's scrolling element](/api/up.viewport.root)\nif no closer viewport exists.\n\n@function up.viewport.closest\n@param {string|Element|jQuery} target\n@return {Element}\n@deprecated\n Use `up.viewport.get()` instead.\n*/\nup.viewport.closest = function(...args) {\n up.migrate.deprecated('up.viewport.closest()', 'up.viewport.get()')\n return up.viewport.get(...args)\n}\n\n/*-\nScrolls the given viewport to the given Y-position.\n\nA \"viewport\" is an element that has scrollbars, e.g. `<body>` or\na container with `overflow-y: scroll`.\n\n### Example\n\nThis will scroll a `<div class=\"main\">...</div>` to a Y-position of 100 pixels:\n\n```js\nup.scroll('.main', 100)\n```\n\n### Animating the scrolling motion\n\nThe scrolling can (optionally) be animated.\n\n```js\nup.scroll('.main', 100, { behavior: 'smooth' })\n```\n\n@function up.scroll\n@param {string|Element|jQuery} viewport\n The container element to scroll.\n@param {number} scrollPos\n The absolute number of pixels to set the vertical scroll position to.\n@param {string}[options.behavior='instant']\n When set to `'instant'`, this will immediately scroll to the new position.\n\n When set to `'smooth'`, this will scroll smoothly to the new position.\n@deprecated\n Use [`Element#scrollTo()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo) instead.\n*/\nup.viewport.scroll = function(viewport, top, options = {}) {\n up.migrate.deprecated('up.scroll()', 'Element#scrollTo()')\n\n viewport = up.fragment.get(viewport, options)\n viewport.scrollTo({ ...options, top })\n return up.migrate.formerlyAsync('up.scroll()')\n}\n\nup.scroll = up.viewport.scroll\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// We are going to add compilers and event handlers that should not be reset during specs.\nup.framework.startExtension()\nrequire('./unpoly-migrate/migrate')\nrequire('./unpoly-migrate/classes/config')\nrequire('./unpoly-migrate/classes/render_job')\nrequire('./unpoly-migrate/classes/render_result')\nrequire('./unpoly-migrate/classes/layer/base')\nrequire('./unpoly-migrate/util')\nrequire('./unpoly-migrate/error')\nrequire('./unpoly-migrate/browser')\nrequire('./unpoly-migrate/element')\nrequire('./unpoly-migrate/event')\nrequire('./unpoly-migrate/script')\nrequire('./unpoly-migrate/form')\nrequire('./unpoly-migrate/fragment')\nrequire('./unpoly-migrate/framework')\nrequire('./unpoly-migrate/history')\nrequire('./unpoly-migrate/status')\nrequire('./unpoly-migrate/link')\nrequire('./unpoly-migrate/layer')\nrequire('./unpoly-migrate/motion')\nrequire('./unpoly-migrate/modal')\nrequire('./unpoly-migrate/popup')\nrequire('./unpoly-migrate/tooltip')\nrequire('./unpoly-migrate/protocol')\nrequire('./unpoly-migrate/network')\nrequire('./unpoly-migrate/radio')\nrequire('./unpoly-migrate/viewport')\nup.framework.stopExtension()\n"],"names":["up","browser","loadPage","args","migrate","deprecated","network","isSupported","framework","Config","prototype","patch","doPatch","bind","this","document","addEventListener","Layer","isOpen","isAlive","isClosed","renamedProperty","RenderJob","warning","RenderResult","element","first","get","createFromHtml","createFromHTML","remove","matches","selector","closest","replace","oldElement","newElement","replaceWith","all","pop","querySelectorAll","toggleClass","klass","newPresent","list","classList","contains","add","toSelector","fragment","toTarget","isAttached","isDetached","DeprecatedCannotCompile","Error","Symbol","toStringTag","Object","defineProperty","warn","renamedPackage","event","nobodyPrevents","emit","defaultPrevented","$on","definitionArgs","callback","upNativeCallback","data","$element","jQuery","call","on","$off","nativeCallback","fail","off","form","config","label","migratedFormGroupSelectors","groupSelectors","map","originalSelector","migratedSelector","watchForSwitch","root","renamedAttribute","scope","observe","util","isList","length","shift","unwatchFns","firstArg","watch","sequence","u","renderOptionsSource","options","detail","origin","url","target","handleResponseDocOptions","docOptions","fixKey","matchAroundOriginDeprecated","configurable","match","set","value","navigate","extract","preprocessRenderOptions","isString","history","location","prop","isJQuery","solo","pluckKey","abort","isFunction","reveal","scroll","resetScroll","restoreScroll","postprocessReloadOptions","legacyHeader","lastModified","headers","Math","floor","Date","toString","protocol","headerize","resolveOrigin","variant","formHint","script","scriptElementPolicy","nonce","compiler","booleanOrStringAttr","test","newFragment","preventDefault","setAttribute","renamedEvent","querySelector","prepareLocationChangedEvent","isEnabled","enabled","isArray","filter","aspect","warnOfHungryMetaTags","metaTags","fullHungrySelector","radio","hungryMetaTags","meta","fixRenamedLayerKeys","object","source","position","align","split","splitPosition","handleLayerOptions","dimensionKey","sticky","template","layer","isMissing","isGiven","mode","registerLayerCloser","registerAttrCloser","closeOptions","dismiss","fixLayerConfigs","modeConfig","entries","isOptions","handleLayerConfig","find","_mode","followSelectorFn","link","selectorFn","submitSelectorFn","preloadSelectorFn","layerOpenerSelectorFn","join","preloadEnabledRef","removedAttribute","replacement","transformAttribute","targetMacro","removedProperty","macro","priority","isFollowable","LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR","followSelectors","push","noFollowSelectors","modernFollowSelectors","unionSelector","isFollowableWithoutLegacyInstant","logLevel","oldAttr","transformer","extractCallback","extractOptions","hasAttribute","getAttribute","renamedEvents","removedEvents","fixEventType","eventType","newEventType","message","replacementExpression","warnedMessages","mockable","formattedMessage","sprintf","log","CSS_LENGTH_PROPS","fixStylePropName","camelToKebabCase","fixStylePropValue","unit","includes","deprecatedExpression","oldName","newName","oldKey","newKey","doWarn","memoize","newValue","key","valueRef","getOwnPropertyDescriptor","enumerable","defineThrowingProps","forbiddenPrototype","errorMessage","complain","TypeError","propName","getOwnPropertyNames","newAttr","mapValue","evalOption","_value","formerlyAsync","promise","Promise","resolve","oldThen","then","apply","arguments","oldType","newType","removedEvent","type","fixGetStyleProps","keyOrKeys","transformed","fixSetStyleProps","props","isObject","name","fixEventTypes","eventTypes","uniq","isDefined","renameKey","loaded","FLAVORS_ERROR","modal","visit","open","follow","html","close","coveredUrl","parent","isOverlay","flavors","flavor","motion","preloadDelayMoved","preloadDelay","cacheSize","cacheEnabled","handleRequestOptions","response","header","ajax","request","text","clear","cache","expire","Request","Cache","preload","preprocessAbortArgs","reason","isIdle","isBusy","Response","isSuccess","ok","getHeader","isError","progressBarDefault","progressBar","listeners","EventListener","allNonDefault","listener","mayHaveCustomIndicator","shouldReduceRequests","popup","attach","sync","clearCacheFromXHR","xhr","getResponseHeader","titleFromXHR","cspNonceMoved","cspNonce","e","pollEnabledRef","booleanAttr","renderOptions","postCompile","elements","keepValue","keep","queryAttr","fixedResultAttrs","optionalTarget","resultAttrs","copy","setMissingAttrs","removeAttribute","$compiler","$fn","fnArgs","$macro","processHelloMeta","modernHello","hello","WasElementIsPromise","Element","Node","EventTarget","elementPromise","status","opener","setMissingAttr","only","keys","pick","except","omit","parseUrl","parseURL","any","some","every","detect","select","setTimer","timer","escapeHtml","escapeHTML","selectorForElement","nextFrame","task","times","count","block","i","assign","values","microtask","splitAtOr","parts","viewport","top","scrollTo","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","startExtension","stopExtension"],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpoly.css","mappings":"AAWA;EACE;AAVF,C;ACFA;EAIE;AAFF,C;ACFA;EACE;AACF;;AACA;EAIE;EAIA;AAJF;;AAOE;EAEE;AALJ;AAME;EACE;AAJJ;AADA;EAOE;AAHF;AAKE;EACE;AAHJ,C;ACpBA;EAEE;AAAF;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;AACF,C;ACQA;EAIE;EAIA;EACA;AAxBF;;AA0BA;EAEE;EACA;EACA;EACA;EACA;AAxBF;;AA8BA;EACE;EACA;EACA;EACA;AA3BF;;AA6BA;EACE;AA1BF;;AA4BA;EACE;AAzBF;;AA4BE;EAEE;AA1BJ;;AA4BA;EAKE,aA/C8B;EAgD9B;AA7BF;;AA+BA;EAEE;EACA;AA7BF;;AA+BA;EAEE;EAGA;EACA;EAIA;EAEA;EACA;EAKA;AAvCF;;AAyCA;EAIE;EAGA;EAIA;EAEA;EACA;EAEA;AAhDF;;AAkDA;EAME;AApDF;;AAsDA;EACE,aAvG4B;AAoD9B;;AAqDA;EACE;EACA;EACA;EACA;EACA;EAGA;EACA;AApDF;;AAwEI;EACE;EACA;AArEN;AAmEI;EACE;EACA;AAjEN;AA+DI;EACE;EACA;AA7DN;AA2DI;EACE;EACA;AAzDN;AAuDI;EACE;EACA;AArDN;;AA2DE;EACE;AAxDJ;AA0DE;EACE;AAxDJ;AA0DE;EACE;AAxDJ;AA0DE;EACE;AAxDJ;AA0DE;EACE;AAxDJ;;AA0EA;EAIE;AA1EF;AA4EE;EAEE;AA3EJ;;AA6EA;EAGE;AA5EF;AA8EE;EACE;AA5EJ;AA8EE;EACE;AA5EJ;AA8EE;EACE;AA5EJ;AA8EE;EACE;AA5EJ;AA8EE;EACE;AA5EJ;;AA8FA;EAEE;EACA;EAKA;AAhGF;;AA4GA;EAME;AA9GF;AAkHE;EACE;AAhHJ;AAkHE;EACE;AAhHJ;AAkHE;EACE;AAhHJ;AAkHE;EACE;AAhHJ;AAkHE;EACE;AAhHJ;AAyFA;EA2BE;AAjHF,C;ACzKA;EACE;AACF;;AAIA;EACE;AADF,C","sources":["webpack://unpoly/./src/unpoly/element.sass","webpack://unpoly/./src/unpoly/fragment.sass","webpack://unpoly/./src/unpoly/viewport.sass","webpack://unpoly/./src/unpoly/network.sass","webpack://unpoly/./src/unpoly/layer.sass","webpack://unpoly/./src/unpoly/link.sass"],"sourcesContent":["// We need to fix two things about the standard `[hidden]` attribute:\n//\n// - We need to strengthen the default style from `display: hidden` to `display: hidden !important`.\n// Otherwise *any* other `display` rule matching the element would cause the hidden element\n// to show. For example a rule like `.element { display: flex; }`. See https://meowni.ca/hidden.is.a.lie.html\n// This is also done by CSS frameworks like Bootstrap: https://getbootstrap.com/docs/4.1/content/reboot/#html5-hidden-attribute\n//\n// - We also to increase the specificity of our new rule from (0, 1, 0) to (0, 2, 0).\n// Otherwise using any utility class on the same element would cause the hidden element\n// show if the utility CSS was loaded after Unpoly. For example Bootstrap utilities\n// like `d-flex`. This is also done by GitHub's Primer framework: https://github.com/primer/css/pull/561/files\n[hidden][hidden]\n display: none !important\n","up-wrapper\n // This element must not display inline, since inline elements have no height:\n // https://www.w3.org/TR/CSS2/visudet.html#inline-non-replaced\n // This causes u.measure in up.viewport.reveal to return an element with a top, but a zero height.\n display: inline-block\n","up-bounds\n position: absolute\n\n.up-focus-hidden:focus-visible\n // Some developers agent stylesheets will use a focus outline like `2px solid blue`.\n // When there is also a transition on `outline-color`, we want to prevent\n // a flash of color.\n outline-color: transparent !important\n\n // Browsers like MacOS Safari will default to `outline-style: auto`,\n // which cannot be configured in width or color.\n outline-style: none !important\n\nbody.up-scrollbar-away\n html:has(>&)\n // We cannot use `overflow-y: clip` here, as that would show duplicate scrollbars on Firefox (issue #795).\n overflow-y: hidden !important\n &\n overflow-y: clip !important\n\n padding-right: calc(var(--up-scrollbar-width) + var(--up-original-padding-right)) !important\n\n .up-scrollbar-away\n right: calc(var(--up-scrollbar-width) + var(--up-original-right)) !important\n",".up-request-loader\n // This class is assigned to the form we're using to submit a full page load.\n display: none\n\nup-progress-bar\n position: fixed\n top: 0\n left: 0\n z-index: 999999999\n height: 3px\n background-color: #007bff\n","///////////////////////////////////////////////////////////////////////////////\n// Constants\n///////////////////////////////////////////////////////////////////////////////\n\n// We would prefer having only a single z-index for all overlay modes,\n// possibly controlled by a single, shared CSS variable.\n// However, there is an issue when a layer has a fixed navigation bar:\n//\n// - If the bar's z-index is lower than the one from Unpoly's layers,\n// popups from the underlying page will overlap the bar\n// - If the bar's z-index is higher than the one from Unpoly's layers,\n// a drawer or modal will no longer overlap the fixed bar\n//\n// Hence we have two z-indexes. A fixed navigation bar needs to have a z-index\n// between those two. The default z-index for a fixed Bootstrap 4 navigation bar\n// (.navbar.fixed-top) is 1030.\n$overlay-with-tether-z-index: 1000\n$overlay-with-viewport-z-index: 2000\n\n:root\n // Currently all overlay modes with a viewport have the same backdrop.\n // When we do a lightbox mode, we will need a darker backdrop for that one mode.\n // Hence we cannot share it across all modes using a CSS variable.\n --up-overlay-backdrop: rgba(0, 0, 0, 0.4)\n\n // If multiple modals are nested inside each other, the padding is\n // multiplied by the nesting depth.\n --up-modal-viewport-padding-x: 15px\n --up-modal-viewport-padding-y: 25px\n\nup-focus-trap\n // Prevent focusing the trap from scrolling the underlying root layer\n position: fixed\n top: 0\n left: 0\n width: 0\n height: 0\n\n///////////////////////////////////////////////////////////////////////////////\n// Virtual %elements shared by multiple overlay modes\n///////////////////////////////////////////////////////////////////////////////\n\n%maximize\n top: 0\n left: 0\n bottom: 0\n right: 0\n\n%large-shadow\n box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3)\n\n%small-shadow\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.3)\n\n%no-focus-outline\n &:focus,\n &:focus-visible\n outline: none\n\n%overlay-with-viewport\n @extend %maximize\n @extend %no-focus-outline\n // Create a stacking context for child elements by giving a position and z-index.\n // This way the z-indexes of our child elements don't need to be defined.\n z-index: $overlay-with-viewport-z-index\n position: fixed\n\n%overlay-backdrop\n @extend %maximize\n position: absolute\n background: var(--up-overlay-backdrop)\n\n%overlay-viewport\n @extend %maximize\n position: absolute\n\n // The viewport always has a scrollbar, except when we're animating (see below)\n overflow-y: scroll\n overflow-x: hidden\n\n // Prevent users from scrolling a parent layer when they bump\n // into the end of this layer's viewport.\n overscroll-behavior: contain\n\n display: flex\n align-items: flex-start\n\n // Center %up-overlay-box within the viewport.\n // This also turns block children into flex children, so they can grow with content,\n // up to our max-width of 100%.\n justify-content: center\n\n%overlay-box\n // We focus the box after the overlay was opened.\n @extend %no-focus-outline\n\n position: relative\n\n // Include the padding in any width that might be set on the frame\n box-sizing: border-box\n\n // Regardless of size we never want to grow wider than the viewport,\n // which would cause horizontal scroll bars.\n max-width: 100%\n\n background-color: #fff\n padding: 20px\n\n overflow-x: hidden\n\n%overlay-content\n // Custom elements are display: inline by default, which is not a good container\n // for content. It will cause children not to take up availabile space.\n // We can make %overlay-content display: block without it taking up 100% width\n // because our container %overlay-box is already display: inline-block, limiting\n // children to their intrinsic width.\n display: block\n\n%overlay-with-tether\n z-index: $overlay-with-tether-z-index\n\n%overlay-dismiss\n color: #888\n position: absolute\n top: 10px\n right: 10px\n font-size: 1.7rem\n // This line-height will position a sans-serif \"×\" with equal distance to the\n // top and right border, even when the font-size changes.\n line-height: 0.5\n cursor: pointer\n\n\n///////////////////////////////////////////////////////////////////////////////\n// Modals are a centered window with its own scrollbar\n///////////////////////////////////////////////////////////////////////////////\nup-modal\n @extend %overlay-with-viewport\n\nup-modal-backdrop\n @extend %overlay-backdrop\n\nup-modal-viewport\n @extend %overlay-viewport\n\n // Implement the margin around the dialog box with a padding of the viewport.\n // This way we can give .up-overlay-box a max-width of 100%, (1) preventing people\n // from setting withs larger than the viewport, and (2) sizing approproately\n // if the modal contents are very wide and cannot wrap (e.g. code blocks).\n @for $nesting from 0 through 4\n up-modal[nesting=\"#{$nesting}\"] &\n padding-inline: calc(#{$nesting + 1} * var(--up-modal-viewport-padding-x))\n padding-block: calc(#{$nesting + 1} * var(--up-modal-viewport-padding-y))\n\nup-modal-box\n @extend %overlay-box\n @extend %large-shadow\n\n up-modal[size=small] &\n width: 350px\n\n up-modal[size=medium] &\n width: 650px\n\n up-modal[size=large] &\n width: 1000px\n\n up-modal[size=grow] &\n width: auto // This is also the default value, but be explicit\n\n up-modal[size=full] &\n width: 100%\n\nup-modal-content\n @extend %overlay-content\n\nup-modal-dismiss\n @extend %overlay-dismiss\n\n\n///////////////////////////////////////////////////////////////////////////////\n// Drawers are a full-height modal clinging to the left or right edge of the screen\n///////////////////////////////////////////////////////////////////////////////\nup-drawer\n @extend %overlay-with-viewport\n\nup-drawer-backdrop\n @extend %overlay-backdrop\n\nup-drawer-viewport\n @extend %overlay-viewport\n\n // Allow frame to grow from the left, up to its max-width of 100%\n justify-content: flex-start\n\n up-drawer[position=right] &\n // Allow frame to grow from the right, up to its max-width of 100%\n justify-content: flex-end\n\nup-drawer-box\n @extend %overlay-box\n @extend %large-shadow\n min-height: 100vh\n\n up-drawer[size=small] &\n width: 150px\n\n up-drawer[size=medium] &\n width: 340px\n\n up-drawer[size=large] &\n width: 600px\n\n up-drawer[size=grow] &\n width: auto // This is also the default value, but be explicit\n\n up-drawer[size=full] &\n width: 100%\n\nup-drawer-content\n @extend %overlay-content\n\nup-drawer-dismiss\n @extend %overlay-dismiss\n\n\n///////////////////////////////////////////////////////////////////////////////\n// Cover is an overlay that fills the entire screen\n///////////////////////////////////////////////////////////////////////////////\nup-cover\n @extend %overlay-with-viewport\n\nup-cover-viewport\n @extend %overlay-viewport\n\nup-cover-box\n @extend %overlay-box\n width: 100%\n min-height: 100vh\n\n // We assume the developer wants to embed a full application layout\n // into a cover overlay. That layout will either want to touch the screen\n // edges, so we remove all padding.\n padding: 0\n\nup-cover-content\n @extend %overlay-content\n\nup-cover-dismiss\n @extend %overlay-dismiss\n\n\n///////////////////////////////////////////////////////////////////////////////\n// Popup is a small box that is anchored to a link\n///////////////////////////////////////////////////////////////////////////////\nup-popup\n @extend %overlay-with-tether\n @extend %overlay-box\n @extend %small-shadow\n\n // The small popup box looks better with a tighter padding.\n padding: 15px\n\n // position: absolute is given by up.Tether\n\n &[size=small]\n width: 180px\n\n &[size=medium]\n width: 300px\n\n &[size=large]\n width: 550px\n\n &[size=grow] &\n width: auto // This is also the default value, but be explicit\n\n &[size=full] &\n width: 100%\n\n // The up-popup[align=right] attribute right-aligns the text because HTML.\n // We reset the text alignment to left.\n text-align: left\n\nup-popup-content\n @extend %overlay-content\n\nup-popup-dismiss\n @extend %overlay-dismiss\n","[up-clickable][role=link]\n cursor: pointer\n\n// Expanded link areas are not announced to screen readers, as they\n// already announce the expanding link. However, we still want the expanded areas\n// to show a pointer cursor for visually abled mouse users.\n[up-expand]:not([role]), [up-expand][role=link]\n cursor: pointer\n"],"names":[],"sourceRoot":""}
|